@angular/animations 19.2.4 → 19.2.6

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/index.d.ts CHANGED
@@ -1,1410 +1,13 @@
1
1
  /**
2
- * @license Angular v19.2.4
2
+ * @license Angular v19.2.6
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
8
  import { RendererFactory2 } from '@angular/core';
9
-
10
- /**
11
- * Represents a set of CSS styles for use in an animation style as a generic.
12
- */
13
- interface ɵStyleData {
14
- [key: string]: string | number;
15
- }
16
- /**
17
- * Represents a set of CSS styles for use in an animation style as a Map.
18
- */
19
- type ɵStyleDataMap = Map<string, string | number>;
20
- /**
21
- * Represents animation-step timing parameters for an animation step.
22
- * @see {@link animate}
23
- *
24
- * @publicApi
25
- */
26
- declare type AnimateTimings = {
27
- /**
28
- * The full duration of an animation step. A number and optional time unit,
29
- * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
30
- * The default unit is milliseconds.
31
- */
32
- duration: number;
33
- /**
34
- * The delay in applying an animation step. A number and optional time unit.
35
- * The default unit is milliseconds.
36
- */
37
- delay: number;
38
- /**
39
- * An easing style that controls how an animations step accelerates
40
- * and decelerates during its run time. An easing function such as `cubic-bezier()`,
41
- * or one of the following constants:
42
- * - `ease-in`
43
- * - `ease-out`
44
- * - `ease-in-and-out`
45
- */
46
- easing: string | null;
47
- };
48
- /**
49
- * @description Options that control animation styling and timing.
50
- *
51
- * The following animation functions accept `AnimationOptions` data:
52
- *
53
- * - `transition()`
54
- * - `sequence()`
55
- * - `{@link /api/animations/group group()}`
56
- * - `query()`
57
- * - `animation()`
58
- * - `useAnimation()`
59
- * - `animateChild()`
60
- *
61
- * Programmatic animations built using the `AnimationBuilder` service also
62
- * make use of `AnimationOptions`.
63
- *
64
- * @publicApi
65
- */
66
- declare interface AnimationOptions {
67
- /**
68
- * Sets a time-delay for initiating an animation action.
69
- * A number and optional time unit, such as "1s" or "10ms" for one second
70
- * and 10 milliseconds, respectively.The default unit is milliseconds.
71
- * Default value is 0, meaning no delay.
72
- */
73
- delay?: number | string;
74
- /**
75
- * A set of developer-defined parameters that modify styling and timing
76
- * when an animation action starts. An array of key-value pairs, where the provided value
77
- * is used as a default.
78
- */
79
- params?: {
80
- [name: string]: any;
81
- };
82
- }
83
- /**
84
- * Adds duration options to control animation styling and timing for a child animation.
85
- *
86
- * @see {@link animateChild}
87
- *
88
- * @publicApi
89
- */
90
- declare interface AnimateChildOptions extends AnimationOptions {
91
- duration?: number | string;
92
- }
93
- /**
94
- * @description Constants for the categories of parameters that can be defined for animations.
95
- *
96
- * A corresponding function defines a set of parameters for each category, and
97
- * collects them into a corresponding `AnimationMetadata` object.
98
- *
99
- * @publicApi
100
- */
101
- declare enum AnimationMetadataType {
102
- /**
103
- * Associates a named animation state with a set of CSS styles.
104
- * See [`state()`](api/animations/state)
105
- */
106
- State = 0,
107
- /**
108
- * Data for a transition from one animation state to another.
109
- * See `transition()`
110
- */
111
- Transition = 1,
112
- /**
113
- * Contains a set of animation steps.
114
- * See `sequence()`
115
- */
116
- Sequence = 2,
117
- /**
118
- * Contains a set of animation steps.
119
- * See `{@link /api/animations/group group()}`
120
- */
121
- Group = 3,
122
- /**
123
- * Contains an animation step.
124
- * See `animate()`
125
- */
126
- Animate = 4,
127
- /**
128
- * Contains a set of animation steps.
129
- * See `keyframes()`
130
- */
131
- Keyframes = 5,
132
- /**
133
- * Contains a set of CSS property-value pairs into a named style.
134
- * See `style()`
135
- */
136
- Style = 6,
137
- /**
138
- * Associates an animation with an entry trigger that can be attached to an element.
139
- * See `trigger()`
140
- */
141
- Trigger = 7,
142
- /**
143
- * Contains a re-usable animation.
144
- * See `animation()`
145
- */
146
- Reference = 8,
147
- /**
148
- * Contains data to use in executing child animations returned by a query.
149
- * See `animateChild()`
150
- */
151
- AnimateChild = 9,
152
- /**
153
- * Contains animation parameters for a re-usable animation.
154
- * See `useAnimation()`
155
- */
156
- AnimateRef = 10,
157
- /**
158
- * Contains child-animation query data.
159
- * See `query()`
160
- */
161
- Query = 11,
162
- /**
163
- * Contains data for staggering an animation sequence.
164
- * See `stagger()`
165
- */
166
- Stagger = 12
167
- }
168
- /**
169
- * Specifies automatic styling.
170
- *
171
- * @publicApi
172
- */
173
- declare const AUTO_STYLE = "*";
174
- /**
175
- * Base for animation data structures.
176
- *
177
- * @publicApi
178
- */
179
- interface AnimationMetadata {
180
- type: AnimationMetadataType;
181
- }
182
- /**
183
- * Contains an animation trigger. Instantiated and returned by the
184
- * `trigger()` function.
185
- *
186
- * @publicApi
187
- */
188
- interface AnimationTriggerMetadata extends AnimationMetadata {
189
- /**
190
- * The trigger name, used to associate it with an element. Unique within the component.
191
- */
192
- name: string;
193
- /**
194
- * An animation definition object, containing an array of state and transition declarations.
195
- */
196
- definitions: AnimationMetadata[];
197
- /**
198
- * An options object containing a delay and
199
- * developer-defined parameters that provide styling defaults and
200
- * can be overridden on invocation. Default delay is 0.
201
- */
202
- options: {
203
- params?: {
204
- [name: string]: any;
205
- };
206
- } | null;
207
- }
208
- /**
209
- * Encapsulates an animation state by associating a state name with a set of CSS styles.
210
- * Instantiated and returned by the [`state()`](api/animations/state) function.
211
- *
212
- * @publicApi
213
- */
214
- interface AnimationStateMetadata extends AnimationMetadata {
215
- /**
216
- * The state name, unique within the component.
217
- */
218
- name: string;
219
- /**
220
- * The CSS styles associated with this state.
221
- */
222
- styles: AnimationStyleMetadata;
223
- /**
224
- * An options object containing
225
- * developer-defined parameters that provide styling defaults and
226
- * can be overridden on invocation.
227
- */
228
- options?: {
229
- params: {
230
- [name: string]: any;
231
- };
232
- };
233
- }
234
- /**
235
- * Encapsulates an animation transition. Instantiated and returned by the
236
- * `transition()` function.
237
- *
238
- * @publicApi
239
- */
240
- interface AnimationTransitionMetadata extends AnimationMetadata {
241
- /**
242
- * An expression that describes a state change.
243
- */
244
- expr: string | ((fromState: string, toState: string, element?: any, params?: {
245
- [key: string]: any;
246
- }) => boolean);
247
- /**
248
- * One or more animation objects to which this transition applies.
249
- */
250
- animation: AnimationMetadata | AnimationMetadata[];
251
- /**
252
- * An options object containing a delay and
253
- * developer-defined parameters that provide styling defaults and
254
- * can be overridden on invocation. Default delay is 0.
255
- */
256
- options: AnimationOptions | null;
257
- }
258
- /**
259
- * Encapsulates a reusable animation, which is a collection of individual animation steps.
260
- * Instantiated and returned by the `animation()` function, and
261
- * passed to the `useAnimation()` function.
262
- *
263
- * @publicApi
264
- */
265
- interface AnimationReferenceMetadata extends AnimationMetadata {
266
- /**
267
- * One or more animation step objects.
268
- */
269
- animation: AnimationMetadata | AnimationMetadata[];
270
- /**
271
- * An options object containing a delay and
272
- * developer-defined parameters that provide styling defaults and
273
- * can be overridden on invocation. Default delay is 0.
274
- */
275
- options: AnimationOptions | null;
276
- }
277
- /**
278
- * Encapsulates an animation query. Instantiated and returned by
279
- * the `query()` function.
280
- *
281
- * @publicApi
282
- */
283
- interface AnimationQueryMetadata extends AnimationMetadata {
284
- /**
285
- * The CSS selector for this query.
286
- */
287
- selector: string;
288
- /**
289
- * One or more animation step objects.
290
- */
291
- animation: AnimationMetadata | AnimationMetadata[];
292
- /**
293
- * A query options object.
294
- */
295
- options: AnimationQueryOptions | null;
296
- }
297
- /**
298
- * Encapsulates a keyframes sequence. Instantiated and returned by
299
- * the `keyframes()` function.
300
- *
301
- * @publicApi
302
- */
303
- interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {
304
- /**
305
- * An array of animation styles.
306
- */
307
- steps: AnimationStyleMetadata[];
308
- }
309
- /**
310
- * Encapsulates an animation style. Instantiated and returned by
311
- * the `style()` function.
312
- *
313
- * @publicApi
314
- */
315
- interface AnimationStyleMetadata extends AnimationMetadata {
316
- /**
317
- * A set of CSS style properties.
318
- */
319
- styles: '*' | {
320
- [key: string]: string | number;
321
- } | Array<{
322
- [key: string]: string | number;
323
- } | '*'>;
324
- /**
325
- * A percentage of the total animate time at which the style is to be applied.
326
- */
327
- offset: number | null;
328
- }
329
- /**
330
- * Encapsulates an animation step. Instantiated and returned by
331
- * the `animate()` function.
332
- *
333
- * @publicApi
334
- */
335
- interface AnimationAnimateMetadata extends AnimationMetadata {
336
- /**
337
- * The timing data for the step.
338
- */
339
- timings: string | number | AnimateTimings;
340
- /**
341
- * A set of styles used in the step.
342
- */
343
- styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null;
344
- }
345
- /**
346
- * Encapsulates a child animation, that can be run explicitly when the parent is run.
347
- * Instantiated and returned by the `animateChild` function.
348
- *
349
- * @publicApi
350
- */
351
- interface AnimationAnimateChildMetadata extends AnimationMetadata {
352
- /**
353
- * An options object containing a delay and
354
- * developer-defined parameters that provide styling defaults and
355
- * can be overridden on invocation. Default delay is 0.
356
- */
357
- options: AnimationOptions | null;
358
- }
359
- /**
360
- * Encapsulates a reusable animation.
361
- * Instantiated and returned by the `useAnimation()` function.
362
- *
363
- * @publicApi
364
- */
365
- interface AnimationAnimateRefMetadata extends AnimationMetadata {
366
- /**
367
- * An animation reference object.
368
- */
369
- animation: AnimationReferenceMetadata;
370
- /**
371
- * An options object containing a delay and
372
- * developer-defined parameters that provide styling defaults and
373
- * can be overridden on invocation. Default delay is 0.
374
- */
375
- options: AnimationOptions | null;
376
- }
377
- /**
378
- * Encapsulates an animation sequence.
379
- * Instantiated and returned by the `sequence()` function.
380
- *
381
- * @publicApi
382
- */
383
- interface AnimationSequenceMetadata extends AnimationMetadata {
384
- /**
385
- * An array of animation step objects.
386
- */
387
- steps: AnimationMetadata[];
388
- /**
389
- * An options object containing a delay and
390
- * developer-defined parameters that provide styling defaults and
391
- * can be overridden on invocation. Default delay is 0.
392
- */
393
- options: AnimationOptions | null;
394
- }
395
- /**
396
- * Encapsulates an animation group.
397
- * Instantiated and returned by the `group()` function.
398
- *
399
- * @publicApi
400
- */
401
- interface AnimationGroupMetadata extends AnimationMetadata {
402
- /**
403
- * One or more animation or style steps that form this group.
404
- */
405
- steps: AnimationMetadata[];
406
- /**
407
- * An options object containing a delay and
408
- * developer-defined parameters that provide styling defaults and
409
- * can be overridden on invocation. Default delay is 0.
410
- */
411
- options: AnimationOptions | null;
412
- }
413
- /**
414
- * Encapsulates animation query options.
415
- * Passed to the `query()` function.
416
- *
417
- * @publicApi
418
- */
419
- declare interface AnimationQueryOptions extends AnimationOptions {
420
- /**
421
- * True if this query is optional, false if it is required. Default is false.
422
- * A required query throws an error if no elements are retrieved when
423
- * the query is executed. An optional query does not.
424
- *
425
- */
426
- optional?: boolean;
427
- /**
428
- * A maximum total number of results to return from the query.
429
- * If negative, results are limited from the end of the query list towards the beginning.
430
- * By default, results are not limited.
431
- */
432
- limit?: number;
433
- }
434
- /**
435
- * Encapsulates parameters for staggering the start times of a set of animation steps.
436
- * Instantiated and returned by the `stagger()` function.
437
- *
438
- * @publicApi
439
- **/
440
- interface AnimationStaggerMetadata extends AnimationMetadata {
441
- /**
442
- * The timing data for the steps.
443
- */
444
- timings: string | number;
445
- /**
446
- * One or more animation steps.
447
- */
448
- animation: AnimationMetadata | AnimationMetadata[];
449
- }
450
- /**
451
- * Creates a named animation trigger, containing a list of [`state()`](api/animations/state)
452
- * and `transition()` entries to be evaluated when the expression
453
- * bound to the trigger changes.
454
- *
455
- * @param name An identifying string.
456
- * @param definitions An animation definition object, containing an array of
457
- * [`state()`](api/animations/state) and `transition()` declarations.
458
- *
459
- * @return An object that encapsulates the trigger data.
460
- *
461
- * @usageNotes
462
- * Define an animation trigger in the `animations` section of `@Component` metadata.
463
- * In the template, reference the trigger by name and bind it to a trigger expression that
464
- * evaluates to a defined animation state, using the following format:
465
- *
466
- * `[@triggerName]="expression"`
467
- *
468
- * Animation trigger bindings convert all values to strings, and then match the
469
- * previous and current values against any linked transitions.
470
- * Booleans can be specified as `1` or `true` and `0` or `false`.
471
- *
472
- * ### Usage Example
473
- *
474
- * The following example creates an animation trigger reference based on the provided
475
- * name value.
476
- * The provided animation value is expected to be an array consisting of state and
477
- * transition declarations.
478
- *
479
- * ```ts
480
- * @Component({
481
- * selector: "my-component",
482
- * templateUrl: "my-component-tpl.html",
483
- * animations: [
484
- * trigger("myAnimationTrigger", [
485
- * state(...),
486
- * state(...),
487
- * transition(...),
488
- * transition(...)
489
- * ])
490
- * ]
491
- * })
492
- * class MyComponent {
493
- * myStatusExp = "something";
494
- * }
495
- * ```
496
- *
497
- * The template associated with this component makes use of the defined trigger
498
- * by binding to an element within its template code.
499
- *
500
- * ```html
501
- * <!-- somewhere inside of my-component-tpl.html -->
502
- * <div [@myAnimationTrigger]="myStatusExp">...</div>
503
- * ```
504
- *
505
- * ### Using an inline function
506
- * The `transition` animation method also supports reading an inline function which can decide
507
- * if its associated animation should be run.
508
- *
509
- * ```ts
510
- * // this method is run each time the `myAnimationTrigger` trigger value changes.
511
- * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
512
- string]: any}): boolean {
513
- * // notice that `element` and `params` are also available here
514
- * return toState == 'yes-please-animate';
515
- * }
516
- *
517
- * @Component({
518
- * selector: 'my-component',
519
- * templateUrl: 'my-component-tpl.html',
520
- * animations: [
521
- * trigger('myAnimationTrigger', [
522
- * transition(myInlineMatcherFn, [
523
- * // the animation sequence code
524
- * ]),
525
- * ])
526
- * ]
527
- * })
528
- * class MyComponent {
529
- * myStatusExp = "yes-please-animate";
530
- * }
531
- * ```
532
- *
533
- * ### Disabling Animations
534
- * When true, the special animation control binding `@.disabled` binding prevents
535
- * all animations from rendering.
536
- * Place the `@.disabled` binding on an element to disable
537
- * animations on the element itself, as well as any inner animation triggers
538
- * within the element.
539
- *
540
- * The following example shows how to use this feature:
541
- *
542
- * ```angular-ts
543
- * @Component({
544
- * selector: 'my-component',
545
- * template: `
546
- * <div [@.disabled]="isDisabled">
547
- * <div [@childAnimation]="exp"></div>
548
- * </div>
549
- * `,
550
- * animations: [
551
- * trigger("childAnimation", [
552
- * // ...
553
- * ])
554
- * ]
555
- * })
556
- * class MyComponent {
557
- * isDisabled = true;
558
- * exp = '...';
559
- * }
560
- * ```
561
- *
562
- * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,
563
- * along with any inner animations.
564
- *
565
- * ### Disable animations application-wide
566
- * When an area of the template is set to have animations disabled,
567
- * **all** inner components have their animations disabled as well.
568
- * This means that you can disable all animations for an app
569
- * by placing a host binding set on `@.disabled` on the topmost Angular component.
570
- *
571
- * ```ts
572
- * import {Component, HostBinding} from '@angular/core';
573
- *
574
- * @Component({
575
- * selector: 'app-component',
576
- * templateUrl: 'app.component.html',
577
- * })
578
- * class AppComponent {
579
- * @HostBinding('@.disabled')
580
- * public animationsDisabled = true;
581
- * }
582
- * ```
583
- *
584
- * ### Overriding disablement of inner animations
585
- * Despite inner animations being disabled, a parent animation can `query()`
586
- * for inner elements located in disabled areas of the template and still animate
587
- * them if needed. This is also the case for when a sub animation is
588
- * queried by a parent and then later animated using `animateChild()`.
589
- *
590
- * ### Detecting when an animation is disabled
591
- * If a region of the DOM (or the entire application) has its animations disabled, the animation
592
- * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
593
- * an instance of an `AnimationEvent`. If animations are disabled,
594
- * the `.disabled` flag on the event is true.
595
- *
596
- * @publicApi
597
- */
598
- declare function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata;
599
- /**
600
- * Defines an animation step that combines styling information with timing information.
601
- *
602
- * @param timings Sets `AnimateTimings` for the parent animation.
603
- * A string in the format "duration [delay] [easing]".
604
- * - Duration and delay are expressed as a number and optional time unit,
605
- * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
606
- * The default unit is milliseconds.
607
- * - The easing value controls how the animation accelerates and decelerates
608
- * during its runtime. Value is one of `ease`, `ease-in`, `ease-out`,
609
- * `ease-in-out`, or a `cubic-bezier()` function call.
610
- * If not supplied, no easing is applied.
611
- *
612
- * For example, the string "1s 100ms ease-out" specifies a duration of
613
- * 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style,
614
- * which decelerates near the end of the duration.
615
- * @param styles Sets AnimationStyles for the parent animation.
616
- * A function call to either `style()` or `keyframes()`
617
- * that returns a collection of CSS style entries to be applied to the parent animation.
618
- * When null, uses the styles from the destination state.
619
- * This is useful when describing an animation step that will complete an animation;
620
- * see "Animating to the final state" in `transitions()`.
621
- * @returns An object that encapsulates the animation step.
622
- *
623
- * @usageNotes
624
- * Call within an animation `sequence()`, {@link /api/animations/group group()}, or
625
- * `transition()` call to specify an animation step
626
- * that applies given style data to the parent animation for a given amount of time.
627
- *
628
- * ### Syntax Examples
629
- * **Timing examples**
630
- *
631
- * The following examples show various `timings` specifications.
632
- * - `animate(500)` : Duration is 500 milliseconds.
633
- * - `animate("1s")` : Duration is 1000 milliseconds.
634
- * - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds.
635
- * - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in.
636
- * - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10
637
- * milliseconds, easing according to a bezier curve.
638
- *
639
- * **Style examples**
640
- *
641
- * The following example calls `style()` to set a single CSS style.
642
- * ```ts
643
- * animate(500, style({ background: "red" }))
644
- * ```
645
- * The following example calls `keyframes()` to set a CSS style
646
- * to different values for successive keyframes.
647
- * ```ts
648
- * animate(500, keyframes(
649
- * [
650
- * style({ background: "blue" }),
651
- * style({ background: "red" })
652
- * ])
653
- * ```
654
- *
655
- * @publicApi
656
- */
657
- declare function animate(timings: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null): AnimationAnimateMetadata;
658
- /**
659
- * @description Defines a list of animation steps to be run in parallel.
660
- *
661
- * @param steps An array of animation step objects.
662
- * - When steps are defined by `style()` or `animate()`
663
- * function calls, each call within the group is executed instantly.
664
- * - To specify offset styles to be applied at a later time, define steps with
665
- * `keyframes()`, or use `animate()` calls with a delay value.
666
- * For example:
667
- *
668
- * ```ts
669
- * group([
670
- * animate("1s", style({ background: "black" })),
671
- * animate("2s", style({ color: "white" }))
672
- * ])
673
- * ```
674
- *
675
- * @param options An options object containing a delay and
676
- * developer-defined parameters that provide styling defaults and
677
- * can be overridden on invocation.
678
- *
679
- * @return An object that encapsulates the group data.
680
- *
681
- * @usageNotes
682
- * Grouped animations are useful when a series of styles must be
683
- * animated at different starting times and closed off at different ending times.
684
- *
685
- * When called within a `sequence()` or a
686
- * `transition()` call, does not continue to the next
687
- * instruction until all of the inner animation steps have completed.
688
- *
689
- * @publicApi
690
- */
691
- declare function group(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationGroupMetadata;
692
- /**
693
- * Defines a list of animation steps to be run sequentially, one by one.
694
- *
695
- * @param steps An array of animation step objects.
696
- * - Steps defined by `style()` calls apply the styling data immediately.
697
- * - Steps defined by `animate()` calls apply the styling data over time
698
- * as specified by the timing data.
699
- *
700
- * ```ts
701
- * sequence([
702
- * style({ opacity: 0 }),
703
- * animate("1s", style({ opacity: 1 }))
704
- * ])
705
- * ```
706
- *
707
- * @param options An options object containing a delay and
708
- * developer-defined parameters that provide styling defaults and
709
- * can be overridden on invocation.
710
- *
711
- * @return An object that encapsulates the sequence data.
712
- *
713
- * @usageNotes
714
- * When you pass an array of steps to a
715
- * `transition()` call, the steps run sequentially by default.
716
- * Compare this to the {@link /api/animations/group group()} call, which runs animation steps in
717
- *parallel.
718
- *
719
- * When a sequence is used within a {@link /api/animations/group group()} or a `transition()` call,
720
- * execution continues to the next instruction only after each of the inner animation
721
- * steps have completed.
722
- *
723
- * @publicApi
724
- **/
725
- declare function sequence(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationSequenceMetadata;
726
- /**
727
- * Declares a key/value object containing CSS properties/styles that
728
- * can then be used for an animation [`state`](api/animations/state), within an animation
729
- *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.
730
- *
731
- * @param tokens A set of CSS styles or HTML styles associated with an animation state.
732
- * The value can be any of the following:
733
- * - A key-value style pair associating a CSS property with a value.
734
- * - An array of key-value style pairs.
735
- * - An asterisk (*), to use auto-styling, where styles are derived from the element
736
- * being animated and applied to the animation when it starts.
737
- *
738
- * Auto-styling can be used to define a state that depends on layout or other
739
- * environmental factors.
740
- *
741
- * @return An object that encapsulates the style data.
742
- *
743
- * @usageNotes
744
- * The following examples create animation styles that collect a set of
745
- * CSS property values:
746
- *
747
- * ```ts
748
- * // string values for CSS properties
749
- * style({ background: "red", color: "blue" })
750
- *
751
- * // numerical pixel values
752
- * style({ width: 100, height: 0 })
753
- * ```
754
- *
755
- * The following example uses auto-styling to allow an element to animate from
756
- * a height of 0 up to its full height:
757
- *
758
- * ```ts
759
- * style({ height: 0 }),
760
- * animate("1s", style({ height: "*" }))
761
- * ```
762
- *
763
- * @publicApi
764
- **/
765
- declare function style(tokens: '*' | {
766
- [key: string]: string | number;
767
- } | Array<'*' | {
768
- [key: string]: string | number;
769
- }>): AnimationStyleMetadata;
770
- /**
771
- * Declares an animation state within a trigger attached to an element.
772
- *
773
- * @param name One or more names for the defined state in a comma-separated string.
774
- * The following reserved state names can be supplied to define a style for specific use
775
- * cases:
776
- *
777
- * - `void` You can associate styles with this name to be used when
778
- * the element is detached from the application. For example, when an `ngIf` evaluates
779
- * to false, the state of the associated element is void.
780
- * - `*` (asterisk) Indicates the default state. You can associate styles with this name
781
- * to be used as the fallback when the state that is being animated is not declared
782
- * within the trigger.
783
- *
784
- * @param styles A set of CSS styles associated with this state, created using the
785
- * `style()` function.
786
- * This set of styles persists on the element once the state has been reached.
787
- * @param options Parameters that can be passed to the state when it is invoked.
788
- * 0 or more key-value pairs.
789
- * @return An object that encapsulates the new state data.
790
- *
791
- * @usageNotes
792
- * Use the `trigger()` function to register states to an animation trigger.
793
- * Use the `transition()` function to animate between states.
794
- * When a state is active within a component, its associated styles persist on the element,
795
- * even when the animation ends.
796
- *
797
- * @publicApi
798
- **/
799
- declare function state(name: string, styles: AnimationStyleMetadata, options?: {
800
- params: {
801
- [name: string]: any;
802
- };
803
- }): AnimationStateMetadata;
804
- /**
805
- * Defines a set of animation styles, associating each style with an optional `offset` value.
806
- *
807
- * @param steps A set of animation styles with optional offset data.
808
- * The optional `offset` value for a style specifies a percentage of the total animation
809
- * time at which that style is applied.
810
- * @returns An object that encapsulates the keyframes data.
811
- *
812
- * @usageNotes
813
- * Use with the `animate()` call. Instead of applying animations
814
- * from the current state
815
- * to the destination state, keyframes describe how each style entry is applied and at what point
816
- * within the animation arc.
817
- * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).
818
- *
819
- * ### Usage
820
- *
821
- * In the following example, the offset values describe
822
- * when each `backgroundColor` value is applied. The color is red at the start, and changes to
823
- * blue when 20% of the total time has elapsed.
824
- *
825
- * ```ts
826
- * // the provided offset values
827
- * animate("5s", keyframes([
828
- * style({ backgroundColor: "red", offset: 0 }),
829
- * style({ backgroundColor: "blue", offset: 0.2 }),
830
- * style({ backgroundColor: "orange", offset: 0.3 }),
831
- * style({ backgroundColor: "black", offset: 1 })
832
- * ]))
833
- * ```
834
- *
835
- * If there are no `offset` values specified in the style entries, the offsets
836
- * are calculated automatically.
837
- *
838
- * ```ts
839
- * animate("5s", keyframes([
840
- * style({ backgroundColor: "red" }) // offset = 0
841
- * style({ backgroundColor: "blue" }) // offset = 0.33
842
- * style({ backgroundColor: "orange" }) // offset = 0.66
843
- * style({ backgroundColor: "black" }) // offset = 1
844
- * ]))
845
- *```
846
-
847
- * @publicApi
848
- */
849
- declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
850
- /**
851
- * Declares an animation transition which is played when a certain specified condition is met.
852
- *
853
- * @param stateChangeExpr A string with a specific format or a function that specifies when the
854
- * animation transition should occur (see [State Change Expression](#state-change-expression)).
855
- *
856
- * @param steps One or more animation objects that represent the animation's instructions.
857
- *
858
- * @param options An options object that can be used to specify a delay for the animation or provide
859
- * custom parameters for it.
860
- *
861
- * @returns An object that encapsulates the transition data.
862
- *
863
- * @usageNotes
864
- *
865
- * ### State Change Expression
866
- *
867
- * The State Change Expression instructs Angular when to run the transition's animations, it can
868
- *either be
869
- * - a string with a specific syntax
870
- * - or a function that compares the previous and current state (value of the expression bound to
871
- * the element's trigger) and returns `true` if the transition should occur or `false` otherwise
872
- *
873
- * The string format can be:
874
- * - `fromState => toState`, which indicates that the transition's animations should occur then the
875
- * expression bound to the trigger's element goes from `fromState` to `toState`
876
- *
877
- * _Example:_
878
- * ```ts
879
- * transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))
880
- * ```
881
- *
882
- * - `fromState <=> toState`, which indicates that the transition's animations should occur then
883
- * the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa
884
- *
885
- * _Example:_
886
- * ```ts
887
- * transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))
888
- * ```
889
- *
890
- * - `:enter`/`:leave`, which indicates that the transition's animations should occur when the
891
- * element enters or exists the DOM
892
- *
893
- * _Example:_
894
- * ```ts
895
- * transition(':enter', [
896
- * style({ opacity: 0 }),
897
- * animate('500ms', style({ opacity: 1 }))
898
- * ])
899
- * ```
900
- *
901
- * - `:increment`/`:decrement`, which indicates that the transition's animations should occur when
902
- * the numerical expression bound to the trigger's element has increased in value or decreased
903
- *
904
- * _Example:_
905
- * ```ts
906
- * transition(':increment', query('@counter', animateChild()))
907
- * ```
908
- *
909
- * - a sequence of any of the above divided by commas, which indicates that transition's animations
910
- * should occur whenever one of the state change expressions matches
911
- *
912
- * _Example:_
913
- * ```ts
914
- * transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([
915
- * style({ transform: 'scale(1)', offset: 0}),
916
- * style({ transform: 'scale(1.1)', offset: 0.7}),
917
- * style({ transform: 'scale(1)', offset: 1})
918
- * ]))),
919
- * ```
920
- *
921
- * Also note that in such context:
922
- * - `void` can be used to indicate the absence of the element
923
- * - asterisks can be used as wildcards that match any state
924
- * - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is
925
- * equivalent to `:leave`)
926
- * - `true` and `false` also match expression values of `1` and `0` respectively (but do not match
927
- * _truthy_ and _falsy_ values)
928
- *
929
- * <div class="docs-alert docs-alert-helpful">
930
- *
931
- * Be careful about entering end leaving elements as their transitions present a common
932
- * pitfall for developers.
933
- *
934
- * Note that when an element with a trigger enters the DOM its `:enter` transition always
935
- * gets executed, but its `:leave` transition will not be executed if the element is removed
936
- * alongside its parent (as it will be removed "without warning" before its transition has
937
- * a chance to be executed, the only way that such transition can occur is if the element
938
- * is exiting the DOM on its own).
939
- *
940
- *
941
- * </div>
942
- *
943
- * ### Animating to a Final State
944
- *
945
- * If the final step in a transition is a call to `animate()` that uses a timing value
946
- * with no `style` data, that step is automatically considered the final animation arc,
947
- * for the element to reach the final state, in such case Angular automatically adds or removes
948
- * CSS styles to ensure that the element is in the correct final state.
949
- *
950
- *
951
- * ### Usage Examples
952
- *
953
- * - Transition animations applied based on
954
- * the trigger's expression value
955
- *
956
- * ```html
957
- * <div [@myAnimationTrigger]="myStatusExp">
958
- * ...
959
- * </div>
960
- * ```
961
- *
962
- * ```ts
963
- * trigger("myAnimationTrigger", [
964
- * ..., // states
965
- * transition("on => off, open => closed", animate(500)),
966
- * transition("* <=> error", query('.indicator', animateChild()))
967
- * ])
968
- * ```
969
- *
970
- * - Transition animations applied based on custom logic dependent
971
- * on the trigger's expression value and provided parameters
972
- *
973
- * ```html
974
- * <div [@myAnimationTrigger]="{
975
- * value: stepName,
976
- * params: { target: currentTarget }
977
- * }">
978
- * ...
979
- * </div>
980
- * ```
981
- *
982
- * ```ts
983
- * trigger("myAnimationTrigger", [
984
- * ..., // states
985
- * transition(
986
- * (fromState, toState, _element, params) =>
987
- * ['firststep', 'laststep'].includes(fromState.toLowerCase())
988
- * && toState === params?.['target'],
989
- * animate('1s')
990
- * )
991
- * ])
992
- * ```
993
- *
994
- * @publicApi
995
- **/
996
- declare function transition(stateChangeExpr: string | ((fromState: string, toState: string, element?: any, params?: {
997
- [key: string]: any;
998
- }) => boolean), steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationTransitionMetadata;
999
- /**
1000
- * Produces a reusable animation that can be invoked in another animation or sequence,
1001
- * by calling the `useAnimation()` function.
1002
- *
1003
- * @param steps One or more animation objects, as returned by the `animate()`
1004
- * or `sequence()` function, that form a transformation from one state to another.
1005
- * A sequence is used by default when you pass an array.
1006
- * @param options An options object that can contain a delay value for the start of the
1007
- * animation, and additional developer-defined parameters.
1008
- * Provided values for additional parameters are used as defaults,
1009
- * and override values can be passed to the caller on invocation.
1010
- * @returns An object that encapsulates the animation data.
1011
- *
1012
- * @usageNotes
1013
- * The following example defines a reusable animation, providing some default parameter
1014
- * values.
1015
- *
1016
- * ```ts
1017
- * var fadeAnimation = animation([
1018
- * style({ opacity: '{{ start }}' }),
1019
- * animate('{{ time }}',
1020
- * style({ opacity: '{{ end }}'}))
1021
- * ],
1022
- * { params: { time: '1000ms', start: 0, end: 1 }});
1023
- * ```
1024
- *
1025
- * The following invokes the defined animation with a call to `useAnimation()`,
1026
- * passing in override parameter values.
1027
- *
1028
- * ```js
1029
- * useAnimation(fadeAnimation, {
1030
- * params: {
1031
- * time: '2s',
1032
- * start: 1,
1033
- * end: 0
1034
- * }
1035
- * })
1036
- * ```
1037
- *
1038
- * If any of the passed-in parameter values are missing from this call,
1039
- * the default values are used. If one or more parameter values are missing before a step is
1040
- * animated, `useAnimation()` throws an error.
1041
- *
1042
- * @publicApi
1043
- */
1044
- declare function animation(steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationReferenceMetadata;
1045
- /**
1046
- * Executes a queried inner animation element within an animation sequence.
1047
- *
1048
- * @param options An options object that can contain a delay value for the start of the
1049
- * animation, and additional override values for developer-defined parameters.
1050
- * @return An object that encapsulates the child animation data.
1051
- *
1052
- * @usageNotes
1053
- * Each time an animation is triggered in Angular, the parent animation
1054
- * has priority and any child animations are blocked. In order
1055
- * for a child animation to run, the parent animation must query each of the elements
1056
- * containing child animations, and run them using this function.
1057
- *
1058
- * Note that this feature is designed to be used with `query()` and it will only work
1059
- * with animations that are assigned using the Angular animation library. CSS keyframes
1060
- * and transitions are not handled by this API.
1061
- *
1062
- * @publicApi
1063
- */
1064
- declare function animateChild(options?: AnimateChildOptions | null): AnimationAnimateChildMetadata;
1065
- /**
1066
- * Starts a reusable animation that is created using the `animation()` function.
1067
- *
1068
- * @param animation The reusable animation to start.
1069
- * @param options An options object that can contain a delay value for the start of
1070
- * the animation, and additional override values for developer-defined parameters.
1071
- * @return An object that contains the animation parameters.
1072
- *
1073
- * @publicApi
1074
- */
1075
- declare function useAnimation(animation: AnimationReferenceMetadata, options?: AnimationOptions | null): AnimationAnimateRefMetadata;
1076
- /**
1077
- * Finds one or more inner elements within the current element that is
1078
- * being animated within a sequence. Use with `animate()`.
1079
- *
1080
- * @param selector The element to query, or a set of elements that contain Angular-specific
1081
- * characteristics, specified with one or more of the following tokens.
1082
- * - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements (not
1083
- * all elements can be queried via these tokens, see
1084
- * [Entering and Leaving Elements](#entering-and-leaving-elements))
1085
- * - `query(":animating")` : Query all currently animating elements.
1086
- * - `query("@triggerName")` : Query elements that contain an animation trigger.
1087
- * - `query("@*")` : Query all elements that contain an animation triggers.
1088
- * - `query(":self")` : Include the current element into the animation sequence.
1089
- *
1090
- * @param animation One or more animation steps to apply to the queried element or elements.
1091
- * An array is treated as an animation sequence.
1092
- * @param options An options object. Use the 'limit' field to limit the total number of
1093
- * items to collect.
1094
- * @return An object that encapsulates the query data.
1095
- *
1096
- * @usageNotes
1097
- *
1098
- * ### Multiple Tokens
1099
- *
1100
- * Tokens can be merged into a combined query selector string. For example:
1101
- *
1102
- * ```ts
1103
- * query(':self, .record:enter, .record:leave, @subTrigger', [...])
1104
- * ```
1105
- *
1106
- * The `query()` function collects multiple elements and works internally by using
1107
- * `element.querySelectorAll`. Use the `limit` field of an options object to limit
1108
- * the total number of items to be collected. For example:
1109
- *
1110
- * ```js
1111
- * query('div', [
1112
- * animate(...),
1113
- * animate(...)
1114
- * ], { limit: 1 })
1115
- * ```
1116
- *
1117
- * By default, throws an error when zero items are found. Set the
1118
- * `optional` flag to ignore this error. For example:
1119
- *
1120
- * ```js
1121
- * query('.some-element-that-may-not-be-there', [
1122
- * animate(...),
1123
- * animate(...)
1124
- * ], { optional: true })
1125
- * ```
1126
- *
1127
- * ### Entering and Leaving Elements
1128
- *
1129
- * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones
1130
- * that can are those that Angular assumes can enter/leave based on their own logic
1131
- * (if their insertion/removal is simply a consequence of that of their parent they
1132
- * should be queried via a different token in their parent's `:enter`/`:leave` transitions).
1133
- *
1134
- * The only elements Angular assumes can enter/leave based on their own logic (thus the only
1135
- * ones that can be queried via the `:enter` and `:leave` tokens) are:
1136
- * - Those inserted dynamically (via `ViewContainerRef`)
1137
- * - Those that have a structural directive (which, under the hood, are a subset of the above ones)
1138
- *
1139
- * <div class="docs-alert docs-alert-helpful">
1140
- *
1141
- * Note that elements will be successfully queried via `:enter`/`:leave` even if their
1142
- * insertion/removal is not done manually via `ViewContainerRef`or caused by their structural
1143
- * directive (e.g. they enter/exit alongside their parent).
1144
- *
1145
- * </div>
1146
- *
1147
- * <div class="docs-alert docs-alert-important">
1148
- *
1149
- * There is an exception to what previously mentioned, besides elements entering/leaving based on
1150
- * their own logic, elements with an animation trigger can always be queried via `:leave` when
1151
- * their parent is also leaving.
1152
- *
1153
- * </div>
1154
- *
1155
- * ### Usage Example
1156
- *
1157
- * The following example queries for inner elements and animates them
1158
- * individually using `animate()`.
1159
- *
1160
- * ```angular-ts
1161
- * @Component({
1162
- * selector: 'inner',
1163
- * template: `
1164
- * <div [@queryAnimation]="exp">
1165
- * <h1>Title</h1>
1166
- * <div class="content">
1167
- * Blah blah blah
1168
- * </div>
1169
- * </div>
1170
- * `,
1171
- * animations: [
1172
- * trigger('queryAnimation', [
1173
- * transition('* => goAnimate', [
1174
- * // hide the inner elements
1175
- * query('h1', style({ opacity: 0 })),
1176
- * query('.content', style({ opacity: 0 })),
1177
- *
1178
- * // animate the inner elements in, one by one
1179
- * query('h1', animate(1000, style({ opacity: 1 }))),
1180
- * query('.content', animate(1000, style({ opacity: 1 }))),
1181
- * ])
1182
- * ])
1183
- * ]
1184
- * })
1185
- * class Cmp {
1186
- * exp = '';
1187
- *
1188
- * goAnimate() {
1189
- * this.exp = 'goAnimate';
1190
- * }
1191
- * }
1192
- * ```
1193
- *
1194
- * @publicApi
1195
- */
1196
- declare function query(selector: string, animation: AnimationMetadata | AnimationMetadata[], options?: AnimationQueryOptions | null): AnimationQueryMetadata;
1197
- /**
1198
- * Use within an animation `query()` call to issue a timing gap after
1199
- * each queried item is animated.
1200
- *
1201
- * @param timings A delay value.
1202
- * @param animation One ore more animation steps.
1203
- * @returns An object that encapsulates the stagger data.
1204
- *
1205
- * @usageNotes
1206
- * In the following example, a container element wraps a list of items stamped out
1207
- * by an `ngFor`. The container element contains an animation trigger that will later be set
1208
- * to query for each of the inner items.
1209
- *
1210
- * Each time items are added, the opacity fade-in animation runs,
1211
- * and each removed item is faded out.
1212
- * When either of these animations occur, the stagger effect is
1213
- * applied after each item's animation is started.
1214
- *
1215
- * ```html
1216
- * <!-- list.component.html -->
1217
- * <button (click)="toggle()">Show / Hide Items</button>
1218
- * <hr />
1219
- * <div [@listAnimation]="items.length">
1220
- * <div *ngFor="let item of items">
1221
- * {{ item }}
1222
- * </div>
1223
- * </div>
1224
- * ```
1225
- *
1226
- * Here is the component code:
1227
- *
1228
- * ```ts
1229
- * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';
1230
- * @Component({
1231
- * templateUrl: 'list.component.html',
1232
- * animations: [
1233
- * trigger('listAnimation', [
1234
- * ...
1235
- * ])
1236
- * ]
1237
- * })
1238
- * class ListComponent {
1239
- * items = [];
1240
- *
1241
- * showItems() {
1242
- * this.items = [0,1,2,3,4];
1243
- * }
1244
- *
1245
- * hideItems() {
1246
- * this.items = [];
1247
- * }
1248
- *
1249
- * toggle() {
1250
- * this.items.length ? this.hideItems() : this.showItems();
1251
- * }
1252
- * }
1253
- * ```
1254
- *
1255
- * Here is the animation trigger code:
1256
- *
1257
- * ```ts
1258
- * trigger('listAnimation', [
1259
- * transition('* => *', [ // each time the binding value changes
1260
- * query(':leave', [
1261
- * stagger(100, [
1262
- * animate('0.5s', style({ opacity: 0 }))
1263
- * ])
1264
- * ]),
1265
- * query(':enter', [
1266
- * style({ opacity: 0 }),
1267
- * stagger(100, [
1268
- * animate('0.5s', style({ opacity: 1 }))
1269
- * ])
1270
- * ])
1271
- * ])
1272
- * ])
1273
- * ```
1274
- *
1275
- * @publicApi
1276
- */
1277
- declare function stagger(timings: string | number, animation: AnimationMetadata | AnimationMetadata[]): AnimationStaggerMetadata;
1278
-
1279
- /**
1280
- * Provides programmatic control of a reusable animation sequence,
1281
- * built using the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
1282
- * method which returns an `AnimationFactory`, whose
1283
- * <code>[create](api/animations/AnimationFactory#create)()</code> method instantiates and
1284
- * initializes this interface.
1285
- *
1286
- * @see {@link AnimationBuilder}
1287
- * @see {@link AnimationFactory}
1288
- * @see {@link animate}
1289
- *
1290
- * @publicApi
1291
- */
1292
- interface AnimationPlayer {
1293
- /**
1294
- * Provides a callback to invoke when the animation finishes.
1295
- * @param fn The callback function.
1296
- * @see {@link #finish}
1297
- */
1298
- onDone(fn: () => void): void;
1299
- /**
1300
- * Provides a callback to invoke when the animation starts.
1301
- * @param fn The callback function.
1302
- * @see {@link #play}
1303
- */
1304
- onStart(fn: () => void): void;
1305
- /**
1306
- * Provides a callback to invoke after the animation is destroyed.
1307
- * @param fn The callback function.
1308
- * @see {@link #destroy}
1309
- * @see {@link #beforeDestroy}
1310
- */
1311
- onDestroy(fn: () => void): void;
1312
- /**
1313
- * Initializes the animation.
1314
- */
1315
- init(): void;
1316
- /**
1317
- * Reports whether the animation has started.
1318
- * @returns True if the animation has started, false otherwise.
1319
- */
1320
- hasStarted(): boolean;
1321
- /**
1322
- * Runs the animation, invoking the `onStart()` callback.
1323
- */
1324
- play(): void;
1325
- /**
1326
- * Pauses the animation.
1327
- */
1328
- pause(): void;
1329
- /**
1330
- * Restarts the paused animation.
1331
- */
1332
- restart(): void;
1333
- /**
1334
- * Ends the animation, invoking the `onDone()` callback.
1335
- */
1336
- finish(): void;
1337
- /**
1338
- * Destroys the animation, after invoking the `beforeDestroy()` callback.
1339
- * Calls the `onDestroy()` callback when destruction is completed.
1340
- */
1341
- destroy(): void;
1342
- /**
1343
- * Resets the animation to its initial state.
1344
- */
1345
- reset(): void;
1346
- /**
1347
- * Sets the position of the animation.
1348
- * @param position A fractional value, representing the progress through the animation.
1349
- */
1350
- setPosition(position: number): void;
1351
- /**
1352
- * Reports the current position of the animation.
1353
- * @returns A fractional value, representing the progress through the animation.
1354
- */
1355
- getPosition(): number;
1356
- /**
1357
- * The parent of this player, if any.
1358
- */
1359
- parentPlayer: AnimationPlayer | null;
1360
- /**
1361
- * The total run time of the animation, in milliseconds.
1362
- */
1363
- readonly totalTime: number;
1364
- /**
1365
- * Provides a callback to invoke before the animation is destroyed.
1366
- */
1367
- beforeDestroy?: () => any;
1368
- }
1369
- /**
1370
- * An empty programmatic controller for reusable animations.
1371
- * Used internally when animations are disabled, to avoid
1372
- * checking for the null case when an animation player is expected.
1373
- *
1374
- * @see {@link animate}
1375
- * @see {@link AnimationPlayer}
1376
- *
1377
- * @publicApi
1378
- */
1379
- declare class NoopAnimationPlayer implements AnimationPlayer {
1380
- private _onDoneFns;
1381
- private _onStartFns;
1382
- private _onDestroyFns;
1383
- private _originalOnDoneFns;
1384
- private _originalOnStartFns;
1385
- private _started;
1386
- private _destroyed;
1387
- private _finished;
1388
- private _position;
1389
- parentPlayer: AnimationPlayer | null;
1390
- readonly totalTime: number;
1391
- constructor(duration?: number, delay?: number);
1392
- private _onFinish;
1393
- onStart(fn: () => void): void;
1394
- onDone(fn: () => void): void;
1395
- onDestroy(fn: () => void): void;
1396
- hasStarted(): boolean;
1397
- init(): void;
1398
- play(): void;
1399
- private _onStart;
1400
- pause(): void;
1401
- restart(): void;
1402
- finish(): void;
1403
- destroy(): void;
1404
- reset(): void;
1405
- setPosition(position: number): void;
1406
- getPosition(): number;
1407
- }
9
+ import { AnimationMetadata, AnimationOptions, AnimationPlayer } from './animation_player.d-CTCg5nkL.js';
10
+ export { AUTO_STYLE, AnimateChildOptions, AnimateTimings, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadataType, AnimationQueryMetadata, AnimationQueryOptions, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵStyleData, ɵStyleDataMap } from './animation_player.d-CTCg5nkL.js';
1408
11
 
1409
12
  /**
1410
13
  * An injectable service that produces an animation sequence programmatically within an
@@ -1639,4 +242,5 @@ declare class AnimationGroupPlayer implements AnimationPlayer {
1639
242
 
1640
243
  declare const ɵPRE_STYLE = "!";
1641
244
 
1642
- export { AUTO_STYLE, type AnimateChildOptions, type AnimateTimings, type AnimationAnimateChildMetadata, type AnimationAnimateMetadata, type AnimationAnimateRefMetadata, AnimationBuilder, type AnimationEvent, AnimationFactory, type AnimationGroupMetadata, type AnimationKeyframesSequenceMetadata, type AnimationMetadata, AnimationMetadataType, type AnimationOptions, type AnimationPlayer, type AnimationQueryMetadata, type AnimationQueryOptions, type AnimationReferenceMetadata, type AnimationSequenceMetadata, type AnimationStaggerMetadata, type AnimationStateMetadata, type AnimationStyleMetadata, type AnimationTransitionMetadata, type AnimationTriggerMetadata, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, AnimationGroupPlayer as ɵAnimationGroupPlayer, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, ɵPRE_STYLE, RuntimeErrorCode as ɵRuntimeErrorCode, type ɵStyleData, type ɵStyleDataMap };
245
+ export { AnimationBuilder, AnimationFactory, AnimationMetadata, AnimationOptions, AnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, ɵPRE_STYLE, RuntimeErrorCode as ɵRuntimeErrorCode };
246
+ export type { AnimationEvent };