@angular/animations 6.1.6 → 6.1.10
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/bundles/animations-browser-testing.umd.js +1 -1
- package/bundles/animations-browser-testing.umd.min.js +1 -1
- package/bundles/animations-browser-testing.umd.min.js.map +1 -1
- package/bundles/animations-browser.umd.js +11 -11
- package/bundles/animations-browser.umd.js.map +1 -1
- package/bundles/animations-browser.umd.min.js +5 -12
- package/bundles/animations-browser.umd.min.js.map +1 -1
- package/bundles/animations.umd.js +1 -1
- package/bundles/animations.umd.min.js +1 -1
- package/bundles/animations.umd.min.js.map +1 -1
- package/esm2015/src/version.js +1 -1
- package/esm5/browser/src/render/animation_driver.js +5 -4
- package/esm5/src/version.js +1 -1
- package/fesm2015/animations.js +1 -1
- package/fesm2015/browser/testing.js +1 -1
- package/fesm2015/browser.js +1 -1
- package/fesm5/animations.js +1 -1
- package/fesm5/browser/testing.js +1 -1
- package/fesm5/browser.js +5 -12
- package/fesm5/browser.js.map +1 -1
- package/package.json +2 -2
|
@@ -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","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","MockAnimationDriver","prototype","validateStyleProperty","prop","ɵvalidateStyleProperty","matchesElement","element","selector","ɵmatchesElement","containsElement","elm1","elm2","ɵcontainsElement","query","multi","ɵinvokeQuery","computeStyle","defaultValue","animate","keyframes","duration","delay","easing","previousPlayers","player","MockAnimationPlayer","log","push","_super","_this","call","__finished","__started","previousStyles","_onInitFns","currentSnapshot","ɵallowPreviousPlayerStylesMerge","forEach","styles_1","keys","__extends","__","constructor","create","onInit","fn","init","finish","destroy","triggerMicrotask","play","hasStarted","beforeDestroy","captures","kf","AUTO_STYLE","NoopAnimationPlayer","defineProperty","value"],"mappings":";;;;;CAMC,SAAUA,EAAQC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C,MAC7BA,KAAKyC,YAAa,GAEtBN,EAAoBxB,UAAU+C,QAAU,WACpCpB,EAAO3B,UAAU+C,QAAQlB,KAAKxC,MAC9BA,KAAKyC,YAAa,GAGtBN,EAAoBxB,UAAUgD,iBAAmB,aACjDxB,EAAoBxB,UAAUiD,KAAO,WACjCtB,EAAO3B,UAAUiD,KAAKpB,KAAKxC,MAC3BA,KAAK0C,WAAY,GAErBP,EAAoBxB,UAAUkD,WAAa,WAAc,OAAO7D,KAAK0C,WACrEP,EAAoBxB,UAAUmD,cAAgB,WAC1C,IAAIvB,EAAQvC,KACR+D,KACJ3D,OAAO6C,KAAKjD,KAAK2C,gBAAgBI,QAAQ,SAAUlC,GAC/CkD,EAASlD,GAAQ0B,EAAMI,eAAe9B,KAEtCb,KAAK6D,cAIL7D,KAAK6B,UAAUkB,QAAQ,SAAUiB,GAC7B5D,OAAO6C,KAAKe,GAAIjB,QAAQ,SAAUlC,GAClB,UAARA,IACAkD,EAASlD,GAAQ0B,EAAME,WAAauB,EAAGnD,GAAQhB,EAAWoE,gBAK1EjE,KAAK6C,gBAAkBkB,GAEpB5B,EApE6B,CAqEtCtC,EAAWqE;;;;;;;;;;;;;;;;;;;;;;AA8Bb3E,EAAQmB,oBAAsBA,EAC9BnB,EAAQ4C,oBAAsBA,EAE9B/B,OAAO+D,eAAe5E,EAAS,cAAgB6E,OAAO","sourcesContent":["/**\n * @license Angular v6.1.6\n * (c) 2010-2018 Google, Inc. https://angular.io/\n * License: MIT\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/animations/browser')) :\n typeof define === 'function' && define.amd ? define('@angular/animations/browser/testing', ['exports', '@angular/animations', '@angular/animations/browser'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.animations = global.ng.animations || {}, global.ng.animations.browser = global.ng.animations.browser || {}, global.ng.animations.browser.testing = {}),global.ng.animations,global.ng.animations.browser));\n}(this, (function (exports,animations,browser) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\n\n /**\n * @experimental Animation support is experimental.\n */\n var MockAnimationDriver = /** @class */ (function () {\n function MockAnimationDriver() {\n }\n MockAnimationDriver.prototype.validateStyleProperty = function (prop) { return browser.ɵvalidateStyleProperty(prop); };\n MockAnimationDriver.prototype.matchesElement = function (element, selector) {\n return browser.ɵmatchesElement(element, selector);\n };\n MockAnimationDriver.prototype.containsElement = function (elm1, elm2) { return browser.ɵcontainsElement(elm1, elm2); };\n MockAnimationDriver.prototype.query = function (element, selector, multi) {\n return browser.ɵinvokeQuery(element, selector, multi);\n };\n MockAnimationDriver.prototype.computeStyle = function (element, prop, defaultValue) {\n return defaultValue || '';\n };\n MockAnimationDriver.prototype.animate = function (element, keyframes, duration, delay, easing, previousPlayers) {\n if (previousPlayers === void 0) { previousPlayers = []; }\n var player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);\n MockAnimationDriver.log.push(player);\n return player;\n };\n MockAnimationDriver.log = [];\n return MockAnimationDriver;\n }());\n /**\n * @experimental Animation support is experimental.\n */\n var MockAnimationPlayer = /** @class */ (function (_super) {\n __extends(MockAnimationPlayer, _super);\n function MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers) {\n var _this = _super.call(this, duration, delay) || this;\n _this.element = element;\n _this.keyframes = keyframes;\n _this.duration = duration;\n _this.delay = delay;\n _this.easing = easing;\n _this.previousPlayers = previousPlayers;\n _this.__finished = false;\n _this.__started = false;\n _this.previousStyles = {};\n _this._onInitFns = [];\n _this.currentSnapshot = {};\n if (browser.ɵallowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach(function (player) {\n if (player instanceof MockAnimationPlayer) {\n var styles_1 = player.currentSnapshot;\n Object.keys(styles_1).forEach(function (prop) { return _this.previousStyles[prop] = styles_1[prop]; });\n }\n });\n }\n return _this;\n }\n /* @internal */\n MockAnimationPlayer.prototype.onInit = function (fn) { this._onInitFns.push(fn); };\n /* @internal */\n MockAnimationPlayer.prototype.init = function () {\n _super.prototype.init.call(this);\n this._onInitFns.forEach(function (fn) { return fn(); });\n this._onInitFns = [];\n };\n MockAnimationPlayer.prototype.finish = function () {\n _super.prototype.finish.call(this);\n this.__finished = true;\n };\n MockAnimationPlayer.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.__finished = true;\n };\n /* @internal */\n MockAnimationPlayer.prototype.triggerMicrotask = function () { };\n MockAnimationPlayer.prototype.play = function () {\n _super.prototype.play.call(this);\n this.__started = true;\n };\n MockAnimationPlayer.prototype.hasStarted = function () { return this.__started; };\n MockAnimationPlayer.prototype.beforeDestroy = function () {\n var _this = this;\n var captures = {};\n Object.keys(this.previousStyles).forEach(function (prop) {\n captures[prop] = _this.previousStyles[prop];\n });\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this.keyframes.forEach(function (kf) {\n Object.keys(kf).forEach(function (prop) {\n if (prop != 'offset') {\n captures[prop] = _this.__finished ? kf[prop] : animations.AUTO_STYLE;\n }\n });\n });\n }\n this.currentSnapshot = captures;\n };\n return MockAnimationPlayer;\n }(animations.NoopAnimationPlayer));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MockAnimationDriver = MockAnimationDriver;\n exports.MockAnimationPlayer = MockAnimationPlayer;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=animations-browser-testing.umd.js.map\n"]}
|
|
1
|
+
{"version":3,"sources":["packages/animations/animations-browser-testing.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","animations","browser","testing","this","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","MockAnimationDriver","prototype","validateStyleProperty","prop","ɵvalidateStyleProperty","matchesElement","element","selector","ɵmatchesElement","containsElement","elm1","elm2","ɵcontainsElement","query","multi","ɵinvokeQuery","computeStyle","defaultValue","animate","keyframes","duration","delay","easing","previousPlayers","player","MockAnimationPlayer","log","push","_super","_this","call","__finished","__started","previousStyles","_onInitFns","currentSnapshot","ɵallowPreviousPlayerStylesMerge","forEach","styles_1","keys","__extends","__","constructor","create","onInit","fn","init","finish","destroy","triggerMicrotask","play","hasStarted","beforeDestroy","captures","kf","AUTO_STYLE","NoopAnimationPlayer","def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,WACnCnB,EAAO3B,UAAU8C,OAAOjB,KAAKxC,MAC7BA,KAAKyC,YAAa,GAEtBN,EAAoBxB,UAAU+C,QAAU,WACpCpB,EAAO3B,UAAU+C,QAAQlB,KAAKxC,MAC9BA,KAAKyC,YAAa,GAGtBN,EAAoBxB,UAAUgD,iBAAmB,aACjDxB,EAAoBxB,UAAUiD,KAAO,WACjCtB,EAAO3B,UAAUiD,KAAKpB,KAAKxC,MAC3BA,KAAK0C,WAAY,GAErBP,EAAoBxB,UAAUkD,WAAa,WAAc,OAAO7D,KAAK0C,WACrEP,EAAoBxB,UAAUmD,cAAgB,WAC1C,IAAIvB,EAAQvC,KACR+D,KACJ3D,OAAO6C,KAAKjD,KAAK2C,gBAAgBI,QAAQ,SAAUlC,GAC/CkD,EAASlD,GAAQ0B,EAAMI,eAAe9B,KAEtCb,KAAK6D,cAIL7D,KAAK6B,UAAUkB,QAAQ,SAAUiB,GAC7B5D,OAAO6C,KAAKe,GAAIjB,QAAQ,SAAUlC,GAClB,UAARA,IACAkD,EAASlD,GAAQ0B,EAAME,WAAauB,EAAGnD,GAAQhB,EAAWoE,gBAK1EjE,KAAK6C,gBAAkBkB,GAEpB5B,EApE6B,CAqEtCtC,EAAWqE;;;;;;;;;;;;;;;;;;;;;;AA8Bb3E,EAAQmB,oBAAsBA,EAC9BnB,EAAQ4C,oBAAsBA,EAE9B/B,OAAO+D,eAAe5E,EAAS,cAAgB6E,OAAO","sourcesContent":["/**\n * @license Angular v6.1.10\n * (c) 2010-2018 Google, Inc. https://angular.io/\n * License: MIT\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/animations/browser')) :\n typeof define === 'function' && define.amd ? define('@angular/animations/browser/testing', ['exports', '@angular/animations', '@angular/animations/browser'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.animations = global.ng.animations || {}, global.ng.animations.browser = global.ng.animations.browser || {}, global.ng.animations.browser.testing = {}),global.ng.animations,global.ng.animations.browser));\n}(this, (function (exports,animations,browser) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\n\n /**\n * @experimental Animation support is experimental.\n */\n var MockAnimationDriver = /** @class */ (function () {\n function MockAnimationDriver() {\n }\n MockAnimationDriver.prototype.validateStyleProperty = function (prop) { return browser.ɵvalidateStyleProperty(prop); };\n MockAnimationDriver.prototype.matchesElement = function (element, selector) {\n return browser.ɵmatchesElement(element, selector);\n };\n MockAnimationDriver.prototype.containsElement = function (elm1, elm2) { return browser.ɵcontainsElement(elm1, elm2); };\n MockAnimationDriver.prototype.query = function (element, selector, multi) {\n return browser.ɵinvokeQuery(element, selector, multi);\n };\n MockAnimationDriver.prototype.computeStyle = function (element, prop, defaultValue) {\n return defaultValue || '';\n };\n MockAnimationDriver.prototype.animate = function (element, keyframes, duration, delay, easing, previousPlayers) {\n if (previousPlayers === void 0) { previousPlayers = []; }\n var player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);\n MockAnimationDriver.log.push(player);\n return player;\n };\n MockAnimationDriver.log = [];\n return MockAnimationDriver;\n }());\n /**\n * @experimental Animation support is experimental.\n */\n var MockAnimationPlayer = /** @class */ (function (_super) {\n __extends(MockAnimationPlayer, _super);\n function MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers) {\n var _this = _super.call(this, duration, delay) || this;\n _this.element = element;\n _this.keyframes = keyframes;\n _this.duration = duration;\n _this.delay = delay;\n _this.easing = easing;\n _this.previousPlayers = previousPlayers;\n _this.__finished = false;\n _this.__started = false;\n _this.previousStyles = {};\n _this._onInitFns = [];\n _this.currentSnapshot = {};\n if (browser.ɵallowPreviousPlayerStylesMerge(duration, delay)) {\n previousPlayers.forEach(function (player) {\n if (player instanceof MockAnimationPlayer) {\n var styles_1 = player.currentSnapshot;\n Object.keys(styles_1).forEach(function (prop) { return _this.previousStyles[prop] = styles_1[prop]; });\n }\n });\n }\n return _this;\n }\n /* @internal */\n MockAnimationPlayer.prototype.onInit = function (fn) { this._onInitFns.push(fn); };\n /* @internal */\n MockAnimationPlayer.prototype.init = function () {\n _super.prototype.init.call(this);\n this._onInitFns.forEach(function (fn) { return fn(); });\n this._onInitFns = [];\n };\n MockAnimationPlayer.prototype.finish = function () {\n _super.prototype.finish.call(this);\n this.__finished = true;\n };\n MockAnimationPlayer.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n this.__finished = true;\n };\n /* @internal */\n MockAnimationPlayer.prototype.triggerMicrotask = function () { };\n MockAnimationPlayer.prototype.play = function () {\n _super.prototype.play.call(this);\n this.__started = true;\n };\n MockAnimationPlayer.prototype.hasStarted = function () { return this.__started; };\n MockAnimationPlayer.prototype.beforeDestroy = function () {\n var _this = this;\n var captures = {};\n Object.keys(this.previousStyles).forEach(function (prop) {\n captures[prop] = _this.previousStyles[prop];\n });\n if (this.hasStarted()) {\n // when assembling the captured styles, it's important that\n // we build the keyframe styles in the following order:\n // {other styles within keyframes, ... previousStyles }\n this.keyframes.forEach(function (kf) {\n Object.keys(kf).forEach(function (prop) {\n if (prop != 'offset') {\n captures[prop] = _this.__finished ? kf[prop] : animations.AUTO_STYLE;\n }\n });\n });\n }\n this.currentSnapshot = captures;\n };\n return MockAnimationPlayer;\n }(animations.NoopAnimationPlayer));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MockAnimationDriver = MockAnimationDriver;\n exports.MockAnimationPlayer = MockAnimationPlayer;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=animations-browser-testing.umd.js.map\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v6.1.
|
|
2
|
+
* @license Angular v6.1.10
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -50,6 +50,13 @@
|
|
|
50
50
|
return __assign.apply(this, arguments);
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
function __decorate(decorators, target, key, desc) {
|
|
54
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
55
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
56
|
+
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;
|
|
57
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
58
|
+
}
|
|
59
|
+
|
|
53
60
|
function __values(o) {
|
|
54
61
|
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
55
62
|
if (m) return m.call(o);
|
|
@@ -271,13 +278,6 @@
|
|
|
271
278
|
return newObj;
|
|
272
279
|
}
|
|
273
280
|
|
|
274
|
-
/**
|
|
275
|
-
* @license
|
|
276
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
277
|
-
*
|
|
278
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
279
|
-
* found in the LICENSE file at https://angular.io/license
|
|
280
|
-
*/
|
|
281
281
|
/**
|
|
282
282
|
* @experimental
|
|
283
283
|
*/
|
|
@@ -299,9 +299,9 @@
|
|
|
299
299
|
if (previousPlayers === void 0) { previousPlayers = []; }
|
|
300
300
|
return new animations.NoopAnimationPlayer(duration, delay);
|
|
301
301
|
};
|
|
302
|
-
NoopAnimationDriver
|
|
303
|
-
|
|
304
|
-
];
|
|
302
|
+
NoopAnimationDriver = __decorate([
|
|
303
|
+
core.Injectable()
|
|
304
|
+
], NoopAnimationDriver);
|
|
305
305
|
return NoopAnimationDriver;
|
|
306
306
|
}());
|
|
307
307
|
/**
|