1 | import * as React from "react";
|
2 | import { AbstractPureComponent, Position } from "../../common";
|
3 | import { DialogProps } from "./dialog";
|
4 | import { DialogStepId } from "./dialogStep";
|
5 | import { DialogStepButtonProps } from "./dialogStepButton";
|
6 | export type MultistepDialogNavPosition = typeof Position.TOP | typeof Position.LEFT | typeof Position.RIGHT;
|
7 | export interface MultistepDialogProps extends DialogProps {
|
8 | |
9 |
|
10 |
|
11 | backButtonProps?: DialogStepButtonProps;
|
12 |
|
13 | children?: React.ReactNode;
|
14 | |
15 |
|
16 |
|
17 | closeButtonProps?: DialogStepButtonProps;
|
18 | |
19 |
|
20 |
|
21 | finalButtonProps?: DialogStepButtonProps;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 | navigationPosition?: MultistepDialogNavPosition;
|
28 | |
29 |
|
30 |
|
31 | nextButtonProps?: DialogStepButtonProps;
|
32 | |
33 |
|
34 |
|
35 | onChange?(newDialogStepId: DialogStepId, prevDialogStepId: DialogStepId | undefined, event: React.MouseEvent<HTMLElement>): void;
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | resetOnClose?: boolean;
|
43 | |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | showCloseButtonInFooter?: boolean;
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 | initialStepIndex?: number;
|
56 | }
|
57 | interface MultistepDialogState {
|
58 | lastViewedIndex: number;
|
59 | selectedIndex: number;
|
60 | }
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | export declare class MultistepDialog extends AbstractPureComponent<MultistepDialogProps, MultistepDialogState> {
|
67 | static displayName: string;
|
68 | static defaultProps: Partial<MultistepDialogProps>;
|
69 | state: MultistepDialogState;
|
70 | render(): JSX.Element;
|
71 | componentDidUpdate(prevProps: MultistepDialogProps): void;
|
72 | private getDialogStyle;
|
73 | private renderLeftPanel;
|
74 | private renderDialogStep;
|
75 | private maybeRenderRightPanel;
|
76 | private renderFooter;
|
77 | private renderButtons;
|
78 | private getDialogStepChangeHandler;
|
79 |
|
80 | private getDialogStepChildren;
|
81 | private getInitialIndexFromProps;
|
82 | }
|
83 | export {};
|