@angular/animations 6.0.3 → 6.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/browser.metadata.json +1 -1
- package/browser/src/dsl/animation_transition_factory.d.ts +1 -1
- package/browser/src/render/animation_engine_next.d.ts +2 -1
- package/browser/src/render/shared.d.ts +2 -0
- package/browser/src/render/timeline_animation_engine.d.ts +2 -1
- package/browser/src/render/transition_animation_engine.d.ts +3 -3
- package/browser/testing.d.ts +0 -5
- package/browser/testing.metadata.json +1 -1
- package/browser.d.ts +0 -5
- package/browser.metadata.json +1 -1
- package/bundles/animations-browser-testing.umd.js +28 -10
- package/bundles/animations-browser-testing.umd.js.map +1 -1
- package/bundles/animations-browser-testing.umd.min.js +16 -2
- package/bundles/animations-browser-testing.umd.min.js.map +1 -1
- package/bundles/animations-browser.umd.js +200 -83
- package/bundles/animations-browser.umd.js.map +1 -1
- package/bundles/animations-browser.umd.min.js +55 -6
- package/bundles/animations-browser.umd.min.js.map +1 -1
- package/bundles/animations.umd.js +470 -577
- package/bundles/animations.umd.js.map +1 -1
- package/bundles/animations.umd.min.js +9 -2
- package/bundles/animations.umd.min.js.map +1 -1
- package/esm2015/animations.externs.js +1 -1
- package/esm2015/browser/browser.externs.js +3 -3
- package/esm2015/browser/src/dsl/animation_transition_factory.js +4 -3
- package/esm2015/browser/src/render/animation_driver.js +1 -12
- package/esm2015/browser/src/render/animation_engine_next.js +8 -4
- package/esm2015/browser/src/render/shared.js +18 -3
- package/esm2015/browser/src/render/timeline_animation_engine.js +6 -2
- package/esm2015/browser/src/render/transition_animation_engine.js +23 -19
- package/esm2015/browser/src/render/web_animations/web_animations_driver.js +3 -3
- package/esm2015/browser/src/util.js +57 -1
- package/esm2015/src/animation_metadata.js +626 -659
- package/esm2015/src/version.js +1 -1
- package/esm5/browser/index.js +5 -1
- package/esm5/browser/public_api.js +6 -1
- package/esm5/browser/src/browser.js +6 -1
- package/esm5/browser/src/dsl/animation.js +1 -1
- package/esm5/browser/src/dsl/animation_ast_builder.js +11 -4
- package/esm5/browser/src/dsl/animation_timeline_builder.js +27 -21
- package/esm5/browser/src/dsl/animation_timeline_instruction.js +1 -1
- package/esm5/browser/src/dsl/animation_transition_expr.js +1 -1
- package/esm5/browser/src/dsl/animation_transition_factory.js +3 -3
- package/esm5/browser/src/dsl/animation_transition_instruction.js +1 -1
- package/esm5/browser/src/dsl/animation_trigger.js +2 -8
- package/esm5/browser/src/dsl/element_instruction_map.js +1 -1
- package/esm5/browser/src/dsl/style_normalization/animation_style_normalizer.js +3 -15
- package/esm5/browser/src/dsl/style_normalization/web_animations_style_normalizer.js +8 -1
- package/esm5/browser/src/private_export.js +8 -1
- package/esm5/browser/src/render/animation_driver.js +8 -3
- package/esm5/browser/src/render/animation_engine_next.js +5 -4
- package/esm5/browser/src/render/css_keyframes/css_keyframes_driver.js +1 -1
- package/esm5/browser/src/render/css_keyframes/css_keyframes_player.js +2 -4
- package/esm5/browser/src/render/css_keyframes/direct_style_player.js +8 -1
- package/esm5/browser/src/render/css_keyframes/element_animation_style_handler.js +1 -1
- package/esm5/browser/src/render/shared.js +19 -3
- package/esm5/browser/src/render/timeline_animation_engine.js +10 -2
- package/esm5/browser/src/render/transition_animation_engine.js +36 -39
- package/esm5/browser/src/render/web_animations/dom_animation.js +1 -1
- package/esm5/browser/src/render/web_animations/web_animations_driver.js +3 -3
- package/esm5/browser/src/render/web_animations/web_animations_player.js +3 -7
- package/esm5/browser/src/util.js +51 -3
- package/esm5/browser/testing/index.js +5 -1
- package/esm5/browser/testing/public_api.js +6 -1
- package/esm5/browser/testing/src/mock_animation_driver.js +12 -17
- package/esm5/browser/testing/src/testing.js +8 -1
- package/esm5/index.js +5 -1
- package/esm5/public_api.js +6 -1
- package/esm5/src/animation_builder.js +3 -93
- package/esm5/src/animation_event.js +1 -1
- package/esm5/src/animation_metadata.js +439 -568
- package/esm5/src/animations.js +6 -1
- package/esm5/src/players/animation_group_player.js +2 -4
- package/esm5/src/players/animation_player.js +11 -14
- package/esm5/src/private_export.js +8 -1
- package/esm5/src/util.js +1 -1
- package/esm5/src/version.js +3 -23
- package/fesm2015/animations.js +446 -631
- package/fesm2015/animations.js.map +1 -1
- package/fesm2015/browser/testing.js +1 -1
- package/fesm2015/browser/testing.js.map +1 -1
- package/fesm2015/browser.js +104 -29
- package/fesm2015/browser.js.map +1 -1
- package/fesm5/animations.js +470 -577
- package/fesm5/animations.js.map +1 -1
- package/fesm5/browser/testing.js +28 -10
- package/fesm5/browser/testing.js.map +1 -1
- package/fesm5/browser.js +200 -83
- package/fesm5/browser.js.map +1 -1
- package/package.json +3 -3
- package/src/animation_metadata.d.ts +673 -650
|
@@ -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":"ɵ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":39,"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":42,"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":
|
|
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":39,"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":42,"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":140,"character":4,"context":{"name":"_contains"},"module":"./src/render/shared"},"ɵinvokeQuery":{"__symbolic":"error","message":"Reference to a local symbol","line":143,"character":4,"context":{"name":"_query"},"module":"./src/render/shared"},"ɵmatchesElement":{"__symbolic":"error","message":"Reference to a local symbol","line":141,"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":32,"character":45,"module":"./src/render/web_animations/web_animations_player"}]},{"__symbolic":"error","message":"Expression form not supported","line":33,"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"}
|
|
@@ -23,7 +23,7 @@ export declare class AnimationTransitionFactory {
|
|
|
23
23
|
buildStyles(stateName: string, params: {
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}, errors: any[]): ɵStyleData;
|
|
26
|
-
build(driver: AnimationDriver, element: any, currentState: any, nextState: any, enterClassName: string, leaveClassName: string, currentOptions?: AnimationOptions, nextOptions?: AnimationOptions, subInstructions?: ElementInstructionMap): AnimationTransitionInstruction;
|
|
26
|
+
build(driver: AnimationDriver, element: any, currentState: any, nextState: any, enterClassName: string, leaveClassName: string, currentOptions?: AnimationOptions, nextOptions?: AnimationOptions, subInstructions?: ElementInstructionMap, skipAstBuild?: boolean): AnimationTransitionInstruction;
|
|
27
27
|
}
|
|
28
28
|
export declare class AnimationStateStyles {
|
|
29
29
|
private styles;
|
|
@@ -9,12 +9,13 @@ import { AnimationPlayer, AnimationTriggerMetadata } from '@angular/animations';
|
|
|
9
9
|
import { AnimationStyleNormalizer } from '../dsl/style_normalization/animation_style_normalizer';
|
|
10
10
|
import { AnimationDriver } from './animation_driver';
|
|
11
11
|
export declare class AnimationEngine {
|
|
12
|
+
private bodyNode;
|
|
12
13
|
private _driver;
|
|
13
14
|
private _transitionEngine;
|
|
14
15
|
private _timelineEngine;
|
|
15
16
|
private _triggerCache;
|
|
16
17
|
onRemovalComplete: (element: any, context: any) => void;
|
|
17
|
-
constructor(_driver: AnimationDriver, normalizer: AnimationStyleNormalizer);
|
|
18
|
+
constructor(bodyNode: any, _driver: AnimationDriver, normalizer: AnimationStyleNormalizer);
|
|
18
19
|
registerTrigger(componentId: string, namespaceId: string, hostElement: any, name: string, metadata: AnimationTriggerMetadata): void;
|
|
19
20
|
register(namespaceId: string, hostElement: any): void;
|
|
20
21
|
destroy(namespaceId: string, context: any): void;
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
import { AnimationEvent, AnimationPlayer, ɵStyleData } from '@angular/animations';
|
|
9
9
|
import { AnimationStyleNormalizer } from '../../src/dsl/style_normalization/animation_style_normalizer';
|
|
10
10
|
import { AnimationDriver } from '../../src/render/animation_driver';
|
|
11
|
+
export declare function isBrowser(): boolean;
|
|
12
|
+
export declare function isNode(): boolean;
|
|
11
13
|
export declare function optimizeGroupPlayer(players: AnimationPlayer[]): AnimationPlayer;
|
|
12
14
|
export declare function normalizeKeyframes(driver: AnimationDriver, normalizer: AnimationStyleNormalizer, element: any, keyframes: ɵStyleData[], preStyles?: ɵStyleData, postStyles?: ɵStyleData): ɵStyleData[];
|
|
13
15
|
export declare function listenOnPlayer(player: AnimationPlayer, eventName: string, event: AnimationEvent | undefined, callback: (event: any) => any): void;
|
|
@@ -9,12 +9,13 @@ import { AnimationMetadata, AnimationOptions, AnimationPlayer } from '@angular/a
|
|
|
9
9
|
import { AnimationStyleNormalizer } from '../dsl/style_normalization/animation_style_normalizer';
|
|
10
10
|
import { AnimationDriver } from './animation_driver';
|
|
11
11
|
export declare class TimelineAnimationEngine {
|
|
12
|
+
bodyNode: any;
|
|
12
13
|
private _driver;
|
|
13
14
|
private _normalizer;
|
|
14
15
|
private _animations;
|
|
15
16
|
private _playersById;
|
|
16
17
|
players: AnimationPlayer[];
|
|
17
|
-
constructor(_driver: AnimationDriver, _normalizer: AnimationStyleNormalizer);
|
|
18
|
+
constructor(bodyNode: any, _driver: AnimationDriver, _normalizer: AnimationStyleNormalizer);
|
|
18
19
|
register(id: string, metadata: AnimationMetadata | AnimationMetadata[]): void;
|
|
19
20
|
private _buildPlayer(i, preStyles, postStyles?);
|
|
20
21
|
create(id: string, element: any, options?: AnimationOptions): AnimationPlayer;
|
|
@@ -40,7 +40,6 @@ export declare class StateValue {
|
|
|
40
40
|
}
|
|
41
41
|
export declare const VOID_VALUE = "void";
|
|
42
42
|
export declare const DEFAULT_STATE_VALUE: StateValue;
|
|
43
|
-
export declare const DELETED_STATE_VALUE: StateValue;
|
|
44
43
|
export declare class AnimationTransitionNamespace {
|
|
45
44
|
id: string;
|
|
46
45
|
hostElement: any;
|
|
@@ -72,6 +71,7 @@ export interface QueuedTransition {
|
|
|
72
71
|
player: TransitionAnimationPlayer;
|
|
73
72
|
}
|
|
74
73
|
export declare class TransitionAnimationEngine {
|
|
74
|
+
bodyNode: any;
|
|
75
75
|
driver: AnimationDriver;
|
|
76
76
|
private _normalizer;
|
|
77
77
|
players: TransitionAnimationPlayer[];
|
|
@@ -92,7 +92,7 @@ export declare class TransitionAnimationEngine {
|
|
|
92
92
|
collectedEnterElements: any[];
|
|
93
93
|
collectedLeaveElements: any[];
|
|
94
94
|
onRemovalComplete: (element: any, context: any) => void;
|
|
95
|
-
constructor(driver: AnimationDriver, _normalizer: AnimationStyleNormalizer);
|
|
95
|
+
constructor(bodyNode: any, driver: AnimationDriver, _normalizer: AnimationStyleNormalizer);
|
|
96
96
|
readonly queuedPlayers: TransitionAnimationPlayer[];
|
|
97
97
|
createNamespace(namespaceId: string, hostElement: any): AnimationTransitionNamespace;
|
|
98
98
|
private _balanceNamespaceList(ns, hostElement);
|
|
@@ -108,7 +108,7 @@ export declare class TransitionAnimationEngine {
|
|
|
108
108
|
removeNode(namespaceId: string, element: any, context: any): void;
|
|
109
109
|
markElementAsRemoved(namespaceId: string, element: any, hasAnimation?: boolean, context?: any): void;
|
|
110
110
|
listen(namespaceId: string, element: any, name: string, phase: string, callback: (event: any) => boolean): () => any;
|
|
111
|
-
private _buildInstruction(entry, subTimelines, enterClassName, leaveClassName);
|
|
111
|
+
private _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst?);
|
|
112
112
|
destroyInnerAnimations(containerElement: any): void;
|
|
113
113
|
destroyActiveAnimationsForElement(element: any): void;
|
|
114
114
|
finishActiveQueriedAnimationOnElement(element: any): void;
|
package/browser/testing.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./testing/testing"}],"flatModuleIndexRedirect":true}
|
|
1
|
+
{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./testing/testing"}],"flatModuleIndexRedirect":true,"importAs":"@angular/animations/browser/testing"}
|
package/browser.d.ts
CHANGED
package/browser.metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./browser/browser"}],"flatModuleIndexRedirect":true}
|
|
1
|
+
{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./browser/browser"}],"flatModuleIndexRedirect":true,"importAs":"@angular/animations/browser"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v6.0.
|
|
2
|
+
* @license Angular v6.0.7
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -36,6 +36,13 @@ function __extends(d, b) {
|
|
|
36
36
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* @license
|
|
41
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
42
|
+
*
|
|
43
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
44
|
+
* found in the LICENSE file at https://angular.io/license
|
|
45
|
+
*/
|
|
39
46
|
/**
|
|
40
47
|
* @experimental Animation support is experimental.
|
|
41
48
|
*/
|
|
@@ -91,13 +98,9 @@ var MockAnimationPlayer = /** @class */ (function (_super) {
|
|
|
91
98
|
return _this;
|
|
92
99
|
}
|
|
93
100
|
/* @internal */
|
|
101
|
+
MockAnimationPlayer.prototype.onInit = function (fn) { this._onInitFns.push(fn); };
|
|
94
102
|
/* @internal */
|
|
95
|
-
MockAnimationPlayer.prototype.
|
|
96
|
-
function (fn) { this._onInitFns.push(fn); };
|
|
97
|
-
/* @internal */
|
|
98
|
-
/* @internal */
|
|
99
|
-
MockAnimationPlayer.prototype.init = /* @internal */
|
|
100
|
-
function () {
|
|
103
|
+
MockAnimationPlayer.prototype.init = function () {
|
|
101
104
|
_super.prototype.init.call(this);
|
|
102
105
|
this._onInitFns.forEach(function (fn) { return fn(); });
|
|
103
106
|
this._onInitFns = [];
|
|
@@ -111,9 +114,7 @@ var MockAnimationPlayer = /** @class */ (function (_super) {
|
|
|
111
114
|
this.__finished = true;
|
|
112
115
|
};
|
|
113
116
|
/* @internal */
|
|
114
|
-
|
|
115
|
-
MockAnimationPlayer.prototype.triggerMicrotask = /* @internal */
|
|
116
|
-
function () { };
|
|
117
|
+
MockAnimationPlayer.prototype.triggerMicrotask = function () { };
|
|
117
118
|
MockAnimationPlayer.prototype.play = function () {
|
|
118
119
|
_super.prototype.play.call(this);
|
|
119
120
|
this.__started = true;
|
|
@@ -157,6 +158,23 @@ var MockAnimationPlayer = /** @class */ (function (_super) {
|
|
|
157
158
|
* Use of this source code is governed by an MIT-style license that can be
|
|
158
159
|
* found in the LICENSE file at https://angular.io/license
|
|
159
160
|
*/
|
|
161
|
+
/**
|
|
162
|
+
* @module
|
|
163
|
+
* @description
|
|
164
|
+
* Entry point for all public APIs of this package.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @license
|
|
169
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
170
|
+
*
|
|
171
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
172
|
+
* found in the LICENSE file at https://angular.io/license
|
|
173
|
+
*/
|
|
174
|
+
// This file is not used to build this module. It is only used during editing
|
|
175
|
+
// by the TypeScript language service and during build for verifcation. `ngc`
|
|
176
|
+
// replaces this file with production index.ts when it rewrites private symbol
|
|
177
|
+
// names.
|
|
160
178
|
|
|
161
179
|
/**
|
|
162
180
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations-browser-testing.umd.js","sources":["../../../../../../../../../../../../../../Users/matsko/code/angular/node_modules/tslib/tslib.es6.js","../../../../../../../../../packages/animations/browser/testing/src/mock_animation_driver.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 = 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\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 = 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\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 = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [0, 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) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; }; }\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];\r\n return m ? m.call(o) : typeof __values === \"function\" ? __values(o) : o[Symbol.iterator]();\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 * @experimental Animation support is experimental.\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 * @experimental Animation support is experimental.\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 * 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":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AAgBA,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;KACpC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,K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;QAED,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;KACjC;8BAxHH;EA8CyCC,8BAAmB,EA2E3D;;;;;;;;;;;;;;;;;;ACzHD;;GAEG;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"animations-browser-testing.umd.js","sources":["../../../../../../../../../../../../../../../Users/jasonaden/Projects/angular/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 = 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\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 = 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\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 = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [0, 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) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; }; }\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];\r\n return m ? m.call(o) : typeof __values === \"function\" ? __values(o) : o[Symbol.iterator]();\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 * @experimental Animation support is experimental.\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 * @experimental Animation support is experimental.\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":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AAgBA,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;KACpC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IAC5E,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;;AAE/E,AAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAC5B,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;IACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;CACxF;;ACxBD;;;;;;;AAOA,AAIA;;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S,GAAG,IAAI,CAAC;KACvB;IAED,wCAAU,GAAV,cAAe,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE;IAEvC,2CAAa,GAAb;QAAA,iBAqBC;QApBC,IAAM,QAAQ,GAAe,EAAE,CAAC;QAEhC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,UAAA,IAAI;YAC3C,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;SAC5C,CAAC,CAAC;QAEH,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;;;;YAIrB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAA,EAAE;gBACvB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,UAAA,IAAI;oBAC1B,IAAI,IAAI,IAAI,QAAQ,EAAE;wBACpB,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,GAAGC,qBAAU,CAAC;qBAC1D;iBACF,CAAC,CAAC;aACJ,CAAC,CAAC;SACJ;QAED,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;KACjC;IACH,0BAAC;CAAA,CA3EwCC,8BAAmB;;AC9C5D;;;;;;GAMG;;ACNH;;;;;;;;;;;GAYG;;ACZH;;;;;;;;;;SAWS;;ACXT;;GAEG;;;;;;;;;;;;;"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v6.0.
|
|
2
|
+
* @license Angular v6.0.7
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
|
-
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/animations"),require("@angular/animations/browser")):"function"==typeof define&&define.amd?define("@angular/animations/browser/testing",["exports","@angular/animations","@angular/animations/browser"],n):n((t.ng=t.ng||{},t.ng.animations=t.ng.animations||{},t.ng.animations.browser=t.ng.animations.browser||{},t.ng.animations.browser.testing={}),t.ng.animations,t.ng.animations.browser)}(this,function(t,n,o){"use strict";var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])},r=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return o.ɵvalidateStyleProperty(t)},t.prototype.matchesElement=function(t,n){return o.ɵmatchesElement(t,n)},t.prototype.containsElement=function(t,n){return o.ɵcontainsElement(t,n)},t.prototype.query=function(t,n,e){return o.ɵinvokeQuery(t,n,e)},t.prototype.computeStyle=function(t,n,o){return o||""},t.prototype.animate=function(n,o,e,r,s,a){void 0===a&&(a=[]);var u=new i(n,o,e,r,s,a);return t.log.push(u),u},t.log=[],t}(),i=function(t){function r(n,e,i,s,a,u){var p=t.call(this,i,s)||this;return p.element=n,p.keyframes=e,p.duration=i,p.delay=s,p.easing=a,p.previousPlayers=u,p.__finished=!1,p.__started=!1,p.previousStyles={},p._onInitFns=[],p.currentSnapshot={},o.ɵallowPreviousPlayerStylesMerge(i,s)&&u.forEach(function(t){if(t instanceof r){var n=t.currentSnapshot;Object.keys(n).forEach(function(t){return p.previousStyles[t]=n[t]})}}),p}return function i(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}
|
|
6
|
+
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/animations"),require("@angular/animations/browser")):"function"==typeof define&&define.amd?define("@angular/animations/browser/testing",["exports","@angular/animations","@angular/animations/browser"],n):n((t.ng=t.ng||{},t.ng.animations=t.ng.animations||{},t.ng.animations.browser=t.ng.animations.browser||{},t.ng.animations.browser.testing={}),t.ng.animations,t.ng.animations.browser)}(this,function(t,n,o){"use strict";var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])},r=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return o.ɵvalidateStyleProperty(t)},t.prototype.matchesElement=function(t,n){return o.ɵmatchesElement(t,n)},t.prototype.containsElement=function(t,n){return o.ɵcontainsElement(t,n)},t.prototype.query=function(t,n,e){return o.ɵinvokeQuery(t,n,e)},t.prototype.computeStyle=function(t,n,o){return o||""},t.prototype.animate=function(n,o,e,r,s,a){void 0===a&&(a=[]);var u=new i(n,o,e,r,s,a);return t.log.push(u),u},t.log=[],t}(),i=function(t){function r(n,e,i,s,a,u){var p=t.call(this,i,s)||this;return p.element=n,p.keyframes=e,p.duration=i,p.delay=s,p.easing=a,p.previousPlayers=u,p.__finished=!1,p.__started=!1,p.previousStyles={},p._onInitFns=[],p.currentSnapshot={},o.ɵallowPreviousPlayerStylesMerge(i,s)&&u.forEach(function(t){if(t instanceof r){var n=t.currentSnapshot;Object.keys(n).forEach(function(t){return p.previousStyles[t]=n[t]})}}),p}return function i(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
10
|
+
*
|
|
11
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
12
|
+
* found in the LICENSE file at https://angular.io/license
|
|
13
|
+
*/(r,t),r.prototype.onInit=function(t){this._onInitFns.push(t)},r.prototype.init=function(){t.prototype.init.call(this),this._onInitFns.forEach(function(t){return t()}),this._onInitFns=[]},r.prototype.finish=function(){t.prototype.finish.call(this),this.__finished=!0},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.__finished=!0},r.prototype.triggerMicrotask=function(){},r.prototype.play=function(){t.prototype.play.call(this),this.__started=!0},r.prototype.hasStarted=function(){return this.__started},r.prototype.beforeDestroy=function(){var t=this,o={};Object.keys(this.previousStyles).forEach(function(n){o[n]=t.previousStyles[n]}),this.hasStarted()&&this.keyframes.forEach(function(e){Object.keys(e).forEach(function(r){"offset"!=r&&(o[r]=t.__finished?e[r]:n.AUTO_STYLE)})}),this.currentSnapshot=o},r}(n.NoopAnimationPlayer);
|
|
14
|
+
/**
|
|
15
|
+
* @license
|
|
16
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
17
|
+
*
|
|
18
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
19
|
+
* found in the LICENSE file at https://angular.io/license
|
|
20
|
+
*/
|
|
7
21
|
/**
|
|
8
22
|
* @license
|
|
9
23
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["packages/animations/animations-browser-testing.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","animations","browser","testing","this","extendStatics","Object","setPrototypeOf","__proto__","Array","d","b","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,GACC,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,uBAAwBA,QAAQ,gCACtG,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,uCAAwC,UAAW,sBAAuB,+BAAgCJ,GAC7JA,GAASD,EAAOO,GAAKP,EAAOO,OAAUP,EAAOO,GAAGC,WAAaR,EAAOO,GAAGC,eAAkBR,EAAOO,GAAGC,WAAWC,QAAUT,EAAOO,GAAGC,WAAWC,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AgB,WAC1C,IAAIvB,EAAQvC,KACR+D,KACJ7D,OAAO+C,KAAKjD,KAAK2C,gBAAgBI,QAAQ,SAAUlC,GAC/CkD,EAASlD,GAAQ0B,EAAMI,eAAe9B,KAEtCb,KAAK6D,cAIL7D,KAAK6B,UAAUkB,QAAQ,SAAUiB,GAC7B9D,OAAO+C,KAAKe,GAAIjB,QAAQ,SAAUlC,GAClB,UAARA,IACAkD,EAASlD,GAAQ0B,EAAME,WAAauB,EAAGnD,GAAQhB,EAAWoE,gBAK1EjE,KAAK6C,gBAAkBkB,GAEpB5B,EA1E6B,CA2EtCtC,EAAWqE;;;;;;;;;;;;;;;AAsBb3E,EAAQmB,oBAAsBA,EAC9BnB,EAAQ4C,oBAAsBA,EAE9BjC,OAAOiE,eAAe5E,EAAS,cAAgB6E,OAAO","sourcesContent":["/**\n * @license Angular v6.0.3\n * (c) 2010-2018 Google, Inc. https://angular.io/\n * License: MIT\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/animations/browser')) :\n\ttypeof define === 'function' && define.amd ? define('@angular/animations/browser/testing', ['exports', '@angular/animations', '@angular/animations/browser'], factory) :\n\t(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\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 = 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\r\nfunction __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 * @experimental Animation support is experimental.\n */\nvar 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 * @experimental Animation support is experimental.\n */\nvar 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 /* @internal */\n MockAnimationPlayer.prototype.onInit = /* @internal */\n function (fn) { this._onInitFns.push(fn); };\n /* @internal */\n /* @internal */\n MockAnimationPlayer.prototype.init = /* @internal */\n 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 /* @internal */\n MockAnimationPlayer.prototype.triggerMicrotask = /* @internal */\n 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 * Generated bundle index. Do not edit.\n */\n\nexports.MockAnimationDriver = MockAnimationDriver;\nexports.MockAnimationPlayer = MockAnimationPlayer;\n\nObject.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","ng","animations","browser","testing","this","extendStatics","Object","setPrototypeOf","__proto__","Array","d","b","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,GACC,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,uBAAwBA,QAAQ,gCACtG,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,uCAAwC,UAAW,sBAAuB,+BAAgCJ,GAC7JA,GAASD,EAAOO,GAAKP,EAAOO,OAAUP,EAAOO,GAAGC,WAAaR,EAAOO,GAAGC,eAAkBR,EAAOO,GAAGC,WAAWC,QAAUT,EAAOO,GAAGC,WAAWC,YAAeT,EAAOO,GAAGC,WAAWC,QAAQC,YAAcV,EAAOO,GAAGC,WAAWR,EAAOO,GAAGC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gBAAgBI,QAAQ,SAAUlC,GAC/CkD,EAASlD,GAAQ0B,EAAMI,eAAe9B,KAEtCb,KAAK6D,cAIL7D,KAAK6B,UAAUkB,QAAQ,SAAUiB,GAC7B9D,OAAO+C,KAAKe,GAAIjB,QAAQ,SAAUlC,GAClB,UAARA,IACAkD,EAASlD,GAAQ0B,EAAME,WAAauB,EAAGnD,GAAQhB,EAAWoE,gBAK1EjE,KAAK6C,gBAAkBkB,GAEpB5B,EApE6B,CAqEtCtC,EAAWqE;;;;;;;;;;;;;;;;;;;;;;AAuCb3E,EAAQmB,oBAAsBA,EAC9BnB,EAAQ4C,oBAAsBA,EAE9BjC,OAAOiE,eAAe5E,EAAS,cAAgB6E,OAAO","sourcesContent":["/**\n * @license Angular v6.0.7\n * (c) 2010-2018 Google, Inc. https://angular.io/\n * License: MIT\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/animations/browser')) :\n\ttypeof define === 'function' && define.amd ? define('@angular/animations/browser/testing', ['exports', '@angular/animations', '@angular/animations/browser'], factory) :\n\t(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\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 = 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\r\nfunction __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 * @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 * @experimental Animation support is experimental.\n */\nvar 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 * @experimental Animation support is experimental.\n */\nvar 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 * @module\n * @description\n * Entry point for all public APIs of this package.\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// 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\n/**\n * Generated bundle index. Do not edit.\n */\n\nexports.MockAnimationDriver = MockAnimationDriver;\nexports.MockAnimationPlayer = MockAnimationPlayer;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=animations-browser-testing.umd.js.map\n"]}
|