@angular/animations
Advanced tools
Comparing version 4.0.0-rc.3 to 4.0.0-rc.4
/** | ||
* @license Angular v4.0.0-rc.3 | ||
* @license Angular v4.0.0-rc.4 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -7,5 +7,5 @@ * License: MIT | ||
/** | ||
* @experimental Animation support is experimental. | ||
* \@experimental Animation support is experimental. | ||
*/ | ||
var /** @type {?} */ AUTO_STYLE = '*'; | ||
var AUTO_STYLE = '*'; | ||
/** | ||
@@ -567,3 +567,2 @@ * `trigger` is an animation-specific function that is designed to be used inside of Angular2's | ||
function NoopAnimationPlayer() { | ||
var _this = this; | ||
this._onDoneFns = []; | ||
@@ -576,3 +575,2 @@ this._onStartFns = []; | ||
this.parentPlayer = null; | ||
scheduleMicroTask(function () { return _this._onFinish(); }); | ||
} | ||
@@ -616,5 +614,6 @@ /** | ||
NoopAnimationPlayer.prototype.play = function () { | ||
var _this = this; | ||
if (!this.hasStarted()) { | ||
this._onStartFns.forEach(function (fn) { return fn(); }); | ||
this._onStartFns = []; | ||
scheduleMicroTask(function () { return _this._onFinish(); }); | ||
this._onStart(); | ||
} | ||
@@ -626,2 +625,9 @@ this._started = true; | ||
*/ | ||
NoopAnimationPlayer.prototype._onStart = function () { | ||
this._onStartFns.forEach(function (fn) { return fn(); }); | ||
this._onStartFns = []; | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.pause = function () { }; | ||
@@ -642,2 +648,5 @@ /** | ||
this._destroyed = true; | ||
if (!this.hasStarted()) { | ||
this._onStart(); | ||
} | ||
this.finish(); | ||
@@ -805,1 +814,2 @@ this._onDestroyFns.forEach(function (fn) { return fn(); }); | ||
export { AUTO_STYLE, animate, group, keyframes, sequence, state, style, transition, trigger, AnimationPlayer, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer }; | ||
//# sourceMappingURL=animations.es5.js.map |
/** | ||
* @license Angular v4.0.0-rc.3 | ||
* @license Angular v4.0.0-rc.4 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -7,5 +7,5 @@ * License: MIT | ||
/** | ||
* @experimental Animation support is experimental. | ||
* \@experimental Animation support is experimental. | ||
*/ | ||
const /** @type {?} */ AUTO_STYLE = '*'; | ||
const AUTO_STYLE = '*'; | ||
/** | ||
@@ -568,3 +568,2 @@ * `trigger` is an animation-specific function that is designed to be used inside of Angular2's | ||
this.parentPlayer = null; | ||
scheduleMicroTask(() => this._onFinish()); | ||
} | ||
@@ -609,4 +608,4 @@ /** | ||
if (!this.hasStarted()) { | ||
this._onStartFns.forEach(fn => fn()); | ||
this._onStartFns = []; | ||
scheduleMicroTask(() => this._onFinish()); | ||
this._onStart(); | ||
} | ||
@@ -618,2 +617,9 @@ this._started = true; | ||
*/ | ||
_onStart() { | ||
this._onStartFns.forEach(fn => fn()); | ||
this._onStartFns = []; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
pause() { } | ||
@@ -634,2 +640,5 @@ /** | ||
this._destroyed = true; | ||
if (!this.hasStarted()) { | ||
this._onStart(); | ||
} | ||
this.finish(); | ||
@@ -791,2 +800,3 @@ this._onDestroyFns.forEach(fn => fn()); | ||
export { AUTO_STYLE, animate, group, keyframes, sequence, state, style, transition, trigger, AnimationPlayer, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer }; | ||
export { AUTO_STYLE, animate, group, keyframes, sequence, state, style, transition, trigger, AnimationPlayer, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer }; | ||
//# sourceMappingURL=animations.js.map |
/** | ||
* @license Angular v4.0.0-rc.3 | ||
* @license Angular v4.0.0-rc.4 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -13,3 +13,3 @@ * License: MIT | ||
/** | ||
* @license Angular v4.0.0-rc.3 | ||
* @license Angular v4.0.0-rc.4 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -19,5 +19,5 @@ * License: MIT | ||
/** | ||
* @experimental Animation support is experimental. | ||
* \@experimental Animation support is experimental. | ||
*/ | ||
var /** @type {?} */ AUTO_STYLE = '*'; | ||
var AUTO_STYLE = '*'; | ||
/** | ||
@@ -579,3 +579,2 @@ * `trigger` is an animation-specific function that is designed to be used inside of Angular2's | ||
function NoopAnimationPlayer() { | ||
var _this = this; | ||
this._onDoneFns = []; | ||
@@ -588,3 +587,2 @@ this._onStartFns = []; | ||
this.parentPlayer = null; | ||
scheduleMicroTask(function () { return _this._onFinish(); }); | ||
} | ||
@@ -628,5 +626,6 @@ /** | ||
NoopAnimationPlayer.prototype.play = function () { | ||
var _this = this; | ||
if (!this.hasStarted()) { | ||
this._onStartFns.forEach(function (fn) { return fn(); }); | ||
this._onStartFns = []; | ||
scheduleMicroTask(function () { return _this._onFinish(); }); | ||
this._onStart(); | ||
} | ||
@@ -638,2 +637,9 @@ this._started = true; | ||
*/ | ||
NoopAnimationPlayer.prototype._onStart = function () { | ||
this._onStartFns.forEach(function (fn) { return fn(); }); | ||
this._onStartFns = []; | ||
}; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.pause = function () { }; | ||
@@ -654,2 +660,5 @@ /** | ||
this._destroyed = true; | ||
if (!this.hasStarted()) { | ||
this._onStart(); | ||
} | ||
this.finish(); | ||
@@ -830,2 +839,3 @@ this._onDestroyFns.forEach(function (fn) { return fn(); }); | ||
})); | ||
})); | ||
//# sourceMappingURL=animations.umd.js.map |
/** | ||
* @license Angular v4.0.0-rc.3 | ||
* @license Angular v4.0.0-rc.4 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -16,6 +16,7 @@ * License: MIT | ||
function scheduleMicroTask(cb){Promise.resolve(null).then(cb)}/** | ||
* @license Angular v4.0.0-rc.3 | ||
* @license Angular v4.0.0-rc.4 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
* License: MIT | ||
*/ | ||
var AUTO_STYLE="*",AnimationPlayer=function(){function AnimationPlayer(){}return AnimationPlayer.prototype.onDone=function(fn){},AnimationPlayer.prototype.onStart=function(fn){},AnimationPlayer.prototype.onDestroy=function(fn){},AnimationPlayer.prototype.init=function(){},AnimationPlayer.prototype.hasStarted=function(){},AnimationPlayer.prototype.play=function(){},AnimationPlayer.prototype.pause=function(){},AnimationPlayer.prototype.restart=function(){},AnimationPlayer.prototype.finish=function(){},AnimationPlayer.prototype.destroy=function(){},AnimationPlayer.prototype.reset=function(){},AnimationPlayer.prototype.setPosition=function(p){},AnimationPlayer.prototype.getPosition=function(){},Object.defineProperty(AnimationPlayer.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(player){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),AnimationPlayer}(),NoopAnimationPlayer=function(){function NoopAnimationPlayer(){var _this=this;this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,scheduleMicroTask(function(){return _this._onFinish()})}return NoopAnimationPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(fn){return fn()}),this._onDoneFns=[])},NoopAnimationPlayer.prototype.onStart=function(fn){this._onStartFns.push(fn)},NoopAnimationPlayer.prototype.onDone=function(fn){this._onDoneFns.push(fn)},NoopAnimationPlayer.prototype.onDestroy=function(fn){this._onDestroyFns.push(fn)},NoopAnimationPlayer.prototype.hasStarted=function(){return this._started},NoopAnimationPlayer.prototype.init=function(){},NoopAnimationPlayer.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(fn){return fn()}),this._onStartFns=[]),this._started=!0},NoopAnimationPlayer.prototype.pause=function(){},NoopAnimationPlayer.prototype.restart=function(){},NoopAnimationPlayer.prototype.finish=function(){this._onFinish()},NoopAnimationPlayer.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.finish(),this._onDestroyFns.forEach(function(fn){return fn()}),this._onDestroyFns=[])},NoopAnimationPlayer.prototype.reset=function(){},NoopAnimationPlayer.prototype.setPosition=function(p){},NoopAnimationPlayer.prototype.getPosition=function(){return 0},NoopAnimationPlayer}(),AnimationGroupPlayer=function(){function AnimationGroupPlayer(_players){var _this=this;this._players=_players,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null;var count=0,total=this._players.length;0==total?scheduleMicroTask(function(){return _this._onFinish()}):this._players.forEach(function(player){player.parentPlayer=_this,player.onDone(function(){++count>=total&&_this._onFinish()})})}return AnimationGroupPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(fn){return fn()}),this._onDoneFns=[])},AnimationGroupPlayer.prototype.init=function(){this._players.forEach(function(player){return player.init()})},AnimationGroupPlayer.prototype.onStart=function(fn){this._onStartFns.push(fn)},AnimationGroupPlayer.prototype.onDone=function(fn){this._onDoneFns.push(fn)},AnimationGroupPlayer.prototype.onDestroy=function(fn){this._onDestroyFns.push(fn)},AnimationGroupPlayer.prototype.hasStarted=function(){return this._started},AnimationGroupPlayer.prototype.play=function(){this.parentPlayer||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(fn){return fn()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(player){return player.play()})},AnimationGroupPlayer.prototype.pause=function(){this._players.forEach(function(player){return player.pause()})},AnimationGroupPlayer.prototype.restart=function(){this._players.forEach(function(player){return player.restart()})},AnimationGroupPlayer.prototype.finish=function(){this._onFinish(),this._players.forEach(function(player){return player.finish()})},AnimationGroupPlayer.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(player){return player.destroy()}),this._destroyed=!0,this._onDestroyFns.forEach(function(fn){return fn()}),this._onDestroyFns=[])},AnimationGroupPlayer.prototype.reset=function(){this._players.forEach(function(player){return player.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},AnimationGroupPlayer.prototype.setPosition=function(p){this._players.forEach(function(player){player.setPosition(p)})},AnimationGroupPlayer.prototype.getPosition=function(){var min=0;return this._players.forEach(function(player){var p=player.getPosition();min=Math.min(p,min)}),min},Object.defineProperty(AnimationGroupPlayer.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),AnimationGroupPlayer}();exports.AUTO_STYLE=AUTO_STYLE,exports.animate=animate,exports.group=group,exports.keyframes=keyframes,exports.sequence=sequence,exports.state=state,exports.style=style,exports.transition=transition,exports.trigger=trigger,exports.AnimationPlayer=AnimationPlayer,exports.NoopAnimationPlayer=NoopAnimationPlayer,exports.ɵAnimationGroupPlayer=AnimationGroupPlayer}); | ||
var AUTO_STYLE="*",AnimationPlayer=function(){function AnimationPlayer(){}return AnimationPlayer.prototype.onDone=function(fn){},AnimationPlayer.prototype.onStart=function(fn){},AnimationPlayer.prototype.onDestroy=function(fn){},AnimationPlayer.prototype.init=function(){},AnimationPlayer.prototype.hasStarted=function(){},AnimationPlayer.prototype.play=function(){},AnimationPlayer.prototype.pause=function(){},AnimationPlayer.prototype.restart=function(){},AnimationPlayer.prototype.finish=function(){},AnimationPlayer.prototype.destroy=function(){},AnimationPlayer.prototype.reset=function(){},AnimationPlayer.prototype.setPosition=function(p){},AnimationPlayer.prototype.getPosition=function(){},Object.defineProperty(AnimationPlayer.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(player){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),AnimationPlayer}(),NoopAnimationPlayer=function(){function NoopAnimationPlayer(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null}return NoopAnimationPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(fn){return fn()}),this._onDoneFns=[])},NoopAnimationPlayer.prototype.onStart=function(fn){this._onStartFns.push(fn)},NoopAnimationPlayer.prototype.onDone=function(fn){this._onDoneFns.push(fn)},NoopAnimationPlayer.prototype.onDestroy=function(fn){this._onDestroyFns.push(fn)},NoopAnimationPlayer.prototype.hasStarted=function(){return this._started},NoopAnimationPlayer.prototype.init=function(){},NoopAnimationPlayer.prototype.play=function(){var _this=this;this.hasStarted()||(scheduleMicroTask(function(){return _this._onFinish()}),this._onStart()),this._started=!0},NoopAnimationPlayer.prototype._onStart=function(){this._onStartFns.forEach(function(fn){return fn()}),this._onStartFns=[]},NoopAnimationPlayer.prototype.pause=function(){},NoopAnimationPlayer.prototype.restart=function(){},NoopAnimationPlayer.prototype.finish=function(){this._onFinish()},NoopAnimationPlayer.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(fn){return fn()}),this._onDestroyFns=[])},NoopAnimationPlayer.prototype.reset=function(){},NoopAnimationPlayer.prototype.setPosition=function(p){},NoopAnimationPlayer.prototype.getPosition=function(){return 0},NoopAnimationPlayer}(),AnimationGroupPlayer=function(){function AnimationGroupPlayer(_players){var _this=this;this._players=_players,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null;var count=0,total=this._players.length;0==total?scheduleMicroTask(function(){return _this._onFinish()}):this._players.forEach(function(player){player.parentPlayer=_this,player.onDone(function(){++count>=total&&_this._onFinish()})})}return AnimationGroupPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(fn){return fn()}),this._onDoneFns=[])},AnimationGroupPlayer.prototype.init=function(){this._players.forEach(function(player){return player.init()})},AnimationGroupPlayer.prototype.onStart=function(fn){this._onStartFns.push(fn)},AnimationGroupPlayer.prototype.onDone=function(fn){this._onDoneFns.push(fn)},AnimationGroupPlayer.prototype.onDestroy=function(fn){this._onDestroyFns.push(fn)},AnimationGroupPlayer.prototype.hasStarted=function(){return this._started},AnimationGroupPlayer.prototype.play=function(){this.parentPlayer||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(fn){return fn()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(player){return player.play()})},AnimationGroupPlayer.prototype.pause=function(){this._players.forEach(function(player){return player.pause()})},AnimationGroupPlayer.prototype.restart=function(){this._players.forEach(function(player){return player.restart()})},AnimationGroupPlayer.prototype.finish=function(){this._onFinish(),this._players.forEach(function(player){return player.finish()})},AnimationGroupPlayer.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(player){return player.destroy()}),this._destroyed=!0,this._onDestroyFns.forEach(function(fn){return fn()}),this._onDestroyFns=[])},AnimationGroupPlayer.prototype.reset=function(){this._players.forEach(function(player){return player.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},AnimationGroupPlayer.prototype.setPosition=function(p){this._players.forEach(function(player){player.setPosition(p)})},AnimationGroupPlayer.prototype.getPosition=function(){var min=0;return this._players.forEach(function(player){var p=player.getPosition();min=Math.min(p,min)}),min},Object.defineProperty(AnimationGroupPlayer.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),AnimationGroupPlayer}();exports.AUTO_STYLE=AUTO_STYLE,exports.animate=animate,exports.group=group,exports.keyframes=keyframes,exports.sequence=sequence,exports.state=state,exports.style=style,exports.transition=transition,exports.trigger=trigger,exports.AnimationPlayer=AnimationPlayer,exports.NoopAnimationPlayer=NoopAnimationPlayer,exports.ɵAnimationGroupPlayer=AnimationGroupPlayer}); | ||
//# sourceMappingURL=animations.umd.min.js.map |
{ | ||
"name": "@angular/animations", | ||
"version": "4.0.0-rc.3", | ||
"version": "4.0.0-rc.4", | ||
"description": "Angular - animations integration with web-animationss", | ||
@@ -8,7 +8,7 @@ "main": "./bundles/animations.umd.js", | ||
"es2015": "./@angular/animations.js", | ||
"typings": "./typings/animations.d.ts", | ||
"typings": "./animations.d.ts", | ||
"author": "angular", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@angular/core": "4.0.0-rc.3" | ||
"@angular/core": "4.0.0-rc.4" | ||
}, | ||
@@ -15,0 +15,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1185877
74
11184
11
4
1