@angular/animations
Advanced tools
Comparing version 4.0.0-rc.1 to 4.0.0-rc.2
@@ -1,8 +0,15 @@ | ||
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}/** | ||
* @license Angular v4.0.0-rc.1 | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
/** | ||
* @license Angular v4.0.0-rc.2 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
* License: MIT | ||
*//** | ||
*/ | ||
/** | ||
* @experimental Animation support is experimental. | ||
*/var/** @type {?} */AUTO_STYLE='*';/** | ||
*/ | ||
var /** @type {?} */AUTO_STYLE = '*'; | ||
/** | ||
* `trigger` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -60,3 +67,7 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function trigger(name,definitions){return{name:name,definitions:definitions};}/** | ||
*/ | ||
function trigger(name, definitions) { | ||
return { name: name, definitions: definitions }; | ||
} | ||
/** | ||
* `animate` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -108,3 +119,9 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function animate(timings){var styles=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;return{type:4/* Animate */,styles:styles,timings:timings};}/** | ||
*/ | ||
function animate(timings) { | ||
var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
return { type: 4 /* Animate */, styles: styles, timings: timings }; | ||
} | ||
/** | ||
* `group` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -141,3 +158,7 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function group(steps){return{type:3/* Group */,steps:steps};}/** | ||
*/ | ||
function group(steps) { | ||
return { type: 3 /* Group */, steps: steps }; | ||
} | ||
/** | ||
* `sequence` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -177,3 +198,7 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function sequence(steps){return{type:2/* Sequence */,steps:steps};}/** | ||
*/ | ||
function sequence(steps) { | ||
return { type: 2 /* Sequence */, steps: steps }; | ||
} | ||
/** | ||
* `style` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -221,7 +246,7 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function style(tokens){var/** @type {?} */input=void 0;var/** @type {?} */offset=null;if(Array.isArray(tokens)){input=tokens;}else{input=[/** @type {?} */tokens];}input.forEach(function(entry){var/** @type {?} */entryOffset=entry['offset'];if(entryOffset!=null){offset=offset==null?parseFloat(/** @type {?} */entryOffset):offset;}});return _style(offset,input);}/** | ||
* @param {?} offset | ||
* @param {?} styles | ||
* @return {?} | ||
*/function _style(offset,styles){return{type:6/* Style */,styles:styles,offset:offset};}/** | ||
*/ | ||
function style(tokens) { | ||
return { type: 6 /* Style */, styles: tokens }; | ||
} | ||
/** | ||
* `state` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -276,3 +301,7 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function state(name,styles){return{type:0/* State */,name:name,styles:styles};}/** | ||
*/ | ||
function state(name, styles) { | ||
return { type: 0 /* State */, name: name, styles: styles }; | ||
} | ||
/** | ||
* `keyframes` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -323,3 +352,7 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function keyframes(steps){return{type:5/* KeyframeSequence */,steps:steps};}/** | ||
*/ | ||
function keyframes(steps) { | ||
return { type: 5 /* KeyframeSequence */, steps: steps }; | ||
} | ||
/** | ||
* `transition` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -433,3 +466,8 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
* @return {?} | ||
*/function transition(stateChangeExpr,steps){return{type:1/* Transition */,expr:stateChangeExpr,animation:Array.isArray(steps)?sequence(steps):steps};}/** | ||
*/ | ||
function transition(stateChangeExpr, steps) { | ||
return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps }; | ||
} | ||
/** | ||
* @license | ||
@@ -442,123 +480,541 @@ * Copyright Google Inc. All Rights Reserved. | ||
* @return {?} | ||
*/function scheduleMicroTask(cb){Promise.resolve(null).then(cb);}/** | ||
*/ | ||
function scheduleMicroTask(cb) { | ||
Promise.resolve(null).then(cb); | ||
} | ||
/** | ||
* \@experimental Animation support is experimental. | ||
* @abstract | ||
*/var AnimationPlayer=function(){function AnimationPlayer(){_classCallCheck(this,AnimationPlayer);}_createClass(AnimationPlayer,[{key:'onDone',/** | ||
*/ | ||
var AnimationPlayer = function () { | ||
function AnimationPlayer() { | ||
_classCallCheck(this, AnimationPlayer); | ||
} | ||
_createClass(AnimationPlayer, [{ | ||
key: 'onDone', | ||
/** | ||
* @abstract | ||
* @param {?} fn | ||
* @return {?} | ||
*/value:function onDone(fn){}/** | ||
*/ | ||
value: function onDone(fn) {} | ||
/** | ||
* @abstract | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onStart',value:function onStart(fn){}/** | ||
*/ | ||
}, { | ||
key: 'onStart', | ||
value: function onStart(fn) {} | ||
/** | ||
* @abstract | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onDestroy',value:function onDestroy(fn){}/** | ||
*/ | ||
}, { | ||
key: 'onDestroy', | ||
value: function onDestroy(fn) {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'init',value:function init(){}/** | ||
*/ | ||
}, { | ||
key: 'init', | ||
value: function init() {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'hasStarted',value:function hasStarted(){}/** | ||
*/ | ||
}, { | ||
key: 'hasStarted', | ||
value: function hasStarted() {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'play',value:function play(){}/** | ||
*/ | ||
}, { | ||
key: 'play', | ||
value: function play() {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'pause',value:function pause(){}/** | ||
*/ | ||
}, { | ||
key: 'pause', | ||
value: function pause() {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'restart',value:function restart(){}/** | ||
*/ | ||
}, { | ||
key: 'restart', | ||
value: function restart() {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'finish',value:function finish(){}/** | ||
*/ | ||
}, { | ||
key: 'finish', | ||
value: function finish() {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'destroy',value:function destroy(){}/** | ||
*/ | ||
}, { | ||
key: 'destroy', | ||
value: function destroy() {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'reset',value:function reset(){}/** | ||
*/ | ||
}, { | ||
key: 'reset', | ||
value: function reset() {} | ||
/** | ||
* @abstract | ||
* @param {?} p | ||
* @return {?} | ||
*/},{key:'setPosition',value:function setPosition(p){}/** | ||
*/ | ||
}, { | ||
key: 'setPosition', | ||
value: function setPosition(p) {} | ||
/** | ||
* @abstract | ||
* @return {?} | ||
*/},{key:'getPosition',value:function getPosition(){}/** | ||
*/ | ||
}, { | ||
key: 'getPosition', | ||
value: function getPosition() {} | ||
/** | ||
* @return {?} | ||
*/},{key:'parentPlayer',get:function get(){throw new Error('NOT IMPLEMENTED: Base Class');}/** | ||
*/ | ||
}, { | ||
key: 'parentPlayer', | ||
get: function get() { | ||
throw new Error('NOT IMPLEMENTED: Base Class'); | ||
} | ||
/** | ||
* @param {?} player | ||
* @return {?} | ||
*/,set:function set(player){throw new Error('NOT IMPLEMENTED: Base Class');}}]);return AnimationPlayer;}();/** | ||
*/ | ||
, | ||
set: function set(player) { | ||
throw new Error('NOT IMPLEMENTED: Base Class'); | ||
} | ||
}]); | ||
return AnimationPlayer; | ||
}(); | ||
/** | ||
* \@experimental Animation support is experimental. | ||
*/var NoopAnimationPlayer=function(){function NoopAnimationPlayer(){var _this=this;_classCallCheck(this,NoopAnimationPlayer);this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._started=false;this._destroyed=false;this._finished=false;this.parentPlayer=null;scheduleMicroTask(function(){return _this._onFinish();});}/** | ||
* @return {?} | ||
*/_createClass(NoopAnimationPlayer,[{key:'_onFinish',value:function _onFinish(){if(!this._finished){this._finished=true;this._onDoneFns.forEach(function(fn){return fn();});this._onDoneFns=[];}}/** | ||
*/ | ||
var NoopAnimationPlayer = function () { | ||
function NoopAnimationPlayer() { | ||
var _this = this; | ||
_classCallCheck(this, NoopAnimationPlayer); | ||
this._onDoneFns = []; | ||
this._onStartFns = []; | ||
this._onDestroyFns = []; | ||
this._started = false; | ||
this._destroyed = false; | ||
this._finished = false; | ||
this.parentPlayer = null; | ||
scheduleMicroTask(function () { | ||
return _this._onFinish(); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
_createClass(NoopAnimationPlayer, [{ | ||
key: '_onFinish', | ||
value: function _onFinish() { | ||
if (!this._finished) { | ||
this._finished = true; | ||
this._onDoneFns.forEach(function (fn) { | ||
return fn(); | ||
}); | ||
this._onDoneFns = []; | ||
} | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onStart',value:function onStart(fn){this._onStartFns.push(fn);}/** | ||
*/ | ||
}, { | ||
key: 'onStart', | ||
value: function onStart(fn) { | ||
this._onStartFns.push(fn); | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onDone',value:function onDone(fn){this._onDoneFns.push(fn);}/** | ||
*/ | ||
}, { | ||
key: 'onDone', | ||
value: function onDone(fn) { | ||
this._onDoneFns.push(fn); | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onDestroy',value:function onDestroy(fn){this._onDestroyFns.push(fn);}/** | ||
*/ | ||
}, { | ||
key: 'onDestroy', | ||
value: function onDestroy(fn) { | ||
this._onDestroyFns.push(fn); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'hasStarted',value:function hasStarted(){return this._started;}/** | ||
*/ | ||
}, { | ||
key: 'hasStarted', | ||
value: function hasStarted() { | ||
return this._started; | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'init',value:function init(){}/** | ||
*/ | ||
}, { | ||
key: 'init', | ||
value: function init() {} | ||
/** | ||
* @return {?} | ||
*/},{key:'play',value:function play(){if(!this.hasStarted()){this._onStartFns.forEach(function(fn){return fn();});this._onStartFns=[];}this._started=true;}/** | ||
*/ | ||
}, { | ||
key: 'play', | ||
value: function play() { | ||
if (!this.hasStarted()) { | ||
this._onStartFns.forEach(function (fn) { | ||
return fn(); | ||
}); | ||
this._onStartFns = []; | ||
} | ||
this._started = true; | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'pause',value:function pause(){}/** | ||
*/ | ||
}, { | ||
key: 'pause', | ||
value: function pause() {} | ||
/** | ||
* @return {?} | ||
*/},{key:'restart',value:function restart(){}/** | ||
*/ | ||
}, { | ||
key: 'restart', | ||
value: function restart() {} | ||
/** | ||
* @return {?} | ||
*/},{key:'finish',value:function finish(){this._onFinish();}/** | ||
*/ | ||
}, { | ||
key: 'finish', | ||
value: function finish() { | ||
this._onFinish(); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'destroy',value:function destroy(){if(!this._destroyed){this._destroyed=true;this.finish();this._onDestroyFns.forEach(function(fn){return fn();});this._onDestroyFns=[];}}/** | ||
*/ | ||
}, { | ||
key: 'destroy', | ||
value: function destroy() { | ||
if (!this._destroyed) { | ||
this._destroyed = true; | ||
this.finish(); | ||
this._onDestroyFns.forEach(function (fn) { | ||
return fn(); | ||
}); | ||
this._onDestroyFns = []; | ||
} | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'reset',value:function reset(){}/** | ||
*/ | ||
}, { | ||
key: 'reset', | ||
value: function reset() {} | ||
/** | ||
* @param {?} p | ||
* @return {?} | ||
*/},{key:'setPosition',value:function setPosition(p){}/** | ||
*/ | ||
}, { | ||
key: 'setPosition', | ||
value: function setPosition(p) {} | ||
/** | ||
* @return {?} | ||
*/},{key:'getPosition',value:function getPosition(){return 0;}}]);return NoopAnimationPlayer;}();var AnimationGroupPlayer=function(){/** | ||
* @param {?} _players | ||
*/function AnimationGroupPlayer(_players){var _this2=this;_classCallCheck(this,AnimationGroupPlayer);this._players=_players;this._onDoneFns=[];this._onStartFns=[];this._finished=false;this._started=false;this._destroyed=false;this._onDestroyFns=[];this.parentPlayer=null;var count=0;var total=this._players.length;if(total==0){scheduleMicroTask(function(){return _this2._onFinish();});}else{this._players.forEach(function(player){player.parentPlayer=_this2;player.onDone(function(){if(++count>=total){_this2._onFinish();}});});}}/** | ||
*/ | ||
}, { | ||
key: 'getPosition', | ||
value: function getPosition() { | ||
return 0; | ||
} | ||
}]); | ||
return NoopAnimationPlayer; | ||
}(); | ||
var AnimationGroupPlayer = function () { | ||
/** | ||
* @param {?} _players | ||
*/ | ||
function AnimationGroupPlayer(_players) { | ||
var _this2 = this; | ||
_classCallCheck(this, AnimationGroupPlayer); | ||
this._players = _players; | ||
this._onDoneFns = []; | ||
this._onStartFns = []; | ||
this._finished = false; | ||
this._started = false; | ||
this._destroyed = false; | ||
this._onDestroyFns = []; | ||
this.parentPlayer = null; | ||
var count = 0; | ||
var total = this._players.length; | ||
if (total == 0) { | ||
scheduleMicroTask(function () { | ||
return _this2._onFinish(); | ||
}); | ||
} else { | ||
this._players.forEach(function (player) { | ||
player.parentPlayer = _this2; | ||
player.onDone(function () { | ||
if (++count >= total) { | ||
_this2._onFinish(); | ||
} | ||
}); | ||
}); | ||
} | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
_createClass(AnimationGroupPlayer, [{ | ||
key: '_onFinish', | ||
value: function _onFinish() { | ||
if (!this._finished) { | ||
this._finished = true; | ||
this._onDoneFns.forEach(function (fn) { | ||
return fn(); | ||
}); | ||
this._onDoneFns = []; | ||
} | ||
} | ||
/** | ||
* @return {?} | ||
*/_createClass(AnimationGroupPlayer,[{key:'_onFinish',value:function _onFinish(){if(!this._finished){this._finished=true;this._onDoneFns.forEach(function(fn){return fn();});this._onDoneFns=[];}}/** | ||
* @return {?} | ||
*/},{key:'init',value:function init(){this._players.forEach(function(player){return player.init();});}/** | ||
*/ | ||
}, { | ||
key: 'init', | ||
value: function init() { | ||
this._players.forEach(function (player) { | ||
return player.init(); | ||
}); | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onStart',value:function onStart(fn){this._onStartFns.push(fn);}/** | ||
*/ | ||
}, { | ||
key: 'onStart', | ||
value: function onStart(fn) { | ||
this._onStartFns.push(fn); | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onDone',value:function onDone(fn){this._onDoneFns.push(fn);}/** | ||
*/ | ||
}, { | ||
key: 'onDone', | ||
value: function onDone(fn) { | ||
this._onDoneFns.push(fn); | ||
} | ||
/** | ||
* @param {?} fn | ||
* @return {?} | ||
*/},{key:'onDestroy',value:function onDestroy(fn){this._onDestroyFns.push(fn);}/** | ||
*/ | ||
}, { | ||
key: 'onDestroy', | ||
value: function onDestroy(fn) { | ||
this._onDestroyFns.push(fn); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'hasStarted',value:function hasStarted(){return this._started;}/** | ||
*/ | ||
}, { | ||
key: 'hasStarted', | ||
value: function hasStarted() { | ||
return this._started; | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'play',value:function play(){if(!this.parentPlayer){this.init();}if(!this.hasStarted()){this._onStartFns.forEach(function(fn){return fn();});this._onStartFns=[];this._started=true;}this._players.forEach(function(player){return player.play();});}/** | ||
*/ | ||
}, { | ||
key: 'play', | ||
value: function play() { | ||
if (!this.parentPlayer) { | ||
this.init(); | ||
} | ||
if (!this.hasStarted()) { | ||
this._onStartFns.forEach(function (fn) { | ||
return fn(); | ||
}); | ||
this._onStartFns = []; | ||
this._started = true; | ||
} | ||
this._players.forEach(function (player) { | ||
return player.play(); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'pause',value:function pause(){this._players.forEach(function(player){return player.pause();});}/** | ||
*/ | ||
}, { | ||
key: 'pause', | ||
value: function pause() { | ||
this._players.forEach(function (player) { | ||
return player.pause(); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'restart',value:function restart(){this._players.forEach(function(player){return player.restart();});}/** | ||
*/ | ||
}, { | ||
key: 'restart', | ||
value: function restart() { | ||
this._players.forEach(function (player) { | ||
return player.restart(); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'finish',value:function finish(){this._onFinish();this._players.forEach(function(player){return player.finish();});}/** | ||
*/ | ||
}, { | ||
key: 'finish', | ||
value: function finish() { | ||
this._onFinish(); | ||
this._players.forEach(function (player) { | ||
return player.finish(); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'destroy',value:function destroy(){if(!this._destroyed){this._onFinish();this._players.forEach(function(player){return player.destroy();});this._destroyed=true;this._onDestroyFns.forEach(function(fn){return fn();});this._onDestroyFns=[];}}/** | ||
*/ | ||
}, { | ||
key: 'destroy', | ||
value: function destroy() { | ||
if (!this._destroyed) { | ||
this._onFinish(); | ||
this._players.forEach(function (player) { | ||
return player.destroy(); | ||
}); | ||
this._destroyed = true; | ||
this._onDestroyFns.forEach(function (fn) { | ||
return fn(); | ||
}); | ||
this._onDestroyFns = []; | ||
} | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'reset',value:function reset(){this._players.forEach(function(player){return player.reset();});this._destroyed=false;this._finished=false;this._started=false;}/** | ||
*/ | ||
}, { | ||
key: 'reset', | ||
value: function reset() { | ||
this._players.forEach(function (player) { | ||
return player.reset(); | ||
}); | ||
this._destroyed = false; | ||
this._finished = false; | ||
this._started = false; | ||
} | ||
/** | ||
* @param {?} p | ||
* @return {?} | ||
*/},{key:'setPosition',value:function setPosition(p){this._players.forEach(function(player){player.setPosition(p);});}/** | ||
*/ | ||
}, { | ||
key: 'setPosition', | ||
value: function setPosition(p) { | ||
this._players.forEach(function (player) { | ||
player.setPosition(p); | ||
}); | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'getPosition',value:function getPosition(){var/** @type {?} */min=0;this._players.forEach(function(player){var/** @type {?} */p=player.getPosition();min=Math.min(p,min);});return min;}/** | ||
*/ | ||
}, { | ||
key: 'getPosition', | ||
value: function getPosition() { | ||
var /** @type {?} */min = 0; | ||
this._players.forEach(function (player) { | ||
var /** @type {?} */p = player.getPosition(); | ||
min = Math.min(p, min); | ||
}); | ||
return min; | ||
} | ||
/** | ||
* @return {?} | ||
*/},{key:'players',get:function get(){return this._players;}}]);return AnimationGroupPlayer;}();export{AUTO_STYLE,animate,group,keyframes,sequence,state,style,transition,trigger,AnimationPlayer,NoopAnimationPlayer,AnimationGroupPlayer as ɵAnimationGroupPlayer}; | ||
*/ | ||
}, { | ||
key: 'players', | ||
get: function get() { | ||
return this._players; | ||
} | ||
}]); | ||
return AnimationGroupPlayer; | ||
}(); | ||
export { AUTO_STYLE, animate, group, keyframes, sequence, state, style, transition, trigger, AnimationPlayer, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer }; |
/** | ||
* @license Angular v4.0.0-rc.1 | ||
* @license Angular v4.0.0-rc.2 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -238,27 +238,5 @@ * License: MIT | ||
function style(tokens) { | ||
let /** @type {?} */ input; | ||
let /** @type {?} */ offset = null; | ||
if (Array.isArray(tokens)) { | ||
input = (tokens); | ||
} | ||
else { | ||
input = [/** @type {?} */ (tokens)]; | ||
} | ||
input.forEach(entry => { | ||
const /** @type {?} */ entryOffset = ((entry))['offset']; | ||
if (entryOffset != null) { | ||
offset = offset == null ? parseFloat(/** @type {?} */ (entryOffset)) : offset; | ||
} | ||
}); | ||
return _style(offset, input); | ||
return { type: 6 /* Style */, styles: tokens }; | ||
} | ||
/** | ||
* @param {?} offset | ||
* @param {?} styles | ||
* @return {?} | ||
*/ | ||
function _style(offset, styles) { | ||
return { type: 6 /* Style */, styles: styles, offset: offset }; | ||
} | ||
/** | ||
* `state` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -478,7 +456,3 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
function transition(stateChangeExpr, steps) { | ||
return { | ||
type: 1 /* Transition */, | ||
expr: stateChangeExpr, | ||
animation: Array.isArray(steps) ? sequence(steps) : (steps) | ||
}; | ||
return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps }; | ||
} | ||
@@ -485,0 +459,0 @@ |
@@ -46,3 +46,3 @@ (function (global, factory) { | ||
/** | ||
* @license Angular v4.0.0-rc.1 | ||
* @license Angular v4.0.0-rc.2 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -285,26 +285,5 @@ * License: MIT | ||
function style(tokens) { | ||
var /** @type {?} */input = void 0; | ||
var /** @type {?} */offset = null; | ||
if (Array.isArray(tokens)) { | ||
input = tokens; | ||
} else { | ||
input = [/** @type {?} */tokens]; | ||
} | ||
input.forEach(function (entry) { | ||
var /** @type {?} */entryOffset = entry['offset']; | ||
if (entryOffset != null) { | ||
offset = offset == null ? parseFloat( /** @type {?} */entryOffset) : offset; | ||
} | ||
}); | ||
return _style(offset, input); | ||
return { type: 6 /* Style */, styles: tokens }; | ||
} | ||
/** | ||
* @param {?} offset | ||
* @param {?} styles | ||
* @return {?} | ||
*/ | ||
function _style(offset, styles) { | ||
return { type: 6 /* Style */, styles: styles, offset: offset }; | ||
} | ||
/** | ||
* `state` is an animation-specific function that is designed to be used inside of Angular2's | ||
@@ -524,7 +503,3 @@ * animation DSL language. If this information is new, please navigate to the {\@link | ||
function transition(stateChangeExpr, steps) { | ||
return { | ||
type: 1 /* Transition */ | ||
, expr: stateChangeExpr, | ||
animation: Array.isArray(steps) ? sequence(steps) : steps | ||
}; | ||
return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps }; | ||
} | ||
@@ -531,0 +506,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(global,factory){if("function"==typeof define&&define.amd)define("@angular/animations",["exports"],factory);else if("undefined"!=typeof exports)factory(exports);else{var mod={exports:{}};factory(mod.exports),global.ng=global.ng||{},global.ng.animations=mod.exports}}(this,function(exports){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function trigger(a,b){return{name:a,definitions:b}}function animate(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:b,timings:a}}function group(a){return{type:3,steps:a}}function sequence(a){return{type:2,steps:a}}function style(a){var b=void 0,c=null;return b=Array.isArray(a)?a:[a],b.forEach(function(d){var e=d.offset;null!=e&&(c=null==c?parseFloat(e):c)}),_style(c,b)}function _style(a,b){return{type:6,styles:b,offset:a}}function state(a,b){return{type:0,name:a,styles:b}}function keyframes(a){return{type:5,steps:a}}function transition(a,b){return{type:1,expr:a,animation:Array.isArray(b)?sequence(b):b}}function scheduleMicroTask(a){Promise.resolve(null).then(a)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),AUTO_STYLE="*",AnimationPlayer=function(){function AnimationPlayer(){_classCallCheck(this,AnimationPlayer)}return _createClass(AnimationPlayer,[{key:"onDone",value:function(){}},{key:"onStart",value:function(){}},{key:"onDestroy",value:function(){}},{key:"init",value:function(){}},{key:"hasStarted",value:function(){}},{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){}},{key:"destroy",value:function(){}},{key:"reset",value:function(){}},{key:"setPosition",value:function(){}},{key:"getPosition",value:function(){}},{key:"parentPlayer",get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(a){throw new Error("NOT IMPLEMENTED: Base Class")}}]),AnimationPlayer}(),NoopAnimationPlayer=function(){function NoopAnimationPlayer(){var _this=this;_classCallCheck(this,NoopAnimationPlayer),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,scheduleMicroTask(function(){return _this._onFinish()})}return _createClass(NoopAnimationPlayer,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])}},{key:"onStart",value:function(a){this._onStartFns.push(a)}},{key:"onDone",value:function(a){this._onDoneFns.push(a)}},{key:"onDestroy",value:function(a){this._onDestroyFns.push(a)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[]),this._started=!0}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(){}},{key:"getPosition",value:function(){return 0}}]),NoopAnimationPlayer}(),AnimationGroupPlayer=function(){function AnimationGroupPlayer(a){var _this2=this;_classCallCheck(this,AnimationGroupPlayer),this._players=a,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null;var b=0,c=this._players.length;0==c?scheduleMicroTask(function(){return _this2._onFinish()}):this._players.forEach(function(d){d.parentPlayer=_this2,d.onDone(function(){++b>=c&&_this2._onFinish()})})}return _createClass(AnimationGroupPlayer,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])}},{key:"init",value:function(){this._players.forEach(function(a){return a.init()})}},{key:"onStart",value:function(a){this._onStartFns.push(a)}},{key:"onDone",value:function(a){this._onDoneFns.push(a)}},{key:"onDestroy",value:function(a){this._onDestroyFns.push(a)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(a){return a.play()})}},{key:"pause",value:function(){this._players.forEach(function(a){return a.pause()})}},{key:"restart",value:function(){this._players.forEach(function(a){return a.restart()})}},{key:"finish",value:function(){this._onFinish(),this._players.forEach(function(a){return a.finish()})}},{key:"destroy",value:function(){this._destroyed||(this._onFinish(),this._players.forEach(function(a){return a.destroy()}),this._destroyed=!0,this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._players.forEach(function(a){return a.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(a){this._players.forEach(function(b){b.setPosition(a)})}},{key:"getPosition",value:function(){var a=0;return this._players.forEach(function(b){var c=b.getPosition();a=Math.min(c,a)}),a}},{key:"players",get:function(){return this._players}}]),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}); | ||
!function(global,factory){if("function"==typeof define&&define.amd)define("@angular/animations",["exports"],factory);else if("undefined"!=typeof exports)factory(exports);else{var mod={exports:{}};factory(mod.exports),global.ng=global.ng||{},global.ng.animations=mod.exports}}(this,function(exports){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function trigger(a,b){return{name:a,definitions:b}}function animate(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:b,timings:a}}function group(a){return{type:3,steps:a}}function sequence(a){return{type:2,steps:a}}function style(a){return{type:6,styles:a}}function state(a,b){return{type:0,name:a,styles:b}}function keyframes(a){return{type:5,steps:a}}function transition(a,b){return{type:1,expr:a,animation:b}}function scheduleMicroTask(a){Promise.resolve(null).then(a)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),AUTO_STYLE="*",AnimationPlayer=function(){function AnimationPlayer(){_classCallCheck(this,AnimationPlayer)}return _createClass(AnimationPlayer,[{key:"onDone",value:function(){}},{key:"onStart",value:function(){}},{key:"onDestroy",value:function(){}},{key:"init",value:function(){}},{key:"hasStarted",value:function(){}},{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){}},{key:"destroy",value:function(){}},{key:"reset",value:function(){}},{key:"setPosition",value:function(){}},{key:"getPosition",value:function(){}},{key:"parentPlayer",get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(a){throw new Error("NOT IMPLEMENTED: Base Class")}}]),AnimationPlayer}(),NoopAnimationPlayer=function(){function NoopAnimationPlayer(){var _this=this;_classCallCheck(this,NoopAnimationPlayer),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,scheduleMicroTask(function(){return _this._onFinish()})}return _createClass(NoopAnimationPlayer,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])}},{key:"onStart",value:function(a){this._onStartFns.push(a)}},{key:"onDone",value:function(a){this._onDoneFns.push(a)}},{key:"onDestroy",value:function(a){this._onDestroyFns.push(a)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[]),this._started=!0}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(){}},{key:"getPosition",value:function(){return 0}}]),NoopAnimationPlayer}(),AnimationGroupPlayer=function(){function AnimationGroupPlayer(a){var _this2=this;_classCallCheck(this,AnimationGroupPlayer),this._players=a,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null;var b=0,c=this._players.length;0==c?scheduleMicroTask(function(){return _this2._onFinish()}):this._players.forEach(function(d){d.parentPlayer=_this2,d.onDone(function(){++b>=c&&_this2._onFinish()})})}return _createClass(AnimationGroupPlayer,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])}},{key:"init",value:function(){this._players.forEach(function(a){return a.init()})}},{key:"onStart",value:function(a){this._onStartFns.push(a)}},{key:"onDone",value:function(a){this._onDoneFns.push(a)}},{key:"onDestroy",value:function(a){this._onDestroyFns.push(a)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(a){return a.play()})}},{key:"pause",value:function(){this._players.forEach(function(a){return a.pause()})}},{key:"restart",value:function(){this._players.forEach(function(a){return a.restart()})}},{key:"finish",value:function(){this._onFinish(),this._players.forEach(function(a){return a.finish()})}},{key:"destroy",value:function(){this._destroyed||(this._onFinish(),this._players.forEach(function(a){return a.destroy()}),this._destroyed=!0,this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._players.forEach(function(a){return a.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(a){this._players.forEach(function(b){b.setPosition(a)})}},{key:"getPosition",value:function(){var a=0;return this._players.forEach(function(b){var c=b.getPosition();a=Math.min(c,a)}),a}},{key:"players",get:function(){return this._players}}]),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}); |
{ | ||
"name": "@angular/animations", | ||
"version": "4.0.0-rc.1", | ||
"version": "4.0.0-rc.2", | ||
"description": "Angular - animations integration with web-animationss", | ||
@@ -12,3 +12,3 @@ "main": "./bundles/animations.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "4.0.0-rc.1" | ||
"@angular/core": "4.0.0-rc.2" | ||
}, | ||
@@ -15,0 +15,0 @@ "repository": { |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"AUTO_STYLE":"*","AnimationMetadataType":{"State":0,"Transition":1,"Sequence":2,"Group":3,"Animate":4,"KeyframeSequence":5,"Style":6},"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"}}},"group":{"__symbolic":"function","parameters":["steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Group"},"steps":{"__symbolic":"reference","name":"steps"}}},"keyframes":{"__symbolic":"function","parameters":["steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"KeyframeSequence"},"steps":{"__symbolic":"reference","name":"steps"}}},"sequence":{"__symbolic":"function","parameters":["steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Sequence"},"steps":{"__symbolic":"reference","name":"steps"}}},"state":{"__symbolic":"function","parameters":["name","styles"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"State"},"name":{"__symbolic":"reference","name":"name"},"styles":{"__symbolic":"reference","name":"styles"}}},"style":{"__symbolic":"function"},"transition":{"__symbolic":"function","parameters":["stateChangeExpr","steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Transition"},"expr":{"__symbolic":"reference","name":"stateChangeExpr"},"animation":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"steps"}]},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"sequence"},"arguments":[{"__symbolic":"reference","name":"steps"}]},"elseExpression":{"__symbolic":"reference","name":"steps"}}}},"trigger":{"__symbolic":"function","parameters":["name","definitions"],"value":{"name":{"__symbolic":"reference","name":"name"},"definitions":{"__symbolic":"reference","name":"definitions"}}},"AnimationPlayer":{"__symbolic":"class","members":{"onDone":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}]}},"NoopAnimationPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"_onFinish":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}]}},"ɵ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"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}]}}},"importAs":"@angular/animations"} | ||
{"__symbolic":"module","version":3,"metadata":{"AUTO_STYLE":"*","AnimationMetadataType":{"State":0,"Transition":1,"Sequence":2,"Group":3,"Animate":4,"KeyframeSequence":5,"Style":6},"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"}}},"group":{"__symbolic":"function","parameters":["steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Group"},"steps":{"__symbolic":"reference","name":"steps"}}},"keyframes":{"__symbolic":"function","parameters":["steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"KeyframeSequence"},"steps":{"__symbolic":"reference","name":"steps"}}},"sequence":{"__symbolic":"function","parameters":["steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Sequence"},"steps":{"__symbolic":"reference","name":"steps"}}},"state":{"__symbolic":"function","parameters":["name","styles"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"State"},"name":{"__symbolic":"reference","name":"name"},"styles":{"__symbolic":"reference","name":"styles"}}},"style":{"__symbolic":"function","parameters":["tokens"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Style"},"styles":{"__symbolic":"reference","name":"tokens"}}},"transition":{"__symbolic":"function","parameters":["stateChangeExpr","steps"],"value":{"type":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"AnimationMetadataType"},"member":"Transition"},"expr":{"__symbolic":"reference","name":"stateChangeExpr"},"animation":{"__symbolic":"reference","name":"steps"}}},"trigger":{"__symbolic":"function","parameters":["name","definitions"],"value":{"name":{"__symbolic":"reference","name":"name"},"definitions":{"__symbolic":"reference","name":"definitions"}}},"AnimationPlayer":{"__symbolic":"class","members":{"onDone":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}]}},"NoopAnimationPlayer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"_onFinish":[{"__symbolic":"method"}],"onStart":[{"__symbolic":"method"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}]}},"ɵ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"}],"onDone":[{"__symbolic":"method"}],"onDestroy":[{"__symbolic":"method"}],"hasStarted":[{"__symbolic":"method"}],"play":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setPosition":[{"__symbolic":"method"}],"getPosition":[{"__symbolic":"method"}]}}},"importAs":"@angular/animations"} |
@@ -66,3 +66,3 @@ /** | ||
expr: string | ((fromState: string, toState: string) => boolean); | ||
animation: AnimationMetadata; | ||
animation: AnimationMetadata | AnimationMetadata[]; | ||
} | ||
@@ -87,4 +87,6 @@ /** | ||
[key: string]: string | number; | ||
} | { | ||
[key: string]: string | number; | ||
}[]; | ||
offset: number; | ||
offset?: number; | ||
} | ||
@@ -91,0 +93,0 @@ /** |
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
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
121691
3273
16