@angular/animations 7.2.7 → 7.2.11

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.
Files changed (44) hide show
  1. package/browser/browser.d.ts +1 -0
  2. package/browser/browser.metadata.json +1 -1
  3. package/browser/src/render/css_keyframes/css_keyframes_player.d.ts +3 -1
  4. package/browser/src/render/special_cased_styles.d.ts +42 -0
  5. package/browser/src/render/web_animations/web_animations_player.d.ts +3 -1
  6. package/browser/src/util.d.ts +3 -1
  7. package/browser/testing.d.ts +1 -1
  8. package/browser.d.ts +1 -1
  9. package/bundles/animations-browser-testing.umd.js +1 -1
  10. package/bundles/animations-browser-testing.umd.js.map +1 -1
  11. package/bundles/animations-browser-testing.umd.min.js +1 -1
  12. package/bundles/animations-browser-testing.umd.min.js.map +1 -1
  13. package/bundles/animations-browser.umd.js +140 -7
  14. package/bundles/animations-browser.umd.js.map +1 -1
  15. package/bundles/animations-browser.umd.min.js +14 -7
  16. package/bundles/animations-browser.umd.min.js.map +1 -1
  17. package/bundles/animations.umd.js +1 -1
  18. package/bundles/animations.umd.min.js +1 -1
  19. package/bundles/animations.umd.min.js.map +1 -1
  20. package/esm2015/browser/browser.js +2 -1
  21. package/esm2015/browser/src/render/css_keyframes/css_keyframes_driver.js +6 -3
  22. package/esm2015/browser/src/render/css_keyframes/css_keyframes_player.js +18 -4
  23. package/esm2015/browser/src/render/special_cased_styles.js +177 -0
  24. package/esm2015/browser/src/render/web_animations/web_animations_driver.js +5 -2
  25. package/esm2015/browser/src/render/web_animations/web_animations_player.js +18 -2
  26. package/esm2015/browser/src/util.js +6 -2
  27. package/esm2015/src/version.js +1 -1
  28. package/esm5/browser/browser.js +2 -1
  29. package/esm5/browser/src/render/css_keyframes/css_keyframes_driver.js +5 -3
  30. package/esm5/browser/src/render/css_keyframes/css_keyframes_player.js +12 -3
  31. package/esm5/browser/src/render/special_cased_styles.js +109 -0
  32. package/esm5/browser/src/render/web_animations/web_animations_driver.js +4 -2
  33. package/esm5/browser/src/render/web_animations/web_animations_player.js +12 -2
  34. package/esm5/browser/src/util.js +5 -2
  35. package/esm5/src/version.js +1 -1
  36. package/fesm2015/animations.js +1 -1
  37. package/fesm2015/browser/testing.js +1 -1
  38. package/fesm2015/browser.js +171 -8
  39. package/fesm2015/browser.js.map +1 -1
  40. package/fesm5/animations.js +1 -1
  41. package/fesm5/browser/testing.js +1 -1
  42. package/fesm5/browser.js +140 -8
  43. package/fesm5/browser.js.map +1 -1
  44. package/package.json +2 -2
