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 { MDCRippleAdapter } from './adapter';
|
25 | export declare class MDCRippleFoundation extends MDCFoundation<MDCRippleAdapter> {
|
26 | static get cssClasses(): {
|
27 | BG_FOCUSED: string;
|
28 | FG_ACTIVATION: string;
|
29 | FG_DEACTIVATION: string;
|
30 | ROOT: string;
|
31 | UNBOUNDED: string;
|
32 | };
|
33 | static get strings(): {
|
34 | VAR_FG_SCALE: string;
|
35 | VAR_FG_SIZE: string;
|
36 | VAR_FG_TRANSLATE_END: string;
|
37 | VAR_FG_TRANSLATE_START: string;
|
38 | VAR_LEFT: string;
|
39 | VAR_TOP: string;
|
40 | };
|
41 | static get numbers(): {
|
42 | DEACTIVATION_TIMEOUT_MS: number;
|
43 | FG_DEACTIVATION_MS: number;
|
44 | INITIAL_ORIGIN_SCALE: number;
|
45 | PADDING: number;
|
46 | TAP_DELAY_MS: number;
|
47 | };
|
48 | static get defaultAdapter(): MDCRippleAdapter;
|
49 | private activationAnimationHasEnded_;
|
50 | private activationState_;
|
51 | private activationTimer_;
|
52 | private fgDeactivationRemovalTimer_;
|
53 | private fgScale_;
|
54 | private frame_;
|
55 | private initialSize_;
|
56 | private layoutFrame_;
|
57 | private maxRadius_;
|
58 | private unboundedCoords_;
|
59 | private readonly activationTimerCallback_;
|
60 | private readonly activateHandler_;
|
61 | private readonly deactivateHandler_;
|
62 | private readonly focusHandler_;
|
63 | private readonly blurHandler_;
|
64 | private readonly resizeHandler_;
|
65 | private previousActivationEvent_?;
|
66 | constructor(adapter?: Partial<MDCRippleAdapter>);
|
67 | init(): void;
|
68 | destroy(): void;
|
69 | /**
|
70 | * @param evt Optional event containing position information.
|
71 | */
|
72 | activate(evt?: Event): void;
|
73 | deactivate(): void;
|
74 | layout(): void;
|
75 | setUnbounded(unbounded: boolean): void;
|
76 | handleFocus(): void;
|
77 | handleBlur(): void;
|
78 | /**
|
79 | * We compute this property so that we are not querying information about the client
|
80 | * until the point in time where the foundation requests it. This prevents scenarios where
|
81 | * client-side feature-detection may happen too early, such as when components are rendered on the server
|
82 | * and then initialized at mount time on the client.
|
83 | */
|
84 | private supportsPressRipple_;
|
85 | private defaultActivationState_;
|
86 | /**
|
87 | * supportsPressRipple Passed from init to save a redundant function call
|
88 | */
|
89 | private registerRootHandlers_;
|
90 | private registerDeactivationHandlers_;
|
91 | private deregisterRootHandlers_;
|
92 | private deregisterDeactivationHandlers_;
|
93 | private removeCssVars_;
|
94 | private activate_;
|
95 | private checkElementMadeActive_;
|
96 | private animateActivation_;
|
97 | private getFgTranslationCoordinates_;
|
98 | private runDeactivationUXLogicIfReady_;
|
99 | private rmBoundedActivationClasses_;
|
100 | private resetActivationState_;
|
101 | private deactivate_;
|
102 | private animateDeactivation_;
|
103 | private layoutInternal_;
|
104 | private updateLayoutCssVars_;
|
105 | }
|
106 | export default MDCRippleFoundation;
|