@angular/animations
Advanced tools
Comparing version 5.0.0-beta.6 to 5.0.0-beta.7
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
@@ -80,3 +80,3 @@ /** | ||
private _currentEmptyStepKeyframe; | ||
constructor(_driver: AnimationDriver, element: any, startTime: number, _elementTimelineStylesLookup?: Map<any, ɵStyleData>); | ||
constructor(_driver: AnimationDriver, element: any, startTime: number, _elementTimelineStylesLookup?: Map<any, ɵStyleData> | undefined); | ||
containsAnimation(): boolean; | ||
@@ -83,0 +83,0 @@ getCurrentStyleProperties(): string[]; |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -39,3 +39,3 @@ * License: MIT | ||
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -116,3 +116,3 @@ * License: MIT | ||
// this is well supported in all browsers | ||
_contains = function (elm1, elm2) { return (elm1.contains(elm2)); }; | ||
_contains = function (elm1, elm2) { return /** @type {?} */ (elm1.contains(elm2)); }; | ||
if (Element.prototype.matches) { | ||
@@ -122,3 +122,3 @@ _matches = function (element, selector) { return element.matches(selector); }; | ||
else { | ||
var /** @type {?} */ proto = (Element.prototype); | ||
var /** @type {?} */ proto = /** @type {?} */ (Element.prototype); | ||
var /** @type {?} */ fn_1 = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || | ||
@@ -153,3 +153,3 @@ proto.oMatchesSelector || proto.webkitMatchesSelector; | ||
} | ||
return ((_CACHED_BODY)).style ? prop in ((_CACHED_BODY)).style : true; | ||
return /** @type {?} */ ((_CACHED_BODY)).style ? prop in /** @type {?} */ ((_CACHED_BODY)).style : true; | ||
} | ||
@@ -303,3 +303,7 @@ /** | ||
*/ | ||
MockAnimationDriver.prototype.validateStyleProperty = function (prop) { return validateStyleProperty(prop); }; | ||
MockAnimationDriver.prototype.validateStyleProperty = /** | ||
* @param {?} prop | ||
* @return {?} | ||
*/ | ||
function (prop) { return validateStyleProperty(prop); }; | ||
/** | ||
@@ -310,3 +314,8 @@ * @param {?} element | ||
*/ | ||
MockAnimationDriver.prototype.matchesElement = function (element, selector) { | ||
MockAnimationDriver.prototype.matchesElement = /** | ||
* @param {?} element | ||
* @param {?} selector | ||
* @return {?} | ||
*/ | ||
function (element, selector) { | ||
return matchesElement(element, selector); | ||
@@ -319,3 +328,8 @@ }; | ||
*/ | ||
MockAnimationDriver.prototype.containsElement = function (elm1, elm2) { return containsElement(elm1, elm2); }; | ||
MockAnimationDriver.prototype.containsElement = /** | ||
* @param {?} elm1 | ||
* @param {?} elm2 | ||
* @return {?} | ||
*/ | ||
function (elm1, elm2) { return containsElement(elm1, elm2); }; | ||
/** | ||
@@ -327,3 +341,9 @@ * @param {?} element | ||
*/ | ||
MockAnimationDriver.prototype.query = function (element, selector, multi) { | ||
MockAnimationDriver.prototype.query = /** | ||
* @param {?} element | ||
* @param {?} selector | ||
* @param {?} multi | ||
* @return {?} | ||
*/ | ||
function (element, selector, multi) { | ||
return invokeQuery(element, selector, multi); | ||
@@ -337,3 +357,9 @@ }; | ||
*/ | ||
MockAnimationDriver.prototype.computeStyle = function (element, prop, defaultValue) { | ||
MockAnimationDriver.prototype.computeStyle = /** | ||
* @param {?} element | ||
* @param {?} prop | ||
* @param {?=} defaultValue | ||
* @return {?} | ||
*/ | ||
function (element, prop, defaultValue) { | ||
return defaultValue || ''; | ||
@@ -350,3 +376,12 @@ }; | ||
*/ | ||
MockAnimationDriver.prototype.animate = function (element, keyframes, duration, delay, easing, previousPlayers) { | ||
MockAnimationDriver.prototype.animate = /** | ||
* @param {?} element | ||
* @param {?} keyframes | ||
* @param {?} duration | ||
* @param {?} delay | ||
* @param {?} easing | ||
* @param {?=} previousPlayers | ||
* @return {?} | ||
*/ | ||
function (element, keyframes, duration, delay, easing, previousPlayers) { | ||
if (previousPlayers === void 0) { previousPlayers = []; } | ||
@@ -357,5 +392,5 @@ var /** @type {?} */ player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers); | ||
}; | ||
MockAnimationDriver.log = []; | ||
return MockAnimationDriver; | ||
}()); | ||
MockAnimationDriver.log = []; | ||
/** | ||
@@ -366,10 +401,2 @@ * \@experimental Animation support is experimental. | ||
__extends(MockAnimationPlayer, _super); | ||
/** | ||
* @param {?} element | ||
* @param {?} keyframes | ||
* @param {?} duration | ||
* @param {?} delay | ||
* @param {?} easing | ||
* @param {?} previousPlayers | ||
*/ | ||
function MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers) { | ||
@@ -399,2 +426,3 @@ var _this = _super.call(this) || this; | ||
} | ||
/* @internal */ | ||
/** | ||
@@ -404,7 +432,15 @@ * @param {?} fn | ||
*/ | ||
MockAnimationPlayer.prototype.onInit = function (fn) { this._onInitFns.push(fn); }; | ||
MockAnimationPlayer.prototype.onInit = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onInitFns.push(fn); }; | ||
/* @internal */ | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.init = function () { | ||
MockAnimationPlayer.prototype.init = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.init.call(this); | ||
@@ -417,3 +453,6 @@ this._onInitFns.forEach(function (fn) { return fn(); }); | ||
*/ | ||
MockAnimationPlayer.prototype.finish = function () { | ||
MockAnimationPlayer.prototype.finish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.finish.call(this); | ||
@@ -425,14 +464,24 @@ this.__finished = true; | ||
*/ | ||
MockAnimationPlayer.prototype.destroy = function () { | ||
MockAnimationPlayer.prototype.destroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.destroy.call(this); | ||
this.__finished = true; | ||
}; | ||
/* @internal */ | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.triggerMicrotask = function () { }; | ||
MockAnimationPlayer.prototype.triggerMicrotask = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.play = function () { | ||
MockAnimationPlayer.prototype.play = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.play.call(this); | ||
@@ -444,7 +493,13 @@ this.__started = true; | ||
*/ | ||
MockAnimationPlayer.prototype.hasStarted = function () { return this.__started; }; | ||
MockAnimationPlayer.prototype.hasStarted = /** | ||
* @return {?} | ||
*/ | ||
function () { return this.__started; }; | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.beforeDestroy = function () { | ||
MockAnimationPlayer.prototype.beforeDestroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
var _this = this; | ||
@@ -451,0 +506,0 @@ var /** @type {?} */ captures = {}; |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -13,3 +13,3 @@ * License: MIT | ||
*/ | ||
function allowPreviousPlayerStylesMerge(duration,delay){return 0===duration||0===delay}var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},_contains=function(elm1,elm2){return!1},_matches=function(element,selector){return!1},_query=function(element,selector,multi){return[]};if("undefined"!=typeof Element){if(_contains=function(elm1,elm2){return elm1.contains(elm2)},Element.prototype.matches)_matches=function(element,selector){return element.matches(selector)};else{var proto=Element.prototype,fn_1=proto.matchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector||proto.webkitMatchesSelector;fn_1&&(_matches=function(element,selector){return fn_1.apply(element,[selector])})}_query=function(element,selector,multi){var results=[];if(multi)results.push.apply(results,element.querySelectorAll(selector));else{var elm=element.querySelector(selector);elm&&results.push(elm)}return results}}var _CACHED_BODY=null,matchesElement=_matches,containsElement=_contains,invokeQuery=_query,MockAnimationDriver=function(){function MockAnimationDriver(){}return MockAnimationDriver.prototype.validateStyleProperty=function(prop){return validateStyleProperty(prop)},MockAnimationDriver.prototype.matchesElement=function(element,selector){return matchesElement(element,selector)},MockAnimationDriver.prototype.containsElement=function(elm1,elm2){return containsElement(elm1,elm2)},MockAnimationDriver.prototype.query=function(element,selector,multi){return invokeQuery(element,selector,multi)},MockAnimationDriver.prototype.computeStyle=function(element,prop,defaultValue){return defaultValue||""},MockAnimationDriver.prototype.animate=function(element,keyframes,duration,delay,easing,previousPlayers){void 0===previousPlayers&&(previousPlayers=[]);var player=new MockAnimationPlayer(element,keyframes,duration,delay,easing,previousPlayers);return MockAnimationDriver.log.push(player),player},MockAnimationDriver}();MockAnimationDriver.log=[];var MockAnimationPlayer=function(_super){function MockAnimationPlayer(element,keyframes,duration,delay,easing,previousPlayers){var _this=_super.call(this)||this;return _this.element=element,_this.keyframes=keyframes,_this.duration=duration,_this.delay=delay,_this.easing=easing,_this.previousPlayers=previousPlayers,_this.__finished=!1,_this.__started=!1,_this.previousStyles={},_this._onInitFns=[],_this.currentSnapshot={},allowPreviousPlayerStylesMerge(duration,delay)&&previousPlayers.forEach(function(player){if(player instanceof MockAnimationPlayer){var styles_1=player.currentSnapshot;Object.keys(styles_1).forEach(function(prop){return _this.previousStyles[prop]=styles_1[prop]})}}),_this.totalTime=delay+duration,_this}return __extends(MockAnimationPlayer,_super),MockAnimationPlayer.prototype.onInit=function(fn){this._onInitFns.push(fn)},MockAnimationPlayer.prototype.init=function(){_super.prototype.init.call(this),this._onInitFns.forEach(function(fn){return fn()}),this._onInitFns=[]},MockAnimationPlayer.prototype.finish=function(){_super.prototype.finish.call(this),this.__finished=!0},MockAnimationPlayer.prototype.destroy=function(){_super.prototype.destroy.call(this),this.__finished=!0},MockAnimationPlayer.prototype.triggerMicrotask=function(){},MockAnimationPlayer.prototype.play=function(){_super.prototype.play.call(this),this.__started=!0},MockAnimationPlayer.prototype.hasStarted=function(){return this.__started},MockAnimationPlayer.prototype.beforeDestroy=function(){var _this=this,captures={};Object.keys(this.previousStyles).forEach(function(prop){captures[prop]=_this.previousStyles[prop]}),this.hasStarted()&&this.keyframes.forEach(function(kf){Object.keys(kf).forEach(function(prop){"offset"!=prop&&(captures[prop]=_this.__finished?kf[prop]:_angular_animations.AUTO_STYLE)})}),this.currentSnapshot=captures},MockAnimationPlayer}(_angular_animations.NoopAnimationPlayer);exports.MockAnimationDriver=MockAnimationDriver,exports.MockAnimationPlayer=MockAnimationPlayer,Object.defineProperty(exports,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=/Users/misko/work/angular/dist/packages-dist/animations/bundles/animations-browser-testing.umd.min.js.map | ||
function allowPreviousPlayerStylesMerge(duration,delay){return 0===duration||0===delay}var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},_contains=function(elm1,elm2){return!1},_matches=function(element,selector){return!1},_query=function(element,selector,multi){return[]};if("undefined"!=typeof Element){if(_contains=function(elm1,elm2){return elm1.contains(elm2)},Element.prototype.matches)_matches=function(element,selector){return element.matches(selector)};else{var proto=Element.prototype,fn_1=proto.matchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector||proto.webkitMatchesSelector;fn_1&&(_matches=function(element,selector){return fn_1.apply(element,[selector])})}_query=function(element,selector,multi){var results=[];if(multi)results.push.apply(results,element.querySelectorAll(selector));else{var elm=element.querySelector(selector);elm&&results.push(elm)}return results}}var _CACHED_BODY=null,matchesElement=_matches,containsElement=_contains,invokeQuery=_query,MockAnimationDriver=function(){function MockAnimationDriver(){}return MockAnimationDriver.prototype.validateStyleProperty=function(prop){return validateStyleProperty(prop)},MockAnimationDriver.prototype.matchesElement=function(element,selector){return matchesElement(element,selector)},MockAnimationDriver.prototype.containsElement=function(elm1,elm2){return containsElement(elm1,elm2)},MockAnimationDriver.prototype.query=function(element,selector,multi){return invokeQuery(element,selector,multi)},MockAnimationDriver.prototype.computeStyle=function(element,prop,defaultValue){return defaultValue||""},MockAnimationDriver.prototype.animate=function(element,keyframes,duration,delay,easing,previousPlayers){void 0===previousPlayers&&(previousPlayers=[]);var player=new MockAnimationPlayer(element,keyframes,duration,delay,easing,previousPlayers);return MockAnimationDriver.log.push(player),player},MockAnimationDriver.log=[],MockAnimationDriver}(),MockAnimationPlayer=function(_super){function MockAnimationPlayer(element,keyframes,duration,delay,easing,previousPlayers){var _this=_super.call(this)||this;return _this.element=element,_this.keyframes=keyframes,_this.duration=duration,_this.delay=delay,_this.easing=easing,_this.previousPlayers=previousPlayers,_this.__finished=!1,_this.__started=!1,_this.previousStyles={},_this._onInitFns=[],_this.currentSnapshot={},allowPreviousPlayerStylesMerge(duration,delay)&&previousPlayers.forEach(function(player){if(player instanceof MockAnimationPlayer){var styles_1=player.currentSnapshot;Object.keys(styles_1).forEach(function(prop){return _this.previousStyles[prop]=styles_1[prop]})}}),_this.totalTime=delay+duration,_this}return __extends(MockAnimationPlayer,_super),MockAnimationPlayer.prototype.onInit=function(fn){this._onInitFns.push(fn)},MockAnimationPlayer.prototype.init=function(){_super.prototype.init.call(this),this._onInitFns.forEach(function(fn){return fn()}),this._onInitFns=[]},MockAnimationPlayer.prototype.finish=function(){_super.prototype.finish.call(this),this.__finished=!0},MockAnimationPlayer.prototype.destroy=function(){_super.prototype.destroy.call(this),this.__finished=!0},MockAnimationPlayer.prototype.triggerMicrotask=function(){},MockAnimationPlayer.prototype.play=function(){_super.prototype.play.call(this),this.__started=!0},MockAnimationPlayer.prototype.hasStarted=function(){return this.__started},MockAnimationPlayer.prototype.beforeDestroy=function(){var _this=this,captures={};Object.keys(this.previousStyles).forEach(function(prop){captures[prop]=_this.previousStyles[prop]}),this.hasStarted()&&this.keyframes.forEach(function(kf){Object.keys(kf).forEach(function(prop){"offset"!=prop&&(captures[prop]=_this.__finished?kf[prop]:_angular_animations.AUTO_STYLE)})}),this.currentSnapshot=captures},MockAnimationPlayer}(_angular_animations.NoopAnimationPlayer);exports.MockAnimationDriver=MockAnimationDriver,exports.MockAnimationPlayer=MockAnimationPlayer,Object.defineProperty(exports,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=/Users/matsko/code/angular/dist/packages-dist/animations/bundles/animations-browser-testing.umd.min.js.map |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -13,3 +13,3 @@ * License: MIT | ||
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -85,43 +85,2 @@ * License: MIT | ||
/** | ||
* An instance of this class is returned as an event parameter when an animation | ||
* callback is captured for an animation either during the start or done phase. | ||
* | ||
* ```typescript | ||
* \@Component({ | ||
* host: { | ||
* '[\@myAnimationTrigger]': 'someExpression', | ||
* '(\@myAnimationTrigger.start)': 'captureStartEvent($event)', | ||
* '(\@myAnimationTrigger.done)': 'captureDoneEvent($event)', | ||
* }, | ||
* animations: [ | ||
* trigger("myAnimationTrigger", [ | ||
* // ... | ||
* ]) | ||
* ] | ||
* }) | ||
* class MyComponent { | ||
* someExpression: any = false; | ||
* captureStartEvent(event: AnimationEvent) { | ||
* // the toState, fromState and totalTime data is accessible from the event variable | ||
* } | ||
* | ||
* captureDoneEvent(event: AnimationEvent) { | ||
* // the toState, fromState and totalTime data is accessible from the event variable | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* \@experimental Animation support is experimental. | ||
* @record | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function AnimationEvent() { } | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ | ||
/** | ||
* @license | ||
@@ -134,23 +93,4 @@ * Copyright Google Inc. All Rights Reserved. | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function ɵStyleData() { } | ||
/** @enum {number} */ | ||
var 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, | ||
}; | ||
/** | ||
* \@experimental Animation support is experimental. | ||
@@ -163,3 +103,3 @@ */ | ||
*/ | ||
function AnimationMetadata() { } | ||
/** | ||
@@ -172,3 +112,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationTriggerMetadata() { } | ||
/** | ||
@@ -181,3 +121,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStateMetadata() { } | ||
/** | ||
@@ -190,3 +130,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationTransitionMetadata() { } | ||
/** | ||
@@ -196,3 +136,3 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
function AnimationReferenceMetadata() { } | ||
/** | ||
@@ -202,3 +142,3 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
function AnimationQueryMetadata() { } | ||
/** | ||
@@ -211,3 +151,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationKeyframesSequenceMetadata() { } | ||
/** | ||
@@ -220,3 +160,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStyleMetadata() { } | ||
/** | ||
@@ -229,3 +169,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateMetadata() { } | ||
/** | ||
@@ -238,3 +178,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateChildMetadata() { } | ||
/** | ||
@@ -247,3 +187,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateRefMetadata() { } | ||
/** | ||
@@ -256,3 +196,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationSequenceMetadata() { } | ||
/** | ||
@@ -265,3 +205,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationGroupMetadata() { } | ||
/** | ||
@@ -274,3 +214,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStaggerMetadata() { } | ||
/** | ||
@@ -389,3 +329,3 @@ * `trigger` is an animation-specific function that is designed to be used inside of Angular's | ||
function trigger(name, definitions) { | ||
return { type: AnimationMetadataType.Trigger, name: name, definitions: definitions, options: {} }; | ||
return { type: 7 /* Trigger */, name: name, definitions: definitions, options: {} }; | ||
} | ||
@@ -442,3 +382,3 @@ /** | ||
if (styles === void 0) { styles = null; } | ||
return { type: AnimationMetadataType.Animate, styles: styles, timings: timings }; | ||
return { type: 4 /* Animate */, styles: styles, timings: timings }; | ||
} | ||
@@ -481,3 +421,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Group, steps: steps, options: options }; | ||
return { type: 3 /* Group */, steps: steps, options: options }; | ||
} | ||
@@ -523,3 +463,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Sequence, steps: steps, options: options }; | ||
return { type: 2 /* Sequence */, steps: steps, options: options }; | ||
} | ||
@@ -571,3 +511,3 @@ /** | ||
function style(tokens) { | ||
return { type: AnimationMetadataType.Style, styles: tokens, offset: null }; | ||
return { type: 6 /* Style */, styles: tokens, offset: null }; | ||
} | ||
@@ -627,3 +567,3 @@ /** | ||
function state(name, styles, options) { | ||
return { type: AnimationMetadataType.State, name: name, styles: styles, options: options }; | ||
return { type: 0 /* State */, name: name, styles: styles, options: options }; | ||
} | ||
@@ -678,3 +618,3 @@ /** | ||
function keyframes(steps) { | ||
return { type: AnimationMetadataType.Keyframes, steps: steps }; | ||
return { type: 5 /* Keyframes */, steps: steps }; | ||
} | ||
@@ -870,3 +810,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options: options }; | ||
return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps, options: options }; | ||
} | ||
@@ -913,3 +853,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Reference, animation: steps, options: options }; | ||
return { type: 8 /* Reference */, animation: steps, options: options }; | ||
} | ||
@@ -1017,3 +957,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.AnimateChild, options: options }; | ||
return { type: 9 /* AnimateChild */, options: options }; | ||
} | ||
@@ -1032,3 +972,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.AnimateRef, animation: animation, options: options }; | ||
return { type: 10 /* AnimateRef */, animation: animation, options: options }; | ||
} | ||
@@ -1133,3 +1073,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Query, selector: selector, animation: animation, options: options }; | ||
return { type: 11 /* Query */, selector: selector, animation: animation, options: options }; | ||
} | ||
@@ -1218,3 +1158,3 @@ /** | ||
function stagger(timings, animation) { | ||
return { type: AnimationMetadataType.Stagger, timings: timings, animation: animation }; | ||
return { type: 12 /* Stagger */, timings: timings, animation: animation }; | ||
} | ||
@@ -1235,6 +1175,3 @@ | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function scheduleMicroTask(cb) { | ||
function scheduleMicroTask(cb) { | ||
Promise.resolve(null).then(cb); | ||
@@ -1262,3 +1199,3 @@ } | ||
*/ | ||
function AnimationPlayer() { } | ||
/** | ||
@@ -1281,3 +1218,6 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
NoopAnimationPlayer.prototype._onFinish = function () { | ||
NoopAnimationPlayer.prototype._onFinish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._finished) { | ||
@@ -1293,3 +1233,7 @@ this._finished = true; | ||
*/ | ||
NoopAnimationPlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); }; | ||
NoopAnimationPlayer.prototype.onStart = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onStartFns.push(fn); }; | ||
/** | ||
@@ -1299,3 +1243,7 @@ * @param {?} fn | ||
*/ | ||
NoopAnimationPlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); }; | ||
NoopAnimationPlayer.prototype.onDone = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDoneFns.push(fn); }; | ||
/** | ||
@@ -1305,15 +1253,28 @@ * @param {?} fn | ||
*/ | ||
NoopAnimationPlayer.prototype.onDestroy = function (fn) { this._onDestroyFns.push(fn); }; | ||
NoopAnimationPlayer.prototype.onDestroy = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDestroyFns.push(fn); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.hasStarted = function () { return this._started; }; | ||
NoopAnimationPlayer.prototype.hasStarted = /** | ||
* @return {?} | ||
*/ | ||
function () { return this._started; }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.init = function () { }; | ||
NoopAnimationPlayer.prototype.init = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.play = function () { | ||
NoopAnimationPlayer.prototype.play = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.hasStarted()) { | ||
@@ -1325,6 +1286,10 @@ this.triggerMicrotask(); | ||
}; | ||
/* @internal */ | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.triggerMicrotask = function () { | ||
NoopAnimationPlayer.prototype.triggerMicrotask = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
var _this = this; | ||
@@ -1336,3 +1301,6 @@ scheduleMicroTask(function () { return _this._onFinish(); }); | ||
*/ | ||
NoopAnimationPlayer.prototype._onStart = function () { | ||
NoopAnimationPlayer.prototype._onStart = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this._onStartFns.forEach(function (fn) { return fn(); }); | ||
@@ -1344,15 +1312,27 @@ this._onStartFns = []; | ||
*/ | ||
NoopAnimationPlayer.prototype.pause = function () { }; | ||
NoopAnimationPlayer.prototype.pause = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.restart = function () { }; | ||
NoopAnimationPlayer.prototype.restart = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.finish = function () { this._onFinish(); }; | ||
NoopAnimationPlayer.prototype.finish = /** | ||
* @return {?} | ||
*/ | ||
function () { this._onFinish(); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.destroy = function () { | ||
NoopAnimationPlayer.prototype.destroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._destroyed) { | ||
@@ -1371,3 +1351,6 @@ this._destroyed = true; | ||
*/ | ||
NoopAnimationPlayer.prototype.reset = function () { }; | ||
NoopAnimationPlayer.prototype.reset = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
@@ -1377,7 +1360,14 @@ * @param {?} p | ||
*/ | ||
NoopAnimationPlayer.prototype.setPosition = function (p) { }; | ||
NoopAnimationPlayer.prototype.setPosition = /** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
function (p) { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.getPosition = function () { return 0; }; | ||
NoopAnimationPlayer.prototype.getPosition = /** | ||
* @return {?} | ||
*/ | ||
function () { return 0; }; | ||
return NoopAnimationPlayer; | ||
@@ -1398,5 +1388,2 @@ }()); | ||
var AnimationGroupPlayer = (function () { | ||
/** | ||
* @param {?} _players | ||
*/ | ||
function AnimationGroupPlayer(_players) { | ||
@@ -1445,3 +1432,6 @@ var _this = this; | ||
*/ | ||
AnimationGroupPlayer.prototype._onFinish = function () { | ||
AnimationGroupPlayer.prototype._onFinish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._finished) { | ||
@@ -1456,3 +1446,6 @@ this._finished = true; | ||
*/ | ||
AnimationGroupPlayer.prototype.init = function () { this._players.forEach(function (player) { return player.init(); }); }; | ||
AnimationGroupPlayer.prototype.init = /** | ||
* @return {?} | ||
*/ | ||
function () { this._players.forEach(function (player) { return player.init(); }); }; | ||
/** | ||
@@ -1462,7 +1455,14 @@ * @param {?} fn | ||
*/ | ||
AnimationGroupPlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); }; | ||
AnimationGroupPlayer.prototype.onStart = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onStartFns.push(fn); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype._onStart = function () { | ||
AnimationGroupPlayer.prototype._onStart = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.hasStarted()) { | ||
@@ -1478,3 +1478,7 @@ this._onStartFns.forEach(function (fn) { return fn(); }); | ||
*/ | ||
AnimationGroupPlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); }; | ||
AnimationGroupPlayer.prototype.onDone = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDoneFns.push(fn); }; | ||
/** | ||
@@ -1484,11 +1488,21 @@ * @param {?} fn | ||
*/ | ||
AnimationGroupPlayer.prototype.onDestroy = function (fn) { this._onDestroyFns.push(fn); }; | ||
AnimationGroupPlayer.prototype.onDestroy = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDestroyFns.push(fn); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.hasStarted = function () { return this._started; }; | ||
AnimationGroupPlayer.prototype.hasStarted = /** | ||
* @return {?} | ||
*/ | ||
function () { return this._started; }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.play = function () { | ||
AnimationGroupPlayer.prototype.play = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.parentPlayer) { | ||
@@ -1503,11 +1517,20 @@ this.init(); | ||
*/ | ||
AnimationGroupPlayer.prototype.pause = function () { this._players.forEach(function (player) { return player.pause(); }); }; | ||
AnimationGroupPlayer.prototype.pause = /** | ||
* @return {?} | ||
*/ | ||
function () { this._players.forEach(function (player) { return player.pause(); }); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.restart = function () { this._players.forEach(function (player) { return player.restart(); }); }; | ||
AnimationGroupPlayer.prototype.restart = /** | ||
* @return {?} | ||
*/ | ||
function () { this._players.forEach(function (player) { return player.restart(); }); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.finish = function () { | ||
AnimationGroupPlayer.prototype.finish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this._onFinish(); | ||
@@ -1519,7 +1542,13 @@ this._players.forEach(function (player) { return player.finish(); }); | ||
*/ | ||
AnimationGroupPlayer.prototype.destroy = function () { this._onDestroy(); }; | ||
AnimationGroupPlayer.prototype.destroy = /** | ||
* @return {?} | ||
*/ | ||
function () { this._onDestroy(); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype._onDestroy = function () { | ||
AnimationGroupPlayer.prototype._onDestroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._destroyed) { | ||
@@ -1536,3 +1565,6 @@ this._destroyed = true; | ||
*/ | ||
AnimationGroupPlayer.prototype.reset = function () { | ||
AnimationGroupPlayer.prototype.reset = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this._players.forEach(function (player) { return player.reset(); }); | ||
@@ -1547,3 +1579,7 @@ this._destroyed = false; | ||
*/ | ||
AnimationGroupPlayer.prototype.setPosition = function (p) { | ||
AnimationGroupPlayer.prototype.setPosition = /** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
function (p) { | ||
var /** @type {?} */ timeAtPosition = p * this.totalTime; | ||
@@ -1558,3 +1594,6 @@ this._players.forEach(function (player) { | ||
*/ | ||
AnimationGroupPlayer.prototype.getPosition = function () { | ||
AnimationGroupPlayer.prototype.getPosition = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
var /** @type {?} */ min = 0; | ||
@@ -1568,6 +1607,6 @@ this._players.forEach(function (player) { | ||
Object.defineProperty(AnimationGroupPlayer.prototype, "players", { | ||
/** | ||
get: /** | ||
* @return {?} | ||
*/ | ||
get: function () { return this._players; }, | ||
function () { return this._players; }, | ||
enumerable: true, | ||
@@ -1579,3 +1618,6 @@ configurable: true | ||
*/ | ||
AnimationGroupPlayer.prototype.beforeDestroy = function () { | ||
AnimationGroupPlayer.prototype.beforeDestroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this.players.forEach(function (player) { | ||
@@ -1605,19 +1647,3 @@ if (player.beforeDestroy) { | ||
exports.AnimationFactory = AnimationFactory; | ||
exports.AnimationEvent = AnimationEvent; | ||
exports.AUTO_STYLE = AUTO_STYLE; | ||
exports.AnimationAnimateChildMetadata = AnimationAnimateChildMetadata; | ||
exports.AnimationAnimateMetadata = AnimationAnimateMetadata; | ||
exports.AnimationAnimateRefMetadata = AnimationAnimateRefMetadata; | ||
exports.AnimationGroupMetadata = AnimationGroupMetadata; | ||
exports.AnimationKeyframesSequenceMetadata = AnimationKeyframesSequenceMetadata; | ||
exports.AnimationMetadata = AnimationMetadata; | ||
exports.AnimationMetadataType = AnimationMetadataType; | ||
exports.AnimationQueryMetadata = AnimationQueryMetadata; | ||
exports.AnimationReferenceMetadata = AnimationReferenceMetadata; | ||
exports.AnimationSequenceMetadata = AnimationSequenceMetadata; | ||
exports.AnimationStaggerMetadata = AnimationStaggerMetadata; | ||
exports.AnimationStateMetadata = AnimationStateMetadata; | ||
exports.AnimationStyleMetadata = AnimationStyleMetadata; | ||
exports.AnimationTransitionMetadata = AnimationTransitionMetadata; | ||
exports.AnimationTriggerMetadata = AnimationTriggerMetadata; | ||
exports.animate = animate; | ||
@@ -1636,4 +1662,2 @@ exports.animateChild = animateChild; | ||
exports.useAnimation = useAnimation; | ||
exports.ɵStyleData = ɵStyleData; | ||
exports.AnimationPlayer = AnimationPlayer; | ||
exports.NoopAnimationPlayer = NoopAnimationPlayer; | ||
@@ -1640,0 +1664,0 @@ exports.ɵAnimationGroupPlayer = AnimationGroupPlayer; |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
* License: MIT | ||
*/ | ||
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory((global.ng=global.ng||{},global.ng.animations={}))}(this,function(exports){"use strict";function AnimationEvent(){}/** | ||
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory((global.ng=global.ng||{},global.ng.animations={}))}(this,function(exports){"use strict";function trigger(name,definitions){return{type:7,name:name,definitions:definitions,options:{}}}function animate(timings,styles){return void 0===styles&&(styles=null),{type:4,styles:styles,timings:timings}}function group(steps,options){return void 0===options&&(options=null),{type:3,steps:steps,options:options}}function sequence(steps,options){return void 0===options&&(options=null),{type:2,steps:steps,options:options}}function style(tokens){return{type:6,styles:tokens,offset:null}}function state(name,styles,options){return{type:0,name:name,styles:styles,options:options}}function keyframes(steps){return{type:5,steps:steps}}function transition(stateChangeExpr,steps,options){return void 0===options&&(options=null),{type:1,expr:stateChangeExpr,animation:steps,options:options}}function animation(steps,options){return void 0===options&&(options=null),{type:8,animation:steps,options:options}}function animateChild(options){return void 0===options&&(options=null),{type:9,options:options}}function useAnimation(animation,options){return void 0===options&&(options=null),{type:10,animation:animation,options:options}}function query(selector,animation,options){return void 0===options&&(options=null),{type:11,selector:selector,animation:animation,options:options}}function stagger(timings,animation){return{type:12,timings:timings,animation:animation}}/** | ||
* @license | ||
@@ -12,10 +12,2 @@ * Copyright Google Inc. All Rights Reserved. | ||
* found in the LICENSE file at https://angular.io/license | ||
* @record | ||
*/ | ||
function ɵStyleData(){}function AnimationMetadata(){}function AnimationTriggerMetadata(){}function AnimationStateMetadata(){}function AnimationTransitionMetadata(){}function AnimationReferenceMetadata(){}function AnimationQueryMetadata(){}function AnimationKeyframesSequenceMetadata(){}function AnimationStyleMetadata(){}function AnimationAnimateMetadata(){}function AnimationAnimateChildMetadata(){}function AnimationAnimateRefMetadata(){}function AnimationSequenceMetadata(){}function AnimationGroupMetadata(){}function AnimationStaggerMetadata(){}function trigger(name,definitions){return{type:AnimationMetadataType.Trigger,name:name,definitions:definitions,options:{}}}function animate(timings,styles){return void 0===styles&&(styles=null),{type:AnimationMetadataType.Animate,styles:styles,timings:timings}}function group(steps,options){return void 0===options&&(options=null),{type:AnimationMetadataType.Group,steps:steps,options:options}}function sequence(steps,options){return void 0===options&&(options=null),{type:AnimationMetadataType.Sequence,steps:steps,options:options}}function style(tokens){return{type:AnimationMetadataType.Style,styles:tokens,offset:null}}function state(name,styles,options){return{type:AnimationMetadataType.State,name:name,styles:styles,options:options}}function keyframes(steps){return{type:AnimationMetadataType.Keyframes,steps:steps}}function transition(stateChangeExpr,steps,options){return void 0===options&&(options=null),{type:AnimationMetadataType.Transition,expr:stateChangeExpr,animation:steps,options:options}}function animation(steps,options){return void 0===options&&(options=null),{type:AnimationMetadataType.Reference,animation:steps,options:options}}function animateChild(options){return void 0===options&&(options=null),{type:AnimationMetadataType.AnimateChild,options:options}}function useAnimation(animation,options){return void 0===options&&(options=null),{type:AnimationMetadataType.AnimateRef,animation:animation,options:options}}function query(selector,animation,options){return void 0===options&&(options=null),{type:AnimationMetadataType.Query,selector:selector,animation:animation,options:options}}function stagger(timings,animation){return{type:AnimationMetadataType.Stagger,timings:timings,animation:animation}}/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
* @param {?} cb | ||
@@ -25,14 +17,7 @@ * @return {?} | ||
function scheduleMicroTask(cb){Promise.resolve(null).then(cb)}/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
function AnimationPlayer(){}/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
* License: MIT | ||
*/ | ||
var AnimationBuilder=function(){function AnimationBuilder(){}return AnimationBuilder}(),AnimationFactory=function(){function AnimationFactory(){}return AnimationFactory}(),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},AUTO_STYLE="*",NoopAnimationPlayer=function(){function NoopAnimationPlayer(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}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.triggerMicrotask(),this._onStart()),this._started=!0},NoopAnimationPlayer.prototype.triggerMicrotask=function(){var _this=this;scheduleMicroTask(function(){return _this._onFinish()})},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,this.totalTime=0;var doneCount=0,destroyCount=0,startCount=0,total=this._players.length;0==total?scheduleMicroTask(function(){return _this._onFinish()}):this._players.forEach(function(player){player.parentPlayer=_this,player.onDone(function(){++doneCount>=total&&_this._onFinish()}),player.onDestroy(function(){++destroyCount>=total&&_this._onDestroy()}),player.onStart(function(){++startCount>=total&&_this._onStart()})}),this.totalTime=this._players.reduce(function(time,player){return Math.max(time,player.totalTime)},0)}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._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(fn){return fn()}),this._onStartFns=[],this._started=!0)},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._onStart(),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._onDestroy()},AnimationGroupPlayer.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this._players.forEach(function(player){return player.destroy()}),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){var timeAtPosition=p*this.totalTime;this._players.forEach(function(player){var position=player.totalTime?Math.min(1,timeAtPosition/player.totalTime):1;player.setPosition(position)})},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.prototype.beforeDestroy=function(){this.players.forEach(function(player){player.beforeDestroy&&player.beforeDestroy()})},AnimationGroupPlayer}(),ɵPRE_STYLE="!";exports.AnimationBuilder=AnimationBuilder,exports.AnimationFactory=AnimationFactory,exports.AnimationEvent=AnimationEvent,exports.AUTO_STYLE=AUTO_STYLE,exports.AnimationAnimateChildMetadata=AnimationAnimateChildMetadata,exports.AnimationAnimateMetadata=AnimationAnimateMetadata,exports.AnimationAnimateRefMetadata=AnimationAnimateRefMetadata,exports.AnimationGroupMetadata=AnimationGroupMetadata,exports.AnimationKeyframesSequenceMetadata=AnimationKeyframesSequenceMetadata,exports.AnimationMetadata=AnimationMetadata,exports.AnimationMetadataType=AnimationMetadataType,exports.AnimationQueryMetadata=AnimationQueryMetadata,exports.AnimationReferenceMetadata=AnimationReferenceMetadata,exports.AnimationSequenceMetadata=AnimationSequenceMetadata,exports.AnimationStaggerMetadata=AnimationStaggerMetadata,exports.AnimationStateMetadata=AnimationStateMetadata,exports.AnimationStyleMetadata=AnimationStyleMetadata,exports.AnimationTransitionMetadata=AnimationTransitionMetadata,exports.AnimationTriggerMetadata=AnimationTriggerMetadata,exports.animate=animate,exports.animateChild=animateChild,exports.animation=animation,exports.group=group,exports.keyframes=keyframes,exports.query=query,exports.sequence=sequence,exports.stagger=stagger,exports.state=state,exports.style=style,exports.transition=transition,exports.trigger=trigger,exports.useAnimation=useAnimation,exports.ɵStyleData=ɵStyleData,exports.AnimationPlayer=AnimationPlayer,exports.NoopAnimationPlayer=NoopAnimationPlayer,exports.ɵAnimationGroupPlayer=AnimationGroupPlayer,exports.ɵPRE_STYLE=ɵPRE_STYLE,Object.defineProperty(exports,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=/Users/misko/work/angular/dist/packages-dist/animations/bundles/animations.umd.min.js.map | ||
var AnimationBuilder=function(){function AnimationBuilder(){}return AnimationBuilder}(),AnimationFactory=function(){function AnimationFactory(){}return AnimationFactory}(),AUTO_STYLE="*",NoopAnimationPlayer=function(){function NoopAnimationPlayer(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}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.triggerMicrotask(),this._onStart()),this._started=!0},NoopAnimationPlayer.prototype.triggerMicrotask=function(){var _this=this;scheduleMicroTask(function(){return _this._onFinish()})},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,this.totalTime=0;var doneCount=0,destroyCount=0,startCount=0,total=this._players.length;0==total?scheduleMicroTask(function(){return _this._onFinish()}):this._players.forEach(function(player){player.parentPlayer=_this,player.onDone(function(){++doneCount>=total&&_this._onFinish()}),player.onDestroy(function(){++destroyCount>=total&&_this._onDestroy()}),player.onStart(function(){++startCount>=total&&_this._onStart()})}),this.totalTime=this._players.reduce(function(time,player){return Math.max(time,player.totalTime)},0)}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._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(fn){return fn()}),this._onStartFns=[],this._started=!0)},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._onStart(),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._onDestroy()},AnimationGroupPlayer.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this._players.forEach(function(player){return player.destroy()}),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){var timeAtPosition=p*this.totalTime;this._players.forEach(function(player){var position=player.totalTime?Math.min(1,timeAtPosition/player.totalTime):1;player.setPosition(position)})},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.prototype.beforeDestroy=function(){this.players.forEach(function(player){player.beforeDestroy&&player.beforeDestroy()})},AnimationGroupPlayer}(),ɵPRE_STYLE="!";exports.AnimationBuilder=AnimationBuilder,exports.AnimationFactory=AnimationFactory,exports.AUTO_STYLE=AUTO_STYLE,exports.animate=animate,exports.animateChild=animateChild,exports.animation=animation,exports.group=group,exports.keyframes=keyframes,exports.query=query,exports.sequence=sequence,exports.stagger=stagger,exports.state=state,exports.style=style,exports.transition=transition,exports.trigger=trigger,exports.useAnimation=useAnimation,exports.NoopAnimationPlayer=NoopAnimationPlayer,exports.ɵAnimationGroupPlayer=AnimationGroupPlayer,exports.ɵPRE_STYLE=ɵPRE_STYLE,Object.defineProperty(exports,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=/Users/matsko/code/angular/dist/packages-dist/animations/bundles/animations.umd.min.js.map |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -78,3 +78,3 @@ * License: MIT | ||
// this is well supported in all browsers | ||
_contains = (elm1, elm2) => { return (elm1.contains(elm2)); }; | ||
_contains = (elm1, elm2) => { return /** @type {?} */ (elm1.contains(elm2)); }; | ||
if (Element.prototype.matches) { | ||
@@ -84,3 +84,3 @@ _matches = (element, selector) => element.matches(selector); | ||
else { | ||
const /** @type {?} */ proto = (Element.prototype); | ||
const /** @type {?} */ proto = /** @type {?} */ (Element.prototype); | ||
const /** @type {?} */ fn = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || | ||
@@ -115,3 +115,3 @@ proto.oMatchesSelector || proto.webkitMatchesSelector; | ||
} | ||
return ((_CACHED_BODY)).style ? prop in ((_CACHED_BODY)).style : true; | ||
return /** @type {?} */ ((_CACHED_BODY)).style ? prop in /** @type {?} */ ((_CACHED_BODY)).style : true; | ||
} | ||
@@ -118,0 +118,0 @@ /** |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -67,43 +67,2 @@ * License: MIT | ||
/** | ||
* An instance of this class is returned as an event parameter when an animation | ||
* callback is captured for an animation either during the start or done phase. | ||
* | ||
* ```typescript | ||
* \@Component({ | ||
* host: { | ||
* '[\@myAnimationTrigger]': 'someExpression', | ||
* '(\@myAnimationTrigger.start)': 'captureStartEvent($event)', | ||
* '(\@myAnimationTrigger.done)': 'captureDoneEvent($event)', | ||
* }, | ||
* animations: [ | ||
* trigger("myAnimationTrigger", [ | ||
* // ... | ||
* ]) | ||
* ] | ||
* }) | ||
* class MyComponent { | ||
* someExpression: any = false; | ||
* captureStartEvent(event: AnimationEvent) { | ||
* // the toState, fromState and totalTime data is accessible from the event variable | ||
* } | ||
* | ||
* captureDoneEvent(event: AnimationEvent) { | ||
* // the toState, fromState and totalTime data is accessible from the event variable | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* \@experimental Animation support is experimental. | ||
* @record | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function AnimationEvent() { } | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ | ||
/** | ||
* @license | ||
@@ -116,23 +75,4 @@ * Copyright Google Inc. All Rights Reserved. | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function ɵStyleData() { } | ||
/** @enum {number} */ | ||
const 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, | ||
}; | ||
/** | ||
* \@experimental Animation support is experimental. | ||
@@ -145,3 +85,3 @@ */ | ||
*/ | ||
function AnimationMetadata() { } | ||
/** | ||
@@ -154,3 +94,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationTriggerMetadata() { } | ||
/** | ||
@@ -163,3 +103,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStateMetadata() { } | ||
/** | ||
@@ -172,3 +112,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationTransitionMetadata() { } | ||
/** | ||
@@ -178,3 +118,3 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
function AnimationReferenceMetadata() { } | ||
/** | ||
@@ -184,3 +124,3 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
function AnimationQueryMetadata() { } | ||
/** | ||
@@ -193,3 +133,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationKeyframesSequenceMetadata() { } | ||
/** | ||
@@ -202,3 +142,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStyleMetadata() { } | ||
/** | ||
@@ -211,3 +151,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateMetadata() { } | ||
/** | ||
@@ -220,3 +160,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateChildMetadata() { } | ||
/** | ||
@@ -229,3 +169,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateRefMetadata() { } | ||
/** | ||
@@ -238,3 +178,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationSequenceMetadata() { } | ||
/** | ||
@@ -247,3 +187,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationGroupMetadata() { } | ||
/** | ||
@@ -256,3 +196,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStaggerMetadata() { } | ||
/** | ||
@@ -371,3 +311,3 @@ * `trigger` is an animation-specific function that is designed to be used inside of Angular's | ||
function trigger(name, definitions) { | ||
return { type: AnimationMetadataType.Trigger, name, definitions, options: {} }; | ||
return { type: 7 /* Trigger */, name, definitions, options: {} }; | ||
} | ||
@@ -423,3 +363,3 @@ /** | ||
function animate(timings, styles = null) { | ||
return { type: AnimationMetadataType.Animate, styles, timings }; | ||
return { type: 4 /* Animate */, styles, timings }; | ||
} | ||
@@ -461,3 +401,3 @@ /** | ||
function group(steps, options = null) { | ||
return { type: AnimationMetadataType.Group, steps, options }; | ||
return { type: 3 /* Group */, steps, options }; | ||
} | ||
@@ -502,3 +442,3 @@ /** | ||
function sequence(steps, options = null) { | ||
return { type: AnimationMetadataType.Sequence, steps, options }; | ||
return { type: 2 /* Sequence */, steps, options }; | ||
} | ||
@@ -550,3 +490,3 @@ /** | ||
function style(tokens) { | ||
return { type: AnimationMetadataType.Style, styles: tokens, offset: null }; | ||
return { type: 6 /* Style */, styles: tokens, offset: null }; | ||
} | ||
@@ -606,3 +546,3 @@ /** | ||
function state(name, styles, options) { | ||
return { type: AnimationMetadataType.State, name, styles, options }; | ||
return { type: 0 /* State */, name, styles, options }; | ||
} | ||
@@ -657,3 +597,3 @@ /** | ||
function keyframes(steps) { | ||
return { type: AnimationMetadataType.Keyframes, steps }; | ||
return { type: 5 /* Keyframes */, steps }; | ||
} | ||
@@ -848,3 +788,3 @@ /** | ||
function transition(stateChangeExpr, steps, options = null) { | ||
return { type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options }; | ||
return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps, options }; | ||
} | ||
@@ -890,3 +830,3 @@ /** | ||
function animation(steps, options = null) { | ||
return { type: AnimationMetadataType.Reference, animation: steps, options }; | ||
return { type: 8 /* Reference */, animation: steps, options }; | ||
} | ||
@@ -993,3 +933,3 @@ /** | ||
function animateChild(options = null) { | ||
return { type: AnimationMetadataType.AnimateChild, options }; | ||
return { type: 9 /* AnimateChild */, options }; | ||
} | ||
@@ -1007,3 +947,3 @@ /** | ||
function useAnimation(animation, options = null) { | ||
return { type: AnimationMetadataType.AnimateRef, animation, options }; | ||
return { type: 10 /* AnimateRef */, animation, options }; | ||
} | ||
@@ -1107,3 +1047,3 @@ /** | ||
function query(selector, animation, options = null) { | ||
return { type: AnimationMetadataType.Query, selector, animation, options }; | ||
return { type: 11 /* Query */, selector, animation, options }; | ||
} | ||
@@ -1192,3 +1132,3 @@ /** | ||
function stagger(timings, animation) { | ||
return { type: AnimationMetadataType.Stagger, timings, animation }; | ||
return { type: 12 /* Stagger */, timings, animation }; | ||
} | ||
@@ -1209,6 +1149,3 @@ | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function scheduleMicroTask(cb) { | ||
function scheduleMicroTask(cb) { | ||
Promise.resolve(null).then(cb); | ||
@@ -1236,3 +1173,3 @@ } | ||
*/ | ||
function AnimationPlayer() { } | ||
/** | ||
@@ -1587,3 +1524,3 @@ * \@experimental Animation support is experimental. | ||
export { AnimationBuilder, AnimationFactory, AnimationEvent, AUTO_STYLE, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadata, AnimationMetadataType, AnimationQueryMetadata, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵStyleData, AnimationPlayer, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer, ɵPRE_STYLE }; | ||
export { AnimationBuilder, AnimationFactory, AUTO_STYLE, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer, ɵPRE_STYLE }; | ||
//# sourceMappingURL=index.js.map |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -81,3 +81,3 @@ * License: MIT | ||
// this is well supported in all browsers | ||
_contains = function (elm1, elm2) { return (elm1.contains(elm2)); }; | ||
_contains = function (elm1, elm2) { return /** @type {?} */ (elm1.contains(elm2)); }; | ||
if (Element.prototype.matches) { | ||
@@ -87,3 +87,3 @@ _matches = function (element, selector) { return element.matches(selector); }; | ||
else { | ||
var /** @type {?} */ proto = (Element.prototype); | ||
var /** @type {?} */ proto = /** @type {?} */ (Element.prototype); | ||
var /** @type {?} */ fn_1 = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || | ||
@@ -118,3 +118,3 @@ proto.oMatchesSelector || proto.webkitMatchesSelector; | ||
} | ||
return ((_CACHED_BODY)).style ? prop in ((_CACHED_BODY)).style : true; | ||
return /** @type {?} */ ((_CACHED_BODY)).style ? prop in /** @type {?} */ ((_CACHED_BODY)).style : true; | ||
} | ||
@@ -268,3 +268,7 @@ /** | ||
*/ | ||
MockAnimationDriver.prototype.validateStyleProperty = function (prop) { return validateStyleProperty(prop); }; | ||
MockAnimationDriver.prototype.validateStyleProperty = /** | ||
* @param {?} prop | ||
* @return {?} | ||
*/ | ||
function (prop) { return validateStyleProperty(prop); }; | ||
/** | ||
@@ -275,3 +279,8 @@ * @param {?} element | ||
*/ | ||
MockAnimationDriver.prototype.matchesElement = function (element, selector) { | ||
MockAnimationDriver.prototype.matchesElement = /** | ||
* @param {?} element | ||
* @param {?} selector | ||
* @return {?} | ||
*/ | ||
function (element, selector) { | ||
return matchesElement(element, selector); | ||
@@ -284,3 +293,8 @@ }; | ||
*/ | ||
MockAnimationDriver.prototype.containsElement = function (elm1, elm2) { return containsElement(elm1, elm2); }; | ||
MockAnimationDriver.prototype.containsElement = /** | ||
* @param {?} elm1 | ||
* @param {?} elm2 | ||
* @return {?} | ||
*/ | ||
function (elm1, elm2) { return containsElement(elm1, elm2); }; | ||
/** | ||
@@ -292,3 +306,9 @@ * @param {?} element | ||
*/ | ||
MockAnimationDriver.prototype.query = function (element, selector, multi) { | ||
MockAnimationDriver.prototype.query = /** | ||
* @param {?} element | ||
* @param {?} selector | ||
* @param {?} multi | ||
* @return {?} | ||
*/ | ||
function (element, selector, multi) { | ||
return invokeQuery(element, selector, multi); | ||
@@ -302,3 +322,9 @@ }; | ||
*/ | ||
MockAnimationDriver.prototype.computeStyle = function (element, prop, defaultValue) { | ||
MockAnimationDriver.prototype.computeStyle = /** | ||
* @param {?} element | ||
* @param {?} prop | ||
* @param {?=} defaultValue | ||
* @return {?} | ||
*/ | ||
function (element, prop, defaultValue) { | ||
return defaultValue || ''; | ||
@@ -315,3 +341,12 @@ }; | ||
*/ | ||
MockAnimationDriver.prototype.animate = function (element, keyframes, duration, delay, easing, previousPlayers) { | ||
MockAnimationDriver.prototype.animate = /** | ||
* @param {?} element | ||
* @param {?} keyframes | ||
* @param {?} duration | ||
* @param {?} delay | ||
* @param {?} easing | ||
* @param {?=} previousPlayers | ||
* @return {?} | ||
*/ | ||
function (element, keyframes, duration, delay, easing, previousPlayers) { | ||
if (previousPlayers === void 0) { previousPlayers = []; } | ||
@@ -322,5 +357,5 @@ var /** @type {?} */ player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers); | ||
}; | ||
MockAnimationDriver.log = []; | ||
return MockAnimationDriver; | ||
}()); | ||
MockAnimationDriver.log = []; | ||
/** | ||
@@ -331,10 +366,2 @@ * \@experimental Animation support is experimental. | ||
__extends(MockAnimationPlayer, _super); | ||
/** | ||
* @param {?} element | ||
* @param {?} keyframes | ||
* @param {?} duration | ||
* @param {?} delay | ||
* @param {?} easing | ||
* @param {?} previousPlayers | ||
*/ | ||
function MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers) { | ||
@@ -364,2 +391,3 @@ var _this = _super.call(this) || this; | ||
} | ||
/* @internal */ | ||
/** | ||
@@ -369,7 +397,15 @@ * @param {?} fn | ||
*/ | ||
MockAnimationPlayer.prototype.onInit = function (fn) { this._onInitFns.push(fn); }; | ||
MockAnimationPlayer.prototype.onInit = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onInitFns.push(fn); }; | ||
/* @internal */ | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.init = function () { | ||
MockAnimationPlayer.prototype.init = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.init.call(this); | ||
@@ -382,3 +418,6 @@ this._onInitFns.forEach(function (fn) { return fn(); }); | ||
*/ | ||
MockAnimationPlayer.prototype.finish = function () { | ||
MockAnimationPlayer.prototype.finish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.finish.call(this); | ||
@@ -390,14 +429,24 @@ this.__finished = true; | ||
*/ | ||
MockAnimationPlayer.prototype.destroy = function () { | ||
MockAnimationPlayer.prototype.destroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.destroy.call(this); | ||
this.__finished = true; | ||
}; | ||
/* @internal */ | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.triggerMicrotask = function () { }; | ||
MockAnimationPlayer.prototype.triggerMicrotask = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.play = function () { | ||
MockAnimationPlayer.prototype.play = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_super.prototype.play.call(this); | ||
@@ -409,7 +458,13 @@ this.__started = true; | ||
*/ | ||
MockAnimationPlayer.prototype.hasStarted = function () { return this.__started; }; | ||
MockAnimationPlayer.prototype.hasStarted = /** | ||
* @return {?} | ||
*/ | ||
function () { return this.__started; }; | ||
/** | ||
* @return {?} | ||
*/ | ||
MockAnimationPlayer.prototype.beforeDestroy = function () { | ||
MockAnimationPlayer.prototype.beforeDestroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
var _this = this; | ||
@@ -416,0 +471,0 @@ var /** @type {?} */ captures = {}; |
/** | ||
* @license Angular v5.0.0-beta.6 | ||
* @license Angular v5.0.0-beta.7 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -73,43 +73,2 @@ * License: MIT | ||
/** | ||
* An instance of this class is returned as an event parameter when an animation | ||
* callback is captured for an animation either during the start or done phase. | ||
* | ||
* ```typescript | ||
* \@Component({ | ||
* host: { | ||
* '[\@myAnimationTrigger]': 'someExpression', | ||
* '(\@myAnimationTrigger.start)': 'captureStartEvent($event)', | ||
* '(\@myAnimationTrigger.done)': 'captureDoneEvent($event)', | ||
* }, | ||
* animations: [ | ||
* trigger("myAnimationTrigger", [ | ||
* // ... | ||
* ]) | ||
* ] | ||
* }) | ||
* class MyComponent { | ||
* someExpression: any = false; | ||
* captureStartEvent(event: AnimationEvent) { | ||
* // the toState, fromState and totalTime data is accessible from the event variable | ||
* } | ||
* | ||
* captureDoneEvent(event: AnimationEvent) { | ||
* // the toState, fromState and totalTime data is accessible from the event variable | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* \@experimental Animation support is experimental. | ||
* @record | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function AnimationEvent() { } | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ | ||
/** | ||
* @license | ||
@@ -122,23 +81,4 @@ * Copyright Google Inc. All Rights Reserved. | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function ɵStyleData() { } | ||
/** @enum {number} */ | ||
var 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, | ||
}; | ||
/** | ||
* \@experimental Animation support is experimental. | ||
@@ -151,3 +91,3 @@ */ | ||
*/ | ||
function AnimationMetadata() { } | ||
/** | ||
@@ -160,3 +100,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationTriggerMetadata() { } | ||
/** | ||
@@ -169,3 +109,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStateMetadata() { } | ||
/** | ||
@@ -178,3 +118,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationTransitionMetadata() { } | ||
/** | ||
@@ -184,3 +124,3 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
function AnimationReferenceMetadata() { } | ||
/** | ||
@@ -190,3 +130,3 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
function AnimationQueryMetadata() { } | ||
/** | ||
@@ -199,3 +139,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationKeyframesSequenceMetadata() { } | ||
/** | ||
@@ -208,3 +148,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStyleMetadata() { } | ||
/** | ||
@@ -217,3 +157,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateMetadata() { } | ||
/** | ||
@@ -226,3 +166,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateChildMetadata() { } | ||
/** | ||
@@ -235,3 +175,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationAnimateRefMetadata() { } | ||
/** | ||
@@ -244,3 +184,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationSequenceMetadata() { } | ||
/** | ||
@@ -253,3 +193,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationGroupMetadata() { } | ||
/** | ||
@@ -262,3 +202,3 @@ * Metadata representing the entry of animations. Instances of this interface are provided via the | ||
*/ | ||
function AnimationStaggerMetadata() { } | ||
/** | ||
@@ -377,3 +317,3 @@ * `trigger` is an animation-specific function that is designed to be used inside of Angular's | ||
function trigger(name, definitions) { | ||
return { type: AnimationMetadataType.Trigger, name: name, definitions: definitions, options: {} }; | ||
return { type: 7 /* Trigger */, name: name, definitions: definitions, options: {} }; | ||
} | ||
@@ -430,3 +370,3 @@ /** | ||
if (styles === void 0) { styles = null; } | ||
return { type: AnimationMetadataType.Animate, styles: styles, timings: timings }; | ||
return { type: 4 /* Animate */, styles: styles, timings: timings }; | ||
} | ||
@@ -469,3 +409,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Group, steps: steps, options: options }; | ||
return { type: 3 /* Group */, steps: steps, options: options }; | ||
} | ||
@@ -511,3 +451,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Sequence, steps: steps, options: options }; | ||
return { type: 2 /* Sequence */, steps: steps, options: options }; | ||
} | ||
@@ -559,3 +499,3 @@ /** | ||
function style(tokens) { | ||
return { type: AnimationMetadataType.Style, styles: tokens, offset: null }; | ||
return { type: 6 /* Style */, styles: tokens, offset: null }; | ||
} | ||
@@ -615,3 +555,3 @@ /** | ||
function state(name, styles, options) { | ||
return { type: AnimationMetadataType.State, name: name, styles: styles, options: options }; | ||
return { type: 0 /* State */, name: name, styles: styles, options: options }; | ||
} | ||
@@ -666,3 +606,3 @@ /** | ||
function keyframes(steps) { | ||
return { type: AnimationMetadataType.Keyframes, steps: steps }; | ||
return { type: 5 /* Keyframes */, steps: steps }; | ||
} | ||
@@ -858,3 +798,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options: options }; | ||
return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps, options: options }; | ||
} | ||
@@ -901,3 +841,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Reference, animation: steps, options: options }; | ||
return { type: 8 /* Reference */, animation: steps, options: options }; | ||
} | ||
@@ -1005,3 +945,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.AnimateChild, options: options }; | ||
return { type: 9 /* AnimateChild */, options: options }; | ||
} | ||
@@ -1020,3 +960,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.AnimateRef, animation: animation, options: options }; | ||
return { type: 10 /* AnimateRef */, animation: animation, options: options }; | ||
} | ||
@@ -1121,3 +1061,3 @@ /** | ||
if (options === void 0) { options = null; } | ||
return { type: AnimationMetadataType.Query, selector: selector, animation: animation, options: options }; | ||
return { type: 11 /* Query */, selector: selector, animation: animation, options: options }; | ||
} | ||
@@ -1206,3 +1146,3 @@ /** | ||
function stagger(timings, animation) { | ||
return { type: AnimationMetadataType.Stagger, timings: timings, animation: animation }; | ||
return { type: 12 /* Stagger */, timings: timings, animation: animation }; | ||
} | ||
@@ -1223,6 +1163,3 @@ | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes} checked by tsc | ||
*/ function scheduleMicroTask(cb) { | ||
function scheduleMicroTask(cb) { | ||
Promise.resolve(null).then(cb); | ||
@@ -1250,3 +1187,3 @@ } | ||
*/ | ||
function AnimationPlayer() { } | ||
/** | ||
@@ -1269,3 +1206,6 @@ * \@experimental Animation support is experimental. | ||
*/ | ||
NoopAnimationPlayer.prototype._onFinish = function () { | ||
NoopAnimationPlayer.prototype._onFinish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._finished) { | ||
@@ -1281,3 +1221,7 @@ this._finished = true; | ||
*/ | ||
NoopAnimationPlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); }; | ||
NoopAnimationPlayer.prototype.onStart = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onStartFns.push(fn); }; | ||
/** | ||
@@ -1287,3 +1231,7 @@ * @param {?} fn | ||
*/ | ||
NoopAnimationPlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); }; | ||
NoopAnimationPlayer.prototype.onDone = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDoneFns.push(fn); }; | ||
/** | ||
@@ -1293,15 +1241,28 @@ * @param {?} fn | ||
*/ | ||
NoopAnimationPlayer.prototype.onDestroy = function (fn) { this._onDestroyFns.push(fn); }; | ||
NoopAnimationPlayer.prototype.onDestroy = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDestroyFns.push(fn); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.hasStarted = function () { return this._started; }; | ||
NoopAnimationPlayer.prototype.hasStarted = /** | ||
* @return {?} | ||
*/ | ||
function () { return this._started; }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.init = function () { }; | ||
NoopAnimationPlayer.prototype.init = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.play = function () { | ||
NoopAnimationPlayer.prototype.play = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.hasStarted()) { | ||
@@ -1313,6 +1274,10 @@ this.triggerMicrotask(); | ||
}; | ||
/* @internal */ | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.triggerMicrotask = function () { | ||
NoopAnimationPlayer.prototype.triggerMicrotask = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
var _this = this; | ||
@@ -1324,3 +1289,6 @@ scheduleMicroTask(function () { return _this._onFinish(); }); | ||
*/ | ||
NoopAnimationPlayer.prototype._onStart = function () { | ||
NoopAnimationPlayer.prototype._onStart = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this._onStartFns.forEach(function (fn) { return fn(); }); | ||
@@ -1332,15 +1300,27 @@ this._onStartFns = []; | ||
*/ | ||
NoopAnimationPlayer.prototype.pause = function () { }; | ||
NoopAnimationPlayer.prototype.pause = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.restart = function () { }; | ||
NoopAnimationPlayer.prototype.restart = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.finish = function () { this._onFinish(); }; | ||
NoopAnimationPlayer.prototype.finish = /** | ||
* @return {?} | ||
*/ | ||
function () { this._onFinish(); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.destroy = function () { | ||
NoopAnimationPlayer.prototype.destroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._destroyed) { | ||
@@ -1359,3 +1339,6 @@ this._destroyed = true; | ||
*/ | ||
NoopAnimationPlayer.prototype.reset = function () { }; | ||
NoopAnimationPlayer.prototype.reset = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
/** | ||
@@ -1365,7 +1348,14 @@ * @param {?} p | ||
*/ | ||
NoopAnimationPlayer.prototype.setPosition = function (p) { }; | ||
NoopAnimationPlayer.prototype.setPosition = /** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
function (p) { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
NoopAnimationPlayer.prototype.getPosition = function () { return 0; }; | ||
NoopAnimationPlayer.prototype.getPosition = /** | ||
* @return {?} | ||
*/ | ||
function () { return 0; }; | ||
return NoopAnimationPlayer; | ||
@@ -1386,5 +1376,2 @@ }()); | ||
var AnimationGroupPlayer = (function () { | ||
/** | ||
* @param {?} _players | ||
*/ | ||
function AnimationGroupPlayer(_players) { | ||
@@ -1433,3 +1420,6 @@ var _this = this; | ||
*/ | ||
AnimationGroupPlayer.prototype._onFinish = function () { | ||
AnimationGroupPlayer.prototype._onFinish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._finished) { | ||
@@ -1444,3 +1434,6 @@ this._finished = true; | ||
*/ | ||
AnimationGroupPlayer.prototype.init = function () { this._players.forEach(function (player) { return player.init(); }); }; | ||
AnimationGroupPlayer.prototype.init = /** | ||
* @return {?} | ||
*/ | ||
function () { this._players.forEach(function (player) { return player.init(); }); }; | ||
/** | ||
@@ -1450,7 +1443,14 @@ * @param {?} fn | ||
*/ | ||
AnimationGroupPlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); }; | ||
AnimationGroupPlayer.prototype.onStart = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onStartFns.push(fn); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype._onStart = function () { | ||
AnimationGroupPlayer.prototype._onStart = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.hasStarted()) { | ||
@@ -1466,3 +1466,7 @@ this._onStartFns.forEach(function (fn) { return fn(); }); | ||
*/ | ||
AnimationGroupPlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); }; | ||
AnimationGroupPlayer.prototype.onDone = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDoneFns.push(fn); }; | ||
/** | ||
@@ -1472,11 +1476,21 @@ * @param {?} fn | ||
*/ | ||
AnimationGroupPlayer.prototype.onDestroy = function (fn) { this._onDestroyFns.push(fn); }; | ||
AnimationGroupPlayer.prototype.onDestroy = /** | ||
* @param {?} fn | ||
* @return {?} | ||
*/ | ||
function (fn) { this._onDestroyFns.push(fn); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.hasStarted = function () { return this._started; }; | ||
AnimationGroupPlayer.prototype.hasStarted = /** | ||
* @return {?} | ||
*/ | ||
function () { return this._started; }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.play = function () { | ||
AnimationGroupPlayer.prototype.play = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.parentPlayer) { | ||
@@ -1491,11 +1505,20 @@ this.init(); | ||
*/ | ||
AnimationGroupPlayer.prototype.pause = function () { this._players.forEach(function (player) { return player.pause(); }); }; | ||
AnimationGroupPlayer.prototype.pause = /** | ||
* @return {?} | ||
*/ | ||
function () { this._players.forEach(function (player) { return player.pause(); }); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.restart = function () { this._players.forEach(function (player) { return player.restart(); }); }; | ||
AnimationGroupPlayer.prototype.restart = /** | ||
* @return {?} | ||
*/ | ||
function () { this._players.forEach(function (player) { return player.restart(); }); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype.finish = function () { | ||
AnimationGroupPlayer.prototype.finish = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this._onFinish(); | ||
@@ -1507,7 +1530,13 @@ this._players.forEach(function (player) { return player.finish(); }); | ||
*/ | ||
AnimationGroupPlayer.prototype.destroy = function () { this._onDestroy(); }; | ||
AnimationGroupPlayer.prototype.destroy = /** | ||
* @return {?} | ||
*/ | ||
function () { this._onDestroy(); }; | ||
/** | ||
* @return {?} | ||
*/ | ||
AnimationGroupPlayer.prototype._onDestroy = function () { | ||
AnimationGroupPlayer.prototype._onDestroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this._destroyed) { | ||
@@ -1524,3 +1553,6 @@ this._destroyed = true; | ||
*/ | ||
AnimationGroupPlayer.prototype.reset = function () { | ||
AnimationGroupPlayer.prototype.reset = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this._players.forEach(function (player) { return player.reset(); }); | ||
@@ -1535,3 +1567,7 @@ this._destroyed = false; | ||
*/ | ||
AnimationGroupPlayer.prototype.setPosition = function (p) { | ||
AnimationGroupPlayer.prototype.setPosition = /** | ||
* @param {?} p | ||
* @return {?} | ||
*/ | ||
function (p) { | ||
var /** @type {?} */ timeAtPosition = p * this.totalTime; | ||
@@ -1546,3 +1582,6 @@ this._players.forEach(function (player) { | ||
*/ | ||
AnimationGroupPlayer.prototype.getPosition = function () { | ||
AnimationGroupPlayer.prototype.getPosition = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
var /** @type {?} */ min = 0; | ||
@@ -1556,6 +1595,6 @@ this._players.forEach(function (player) { | ||
Object.defineProperty(AnimationGroupPlayer.prototype, "players", { | ||
/** | ||
get: /** | ||
* @return {?} | ||
*/ | ||
get: function () { return this._players; }, | ||
function () { return this._players; }, | ||
enumerable: true, | ||
@@ -1567,3 +1606,6 @@ configurable: true | ||
*/ | ||
AnimationGroupPlayer.prototype.beforeDestroy = function () { | ||
AnimationGroupPlayer.prototype.beforeDestroy = /** | ||
* @return {?} | ||
*/ | ||
function () { | ||
this.players.forEach(function (player) { | ||
@@ -1633,3 +1675,3 @@ if (player.beforeDestroy) { | ||
export { AnimationBuilder, AnimationFactory, AnimationEvent, AUTO_STYLE, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadata, AnimationMetadataType, AnimationQueryMetadata, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵStyleData, AnimationPlayer, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer, ɵPRE_STYLE }; | ||
export { AnimationBuilder, AnimationFactory, AUTO_STYLE, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, NoopAnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer, ɵPRE_STYLE }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@angular/animations", | ||
"version": "5.0.0-beta.6", | ||
"version": "5.0.0-beta.7", | ||
"description": "Angular - animations integration with web-animationss", | ||
@@ -15,3 +15,3 @@ "main": "./bundles/animations.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "5.0.0-beta.6" | ||
"@angular/core": "5.0.0-beta.7" | ||
}, | ||
@@ -18,0 +18,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
2942951
26669
0