@@ -2,3 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './index';
5
+ export { SpecialCasedStyles as ɵangular_packages_animations_browser_browser_a } from './src/render/special_cased_styles';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"AnimationDriver":{"__symbolic":"class","members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}]},"statics":{"NOOP":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵNoopAnimationDriver"}}}},"ɵAnimation":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵAnimationDriver"},{"__symbolic":"reference","module":"@angular/animations","name":"AnimationMetadata","line":20,"character":55}]}],"buildTimelines":[{"__symbolic":"method"}]}},"ɵAnimationStyleNormalizer":{"__symbolic":"class","members":{"normalizePropertyName":[{"__symbolic":"method"}],"normalizeStyleValue":[{"__symbolic":"method"}]}},"ɵNoopAnimationStyleNormalizer":{"__symbolic":"class","members":{"normalizePropertyName":[{"__symbolic":"method"}],"normalizeStyleValue":[{"__symbolic":"method"}]}},"ɵWebAnimationsStyleNormalizer":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵAnimationStyleNormalizer"},"members":{"normalizePropertyName":[{"__symbolic":"method"}],"normalizeStyleValue":[{"__symbolic":"method"}]}},"ɵAnimationDriver":{"__symbolic":"reference","name":"AnimationDriver"},"ɵNoopAnimationDriver":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}]}},"ɵAnimationEngine":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ɵAnimationDriver"},{"__symbolic":"reference","name":"ɵAnimationStyleNormalizer"}]}],"registerTrigger":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"onInsert":[{"__symbolic":"method"}],"onRemove":[{"__symbolic":"method"}],"disableAnimations":[{"__symbolic":"method"}],"process":[{"__symbolic":"method"}],"listen":[{"__symbolic":"method"}],"flush":[{"__symbolic":"method"}],"whenRenderingDone":[{"__symbolic":"method"}]}},"ɵCssKeyframesDriver":{"__symbolic":"class","members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"buildKeyframeElement":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}],"_notifyFaultyScrubber":[{"__symbolic":"method"}]}},"ɵCssKeyframesPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":37,"character":63,"module":"./src/render/css_keyframes/css_keyframes_player"}]},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":40,"character":37,"module":"./src/render/css_keyframes/css_keyframes_player"}]}],"onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"_flushDoneFns":[{"__symbolic":"method"}],"_flushStartFns":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"_buildStyler":[{"__symbolic":"method"}],"triggerCallback":[{"__symbolic":"method"}],"beforeDestroy":[{"__symbolic":"method"}]}},"ɵcontainsElement":{"__symbolic":"error","message":"Reference to a local symbol","line":145,"character":4,"context":{"name":"_contains"},"module":"./src/render/shared"},"ɵinvokeQuery":{"__symbolic":"error","message":"Reference to a local symbol","line":148,"character":4,"context":{"name":"_query"},"module":"./src/render/shared"},"ɵmatchesElement":{"__symbolic":"error","message":"Reference to a local symbol","line":146,"character":4,"context":{"name":"_matches"},"module":"./src/render/shared"},"ɵvalidateStyleProperty":{"__symbolic":"function"},"ɵWebAnimationsDriver":{"__symbolic":"class","members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"overrideWebAnimationsSupport":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}]}},"ɵsupportsWebAnimations":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":73,"character":9,"module":"./src/render/web_animations/web_animations_driver"},"right":"function"}},"ɵWebAnimationsPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":34,"character":45,"module":"./src/render/web_animations/web_animations_player"}]},{"__symbolic":"error","message":"Expression form not supported","line":35,"character":22,"module":"./src/render/web_animations/web_animations_player"}]}],"_onFinish":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"_buildPlayer":[{"__symbolic":"method"}],"_preparePlayerBeforeStart":[{"__symbolic":"method"}],"_triggerWebAnimation":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"_resetDomPlayerState":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}],"beforeDestroy":[{"__symbolic":"method"}],"triggerCallback":[{"__symbolic":"method"}]}},"ɵallowPreviousPlayerStylesMerge":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"duration"},"right":0},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"delay"},"right":0}}}},"origins":{"AnimationDriver":"./src/render/animation_driver","ɵAnimation":"./src/dsl/animation","ɵAnimationStyleNormalizer":"./src/dsl/style_normalization/animation_style_normalizer","ɵNoopAnimationStyleNormalizer":"./src/dsl/style_normalization/animation_style_normalizer","ɵWebAnimationsStyleNormalizer":"./src/dsl/style_normalization/web_animations_style_normalizer","ɵAnimationDriver":"./src/render/animation_driver","ɵNoopAnimationDriver":"./src/render/animation_driver","ɵAnimationEngine":"./src/render/animation_engine_next","ɵCssKeyframesDriver":"./src/render/css_keyframes/css_keyframes_driver","ɵCssKeyframesPlayer":"./src/render/css_keyframes/css_keyframes_player","ɵcontainsElement":"./src/render/shared","ɵinvokeQuery":"./src/render/shared","ɵmatchesElement":"./src/render/shared","ɵvalidateStyleProperty":"./src/render/shared","ɵWebAnimationsDriver":"./src/render/web_animations/web_animations_driver","ɵsupportsWebAnimations":"./src/render/web_animations/web_animations_driver","ɵWebAnimationsPlayer":"./src/render/web_animations/web_animations_player","ɵallowPreviousPlayerStylesMerge":"./src/util"},"importAs":"@angular/animations/browser"}
1
+ {"__symbolic":"module","version":4,"metadata":{"AnimationDriver":{"__symbolic":"class","members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}]},"statics":{"NOOP":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵNoopAnimationDriver"}}}},"ɵAnimation":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵAnimationDriver"},{"__symbolic":"reference","module":"@angular/animations","name":"AnimationMetadata","line":20,"character":55}]}],"buildTimelines":[{"__symbolic":"method"}]}},"ɵAnimationStyleNormalizer":{"__symbolic":"class","members":{"normalizePropertyName":[{"__symbolic":"method"}],"normalizeStyleValue":[{"__symbolic":"method"}]}},"ɵNoopAnimationStyleNormalizer":{"__symbolic":"class","members":{"normalizePropertyName":[{"__symbolic":"method"}],"normalizeStyleValue":[{"__symbolic":"method"}]}},"ɵWebAnimationsStyleNormalizer":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵAnimationStyleNormalizer"},"members":{"normalizePropertyName":[{"__symbolic":"method"}],"normalizeStyleValue":[{"__symbolic":"method"}]}},"ɵAnimationDriver":{"__symbolic":"reference","name":"AnimationDriver"},"ɵNoopAnimationDriver":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}]}},"ɵAnimationEngine":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ɵAnimationDriver"},{"__symbolic":"reference","name":"ɵAnimationStyleNormalizer"}]}],"registerTrigger":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"onInsert":[{"__symbolic":"method"}],"onRemove":[{"__symbolic":"method"}],"disableAnimations":[{"__symbolic":"method"}],"process":[{"__symbolic":"method"}],"listen":[{"__symbolic":"method"}],"flush":[{"__symbolic":"method"}],"whenRenderingDone":[{"__symbolic":"method"}]}},"ɵCssKeyframesDriver":{"__symbolic":"class","members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"buildKeyframeElement":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}],"_notifyFaultyScrubber":[{"__symbolic":"method"}]}},"ɵCssKeyframesPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":36,"character":63,"module":"./src/render/css_keyframes/css_keyframes_player"}]},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":39,"character":37,"module":"./src/render/css_keyframes/css_keyframes_player"},{"__symbolic":"reference","name":"ɵangular_packages_animations_browser_browser_a"}]}],"onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"_flushDoneFns":[{"__symbolic":"method"}],"_flushStartFns":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"_buildStyler":[{"__symbolic":"method"}],"triggerCallback":[{"__symbolic":"method"}],"beforeDestroy":[{"__symbolic":"method"}]}},"ɵcontainsElement":{"__symbolic":"error","message":"Reference to a local symbol","line":145,"character":4,"context":{"name":"_contains"},"module":"./src/render/shared"},"ɵinvokeQuery":{"__symbolic":"error","message":"Reference to a local symbol","line":148,"character":4,"context":{"name":"_query"},"module":"./src/render/shared"},"ɵmatchesElement":{"__symbolic":"error","message":"Reference to a local symbol","line":146,"character":4,"context":{"name":"_matches"},"module":"./src/render/shared"},"ɵvalidateStyleProperty":{"__symbolic":"function"},"ɵWebAnimationsDriver":{"__symbolic":"class","members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"overrideWebAnimationsSupport":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}]}},"ɵsupportsWebAnimations":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":75,"character":9,"module":"./src/render/web_animations/web_animations_driver"},"right":"function"}},"ɵWebAnimationsPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":35,"character":45,"module":"./src/render/web_animations/web_animations_player"}]},{"__symbolic":"error","message":"Expression form not supported","line":36,"character":22,"module":"./src/render/web_animations/web_animations_player"},{"__symbolic":"reference","name":"ɵangular_packages_animations_browser_browser_a"}]}],"_onFinish":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"_buildPlayer":[{"__symbolic":"method"}],"_preparePlayerBeforeStart":[{"__symbolic":"method"}],"_triggerWebAnimation":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"_resetDomPlayerState":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}],"beforeDestroy":[{"__symbolic":"method"}],"triggerCallback":[{"__symbolic":"method"}]}},"ɵallowPreviousPlayerStylesMerge":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"duration"},"right":0},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"delay"},"right":0}}},"ɵangular_packages_animations_browser_browser_a":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"error","message":"Expression form not supported","line":52,"character":51,"module":"./src/render/special_cased_styles"},{"__symbolic":"error","message":"Expression form not supported","line":53,"character":26,"module":"./src/render/special_cased_styles"}]}],"start":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]},"statics":{"initialStylesByElement":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"WeakMap"}}}}},"origins":{"AnimationDriver":"./src/render/animation_driver","ɵAnimation":"./src/dsl/animation","ɵAnimationStyleNormalizer":"./src/dsl/style_normalization/animation_style_normalizer","ɵNoopAnimationStyleNormalizer":"./src/dsl/style_normalization/animation_style_normalizer","ɵWebAnimationsStyleNormalizer":"./src/dsl/style_normalization/web_animations_style_normalizer","ɵAnimationDriver":"./src/render/animation_driver","ɵNoopAnimationDriver":"./src/render/animation_driver","ɵAnimationEngine":"./src/render/animation_engine_next","ɵCssKeyframesDriver":"./src/render/css_keyframes/css_keyframes_driver","ɵCssKeyframesPlayer":"./src/render/css_keyframes/css_keyframes_player","ɵcontainsElement":"./src/render/shared","ɵinvokeQuery":"./src/render/shared","ɵmatchesElement":"./src/render/shared","ɵvalidateStyleProperty":"./src/render/shared","ɵWebAnimationsDriver":"./src/render/web_animations/web_animations_driver","ɵsupportsWebAnimations":"./src/render/web_animations/web_animations_driver","ɵWebAnimationsPlayer":"./src/render/web_animations/web_animations_player","ɵallowPreviousPlayerStylesMerge":"./src/util","ɵangular_packages_animations_browser_browser_a":"./src/render/special_cased_styles"},"importAs":"@angular/animations/browser"}
@@ -6,6 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { AnimationPlayer } from '@angular/animations';
9
+ import { SpecialCasedStyles } from '../special_cased_styles';
9
10
  export declare const enum AnimatorControlState {
10
11
  INITIALIZED = 1,
11
12
  STARTED = 2,
@@ -21,6 +22,7 @@ export declare class CssKeyframesPlayer implements AnimationPlayer {
21
22
  private readonly _duration;
22
23
  private readonly _delay;
23
24
  private readonly _finalStyles;
25
+ private readonly _specialStyles?;
24
26
  private _onDoneFns;
25
27
  private _onStartFns;
26
28
  private _onDestroyFns;
@@ -37,7 +39,7 @@ export declare class CssKeyframesPlayer implements AnimationPlayer {
37
39
  [key: string]: string | number;
38
40
  }[], animationName: string, _duration: number, _delay: number, easing: string, _finalStyles: {
39
41
  [key: string]: any;
40
- });
42
+ }, _specialStyles?: SpecialCasedStyles | null | undefined);
41
43
  onStart(fn: () => void): void;
