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