@angular/animations 8.2.1 → 8.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v8.2.1
2
+ * @license Angular v8.2.5
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -57,6 +57,16 @@
57
57
  */
58
58
  class AnimationBuilder {
59
59
  }
60
+ if (false) {
61
+ /**
62
+ * Builds a factory for producing a defined animation.
63
+ * @see `animate()`
64
+ * @abstract
65
+ * @param {?} animation A reusable animation definition.
66
+ * @return {?} A factory object that can create a player for the defined animation.
67
+ */
68
+ AnimationBuilder.prototype.build = function (animation) { };
69
+ }
60
70
  /**
61
71
  * A factory object returned from the `AnimationBuilder`.`build()` method.
62
72
  *
@@ -65,11 +75,104 @@ class AnimationBuilder {
65
75
  */
66
76
  class AnimationFactory {
67
77
  }
78
+ if (false) {
79
+ /**
80
+ * Creates an `AnimationPlayer` instance for the reusable animation defined by
81
+ * the `AnimationBuilder`.`build()` method that created this factory.
82
+ * Attaches the new player a DOM element.
83
+ * @abstract
84
+ * @param {?} element The DOM element to which to attach the animation.
85
+ * @param {?=} options A set of options that can include a time delay and
86
+ * additional developer-defined parameters.
87
+ * @return {?}
88
+ */
89
+ AnimationFactory.prototype.create = function (element, options) { };
90
+ }
68
91
 
69
92
  /**
70
93
  * @fileoverview added by tsickle
71
94
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
72
95
  */
96
+ /**
97
+ * @license
98
+ * Copyright Google Inc. All Rights Reserved.
99
+ *
100
+ * Use of this source code is governed by an MIT-style license that can be
101
+ * found in the LICENSE file at https://angular.io/license
102
+ */
103
+ /**
104
+ * Represents a set of CSS styles for use in an animation style.
105
+ * @record
106
+ */
107
+ function ɵStyleData() { }
108
+ /** @enum {number} */
109
+ const AnimationMetadataType = {
110
+ /**
111
+ * Associates a named animation state with a set of CSS styles.
112
+ * See `state()`
113
+ */
114
+ State: 0,
115
+ /**
116
+ * Data for a transition from one animation state to another.
117
+ * See `transition()`
118
+ */
119
+ Transition: 1,
120
+ /**
121
+ * Contains a set of animation steps.
122
+ * See `sequence()`
123
+ */
124
+ Sequence: 2,
125
+ /**
126
+ * Contains a set of animation steps.
127
+ * See `{@link animations/group group()}`
128
+ */
129
+ Group: 3,
130
+ /**
131
+ * Contains an animation step.
132
+ * See `animate()`
133
+ */
134
+ Animate: 4,
135
+ /**
136
+ * Contains a set of animation steps.
137
+ * See `keyframes()`
138
+ */
139
+ Keyframes: 5,
140
+ /**
141
+ * Contains a set of CSS property-value pairs into a named style.
142
+ * See `style()`
143
+ */
144
+ Style: 6,
145
+ /**
146
+ * Associates an animation with an entry trigger that can be attached to an element.
147
+ * See `trigger()`
148
+ */
149
+ Trigger: 7,
150
+ /**
151
+ * Contains a re-usable animation.
152
+ * See `animation()`
153
+ */
154
+ Reference: 8,
155
+ /**
156
+ * Contains data to use in executing child animations returned by a query.
157
+ * See `animateChild()`
158
+ */
159
+ AnimateChild: 9,
160
+ /**
161
+ * Contains animation parameters for a re-usable animation.
162
+ * See `useAnimation()`
163
+ */
164
+ AnimateRef: 10,
165
+ /**
166
+ * Contains child-animation query data.
167
+ * See `query()`
168
+ */
169
+ Query: 11,
170
+ /**
171
+ * Contains data for staggering an animation sequence.
172
+ * See `stagger()`
173
+ */
174
+ Stagger: 12,
175
+ };
73
176
  /**
74
177
  * Specifies automatic styling.
75
178
  *
@@ -77,6 +180,305 @@ class AnimationFactory {
77
180
  * @type {?}
78
181
  */
79
182
  const AUTO_STYLE = '*';
