@angular/animations 14.0.0-next.9 → 14.0.0-rc.0
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.
- package/browser/{browser.d.ts → index.d.ts} +240 -239
- package/browser/testing/{testing.d.ts → index.d.ts} +48 -47
- package/esm2020/browser/src/dsl/animation_ast_builder.mjs +39 -38
- package/esm2020/browser/src/dsl/animation_timeline_builder.mjs +4 -4
- package/esm2020/browser/src/dsl/animation_timeline_instruction.mjs +2 -2
- package/esm2020/browser/src/dsl/animation_transition_instruction.mjs +2 -2
- package/esm2020/browser/src/dsl/animation_trigger.mjs +3 -3
- package/esm2020/browser/src/error_helpers.mjs +37 -37
- package/esm2020/browser/src/render/animation_driver.mjs +3 -3
- package/esm2020/browser/src/render/special_cased_styles.mjs +8 -8
- package/esm2020/browser/src/render/web_animations/web_animations_driver.mjs +7 -3
- package/esm2020/browser/src/util.mjs +13 -13
- package/esm2020/browser/src/warning_helpers.mjs +2 -2
- package/esm2020/src/animation_metadata.mjs +14 -14
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/animations.mjs +14 -14
- package/fesm2015/animations.mjs.map +1 -1
- package/fesm2015/browser/testing.mjs +50 -50
- package/fesm2015/browser/testing.mjs.map +1 -1
- package/fesm2015/browser.mjs +112 -107
- package/fesm2015/browser.mjs.map +1 -1
- package/fesm2020/animations.mjs +14 -14
- package/fesm2020/animations.mjs.map +1 -1
- package/fesm2020/browser/testing.mjs +50 -50
- package/fesm2020/browser/testing.mjs.map +1 -1
- package/fesm2020/browser.mjs +112 -107
- package/fesm2020/browser.mjs.map +1 -1
- package/{animations.d.ts → index.d.ts} +1618 -1617
- package/package.json +6 -6
- package/browser/package.json +0 -10
- package/browser/testing/package.json +0 -9
|
@@ -1,244 +1,245 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-
|
|
2
|
+
* @license Angular v14.0.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
abstract
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
abstract
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
abstract
|
|
32
|
-
abstract
|
|
33
|
-
abstract
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* `
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
private
|
|
99
|
-
private
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
private
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
private
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
private
|
|
121
|
-
private
|
|
122
|
-
private
|
|
123
|
-
private
|
|
124
|
-
private
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
abstract
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
static
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
private
|
|
201
|
-
private
|
|
202
|
-
private
|
|
203
|
-
private
|
|
204
|
-
private
|
|
205
|
-
private
|
|
206
|
-
private
|
|
207
|
-
private
|
|
208
|
-
private
|
|
209
|
-
private
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
private
|
|
221
|
-
private
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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-
|
|
2
|
+
* @license Angular v14.0.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
private
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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 { }
|