1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import * as i0 from '@angular/core';
|
9 | import { RendererFactory2 } from '@angular/core';
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | export declare function animate(timings: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null): AnimationAnimateMetadata;
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 | export declare function animateChild(options?: AnimateChildOptions | null): AnimationAnimateChildMetadata;
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 | export declare interface AnimateChildOptions extends AnimationOptions {
|
100 | duration?: number | string;
|
101 | }
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 | export declare type AnimateTimings = {
|
110 | |
111 |
|
112 |
|
113 |
|
114 |
|
115 | duration: number;
|
116 | |
117 |
|
118 |
|
119 |
|
120 | delay: number;
|
121 | |
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 | easing: string | null;
|
130 | };
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 |
|
159 |
|
160 |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 |
|
177 | export declare function animation(steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationReferenceMetadata;
|
178 |
|
179 |
|
180 |
|
181 |
|
182 |
|
183 |
|
184 |
|
185 | export declare interface AnimationAnimateChildMetadata extends AnimationMetadata {
|
186 | |
187 |
|
188 |
|
189 |
|
190 |
|
191 | options: AnimationOptions | null;
|
192 | }
|
193 |
|
194 |
|
195 |
|
196 |
|
197 |
|
198 |
|
199 |
|
200 | export declare interface AnimationAnimateMetadata extends AnimationMetadata {
|
201 | |
202 |
|
203 |
|
204 | timings: string | number | AnimateTimings;
|
205 | |
206 |
|
207 |
|
208 | styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null;
|
209 | }
|
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 | export declare interface AnimationAnimateRefMetadata extends AnimationMetadata {
|
218 | |
219 |
|
220 |
|
221 | animation: AnimationReferenceMetadata;
|
222 | |
223 |
|
224 |
|
225 |
|
226 |
|
227 | options: AnimationOptions | null;
|
228 | }
|
229 |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 |
|
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 |
|
248 |
|
249 |
|
250 |
|
251 |
|
252 |
|
253 |
|
254 |
|
255 |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 |
|
261 |
|
262 |
|
263 |
|
264 |
|
265 |
|
266 |
|
267 |
|
268 |
|
269 |
|
270 |
|
271 |
|
272 |
|
273 |
|
274 |
|
275 |
|
276 | export declare abstract class AnimationBuilder {
|
277 | |
278 |
|
279 |
|
280 |
|
281 |
|
282 |
|
283 | abstract build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;
|
284 | static ɵfac: i0.ɵɵFactoryDeclaration<AnimationBuilder, never>;
|
285 | static ɵprov: i0.ɵɵInjectableDeclaration<AnimationBuilder>;
|
286 | }
|
287 |
|
288 |
|
289 |
|
290 |
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 |
|
302 |
|
303 |
|
304 |
|
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 |
|
320 | declare interface AnimationEvent_2 {
|
321 | |
322 |
|
323 |
|
324 | fromState: string;
|
325 | |
326 |
|
327 |
|
328 | toState: string;
|
329 | |
330 |
|
331 |
|
332 | totalTime: number;
|
333 | |
334 |
|
335 |
|
336 |
|
337 | phaseName: string;
|
338 | |
339 |
|
340 |
|
341 | element: any;
|
342 | |
343 |
|
344 |
|
345 | triggerName: string;
|
346 | |
347 |
|
348 |
|
349 | disabled: boolean;
|
350 | }
|
351 | export { AnimationEvent_2 as AnimationEvent }
|
352 |
|
353 |
|
354 |
|
355 |
|
356 |
|
357 |
|
358 |
|
359 |
|
360 | export declare abstract class AnimationFactory {
|
361 | |
362 |
|
363 |
|
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 | abstract create(element: any, options?: AnimationOptions): AnimationPlayer;
|
371 | }
|
372 |
|
373 |
|
374 |
|
375 |
|
376 |
|
377 |
|
378 |
|
379 | export declare interface AnimationGroupMetadata extends AnimationMetadata {
|
380 | |
381 |
|
382 |
|
383 | steps: AnimationMetadata[];
|
384 | |
385 |
|
386 |
|
387 |
|
388 |
|
389 | options: AnimationOptions | null;
|
390 | }
|
391 |
|
392 |
|
393 |
|
394 |
|
395 |
|
396 |
|
397 |
|
398 | export declare interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {
|
399 | |
400 |
|
401 |
|
402 | steps: AnimationStyleMetadata[];
|
403 | }
|
404 |
|
405 |
|
406 |
|
407 |
|
408 |
|
409 |
|
410 | export declare interface AnimationMetadata {
|
411 | type: AnimationMetadataType;
|
412 | }
|
413 |
|
414 |
|
415 |
|
416 |
|
417 |
|
418 |
|
419 |
|
420 |
|
421 |
|
422 | export declare enum AnimationMetadataType {
|
423 | |
424 |
|
425 |
|
426 |
|
427 | State = 0,
|
428 | |
429 |
|
430 |
|
431 |
|
432 | Transition = 1,
|
433 | |
434 |
|
435 |
|
436 |
|
437 | Sequence = 2,
|
438 | |
439 |
|
440 |
|
441 |
|
442 | Group = 3,
|
443 | |
444 |
|
445 |
|
446 |
|
447 | Animate = 4,
|
448 | |
449 |
|
450 |
|
451 |
|
452 | Keyframes = 5,
|
453 | |
454 |
|
455 |
|
456 |
|
457 | Style = 6,
|
458 | |
459 |
|
460 |
|
461 |
|
462 | Trigger = 7,
|
463 | |
464 |
|
465 |
|
466 |
|
467 | Reference = 8,
|
468 | |
469 |
|
470 |
|
471 |
|
472 | AnimateChild = 9,
|
473 | |
474 |
|
475 |
|
476 |
|
477 | AnimateRef = 10,
|
478 | |
479 |
|
480 |
|
481 |
|
482 | Query = 11,
|
483 | |
484 |
|
485 |
|
486 |
|
487 | Stagger = 12
|
488 | }
|
489 |
|
490 |
|
491 |
|
492 |
|
493 |
|
494 |
|
495 |
|
496 |
|
497 |
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 |
|
504 |
|
505 |
|
506 |
|
507 |
|
508 | export declare interface AnimationOptions {
|
509 | |
510 |
|
511 |
|
512 |
|
513 |
|
514 |
|
515 | delay?: number | string;
|
516 | |
517 |
|
518 |
|
519 |
|
520 |
|
521 | params?: {
|
522 | [name: string]: any;
|
523 | };
|
524 | }
|
525 |
|
526 |
|
527 |
|
528 |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 |
|
534 |
|
535 |
|
536 |
|
537 |
|
538 |
|
539 |
|
540 | export declare interface AnimationPlayer {
|
541 | |
542 |
|
543 |
|
544 |
|
545 |
|
546 | onDone(fn: () => void): void;
|
547 | |
548 |
|
549 |
|
550 |
|
551 |
|
552 | onStart(fn: () => void): void;
|
553 | |
554 |
|
555 |
|
556 |
|
557 |
|
558 |
|
559 | onDestroy(fn: () => void): void;
|
560 | |
561 |
|
562 |
|
563 | init(): void;
|
564 | |
565 |
|
566 |
|
567 |
|
568 | hasStarted(): boolean;
|
569 | |
570 |
|
571 |
|
572 | play(): void;
|
573 | |
574 |
|
575 |
|
576 | pause(): void;
|
577 | |
578 |
|
579 |
|
580 | restart(): void;
|
581 | |
582 |
|
583 |
|
584 | finish(): void;
|
585 | |
586 |
|
587 |
|
588 |
|
589 | destroy(): void;
|
590 | |
591 |
|
592 |
|
593 | reset(): void;
|
594 | |
595 |
|
596 |
|
597 |
|
598 | setPosition(position: number): void;
|
599 | |
600 |
|
601 |
|
602 |
|
603 | getPosition(): number;
|
604 | |
605 |
|
606 |
|
607 | parentPlayer: AnimationPlayer | null;
|
608 | |
609 |
|
610 |
|
611 | readonly totalTime: number;
|
612 | |
613 |
|
614 |
|
615 | beforeDestroy?: () => any;
|
616 | }
|
617 |
|
618 |
|
619 |
|
620 |
|
621 |
|
622 |
|
623 |
|
624 | export declare interface AnimationQueryMetadata extends AnimationMetadata {
|
625 | |
626 |
|
627 |
|
628 | selector: string;
|
629 | |
630 |
|
631 |
|
632 | animation: AnimationMetadata | AnimationMetadata[];
|
633 | |
634 |
|
635 |
|
636 | options: AnimationQueryOptions | null;
|
637 | }
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 |
|
645 | export declare interface AnimationQueryOptions extends AnimationOptions {
|
646 | |
647 |
|
648 |
|
649 |
|
650 |
|
651 |
|
652 | optional?: boolean;
|
653 | |
654 |
|
655 |
|
656 |
|
657 |
|
658 | limit?: number;
|
659 | }
|
660 |
|
661 |
|
662 |
|
663 |
|
664 |
|
665 |
|
666 |
|
667 |
|
668 | export declare interface AnimationReferenceMetadata extends AnimationMetadata {
|
669 | |
670 |
|
671 |
|
672 | animation: AnimationMetadata | AnimationMetadata[];
|
673 | |
674 |
|
675 |
|
676 |
|
677 |
|
678 | options: AnimationOptions | null;
|
679 | }
|
680 |
|
681 |
|
682 |
|
683 |
|
684 |
|
685 |
|
686 |
|
687 | export declare interface AnimationSequenceMetadata extends AnimationMetadata {
|
688 | |
689 |
|
690 |
|
691 | steps: AnimationMetadata[];
|
692 | |
693 |
|
694 |
|
695 |
|
696 |
|
697 | options: AnimationOptions | null;
|
698 | }
|
699 |
|
700 |
|
701 |
|
702 |
|
703 |
|
704 |
|
705 |
|
706 | export declare interface AnimationStaggerMetadata extends AnimationMetadata {
|
707 | |
708 |
|
709 |
|
710 | timings: string | number;
|
711 | |
712 |
|
713 |
|
714 | animation: AnimationMetadata | AnimationMetadata[];
|
715 | }
|
716 |
|
717 |
|
718 |
|
719 |
|
720 |
|
721 |
|
722 |
|
723 | export declare interface AnimationStateMetadata extends AnimationMetadata {
|
724 | |
725 |
|
726 |
|
727 | name: string;
|
728 | |
729 |
|
730 |
|
731 | styles: AnimationStyleMetadata;
|
732 | |
733 |
|
734 |
|
735 |
|
736 |
|
737 | options?: {
|
738 | params: {
|
739 | [name: string]: any;
|
740 | };
|
741 | };
|
742 | }
|
743 |
|
744 |
|
745 |
|
746 |
|
747 |
|
748 |
|
749 |
|
750 | export declare interface AnimationStyleMetadata extends AnimationMetadata {
|
751 | |
752 |
|
753 |
|
754 | styles: '*' | {
|
755 | [key: string]: string | number;
|
756 | } | Array<{
|
757 | [key: string]: string | number;
|
758 | } | '*'>;
|
759 | |
760 |
|
761 |
|
762 | offset: number | null;
|
763 | }
|
764 |
|
765 |
|
766 |
|
767 |
|
768 |
|
769 |
|
770 |
|
771 | export declare interface AnimationTransitionMetadata extends AnimationMetadata {
|
772 | |
773 |
|
774 |
|
775 | expr: string | ((fromState: string, toState: string, element?: any, params?: {
|
776 | [key: string]: any;
|
777 | }) => boolean);
|
778 | |
779 |
|
780 |
|
781 | animation: AnimationMetadata | AnimationMetadata[];
|
782 | |
783 |
|
784 |
|
785 |
|
786 |
|
787 | options: AnimationOptions | null;
|
788 | }
|
789 |
|
790 |
|
791 |
|
792 |
|
793 |
|
794 |
|
795 |
|
796 | export declare interface AnimationTriggerMetadata extends AnimationMetadata {
|
797 | |
798 |
|
799 |
|
800 | name: string;
|
801 | |
802 |
|
803 |
|
804 | definitions: AnimationMetadata[];
|
805 | |
806 |
|
807 |
|
808 |
|
809 |
|
810 | options: {
|
811 | params?: {
|
812 | [name: string]: any;
|
813 | };
|
814 | } | null;
|
815 | }
|
816 |
|
817 |
|
818 |
|
819 |
|
820 |
|
821 |
|
822 | export declare const AUTO_STYLE = "*";
|
823 |
|
824 |
|
825 |
|
826 |
|
827 |
|
828 |
|
829 |
|
830 |
|
831 |
|
832 |
|
833 |
|
834 |
|
835 |
|
836 |
|
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 |
|
845 |
|
846 |
|
847 |
|
848 |
|
849 |
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
|
855 |
|
856 |
|
857 | export declare function group(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationGroupMetadata;
|
858 |
|
859 |
|
860 |
|
861 |
|
862 |
|
863 |
|
864 |
|
865 |
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 |
|
873 |
|
874 |
|
875 |
|
876 |
|
877 |
|
878 |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 |
|
884 |
|
885 |
|
886 |
|
887 |
|
888 |
|
889 |
|
890 |
|
891 |
|
892 |
|
893 |
|
894 |
|
895 |
|
896 |
|
897 |
|
898 |
|
899 |
|
900 |
|
901 |
|
902 |
|
903 |
|
904 | export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
|
905 |
|
906 |
|
907 |
|
908 |
|
909 |
|
910 |
|
911 |
|
912 |
|
913 |
|
914 |
|
915 |
|
916 | export declare class NoopAnimationPlayer implements AnimationPlayer {
|
917 | private _onDoneFns;
|
918 | private _onStartFns;
|
919 | private _onDestroyFns;
|
920 | private _originalOnDoneFns;
|
921 | private _originalOnStartFns;
|
922 | private _started;
|
923 | private _destroyed;
|
924 | private _finished;
|
925 | private _position;
|
926 | parentPlayer: AnimationPlayer | null;
|
927 | readonly totalTime: number;
|
928 | constructor(duration?: number, delay?: number);
|
929 | private _onFinish;
|
930 | onStart(fn: () => void): void;
|
931 | onDone(fn: () => void): void;
|
932 | onDestroy(fn: () => void): void;
|
933 | hasStarted(): boolean;
|
934 | init(): void;
|
935 | play(): void;
|
936 | private _onStart;
|
937 | pause(): void;
|
938 | restart(): void;
|
939 | finish(): void;
|
940 | destroy(): void;
|
941 | reset(): void;
|
942 | setPosition(position: number): void;
|
943 | getPosition(): number;
|
944 | }
|
945 |
|
946 | /**
|
947 | * Finds one or more inner elements within the current element that is
|
948 | * being animated within a sequence. Use with `animate()`.
|
949 | *
|
950 | * @param selector The element to query, or a set of elements that contain Angular-specific
|
951 | * characteristics, specified with one or more of the following tokens.
|
952 | * - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements (not
|
953 | * all elements can be queried via these tokens, see
|
954 | * [Entering and Leaving Elements](#entering-and-leaving-elements))
|
955 | * - `query(":animating")` : Query all currently animating elements.
|
956 | * - `query("@triggerName")` : Query elements that contain an animation trigger.
|
957 | * - `query("@*")` : Query all elements that contain an animation triggers.
|
958 | * - `query(":self")` : Include the current element into the animation sequence.
|
959 | *
|
960 | * @param animation One or more animation steps to apply to the queried element or elements.
|
961 | * An array is treated as an animation sequence.
|
962 | * @param options An options object. Use the 'limit' field to limit the total number of
|
963 | * items to collect.
|
964 | * @return An object that encapsulates the query data.
|
965 | *
|
966 | * @usageNotes
|
967 | *
|
968 | * ### Multiple Tokens
|
969 | *
|
970 | * Tokens can be merged into a combined query selector string. For example:
|
971 | *
|
972 | * ```typescript
|
973 | * query(':self, .record:enter, .record:leave, @subTrigger', [...])
|
974 | * ```
|
975 | *
|
976 | * The `query()` function collects multiple elements and works internally by using
|
977 | * `element.querySelectorAll`. Use the `limit` field of an options object to limit
|
978 | * the total number of items to be collected. For example:
|
979 | *
|
980 | * ```js
|
981 | * query('div', [
|
982 | * animate(...),
|
983 | * animate(...)
|
984 | * ], { limit: 1 })
|
985 | * ```
|
986 | *
|
987 | * By default, throws an error when zero items are found. Set the
|
988 | * `optional` flag to ignore this error. For example:
|
989 | *
|
990 | * ```js
|
991 | * query('.some-element-that-may-not-be-there', [
|
992 | * animate(...),
|
993 | * animate(...)
|
994 | * ], { optional: true })
|
995 | * ```
|
996 | *
|
997 | * ### Entering and Leaving Elements
|
998 | *
|
999 | * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones
|
1000 | * that can are those that Angular assumes can enter/leave based on their own logic
|
1001 | * (if their insertion/removal is simply a consequence of that of their parent they
|
1002 | * should be queried via a different token in their parent's `:enter`/`:leave` transitions).
|
1003 | *
|
1004 | * The only elements Angular assumes can enter/leave based on their own logic (thus the only
|
1005 | * ones that can be queried via the `:enter` and `:leave` tokens) are:
|
1006 | * - Those inserted dynamically (via `ViewContainerRef`)
|
1007 | * - Those that have a structural directive (which, under the hood, are a subset of the above ones)
|
1008 | *
|
1009 | * <div class="alert is-helpful">
|
1010 | *
|
1011 | * Note that elements will be successfully queried via `:enter`/`:leave` even if their
|
1012 | * insertion/removal is not done manually via `ViewContainerRef`or caused by their structural
|
1013 | * directive (e.g. they enter/exit alongside their parent).
|
1014 | *
|
1015 | * </div>
|
1016 | *
|
1017 | * <div class="alert is-important">
|
1018 | *
|
1019 | * There is an exception to what previously mentioned, besides elements entering/leaving based on
|
1020 | * their own logic, elements with an animation trigger can always be queried via `:leave` when
|
1021 | * their parent is also leaving.
|
1022 | *
|
1023 | * </div>
|
1024 | *
|
1025 | * ### Usage Example
|
1026 | *
|
1027 | * The following example queries for inner elements and animates them
|
1028 | * individually using `animate()`.
|
1029 | *
|
1030 | * ```typescript
|
1031 | * @Component({
|
1032 | * selector: 'inner',
|
1033 | * template: `
|
1034 | * <div [@queryAnimation]="exp">
|
1035 | * <h1>Title</h1>
|
1036 | * <div class="content">
|
1037 | * Blah blah blah
|
1038 | * </div>
|
1039 | * </div>
|
1040 | * `,
|
1041 | * animations: [
|
1042 | * trigger('queryAnimation', [
|
1043 | * transition('* => goAnimate', [
|
1044 | * // hide the inner elements
|
1045 | * query('h1', style({ opacity: 0 })),
|
1046 | * query('.content', style({ opacity: 0 })),
|
1047 | *
|
1048 | * // animate the inner elements in, one by one
|
1049 | * query('h1', animate(1000, style({ opacity: 1 }))),
|
1050 | * query('.content', animate(1000, style({ opacity: 1 }))),
|
1051 | * ])
|
1052 | * ])
|
1053 | * ]
|
1054 | * })
|
1055 | * class Cmp {
|
1056 | * exp = '';
|
1057 | *
|
1058 | * goAnimate() {
|
1059 | * this.exp = 'goAnimate';
|
1060 | * }
|
1061 | * }
|
1062 | * ```
|
1063 | *
|
1064 | * @publicApi
|
1065 | */
|
1066 | export declare function query(selector: string, animation: AnimationMetadata | AnimationMetadata[], options?: AnimationQueryOptions | null): AnimationQueryMetadata;
|
1067 |
|
1068 | /**
|
1069 | * Defines a list of animation steps to be run sequentially, one by one.
|
1070 | *
|
1071 | * @param steps An array of animation step objects.
|
1072 | * - Steps defined by `style()` calls apply the styling data immediately.
|
1073 | * - Steps defined by `animate()` calls apply the styling data over time
|
1074 | * as specified by the timing data.
|
1075 | *
|
1076 | * ```typescript
|
1077 | * sequence([
|
1078 | * style({ opacity: 0 }),
|
1079 | * animate("1s", style({ opacity: 1 }))
|
1080 | * ])
|
1081 | * ```
|
1082 | *
|
1083 | * @param options An options object containing a delay and
|
1084 | * developer-defined parameters that provide styling defaults and
|
1085 | * can be overridden on invocation.
|
1086 | *
|
1087 | * @return An object that encapsulates the sequence data.
|
1088 | *
|
1089 | * @usageNotes
|
1090 | * When you pass an array of steps to a
|
1091 | * `transition()` call, the steps run sequentially by default.
|
1092 | * Compare this to the `{@link animations/group group()}` call, which runs animation steps in
|
1093 | *parallel.
|
1094 | *
|
1095 | * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,
|
1096 | * execution continues to the next instruction only after each of the inner animation
|
1097 | * steps have completed.
|
1098 | *
|
1099 | * @publicApi
|
1100 | **/
|
1101 | export declare function sequence(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationSequenceMetadata;
|
1102 |
|
1103 | /**
|
1104 | * Use within an animation `query()` call to issue a timing gap after
|
1105 | * each queried item is animated.
|
1106 | *
|
1107 | * @param timings A delay value.
|
1108 | * @param animation One ore more animation steps.
|
1109 | * @returns An object that encapsulates the stagger data.
|
1110 | *
|
1111 | * @usageNotes
|
1112 | * In the following example, a container element wraps a list of items stamped out
|
1113 | * by an `ngFor`. The container element contains an animation trigger that will later be set
|
1114 | * to query for each of the inner items.
|
1115 | *
|
1116 | * Each time items are added, the opacity fade-in animation runs,
|
1117 | * and each removed item is faded out.
|
1118 | * When either of these animations occur, the stagger effect is
|
1119 | * applied after each item's animation is started.
|
1120 | *
|
1121 | * ```html
|
1122 | * <!-- list.component.html -->
|
1123 | * <button (click)="toggle()">Show / Hide Items</button>
|
1124 | * <hr />
|
1125 | * <div [@listAnimation]="items.length">
|
1126 | * <div *ngFor="let item of items">
|
1127 | * {{ item }}
|
1128 | * </div>
|
1129 | * </div>
|
1130 | * ```
|
1131 | *
|
1132 | * Here is the component code:
|
1133 | *
|
1134 | * ```typescript
|
1135 | * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';
|
1136 | * @Component({
|
1137 | * templateUrl: 'list.component.html',
|
1138 | * animations: [
|
1139 | * trigger('listAnimation', [
|
1140 | * ...
|
1141 | * ])
|
1142 | * ]
|
1143 | * })
|
1144 | * class ListComponent {
|
1145 | * items = [];
|
1146 | *
|
1147 | * showItems() {
|
1148 | * this.items = [0,1,2,3,4];
|
1149 | * }
|
1150 | *
|
1151 | * hideItems() {
|
1152 | * this.items = [];
|
1153 | * }
|
1154 | *
|
1155 | * toggle() {
|
1156 | * this.items.length ? this.hideItems() : this.showItems();
|
1157 | * }
|
1158 | * }
|
1159 | * ```
|
1160 | *
|
1161 | * Here is the animation trigger code:
|
1162 | *
|
1163 | * ```typescript
|
1164 | * trigger('listAnimation', [
|
1165 | * transition('* => *', [
|
1166 | * query(':leave', [
|
1167 | * stagger(100, [
|
1168 | * animate('0.5s', style({ opacity: 0 }))
|
1169 | * ])
|
1170 | * ]),
|
1171 | * query(':enter', [
|
1172 | * style({ opacity: 0 }),
|
1173 | * stagger(100, [
|
1174 | * animate('0.5s', style({ opacity: 1 }))
|
1175 | * ])
|
1176 | * ])
|
1177 | * ])
|
1178 | * ])
|
1179 | * ```
|
1180 | *
|
1181 | * @publicApi
|
1182 | */
|
1183 | export declare function stagger(timings: string | number, animation: AnimationMetadata | AnimationMetadata[]): AnimationStaggerMetadata;
|
1184 |
|
1185 | /**
|
1186 | * Declares an animation state within a trigger attached to an element.
|
1187 | *
|
1188 | * @param name One or more names for the defined state in a comma-separated string.
|
1189 | * The following reserved state names can be supplied to define a style for specific use
|
1190 | * cases:
|
1191 | *
|
1192 | * - `void` You can associate styles with this name to be used when
|
1193 | * the element is detached from the application. For example, when an `ngIf` evaluates
|
1194 | * to false, the state of the associated element is void.
|
1195 | * - `*` (asterisk) Indicates the default state. You can associate styles with this name
|
1196 | * to be used as the fallback when the state that is being animated is not declared
|
1197 | * within the trigger.
|
1198 | *
|
1199 | * @param styles A set of CSS styles associated with this state, created using the
|
1200 | * `style()` function.
|
1201 | * This set of styles persists on the element once the state has been reached.
|
1202 | * @param options Parameters that can be passed to the state when it is invoked.
|
1203 | * 0 or more key-value pairs.
|
1204 | * @return An object that encapsulates the new state data.
|
1205 | *
|
1206 | * @usageNotes
|
1207 | * Use the `trigger()` function to register states to an animation trigger.
|
1208 | * Use the `transition()` function to animate between states.
|
1209 | * When a state is active within a component, its associated styles persist on the element,
|
1210 | * even when the animation ends.
|
1211 | *
|
1212 | * @publicApi
|
1213 | **/
|
1214 | export declare function state(name: string, styles: AnimationStyleMetadata, options?: {
|
1215 | params: {
|
1216 | [name: string]: any;
|
1217 | };
|
1218 | }): AnimationStateMetadata;
|
1219 |
|
1220 | /**
|
1221 | * Declares a key/value object containing CSS properties/styles that
|
1222 | * can then be used for an animation [`state`](api/animations/state), within an animation
|
1223 | *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.
|
1224 | *
|
1225 | * @param tokens A set of CSS styles or HTML styles associated with an animation state.
|
1226 | * The value can be any of the following:
|
1227 | * - A key-value style pair associating a CSS property with a value.
|
1228 | * - An array of key-value style pairs.
|
1229 | * - An asterisk (*), to use auto-styling, where styles are derived from the element
|
1230 | * being animated and applied to the animation when it starts.
|
1231 | *
|
1232 | * Auto-styling can be used to define a state that depends on layout or other
|
1233 | * environmental factors.
|
1234 | *
|
1235 | * @return An object that encapsulates the style data.
|
1236 | *
|
1237 | * @usageNotes
|
1238 | * The following examples create animation styles that collect a set of
|
1239 | * CSS property values:
|
1240 | *
|
1241 | * ```typescript
|
1242 | *
|
1243 | * style({ background: "red", color: "blue" })
|
1244 | *
|
1245 | *
|
1246 | * style({ width: 100, height: 0 })
|
1247 | * ```
|
1248 | *
|
1249 | * The following example uses auto-styling to allow an element to animate from
|
1250 | * a height of 0 up to its full height:
|
1251 | *
|
1252 | * ```
|
1253 | * style({ height: 0 }),
|
1254 | * animate("1s", style({ height: "*" }))
|
1255 | * ```
|
1256 | *
|
1257 | * @publicApi
|
1258 | **/
|
1259 | export declare function style(tokens: '*' | {
|
1260 | [key: string]: string | number;
|
1261 | } | Array<'*' | {
|
1262 | [key: string]: string | number;
|
1263 | }>): AnimationStyleMetadata;
|
1264 |
|
1265 | /**
|
1266 | * Declares an animation transition which is played when a certain specified condition is met.
|
1267 | *
|
1268 | * @param stateChangeExpr A string with a specific format or a function that specifies when the
|
1269 | * animation transition should occur (see [State Change Expression](#state-change-expression)).
|
1270 | *
|
1271 | * @param steps One or more animation objects that represent the animation's instructions.
|
1272 | *
|
1273 | * @param options An options object that can be used to specify a delay for the animation or provide
|
1274 | * custom parameters for it.
|
1275 | *
|
1276 | * @returns An object that encapsulates the transition data.
|
1277 | *
|
1278 | * @usageNotes
|
1279 | *
|
1280 | * ### State Change Expression
|
1281 | *
|
1282 | * The State Change Expression instructs Angular when to run the transition's animations, it can
|
1283 | *either be
|
1284 | * - a string with a specific syntax
|
1285 | * - or a function that compares the previous and current state (value of the expression bound to
|
1286 | * the element's trigger) and returns `true` if the transition should occur or `false` otherwise
|
1287 | *
|
1288 | * The string format can be:
|
1289 | * - `fromState => toState`, which indicates that the transition's animations should occur then the
|
1290 | * expression bound to the trigger's element goes from `fromState` to `toState`
|
1291 | *
|
1292 | * _Example:_
|
1293 | * ```typescript
|
1294 | * transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))
|
1295 | * ```
|
1296 | *
|
1297 | * - `fromState <=> toState`, which indicates that the transition's animations should occur then
|
1298 | * the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa
|
1299 | *
|
1300 | * _Example:_
|
1301 | * ```typescript
|
1302 | * transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))
|
1303 | * ```
|
1304 | *
|
1305 | * - `:enter`/`:leave`, which indicates that the transition's animations should occur when the
|
1306 | * element enters or exists the DOM
|
1307 | *
|
1308 | * _Example:_
|
1309 | * ```typescript
|
1310 | * transition(':enter', [
|
1311 | * style({ opacity: 0 }),
|
1312 | * animate('500ms', style({ opacity: 1 }))
|
1313 | * ])
|
1314 | * ```
|
1315 | *
|
1316 | * - `:increment`/`:decrement`, which indicates that the transition's animations should occur when
|
1317 | * the numerical expression bound to the trigger's element has increased in value or decreased
|
1318 | *
|
1319 | * _Example:_
|
1320 | * ```typescript
|
1321 | * transition(':increment', query('@counter', animateChild()))
|
1322 | * ```
|
1323 | *
|
1324 | * - a sequence of any of the above divided by commas, which indicates that transition's animations
|
1325 | * should occur whenever one of the state change expressions matches
|
1326 | *
|
1327 | * _Example:_
|
1328 | * ```typescript
|
1329 | * transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([
|
1330 | * style({ transform: 'scale(1)', offset: 0}),
|
1331 | * style({ transform: 'scale(1.1)', offset: 0.7}),
|
1332 | * style({ transform: 'scale(1)', offset: 1})
|
1333 | * ]))),
|
1334 | * ```
|
1335 | *
|
1336 | * Also note that in such context:
|
1337 | * - `void` can be used to indicate the absence of the element
|
1338 | * - asterisks can be used as wildcards that match any state
|
1339 | * - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is
|
1340 | * equivalent to `:leave`)
|
1341 | * - `true` and `false` also match expression values of `1` and `0` respectively (but do not match
|
1342 | * _truthy_ and _falsy_ values)
|
1343 | *
|
1344 | * <div class="alert is-helpful">
|
1345 | *
|
1346 | * Be careful about entering end leaving elements as their transitions present a common
|
1347 | * pitfall for developers.
|
1348 | *
|
1349 | * Note that when an element with a trigger enters the DOM its `:enter` transition always
|
1350 | * gets executed, but its `:leave` transition will not be executed if the element is removed
|
1351 | * alongside its parent (as it will be removed "without warning" before its transition has
|
1352 | * a chance to be executed, the only way that such transition can occur is if the element
|
1353 | * is exiting the DOM on its own).
|
1354 | *
|
1355 | *
|
1356 | * </div>
|
1357 | *
|
1358 | * ### Animating to a Final State
|
1359 | *
|
1360 | * If the final step in a transition is a call to `animate()` that uses a timing value
|
1361 | * with no `style` data, that step is automatically considered the final animation arc,
|
1362 | * for the element to reach the final state, in such case Angular automatically adds or removes
|
1363 | * CSS styles to ensure that the element is in the correct final state.
|
1364 | *
|
1365 | *
|
1366 | * ### Usage Examples
|
1367 | *
|
1368 | * - Transition animations applied based on
|
1369 | * the trigger's expression value
|
1370 | *
|
1371 | * ```html
|
1372 | * <div [@myAnimationTrigger]="myStatusExp">
|
1373 | * ...
|
1374 | * </div>
|
1375 | * ```
|
1376 | *
|
1377 | * ```typescript
|
1378 | * trigger("myAnimationTrigger", [
|
1379 | * ...,
|
1380 | * transition("on => off, open => closed", animate(500)),
|
1381 | * transition("* <=> error", query('.indicator', animateChild()))
|
1382 | * ])
|
1383 | * ```
|
1384 | *
|
1385 | * - Transition animations applied based on custom logic dependent
|
1386 | * on the trigger's expression value and provided parameters
|
1387 | *
|
1388 | * ```html
|
1389 | * <div [@myAnimationTrigger]="{
|
1390 | * value: stepName,
|
1391 | * params: { target: currentTarget }
|
1392 | * }">
|
1393 | * ...
|
1394 | * </div>
|
1395 | * ```
|
1396 | *
|
1397 | * ```typescript
|
1398 | * trigger("myAnimationTrigger", [
|
1399 | * ...,
|
1400 | * transition(
|
1401 | * (fromState, toState, _element, params) =>
|
1402 | * ['firststep', 'laststep'].includes(fromState.toLowerCase())
|
1403 | * && toState === params?.['target'],
|
1404 | * animate('1s')
|
1405 | * )
|
1406 | * ])
|
1407 | * ```
|
1408 | *
|
1409 | * @publicApi
|
1410 | **/
|
1411 | export declare function transition(stateChangeExpr: string | ((fromState: string, toState: string, element?: any, params?: {
|
1412 | [key: string]: any;
|
1413 | }) => boolean), steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationTransitionMetadata;
|
1414 |
|
1415 | /**
|
1416 | * Creates a named animation trigger, containing a list of [`state()`](api/animations/state)
|
1417 | * and `transition()` entries to be evaluated when the expression
|
1418 | * bound to the trigger changes.
|
1419 | *
|
1420 | * @param name An identifying string.
|
1421 | * @param definitions An animation definition object, containing an array of
|
1422 | * [`state()`](api/animations/state) and `transition()` declarations.
|
1423 | *
|
1424 | * @return An object that encapsulates the trigger data.
|
1425 | *
|
1426 | * @usageNotes
|
1427 | * Define an animation trigger in the `animations` section of `@Component` metadata.
|
1428 | * In the template, reference the trigger by name and bind it to a trigger expression that
|
1429 | * evaluates to a defined animation state, using the following format:
|
1430 | *
|
1431 | * `[@triggerName]="expression"`
|
1432 | *
|
1433 | * Animation trigger bindings convert all values to strings, and then match the
|
1434 | * previous and current values against any linked transitions.
|
1435 | * Booleans can be specified as `1` or `true` and `0` or `false`.
|
1436 | *
|
1437 | * ### Usage Example
|
1438 | *
|
1439 | * The following example creates an animation trigger reference based on the provided
|
1440 | * name value.
|
1441 | * The provided animation value is expected to be an array consisting of state and
|
1442 | * transition declarations.
|
1443 | *
|
1444 | * ```typescript
|
1445 | * @Component({
|
1446 | * selector: "my-component",
|
1447 | * templateUrl: "my-component-tpl.html",
|
1448 | * animations: [
|
1449 | * trigger("myAnimationTrigger", [
|
1450 | * state(...),
|
1451 | * state(...),
|
1452 | * transition(...),
|
1453 | * transition(...)
|
1454 | * ])
|
1455 | * ]
|
1456 | * })
|
1457 | * class MyComponent {
|
1458 | * myStatusExp = "something";
|
1459 | * }
|
1460 | * ```
|
1461 | *
|
1462 | * The template associated with this component makes use of the defined trigger
|
1463 | * by binding to an element within its template code.
|
1464 | *
|
1465 | * ```html
|
1466 | * <!-- somewhere inside of my-component-tpl.html -->
|
1467 | * <div [@myAnimationTrigger]="myStatusExp">...</div>
|
1468 | * ```
|
1469 | *
|
1470 | * ### Using an inline function
|
1471 | * The `transition` animation method also supports reading an inline function which can decide
|
1472 | * if its associated animation should be run.
|
1473 | *
|
1474 | * ```typescript
|
1475 | *
|
1476 | * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
|
1477 | string]: any}): boolean {
|
1478 | *
|
1479 | * return toState == 'yes-please-animate';
|
1480 | * }
|
1481 | *
|
1482 | * @Component({
|
1483 | * selector: 'my-component',
|
1484 | * templateUrl: 'my-component-tpl.html',
|
1485 | * animations: [
|
1486 | * trigger('myAnimationTrigger', [
|
1487 | * transition(myInlineMatcherFn, [
|
1488 | *
|
1489 | * ]),
|
1490 | * ])
|
1491 | * ]
|
1492 | * })
|
1493 | * class MyComponent {
|
1494 | * myStatusExp = "yes-please-animate";
|
1495 | * }
|
1496 | * ```
|
1497 | *
|
1498 | * ### Disabling Animations
|
1499 | * When true, the special animation control binding `@.disabled` binding prevents
|
1500 | * all animations from rendering.
|
1501 | * Place the `@.disabled` binding on an element to disable
|
1502 | * animations on the element itself, as well as any inner animation triggers
|
1503 | * within the element.
|
1504 | *
|
1505 | * The following example shows how to use this feature:
|
1506 | *
|
1507 | * ```typescript
|
1508 | * @Component({
|
1509 | * selector: 'my-component',
|
1510 | * template: `
|
1511 | * <div [@.disabled]="isDisabled">
|
1512 | * <div [@childAnimation]="exp"></div>
|
1513 | * </div>
|
1514 | * `,
|
1515 | * animations: [
|
1516 | * trigger("childAnimation", [
|
1517 | *
|
1518 | * ])
|
1519 | * ]
|
1520 | * })
|
1521 | * class MyComponent {
|
1522 | * isDisabled = true;
|
1523 | * exp = '...';
|
1524 | * }
|
1525 | * ```
|
1526 | *
|
1527 | * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,
|
1528 | * along with any inner animations.
|
1529 | *
|
1530 | * ### Disable animations application-wide
|
1531 | * When an area of the template is set to have animations disabled,
|
1532 | * **all** inner components have their animations disabled as well.
|
1533 | * This means that you can disable all animations for an app
|
1534 | * by placing a host binding set on `@.disabled` on the topmost Angular component.
|
1535 | *
|
1536 | * ```typescript
|
1537 | * import {Component, HostBinding} from '@angular/core';
|
1538 | *
|
1539 | * @Component({
|
1540 | * selector: 'app-component',
|
1541 | * templateUrl: 'app.component.html',
|
1542 | * })
|
1543 | * class AppComponent {
|
1544 | * @HostBinding('@.disabled')
|
1545 | * public animationsDisabled = true;
|
1546 | * }
|
1547 | * ```
|
1548 | *
|
1549 | * ### Overriding disablement of inner animations
|
1550 | * Despite inner animations being disabled, a parent animation can `query()`
|
1551 | * for inner elements located in disabled areas of the template and still animate
|
1552 | * them if needed. This is also the case for when a sub animation is
|
1553 | * queried by a parent and then later animated using `animateChild()`.
|
1554 | *
|
1555 | * ### Detecting when an animation is disabled
|
1556 | * If a region of the DOM (or the entire application) has its animations disabled, the animation
|
1557 | * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
|
1558 | * an instance of an `AnimationEvent`. If animations are disabled,
|
1559 | * the `.disabled` flag on the event is true.
|
1560 | *
|
1561 | * @publicApi
|
1562 | */
|
1563 | export declare function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata;
|
1564 |
|
1565 | /**
|
1566 | * Starts a reusable animation that is created using the `animation()` function.
|
1567 | *
|
1568 | * @param animation The reusable animation to start.
|
1569 | * @param options An options object that can contain a delay value for the start of
|
1570 | * the animation, and additional override values for developer-defined parameters.
|
1571 | * @return An object that contains the animation parameters.
|
1572 | *
|
1573 | * @publicApi
|
1574 | */
|
1575 | export declare function useAnimation(animation: AnimationReferenceMetadata, options?: AnimationOptions | null): AnimationAnimateRefMetadata;
|
1576 |
|
1577 | /**
|
1578 | * A programmatic controller for a group of reusable animations.
|
1579 | * Used internally to control animations.
|
1580 | *
|
1581 | * @see {@link AnimationPlayer}
|
1582 | * @see {@link animations/group group}
|
1583 | *
|
1584 | */
|
1585 | export declare class ɵAnimationGroupPlayer implements AnimationPlayer {
|
1586 | private _onDoneFns;
|
1587 | private _onStartFns;
|
1588 | private _finished;
|
1589 | private _started;
|
1590 | private _destroyed;
|
1591 | private _onDestroyFns;
|
1592 | parentPlayer: AnimationPlayer | null;
|
1593 | totalTime: number;
|
1594 | readonly players: AnimationPlayer[];
|
1595 | constructor(_players: AnimationPlayer[]);
|
1596 | private _onFinish;
|
1597 | init(): void;
|
1598 | onStart(fn: () => void): void;
|
1599 | private _onStart;
|
1600 | onDone(fn: () => void): void;
|
1601 | onDestroy(fn: () => void): void;
|
1602 | hasStarted(): boolean;
|
1603 | play(): void;
|
1604 | pause(): void;
|
1605 | restart(): void;
|
1606 | finish(): void;
|
1607 | destroy(): void;
|
1608 | private _onDestroy;
|
1609 | reset(): void;
|
1610 | setPosition(p: number): void;
|
1611 | getPosition(): number;
|
1612 | beforeDestroy(): void;
|
1613 | }
|
1614 |
|
1615 | export declare class ɵBrowserAnimationBuilder extends AnimationBuilder {
|
1616 | private animationModuleType;
|
1617 | private _nextAnimationId;
|
1618 | private _renderer;
|
1619 | constructor(rootRenderer: RendererFactory2, doc: Document);
|
1620 | build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;
|
1621 | static ɵfac: i0.ɵɵFactoryDeclaration<ɵBrowserAnimationBuilder, never>;
|
1622 | static ɵprov: i0.ɵɵInjectableDeclaration<ɵBrowserAnimationBuilder>;
|
1623 | }
|
1624 |
|
1625 | export declare const ɵPRE_STYLE = "!";
|
1626 |
|
1627 |
|
1628 | /**
|
1629 | * The list of error codes used in runtime code of the `animations` package.
|
1630 | * Reserved error code range: 3000-3999.
|
1631 | */
|
1632 | export declare const enum ɵRuntimeErrorCode {
|
1633 | INVALID_TIMING_VALUE = 3000,
|
1634 | INVALID_STYLE_PARAMS = 3001,
|
1635 | INVALID_STYLE_VALUE = 3002,
|
1636 | INVALID_PARAM_VALUE = 3003,
|
1637 | INVALID_NODE_TYPE = 3004,
|
1638 | INVALID_CSS_UNIT_VALUE = 3005,
|
1639 | INVALID_TRIGGER = 3006,
|
1640 | INVALID_DEFINITION = 3007,
|
1641 | INVALID_STATE = 3008,
|
1642 | INVALID_PROPERTY = 3009,
|
1643 | INVALID_PARALLEL_ANIMATION = 3010,
|
1644 | INVALID_KEYFRAMES = 3011,
|
1645 | INVALID_OFFSET = 3012,
|
1646 | INVALID_STAGGER = 3013,
|
1647 | INVALID_QUERY = 3014,
|
1648 | INVALID_EXPRESSION = 3015,
|
1649 | INVALID_TRANSITION_ALIAS = 3016,
|
1650 | NEGATIVE_STEP_VALUE = 3100,
|
1651 | NEGATIVE_DELAY_VALUE = 3101,
|
1652 | KEYFRAME_OFFSETS_OUT_OF_ORDER = 3200,
|
1653 | KEYFRAMES_MISSING_OFFSETS = 3202,
|
1654 | MISSING_OR_DESTROYED_ANIMATION = 3300,
|
1655 | MISSING_PLAYER = 3301,
|
1656 | MISSING_TRIGGER = 3302,
|
1657 | MISSING_EVENT = 3303,
|
1658 | UNSUPPORTED_TRIGGER_EVENT = 3400,
|
1659 | UNREGISTERED_TRIGGER = 3401,
|
1660 | TRIGGER_TRANSITIONS_FAILED = 3402,
|
1661 | TRIGGER_PARSING_FAILED = 3403,
|
1662 | TRIGGER_BUILD_FAILED = 3404,
|
1663 | VALIDATION_FAILED = 3500,
|
1664 | BUILDING_FAILED = 3501,
|
1665 | ANIMATION_FAILED = 3502,
|
1666 | REGISTRATION_FAILED = 3503,
|
1667 | CREATE_ANIMATION_FAILED = 3504,
|
1668 | TRANSITION_FAILED = 3505,
|
1669 | BROWSER_ANIMATION_BUILDER_INJECTED_WITHOUT_ANIMATIONS = 3600
|
1670 | }
|
1671 |
|
1672 |
|
1673 | /**
|
1674 | * Represents a set of CSS styles for use in an animation style as a generic.
|
1675 | */
|
1676 | export declare interface ɵStyleData {
|
1677 | [key: string]: string | number;
|
1678 | }
|
1679 |
|
1680 | /**
|
1681 | * Represents a set of CSS styles for use in an animation style as a Map.
|
1682 | */
|
1683 | export declare type ɵStyleDataMap = Map<string, string | number>;
|
1684 |
|
1685 | export { }
|
1686 |
|
\ | No newline at end of file |