183
+ /**
184
+ * Base for animation data structures.
185
+ *
186
+ * \@publicApi
187
+ * @record
188
+ */
189
+ function AnimationMetadata() { }
190
+ if (false) {
191
+ /** @type {?} */
192
+ AnimationMetadata.prototype.type;
193
+ }
194
+ /**
195
+ * Contains an animation trigger. Instantiated and returned by the
196
+ * `trigger()` function.
197
+ *
198
+ * \@publicApi
199
+ * @record
200
+ */
201
+ function AnimationTriggerMetadata() { }
202
+ if (false) {
203
+ /**
204
+ * The trigger name, used to associate it with an element. Unique within the component.
205
+ * @type {?}
206
+ */
207
+ AnimationTriggerMetadata.prototype.name;
208
+ /**
209
+ * An animation definition object, containing an array of state and transition declarations.
210
+ * @type {?}
211
+ */
212
+ AnimationTriggerMetadata.prototype.definitions;
213
+ /**
214
+ * An options object containing a delay and
215
+ * developer-defined parameters that provide styling defaults and
216
+ * can be overridden on invocation. Default delay is 0.
217
+ * @type {?}
218
+ */
219
+ AnimationTriggerMetadata.prototype.options;
220
+ }
221
+ /**
222
+ * Encapsulates an animation state by associating a state name with a set of CSS styles.
223
+ * Instantiated and returned by the `state()` function.
224
+ *
225
+ * \@publicApi
226
+ * @record
227
+ */
228
+ function AnimationStateMetadata() { }
229
+ if (false) {
230
+ /**
231
+ * The state name, unique within the component.
232
+ * @type {?}
233
+ */
234
+ AnimationStateMetadata.prototype.name;
235
+ /**
236
+ * The CSS styles associated with this state.
237
+ * @type {?}
238
+ */
239
+ AnimationStateMetadata.prototype.styles;
240
+ /**
241
+ * An options object containing
242
+ * developer-defined parameters that provide styling defaults and
243
+ * can be overridden on invocation.
244
+ * @type {?|undefined}
245
+ */
246
+ AnimationStateMetadata.prototype.options;
247
+ }
248
+ /**
249
+ * Encapsulates an animation transition. Instantiated and returned by the
250
+ * `transition()` function.
251
+ *
252
+ * \@publicApi
253
+ * @record
254
+ */
255
+ function AnimationTransitionMetadata() { }
256
+ if (false) {
257
+ /**
258
+ * An expression that describes a state change.
259
+ * @type {?}
260
+ */
261
+ AnimationTransitionMetadata.prototype.expr;
262
+ /**
263
+ * One or more animation objects to which this transition applies.
264
+ * @type {?}
265
+ */
266
+ AnimationTransitionMetadata.prototype.animation;
267
+ /**
268
+ * An options object containing a delay and
269
+ * developer-defined parameters that provide styling defaults and
270
+ * can be overridden on invocation. Default delay is 0.
271
+ * @type {?}
272
+ */
273
+ AnimationTransitionMetadata.prototype.options;
274
+ }
275
+ /**
276
+ * Encapsulates a reusable animation, which is a collection of individual animation steps.
277
+ * Instantiated and returned by the `animation()` function, and
278
+ * passed to the `useAnimation()` function.
279
+ *
280
+ * \@publicApi
281
+ * @record
282
+ */
283
+ function AnimationReferenceMetadata() { }
284
+ if (false) {
285
+ /**
286
+ * One or more animation step objects.
287
+ * @type {?}
288
+ */
289
+ AnimationReferenceMetadata.prototype.animation;
290
+ /**
291
+ * An options object containing a delay and
292
+ * developer-defined parameters that provide styling defaults and
293
+ * can be overridden on invocation. Default delay is 0.
294
+ * @type {?}
295
+ */
296
+ AnimationReferenceMetadata.prototype.options;
297
+ }
298
+ /**
299
+ * Encapsulates an animation query. Instantiated and returned by
300
+ * the `query()` function.
301
+ *
302
+ * \@publicApi
303
+ * @record
304
+ */
305
+ function AnimationQueryMetadata() { }
306
+ if (false) {
307
+ /**
308
+ * The CSS selector for this query.
309
+ * @type {?}
310
+ */
311
+ AnimationQueryMetadata.prototype.selector;
312
+ /**
313
+ * One or more animation step objects.
314
+ * @type {?}
315
+ */
316
+ AnimationQueryMetadata.prototype.animation;
317
+ /**
318
+ * A query options object.
319
+ * @type {?}
320
+ */
321
+ AnimationQueryMetadata.prototype.options;
322
+ }
323
+ /**
324
+ * Encapsulates a keyframes sequence. Instantiated and returned by
325
+ * the `keyframes()` function.
326
+ *
327
+ * \@publicApi
328
+ * @record
329
+ */
330
+ function AnimationKeyframesSequenceMetadata() { }
331
+ if (false) {
332
+ /**
333
+ * An array of animation styles.
334
+ * @type {?}
335
+ */
336
+ AnimationKeyframesSequenceMetadata.prototype.steps;
337
+ }
338
+ /**
339
+ * Encapsulates an animation style. Instantiated and returned by
340
+ * the `style()` function.
341
+ *
342
+ * \@publicApi
343
+ * @record
344
+ */
345
+ function AnimationStyleMetadata() { }
346
+ if (false) {
347
+ /**
348
+ * A set of CSS style properties.
349
+ * @type {?}
350
+ */
351
+ AnimationStyleMetadata.prototype.styles;
352
+ /**
353
+ * A percentage of the total animate time at which the style is to be applied.
354
+ * @type {?}
355
+ */
356
+ AnimationStyleMetadata.prototype.offset;
357
+ }
358
+ /**
359
+ * Encapsulates an animation step. Instantiated and returned by
360
+ * the `animate()` function.
361
+ *
362
+ * \@publicApi
363
+ * @record
364
+ */
365
+ function AnimationAnimateMetadata() { }
366
+ if (false) {
367
+ /**
368
+ * The timing data for the step.
369
+ * @type {?}
370
+ */
371
+ AnimationAnimateMetadata.prototype.timings;
372
+ /**
373
+ * A set of styles used in the step.
374
+ * @type {?}
375
+ */
376
+ AnimationAnimateMetadata.prototype.styles;
377
+ }
378
+ /**
379
+ * Encapsulates a child animation, that can be run explicitly when the parent is run.
380
+ * Instantiated and returned by the `animateChild` function.
381
+ *
382
+ * \@publicApi
383
+ * @record
384
+ */
385
+ function AnimationAnimateChildMetadata() { }
386
+ if (false) {
387
+ /**
388
+ * An options object containing a delay and
389
+ * developer-defined parameters that provide styling defaults and
390
+ * can be overridden on invocation. Default delay is 0.
391
+ * @type {?}
392
+ */
393
+ AnimationAnimateChildMetadata.prototype.options;
394
+ }
395
+ /**
396
+ * Encapsulates a reusable animation.
397
+ * Instantiated and returned by the `useAnimation()` function.
398
+ *
399
+ * \@publicApi
400
+ * @record
401
+ */
402
+ function AnimationAnimateRefMetadata() { }
403
+ if (false) {
404
+ /**
405
+ * An animation reference object.
406
+ * @type {?}
407
+ */
408
+ AnimationAnimateRefMetadata.prototype.animation;
409
+ /**
410
+ * An options object containing a delay and
411
+ * developer-defined parameters that provide styling defaults and
412
+ * can be overridden on invocation. Default delay is 0.
413
+ * @type {?}
414
+ */
415
+ AnimationAnimateRefMetadata.prototype.options;
416
+ }
417
+ /**
418
+ * Encapsulates an animation sequence.
419
+ * Instantiated and returned by the `sequence()` function.
420
+ *
421
+ * \@publicApi
422
+ * @record
423
+ */
424
+ function AnimationSequenceMetadata() { }
425
+ if (false) {
426
+ /**
427
+ * An array of animation step objects.
428
+ * @type {?}
429
+ */
430
+ AnimationSequenceMetadata.prototype.steps;
431
+ /**
432
+ * An options object containing a delay and
433
+ * developer-defined parameters that provide styling defaults and
434
+ * can be overridden on invocation. Default delay is 0.
435
+ * @type {?}
436
+ */
437
+ AnimationSequenceMetadata.prototype.options;
438
+ }
439
+ /**
440
+ * Encapsulates an animation group.
441
+ * Instantiated and returned by the `{\@link animations/group group()}` function.
442
+ *
443
+ * \@publicApi
444
+ * @record
445
+ */
446
+ function AnimationGroupMetadata() { }
447
+ if (false) {
448
+ /**
449
+ * One or more animation or style steps that form this group.
450
+ * @type {?}
451
+ */
452
+ AnimationGroupMetadata.prototype.steps;
453
+ /**
454
+ * An options object containing a delay and
455
+ * developer-defined parameters that provide styling defaults and
456
+ * can be overridden on invocation. Default delay is 0.
457
+ * @type {?}
458
+ */
459
+ AnimationGroupMetadata.prototype.options;
460
+ }
461
+ /**
462
+ * Encapsulates parameters for staggering the start times of a set of animation steps.
463
+ * Instantiated and returned by the `stagger()` function.
464
+ *
465
+ * \@publicApi
466
+ *
467
+ * @record
468
+ */
469
+ function AnimationStaggerMetadata() { }
470
+ if (false) {
471
+ /**
472
+ * The timing data for the steps.
473
+ * @type {?}
474
+ */
475
+ AnimationStaggerMetadata.prototype.timings;
476
+ /**
477
+ * One or more animation steps.
478
+ * @type {?}
479
+ */
480
+ AnimationStaggerMetadata.prototype.animation;
481
+ }
80
482
  /**
81
483
  * Creates a named animation trigger, containing a list of `state()`
82
484
  * and `transition()` entries to be evaluated when the expression
@@ -931,6 +1333,121 @@ function scheduleMicroTask(cb) {
931
1333
  * @fileoverview added by tsickle
932
1334
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
933
1335
  */
