@angular/animations 12.2.8 → 13.0.0-next.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 (92) hide show
  1. package/animations.d.ts +1 -1
  2. package/browser/browser.d.ts +9 -6
  3. package/browser/package.json +5 -5
  4. package/browser/testing/package.json +5 -5
  5. package/browser/testing/testing.d.ts +1 -1
  6. package/{esm2015/animations.js → esm2020/animations.mjs} +0 -0
  7. package/esm2020/browser/browser.mjs +5 -0
  8. package/{esm2015/browser/index.js → esm2020/browser/index.mjs} +0 -0
  9. package/{esm2015/browser/public_api.js → esm2020/browser/public_api.mjs} +0 -0
  10. package/{esm2015/browser/src/browser.js → esm2020/browser/src/browser.mjs} +0 -0
  11. package/{esm2015/browser/src/dsl/animation.js → esm2020/browser/src/dsl/animation.mjs} +0 -0
  12. package/{esm2015/browser/src/dsl/animation_ast.js → esm2020/browser/src/dsl/animation_ast.mjs} +0 -0
  13. package/{esm2015/browser/src/dsl/animation_ast_builder.js → esm2020/browser/src/dsl/animation_ast_builder.mjs} +0 -0
  14. package/{esm2015/browser/src/dsl/animation_dsl_visitor.js → esm2020/browser/src/dsl/animation_dsl_visitor.mjs} +0 -0
  15. package/{esm2015/browser/src/dsl/animation_timeline_builder.js → esm2020/browser/src/dsl/animation_timeline_builder.mjs} +0 -0
  16. package/{esm2015/browser/src/dsl/animation_timeline_instruction.js → esm2020/browser/src/dsl/animation_timeline_instruction.mjs} +0 -0
  17. package/{esm2015/browser/src/dsl/animation_transition_expr.js → esm2020/browser/src/dsl/animation_transition_expr.mjs} +0 -0
  18. package/esm2020/browser/src/dsl/animation_transition_factory.mjs +92 -0
  19. package/{esm2015/browser/src/dsl/animation_transition_instruction.js → esm2020/browser/src/dsl/animation_transition_instruction.mjs} +0 -0
  20. package/{esm2015/browser/src/dsl/animation_trigger.js → esm2020/browser/src/dsl/animation_trigger.mjs} +0 -0
  21. package/{esm2015/browser/src/dsl/element_instruction_map.js → esm2020/browser/src/dsl/element_instruction_map.mjs} +0 -0
  22. package/{esm2015/browser/src/dsl/style_normalization/animation_style_normalizer.js → esm2020/browser/src/dsl/style_normalization/animation_style_normalizer.mjs} +0 -0
  23. package/esm2020/browser/src/dsl/style_normalization/web_animations_style_normalizer.mjs +38 -0
  24. package/{esm2015/browser/src/private_export.js → esm2020/browser/src/private_export.mjs} +0 -0
  25. package/esm2020/browser/src/render/animation_driver.mjs +46 -0
  26. package/{esm2015/browser/src/render/animation_engine_instruction.js → esm2020/browser/src/render/animation_engine_instruction.mjs} +0 -0
  27. package/{esm2015/browser/src/render/animation_engine_next.js → esm2020/browser/src/render/animation_engine_next.mjs} +0 -0
  28. package/{esm2015/browser/src/render/css_keyframes/css_keyframes_driver.js → esm2020/browser/src/render/css_keyframes/css_keyframes_driver.mjs} +2 -3
  29. package/{esm2015/browser/src/render/css_keyframes/css_keyframes_player.js → esm2020/browser/src/render/css_keyframes/css_keyframes_player.mjs} +0 -0
  30. package/{esm2015/browser/src/render/css_keyframes/direct_style_player.js → esm2020/browser/src/render/css_keyframes/direct_style_player.mjs} +0 -0
  31. package/{esm2015/browser/src/render/css_keyframes/element_animation_style_handler.js → esm2020/browser/src/render/css_keyframes/element_animation_style_handler.mjs} +0 -0
  32. package/esm2020/browser/src/render/shared.mjs +221 -0
  33. package/{esm2015/browser/src/render/special_cased_styles.js → esm2020/browser/src/render/special_cased_styles.mjs} +0 -0
  34. package/{esm2015/browser/src/render/timeline_animation_engine.js → esm2020/browser/src/render/timeline_animation_engine.mjs} +0 -0
  35. package/{esm2015/browser/src/render/transition_animation_engine.js → esm2020/browser/src/render/transition_animation_engine.mjs} +2 -2
  36. package/{esm2015/browser/src/render/web_animations/dom_animation.js → esm2020/browser/src/render/web_animations/dom_animation.mjs} +0 -0
  37. package/{esm2015/browser/src/render/web_animations/web_animations_driver.js → esm2020/browser/src/render/web_animations/web_animations_driver.mjs} +0 -0
  38. package/{esm2015/browser/src/render/web_animations/web_animations_player.js → esm2020/browser/src/render/web_animations/web_animations_player.mjs} +0 -0
  39. package/{esm2015/browser/src/util.js → esm2020/browser/src/util.mjs} +0 -0
  40. package/{esm2015/browser/testing/index.js → esm2020/browser/testing/index.mjs} +0 -0
  41. package/{esm2015/browser/testing/public_api.js → esm2020/browser/testing/public_api.mjs} +0 -0
  42. package/{esm2015/browser/testing/src/mock_animation_driver.js → esm2020/browser/testing/src/mock_animation_driver.mjs} +0 -0
  43. package/{esm2015/browser/testing/src/testing.js → esm2020/browser/testing/src/testing.mjs} +0 -0
  44. package/{esm2015/browser/testing/testing.js → esm2020/browser/testing/testing.mjs} +0 -0
  45. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  46. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  47. package/{esm2015/src/animation_builder.js → esm2020/src/animation_builder.mjs} +0 -0
  48. package/{esm2015/src/animation_event.js → esm2020/src/animation_event.mjs} +0 -0
  49. package/{esm2015/src/animation_metadata.js → esm2020/src/animation_metadata.mjs} +0 -0
  50. package/{esm2015/src/animations.js → esm2020/src/animations.mjs} +0 -0
  51. package/{esm2015/src/players/animation_group_player.js → esm2020/src/players/animation_group_player.mjs} +0 -0
  52. package/{esm2015/src/players/animation_player.js → esm2020/src/players/animation_player.mjs} +0 -0
  53. package/{esm2015/src/private_export.js → esm2020/src/private_export.mjs} +0 -0
  54. package/{esm2015/src/util.js → esm2020/src/util.mjs} +0 -0
  55. package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
  56. package/fesm2015/{animations.js → animations.mjs} +2 -2
  57. package/fesm2015/animations.mjs.map +1 -0
  58. package/fesm2015/browser/{testing.js → testing.mjs} +2 -2
  59. package/fesm2015/browser/testing.mjs.map +1 -0
  60. package/fesm2015/{browser.js → browser.mjs} +15 -16
  61. package/fesm2015/browser.mjs.map +1 -0
  62. package/fesm2020/animations.mjs +1204 -0
  63. package/fesm2020/animations.mjs.map +1 -0
  64. package/fesm2020/browser/testing.mjs +150 -0
  65. package/fesm2020/browser/testing.mjs.map +1 -0
  66. package/fesm2020/browser.mjs +4693 -0
  67. package/fesm2020/browser.mjs.map +1 -0
  68. package/package.json +32 -8
  69. package/animations.metadata.json +0 -1
  70. package/browser/browser.metadata.json +0 -1
  71. package/browser/testing/testing.metadata.json +0 -1
  72. package/browser/testing.d.ts +0 -7
  73. package/browser/testing.metadata.json +0 -1
  74. package/browser.d.ts +0 -7
  75. package/browser.metadata.json +0 -1
  76. package/bundles/animations-browser-testing.umd.js +0 -477
  77. package/bundles/animations-browser-testing.umd.js.map +0 -1
  78. package/bundles/animations-browser.umd.js +0 -5172
  79. package/bundles/animations-browser.umd.js.map +0 -1
  80. package/bundles/animations.umd.js +0 -1252
  81. package/bundles/animations.umd.js.map +0 -1
  82. package/esm2015/animations.externs.js +0 -6
  83. package/esm2015/browser/browser.externs.js +0 -6
  84. package/esm2015/browser/browser.js +0 -6
  85. package/esm2015/browser/src/dsl/animation_transition_factory.js +0 -92
  86. package/esm2015/browser/src/dsl/style_normalization/web_animations_style_normalizer.js +0 -40
  87. package/esm2015/browser/src/render/animation_driver.js +0 -43
  88. package/esm2015/browser/src/render/shared.js +0 -225
  89. package/esm2015/browser/testing/testing.externs.js +0 -6
  90. package/fesm2015/animations.js.map +0 -1
  91. package/fesm2015/browser/testing.js.map +0 -1
  92. package/fesm2015/browser.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/animations",
