@angular/animations 14.0.0-next.8 → 14.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/browser/{browser.d.ts → index.d.ts} +240 -239
  2. package/browser/testing/{testing.d.ts → index.d.ts} +48 -47
  3. package/esm2020/browser/src/dsl/animation_ast_builder.mjs +39 -38
  4. package/esm2020/browser/src/dsl/animation_timeline_builder.mjs +4 -4
  5. package/esm2020/browser/src/dsl/animation_timeline_instruction.mjs +2 -2
  6. package/esm2020/browser/src/dsl/animation_transition_instruction.mjs +2 -2
  7. package/esm2020/browser/src/dsl/animation_trigger.mjs +3 -3
  8. package/esm2020/browser/src/error_helpers.mjs +37 -37
  9. package/esm2020/browser/src/render/animation_driver.mjs +3 -3
  10. package/esm2020/browser/src/render/special_cased_styles.mjs +8 -8
  11. package/esm2020/browser/src/render/web_animations/web_animations_driver.mjs +7 -3
  12. package/esm2020/browser/src/util.mjs +13 -13
  13. package/esm2020/browser/src/warning_helpers.mjs +2 -2
  14. package/esm2020/src/animation_metadata.mjs +14 -14
  15. package/esm2020/src/version.mjs +1 -1
  16. package/fesm2015/animations.mjs +14 -14
  17. package/fesm2015/animations.mjs.map +1 -1
  18. package/fesm2015/browser/testing.mjs +50 -50
  19. package/fesm2015/browser/testing.mjs.map +1 -1
  20. package/fesm2015/browser.mjs +112 -107
  21. package/fesm2015/browser.mjs.map +1 -1
  22. package/fesm2020/animations.mjs +14 -14
  23. package/fesm2020/animations.mjs.map +1 -1
  24. package/fesm2020/browser/testing.mjs +50 -50
  25. package/fesm2020/browser/testing.mjs.map +1 -1
  26. package/fesm2020/browser.mjs +112 -107
  27. package/fesm2020/browser.mjs.map +1 -1
  28. package/{animations.d.ts → index.d.ts} +1618 -1617
  29. package/package.json +6 -6
  30. package/browser/package.json +0 -10
  31. package/browser/testing/package.json +0 -9