1336
+ /**
1337
+ * Provides programmatic control of a reusable animation sequence,
1338
+ * built using the `build()` method of `AnimationBuilder`. The `build()` method
1339
+ * returns a factory, whose `create()` method instantiates and initializes this interface.
1340
+ *
1341
+ * @see `AnimationBuilder`
1342
+ * @see `AnimationFactory`
1343
+ * @see `animate()`
1344
+ *
1345
+ * \@publicApi
1346
+ * @record
1347
+ */
1348
+ function AnimationPlayer() { }
1349
+ if (false) {
1350
+ /**
1351
+ * The parent of this player, if any.
1352
+ * @type {?}
1353
+ */
1354
+ AnimationPlayer.prototype.parentPlayer;
1355
+ /**
1356
+ * The total run time of the animation, in milliseconds.
1357
+ * @type {?}
1358
+ */
1359
+ AnimationPlayer.prototype.totalTime;
1360
+ /**
1361
+ * Provides a callback to invoke before the animation is destroyed.
1362
+ * @type {?|undefined}
1363
+ */
1364
+ AnimationPlayer.prototype.beforeDestroy;
1365
+ /**
1366
+ * \@internal
1367
+ * Internal
1368
+ * @type {?|undefined}
1369
+ */
1370
+ AnimationPlayer.prototype.triggerCallback;
1371
+ /**
1372
+ * \@internal
1373
+ * Internal
1374
+ * @type {?|undefined}
1375
+ */
1376
+ AnimationPlayer.prototype.disabled;
1377
+ /**
1378
+ * Provides a callback to invoke when the animation finishes.
1379
+ * @see `finish()`
1380
+ * @param {?} fn The callback function.
1381
+ * @return {?}
1382
+ */
1383
+ AnimationPlayer.prototype.onDone = function (fn) { };
1384
+ /**
1385
+ * Provides a callback to invoke when the animation starts.
1386
+ * @see `run()`
1387
+ * @param {?} fn The callback function.
1388
+ * @return {?}
1389
+ */
1390
+ AnimationPlayer.prototype.onStart = function (fn) { };
1391
+ /**
1392
+ * Provides a callback to invoke after the animation is destroyed.
1393
+ * @see `destroy()` / `beforeDestroy()`
1394
+ * @param {?} fn The callback function.
1395
+ * @return {?}
1396
+ */
1397
+ AnimationPlayer.prototype.onDestroy = function (fn) { };
1398
+ /**
1399
+ * Initializes the animation.
1400
+ * @return {?}
1401
+ */
1402
+ AnimationPlayer.prototype.init = function () { };
1403
+ /**
1404
+ * Reports whether the animation has started.
1405
+ * @return {?} True if the animation has started, false otherwise.
1406
+ */
1407
+ AnimationPlayer.prototype.hasStarted = function () { };
1408
+ /**
1409
+ * Runs the animation, invoking the `onStart()` callback.
1410
+ * @return {?}
1411
+ */
1412
+ AnimationPlayer.prototype.play = function () { };
1413
+ /**
1414
+ * Pauses the animation.
1415
+ * @return {?}
1416
+ */
1417
+ AnimationPlayer.prototype.pause = function () { };
1418
+ /**
1419
+ * Restarts the paused animation.
1420
+ * @return {?}
1421
+ */
1422
+ AnimationPlayer.prototype.restart = function () { };
1423
+ /**
1424
+ * Ends the animation, invoking the `onDone()` callback.
1425
+ * @return {?}
1426
+ */
1427
+ AnimationPlayer.prototype.finish = function () { };
1428
+ /**
1429
+ * Destroys the animation, after invoking the `beforeDestroy()` callback.
1430
+ * Calls the `onDestroy()` callback when destruction is completed.
1431
+ * @return {?}
1432
+ */
1433
+ AnimationPlayer.prototype.destroy = function () { };
1434
+ /**
1435
+ * Resets the animation to its initial state.
1436
+ * @return {?}
1437
+ */
1438
+ AnimationPlayer.prototype.reset = function () { };
1439
+ /**
1440
+ * Sets the position of the animation.
1441
+ * @param {?} position A 0-based offset into the duration, in milliseconds.
1442
+ * @return {?}
1443
+ */
1444
+ AnimationPlayer.prototype.setPosition = function (position) { };
1445
+ /**
1446
+ * Reports the current position of the animation.
1447
+ * @return {?} A 0-based offset into the duration, in milliseconds.
1448
+ */
1449
+ AnimationPlayer.prototype.getPosition = function () { };
1450
+ }
934
1451
  /**
935
1452
  * An empty programmatic controller for reusable animations.
936
1453
  * Used internally when animations are disabled, to avoid
@@ -1084,6 +1601,42 @@ class NoopAnimationPlayer {
1084
1601
  methods.length = 0;
1085
1602
  }
1086
1603
  }
1604
+ if (false) {
1605
+ /**
1606
+ * @type {?}
1607
+ * @private
1608
+ */
1609
+ NoopAnimationPlayer.prototype._onDoneFns;
1610
+ /**
1611
+ * @type {?}
1612
+ * @private
1613
+ */
1614
+ NoopAnimationPlayer.prototype._onStartFns;
1615
+ /**
1616
+ * @type {?}
1617
+ * @private
1618
+ */
1619
+ NoopAnimationPlayer.prototype._onDestroyFns;
1620
+ /**
1621
+ * @type {?}
1622
+ * @private
1623
+ */
1624
+ NoopAnimationPlayer.prototype._started;
1625
+ /**
1626
+ * @type {?}
1627
+ * @private
1628
+ */
1629
+ NoopAnimationPlayer.prototype._destroyed;
1630
+ /**
1631
+ * @type {?}
1632
+ * @private
1633
+ */
1634
+ NoopAnimationPlayer.prototype._finished;
1635
+ /** @type {?} */
1636
+ NoopAnimationPlayer.prototype.parentPlayer;
1637
+ /** @type {?} */
1638
+ NoopAnimationPlayer.prototype.totalTime;
1639
+ }
1087
1640
 
