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 activateImpl;
|
95 | private checkElementMadeActive;
|
96 | private animateActivation;
|
97 | private getFgTranslationCoordinates;
|
98 | private runDeactivationUXLogicIfReady;
|
99 | private rmBoundedActivationClasses;
|
100 | private resetActivationState;
|
101 | private deactivateImpl;
|
102 | private animateDeactivation;
|
103 | private layoutInternal;
|
104 | private updateLayoutCssVars;
|
105 | }
|
106 | export default MDCRippleFoundation;
|