3
- "version": "12.2.8",
3
+ "version": "13.0.0-next.11",
4
4
  "description": "Angular - animations integration with web-animations",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -8,10 +8,10 @@
8
8
  "node": "^12.14.1 || >=14.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "tslib": "^2.2.0"
11
+ "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "12.2.8"
14
+ "@angular/core": "13.0.0-next.11"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -39,10 +39,34 @@
39
39
  ]
40
40
  },
41
41
  "sideEffects": false,
42
- "main": "./bundles/animations.umd.js",
43
- "fesm2015": "./fesm2015/animations.js",
44
- "esm2015": "./esm2015/animations.js",
42
+ "fesm2020": "./fesm2020/animations.mjs",
43
+ "fesm2015": "./fesm2015/animations.mjs",
44
+ "esm2020": "./esm2020/animations.mjs",
45
45
  "typings": "./animations.d.ts",
46
- "module": "./fesm2015/animations.js",
47
- "es2015": "./fesm2015/animations.js"
46
+ "module": "./fesm2015/animations.mjs",
47
+ "es2020": "./fesm2020/animations.mjs",
48
+ "type": "module",
49
+ "exports": {
50
+ "./package.json": {
51
+ "default": "./package.json"
52
+ },
53
+ ".": {
54
+ "types": "./animations.d.ts",
55
+ "es2015": "./fesm2015/animations.mjs",
56
+ "node": "./fesm2015/animations.mjs",
57
+ "default": "./fesm2020/animations.mjs"
58
+ },
59
+ "./browser": {
60
+ "types": "./browser/browser.d.ts",
61
+ "es2015": "./fesm2015/browser.mjs",
62
+ "node": "./fesm2015/browser.mjs",
63
+ "default": "./fesm2020/browser.mjs"
64
+ },
65
+ "./browser/testing": {
66
+ "types": "./browser/testing/testing.d.ts",
67
+ "es2015": "./fesm2015/browser/testing.mjs",
68
+ "node": "./fesm2015/browser/testing.mjs",
69
+ "default": "./fesm2020/browser/testing.mjs"
70
+ }
71
+ }
48
72
  }
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"AnimationBuilder":{"__symbolic":"class","members":{"build":[{"__symbolic":"method"}]}},"AnimationFactory":{"__symbolic":"class","members":{"create":[{"__symbolic":"method"}]}},"AnimationEvent":{"__symbolic":"interface"},"animate":{"__symbolic":"function","parameters":["timings","styles"],"defaults":[null,null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Animate"},"styles":{"__symbolic":"reference","name":"styles"},"timings":{"__symbolic":"reference","name":"timings"}}},"animateChild":{"__symbolic":"function","parameters":["options"],"defaults":[null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"AnimateChild"},"options":{"__symbolic":"reference","name":"options"}}},"AnimateChildOptions":{"__symbolic":"interface"},"AnimateTimings":{"__symbolic":"interface"},"animation":{"__symbolic":"function","parameters":["steps","options"],"defaults":[null,null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Reference"},"animation":{"__symbolic":"reference","name":"steps"},"options":{"__symbolic":"reference","name":"options"}}},"AnimationAnimateChildMetadata":{"__symbolic":"interface"},"AnimationAnimateMetadata":{"__symbolic":"interface"},"AnimationAnimateRefMetadata":{"__symbolic":"interface"},"AnimationGroupMetadata":{"__symbolic":"interface"},"AnimationKeyframesSequenceMetadata":{"__symbolic":"interface"},"AnimationMetadata":{"__symbolic":"interface"},"AnimationMetadataType":{"State":0,"Transition":1,"Sequence":2,"Group":3,"Animate":4,"Keyframes":5,"Style":6,"Trigger":7,"Reference":8,"AnimateChild":9,"AnimateRef":10,"Query":11,"Stagger":12},"AnimationOptions":{"__symbolic":"interface"},"AnimationQueryMetadata":{"__symbolic":"interface"},"AnimationQueryOptions":{"__symbolic":"interface"},"AnimationReferenceMetadata":{"__symbolic":"interface"},"AnimationSequenceMetadata":{"__symbolic":"interface"},"AnimationStaggerMetadata":{"__symbolic":"interface"},"AnimationStateMetadata":{"__symbolic":"interface"},"AnimationStyleMetadata":{"__symbolic":"interface"},"AnimationTransitionMetadata":{"__symbolic":"interface"},"AnimationTriggerMetadata":{"__symbolic":"interface"},"AUTO_STYLE":"*","group":{"__symbolic":"function","parameters":["steps","options"],"defaults":[null,null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Group"},"steps":{"__symbolic":"reference","name":"steps"},"options":{"__symbolic":"reference","name":"options"}}},"keyframes":{"__symbolic":"function","parameters":["steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Keyframes"},"steps":{"__symbolic":"reference","name":"steps"}}},"query":{"__symbolic":"function","parameters":["selector","animation","options"],"defaults":[null,null,null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Query"},"selector":{"__symbolic":"reference","name":"selector"},"animation":{"__symbolic":"reference","name":"animation"},"options":{"__symbolic":"reference","name":"options"}}},"sequence":{"__symbolic":"function","parameters":["steps","options"],"defaults":[null,null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Sequence"},"steps":{"__symbolic":"reference","name":"steps"},"options":{"__symbolic":"reference","name":"options"}}},"stagger":{"__symbolic":"function","parameters":["timings","animation"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Stagger"},"timings":{"__symbolic":"reference","name":"timings"},"animation":{"__symbolic":"reference","name":"animation"}}},"state":{"__symbolic":"function","parameters":["name","styles","options"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"State"},"name":{"__symbolic":"reference","name":"name"},"styles":{"__symbolic":"reference","name":"styles"},"options":{"__symbolic":"reference","name":"options"}}},"style":{"__symbolic":"function","parameters":["tokens"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Style"},"styles":{"__symbolic":"reference","name":"tokens"},"offset":null}},"transition":{"__symbolic":"function","parameters":["stateChangeExpr","steps","options"],"defaults":[null,null,null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Transition"},"expr":{"__symbolic":"reference","name":"stateChangeExpr"},"animation":{"__symbolic":"reference","name":"steps"},"options":{"__symbolic":"reference","name":"options"}}},"trigger":{"__symbolic":"function","parameters":["name","definitions"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Trigger"},"name":{"__symbolic":"reference","name":"name"},"definitions":{"__symbolic":"reference","name":"definitions"},"options":{}}},"useAnimation":{"__symbolic":"function","parameters":["animation","options"],"defaults":[null,null],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"AnimateRef"},"animation":{"__symbolic":"reference","name":"animation"},"options":{"__symbolic":"reference","name":"options"}}},"ɵStyleData":{"__symbolic":"interface"},"AnimationPlayer":{"__symbolic":"interface"},"NoopAnimationPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"}]}],"_onFinish":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"triggerMicrotask":[{"__symbolic":"method"}],"_onStart":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}],"triggerCallback":[{"__symbolic":"method"}]}},"ɵPRE_STYLE":"!","ɵAnimationGroupPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"AnimationPlayer"}]}]}],"_onFinish":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"_onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"_onDestroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}],"beforeDestroy":[{"__symbolic":"method"}],"triggerCallback":[{"__symbolic":"method"}]}}},"origins":{"AnimationBuilder":"./animations","AnimationFactory":"./animations","AnimationEvent":"./animations","animate":"./animations","animateChild":"./animations","AnimateChildOptions":"./animations","AnimateTimings":"./animations","animation":"./animations","AnimationAnimateChildMetadata":"./animations","AnimationAnimateMetadata":"./animations","AnimationAnimateRefMetadata":"./animations","AnimationGroupMetadata":"./animations","AnimationKeyframesSequenceMetadata":"./animations","AnimationMetadata":"./animations","AnimationMetadataType":"./animations","AnimationOptions":"./animations","AnimationQueryMetadata":"./animations","AnimationQueryOptions":"./animations","AnimationReferenceMetadata":"./animations","AnimationSequenceMetadata":"./animations","AnimationStaggerMetadata":"./animations","AnimationStateMetadata":"./animations","AnimationStyleMetadata":"./animations","AnimationTransitionMetadata":"./animations","AnimationTriggerMetadata":"./animations","AUTO_STYLE":"./animations","group":"./animations","keyframes":"./animations","query":"./animations","sequence":"./animations","stagger":"./animations","state":"./animations","style":"./animations","transition":"./animations","trigger":"./animations","useAnimation":"./animations","ɵStyleData":"./animations","AnimationPlayer":"./animations","NoopAnimationPlayer":"./animations","ɵPRE_STYLE":"./animations","ɵAnimationGroupPlayer":"./animations"},"importAs":"@angular/animations"}
@@ -1 +0,0 @@
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"}]}},"ɵ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"}]}},"ɵ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":41,"character":63,"module":"./browser"}]},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":44,"character":37,"module":"./browser"},{"__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":150,"character":4,"context":{"name":"_contains"},"module":"./browser"},"ɵinvokeQuery":{"__symbolic":"error","message":"Reference to a local symbol","line":153,"character":4,"context":{"name":"_query"},"module":"./browser"},"ɵmatchesElement":{"__symbolic":"error","message":"Reference to a local symbol","line":151,"character":4,"context":{"name":"_matches"},"module":"./browser"},"ɵvalidateStyleProperty":{"__symbolic":"function"},"ɵsupportsWebAnimations":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":81,"character":9,"module":"./browser"},"right":"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"}]}},"ɵ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":"./browser"}]},{"__symbolic":"error","message":"Expression form not supported","line":36,"character":22,"module":"./browser"},{"__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":"./browser"},{"__symbolic":"error","message":"Expression form not supported","line":53,"character":26,"module":"./browser"}]}],"start":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]},"statics":{"initialStylesByElement":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"WeakMap"}}}}},"origins":{"AnimationDriver":"./browser","ɵAnimation":"./browser","ɵAnimationStyleNormalizer":"./browser","ɵNoopAnimationStyleNormalizer":"./browser","ɵWebAnimationsStyleNormalizer":"./browser","ɵNoopAnimationDriver":"./browser","ɵAnimationEngine":"./browser","ɵCssKeyframesDriver":"./browser","ɵCssKeyframesPlayer":"./browser","ɵcontainsElement":"./browser","ɵinvokeQuery":"./browser","ɵmatchesElement":"./browser","ɵvalidateStyleProperty":"./browser","ɵsupportsWebAnimations":"./browser","ɵWebAnimationsDriver":"./browser","ɵWebAnimationsPlayer":"./browser","ɵallowPreviousPlayerStylesMerge":"./browser","ɵangular_packages_animations_browser_browser_a":"./browser"},"importAs":"@angular/animations/browser"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"MockAnimationDriver":{"__symbolic":"class","members":{"validateStyleProperty":[{"__symbolic":"method"}],"matchesElement":[{"__symbolic":"method"}],"containsElement":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"computeStyle":[{"__symbolic":"method"}],"animate":[{"__symbolic":"method"}]},"statics":{"log":[]}},"MockAnimationPlayer":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/animations","name":"NoopAnimationPlayer","line":50,"character":41},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":58,"character":45,"module":"./testing"}]},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"onInit":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"triggerMicrotask":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"beforeDestroy":[{"__symbolic":"method"}]}}},"origins":{"MockAnimationDriver":"./testing","MockAnimationPlayer":"./testing"},"importAs":"@angular/animations/browser/testing"}
@@ -1,7 +0,0 @@
1
- /**
2
- * @license Angular v12.2.8
3
- * (c) 2010-2021 Google LLC. https://angular.io/
4
- * License: MIT
5
- */
6
-
7
- export * from './testing/testing';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./testing/testing"}],"flatModuleIndexRedirect":true,"importAs":"@angular/animations/browser/testing"}
package/browser.d.ts DELETED
@@ -1,7 +0,0 @@
1
- /**
2
- * @license Angular v12.2.8
3
- * (c) 2010-2021 Google LLC. https://angular.io/
4
- * License: MIT
5
- */
6
-
7
- export * from './browser/browser';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./browser/browser"}],"flatModuleIndexRedirect":true,"importAs":"@angular/animations/browser"}
@@ -1,477 +0,0 @@
1
- /**
2
- * @license Angular v12.2.8
3
- * (c) 2010-2021 Google LLC. https://angular.io/
4
- * License: MIT
5
- */
6
-
7
- (function (global, factory) {
8
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/animations/browser')) :
9
- typeof define === 'function' && define.amd ? define('@angular/animations/browser/testing', ['exports', '@angular/animations', '@angular/animations/browser'], factory) :
10
- (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));
11
- }(this, (function (exports, animations, browser) { 'use strict';
12
-
13
- /*! *****************************************************************************
14
- Copyright (c) Microsoft Corporation.
15
-
16
- Permission to use, copy, modify, and/or distribute this software for any
17
- purpose with or without fee is hereby granted.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
20
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
22
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
- PERFORMANCE OF THIS SOFTWARE.
26
- ***************************************************************************** */
27
- /* global Reflect, Promise */
28
- var extendStatics = function (d, b) {
29
- extendStatics = Object.setPrototypeOf ||
30
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31
- function (d, b) { for (var p in b)
32
- if (Object.prototype.hasOwnProperty.call(b, p))
33
- d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
- function __extends(d, b) {
37
- if (typeof b !== "function" && b !== null)
38
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
39
- extendStatics(d, b);
40
- function __() { this.constructor = d; }
41
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
42
- }
43
- var __assign = function () {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s)
48
- if (Object.prototype.hasOwnProperty.call(s, p))
49
- t[p] = s[p];
50
- }
51
- return t;
52
- };
53
- return __assign.apply(this, arguments);
54
- };
55
- function __rest(s, e) {
56
- var t = {};
57
- for (var p in s)
58
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
59
- t[p] = s[p];
60
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
61
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
62
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
63
- t[p[i]] = s[p[i]];
64
- }
65
- return t;
66
- }
67
- function __decorate(decorators, target, key, desc) {
68
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
69
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
70
- r = Reflect.decorate(decorators, target, key, desc);
71
- else
72
- for (var i = decorators.length - 1; i >= 0; i--)
73
- if (d = decorators[i])
74
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
75
- return c > 3 && r && Object.defineProperty(target, key, r), r;
76
- }
77
- function __param(paramIndex, decorator) {
78
- return function (target, key) { decorator(target, key, paramIndex); };
79
- }
80
- function __metadata(metadataKey, metadataValue) {
81
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
82
- return Reflect.metadata(metadataKey, metadataValue);
83
- }
84
- function __awaiter(thisArg, _arguments, P, generator) {
85
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
86
- return new (P || (P = Promise))(function (resolve, reject) {
87
- function fulfilled(value) { try {
88
- step(generator.next(value));
89
- }
90
- catch (e) {
91
- reject(e);
92
- } }
93
- function rejected(value) { try {
94
- step(generator["throw"](value));
95
- }
96
- catch (e) {
97
- reject(e);
98
- } }
99
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
100
- step((generator = generator.apply(thisArg, _arguments || [])).next());
101
- });
102
- }
103
- function __generator(thisArg, body) {
104
- var _ = { label: 0, sent: function () { if (t[0] & 1)
105
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
106
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
107
- function verb(n) { return function (v) { return step([n, v]); }; }
108
- function step(op) {
109
- if (f)
110
- throw new TypeError("Generator is already executing.");
111
- while (_)
112
- try {
113
- 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)
114
- return t;
115
- if (y = 0, t)
116
- op = [op[0] & 2, t.value];
117
- switch (op[0]) {
118
- case 0:
119
- case 1:
120
- t = op;
121
- break;
122
- case 4:
123
- _.label++;
124
- return { value: op[1], done: false };
125
- case 5:
126
- _.label++;
127
- y = op[1];
128
- op = [0];
129
- continue;
130
- case 7:
131
- op = _.ops.pop();
132
- _.trys.pop();
133
- continue;
134
- default:
135
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
136
- _ = 0;
137
- continue;
138
- }
139
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
140
- _.label = op[1];
141
- break;
142
- }
143
- if (op[0] === 6 && _.label < t[1]) {
144
- _.label = t[1];
145
- t = op;
146
- break;
147
- }
148
- if (t && _.label < t[2]) {
149
- _.label = t[2];
150
- _.ops.push(op);
151
- break;
152
- }
153
- if (t[2])
154
- _.ops.pop();
155
- _.trys.pop();
156
- continue;
157
- }
158
- op = body.call(thisArg, _);
159
- }
160
- catch (e) {
161
- op = [6, e];
162
- y = 0;
163
- }
164
- finally {
165
- f = t = 0;
166
- }
167
- if (op[0] & 5)
168
- throw op[1];
169
- return { value: op[0] ? op[1] : void 0, done: true };
170
- }
171
- }
172
- var __createBinding = Object.create ? (function (o, m, k, k2) {
173
- if (k2 === undefined)
174
- k2 = k;
175
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
176
- }) : (function (o, m, k, k2) {
177
- if (k2 === undefined)
178
- k2 = k;
179
- o[k2] = m[k];
180
- });
181
- function __exportStar(m, o) {
182
- for (var p in m)
183
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
184
- __createBinding(o, m, p);
185
- }
186
- function __values(o) {
187
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
188
- if (m)
189
- return m.call(o);
190
- if (o && typeof o.length === "number")
191
- return {
192
- next: function () {
193
- if (o && i >= o.length)
194
- o = void 0;
195
- return { value: o && o[i++], done: !o };
196
- }
197
- };
198
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
199
- }
200
- function __read(o, n) {
201
- var m = typeof Symbol === "function" && o[Symbol.iterator];
202
- if (!m)
203
- return o;
204
- var i = m.call(o), r, ar = [], e;
205
- try {
206
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
207
- ar.push(r.value);
208
- }
209
- catch (error) {
210
- e = { error: error };
211
- }
212
- finally {
213
- try {
214
- if (r && !r.done && (m = i["return"]))
215
- m.call(i);
216
- }
217
- finally {
218
- if (e)
219
- throw e.error;
220
- }
221
- }
222
- return ar;
223
- }
224
- /** @deprecated */
225
- function __spread() {
226
- for (var ar = [], i = 0; i < arguments.length; i++)
227
- ar = ar.concat(__read(arguments[i]));
228
- return ar;
229
- }
230
- /** @deprecated */
231
- function __spreadArrays() {
232
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
233
- s += arguments[i].length;
234
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
235
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
236
- r[k] = a[j];
237
- return r;
238
- }
239
- function __spreadArray(to, from, pack) {
240
- if (pack || arguments.length === 2)
241
- for (var i = 0, l = from.length, ar; i < l; i++) {
242
- if (ar || !(i in from)) {
243
- if (!ar)
244
- ar = Array.prototype.slice.call(from, 0, i);
245
- ar[i] = from[i];
246
- }
247
- }
248
- return to.concat(ar || Array.prototype.slice.call(from));
249
- }
250
- function __await(v) {
251
- return this instanceof __await ? (this.v = v, this) : new __await(v);
252
- }
253
- function __asyncGenerator(thisArg, _arguments, generator) {
254
- if (!Symbol.asyncIterator)
255
- throw new TypeError("Symbol.asyncIterator is not defined.");
256
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
257
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
258
- function verb(n) { if (g[n])
259
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
260
- function resume(n, v) { try {
261
- step(g[n](v));
262
- }
263
- catch (e) {
264
- settle(q[0][3], e);
265
- } }
266
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
267
- function fulfill(value) { resume("next", value); }
268
- function reject(value) { resume("throw", value); }
269
- function settle(f, v) { if (f(v), q.shift(), q.length)
270
- resume(q[0][0], q[0][1]); }
271
- }
272
- function __asyncDelegator(o) {
273
- var i, p;
274
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
275
- 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; }
276
- }
277
- function __asyncValues(o) {
278
- if (!Symbol.asyncIterator)
279
- throw new TypeError("Symbol.asyncIterator is not defined.");
280
- var m = o[Symbol.asyncIterator], i;
281
- 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);
282
- 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); }); }; }
283
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
284
- }
285
- function __makeTemplateObject(cooked, raw) {
286
- if (Object.defineProperty) {
287
- Object.defineProperty(cooked, "raw", { value: raw });
288
- }
289
- else {
290
- cooked.raw = raw;
291
- }
292
- return cooked;
293
- }
294
- ;
295
- var __setModuleDefault = Object.create ? (function (o, v) {
296
- Object.defineProperty(o, "default", { enumerable: true, value: v });
297
- }) : function (o, v) {
298
- o["default"] = v;
299
- };
300
- function __importStar(mod) {
301
- if (mod && mod.__esModule)
302
- return mod;
303
- var result = {};
304
- if (mod != null)
305
- for (var k in mod)
306
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
307
- __createBinding(result, mod, k);
308
- __setModuleDefault(result, mod);
309
- return result;
310
- }
311
- function __importDefault(mod) {
312
- return (mod && mod.__esModule) ? mod : { default: mod };
313
- }
314
- function __classPrivateFieldGet(receiver, state, kind, f) {
315
- if (kind === "a" && !f)
316
- throw new TypeError("Private accessor was defined without a getter");
317
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
318
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
319
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
320
- }
321
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
322
- if (kind === "m")
323
- throw new TypeError("Private method is not writable");
324
- if (kind === "a" && !f)
325
- throw new TypeError("Private accessor was defined without a setter");
326
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
327
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
328
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
329
- }
330
-
331
- /**
332
- * @publicApi
333
- */
334
- var MockAnimationDriver = /** @class */ (function () {
335
- function MockAnimationDriver() {
336
- }
337
- MockAnimationDriver.prototype.validateStyleProperty = function (prop) {
338
- return browser.ɵvalidateStyleProperty(prop);
339
- };
340
- MockAnimationDriver.prototype.matchesElement = function (element, selector) {
341
- return browser.ɵmatchesElement(element, selector);
342
- };
343
- MockAnimationDriver.prototype.containsElement = function (elm1, elm2) {
344
- return browser.ɵcontainsElement(elm1, elm2);
345
- };
346
- MockAnimationDriver.prototype.query = function (element, selector, multi) {
347
- return browser.ɵinvokeQuery(element, selector, multi);
348
- };
349
- MockAnimationDriver.prototype.computeStyle = function (element, prop, defaultValue) {
350
- return defaultValue || '';
351
- };
352
- MockAnimationDriver.prototype.animate = function (element, keyframes, duration, delay, easing, previousPlayers) {
353
- if (previousPlayers === void 0) { previousPlayers = []; }
354
- var player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);
355
- MockAnimationDriver.log.push(player);
356
- return player;
357
- };
358
- return MockAnimationDriver;
359
- }());
360
- MockAnimationDriver.log = [];
361
- /**
362
- * @publicApi
363
- */
364
- var MockAnimationPlayer = /** @class */ (function (_super) {
365
- __extends(MockAnimationPlayer, _super);
366
- function MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers) {
367
- var _this = _super.call(this, duration, delay) || this;
368
- _this.element = element;
369
- _this.keyframes = keyframes;
370
- _this.duration = duration;
371
- _this.delay = delay;
372
- _this.easing = easing;
373
- _this.previousPlayers = previousPlayers;
374
- _this.__finished = false;
375
- _this.__started = false;
376
- _this.previousStyles = {};
377
- _this._onInitFns = [];
378
- _this.currentSnapshot = {};
379
- if (browser.ɵallowPreviousPlayerStylesMerge(duration, delay)) {
380
- previousPlayers.forEach(function (player) {
381
- if (player instanceof MockAnimationPlayer) {
382
- var styles_1 = player.currentSnapshot;
383
- Object.keys(styles_1).forEach(function (prop) { return _this.previousStyles[prop] = styles_1[prop]; });
384
- }
385
- });
386
- }
387
- return _this;
388
- }
389
- /* @internal */
390
- MockAnimationPlayer.prototype.onInit = function (fn) {
391
- this._onInitFns.push(fn);
392
- };
393
- /* @internal */
394
- MockAnimationPlayer.prototype.init = function () {
395
- _super.prototype.init.call(this);
396
- this._onInitFns.forEach(function (fn) { return fn(); });
397
- this._onInitFns = [];
398
- };
399
- MockAnimationPlayer.prototype.reset = function () {
400
- _super.prototype.reset.call(this);
401
- this.__started = false;
402
- };
403
- MockAnimationPlayer.prototype.finish = function () {
404
- _super.prototype.finish.call(this);
405
- this.__finished = true;
406
- };
407
- MockAnimationPlayer.prototype.destroy = function () {
408
- _super.prototype.destroy.call(this);
409
- this.__finished = true;
410
- };
411
- /* @internal */
412
- MockAnimationPlayer.prototype.triggerMicrotask = function () { };
413
- MockAnimationPlayer.prototype.play = function () {
414
- _super.prototype.play.call(this);
415
- this.__started = true;
416
- };
417
- MockAnimationPlayer.prototype.hasStarted = function () {
418
- return this.__started;
419
- };
420
- MockAnimationPlayer.prototype.beforeDestroy = function () {
421
- var _this = this;
422
- var captures = {};
423
- Object.keys(this.previousStyles).forEach(function (prop) {
424
- captures[prop] = _this.previousStyles[prop];
425
- });
426
- if (this.hasStarted()) {
427
- // when assembling the captured styles, it's important that
428
- // we build the keyframe styles in the following order:
429
- // {other styles within keyframes, ... previousStyles }
430
- this.keyframes.forEach(function (kf) {
431
- Object.keys(kf).forEach(function (prop) {
432
- if (prop != 'offset') {
433
- captures[prop] = _this.__finished ? kf[prop] : animations.AUTO_STYLE;
434
- }
435
- });
436
- });
437
- }
438
- this.currentSnapshot = captures;
439
- };
440
- return MockAnimationPlayer;
441
- }(animations.NoopAnimationPlayer));
442
-
443
- /**
444
- * @license
445
- * Copyright Google LLC All Rights Reserved.
446
- *
447
- * Use of this source code is governed by an MIT-style license that can be
448
- * found in the LICENSE file at https://angular.io/license
449
- */
450
-
451
- /**
452
- * @license
453
- * Copyright Google LLC All Rights Reserved.
454
- *
455
- * Use of this source code is governed by an MIT-style license that can be
456
- * found in the LICENSE file at https://angular.io/license
457
- */
458
-
459
- /**
460
- * @license
461
- * Copyright Google LLC All Rights Reserved.
462
- *
463
- * Use of this source code is governed by an MIT-style license that can be
464
- * found in the LICENSE file at https://angular.io/license
465
- */
466
-
467
- /**
468
- * Generated bundle index. Do not edit.
469
- */
470
-
471
- exports.MockAnimationDriver = MockAnimationDriver;
472
- exports.MockAnimationPlayer = MockAnimationPlayer;
473
-
474
- Object.defineProperty(exports, '__esModule', { value: true });
475
-
476
- })));
477
- //# sourceMappingURL=animations-browser-testing.umd.js.map