1088
1641
  /**
1089
1642
  * @fileoverview added by tsickle
@@ -1364,6 +1917,44 @@ class AnimationGroupPlayer {
1364
1917
  methods.length = 0;
1365
1918
  }
1366
1919
  }
1920
+ if (false) {
1921
+ /**
1922
+ * @type {?}
1923
+ * @private
1924
+ */
1925
+ AnimationGroupPlayer.prototype._onDoneFns;
1926
+ /**
1927
+ * @type {?}
1928
+ * @private
1929
+ */
1930
+ AnimationGroupPlayer.prototype._onStartFns;
1931
+ /**
1932
+ * @type {?}
1933
+ * @private
1934
+ */
1935
+ AnimationGroupPlayer.prototype._finished;
1936
+ /**
1937
+ * @type {?}
1938
+ * @private
1939
+ */
1940
+ AnimationGroupPlayer.prototype._started;
1941
+ /**
1942
+ * @type {?}
1943
+ * @private
1944
+ */
1945
+ AnimationGroupPlayer.prototype._destroyed;
1946
+ /**
1947
+ * @type {?}
1948
+ * @private
1949
+ */
1950
+ AnimationGroupPlayer.prototype._onDestroyFns;
1951
+ /** @type {?} */
1952
+ AnimationGroupPlayer.prototype.parentPlayer;
1953
+ /** @type {?} */
1954
+ AnimationGroupPlayer.prototype.totalTime;
1955
+ /** @type {?} */
1956
+ AnimationGroupPlayer.prototype.players;
1957
+ }
1367
1958
 
1368
1959
  /**
1369
1960
  * @fileoverview added by tsickle