1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | import { MDCFoundation } from '@material/base/foundation';
|
24 | import { MDCDrawerAdapter } from '../adapter';
|
25 | export declare class MDCDismissibleDrawerFoundation extends MDCFoundation<MDCDrawerAdapter> {
|
26 | static get strings(): {
|
27 | APP_CONTENT_SELECTOR: string;
|
28 | CLOSE_EVENT: string;
|
29 | OPEN_EVENT: string;
|
30 | SCRIM_SELECTOR: string;
|
31 | LIST_SELECTOR: string;
|
32 | LIST_ITEM_ACTIVATED_SELECTOR: string;
|
33 | };
|
34 | static get cssClasses(): {
|
35 | ANIMATE: string;
|
36 | CLOSING: string;
|
37 | DISMISSIBLE: string;
|
38 | MODAL: string;
|
39 | OPEN: string;
|
40 | OPENING: string;
|
41 | ROOT: string;
|
42 | };
|
43 | static get defaultAdapter(): MDCDrawerAdapter;
|
44 | private animationFrame;
|
45 | private animationTimer;
|
46 | constructor(adapter?: Partial<MDCDrawerAdapter>);
|
47 | destroy(): void;
|
48 | /**
|
49 | * Opens the drawer from the closed state.
|
50 | */
|
51 | open(): void;
|
52 | /**
|
53 | * Closes the drawer from the open state.
|
54 | */
|
55 | close(): void;
|
56 | /**
|
57 | * Returns true if the drawer is in the open position.
|
58 | * @return true if drawer is in open state.
|
59 | */
|
60 | isOpen(): boolean;
|
61 | /**
|
62 | * Returns true if the drawer is animating open.
|
63 | * @return true if drawer is animating open.
|
64 | */
|
65 | isOpening(): boolean;
|
66 | /**
|
67 | * Returns true if the drawer is animating closed.
|
68 | * @return true if drawer is animating closed.
|
69 | */
|
70 | isClosing(): boolean;
|
71 | /**
|
72 | * Keydown handler to close drawer when key is escape.
|
73 | */
|
74 | handleKeydown(evt: KeyboardEvent): void;
|
75 | /**
|
76 | * Handles the `transitionend` event when the drawer finishes opening/closing.
|
77 | */
|
78 | handleTransitionEnd(evt: TransitionEvent): void;
|
79 | /**
|
80 | * Extension point for when drawer finishes open animation.
|
81 | */
|
82 | protected opened(): void;
|
83 | /**
|
84 | * Extension point for when drawer finishes close animation.
|
85 | */
|
86 | protected closed(): void;
|
87 | /**
|
88 | * Runs the given logic on the next animation frame, using setTimeout to factor in Firefox reflow behavior.
|
89 | */
|
90 | private runNextAnimationFrame;
|
91 | private isElement;
|
92 | }
|
93 | export default MDCDismissibleDrawerFoundation;
|