@angular/animations 19.2.1 → 19.2.2
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/index.d.ts +133 -158
- package/browser/testing/index.d.ts +10 -14
- package/fesm2022/animations.mjs +9 -27
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/browser/testing.mjs +10 -22
- package/fesm2022/browser/testing.mjs.map +1 -1
- package/fesm2022/browser.mjs +46 -85
- package/fesm2022/browser.mjs.map +1 -1
- package/index.d.ts +1047 -1090
- package/package.json +2 -2
package/browser/index.d.ts
CHANGED
@@ -1,86 +1,19 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.2.
|
2
|
+
* @license Angular v19.2.2
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
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';
|
7
|
+
import { AnimationPlayer, AnimationTriggerMetadata, ɵStyleDataMap as _StyleDataMap, AnimationMetadata, AnimationOptions, ɵStyleData as _StyleData } from '@angular/animations';
|
12
8
|
import * as i0 from '@angular/core';
|
13
|
-
import { ListenerOptions } from '@angular/core';
|
14
|
-
import type { NgZone } from '@angular/core';
|
15
|
-
import { Renderer2 } from '@angular/core';
|
16
|
-
import { RendererFactory2 } from '@angular/core';
|
17
|
-
import { RendererStyleFlags2 } from '@angular/core';
|
18
|
-
import type { RendererType2 } from '@angular/core';
|
19
|
-
import { ɵAnimationRendererType } from '@angular/core';
|
20
|
-
import { ɵStyleData } from '@angular/animations';
|
21
|
-
import { ɵStyleDataMap } from '@angular/animations';
|
22
|
-
|
23
|
-
/**
|
24
|
-
* @publicApi
|
25
|
-
*/
|
26
|
-
export declare abstract class AnimationDriver {
|
27
|
-
/**
|
28
|
-
* @deprecated Use the NoopAnimationDriver class.
|
29
|
-
*/
|
30
|
-
static NOOP: AnimationDriver;
|
31
|
-
abstract validateStyleProperty(prop: string): boolean;
|
32
|
-
abstract validateAnimatableStyleProperty?: (prop: string) => boolean;
|
33
|
-
abstract containsElement(elm1: any, elm2: any): boolean;
|
34
|
-
/**
|
35
|
-
* Obtains the parent element, if any. `null` is returned if the element does not have a parent.
|
36
|
-
*/
|
37
|
-
abstract getParentElement(element: unknown): unknown;
|
38
|
-
abstract query(element: any, selector: string, multi: boolean): any[];
|
39
|
-
abstract computeStyle(element: any, prop: string, defaultValue?: string): string;
|
40
|
-
abstract animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any;
|
41
|
-
}
|
42
|
-
|
43
|
-
declare interface AnimationEngineInstruction {
|
44
|
-
type: AnimationTransitionInstructionType;
|
45
|
-
}
|
46
|
-
|
47
|
-
declare type AnimationFactoryWithListenerCallback = RendererFactory2 & {
|
48
|
-
scheduleListenerCallback: (count: number, fn: (e: any) => any, data: any) => void;
|
49
|
-
};
|
50
|
-
|
51
|
-
declare interface AnimationTimelineInstruction extends AnimationEngineInstruction {
|
52
|
-
element: any;
|
53
|
-
keyframes: Array<ɵStyleDataMap>;
|
54
|
-
preStyleProps: string[];
|
55
|
-
postStyleProps: string[];
|
56
|
-
duration: number;
|
57
|
-
delay: number;
|
58
|
-
totalTime: number;
|
59
|
-
easing: string | null;
|
60
|
-
stretchStartingKeyframe?: boolean;
|
61
|
-
subTimeline: boolean;
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
declare const enum AnimationTransitionInstructionType {
|
66
|
-
TransitionAnimation = 0,
|
67
|
-
TimelineAnimation = 1
|
68
|
-
}
|
69
|
-
|
70
|
-
declare class ElementInstructionMap {
|
71
|
-
private _map;
|
72
|
-
get(element: any): AnimationTimelineInstruction[];
|
73
|
-
append(element: any, instructions: AnimationTimelineInstruction[]): void;
|
74
|
-
has(element: any): boolean;
|
75
|
-
clear(): void;
|
76
|
-
}
|
9
|
+
import { Renderer2, ɵAnimationRendererType as _AnimationRendererType, RendererStyleFlags2, ListenerOptions, RendererFactory2, NgZone, RendererType2 } from '@angular/core';
|
77
10
|
|
78
11
|
/**
|
79
12
|
* @publicApi
|
80
13
|
*
|
81
14
|
* `AnimationDriver` implentation for Noop animations
|
82
15
|
*/
|
83
|
-
|
16
|
+
declare class NoopAnimationDriver implements AnimationDriver {
|
84
17
|
/**
|
85
18
|
* @returns Whether `prop` is a valid CSS property
|
86
19
|
*/
|
@@ -110,45 +43,43 @@ export declare class NoopAnimationDriver implements AnimationDriver {
|
|
110
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopAnimationDriver, never>;
|
111
44
|
static ɵprov: i0.ɵɵInjectableDeclaration<NoopAnimationDriver>;
|
112
45
|
}
|
113
|
-
|
114
46
|
/**
|
115
|
-
*
|
116
|
-
*
|
117
|
-
* When started (when the `start()` method is run) then the provided `startStyles`
|
118
|
-
* will be applied. When finished (when the `finish()` method is called) the
|
119
|
-
* `endStyles` will be applied as well any any starting styles. Finally when
|
120
|
-
* `destroy()` is called then all styles will be removed.
|
47
|
+
* @publicApi
|
121
48
|
*/
|
122
|
-
declare class
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
static
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
49
|
+
declare abstract class AnimationDriver {
|
50
|
+
/**
|
51
|
+
* @deprecated Use the NoopAnimationDriver class.
|
52
|
+
*/
|
53
|
+
static NOOP: AnimationDriver;
|
54
|
+
abstract validateStyleProperty(prop: string): boolean;
|
55
|
+
abstract validateAnimatableStyleProperty?: (prop: string) => boolean;
|
56
|
+
abstract containsElement(elm1: any, elm2: any): boolean;
|
57
|
+
/**
|
58
|
+
* Obtains the parent element, if any. `null` is returned if the element does not have a parent.
|
59
|
+
*/
|
60
|
+
abstract getParentElement(element: unknown): unknown;
|
61
|
+
abstract query(element: any, selector: string, multi: boolean): any[];
|
62
|
+
abstract computeStyle(element: any, prop: string, defaultValue?: string): string;
|
63
|
+
abstract animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any;
|
133
64
|
}
|
134
65
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
66
|
+
declare abstract class AnimationStyleNormalizer {
|
67
|
+
abstract normalizePropertyName(propertyName: string, errors: Error[]): string;
|
68
|
+
abstract normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
|
69
|
+
}
|
70
|
+
declare class NoopAnimationStyleNormalizer {
|
71
|
+
normalizePropertyName(propertyName: string, errors: Error[]): string;
|
72
|
+
normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
|
142
73
|
}
|
143
74
|
|
144
|
-
|
75
|
+
declare class AnimationEngine {
|
145
76
|
private _driver;
|
146
77
|
private _normalizer;
|
147
78
|
private _transitionEngine;
|
148
79
|
private _timelineEngine;
|
149
80
|
private _triggerCache;
|
150
81
|
onRemovalComplete: (element: any, context: any) => void;
|
151
|
-
constructor(doc: Document, _driver: AnimationDriver, _normalizer:
|
82
|
+
constructor(doc: Document, _driver: AnimationDriver, _normalizer: AnimationStyleNormalizer);
|
152
83
|
registerTrigger(componentId: string, namespaceId: string, hostElement: any, name: string, metadata: AnimationTriggerMetadata): void;
|
153
84
|
register(namespaceId: string, hostElement: any): void;
|
154
85
|
destroy(namespaceId: string, context: any): void;
|
@@ -163,48 +94,59 @@ export declare class ɵAnimationEngine {
|
|
163
94
|
afterFlushAnimationsDone(cb: VoidFunction): void;
|
164
95
|
}
|
165
96
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
97
|
+
declare function createEngine(type: 'animations' | 'noop', doc: Document): AnimationEngine;
|
98
|
+
|
99
|
+
declare const enum AnimationTransitionInstructionType {
|
100
|
+
TransitionAnimation = 0,
|
101
|
+
TimelineAnimation = 1
|
102
|
+
}
|
103
|
+
interface AnimationEngineInstruction {
|
104
|
+
type: AnimationTransitionInstructionType;
|
171
105
|
}
|
172
106
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
begin(): void;
|
185
|
-
private _scheduleCountTask;
|
186
|
-
end(): void;
|
187
|
-
whenRenderingDone(): Promise<any>;
|
188
|
-
/**
|
189
|
-
* Used during HMR to clear any cached data about a component.
|
190
|
-
* @param componentId ID of the component that is being replaced.
|
191
|
-
*/
|
192
|
-
protected componentReplaced(componentId: string): void;
|
107
|
+
interface AnimationTimelineInstruction extends AnimationEngineInstruction {
|
108
|
+
element: any;
|
109
|
+
keyframes: Array<_StyleDataMap>;
|
110
|
+
preStyleProps: string[];
|
111
|
+
postStyleProps: string[];
|
112
|
+
duration: number;
|
113
|
+
delay: number;
|
114
|
+
totalTime: number;
|
115
|
+
easing: string | null;
|
116
|
+
stretchStartingKeyframe?: boolean;
|
117
|
+
subTimeline: boolean;
|
193
118
|
}
|
194
119
|
|
120
|
+
declare class ElementInstructionMap {
|
121
|
+
private _map;
|
122
|
+
get(element: any): AnimationTimelineInstruction[];
|
123
|
+
append(element: any, instructions: AnimationTimelineInstruction[]): void;
|
124
|
+
has(element: any): boolean;
|
125
|
+
clear(): void;
|
126
|
+
}
|
195
127
|
|
196
|
-
|
197
|
-
|
198
|
-
|
128
|
+
declare class Animation$1 {
|
129
|
+
private _driver;
|
130
|
+
private _animationAst;
|
131
|
+
constructor(_driver: AnimationDriver, input: AnimationMetadata | AnimationMetadata[]);
|
132
|
+
buildTimelines(element: any, startingStyles: _StyleDataMap | Array<_StyleDataMap>, destinationStyles: _StyleDataMap | Array<_StyleDataMap>, options: AnimationOptions, subInstructions?: ElementInstructionMap): AnimationTimelineInstruction[];
|
133
|
+
}
|
134
|
+
|
135
|
+
declare class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {
|
136
|
+
normalizePropertyName(propertyName: string, errors: Error[]): string;
|
137
|
+
normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
|
199
138
|
}
|
200
139
|
|
201
|
-
|
140
|
+
type AnimationFactoryWithListenerCallback = RendererFactory2 & {
|
141
|
+
scheduleListenerCallback: (count: number, fn: (e: any) => any, data: any) => void;
|
142
|
+
};
|
143
|
+
declare class BaseAnimationRenderer implements Renderer2 {
|
202
144
|
protected namespaceId: string;
|
203
145
|
delegate: Renderer2;
|
204
|
-
engine:
|
146
|
+
engine: AnimationEngine;
|
205
147
|
private _onDestroy?;
|
206
|
-
readonly ɵtype:
|
207
|
-
constructor(namespaceId: string, delegate: Renderer2, engine:
|
148
|
+
readonly ɵtype: _AnimationRendererType.Regular;
|
149
|
+
constructor(namespaceId: string, delegate: Renderer2, engine: AnimationEngine, _onDestroy?: (() => void) | undefined);
|
208
150
|
get data(): {
|
209
151
|
[key: string]: any;
|
210
152
|
};
|
@@ -230,29 +172,42 @@ export declare class ɵBaseAnimationRenderer implements Renderer2 {
|
|
230
172
|
listen(target: any, eventName: string, callback: (event: any) => boolean | void, options?: ListenerOptions): () => void;
|
231
173
|
protected disableAnimations(element: any, value: boolean): void;
|
232
174
|
}
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
export declare function ɵcreateEngine(type: 'animations' | 'noop', doc: Document): ɵAnimationEngine;
|
239
|
-
|
240
|
-
export declare function ɵgetParentElement(element: any): unknown | null;
|
241
|
-
|
242
|
-
export declare function ɵinvokeQuery(element: any, selector: string, multi: boolean): any[];
|
243
|
-
|
244
|
-
export declare class ɵNoopAnimationStyleNormalizer {
|
245
|
-
normalizePropertyName(propertyName: string, errors: Error[]): string;
|
246
|
-
normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
|
175
|
+
declare class AnimationRenderer extends BaseAnimationRenderer implements Renderer2 {
|
176
|
+
factory: AnimationFactoryWithListenerCallback;
|
177
|
+
constructor(factory: AnimationFactoryWithListenerCallback, namespaceId: string, delegate: Renderer2, engine: AnimationEngine, onDestroy?: () => void);
|
178
|
+
setProperty(el: any, name: string, value: any): void;
|
179
|
+
listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => any, options?: ListenerOptions): () => void;
|
247
180
|
}
|
248
181
|
|
249
|
-
|
250
|
-
|
251
|
-
|
182
|
+
declare class AnimationRendererFactory implements RendererFactory2 {
|
183
|
+
private delegate;
|
184
|
+
private engine;
|
185
|
+
private _zone;
|
186
|
+
private _currentId;
|
187
|
+
private _microtaskId;
|
188
|
+
private _animationCallbacksBuffer;
|
189
|
+
private _rendererCache;
|
190
|
+
private _cdRecurDepth;
|
191
|
+
constructor(delegate: RendererFactory2, engine: AnimationEngine, _zone: NgZone);
|
192
|
+
createRenderer(hostElement: any, type: RendererType2): BaseAnimationRenderer;
|
193
|
+
begin(): void;
|
194
|
+
private _scheduleCountTask;
|
195
|
+
end(): void;
|
196
|
+
whenRenderingDone(): Promise<any>;
|
197
|
+
/**
|
198
|
+
* Used during HMR to clear any cached data about a component.
|
199
|
+
* @param componentId ID of the component that is being replaced.
|
200
|
+
*/
|
201
|
+
protected componentReplaced(componentId: string): void;
|
202
|
+
}
|
252
203
|
|
253
|
-
|
204
|
+
declare function getParentElement(element: any): unknown | null;
|
205
|
+
declare function validateStyleProperty(prop: string): boolean;
|
206
|
+
declare function validateWebAnimatableStyleProperty(prop: string): boolean;
|
207
|
+
declare function containsElement(elm1: any, elm2: any): boolean;
|
208
|
+
declare function invokeQuery(element: any, selector: string, multi: boolean): any[];
|
254
209
|
|
255
|
-
|
210
|
+
declare class WebAnimationsDriver implements AnimationDriver {
|
256
211
|
validateStyleProperty(prop: string): boolean;
|
257
212
|
validateAnimatableStyleProperty(prop: string): boolean;
|
258
213
|
containsElement(elm1: any, elm2: any): boolean;
|
@@ -262,9 +217,30 @@ export declare class ɵWebAnimationsDriver implements AnimationDriver {
|
|
262
217
|
animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: AnimationPlayer[]): AnimationPlayer;
|
263
218
|
}
|
264
219
|
|
265
|
-
|
220
|
+
/**
|
221
|
+
* Designed to be executed during a keyframe-based animation to apply any special-cased styles.
|
222
|
+
*
|
223
|
+
* When started (when the `start()` method is run) then the provided `startStyles`
|
224
|
+
* will be applied. When finished (when the `finish()` method is called) the
|
225
|
+
* `endStyles` will be applied as well any any starting styles. Finally when
|
226
|
+
* `destroy()` is called then all styles will be removed.
|
227
|
+
*/
|
228
|
+
declare class SpecialCasedStyles {
|
229
|
+
private _element;
|
230
|
+
private _startStyles;
|
231
|
+
private _endStyles;
|
232
|
+
static initialStylesByElement: WeakMap<any, _StyleDataMap>;
|
233
|
+
private _state;
|
234
|
+
private _initialStyles;
|
235
|
+
constructor(_element: any, _startStyles: _StyleDataMap | null, _endStyles: _StyleDataMap | null);
|
236
|
+
start(): void;
|
237
|
+
finish(): void;
|
238
|
+
destroy(): void;
|
239
|
+
}
|
240
|
+
|
241
|
+
declare class WebAnimationsPlayer implements AnimationPlayer {
|
266
242
|
element: any;
|
267
|
-
keyframes: Array
|
243
|
+
keyframes: Array<_StyleDataMap>;
|
268
244
|
options: {
|
269
245
|
[key: string]: string | number;
|
270
246
|
};
|
@@ -284,8 +260,8 @@ export declare class ɵWebAnimationsPlayer implements AnimationPlayer {
|
|
284
260
|
readonly domPlayer: Animation;
|
285
261
|
time: number;
|
286
262
|
parentPlayer: AnimationPlayer | null;
|
287
|
-
currentSnapshot:
|
288
|
-
constructor(element: any, keyframes: Array
|
263
|
+
currentSnapshot: _StyleDataMap;
|
264
|
+
constructor(element: any, keyframes: Array<_StyleDataMap>, options: {
|
289
265
|
[key: string]: string | number;
|
290
266
|
}, _specialStyles?: (SpecialCasedStyles | null) | undefined);
|
291
267
|
private _onFinish;
|
@@ -310,9 +286,8 @@ export declare class ɵWebAnimationsPlayer implements AnimationPlayer {
|
|
310
286
|
beforeDestroy(): void;
|
311
287
|
}
|
312
288
|
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
}
|
289
|
+
declare function normalizeKeyframes(keyframes: Array<_StyleData> | Array<_StyleDataMap>): Array<_StyleDataMap>;
|
290
|
+
declare function camelCaseToDashCase(input: string): string;
|
291
|
+
declare function allowPreviousPlayerStylesMerge(duration: number, delay: number): boolean;
|
317
292
|
|
318
|
-
export { }
|
293
|
+
export { AnimationDriver, NoopAnimationDriver, Animation$1 as ɵAnimation, AnimationEngine as ɵAnimationEngine, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, AnimationStyleNormalizer as ɵAnimationStyleNormalizer, BaseAnimationRenderer as ɵBaseAnimationRenderer, NoopAnimationStyleNormalizer as ɵNoopAnimationStyleNormalizer, WebAnimationsDriver as ɵWebAnimationsDriver, WebAnimationsPlayer as ɵWebAnimationsPlayer, WebAnimationsStyleNormalizer as ɵWebAnimationsStyleNormalizer, allowPreviousPlayerStylesMerge as ɵallowPreviousPlayerStylesMerge, camelCaseToDashCase as ɵcamelCaseToDashCase, containsElement as ɵcontainsElement, createEngine as ɵcreateEngine, getParentElement as ɵgetParentElement, invokeQuery as ɵinvokeQuery, normalizeKeyframes as ɵnormalizeKeyframes, validateStyleProperty as ɵvalidateStyleProperty, validateWebAnimatableStyleProperty as ɵvalidateWebAnimatableStyleProperty };
|
@@ -1,19 +1,16 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.2.
|
2
|
+
* @license Angular v19.2.2
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
7
|
-
|
7
|
+
import { AnimationPlayer, ɵStyleDataMap as _StyleDataMap, NoopAnimationPlayer } from '@angular/animations';
|
8
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
9
|
|
13
10
|
/**
|
14
11
|
* @publicApi
|
15
12
|
*/
|
16
|
-
|
13
|
+
declare class MockAnimationDriver implements AnimationDriver {
|
17
14
|
static log: AnimationPlayer[];
|
18
15
|
validateStyleProperty(prop: string): boolean;
|
19
16
|
validateAnimatableStyleProperty(prop: string): boolean;
|
@@ -21,26 +18,25 @@ export declare class MockAnimationDriver implements AnimationDriver {
|
|
21
18
|
getParentElement(element: unknown): unknown;
|
22
19
|
query(element: any, selector: string, multi: boolean): any[];
|
23
20
|
computeStyle(element: any, prop: string, defaultValue?: string): string;
|
24
|
-
animate(element: any, keyframes: Array
|
21
|
+
animate(element: any, keyframes: Array<_StyleDataMap>, duration: number, delay: number, easing: string, previousPlayers?: any[]): MockAnimationPlayer;
|
25
22
|
}
|
26
|
-
|
27
23
|
/**
|
28
24
|
* @publicApi
|
29
25
|
*/
|
30
|
-
|
26
|
+
declare class MockAnimationPlayer extends NoopAnimationPlayer {
|
31
27
|
element: any;
|
32
|
-
keyframes: Array
|
28
|
+
keyframes: Array<_StyleDataMap>;
|
33
29
|
duration: number;
|
34
30
|
delay: number;
|
35
31
|
easing: string;
|
36
32
|
previousPlayers: any[];
|
37
33
|
private __finished;
|
38
34
|
private __started;
|
39
|
-
previousStyles:
|
35
|
+
previousStyles: _StyleDataMap;
|
40
36
|
private _onInitFns;
|
41
|
-
currentSnapshot:
|
37
|
+
currentSnapshot: _StyleDataMap;
|
42
38
|
private _keyframes;
|
43
|
-
constructor(element: any, keyframes: Array
|
39
|
+
constructor(element: any, keyframes: Array<_StyleDataMap>, duration: number, delay: number, easing: string, previousPlayers: any[]);
|
44
40
|
reset(): void;
|
45
41
|
finish(): void;
|
46
42
|
destroy(): void;
|
@@ -49,4 +45,4 @@ export declare class MockAnimationPlayer extends NoopAnimationPlayer {
|
|
49
45
|
beforeDestroy(): void;
|
50
46
|
}
|
51
47
|
|
52
|
-
export { }
|
48
|
+
export { MockAnimationDriver, MockAnimationPlayer };
|
package/fesm2022/animations.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.2.
|
2
|
+
* @license Angular v19.2.2
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
7
7
|
import { DOCUMENT } from '@angular/common';
|
8
8
|
import * as i0 from '@angular/core';
|
9
|
-
import { inject,
|
9
|
+
import { inject, ANIMATION_MODULE_TYPE, ViewEncapsulation, ɵRuntimeError as _RuntimeError, Injectable, Inject } from '@angular/core';
|
10
10
|
|
11
11
|
/**
|
12
12
|
* @description Constants for the categories of parameters that can be defined for animations.
|
@@ -982,10 +982,10 @@ function stagger(timings, animation) {
|
|
982
982
|
* @publicApi
|
983
983
|
*/
|
984
984
|
class AnimationBuilder {
|
985
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
986
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
985
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AnimationBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
986
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AnimationBuilder, providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) });
|
987
987
|
}
|
988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AnimationBuilder, decorators: [{
|
989
989
|
type: Injectable,
|
990
990
|
args: [{ providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) }]
|
991
991
|
}] });
|
@@ -1013,7 +1013,7 @@ class BrowserAnimationBuilder extends AnimationBuilder {
|
|
1013
1013
|
this._renderer = rootRenderer.createRenderer(doc.body, typeData);
|
1014
1014
|
if (this.animationModuleType === null && !isAnimationRenderer(this._renderer)) {
|
1015
1015
|
// We only support AnimationRenderer & DynamicDelegationRenderer for this AnimationBuilder
|
1016
|
-
throw new
|
1016
|
+
throw new _RuntimeError(3600 /* RuntimeErrorCode.BROWSER_ANIMATION_BUILDER_INJECTED_WITHOUT_ANIMATIONS */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
1017
1017
|
'Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. ' +
|
1018
1018
|
'Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.');
|
1019
1019
|
}
|
@@ -1025,10 +1025,10 @@ class BrowserAnimationBuilder extends AnimationBuilder {
|
|
1025
1025
|
issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
|
1026
1026
|
return new BrowserAnimationFactory(id, this._renderer);
|
1027
1027
|
}
|
1028
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1029
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
1028
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1029
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserAnimationBuilder, providedIn: 'root' });
|
1030
1030
|
}
|
1031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
|
1032
1032
|
type: Injectable,
|
1033
1033
|
args: [{ providedIn: 'root' }]
|
1034
1034
|
}], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: Document, decorators: [{
|
@@ -1371,23 +1371,5 @@ class AnimationGroupPlayer {
|
|
1371
1371
|
|
1372
1372
|
const ɵPRE_STYLE = '!';
|
1373
1373
|
|
1374
|
-
/**
|
1375
|
-
* @module
|
1376
|
-
* @description
|
1377
|
-
* Entry point for all animation APIs of the animation package.
|
1378
|
-
*/
|
1379
|
-
|
1380
|
-
/**
|
1381
|
-
* @module
|
1382
|
-
* @description
|
1383
|
-
* Entry point for all public APIs of this package.
|
1384
|
-
*/
|
1385
|
-
|
1386
|
-
// This file is not used to build this module. It is only used during editing
|
1387
|
-
|
1388
|
-
/**
|
1389
|
-
* Generated bundle index. Do not edit.
|
1390
|
-
*/
|
1391
|
-
|
1392
1374
|
export { AUTO_STYLE, AnimationBuilder, AnimationFactory, AnimationMetadataType, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, AnimationGroupPlayer as ɵAnimationGroupPlayer, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, ɵPRE_STYLE };
|
1393
1375
|
//# sourceMappingURL=animations.mjs.map
|