@@ -1,244 +1,245 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.8
2
+ * @license Angular v14.0.0-rc.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { AnimationMetadata } from '@angular/animations';
8
- import { AnimationOptions } from '@angular/animations';
9
- import { AnimationPlayer } from '@angular/animations';
10
- import { AnimationTriggerMetadata } from '@angular/animations';
11
- import * as i0 from '@angular/core';
12
- import { ɵStyleData } from '@angular/animations';
13
- import { ɵStyleDataMap } from '@angular/animations';
14
-
15
- /**
16
- * @publicApi
17
- */
18
- export declare abstract class AnimationDriver {
19
- static NOOP: AnimationDriver;
20
- abstract validateStyleProperty(prop: string): boolean;
21
- abstract validateAnimatableStyleProperty?: (prop: string) => boolean;
22
- /**
23
- * @deprecated No longer in use. Will be removed.
24
- */
25
- abstract matchesElement(element: any, selector: string): boolean;
26
- abstract containsElement(elm1: any, elm2: any): boolean;
27
- /**
28
- * Obtains the parent element, if any. `null` is returned if the element does not have a parent.
29
- */
30
- abstract getParentElement(element: unknown): unknown;
31
- abstract query(element: any, selector: string, multi: boolean): any[];
32
- abstract computeStyle(element: any, prop: string, defaultValue?: string): string;
33
- abstract animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any;
34
- }
35
-
36
- declare interface AnimationEngineInstruction {
37
- type: AnimationTransitionInstructionType;
38
- }
39
-
40
- declare interface AnimationTimelineInstruction extends AnimationEngineInstruction {
41
- element: any;
42
- keyframes: Array<ɵStyleDataMap>;
43
- preStyleProps: string[];
44
- postStyleProps: string[];
45
- duration: number;
46
- delay: number;
47
- totalTime: number;
48
- easing: string | null;
49
- stretchStartingKeyframe?: boolean;
50
- subTimeline: boolean;
51
- }
52
-
53
-
54
- declare const enum AnimationTransitionInstructionType {
55
- TransitionAnimation = 0,
56
- TimelineAnimation = 1
57
- }
58
-
59
-
60
- /**
61
- * DOMAnimation represents the Animation Web API.
62
- *
63
- * It is an external API by the browser, and must thus use "declare interface",
64
- * to prevent renaming by Closure Compiler.
65
- *
66
- * @see https://developer.mozilla.org/de/docs/Web/API/Animation
67
- */
68
- declare interface DOMAnimation {
69
- cancel(): void;
70
- play(): void;
71
- pause(): void;
72
- finish(): void;
73
- onfinish: Function;
74
- position: number;
75
- currentTime: number;
76
- addEventListener(eventName: string, handler: (event: any) => any): any;
77
- dispatchEvent(eventName: string): any;
78
- }
79
-
80
- declare class ElementInstructionMap {
81
- private _map;
82
- get(element: any): AnimationTimelineInstruction[];
83
- append(element: any, instructions: AnimationTimelineInstruction[]): void;
84
- has(element: any): boolean;
85
- clear(): void;
86
- }
87
-
88
- /**
89
- * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
90
- *
91
- * When started (when the `start()` method is run) then the provided `startStyles`
92
- * will be applied. When finished (when the `finish()` method is called) the
93
- * `endStyles` will be applied as well any any starting styles. Finally when
94
- * `destroy()` is called then all styles will be removed.
95
- */
96
- declare class SpecialCasedStyles {
97
- private _element;
98
- private _startStyles;
99
- private _endStyles;
100
- static initialStylesByElement: WeakMap<any, ɵStyleDataMap>;
101
- private _state;
102
- private _initialStyles;
103
- constructor(_element: any, _startStyles: ɵStyleDataMap | null, _endStyles: ɵStyleDataMap | null);
104
- start(): void;
105
- finish(): void;
106
- destroy(): void;
107
- }
108
-
109
- export declare function ɵallowPreviousPlayerStylesMerge(duration: number, delay: number): boolean;
110
-
111
- export declare class ɵAnimation {
112
- private _driver;
113
- private _animationAst;
114
- constructor(_driver: AnimationDriver, input: AnimationMetadata | AnimationMetadata[]);
115
- buildTimelines(element: any, startingStyles: ɵStyleDataMap | Array<ɵStyleDataMap>, destinationStyles: ɵStyleDataMap | Array<ɵStyleDataMap>, options: AnimationOptions, subInstructions?: ElementInstructionMap): AnimationTimelineInstruction[];
116
- }
117
-
118
- export declare class ɵAnimationEngine {
119
- private bodyNode;
120
- private _driver;
121
- private _normalizer;
122
- private _transitionEngine;
123
- private _timelineEngine;
124
- private _triggerCache;
125
- onRemovalComplete: (element: any, context: any) => void;
126
- constructor(bodyNode: any, _driver: AnimationDriver, _normalizer: ɵAnimationStyleNormalizer);
127
- registerTrigger(componentId: string, namespaceId: string, hostElement: any, name: string, metadata: AnimationTriggerMetadata): void;
128
- register(namespaceId: string, hostElement: any): void;
129
- destroy(namespaceId: string, context: any): void;
130
- onInsert(namespaceId: string, element: any, parent: any, insertBefore: boolean): void;
131
- onRemove(namespaceId: string, element: any, context: any, isHostElement?: boolean): void;
132
- disableAnimations(element: any, disable: boolean): void;
133
- process(namespaceId: string, element: any, property: string, value: any): void;
134
- listen(namespaceId: string, element: any, eventName: string, eventPhase: string, callback: (event: any) => any): () => any;
135
- flush(microtaskId?: number): void;
136
- get players(): AnimationPlayer[];
137
- whenRenderingDone(): Promise<any>;
138
- }
139
-
140
-
141
- /**
142
- * @publicApi
143
- */
144
- export declare abstract class ɵAnimationStyleNormalizer {
145
- abstract normalizePropertyName(propertyName: string, errors: Error[]): string;
146
- abstract normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
147
- }
148
-
149
- export declare const ɵcontainsElement: (elm1: any, elm2: any) => boolean;
150
-
151
- export declare function ɵgetParentElement(element: any): unknown | null;
152
-
153
- export declare const ɵinvokeQuery: (element: any, selector: string, multi: boolean) => any[];
154
-
155
- /**
156
- * @publicApi
157
- */
158
- export declare class ɵNoopAnimationDriver implements AnimationDriver {
159
- validateStyleProperty(prop: string): boolean;
160
- matchesElement(_element: any, _selector: string): boolean;
161
- containsElement(elm1: any, elm2: any): boolean;
162
- getParentElement(element: unknown): unknown;
163
- query(element: any, selector: string, multi: boolean): any[];
164
- computeStyle(element: any, prop: string, defaultValue?: string): string;
165
- animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): AnimationPlayer;
166
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵNoopAnimationDriver, never>;
167
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵNoopAnimationDriver>;
168
- }
169
-
170
- /**
171
- * @publicApi
172
- */
173
- export declare class ɵNoopAnimationStyleNormalizer {
174
- normalizePropertyName(propertyName: string, errors: Error[]): string;
175
- normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
176
- }
177
-
178
- export declare function ɵnormalizeKeyframes(keyframes: Array<ɵStyleData> | Array<ɵStyleDataMap>): Array<ɵStyleDataMap>;
179
-
180
- export declare function ɵvalidateStyleProperty(prop: string): boolean;
181
-
182
- export declare class ɵWebAnimationsDriver implements AnimationDriver {
183
- validateStyleProperty(prop: string): boolean;
184
- validateAnimatableStyleProperty(prop: string): boolean;
185
- matchesElement(_element: any, _selector: string): boolean;
186
- containsElement(elm1: any, elm2: any): boolean;
187
- getParentElement(element: unknown): unknown;
188
- query(element: any, selector: string, multi: boolean): any[];
189
- computeStyle(element: any, prop: string, defaultValue?: string): string;
190
- animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: AnimationPlayer[]): AnimationPlayer;
191
- }
192
-
193
- export declare class ɵWebAnimationsPlayer implements AnimationPlayer {
194
- element: any;
195
- keyframes: Array<ɵStyleDataMap>;
196
- options: {
197
- [key: string]: string | number;
198
- };
199
- private _specialStyles?;
200
- private _onDoneFns;
201
- private _onStartFns;
202
- private _onDestroyFns;
203
- private _duration;
204
- private _delay;
205
- private _initialized;
206
- private _finished;
207
- private _started;
208
- private _destroyed;
209
- private _finalKeyframe?;
210
- readonly domPlayer: DOMAnimation;
211
- time: number;
212
- parentPlayer: AnimationPlayer | null;
213
- currentSnapshot: ɵStyleDataMap;
214
- constructor(element: any, keyframes: Array<ɵStyleDataMap>, options: {
215
- [key: string]: string | number;
216
- }, _specialStyles?: SpecialCasedStyles | null | undefined);
217
- private _onFinish;
218
- init(): void;
219
- private _buildPlayer;
220
- private _preparePlayerBeforeStart;
221
- private _convertKeyframesToObject;
222
- onStart(fn: () => void): void;
223
- onDone(fn: () => void): void;
224
- onDestroy(fn: () => void): void;
225
- play(): void;
226
- pause(): void;
227
- finish(): void;
228
- reset(): void;
229
- private _resetDomPlayerState;
230
- restart(): void;
231
- hasStarted(): boolean;
232
- destroy(): void;
233
- setPosition(p: number): void;
234
- getPosition(): number;
235
- get totalTime(): number;
236
- beforeDestroy(): void;
237
- }
238
-
239
- export declare class ɵWebAnimationsStyleNormalizer extends ɵAnimationStyleNormalizer {
240
- normalizePropertyName(propertyName: string, errors: Error[]): string;
241
- normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
242
- }
243
-
244
- export { }
7
+
8
+ import { AnimationMetadata } from '@angular/animations';
9
+ import { AnimationOptions } from '@angular/animations';
10
+ import { AnimationPlayer } from '@angular/animations';
11
+ import { AnimationTriggerMetadata } from '@angular/animations';
12
+ import * as i0 from '@angular/core';
13
+ import { ɵStyleData } from '@angular/animations';
14
+ import { ɵStyleDataMap } from '@angular/animations';
15
+
16
+ /**
17
+ * @publicApi
18
+ */
19
+ export declare abstract class AnimationDriver {
20
+ static NOOP: AnimationDriver;
21
+ abstract validateStyleProperty(prop: string): boolean;
22
+ abstract validateAnimatableStyleProperty?: (prop: string) => boolean;
23
+ /**
24
+ * @deprecated No longer in use. Will be removed.
25
+ */
26
+ abstract matchesElement(element: any, selector: string): boolean;
27
+ abstract containsElement(elm1: any, elm2: any): boolean;
28
+ /**
29
+ * Obtains the parent element, if any. `null` is returned if the element does not have a parent.
30
+ */
31
+ abstract getParentElement(element: unknown): unknown;
32
+ abstract query(element: any, selector: string, multi: boolean): any[];
33
+ abstract computeStyle(element: any, prop: string, defaultValue?: string): string;
34
+ abstract animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any;
35
+ }
36
+
37
+ declare interface AnimationEngineInstruction {
38
+ type: AnimationTransitionInstructionType;
39
+ }
40
+
41
+ declare interface AnimationTimelineInstruction extends AnimationEngineInstruction {
42
+ element: any;
43
+ keyframes: Array<ɵStyleDataMap>;
44
+ preStyleProps: string[];
45
+ postStyleProps: string[];
46
+ duration: number;
47
+ delay: number;
48
+ totalTime: number;
49
+ easing: string | null;
50
+ stretchStartingKeyframe?: boolean;
51
+ subTimeline: boolean;
52
+ }
53
+
54
+
55
+ declare const enum AnimationTransitionInstructionType {
56
+ TransitionAnimation = 0,
57
+ TimelineAnimation = 1
58
+ }
59
+
60
+
61
+ /**
62
+ * DOMAnimation represents the Animation Web API.
63
+ *
64
+ * It is an external API by the browser, and must thus use "declare interface",
65
+ * to prevent renaming by Closure Compiler.
66
+ *
67
+ * @see https://developer.mozilla.org/de/docs/Web/API/Animation
68
+ */
69
+ declare interface DOMAnimation {
70
+ cancel(): void;
71
+ play(): void;
72
+ pause(): void;
73
+ finish(): void;
74
+ onfinish: Function;
75
+ position: number;
76
+ currentTime: number;
77
+ addEventListener(eventName: string, handler: (event: any) => any): any;
78
+ dispatchEvent(eventName: string): any;
79
+ }
80
+
81
+ declare class ElementInstructionMap {
82
+ private _map;
83
+ get(element: any): AnimationTimelineInstruction[];
84
+ append(element: any, instructions: AnimationTimelineInstruction[]): void;
85
+ has(element: any): boolean;
86
+ clear(): void;
87
+ }
88
+
89
+ /**
90
+ * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
91
+ *
92
+ * When started (when the `start()` method is run) then the provided `startStyles`
93
+ * will be applied. When finished (when the `finish()` method is called) the
94
+ * `endStyles` will be applied as well any any starting styles. Finally when
95
+ * `destroy()` is called then all styles will be removed.
96
+ */
97
+ declare class SpecialCasedStyles {
98
+ private _element;
99
+ private _startStyles;
100
+ private _endStyles;
101
+ static initialStylesByElement: WeakMap<any, ɵStyleDataMap>;
102
+ private _state;
103
+ private _initialStyles;
104
+ constructor(_element: any, _startStyles: ɵStyleDataMap | null, _endStyles: ɵStyleDataMap | null);
105
+ start(): void;
106
+ finish(): void;
107
+ destroy(): void;
108
+ }
109
+
110
+ export declare function ɵallowPreviousPlayerStylesMerge(duration: number, delay: number): boolean;
111
+
112
+ export declare class ɵAnimation {
113
+ private _driver;
114
+ private _animationAst;
115
+ constructor(_driver: AnimationDriver, input: AnimationMetadata | AnimationMetadata[]);
116
+ buildTimelines(element: any, startingStyles: ɵStyleDataMap | Array<ɵStyleDataMap>, destinationStyles: ɵStyleDataMap | Array<ɵStyleDataMap>, options: AnimationOptions, subInstructions?: ElementInstructionMap): AnimationTimelineInstruction[];
117
+ }
118
+
119
+ export declare class ɵAnimationEngine {
120
+ private bodyNode;
121
+ private _driver;
122
+ private _normalizer;
123
+ private _transitionEngine;
124
+ private _timelineEngine;
125
+ private _triggerCache;
126
+ onRemovalComplete: (element: any, context: any) => void;
127
+ constructor(bodyNode: any, _driver: AnimationDriver, _normalizer: ɵAnimationStyleNormalizer);
128
+ registerTrigger(componentId: string, namespaceId: string, hostElement: any, name: string, metadata: AnimationTriggerMetadata): void;
129
+ register(namespaceId: string, hostElement: any): void;
130
+ destroy(namespaceId: string, context: any): void;
131
+ onInsert(namespaceId: string, element: any, parent: any, insertBefore: boolean): void;
132
+ onRemove(namespaceId: string, element: any, context: any, isHostElement?: boolean): void;
133
+ disableAnimations(element: any, disable: boolean): void;
134
+ process(namespaceId: string, element: any, property: string, value: any): void;
135
+ listen(namespaceId: string, element: any, eventName: string, eventPhase: string, callback: (event: any) => any): () => any;
136
+ flush(microtaskId?: number): void;
137
+ get players(): AnimationPlayer[];
138
+ whenRenderingDone(): Promise<any>;
139
+ }
140
+
141
+
142
+ /**
143
+ * @publicApi
144
+ */
145
+ export declare abstract class ɵAnimationStyleNormalizer {
146
+ abstract normalizePropertyName(propertyName: string, errors: Error[]): string;
147
+ abstract normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
148
+ }
149
+
150
+ export declare const ɵcontainsElement: (elm1: any, elm2: any) => boolean;
151
+
152
+ export declare function ɵgetParentElement(element: any): unknown | null;
153
+
154
+ export declare const ɵinvokeQuery: (element: any, selector: string, multi: boolean) => any[];
155
+
156
+ /**
157
+ * @publicApi
158
+ */
159
+ export declare class ɵNoopAnimationDriver implements AnimationDriver {
160
+ validateStyleProperty(prop: string): boolean;
161
+ matchesElement(_element: any, _selector: string): boolean;
162
+ containsElement(elm1: any, elm2: any): boolean;
163
+ getParentElement(element: unknown): unknown;
164
+ query(element: any, selector: string, multi: boolean): any[];
165
+ computeStyle(element: any, prop: string, defaultValue?: string): string;
166
+ animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): AnimationPlayer;
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<ɵNoopAnimationDriver, never>;
168
+ static ɵprov: i0.ɵɵInjectableDeclaration<ɵNoopAnimationDriver>;
169
+ }
170
+
171
+ /**
172
+ * @publicApi
173
+ */
174
+ export declare class ɵNoopAnimationStyleNormalizer {
175
+ normalizePropertyName(propertyName: string, errors: Error[]): string;
176
+ normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
177
+ }
178
+
179
+ export declare function ɵnormalizeKeyframes(keyframes: Array<ɵStyleData> | Array<ɵStyleDataMap>): Array<ɵStyleDataMap>;
180
+
181
+ export declare function ɵvalidateStyleProperty(prop: string): boolean;
182
+
183
+ export declare class ɵWebAnimationsDriver implements AnimationDriver {
184
+ validateStyleProperty(prop: string): boolean;
185
+ validateAnimatableStyleProperty(prop: string): boolean;
186
+ matchesElement(_element: any, _selector: string): boolean;
187
+ containsElement(elm1: any, elm2: any): boolean;
188
+ getParentElement(element: unknown): unknown;
189
+ query(element: any, selector: string, multi: boolean): any[];
190
+ computeStyle(element: any, prop: string, defaultValue?: string): string;
191
+ animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: AnimationPlayer[]): AnimationPlayer;
192
+ }
193
+
194
+ export declare class ɵWebAnimationsPlayer implements AnimationPlayer {
195
+ element: any;
196
+ keyframes: Array<ɵStyleDataMap>;
197
+ options: {
198
+ [key: string]: string | number;
199
+ };
200
+ private _specialStyles?;
201
+ private _onDoneFns;
202
+ private _onStartFns;
203
+ private _onDestroyFns;
204
+ private _duration;
205
+ private _delay;
206
+ private _initialized;
207
+ private _finished;
208
+ private _started;
209
+ private _destroyed;
210
+ private _finalKeyframe?;
211
+ readonly domPlayer: DOMAnimation;
212
+ time: number;
213
+ parentPlayer: AnimationPlayer | null;
214
+ currentSnapshot: ɵStyleDataMap;
215
+ constructor(element: any, keyframes: Array<ɵStyleDataMap>, options: {
216
+ [key: string]: string | number;
217
+ }, _specialStyles?: SpecialCasedStyles | null | undefined);
218
+ private _onFinish;
219
+ init(): void;
220
+ private _buildPlayer;
221
+ private _preparePlayerBeforeStart;
222
+ private _convertKeyframesToObject;
223
+ onStart(fn: () => void): void;
224
+ onDone(fn: () => void): void;
225
+ onDestroy(fn: () => void): void;
226
+ play(): void;
227
+ pause(): void;
228
+ finish(): void;
229
+ reset(): void;
230
+ private _resetDomPlayerState;
231
+ restart(): void;
232
+ hasStarted(): boolean;
233
+ destroy(): void;
234
+ setPosition(p: number): void;
235
+ getPosition(): number;
236
+ get totalTime(): number;
237
+ beforeDestroy(): void;
238
+ }
239
+
240
+ export declare class ɵWebAnimationsStyleNormalizer extends ɵAnimationStyleNormalizer {
241
+ normalizePropertyName(propertyName: string, errors: Error[]): string;
242
+ normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
243
+ }
244
+
245
+ export { }
@@ -1,52 +1,53 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.8
2
+ * @license Angular v14.0.0-rc.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { AnimationDriver } from '@angular/animations/browser';
8
- import { AnimationPlayer } from '@angular/animations';
9
- import { NoopAnimationPlayer } from '@angular/animations';
10
- import { ɵStyleDataMap } from '@angular/animations';
11
-
12
- /**
13
- * @publicApi
14
- */
15
- export declare class MockAnimationDriver implements AnimationDriver {
16
- static log: AnimationPlayer[];
17
- validateStyleProperty(prop: string): boolean;
18
- validateAnimatableStyleProperty(prop: string): boolean;
19
- matchesElement(_element: any, _selector: string): boolean;
20
- containsElement(elm1: any, elm2: any): boolean;
21
- getParentElement(element: unknown): unknown;
22
- query(element: any, selector: string, multi: boolean): any[];
23
- computeStyle(element: any, prop: string, defaultValue?: string): string;
24
- animate(element: any, keyframes: Array<ɵStyleDataMap>, duration: number, delay: number, easing: string, previousPlayers?: any[]): MockAnimationPlayer;
25
- }
26
-
27
- /**
28
- * @publicApi
29
- */
30
- export declare class MockAnimationPlayer extends NoopAnimationPlayer {
31
- element: any;
32
- keyframes: Array<ɵStyleDataMap>;
33
- duration: number;
34
- delay: number;
35
- easing: string;
36
- previousPlayers: any[];
37
- private __finished;
38
- private __started;
39
- previousStyles: ɵStyleDataMap;
40
- private _onInitFns;
41
- currentSnapshot: ɵStyleDataMap;
42
- private _keyframes;
43
- constructor(element: any, keyframes: Array<ɵStyleDataMap>, duration: number, delay: number, easing: string, previousPlayers: any[]);
44
- reset(): void;
45
- finish(): void;
46
- destroy(): void;
47
- play(): void;
48
- hasStarted(): boolean;
49
- beforeDestroy(): void;
50
- }
51
-
52
- export { }
7
+
8
+ import { AnimationDriver } from '@angular/animations/browser';
9
+ import { AnimationPlayer } from '@angular/animations';
10
+ import { NoopAnimationPlayer } from '@angular/animations';
11
+ import { ɵStyleDataMap } from '@angular/animations';
12
+
13
+ /**
14
+ * @publicApi
15
+ */
16
+ export declare class MockAnimationDriver implements AnimationDriver {
17
+ static log: AnimationPlayer[];
18
+ validateStyleProperty(prop: string): boolean;
19
+ validateAnimatableStyleProperty(prop: string): boolean;
20
+ matchesElement(_element: any, _selector: string): boolean;
21
+ containsElement(elm1: any, elm2: any): boolean;
22
+ getParentElement(element: unknown): unknown;
23
+ query(element: any, selector: string, multi: boolean): any[];
24
+ computeStyle(element: any, prop: string, defaultValue?: string): string;
25
+ animate(element: any, keyframes: Array<ɵStyleDataMap>, duration: number, delay: number, easing: string, previousPlayers?: any[]): MockAnimationPlayer;
26
+ }
27
+
28
+ /**
29
+ * @publicApi
30
+ */
31
+ export declare class MockAnimationPlayer extends NoopAnimationPlayer {
32
+ element: any;
33
+ keyframes: Array<ɵStyleDataMap>;
34
+ duration: number;
35
+ delay: number;
36
+ easing: string;
37
+ previousPlayers: any[];
38
+ private __finished;
39
+ private __started;
40
+ previousStyles: ɵStyleDataMap;
41
+ private _onInitFns;
42
+ currentSnapshot: ɵStyleDataMap;
43
+ private _keyframes;
44
+ constructor(element: any, keyframes: Array<ɵStyleDataMap>, duration: number, delay: number, easing: string, previousPlayers: any[]);
45
+ reset(): void;
46
+ finish(): void;
47
+ destroy(): void;
48
+ play(): void;
49
+ hasStarted(): boolean;
50
+ beforeDestroy(): void;
51
+ }
52
+
53
+ export { }