@angular/animations 20.2.0-next.1 → 20.2.0-next.3

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.1
2
+ * @license Angular v20.2.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,6 +10,8 @@ import { AnimationPlayer } from './animation_player.d.js';
10
10
  /**
11
11
  * @publicApi
12
12
  *
13
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
14
+ *
13
15
  * `AnimationDriver` implentation for Noop animations
14
16
  */
15
17
  declare class NoopAnimationDriver implements AnimationDriver {
@@ -44,6 +46,8 @@ declare class NoopAnimationDriver implements AnimationDriver {
44
46
  }
45
47
  /**
46
48
  * @publicApi
49
+ *
50
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
47
51
  */
48
52
  declare abstract class AnimationDriver {
49
53
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.1
2
+ * @license Angular v20.2.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -19,6 +19,8 @@ type ɵStyleDataMap = Map<string, string | number>;
19
19
  * @see {@link animate}
20
20
  *
21
21
  * @publicApi
22
+ *
23
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
22
24
  */
23
25
  declare type AnimateTimings = {
24
26
  /**
@@ -59,6 +61,8 @@ declare type AnimateTimings = {
59
61
  * make use of `AnimationOptions`.
60
62
  *
61
63
  * @publicApi
64
+ *
65
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
62
66
  */
63
67
  declare interface AnimationOptions {
64
68
  /**
@@ -83,6 +87,8 @@ declare interface AnimationOptions {
83
87
  * @see {@link animateChild}
84
88
  *
85
89
  * @publicApi
90
+ *
91
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
86
92
  */
87
93
  declare interface AnimateChildOptions extends AnimationOptions {
88
94
  duration?: number | string;
@@ -94,6 +100,8 @@ declare interface AnimateChildOptions extends AnimationOptions {
94
100
  * collects them into a corresponding `AnimationMetadata` object.
95
101
  *
96
102
  * @publicApi
103
+ *
104
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
97
105
  */
98
106
  declare enum AnimationMetadataType {
99
107
  /**
@@ -166,12 +174,16 @@ declare enum AnimationMetadataType {
166
174
  * Specifies automatic styling.
167
175
  *
168
176
  * @publicApi
177
+ *
178
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
169
179
  */
170
180
  declare const AUTO_STYLE = "*";
171
181
  /**
172
182
  * Base for animation data structures.
173
183
  *
174
184
  * @publicApi
185
+ *
186
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
175
187
  */
176
188
  interface AnimationMetadata {
177
189
  type: AnimationMetadataType;
@@ -181,6 +193,8 @@ interface AnimationMetadata {
181
193
  * `trigger()` function.
182
194
  *
183
195
  * @publicApi
196
+ *
197
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
184
198
  */
185
199
  interface AnimationTriggerMetadata extends AnimationMetadata {
186
200
  /**
@@ -207,6 +221,8 @@ interface AnimationTriggerMetadata extends AnimationMetadata {
207
221
  * Instantiated and returned by the [`state()`](api/animations/state) function.
208
222
  *
209
223
  * @publicApi
224
+ *
225
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
210
226
  */
211
227
  interface AnimationStateMetadata extends AnimationMetadata {
212
228
  /**
@@ -233,6 +249,8 @@ interface AnimationStateMetadata extends AnimationMetadata {
233
249
  * `transition()` function.
234
250
  *
235
251
  * @publicApi
252
+ *
253
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
236
254
  */
237
255
  interface AnimationTransitionMetadata extends AnimationMetadata {
238
256
  /**
@@ -258,6 +276,8 @@ interface AnimationTransitionMetadata extends AnimationMetadata {
258
276
  * passed to the `useAnimation()` function.
259
277
  *
260
278
  * @publicApi
279
+ *
280
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
261
281
  */
262
282
  interface AnimationReferenceMetadata extends AnimationMetadata {
263
283
  /**
@@ -276,6 +296,8 @@ interface AnimationReferenceMetadata extends AnimationMetadata {
276
296
  * the `query()` function.
277
297
  *
278
298
  * @publicApi
299
+ *
300
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
279
301
  */
280
302
  interface AnimationQueryMetadata extends AnimationMetadata {
281
303
  /**
@@ -296,6 +318,8 @@ interface AnimationQueryMetadata extends AnimationMetadata {
296
318
  * the `keyframes()` function.
297
319
  *
298
320
  * @publicApi
321
+ *
322
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
299
323
  */
300
324
  interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {
301
325
  /**
@@ -308,6 +332,8 @@ interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {
308
332
  * the `style()` function.
309
333
  *
310
334
  * @publicApi
335
+ *
336
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
311
337
  */
312
338
  interface AnimationStyleMetadata extends AnimationMetadata {
313
339
  /**
@@ -328,6 +354,8 @@ interface AnimationStyleMetadata extends AnimationMetadata {
328
354
  * the `animate()` function.
329
355
  *
330
356
  * @publicApi
357
+ *
358
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
331
359
  */
332
360
  interface AnimationAnimateMetadata extends AnimationMetadata {
333
361
  /**
@@ -344,6 +372,8 @@ interface AnimationAnimateMetadata extends AnimationMetadata {
344
372
  * Instantiated and returned by the `animateChild` function.
345
373
  *
346
374
  * @publicApi
375
+ *
376
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
347
377
  */
348
378
  interface AnimationAnimateChildMetadata extends AnimationMetadata {
349
379
  /**
@@ -358,6 +388,8 @@ interface AnimationAnimateChildMetadata extends AnimationMetadata {
358
388
  * Instantiated and returned by the `useAnimation()` function.
359
389
  *
360
390
  * @publicApi
391
+ *
392
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
361
393
  */
362
394
  interface AnimationAnimateRefMetadata extends AnimationMetadata {
363
395
  /**
@@ -376,6 +408,8 @@ interface AnimationAnimateRefMetadata extends AnimationMetadata {
376
408
  * Instantiated and returned by the `sequence()` function.
377
409
  *
378
410
  * @publicApi
411
+ *
412
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
379
413
  */
380
414
  interface AnimationSequenceMetadata extends AnimationMetadata {
381
415
  /**
@@ -394,6 +428,8 @@ interface AnimationSequenceMetadata extends AnimationMetadata {
394
428
  * Instantiated and returned by the `group()` function.
395
429
  *
396
430
  * @publicApi
431
+ *
432
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
397
433
  */
398
434
  interface AnimationGroupMetadata extends AnimationMetadata {
399
435
  /**
@@ -412,6 +448,8 @@ interface AnimationGroupMetadata extends AnimationMetadata {
412
448
  * Passed to the `query()` function.
413
449
  *
414
450
  * @publicApi
451
+ *
452
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
415
453
  */
416
454
  declare interface AnimationQueryOptions extends AnimationOptions {
417
455
  /**
@@ -433,6 +471,8 @@ declare interface AnimationQueryOptions extends AnimationOptions {
433
471
  * Instantiated and returned by the `stagger()` function.
434
472
  *
435
473
  * @publicApi
474
+ *
475
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
436
476
  **/
437
477
  interface AnimationStaggerMetadata extends AnimationMetadata {
438
478
  /**
@@ -591,6 +631,8 @@ interface AnimationStaggerMetadata extends AnimationMetadata {
591
631
  * the `.disabled` flag on the event is true.
592
632
  *
593
633
  * @publicApi
634
+ *
635
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
594
636
  */
595
637
  declare function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata;
596
638
  /**
@@ -650,6 +692,8 @@ declare function trigger(name: string, definitions: AnimationMetadata[]): Animat
650
692
  * ```
651
693
  *
652
694
  * @publicApi
695
+ *
696
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
653
697
  */
654
698
  declare function animate(timings: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null): AnimationAnimateMetadata;
655
699
  /**
@@ -684,6 +728,8 @@ declare function animate(timings: string | number, styles?: AnimationStyleMetada
684
728
  * instruction until all of the inner animation steps have completed.
685
729
  *
686
730
  * @publicApi
731
+ *
732
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
687
733
  */
688
734
  declare function group(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationGroupMetadata;
689
735
  /**
@@ -718,6 +764,8 @@ declare function group(steps: AnimationMetadata[], options?: AnimationOptions |
718
764
  * steps have completed.
719
765
  *
720
766
  * @publicApi
767
+ *
768
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
721
769
  **/
722
770
  declare function sequence(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationSequenceMetadata;
723
771
  /**
@@ -758,6 +806,8 @@ declare function sequence(steps: AnimationMetadata[], options?: AnimationOptions
758
806
  * ```
759
807
  *
760
808
  * @publicApi
809
+ *
810
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
761
811
  **/
762
812
  declare function style(tokens: '*' | {
763
813
  [key: string]: string | number;
@@ -792,6 +842,8 @@ declare function style(tokens: '*' | {
792
842
  * even when the animation ends.
793
843
  *
794
844
  * @publicApi
845
+ *
846
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
795
847
  **/
796
848
  declare function state(name: string, styles: AnimationStyleMetadata, options?: {
797
849
  params: {
@@ -842,6 +894,8 @@ declare function state(name: string, styles: AnimationStyleMetadata, options?: {
842
894
  *```
843
895
 
844
896
  * @publicApi
897
+ *
898
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
845
899
  */
846
900
  declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
847
901
  /**
@@ -989,6 +1043,8 @@ declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesS
989
1043
  * ```
990
1044
  *
991
1045
  * @publicApi
1046
+ *
1047
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
992
1048
  **/
993
1049
  declare function transition(stateChangeExpr: string | ((fromState: string, toState: string, element?: any, params?: {
994
1050
  [key: string]: any;
@@ -1037,6 +1093,8 @@ declare function transition(stateChangeExpr: string | ((fromState: string, toSta
1037
1093
  * animated, `useAnimation()` throws an error.
1038
1094
  *
1039
1095
  * @publicApi
1096
+ *
1097
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1040
1098
  */
1041
1099
  declare function animation(steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationReferenceMetadata;
1042
1100
  /**
@@ -1057,6 +1115,8 @@ declare function animation(steps: AnimationMetadata | AnimationMetadata[], optio
1057
1115
  * and transitions are not handled by this API.
1058
1116
  *
1059
1117
  * @publicApi
1118
+ *
1119
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1060
1120
  */
1061
1121
  declare function animateChild(options?: AnimateChildOptions | null): AnimationAnimateChildMetadata;
1062
1122
  /**
@@ -1068,6 +1128,8 @@ declare function animateChild(options?: AnimateChildOptions | null): AnimationAn
1068
1128
  * @return An object that contains the animation parameters.
1069
1129
  *
1070
1130
  * @publicApi
1131
+ *
1132
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1071
1133
  */
1072
1134
  declare function useAnimation(animation: AnimationReferenceMetadata, options?: AnimationOptions | null): AnimationAnimateRefMetadata;
1073
1135
  /**
@@ -1189,6 +1251,8 @@ declare function useAnimation(animation: AnimationReferenceMetadata, options?: A
1189
1251
  * ```
1190
1252
  *
1191
1253
  * @publicApi
1254
+ *
1255
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1192
1256
  */
1193
1257
  declare function query(selector: string, animation: AnimationMetadata | AnimationMetadata[], options?: AnimationQueryOptions | null): AnimationQueryMetadata;
1194
1258
  /**
@@ -1270,6 +1334,8 @@ declare function query(selector: string, animation: AnimationMetadata | Animatio
1270
1334
  * ```
1271
1335
  *
1272
1336
  * @publicApi
1337
+ *
1338
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1273
1339
  */
1274
1340
  declare function stagger(timings: string | number, animation: AnimationMetadata | AnimationMetadata[]): AnimationStaggerMetadata;
1275
1341
 
@@ -1285,6 +1351,8 @@ declare function stagger(timings: string | number, animation: AnimationMetadata
1285
1351
  * @see {@link animate}
1286
1352
  *
1287
1353
  * @publicApi
1354
+ *
1355
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1288
1356
  */
1289
1357
  interface AnimationPlayer {
1290
1358
  /**
@@ -1372,6 +1440,8 @@ interface AnimationPlayer {
1372
1440
  * @see {@link AnimationPlayer}
1373
1441
  *
1374
1442
  * @publicApi
1443
+ *
1444
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
1375
1445
  */
1376
1446
  declare class NoopAnimationPlayer implements AnimationPlayer {
1377
1447
  private _onDoneFns;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.1
2
+ * @license Angular v20.2.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.1
2
+ * @license Angular v20.2.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,6 +10,8 @@ import '@angular/core';
10
10
 
11
11
  /**
12
12
  * @publicApi
13
+ *
14
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
13
15
  */
14
16
  declare class MockAnimationDriver implements AnimationDriver {
15
17
  static log: AnimationPlayer[];
@@ -23,6 +25,8 @@ declare class MockAnimationDriver implements AnimationDriver {
23
25
  }
24
26
  /**
25
27
  * @publicApi
28
+ *
29
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
26
30
  */
27
31
  declare class MockAnimationPlayer extends NoopAnimationPlayer {
28
32
  element: any;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.1
2
+ * @license Angular v20.2.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -55,12 +55,14 @@ export { AUTO_STYLE, AnimationMetadataType, NoopAnimationPlayer, animate, animat
55
55
  * ```
56
56
  *
57
57
  * @publicApi
58
+ *
59
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
58
60
  */
59
61
  class AnimationBuilder {
60
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: AnimationBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
61
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: AnimationBuilder, providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) });
62
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: AnimationBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
63
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: AnimationBuilder, providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) });
62
64
  }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: AnimationBuilder, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: AnimationBuilder, decorators: [{
64
66
  type: Injectable,
65
67
  args: [{ providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) }]
66
68
  }] });
@@ -70,6 +72,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1",
70
72
  * method.
71
73
  *
72
74
  * @publicApi
75
+ *
76
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
73
77
  */
74
78
  class AnimationFactory {
75
79
  }
@@ -100,10 +104,10 @@ class BrowserAnimationBuilder extends AnimationBuilder {
100
104
  issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
101
105
  return new BrowserAnimationFactory(id, this._renderer);
102
106
  }
103
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
104
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: BrowserAnimationBuilder, providedIn: 'root' });
107
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
108
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: BrowserAnimationBuilder, providedIn: 'root' });
105
109
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
107
111
  type: Injectable,
108
112
  args: [{ providedIn: 'root' }]
109
113
  }], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: Document, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"animations.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/packages/animations/src/animation_builder.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {DOCUMENT} from '@angular/common';\nimport {\n ANIMATION_MODULE_TYPE,\n Inject,\n inject,\n Injectable,\n Renderer2,\n RendererFactory2,\n RendererType2,\n ViewEncapsulation,\n ɵAnimationRendererType as AnimationRendererType,\n ɵRuntimeError as RuntimeError,\n} from '@angular/core';\n\nimport {AnimationMetadata, AnimationOptions, sequence} from './animation_metadata';\nimport {RuntimeErrorCode} from './errors';\nimport {AnimationPlayer} from './players/animation_player';\n\n/**\n * An injectable service that produces an animation sequence programmatically within an\n * Angular component or directive.\n * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.\n *\n * @usageNotes\n *\n * To use this service, add it to your component or directive as a dependency.\n * The service is instantiated along with your component.\n *\n * Apps do not typically need to create their own animation players, but if you\n * do need to, follow these steps:\n *\n * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method\n * to create a programmatic animation. The method returns an `AnimationFactory` instance.\n *\n * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.\n *\n * 3. Use the player object to control the animation programmatically.\n *\n * For example:\n *\n * ```ts\n * // import the service from BrowserAnimationsModule\n * import {AnimationBuilder} from '@angular/animations';\n * // require the service as a dependency\n * class MyCmp {\n * constructor(private _builder: AnimationBuilder) {}\n *\n * makeAnimation(element: any) {\n * // first define a reusable animation\n * const myAnimation = this._builder.build([\n * style({ width: 0 }),\n * animate(1000, style({ width: '100px' }))\n * ]);\n *\n * // use the returned factory object to create a player\n * const player = myAnimation.create(element);\n *\n * player.play();\n * }\n * }\n * ```\n *\n * @publicApi\n */\n@Injectable({providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder)})\nexport abstract class AnimationBuilder {\n /**\n * Builds a factory for producing a defined animation.\n * @param animation A reusable animation definition.\n * @returns A factory object that can create a player for the defined animation.\n * @see {@link animate}\n */\n abstract build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;\n}\n\n/**\n * A factory object returned from the\n * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>\n * method.\n *\n * @publicApi\n */\nexport abstract class AnimationFactory {\n /**\n * Creates an `AnimationPlayer` instance for the reusable animation defined by\n * the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>\n * method that created this factory and attaches the new player a DOM element.\n *\n * @param element The DOM element to which to attach the player.\n * @param options A set of options that can include a time delay and\n * additional developer-defined parameters.\n */\n abstract create(element: any, options?: AnimationOptions): AnimationPlayer;\n}\n\n@Injectable({providedIn: 'root'})\nexport class BrowserAnimationBuilder extends AnimationBuilder {\n private animationModuleType = inject(ANIMATION_MODULE_TYPE, {optional: true});\n private _nextAnimationId = 0;\n private _renderer: Renderer2;\n\n constructor(rootRenderer: RendererFactory2, @Inject(DOCUMENT) doc: Document) {\n super();\n const typeData: RendererType2 = {\n id: '0',\n encapsulation: ViewEncapsulation.None,\n styles: [],\n data: {animation: []},\n };\n this._renderer = rootRenderer.createRenderer(doc.body, typeData);\n\n if (this.animationModuleType === null && !isAnimationRenderer(this._renderer)) {\n // We only support AnimationRenderer & DynamicDelegationRenderer for this AnimationBuilder\n\n throw new RuntimeError(\n RuntimeErrorCode.BROWSER_ANIMATION_BUILDER_INJECTED_WITHOUT_ANIMATIONS,\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. ' +\n 'Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.',\n );\n }\n }\n\n override build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory {\n const id = this._nextAnimationId;\n this._nextAnimationId++;\n const entry = Array.isArray(animation) ? sequence(animation) : animation;\n issueAnimationCommand(this._renderer, null, id, 'register', [entry]);\n return new BrowserAnimationFactory(id, this._renderer);\n }\n}\n\nclass BrowserAnimationFactory extends AnimationFactory {\n constructor(\n private _id: number,\n private _renderer: Renderer2,\n ) {\n super();\n }\n\n override create(element: any, options?: AnimationOptions): AnimationPlayer {\n return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);\n }\n}\n\nclass RendererAnimationPlayer implements AnimationPlayer {\n public parentPlayer: AnimationPlayer | null = null;\n private _started = false;\n\n constructor(\n public id: number,\n public element: any,\n options: AnimationOptions,\n private _renderer: Renderer2,\n ) {\n this._command('create', options);\n }\n\n private _listen(eventName: string, callback: (event: any) => any): () => void {\n return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);\n }\n\n private _command(command: string, ...args: any[]): void {\n issueAnimationCommand(this._renderer, this.element, this.id, command, args);\n }\n\n onDone(fn: () => void): void {\n this._listen('done', fn);\n }\n\n onStart(fn: () => void): void {\n this._listen('start', fn);\n }\n\n onDestroy(fn: () => void): void {\n this._listen('destroy', fn);\n }\n\n init(): void {\n this._command('init');\n }\n\n hasStarted(): boolean {\n return this._started;\n }\n\n play(): void {\n this._command('play');\n this._started = true;\n }\n\n pause(): void {\n this._command('pause');\n }\n\n restart(): void {\n this._command('restart');\n }\n\n finish(): void {\n this._command('finish');\n }\n\n destroy(): void {\n this._command('destroy');\n }\n\n reset(): void {\n this._command('reset');\n this._started = false;\n }\n\n setPosition(p: number): void {\n this._command('setPosition', p);\n }\n\n getPosition(): number {\n return unwrapAnimationRenderer(this._renderer)?.engine?.players[this.id]?.getPosition() ?? 0;\n }\n\n public totalTime = 0;\n}\n\nfunction issueAnimationCommand(\n renderer: Renderer2,\n element: any,\n id: number,\n command: string,\n args: any[],\n): void {\n renderer.setProperty(element, `@@${id}:${command}`, args);\n}\n\n/**\n * The following 2 methods cannot reference their correct types (AnimationRenderer &\n * DynamicDelegationRenderer) since this would introduce a import cycle.\n */\n\nfunction unwrapAnimationRenderer(\n renderer: Renderer2,\n): {engine: {players: AnimationPlayer[]}} | null {\n const type = (renderer as unknown as {ɵtype: AnimationRendererType}).ɵtype;\n if (type === AnimationRendererType.Regular) {\n return renderer as any;\n } else if (type === AnimationRendererType.Delegated) {\n return (renderer as any).animationRenderer;\n }\n\n return null;\n}\n\nfunction isAnimationRenderer(renderer: Renderer2): boolean {\n const type = (renderer as unknown as {ɵtype: AnimationRendererType}).ɵtype;\n return type === AnimationRendererType.Regular || type === AnimationRendererType.Delegated;\n}\n"],"names":["RuntimeError"],"mappings":";;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CG;MAEmB,gBAAgB,CAAA;kHAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;sHAAhB,gBAAgB,EAAA,UAAA,EADb,MAAM,EAAc,UAAA,EAAA,MAAM,MAAM,CAAC,uBAAuB,CAAC,EAAA,CAAA;;sGAC5D,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA,EAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC,uBAAuB,CAAC,EAAC;;AAWnF;;;;;;AAMG;MACmB,gBAAgB,CAAA;AAWrC;AAGK,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA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,CAAC;AACtB,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK;;AAGvB,IAAA,WAAW,CAAC,CAAS,EAAA;AACnB,QAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;;IAGjC,WAAW,GAAA;QACT,OAAO,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC;;IAGvF,SAAS,GAAG,CAAC;AACrB;AAED,SAAS,qBAAqB,CAC5B,QAAmB,EACnB,OAAY,EACZ,EAAU,EACV,OAAe,EACf,IAAW,EAAA;AAEX,IAAA,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,CAAA,EAAA,EAAK,EAAE,CAAA,CAAA,EAAI,OAAO,CAAA,CAAE,EAAE,IAAI,CAAC;AAC3D;AAEA;;;AAGG;AAEH,SAAS,uBAAuB,CAC9B,QAAmB,EAAA;AAEnB,IAAA,MAAM,IAAI,GAAI,QAAsD,CAAC,KAAK;IAC1E,IAAI,IAAI,KAAkC,CAAA,sCAAE;AAC1C,QAAA,OAAO,QAAe;;SACjB,IAAI,IAAI,KAAoC,CAAA,wCAAE;QACnD,OAAQ,QAAgB,CAAC,iBAAiB;;AAG5C,IAAA,OAAO,IAAI;AACb;AAEA,SAAS,mBAAmB,CAAC,QAAmB,EAAA;AAC9C,IAAA,MAAM,IAAI,GAAI,QAAsD,CAAC,KAAK;AAC1E,IAAA,OAAO,IAAI,KAAA,CAAA,wCAAsC,IAAI;AACvD;;;;"}
1
+ {"version":3,"file":"animations.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/packages/animations/src/animation_builder.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {DOCUMENT} from '@angular/common';\nimport {\n ANIMATION_MODULE_TYPE,\n Inject,\n inject,\n Injectable,\n Renderer2,\n RendererFactory2,\n RendererType2,\n ViewEncapsulation,\n ɵAnimationRendererType as AnimationRendererType,\n ɵRuntimeError as RuntimeError,\n} from '@angular/core';\n\nimport {AnimationMetadata, AnimationOptions, sequence} from './animation_metadata';\nimport {RuntimeErrorCode} from './errors';\nimport {AnimationPlayer} from './players/animation_player';\n\n/**\n * An injectable service that produces an animation sequence programmatically within an\n * Angular component or directive.\n * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.\n *\n * @usageNotes\n *\n * To use this service, add it to your component or directive as a dependency.\n * The service is instantiated along with your component.\n *\n * Apps do not typically need to create their own animation players, but if you\n * do need to, follow these steps:\n *\n * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method\n * to create a programmatic animation. The method returns an `AnimationFactory` instance.\n *\n * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.\n *\n * 3. Use the player object to control the animation programmatically.\n *\n * For example:\n *\n * ```ts\n * // import the service from BrowserAnimationsModule\n * import {AnimationBuilder} from '@angular/animations';\n * // require the service as a dependency\n * class MyCmp {\n * constructor(private _builder: AnimationBuilder) {}\n *\n * makeAnimation(element: any) {\n * // first define a reusable animation\n * const myAnimation = this._builder.build([\n * style({ width: 0 }),\n * animate(1000, style({ width: '100px' }))\n * ]);\n *\n * // use the returned factory object to create a player\n * const player = myAnimation.create(element);\n *\n * player.play();\n * }\n * }\n * ```\n *\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\n@Injectable({providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder)})\nexport abstract class AnimationBuilder {\n /**\n * Builds a factory for producing a defined animation.\n * @param animation A reusable animation definition.\n * @returns A factory object that can create a player for the defined animation.\n * @see {@link animate}\n */\n abstract build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;\n}\n\n/**\n * A factory object returned from the\n * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>\n * method.\n *\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\nexport abstract class AnimationFactory {\n /**\n * Creates an `AnimationPlayer` instance for the reusable animation defined by\n * the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>\n * method that created this factory and attaches the new player a DOM element.\n *\n * @param element The DOM element to which to attach the player.\n * @param options A set of options that can include a time delay and\n * additional developer-defined parameters.\n */\n abstract create(element: any, options?: AnimationOptions): AnimationPlayer;\n}\n\n@Injectable({providedIn: 'root'})\nexport class BrowserAnimationBuilder extends AnimationBuilder {\n private animationModuleType = inject(ANIMATION_MODULE_TYPE, {optional: true});\n private _nextAnimationId = 0;\n private _renderer: Renderer2;\n\n constructor(rootRenderer: RendererFactory2, @Inject(DOCUMENT) doc: Document) {\n super();\n const typeData: RendererType2 = {\n id: '0',\n encapsulation: ViewEncapsulation.None,\n styles: [],\n data: {animation: []},\n };\n this._renderer = rootRenderer.createRenderer(doc.body, typeData);\n\n if (this.animationModuleType === null && !isAnimationRenderer(this._renderer)) {\n // We only support AnimationRenderer & DynamicDelegationRenderer for this AnimationBuilder\n\n throw new RuntimeError(\n RuntimeErrorCode.BROWSER_ANIMATION_BUILDER_INJECTED_WITHOUT_ANIMATIONS,\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. ' +\n 'Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.',\n );\n }\n }\n\n override build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory {\n const id = this._nextAnimationId;\n this._nextAnimationId++;\n const entry = Array.isArray(animation) ? sequence(animation) : animation;\n issueAnimationCommand(this._renderer, null, id, 'register', [entry]);\n return new BrowserAnimationFactory(id, this._renderer);\n }\n}\n\nclass BrowserAnimationFactory extends AnimationFactory {\n constructor(\n private _id: number,\n private _renderer: Renderer2,\n ) {\n super();\n }\n\n override create(element: any, options?: AnimationOptions): AnimationPlayer {\n return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);\n }\n}\n\nclass RendererAnimationPlayer implements AnimationPlayer {\n public parentPlayer: AnimationPlayer | null = null;\n private _started = false;\n\n constructor(\n public id: number,\n public element: any,\n options: AnimationOptions,\n private _renderer: Renderer2,\n ) {\n this._command('create', options);\n }\n\n private _listen(eventName: string, callback: (event: any) => any): () => void {\n return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);\n }\n\n private _command(command: string, ...args: any[]): void {\n issueAnimationCommand(this._renderer, this.element, this.id, command, args);\n }\n\n onDone(fn: () => void): void {\n this._listen('done', fn);\n }\n\n onStart(fn: () => void): void {\n this._listen('start', fn);\n }\n\n onDestroy(fn: () => void): void {\n this._listen('destroy', fn);\n }\n\n init(): void {\n this._command('init');\n }\n\n hasStarted(): boolean {\n return this._started;\n }\n\n play(): void {\n this._command('play');\n this._started = true;\n }\n\n pause(): void {\n this._command('pause');\n }\n\n restart(): void {\n this._command('restart');\n }\n\n finish(): void {\n this._command('finish');\n }\n\n destroy(): void {\n this._command('destroy');\n }\n\n reset(): void {\n this._command('reset');\n this._started = false;\n }\n\n setPosition(p: number): void {\n this._command('setPosition', p);\n }\n\n getPosition(): number {\n return unwrapAnimationRenderer(this._renderer)?.engine?.players[this.id]?.getPosition() ?? 0;\n }\n\n public totalTime = 0;\n}\n\nfunction issueAnimationCommand(\n renderer: Renderer2,\n element: any,\n id: number,\n command: string,\n args: any[],\n): void {\n renderer.setProperty(element, `@@${id}:${command}`, args);\n}\n\n/**\n * The following 2 methods cannot reference their correct types (AnimationRenderer &\n * DynamicDelegationRenderer) since this would introduce a import cycle.\n */\n\nfunction unwrapAnimationRenderer(\n renderer: Renderer2,\n): {engine: {players: AnimationPlayer[]}} | null {\n const type = (renderer as unknown as {ɵtype: AnimationRendererType}).ɵtype;\n if (type === AnimationRendererType.Regular) {\n return renderer as any;\n } else if (type === AnimationRendererType.Delegated) {\n return (renderer as any).animationRenderer;\n }\n\n return null;\n}\n\nfunction isAnimationRenderer(renderer: Renderer2): boolean {\n const type = (renderer as unknown as {ɵtype: AnimationRendererType}).ɵtype;\n return type === AnimationRendererType.Regular || type === AnimationRendererType.Delegated;\n}\n"],"names":["RuntimeError"],"mappings":";;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;MAEmB,gBAAgB,CAAA;kHAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;sHAAhB,gBAAgB,EAAA,UAAA,EADb,MAAM,EAAc,UAAA,EAAA,MAAM,MAAM,CAAC,uBAAuB,CAAC,EAAA,CAAA;;sGAC5D,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA,EAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC,uBAAuB,CAAC,EAAC;;AAWnF;;;;;;;;AAQG;MACmB,gBAAgB,CAAA;AAWrC;AAGK,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;IACnD,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IACrE,gBAAgB,GAAG,CAAC;AACpB,IAAA,SAAS;IAEjB,WAAY,CAAA,YAA8B,EAAoB,GAAa,EAAA;AACzE,QAAA,KAAK,EAAE;AACP,QAAA,MAAM,QAAQ,GAAkB;AAC9B,YAAA,EAAE,EAAE,GAAG;YACP,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,IAAI,EAAE,EAAC,SAAS,EAAE,EAAE,EAAC;SACtB;AACD,QAAA,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;AAEhE,QA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,CAAA,CAAA,EAAI,OAAO,CAAA,CAAE,EAAE,IAAI,CAAC;AAC3D;AAEA;;;AAGG;AAEH,SAAS,uBAAuB,CAC9B,QAAmB,EAAA;AAEnB,IAAA,MAAM,IAAI,GAAI,QAAsD,CAAC,KAAK;IAC1E,IAAI,IAAI,KAAkC,CAAA,sCAAE;AAC1C,QAAA,OAAO,QAAe;;SACjB,IAAI,IAAI,KAAoC,CAAA,wCAAE;QACnD,OAAQ,QAAgB,CAAC,iBAAiB;;AAG5C,IAAA,OAAO,IAAI;AACb;AAEA,SAAS,mBAAmB,CAAC,QAAmB,EAAA;AAC9C,IAAA,MAAM,IAAI,GAAI,QAAsD,CAAC,KAAK;AAC1E,IAAA,OAAO,IAAI,KAAA,CAAA,wCAAsC,IAAI;AACvD;;;;"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.1
2
+ * @license Angular v20.2.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,6 +10,8 @@ import '@angular/core';
10
10
 
11
11
  /**
12
12
  * @publicApi
13
+ *
14
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
13
15
  */
14
16
  class MockAnimationDriver {
15
17
  static log = [];
@@ -40,6 +42,8 @@ class MockAnimationDriver {
40
42
  }
41
43
  /**
42
44
  * @publicApi
45
+ *
46
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
43
47
  */
44
48
  class MockAnimationPlayer extends NoopAnimationPlayer {
45
49
  element;
@@ -1 +1 @@
1
- {"version":3,"file":"testing.mjs","sources":["../../../../../../k8-fastbuild-ST-46c76129e412/bin/packages/animations/browser/testing/src/mock_animation_driver.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {\n AnimationPlayer,\n AUTO_STYLE,\n NoopAnimationPlayer,\n ɵStyleDataMap,\n} from '../../../src/animations';\nimport {\n AnimationDriver,\n ɵallowPreviousPlayerStylesMerge as allowPreviousPlayerStylesMerge,\n ɵcamelCaseToDashCase,\n ɵcontainsElement as containsElement,\n ɵgetParentElement as getParentElement,\n ɵinvokeQuery as invokeQuery,\n ɵnormalizeKeyframes as normalizeKeyframes,\n ɵvalidateStyleProperty as validateStyleProperty,\n ɵvalidateWebAnimatableStyleProperty,\n} from '../../../browser';\n\n/**\n * @publicApi\n */\nexport class MockAnimationDriver implements AnimationDriver {\n static log: AnimationPlayer[] = [];\n\n validateStyleProperty(prop: string): boolean {\n return validateStyleProperty(prop);\n }\n\n validateAnimatableStyleProperty(prop: string): boolean {\n const cssProp = ɵcamelCaseToDashCase(prop);\n return ɵvalidateWebAnimatableStyleProperty(cssProp);\n }\n\n containsElement(elm1: any, elm2: any): boolean {\n return containsElement(elm1, elm2);\n }\n\n getParentElement(element: unknown): unknown {\n return getParentElement(element);\n }\n\n query(element: any, selector: string, multi: boolean): any[] {\n return invokeQuery(element, selector, multi);\n }\n\n computeStyle(element: any, prop: string, defaultValue?: string): string {\n return defaultValue || '';\n }\n\n animate(\n element: any,\n keyframes: Array<ɵStyleDataMap>,\n duration: number,\n delay: number,\n easing: string,\n previousPlayers: any[] = [],\n ): MockAnimationPlayer {\n const player = new MockAnimationPlayer(\n element,\n keyframes,\n duration,\n delay,\n easing,\n previousPlayers,\n );\n MockAnimationDriver.log.push(<AnimationPlayer>player);\n return player;\n }\n}\n\n/**\n * @publicApi\n */\nexport class MockAnimationPlayer extends NoopAnimationPlayer {\n private __finished = false;\n private __started = false;\n public previousStyles: ɵStyleDataMap = new Map();\n private _onInitFns: (() => any)[] = [];\n public currentSnapshot: ɵStyleDataMap = new Map();\n private _keyframes: Array<ɵStyleDataMap> = [];\n\n constructor(\n public element: any,\n public keyframes: Array<ɵStyleDataMap>,\n public duration: number,\n public delay: number,\n public easing: string,\n public previousPlayers: any[],\n ) {\n super(duration, delay);\n\n this._keyframes = normalizeKeyframes(keyframes);\n\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach((player) => {\n if (player instanceof MockAnimationPlayer) {\n const styles = player.currentSnapshot;\n styles.forEach((val, prop) => this.previousStyles.set(prop, val));\n }\n });\n }\n }\n\n /** @internal */\n onInit(fn: () => any) {\n this._onInitFns.push(fn);\n }\n\n /** @internal */\n override init() {\n super.init();\n this._onInitFns.forEach((fn) => fn());\n this._onInitFns = [];\n }\n\n override reset() {\n super.reset();\n this.__started = false;\n }\n\n override finish(): void {\n super.finish();\n this.__finished = true;\n }\n\n override destroy(): void {\n super.destroy();\n this.__finished = true;\n }\n\n /** @internal */\n triggerMicrotask() {}\n\n override play(): void {\n super.play();\n this.__started = true;\n }\n\n override hasStarted() {\n return this.__started;\n }\n\n beforeDestroy() {\n const captures: ɵStyleDataMap = new Map();\n\n this.previousStyles.forEach((val, prop) => captures.set(prop, val));\n\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this._keyframes.forEach((kf) => {\n for (let [prop, val] of kf) {\n if (prop !== 'offset') {\n captures.set(prop, this.__finished ? val : AUTO_STYLE);\n }\n }\n });\n }\n\n this.currentSnapshot = captures;\n }\n}\n"],"names":["ɵcamelCaseToDashCase","ɵvalidateWebAnimatableStyleProperty"],"mappings":";;;;;;;;;;AAyBA;;AAEG;MACU,mBAAmB,CAAA;AAC9B,IAAA,OAAO,GAAG,GAAsB,EAAE;AAElC,IAAA,qBAAqB,CAAC,IAAY,EAAA;AAChC,QAAA,OAAO,qBAAqB,CAAC,IAAI,CAAC;;AAGpC,IAAA,+BAA+B,CAAC,IAAY,EAAA;AAC1C,QAAA,MAAM,OAAO,GAAGA,mBAAoB,CAAC,IAAI,CAAC;AAC1C,QAAA,OAAOC,kCAAmC,CAAC,OAAO,CAAC;;IAGrD,eAAe,CAAC,IAAS,EAAE,IAAS,EAAA;AA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AGd,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,SAAS;;IAGvB,aAAa,GAAA;AACX,QAAA,MAAM,QAAQ,GAAkB,IAAI,GAAG,EAAE;QAEzC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAEnE,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;;;;YAIrB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,KAAI;gBAC7B,KAAK,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE;AAC1B,oBAAA,IAAI,IAAI,KAAK,QAAQ,EAAE;AACrB,wBAAA,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,GAAG,GAAG,GAAG,UAAU,CAAC;;;AAG5D,aAAC,CAAC;;AAGJ,QAAA,IAAI,CAAC,eAAe,GAAG,QAAQ;;AAElC;;;;"}
1
+ {"version":3,"file":"testing.mjs","sources":["../../../../../../k8-fastbuild-ST-46c76129e412/bin/packages/animations/browser/testing/src/mock_animation_driver.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {\n AnimationPlayer,\n AUTO_STYLE,\n NoopAnimationPlayer,\n ɵStyleDataMap,\n} from '../../../src/animations';\nimport {\n AnimationDriver,\n ɵallowPreviousPlayerStylesMerge as allowPreviousPlayerStylesMerge,\n ɵcamelCaseToDashCase,\n ɵcontainsElement as containsElement,\n ɵgetParentElement as getParentElement,\n ɵinvokeQuery as invokeQuery,\n ɵnormalizeKeyframes as normalizeKeyframes,\n ɵvalidateStyleProperty as validateStyleProperty,\n ɵvalidateWebAnimatableStyleProperty,\n} from '../../../browser';\n\n/**\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\nexport class MockAnimationDriver implements AnimationDriver {\n static log: AnimationPlayer[] = [];\n\n validateStyleProperty(prop: string): boolean {\n return validateStyleProperty(prop);\n }\n\n validateAnimatableStyleProperty(prop: string): boolean {\n const cssProp = ɵcamelCaseToDashCase(prop);\n return ɵvalidateWebAnimatableStyleProperty(cssProp);\n }\n\n containsElement(elm1: any, elm2: any): boolean {\n return containsElement(elm1, elm2);\n }\n\n getParentElement(element: unknown): unknown {\n return getParentElement(element);\n }\n\n query(element: any, selector: string, multi: boolean): any[] {\n return invokeQuery(element, selector, multi);\n }\n\n computeStyle(element: any, prop: string, defaultValue?: string): string {\n return defaultValue || '';\n }\n\n animate(\n element: any,\n keyframes: Array<ɵStyleDataMap>,\n duration: number,\n delay: number,\n easing: string,\n previousPlayers: any[] = [],\n ): MockAnimationPlayer {\n const player = new MockAnimationPlayer(\n element,\n keyframes,\n duration,\n delay,\n easing,\n previousPlayers,\n );\n MockAnimationDriver.log.push(<AnimationPlayer>player);\n return player;\n }\n}\n\n/**\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\nexport class MockAnimationPlayer extends NoopAnimationPlayer {\n private __finished = false;\n private __started = false;\n public previousStyles: ɵStyleDataMap = new Map();\n private _onInitFns: (() => any)[] = [];\n public currentSnapshot: ɵStyleDataMap = new Map();\n private _keyframes: Array<ɵStyleDataMap> = [];\n\n constructor(\n public element: any,\n public keyframes: Array<ɵStyleDataMap>,\n public duration: number,\n public delay: number,\n public easing: string,\n public previousPlayers: any[],\n ) {\n super(duration, delay);\n\n this._keyframes = normalizeKeyframes(keyframes);\n\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach((player) => {\n if (player instanceof MockAnimationPlayer) {\n const styles = player.currentSnapshot;\n styles.forEach((val, prop) => this.previousStyles.set(prop, val));\n }\n });\n }\n }\n\n /** @internal */\n onInit(fn: () => any) {\n this._onInitFns.push(fn);\n }\n\n /** @internal */\n override init() {\n super.init();\n this._onInitFns.forEach((fn) => fn());\n this._onInitFns = [];\n }\n\n override reset() {\n super.reset();\n this.__started = false;\n }\n\n override finish(): void {\n super.finish();\n this.__finished = true;\n }\n\n override destroy(): void {\n super.destroy();\n this.__finished = true;\n }\n\n /** @internal */\n triggerMicrotask() {}\n\n override play(): void {\n super.play();\n this.__started = true;\n }\n\n override hasStarted() {\n return this.__started;\n }\n\n beforeDestroy() {\n const captures: ɵStyleDataMap = new Map();\n\n this.previousStyles.forEach((val, prop) => captures.set(prop, val));\n\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this._keyframes.forEach((kf) => {\n for (let [prop, val] of kf) {\n if (prop !== 'offset') {\n captures.set(prop, this.__finished ? val : AUTO_STYLE);\n }\n }\n });\n }\n\n this.currentSnapshot = captures;\n }\n}\n"],"names":["ɵcamelCaseToDashCase","ɵvalidateWebAnimatableStyleProperty"],"mappings":";;;;;;;;;;AAyBA;;;;AAIG;MACU,mBAAmB,CAAA;AAC9B,IAAA,OAAO,GAAG,GAAsB,EAAE;AAElC,IAAA,qBAAqB,CAAC,IAAY,EAAA;AAChC,QAAA,OAAO,qBAAqB,CAAC,IAAI,CAAC;;AAGpC,IAAA,+BAA+B,CAAC,IAAY,EAAA;AAC1C,QAAA,MAAM,OAAO,GAAGA,mBAAoB,CAAC,IAAI,CAAC;AAC1C,QAAA,OAAOC,kCAAmC,CAAC,OAAO,CAAC;;IAGrD,eAAe,CAAC,IAAS,EAAE,IAAS,EAAA;AAClC,QAAA,OAAO,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;;AAGpC,IAAA,gBAAgB,CAAC,OAAgB,EAAA;AAC/B,QAAA,OAAO,gBAAgB,CAAC,OAAO,CAAC;;AAGlC,IAAA,KAAK,CAAC,OAAY,EAAE,QAAgB,EAAE,KAAc,EAAA;QAClD,OAAO,WAAW,CAAC,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E,GAAG,CAAC,CAAC;AAEnE,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;;;;YAIrB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,KAAI;gBAC7B,KAAK,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE;AAC1B,oBAAA,IAAI,IAAI,KAAK,QAAQ,EAAE;AACrB,wBAAA,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,GAAG,GAAG,GAAG,UAAU,CAAC;;;AAG5D,aAAC,CAAC;;AAGJ,QAAA,IAAI,CAAC,eAAe,GAAG,QAAQ;;AAElC;;;;"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.1
2
+ * @license Angular v20.2.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -12,6 +12,8 @@ import { NoopAnimationPlayer, AnimationMetadataType, style, AUTO_STYLE, ɵPRE_ST
12
12
  /**
13
13
  * @publicApi
14
14
  *
15
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
16
+ *
15
17
  * `AnimationDriver` implentation for Noop animations
16
18
  */
17
19
  class NoopAnimationDriver {
@@ -53,14 +55,16 @@ class NoopAnimationDriver {
53
55
  animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {
54
56
  return new NoopAnimationPlayer(duration, delay);
55
57
  }
56
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
57
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: NoopAnimationDriver });
58
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
59
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: NoopAnimationDriver });
58
60
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: NoopAnimationDriver, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: NoopAnimationDriver, decorators: [{
60
62
  type: Injectable
61
63
  }] });
62
64
  /**
63
65
  * @publicApi
66
+ *
67
+ * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
64
68
  */
65
69
  class AnimationDriver {
66
70
  /**