42
44
  onDone(fn: () => void): void;
43
45
  onDestroy(fn: () => void): void;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are
3
+ * detected.
4
+ *
5
+ * In CSS there exist properties that cannot be animated within a keyframe animation
6
+ * (whether it be via CSS keyframes or web-animations) and the animation implementation
7
+ * will ignore them. This function is designed to detect those special cased styles and
8
+ * return a container that will be executed at the start and end of the animation.
9
+ *
10
+ * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`
11
+ */
12
+ export declare function packageNonAnimatableStyles(element: any, styles: {
13
+ [key: string]: any;
14
+ } | {
15
+ [key: string]: any;
16
+ }[]): SpecialCasedStyles | null;
17
+ /**
18
+ * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
19
+ *
20
+ * When started (when the `start()` method is run) then the provided `startStyles`
21
+ * will be applied. When finished (when the `finish()` method is called) the
22
+ * `endStyles` will be applied as well any any starting styles. Finally when
23
+ * `destroy()` is called then all styles will be removed.
24
+ */
25
+ export declare class SpecialCasedStyles {
26
+ private _element;
27
+ private _startStyles;
28
+ private _endStyles;
29
+ static initialStylesByElement: WeakMap<any, {
30
+ [key: string]: any;
31
+ }>;
32
+ private _state;
33
+ private _initialStyles;
34
+ constructor(_element: any, _startStyles: {
35
+ [key: string]: any;
36
+ } | null, _endStyles: {
37
+ [key: string]: any;
38
+ } | null);
39
+ start(): void;
40
+ finish(): void;
41
+ destroy(): void;
42
+ }
@@ -6,6 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { AnimationPlayer } from '@angular/animations';
9
+ import { SpecialCasedStyles } from '../special_cased_styles';
9
10
  import { DOMAnimation } from './dom_animation';
10
11
  export declare class WebAnimationsPlayer implements AnimationPlayer {
11
12
  element: any;
@@ -15,6 +16,7 @@ export declare class WebAnimationsPlayer implements AnimationPlayer {
15
16
  options: {
16
17
  [key: string]: string | number;
17
18
  };
19
+ private _specialStyles?;
18
20
  private _onDoneFns;
19
21
  private _onStartFns;
20
22
  private _onDestroyFns;
@@ -35,7 +37,7 @@ export declare class WebAnimationsPlayer implements AnimationPlayer {
35
37
  [key: string]: string | number;
36
38
  }[], options: {
37
39
  [key: string]: string | number;
38
- });
40
+ }, _specialStyles?: SpecialCasedStyles | null | undefined);
39
41
  private _onFinish;
40
42
  init(): void;
41
43
  private _buildPlayer;
@@ -30,7 +30,9 @@ export declare function copyObj(obj: {
30
30
  };
31
31
  export declare function normalizeStyles(styles: ɵStyleData | ɵStyleData[]): ɵStyleData;
32
32
  export declare function copyStyles(styles: ɵStyleData, readPrototype: boolean, destination?: ɵStyleData): ɵStyleData;
33
- export declare function setStyles(element: any, styles: ɵStyleData): void;
33
+ export declare function setStyles(element: any, styles: ɵStyleData, formerStyles?: {
34
+ [key: string]: any;
35
+ }): void;
34
36
  export declare function eraseStyles(element: any, styles: ɵStyleData): void;
35
37
  export declare function normalizeAnimationEntry(steps: AnimationMetadata | AnimationMetadata[]): AnimationMetadata;
36
38
  export declare function validateStyleParams(value: string | number, options: AnimationOptions, errors: any[]): void;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.7
2
+ * @license Angular v7.2.11
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/browser.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.7
2
+ * @license Angular v7.2.11
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.7
2
+ * @license Angular v7.2.11
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"animations-browser-testing.umd.js","sources":["../../../../../../../../../../external/ngdeps/node_modules/tslib/tslib.es6.js","../../../../../../../packages/animations/browser/testing/src/mock_animation_driver.ts","../../../../../../../packages/animations/browser/testing/src/testing.ts","../../../../../../../packages/animations/browser/testing/public_api.ts","../../../../../../../packages/animations/browser/testing/index.ts","../../../../../../../packages/animations/browser/testing/testing.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {AUTO_STYLE, AnimationPlayer, NoopAnimationPlayer, ɵStyleData} from '@angular/animations';\nimport {ɵAnimationDriver as AnimationDriver, ɵallowPreviousPlayerStylesMerge as allowPreviousPlayerStylesMerge, ɵcontainsElement as containsElement, ɵinvokeQuery as invokeQuery, ɵmatchesElement as matchesElement, ɵvalidateStyleProperty as validateStyleProperty} from '@angular/animations/browser';\n\n\n/**\n * @publicApi\n */\nexport class MockAnimationDriver implements AnimationDriver {\n static log: AnimationPlayer[] = [];\n\n validateStyleProperty(prop: string): boolean { return validateStyleProperty(prop); }\n\n matchesElement(element: any, selector: string): boolean {\n return matchesElement(element, selector);\n }\n\n containsElement(elm1: any, elm2: any): boolean { return containsElement(elm1, elm2); }\n\n query(element: any, selector: string, multi: boolean): any[] {\n return invokeQuery(element, selector, multi);\n }\n\n computeStyle(element: any, prop: string, defaultValue?: string): string {\n return defaultValue || '';\n }\n\n animate(\n element: any, keyframes: {[key: string]: string | number}[], duration: number, delay: number,\n easing: string, previousPlayers: any[] = []): MockAnimationPlayer {\n const player =\n new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);\n MockAnimationDriver.log.push(<AnimationPlayer>player);\n return player;\n }\n}\n\n/**\n * @publicApi\n */\nexport class MockAnimationPlayer extends NoopAnimationPlayer {\n private __finished = false;\n private __started = false;\n public previousStyles: {[key: string]: string | number} = {};\n private _onInitFns: (() => any)[] = [];\n public currentSnapshot: ɵStyleData = {};\n\n constructor(\n public element: any, public keyframes: {[key: string]: string | number}[],\n public duration: number, public delay: number, public easing: string,\n public previousPlayers: any[]) {\n super(duration, delay);\n\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach(player => {\n if (player instanceof MockAnimationPlayer) {\n const styles = player.currentSnapshot;\n Object.keys(styles).forEach(prop => this.previousStyles[prop] = styles[prop]);\n }\n });\n }\n }\n\n /* @internal */\n onInit(fn: () => any) { this._onInitFns.push(fn); }\n\n /* @internal */\n init() {\n super.init();\n this._onInitFns.forEach(fn => fn());\n this._onInitFns = [];\n }\n\n finish(): void {\n super.finish();\n this.__finished = true;\n }\n\n destroy(): void {\n super.destroy();\n this.__finished = true;\n }\n\n /* @internal */\n triggerMicrotask() {}\n\n play(): void {\n super.play();\n this.__started = true;\n }\n\n hasStarted() { return this.__started; }\n\n beforeDestroy() {\n const captures: ɵStyleData = {};\n\n Object.keys(this.previousStyles).forEach(prop => {\n captures[prop] = this.previousStyles[prop];\n });\n\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this.keyframes.forEach(kf => {\n Object.keys(kf).forEach(prop => {\n if (prop != 'offset') {\n captures[prop] = this.__finished ? kf[prop] : AUTO_STYLE;\n }\n });\n });\n }\n\n this.currentSnapshot = captures;\n }\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nexport {MockAnimationDriver, MockAnimationPlayer} from './mock_animation_driver';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verifcation. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["validateStyleProperty","matchesElement","containsElement","invokeQuery","tslib_1.__extends","allowPreviousPlayerStylesMerge","AUTO_STYLE","NoopAnimationPlayer"],"mappings":";;;;;;;;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;;AAEF,IAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;IAC3C,IAAI,CAAC,CAAC,SAAS,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,iBAAM,OAAO,WAAE,CAAC;YAChB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SACxB;;QAGD,8CAAgB,GAAhB,eAAqB;QAErB,kCAAI,GAAJ;YACE,iBAAM,IAAI,WAAE,CAAC;YACb,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;SACvB;QAED,wCAAU,GAAV,cAAe,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE;QAEvC,2CAAa,GAAb;YAAA,iBAqBC;YApBC,IAAM,QAAQ,GAAe,EAAE,CAAC;YAEhC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,UAAA,IAAI;gBAC3C,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;aAC5C,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;;;;gBAIrB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAA,EAAE;oBACvB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,UAAA,IAAI;wBAC1B,IAAI,IAAI,IAAI,QAAQ,EAAE;4BACpB,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,GAAGC,qBAAU,CAAC;yBAC1D;qBACF,CAAC,CAAC;iBACJ,CAAC,CAAC;aACJ;YAED,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;SACjC;QACH,0BAAC;IAAD,CA3EA,CAAyCC,8BAAmB;;IC9C5D;;;;;;OAMG;;ICNH;;;;;;OAMG;;ICNH;;;;;;OAMG;;ICNH;;OAEG;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"animations-browser-testing.umd.js","sources":["../../../../../../../../../../external/npm/node_modules/tslib/tslib.es6.js","../../../../../../../packages/animations/browser/testing/src/mock_animation_driver.ts","../../../../../../../packages/animations/browser/testing/src/testing.ts","../../../../../../../packages/animations/browser/testing/public_api.ts","../../../../../../../packages/animations/browser/testing/index.ts","../../../../../../../packages/animations/browser/testing/testing.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {AUTO_STYLE, AnimationPlayer, NoopAnimationPlayer, ɵStyleData} from '@angular/animations';\nimport {ɵAnimationDriver as AnimationDriver, ɵallowPreviousPlayerStylesMerge as allowPreviousPlayerStylesMerge, ɵcontainsElement as containsElement, ɵinvokeQuery as invokeQuery, ɵmatchesElement as matchesElement, ɵvalidateStyleProperty as validateStyleProperty} from '@angular/animations/browser';\n\n\n/**\n * @publicApi\n */\nexport class MockAnimationDriver implements AnimationDriver {\n static log: AnimationPlayer[] = [];\n\n validateStyleProperty(prop: string): boolean { return validateStyleProperty(prop); }\n\n matchesElement(element: any, selector: string): boolean {\n return matchesElement(element, selector);\n }\n\n containsElement(elm1: any, elm2: any): boolean { return containsElement(elm1, elm2); }\n\n query(element: any, selector: string, multi: boolean): any[] {\n return invokeQuery(element, selector, multi);\n }\n\n computeStyle(element: any, prop: string, defaultValue?: string): string {\n return defaultValue || '';\n }\n\n animate(\n element: any, keyframes: {[key: string]: string | number}[], duration: number, delay: number,\n easing: string, previousPlayers: any[] = []): MockAnimationPlayer {\n const player =\n new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);\n MockAnimationDriver.log.push(<AnimationPlayer>player);\n return player;\n }\n}\n\n/**\n * @publicApi\n */\nexport class MockAnimationPlayer extends NoopAnimationPlayer {\n private __finished = false;\n private __started = false;\n public previousStyles: {[key: string]: string | number} = {};\n private _onInitFns: (() => any)[] = [];\n public currentSnapshot: ɵStyleData = {};\n\n constructor(\n public element: any, public keyframes: {[key: string]: string | number}[],\n public duration: number, public delay: number, public easing: string,\n public previousPlayers: any[]) {\n super(duration, delay);\n\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach(player => {\n if (player instanceof MockAnimationPlayer) {\n const styles = player.currentSnapshot;\n Object.keys(styles).forEach(prop => this.previousStyles[prop] = styles[prop]);\n }\n });\n }\n }\n\n /* @internal */\n onInit(fn: () => any) { this._onInitFns.push(fn); }\n\n /* @internal */\n init() {\n super.init();\n this._onInitFns.forEach(fn => fn());\n this._onInitFns = [];\n }\n\n finish(): void {\n super.finish();\n this.__finished = true;\n }\n\n destroy(): void {\n super.destroy();\n this.__finished = true;\n }\n\n /* @internal */\n triggerMicrotask() {}\n\n play(): void {\n super.play();\n this.__started = true;\n }\n\n hasStarted() { return this.__started; }\n\n beforeDestroy() {\n const captures: ɵStyleData = {};\n\n Object.keys(this.previousStyles).forEach(prop => {\n captures[prop] = this.previousStyles[prop];\n });\n\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this.keyframes.forEach(kf => {\n Object.keys(kf).forEach(prop => {\n if (prop != 'offset') {\n captures[prop] = this.__finished ? kf[prop] : AUTO_STYLE;\n }\n });\n });\n }\n\n this.currentSnapshot = captures;\n }\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nexport {MockAnimationDriver, MockAnimationPlayer} from './mock_animation_driver';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verifcation. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["validateStyleProperty","matchesElement","containsElement","invokeQuery","tslib_1.__extends","allowPreviousPlayerStylesMerge","AUTO_STYLE","NoopAnimationPlayer"],"mappings":";;;;;;;;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;;AAEF,IAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;IAC3C,I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-1 +1 @@
1
- {"version":3,"sources":["packages/animations/animations-browser-testing.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","animations","browser","testing","this","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","MockAnimationDriver","prototype","validateStyleProperty","prop","ɵvalidateStyleProperty","matchesElement","element","selector","ɵmatchesElement","containsElement","elm1","elm2","ɵcontainsElement","query","multi","ɵinvokeQuery","computeStyle","defaultValue","animate","keyframes","duration","delay","easing","previousPlayers","player","MockAnimationPlayer","log","push","_super","_this","call","__finished","__started","previousStyles","_onInitFns","currentSnapshot","ɵallowPreviousPlayerStylesMerge","forEach","styles_1","keys","__extends","__","constructor","create","onInit","fn","init","finish","destroy","triggerMicrotask","play","hasStarted","beforeDestroy","captures","kf","AUTO_STYLE","NoopAnimationPlayer","defineProperty","value"],"mappings":";;;;;CAMC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,uBAAwBA,QAAQ,gCACtG,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,uCAAwC,UAAW,sBAAuB,+BAAgCJ,GACpIA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,OAAUR,EAAOQ,GAAGC,WAAaT,EAAOQ,GAAGC,eAAkBT,EAAOQ,GAAGC,WAAWC,QAAUV,EAAOQ,GAAGC,WAAWC,YAAeV,EAAOQ,GAAGC,WAAWC,QAAQC,YAAeX,EAAOQ,GAAGC,WAAYT,EAAOQ,GAAGC,WAAWC,SAHjR,CAIEE,KAAM,SAAUV,EAASO,EAAYC,GAAW,aAkB9C,IAAIG,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpD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gBAK1EjE,KAAK6C,gBAAkBkB,GAEpB5B,EApE6B,CAqEtCtC,EAAWqE;;;;;;;;;;;;;;;;;;;;;;AA8Bb5E,EAAQoB,oBAAsBA,EAC9BpB,EAAQ6C,oBAAsBA,EAE9B/B,OAAO+D,eAAe7E,EAAS,cAAgB8E,OAAO","sourcesContent":["/**\n * @license Angular v7.2.7\n * (c) 2010-2019 Google LLC. https://angular.io/\n * License: MIT\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/animations/browser')) :\n typeof define === 'function' && define.amd ? define('@angular/animations/browser/testing', ['exports', '@angular/animations', '@angular/animations/browser'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.animations = global.ng.animations || {}, global.ng.animations.browser = global.ng.animations.browser || {}, global.ng.animations.browser.testing = {}), global.ng.animations, global.ng.animations.browser));\n}(this, function (exports, animations, browser) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\n\n /**\n * @publicApi\n */\n var MockAnimationDriver = /** @class */ (function () {\n function MockAnimationDriver() {\n }\n MockAnimationDriver.prototype.validateStyleProperty = function (prop) { return browser.ɵvalidateStyleProperty(prop); };\n MockAnimationDriver.prototype.matchesElement = function (element, selector) {\n return browser.ɵmatchesElement(element, selector);\n };\n MockAnimationDriver.prototype.containsElement = function (elm1, elm2) { return browser.ɵcontainsElement(elm1, elm2); };\n MockAnimationDriver.prototype.query = function (element, selector, multi) {\n return browser.ɵinvokeQuery(element, selector, multi);\n };\n MockAnimationDriver.prototype.computeStyle = function (element, prop, defaultValue) {\n return defaultValue || '';\n };\n MockAnimationDriver.prototype.animate = function (element, keyframes, duration, delay, easing, previousPlayers) {\n if (previousPlayers === void 0) { previousPlayers = []; }\n var player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);\n MockAnimationDriver.log.push(player);\n return player;\n };\n MockAnimationDriver.log = [];\n return MockAnimationDriver;\n }());\n /**\n * @publicApi\n */\n var MockAnimationPlayer = /** @class */ (function (_super) {\n __extends(MockAnimationPlayer, _super);\n function MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers) {\n var _this = _super.call(this, duration, delay) || this;\n _this.element = element;\n _this.keyframes = keyframes;\n _this.duration = duration;\n _this.delay = delay;\n _this.easing = easing;\n _this.previousPlayers = previousPlayers;\n _this.__finished = false;\n _this.__started = false;\n _this.previousStyles = {};\n _this._onInitFns = [];\n _this.currentSnapshot = {};\n if (browser.ɵallowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach(function (player) {\n if (player instanceof MockAnimationPlayer) {\n var styles_1 = player.currentSnapshot;\n Object.keys(styles_1).forEach(function (prop) { return _this.previousStyles[prop] = styles_1[prop]; });\n }\n });\n }\n return _this;\n }\n /* @internal */\n MockAnimationPlayer.prototype.onInit = function (fn) { this._onInitFns.push(fn); };\n /* @internal */\n MockAnimationPlayer.prototype.init = function () {\n _super.prototype.init.call(this);\n this._onInitFns.forEach(function (fn) { return fn(); });\n this._onInitFns = [];\n };\n MockAnimationPlayer.prototype.finish = function () {\n _super.prototype.finish.call(this);\n this.__finished = true;\n };\n MockAnimationPlayer.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.__finished = true;\n };\n /* @internal */\n MockAnimationPlayer.prototype.triggerMicrotask = function () { };\n MockAnimationPlayer.prototype.play = function () {\n _super.prototype.play.call(this);\n this.__started = true;\n };\n MockAnimationPlayer.prototype.hasStarted = function () { return this.__started; };\n MockAnimationPlayer.prototype.beforeDestroy = function () {\n var _this = this;\n var captures = {};\n Object.keys(this.previousStyles).forEach(function (prop) {\n captures[prop] = _this.previousStyles[prop];\n });\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this.keyframes.forEach(function (kf) {\n Object.keys(kf).forEach(function (prop) {\n if (prop != 'offset') {\n captures[prop] = _this.__finished ? kf[prop] : animations.AUTO_STYLE;\n }\n });\n });\n }\n this.currentSnapshot = captures;\n };\n return MockAnimationPlayer;\n }(animations.NoopAnimationPlayer));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MockAnimationDriver = MockAnimationDriver;\n exports.MockAnimationPlayer = MockAnimationPlayer;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n//# sourceMappingURL=animations-browser-testing.umd.js.map\n"]}
1
+ {"version":3,"sources":["packages/animations/animations-browser-testing.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","animations","browser","testing","this","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","MockAnimationDriver","prototype","validateStyleProperty","prop","ɵvalidateStyleProperty","matchesElement","element","selector","ɵmatchesElement","containsElement","elm1","elm2","ɵcontainsElement","query","multi","ɵinvokeQuery","computeStyle","defaultValue","animate","keyframes","duration","delay","easing","previousPlayers","player","MockAnimationPlayer","log","push","_super","_this","call","__finished","__started","previousStyles","_onInitFns","currentSnapshot","ɵallowPreviousPlayerStylesMerge","forEach","styles_1","keys","__extends","__","constructor","create","onInit","fn","init","finish","destroy","triggerMicrotask","play","hasStarted","beforeDestroy","captures","kf","AUTO_STYLE","NoopAnimationPlayer","defineProperty","value"],"mappings":";;;;;CAMC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,uBAAwBA,QAAQ,gCACtG,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,uCAAwC,UAAW,sBAAuB,+BAAgCJ,GACpIA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,OAAUR,EAAOQ,GAAGC,WAAaT,EAAOQ,GAAGC,eAAkBT,EAAOQ,GAAGC,WAAWC,QAAUV,EAAOQ,GAAGC,WAAWC,YAAeV,EAAOQ,GAAGC,WAAWC,QAAQC,YAAeX,EAAOQ,GAAGC,WAAYT,EAAOQ,GAAGC,WAAWC,SAHjR,CAIEE,KAAM,SAAUV,EAASO,EAAYC,GAAW,aAkB9C,IAAIG,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EA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AQ0B,EAAME,WAAauB,EAAGnD,GAAQhB,EAAWoE,gBAK1EjE,KAAK6C,gBAAkBkB,GAEpB5B,EApE6B,CAqEtCtC,EAAWqE;;;;;;;;;;;;;;;;;;;;;;AA8Bb5E,EAAQoB,oBAAsBA,EAC9BpB,EAAQ6C,oBAAsBA,EAE9B/B,OAAO+D,eAAe7E,EAAS,cAAgB8E,OAAO","sourcesContent":["/**\n * @license Angular v7.2.11\n * (c) 2010-2019 Google LLC. https://angular.io/\n * License: MIT\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/animations/browser')) :\n typeof define === 'function' && define.amd ? define('@angular/animations/browser/testing', ['exports', '@angular/animations', '@angular/animations/browser'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.animations = global.ng.animations || {}, global.ng.animations.browser = global.ng.animations.browser || {}, global.ng.animations.browser.testing = {}), global.ng.animations, global.ng.animations.browser));\n}(this, function (exports, animations, browser) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\n\n /**\n * @publicApi\n */\n var MockAnimationDriver = /** @class */ (function () {\n function MockAnimationDriver() {\n }\n MockAnimationDriver.prototype.validateStyleProperty = function (prop) { return browser.ɵvalidateStyleProperty(prop); };\n MockAnimationDriver.prototype.matchesElement = function (element, selector) {\n return browser.ɵmatchesElement(element, selector);\n };\n MockAnimationDriver.prototype.containsElement = function (elm1, elm2) { return browser.ɵcontainsElement(elm1, elm2); };\n MockAnimationDriver.prototype.query = function (element, selector, multi) {\n return browser.ɵinvokeQuery(element, selector, multi);\n };\n MockAnimationDriver.prototype.computeStyle = function (element, prop, defaultValue) {\n return defaultValue || '';\n };\n MockAnimationDriver.prototype.animate = function (element, keyframes, duration, delay, easing, previousPlayers) {\n if (previousPlayers === void 0) { previousPlayers = []; }\n var player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);\n MockAnimationDriver.log.push(player);\n return player;\n };\n MockAnimationDriver.log = [];\n return MockAnimationDriver;\n }());\n /**\n * @publicApi\n */\n var MockAnimationPlayer = /** @class */ (function (_super) {\n __extends(MockAnimationPlayer, _super);\n function MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers) {\n var _this = _super.call(this, duration, delay) || this;\n _this.element = element;\n _this.keyframes = keyframes;\n _this.duration = duration;\n _this.delay = delay;\n _this.easing = easing;\n _this.previousPlayers = previousPlayers;\n _this.__finished = false;\n _this.__started = false;\n _this.previousStyles = {};\n _this._onInitFns = [];\n _this.currentSnapshot = {};\n if (browser.ɵallowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach(function (player) {\n if (player instanceof MockAnimationPlayer) {\n var styles_1 = player.currentSnapshot;\n Object.keys(styles_1).forEach(function (prop) { return _this.previousStyles[prop] = styles_1[prop]; });\n }\n });\n }\n return _this;\n }\n /* @internal */\n MockAnimationPlayer.prototype.onInit = function (fn) { this._onInitFns.push(fn); };\n /* @internal */\n MockAnimationPlayer.prototype.init = function () {\n _super.prototype.init.call(this);\n this._onInitFns.forEach(function (fn) { return fn(); });\n this._onInitFns = [];\n };\n MockAnimationPlayer.prototype.finish = function () {\n _super.prototype.finish.call(this);\n this.__finished = true;\n };\n MockAnimationPlayer.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.__finished = true;\n };\n /* @internal */\n MockAnimationPlayer.prototype.triggerMicrotask = function () { };\n MockAnimationPlayer.prototype.play = function () {\n _super.prototype.play.call(this);\n this.__started = true;\n };\n MockAnimationPlayer.prototype.hasStarted = function () { return this.__started; };\n MockAnimationPlayer.prototype.beforeDestroy = function () {\n var _this = this;\n var captures = {};\n Object.keys(this.previousStyles).forEach(function (prop) {\n captures[prop] = _this.previousStyles[prop];\n });\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this.keyframes.forEach(function (kf) {\n Object.keys(kf).forEach(function (prop) {\n if (prop != 'offset') {\n captures[prop] = _this.__finished ? kf[prop] : animations.AUTO_STYLE;\n }\n });\n });\n }\n this.currentSnapshot = captures;\n };\n return MockAnimationPlayer;\n }(animations.NoopAnimationPlayer));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MockAnimationDriver = MockAnimationDriver;\n exports.MockAnimationPlayer = MockAnimationPlayer;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n//# sourceMappingURL=animations-browser-testing.umd.js.map\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.7
2
+ * @license Angular v7.2.11
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -452,10 +452,13 @@
452
452
  }
453
453
  element.setAttribute('style', styleAttrValue);
454
454
  }
455
- function setStyles(element, styles) {
455
+ function setStyles(element, styles, formerStyles) {
456
456
  if (element['style']) {
457
457
  Object.keys(styles).forEach(function (prop) {
458
458
  var camelProp = dashCaseToCamelCase(prop);
459
+ if (formerStyles && !formerStyles.hasOwnProperty(prop)) {
460
+ formerStyles[prop] = element.style[camelProp];
461
+ }
459
462
  element.style[camelProp] = styles[prop];
460
463
  });
461
464
  // On the server set the 'style' attribute since it's not automatically reflected.
@@ -3945,6 +3948,113 @@
3945
3948
  return AnimationEngine;
3946
3949
  }());
3947
3950
 
3951
+ /**
3952
+ * @license
3953
+ * Copyright Google Inc. All Rights Reserved.
3954
+ *
3955
+ * Use of this source code is governed by an MIT-style license that can be
3956
+ * found in the LICENSE file at https://angular.io/license
3957
+ */
3958
+ /**
3959
+ * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are
3960
+ * detected.
3961
+ *
3962
+ * In CSS there exist properties that cannot be animated within a keyframe animation
3963
+ * (whether it be via CSS keyframes or web-animations) and the animation implementation
3964
+ * will ignore them. This function is designed to detect those special cased styles and
3965
+ * return a container that will be executed at the start and end of the animation.
3966
+ *
3967
+ * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`
3968
+ */
3969
+ function packageNonAnimatableStyles(element, styles) {
3970
+ var startStyles = null;
3971
+ var endStyles = null;
3972
+ if (Array.isArray(styles) && styles.length) {
3973
+ startStyles = filterNonAnimatableStyles(styles[0]);
3974
+ if (styles.length > 1) {
3975
+ endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);
3976
+ }
3977
+ }
3978
+ else if (styles) {
3979
+ startStyles = filterNonAnimatableStyles(styles);
3980
+ }
3981
+ return (startStyles || endStyles) ? new SpecialCasedStyles(element, startStyles, endStyles) :
3982
+ null;
3983
+ }
3984
+ /**
3985
+ * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
3986
+ *
3987
+ * When started (when the `start()` method is run) then the provided `startStyles`
3988
+ * will be applied. When finished (when the `finish()` method is called) the
3989
+ * `endStyles` will be applied as well any any starting styles. Finally when
3990
+ * `destroy()` is called then all styles will be removed.
3991
+ */
3992
+ var SpecialCasedStyles = /** @class */ (function () {
3993
+ function SpecialCasedStyles(_element, _startStyles, _endStyles) {
3994
+ this._element = _element;
3995
+ this._startStyles = _startStyles;
3996
+ this._endStyles = _endStyles;
3997
+ this._state = 0 /* Pending */;
3998
+ var initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);
3999
+ if (!initialStyles) {
4000
+ SpecialCasedStyles.initialStylesByElement.set(_element, initialStyles = {});
4001
+ }
4002
+ this._initialStyles = initialStyles;
4003
+ }
4004
+ SpecialCasedStyles.prototype.start = function () {
4005
+ if (this._state < 1 /* Started */) {
4006
+ if (this._startStyles) {
4007
+ setStyles(this._element, this._startStyles, this._initialStyles);
4008
+ }
4009
+ this._state = 1 /* Started */;
4010
+ }
4011
+ };
4012
+ SpecialCasedStyles.prototype.finish = function () {
4013
+ this.start();
4014
+ if (this._state < 2 /* Finished */) {
4015
+ setStyles(this._element, this._initialStyles);
4016
+ if (this._endStyles) {
4017
+ setStyles(this._element, this._endStyles);
4018
+ this._endStyles = null;
4019
+ }
4020
+ this._state = 1 /* Started */;
4021
+ }
4022
+ };
4023
+ SpecialCasedStyles.prototype.destroy = function () {
4024
+ this.finish();
4025
+ if (this._state < 3 /* Destroyed */) {
4026
+ SpecialCasedStyles.initialStylesByElement.delete(this._element);
4027
+ if (this._startStyles) {
4028
+ eraseStyles(this._element, this._startStyles);
4029
+ this._endStyles = null;
4030
+ }
4031
+ if (this._endStyles) {
4032
+ eraseStyles(this._element, this._endStyles);
4033
+ this._endStyles = null;
4034
+ }
4035
+ setStyles(this._element, this._initialStyles);
4036
+ this._state = 3 /* Destroyed */;
4037
+ }
4038
+ };
4039
+ SpecialCasedStyles.initialStylesByElement = new WeakMap();
4040
+ return SpecialCasedStyles;
4041
+ }());
4042
+ function filterNonAnimatableStyles(styles) {
4043
+ var result = null;
4044
+ var props = Object.keys(styles);
4045
+ for (var i = 0; i < props.length; i++) {
4046
+ var prop = props[i];
4047
+ if (isNonAnimatableStyle(prop)) {
4048
+ result = result || {};
4049
+ result[prop] = styles[prop];
4050
+ }
4051
+ }
4052
+ return result;
4053
+ }
4054
+ function isNonAnimatableStyle(prop) {
4055
+ return prop === 'display' || prop === 'position';
4056
+ }
4057
+
3948
4058
  /**
3949
4059
  * @license
3950
4060
  * Copyright Google Inc. All Rights Reserved.
@@ -4081,13 +4191,14 @@
4081
4191
  var DEFAULT_FILL_MODE = 'forwards';
4082
4192
  var DEFAULT_EASING = 'linear';
4083
4193
  var CssKeyframesPlayer = /** @class */ (function () {
4084
- function CssKeyframesPlayer(element, keyframes, animationName, _duration, _delay, easing, _finalStyles) {
4194
+ function CssKeyframesPlayer(element, keyframes, animationName, _duration, _delay, easing, _finalStyles, _specialStyles) {
4085
4195
  this.element = element;
4086
4196
  this.keyframes = keyframes;
4087
4197
  this.animationName = animationName;
4088
4198
  this._duration = _duration;
4089
4199
  this._delay = _delay;
4090
4200
  this._finalStyles = _finalStyles;
4201
+ this._specialStyles = _specialStyles;
4091
4202
  this._onDoneFns = [];
4092
4203
  this._onStartFns = [];
4093
4204
  this._onDestroyFns = [];
@@ -4109,6 +4220,9 @@
4109
4220
  this._styler.destroy();
4110
4221
  this._flushStartFns();
4111
4222
  this._flushDoneFns();
4223
+ if (this._specialStyles) {
4224
+ this._specialStyles.destroy();
4225
+ }
4112
4226
  this._onDestroyFns.forEach(function (fn) { return fn(); });
4113
4227
  this._onDestroyFns = [];
4114
4228
  };
@@ -4127,6 +4241,9 @@
4127
4241
  this._state = 3 /* FINISHED */;
4128
4242
  this._styler.finish();
4129
4243
  this._flushStartFns();
4244
+ if (this._specialStyles) {
4245
+ this._specialStyles.finish();
4246
+ }
4130
4247
  this._flushDoneFns();
4131
4248
  };
4132
4249
  CssKeyframesPlayer.prototype.setPosition = function (value) { this._styler.setPosition(value); };
@@ -4147,6 +4264,9 @@
4147
4264
  if (!this.hasStarted()) {
4148
4265
  this._flushStartFns();
4149
4266
  this._state = 2 /* STARTED */;
4267
+ if (this._specialStyles) {
4268
+ this._specialStyles.start();
4269
+ }
4150
4270
  }
4151
4271
  this._styler.resume();
4152
4272
  };
@@ -4263,7 +4383,7 @@
4263
4383
  var tab = '';
4264
4384
  keyframes.forEach(function (kf) {
4265
4385
  tab = TAB_SPACE;
4266
- var offset = parseFloat(kf.offset);
4386
+ var offset = parseFloat(kf['offset']);
4267
4387
  keyframeStr += "" + tab + offset * 100 + "% {\n";
4268
4388
  tab += TAB_SPACE;
4269
4389
  Object.keys(kf).forEach(function (prop) {
@@ -4313,7 +4433,8 @@
4313
4433
  var animationName = "" + KEYFRAMES_NAME_PREFIX + this._count++;
4314
4434
  var kfElm = this.buildKeyframeElement(element, animationName, keyframes);
4315
4435
  document.querySelector('head').appendChild(kfElm);
4316
- var player = new CssKeyframesPlayer(element, keyframes, animationName, duration, delay, easing, finalStyles);
4436
+ var specialStyles = packageNonAnimatableStyles(element, keyframes);
4437
+ var player = new CssKeyframesPlayer(element, keyframes, animationName, duration, delay, easing, finalStyles, specialStyles);
4317
4438
  player.onDestroy(function () { return removeElement(kfElm); });
4318
4439
  return player;
4319
4440
  };
@@ -4344,10 +4465,11 @@
4344
4465
  }
4345
4466
 
4346
4467
  var WebAnimationsPlayer = /** @class */ (function () {
4347
- function WebAnimationsPlayer(element, keyframes, options) {
4468
+ function WebAnimationsPlayer(element, keyframes, options, _specialStyles) {
4348
4469
  this.element = element;
4349
4470
  this.keyframes = keyframes;
4350
4471
  this.options = options;
4472
+ this._specialStyles = _specialStyles;
4351
4473
  this._onDoneFns = [];
4352
4474
  this._onStartFns = [];
4353
4475
  this._onDestroyFns = [];
@@ -4408,6 +4530,9 @@
4408
4530
  this._onStartFns.forEach(function (fn) { return fn(); });
4409
4531
  this._onStartFns = [];
4410
4532
  this._started = true;
4533
+ if (this._specialStyles) {
4534
+ this._specialStyles.start();
4535
+ }
4411
4536
  }
4412
4537
  this.domPlayer.play();
4413
4538
  };
@@ -4417,6 +4542,9 @@
4417
4542
  };
4418
4543
  WebAnimationsPlayer.prototype.finish = function () {
4419
4544
  this.init();
4545
+ if (this._specialStyles) {
4546
+ this._specialStyles.finish();
4547
+ }
4420
4548
  this._onFinish();
4421
4549
  this.domPlayer.finish();
4422
4550
  };
@@ -4441,6 +4569,9 @@
4441
4569
  this._destroyed = true;
4442
4570
  this._resetDomPlayerState();
4443
4571
  this._onFinish();
4572
+ if (this._specialStyles) {
4573
+ this._specialStyles.destroy();
4574
+ }
4444
4575
  this._onDestroyFns.forEach(function (fn) { return fn(); });
4445
4576
  this._onDestroyFns = [];
4446
4577
  }
@@ -4514,7 +4645,8 @@
4514
4645
  }
4515
4646
  keyframes = keyframes.map(function (styles) { return copyStyles(styles, false); });
4516
4647
  keyframes = balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles);
4517
- return new WebAnimationsPlayer(element, keyframes, playerOptions);
4648
+ var specialStyles = packageNonAnimatableStyles(element, keyframes);
4649
+ return new WebAnimationsPlayer(element, keyframes, playerOptions, specialStyles);
4518
4650
  };
4519
4651
  return WebAnimationsDriver;
4520
4652
  }());
@@ -4561,6 +4693,7 @@
4561
4693
  * Generated bundle index. Do not edit.
4562
4694
  */
4563
4695
 
4696
+ exports.ɵangular_packages_animations_browser_browser_a = SpecialCasedStyles;
4564
4697
  exports.AnimationDriver = AnimationDriver;
4565
4698
  exports.ɵAnimationDriver = AnimationDriver;
4566
4699
  exports.ɵAnimation = Animation;