@angular/animations 13.1.0-next.2 → 13.1.2

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.
Files changed (32) hide show
  1. package/animations.d.ts +172 -168
  2. package/browser/browser.d.ts +10 -9
  3. package/browser/testing/testing.d.ts +3 -3
  4. package/esm2020/browser/src/dsl/animation_ast_builder.mjs +3 -2
  5. package/esm2020/browser/src/dsl/animation_timeline_builder.mjs +8 -8
  6. package/esm2020/browser/src/dsl/element_instruction_map.mjs +3 -10
  7. package/esm2020/browser/src/private_export.mjs +2 -2
  8. package/esm2020/browser/src/render/animation_driver.mjs +8 -7
  9. package/esm2020/browser/src/render/css_keyframes/css_keyframes_driver.mjs +5 -4
  10. package/esm2020/browser/src/render/shared.mjs +1 -19
  11. package/esm2020/browser/src/render/transition_animation_engine.mjs +59 -60
  12. package/esm2020/browser/src/render/web_animations/web_animations_driver.mjs +5 -4
  13. package/esm2020/browser/src/render/web_animations/web_animations_player.mjs +7 -4
  14. package/esm2020/browser/src/util.mjs +1 -3
  15. package/esm2020/browser/testing/src/mock_animation_driver.mjs +4 -4
  16. package/esm2020/src/animation_builder.mjs +6 -4
  17. package/esm2020/src/animation_metadata.mjs +156 -157
  18. package/esm2020/src/players/animation_player.mjs +1 -1
  19. package/esm2020/src/version.mjs +3 -16
  20. package/fesm2015/animations.mjs +162 -161
  21. package/fesm2015/animations.mjs.map +1 -1
  22. package/fesm2015/browser/testing.mjs +5 -5
  23. package/fesm2015/browser/testing.mjs.map +1 -1
  24. package/fesm2015/browser.mjs +93 -111
  25. package/fesm2015/browser.mjs.map +1 -1
  26. package/fesm2020/animations.mjs +162 -161
  27. package/fesm2020/animations.mjs.map +1 -1
  28. package/fesm2020/browser/testing.mjs +5 -5
  29. package/fesm2020/browser/testing.mjs.map +1 -1
  30. package/fesm2020/browser.mjs +90 -111
  31. package/fesm2020/browser.mjs.map +1 -1
  32. package/package.json +2 -2
package/animations.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v13.1.0-next.2
3
- * (c) 2010-2021 Google LLC. https://angular.io/
2
+ * @license Angular v13.1.2
3
+ * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -81,10 +81,6 @@ export declare function animate(timings: string | number, styles?: AnimationStyl
81
81
  * with animations that are assigned using the Angular animation library. CSS keyframes
82
82
  * and transitions are not handled by this API.
83
83
  *
84
- * `animateChild()` does not currently work with route transition animations. Please see
85
- * GitHub Issue {@link https://github.com/angular/angular/issues/30477 #30477} for more
86
- * information.
87
- *
88
84
  * @publicApi
89
85
  */
90
86
  export declare function animateChild(options?: AnimateChildOptions | null): AnimationAnimateChildMetadata;
@@ -240,8 +236,8 @@ export declare interface AnimationAnimateRefMetadata extends AnimationMetadata {
240
236
  * Apps do not typically need to create their own animation players, but if you
241
237
  * do need to, follow these steps:
242
238
  *
243
- * 1. Use the `build()` method to create a programmatic animation using the
244
- * `animate()` function. The method returns an `AnimationFactory` instance.
239
+ * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method
240
+ * to create a programmatic animation. The method returns an `AnimationFactory` instance.
245
241
  *
246
242
  * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.
247
243
  *
@@ -349,16 +345,19 @@ declare interface AnimationEvent_2 {
349
345
  export { AnimationEvent_2 as AnimationEvent }
350
346
 
351
347
  /**
352
- * A factory object returned from the `AnimationBuilder`.`build()` method.
348
+ * A factory object returned from the
349
+ * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
350
+ * method.
353
351
  *
354
352
  * @publicApi
355
353
  */
356
354
  export declare abstract class AnimationFactory {
357
355
  /**
358
356
  * Creates an `AnimationPlayer` instance for the reusable animation defined by
359
- * the `AnimationBuilder`.`build()` method that created this factory.
360
- * Attaches the new player a DOM element.
361
- * @param element The DOM element to which to attach the animation.
357
+ * the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
358
+ * method that created this factory and attaches the new player a DOM element.
359
+ *
360
+ * @param element The DOM element to which to attach the player.
362
361
  * @param options A set of options that can include a time delay and
363
362
  * additional developer-defined parameters.
364
363
  */
@@ -417,7 +416,7 @@ export declare interface AnimationMetadata {
417
416
  export declare const enum AnimationMetadataType {
418
417
  /**
419
418
  * Associates a named animation state with a set of CSS styles.
420
- * See `state()`
419
+ * See [`state()`](api/animations/state)
421
420
  */
422
421
  State = 0,
423
422
  /**
@@ -520,8 +519,10 @@ export declare interface AnimationOptions {
520
519
 
521
520
  /**
522
521
  * Provides programmatic control of a reusable animation sequence,
523
- * built using the `build()` method of `AnimationBuilder`. The `build()` method
524
- * returns a factory, whose `create()` method instantiates and initializes this interface.
522
+ * built using the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
523
+ * method which returns an `AnimationFactory`, whose
524
+ * <code>[create](api/animations/AnimationFactory#create)()</code> method instantiates and
525
+ * initializes this interface.
525
526
  *
526
527
  * @see `AnimationBuilder`
527
528
  * @see `AnimationFactory`
@@ -708,7 +709,7 @@ export declare interface AnimationStaggerMetadata extends AnimationMetadata {
708
709
 
709
710
  /**
710
711
  * Encapsulates an animation state by associating a state name with a set of CSS styles.
711
- * Instantiated and returned by the `state()` function.
712
+ * Instantiated and returned by the [`state()`](api/animations/state) function.
712
713
  *
713
714
  * @publicApi
714
715
  */
@@ -940,7 +941,9 @@ export declare class NoopAnimationPlayer implements AnimationPlayer {
940
941
  *
941
942
  * @param selector The element to query, or a set of elements that contain Angular-specific
942
943
  * characteristics, specified with one or more of the following tokens.
943
- * - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements.
944
+ * - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements (not
945
+ * all elements can be queried via these tokens, see
946
+ * [Entering and Leaving Elements](#entering-and-leaving-elements))
944
947
  * - `query(":animating")` : Query all currently animating elements.
945
948
  * - `query("@triggerName")` : Query elements that contain an animation trigger.
946
949
  * - `query("@*")` : Query all elements that contain an animation triggers.
@@ -953,6 +956,9 @@ export declare class NoopAnimationPlayer implements AnimationPlayer {
953
956
  * @return An object that encapsulates the query data.
954
957
  *
955
958
  * @usageNotes
959
+ *
960
+ * ### Multiple Tokens
961
+ *
956
962
  * Tokens can be merged into a combined query selector string. For example:
957
963
  *
958
964
  * ```typescript
@@ -980,6 +986,26 @@ export declare class NoopAnimationPlayer implements AnimationPlayer {
980
986
  * ], { optional: true })
981
987
  * ```
982
988
  *
989
+ * ### Entering and Leaving Elements
990
+ *
991
+ * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones
992
+ * that can are those that Angular assumes can enter/leave based on their own logic
993
+ * (if their insertion/removal is simply a consequence of that of their parent they
994
+ * should be queried via a different token in their parent's `:enter`/`:leave` transitions).
995
+ *
996
+ * The only elements Angular assumes can enter/leave on their own logic (thus the only
997
+ * ones that can be queried via the `:enter` and `:leave` tokens) are:
998
+ * - Those inserted dynamically (via `ViewContainerRef`)
999
+ * - Those that have a structural directive (which, under the hood, are a subset of the above ones)
1000
+ *
1001
+ * <div class="alert is-helpful">
1002
+ *
1003
+ * Note that elements will be successfully queried via `:enter`/`:leave` even if their
1004
+ * insertion/removal is not done manually via `ViewContainerRef`or caused by their structural
1005
+ * directive (e.g. they enter/exit alongside their parent).
1006
+ *
1007
+ * </div>
1008
+ *
983
1009
  * ### Usage Example
984
1010
  *
985
1011
  * The following example queries for inner elements and animates them
@@ -1177,8 +1203,8 @@ export declare function state(name: string, styles: AnimationStyleMetadata, opti
1177
1203
 
1178
1204
  /**
1179
1205
  * Declares a key/value object containing CSS properties/styles that
1180
- * can then be used for an animation `state`, within an animation `sequence`,
1181
- * or as styling data for calls to `animate()` and `keyframes()`.
1206
+ * can then be used for an animation [`state`](api/animations/state), within an animation
1207
+ *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.
1182
1208
  *
1183
1209
  * @param tokens A set of CSS styles or HTML styles associated with an animation state.
1184
1210
  * The value can be any of the following:
@@ -1221,170 +1247,148 @@ export declare function style(tokens: '*' | {
1221
1247
  }>): AnimationStyleMetadata;
1222
1248
 
1223
1249
  /**
1224
- * Declares an animation transition as a sequence of animation steps to run when a given
1225
- * condition is satisfied. The condition is a Boolean expression or function that compares
1226
- * the previous and current animation states, and returns true if this transition should occur.
1227
- * When the state criteria of a defined transition are met, the associated animation is
1228
- * triggered.
1229
- *
1230
- * @param stateChangeExpr A Boolean expression or function that compares the previous and current
1231
- * animation states, and returns true if this transition should occur. Note that "true" and "false"
1232
- * match 1 and 0, respectively. An expression is evaluated each time a state change occurs in the
1233
- * animation trigger element.
1234
- * The animation steps run when the expression evaluates to true.
1235
- *
1236
- * - A state-change string takes the form "state1 => state2", where each side is a defined animation
1237
- * state, or an asterix (*) to refer to a dynamic start or end state.
1238
- * - The expression string can contain multiple comma-separated statements;
1239
- * for example "state1 => state2, state3 => state4".
1240
- * - Special values `:enter` and `:leave` initiate a transition on the entry and exit states,
1241
- * equivalent to "void => *" and "* => void".
1242
- * - Special values `:increment` and `:decrement` initiate a transition when a numeric value has
1243
- * increased or decreased in value.
1244
- * - A function is executed each time a state change occurs in the animation trigger element.
1245
- * The animation steps run when the function returns true.
1246
- *
1247
- * @param steps One or more animation objects, as returned by the `animate()` or
1248
- * `sequence()` function, that form a transformation from one state to another.
1249
- * A sequence is used by default when you pass an array.
1250
- * @param options An options object that can contain a delay value for the start of the animation,
1251
- * and additional developer-defined parameters. Provided values for additional parameters are used
1252
- * as defaults, and override values can be passed to the caller on invocation.
1253
- * @returns An object that encapsulates the transition data.
1250
+ * Declares an animation transition which is played when a certain specified condition is met.
1254
1251
  *
1255
- * @usageNotes
1256
- * The template associated with a component binds an animation trigger to an element.
1252
+ * @param stateChangeExpr A string with a specific format or a function that specifies when the
1253
+ * animation transition should occur (see [State Change Expression](#state-change-expression)).
1257
1254
  *
1258
- * ```HTML
1259
- * <!-- somewhere inside of my-component-tpl.html -->
1260
- * <div [@myAnimationTrigger]="myStatusExp">...</div>
1261
- * ```
1255
+ * @param steps One or more animation objects that represent the animation's instructions.
1262
1256
  *
1263
- * All transitions are defined within an animation trigger,
1264
- * along with named states that the transitions change to and from.
1257
+ * @param options An options object that can be used to specify a delay for the animation or provide
1258
+ * custom parameters for it.
1265
1259
  *
1266
- * ```typescript
1267
- * trigger("myAnimationTrigger", [
1268
- * // define states
1269
- * state("on", style({ background: "green" })),
1270
- * state("off", style({ background: "grey" })),
1271
- * ...]
1272
- * ```
1260
+ * @returns An object that encapsulates the transition data.
1273
1261
  *
1274
- * Note that when you call the `sequence()` function within a `{@link animations/group group()}`
1275
- * or a `transition()` call, execution does not continue to the next instruction
1276
- * until each of the inner animation steps have completed.
1262
+ * @usageNotes
1277
1263
  *
1278
- * ### Syntax examples
1264
+ * ### State Change Expression
1265
+ *
1266
+ * The State Change Expression instructs Angular when to run the transition's animations, it can
1267
+ *either be
1268
+ * - a string with a specific syntax
1269
+ * - or a function that compares the previous and current state (value of the expression bound to
1270
+ * the element's trigger) and returns `true` if the transition should occur or `false` otherwise
1271
+ *
1272
+ * The string format can be:
1273
+ * - `fromState => toState`, which indicates that the transition's animations should occur then the
1274
+ * expression bound to the trigger's element goes from `fromState` to `toState`
1275
+ *
1276
+ * _Example:_
1277
+ * ```typescript
1278
+ * transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))
1279
+ * ```
1280
+ *
1281
+ * - `fromState <=> toState`, which indicates that the transition's animations should occur then
1282
+ * the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa
1283
+ *
1284
+ * _Example:_
1285
+ * ```typescript
1286
+ * transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))
1287
+ * ```
1288
+ *
1289
+ * - `:enter`/`:leave`, which indicates that the transition's animations should occur when the
1290
+ * element enters or exists the DOM
1291
+ *
1292
+ * _Example:_
1293
+ * ```typescript
1294
+ * transition(':enter', [
1295
+ * style({ opacity: 0 }),
1296
+ * animate('500ms', style({ opacity: 1 }))
1297
+ * ])
1298
+ * ```
1299
+ *
1300
+ * - `:increment`/`:decrement`, which indicates that the transition's animations should occur when
1301
+ * the numerical expression bound to the trigger's element has increased in value or decreased
1302
+ *
1303
+ * _Example:_
1304
+ * ```typescript
1305
+ * transition(':increment', query('@counter', animateChild()))
1306
+ * ```
1307
+ *
1308
+ * - a sequence of any of the above divided by commas, which indicates that transition's animations
1309
+ * should occur whenever one of the state change expressions matches
1310
+ *
1311
+ * _Example:_
1312
+ * ```typescript
1313
+ * transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([
1314
+ * style({ transform: 'scale(1)', offset: 0}),
1315
+ * style({ transform: 'scale(1.1)', offset: 0.7}),
1316
+ * style({ transform: 'scale(1)', offset: 1})
1317
+ * ]))),
1318
+ * ```
1319
+ *
1320
+ * Also note that in such context:
1321
+ * - `void` can be used to indicate the absence of the element
1322
+ * - asterisks can be used as wildcards that match any state
1323
+ * - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is
1324
+ * equivalent to `:leave`)
1325
+ * - `true` and `false` also match expression values of `1` and `0` respectively (but do not match
1326
+ * _truthy_ and _falsy_ values)
1327
+ *
1328
+ * <div class="alert is-helpful">
1329
+ *
1330
+ * Be careful about entering end leaving elements as their transitions present a common
1331
+ * pitfall for developers.
1332
+ *
1333
+ * Note that when an element with a trigger enters the DOM its `:enter` transition always
1334
+ * gets executed, but its `:leave` transition will not be executed if the element is removed
1335
+ * alongside its parent (as it will be removed "without warning" before its transition has
1336
+ * a chance to be executed, the only way that such transition can occur is if the element
1337
+ * is exiting the DOM on its own).
1279
1338
  *
1280
- * The following examples define transitions between the two defined states (and default states),
1281
- * using various options:
1282
1339
  *
1283
- * ```typescript
1284
- * // Transition occurs when the state value
1285
- * // bound to "myAnimationTrigger" changes from "on" to "off"
1286
- * transition("on => off", animate(500))
1287
- * // Run the same animation for both directions
1288
- * transition("on <=> off", animate(500))
1289
- * // Define multiple state-change pairs separated by commas
1290
- * transition("on => off, off => void", animate(500))
1291
- * ```
1340
+ * </div>
1292
1341
  *
1293
- * ### Special values for state-change expressions
1342
+ * ### Animating to a Final State
1294
1343
  *
1295
- * - Catch-all state change for when an element is inserted into the page and the
1296
- * destination state is unknown:
1344
+ * If the final step in a transition is a call to `animate()` that uses a timing value
1345
+ * with no `style` data, that step is automatically considered the final animation arc,
1346
+ * for the element to reach the final state, in such case Angular automatically adds or removes
1347
+ * CSS styles to ensure that the element is in the correct final state.
1297
1348
  *
1298
- * ```typescript
1299
- * transition("void => *", [
1300
- * style({ opacity: 0 }),
1301
- * animate(500)
1302
- * ])
1303
- * ```
1304
1349
  *
1305
- * - Capture a state change between any states:
1350
+ * ### Usage Examples
1306
1351
  *
1307
- * `transition("* => *", animate("1s 0s"))`
1352
+ * - Transition animations applied based on
1353
+ * the trigger's expression value
1308
1354
  *
1309
- * - Entry and exit transitions:
1355
+ * ```HTML
1356
+ * <div [@myAnimationTrigger]="myStatusExp">
1357
+ * ...
1358
+ * </div>
1359
+ * ```
1310
1360
  *
1311
- * ```typescript
1312
- * transition(":enter", [
1313
- * style({ opacity: 0 }),
1314
- * animate(500, style({ opacity: 1 }))
1315
- * ]),
1316
- * transition(":leave", [
1317
- * animate(500, style({ opacity: 0 }))
1361
+ * ```typescript
1362
+ * trigger("myAnimationTrigger", [
1363
+ * ..., // states
1364
+ * transition("on => off, open => closed", animate(500)),
1365
+ * transition("* <=> error", query('.indicator', animateChild()))
1318
1366
  * ])
1319
- * ```
1320
- *
1321
- * - Use `:increment` and `:decrement` to initiate transitions:
1322
- *
1323
- * ```typescript
1324
- * transition(":increment", group([
1325
- * query(':enter', [
1326
- * style({ left: '100%' }),
1327
- * animate('0.5s ease-out', style('*'))
1328
- * ]),
1329
- * query(':leave', [
1330
- * animate('0.5s ease-out', style({ left: '-100%' }))
1331
- * ])
1332
- * ]))
1333
- *
1334
- * transition(":decrement", group([
1335
- * query(':enter', [
1336
- * style({ left: '100%' }),
1337
- * animate('0.5s ease-out', style('*'))
1338
- * ]),
1339
- * query(':leave', [
1340
- * animate('0.5s ease-out', style({ left: '-100%' }))
1341
- * ])
1342
- * ]))
1343
- * ```
1344
- *
1345
- * ### State-change functions
1346
- *
1347
- * Here is an example of a `fromState` specified as a state-change function that invokes an
1348
- * animation when true:
1349
- *
1350
- * ```typescript
1351
- * transition((fromState, toState) =>
1352
- * {
1353
- * return fromState == "off" && toState == "on";
1354
- * },
1355
- * animate("1s 0s"))
1356
- * ```
1357
- *
1358
- * ### Animating to the final state
1359
- *
1360
- * If the final step in a transition is a call to `animate()` that uses a timing value
1361
- * with no style data, that step is automatically considered the final animation arc,
1362
- * for the element to reach the final state. Angular automatically adds or removes
1363
- * CSS styles to ensure that the element is in the correct final state.
1367
+ * ```
1364
1368
  *
1365
- * The following example defines a transition that starts by hiding the element,
1366
- * then makes sure that it animates properly to whatever state is currently active for trigger:
1369
+ * - Transition animations applied based on custom logic dependent
1370
+ * on the trigger's expression value and provided parameters
1367
1371
  *
1368
- * ```typescript
1369
- * transition("void => *", [
1370
- * style({ opacity: 0 }),
1371
- * animate(500)
1372
- * ])
1373
- * ```
1374
- * ### Boolean value matching
1375
- * If a trigger binding value is a Boolean, it can be matched using a transition expression
1376
- * that compares true and false or 1 and 0. For example:
1377
- *
1378
- * ```
1379
- * // in the template
1380
- * <div [@openClose]="open ? true : false">...</div>
1381
- * // in the component metadata
1382
- * trigger('openClose', [
1383
- * state('true', style({ height: '*' })),
1384
- * state('false', style({ height: '0px' })),
1385
- * transition('false <=> true', animate(500))
1386
- * ])
1387
- * ```
1372
+ * ```HTML
1373
+ * <div [@myAnimationTrigger]="{
1374
+ * value: stepName,
1375
+ * params: { target: currentTarget }
1376
+ * }">
1377
+ * ...
1378
+ * </div>
1379
+ * ```
1380
+ *
1381
+ * ```typescript
1382
+ * trigger("myAnimationTrigger", [
1383
+ * ..., // states
1384
+ * transition(
1385
+ * (fromState, toState, _element, params) =>
1386
+ * ['firststep', 'laststep'].includes(fromState.toLowerCase())
1387
+ * && toState === params?.['target'],
1388
+ * animate('1s')
1389
+ * )
1390
+ * ])
1391
+ * ```
1388
1392
  *
1389
1393
  * @publicApi
1390
1394
  **/
@@ -1393,13 +1397,13 @@ export declare function transition(stateChangeExpr: string | ((fromState: string
1393
1397
  }) => boolean), steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationTransitionMetadata;
1394
1398
 
1395
1399
  /**
1396
- * Creates a named animation trigger, containing a list of `state()`
1400
+ * Creates a named animation trigger, containing a list of [`state()`](api/animations/state)
1397
1401
  * and `transition()` entries to be evaluated when the expression
1398
1402
  * bound to the trigger changes.
1399
1403
  *
1400
1404
  * @param name An identifying string.
1401
- * @param definitions An animation definition object, containing an array of `state()`
1402
- * and `transition()` declarations.
1405
+ * @param definitions An animation definition object, containing an array of
1406
+ * [`state()`](api/animations/state) and `transition()` declarations.
1403
1407
  *
1404
1408
  * @return An object that encapsulates the trigger data.
1405
1409
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v13.1.0-next.2
3
- * (c) 2010-2021 Google LLC. https://angular.io/
2
+ * @license Angular v13.1.2
3
+ * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -17,6 +17,9 @@ import { ɵStyleData } from '@angular/animations';
17
17
  export declare abstract class AnimationDriver {
18
18
  static NOOP: AnimationDriver;
19
19
  abstract validateStyleProperty(prop: string): boolean;
20
+ /**
21
+ * @deprecated No longer in use. Will be removed.
22
+ */
20
23
  abstract matchesElement(element: any, selector: string): boolean;
21
24
  abstract containsElement(elm1: any, elm2: any): boolean;
22
25
  abstract query(element: any, selector: string, multi: boolean): any[];
@@ -72,7 +75,7 @@ declare interface DOMAnimation {
72
75
 
73
76
  declare class ElementInstructionMap {
74
77
  private _map;
75
- consume(element: any): AnimationTimelineInstruction[];
78
+ get(element: any): AnimationTimelineInstruction[];
76
79
  append(element: any, instructions: AnimationTimelineInstruction[]): void;
77
80
  has(element: any): boolean;
78
81
  clear(): void;
@@ -150,7 +153,7 @@ export declare const ɵcontainsElement: (elm1: any, elm2: any) => boolean;
150
153
  export declare class ɵCssKeyframesDriver implements AnimationDriver {
151
154
  private _count;
152
155
  validateStyleProperty(prop: string): boolean;
153
- matchesElement(element: any, selector: string): boolean;
156
+ matchesElement(_element: any, _selector: string): boolean;
154
157
  containsElement(elm1: any, elm2: any): boolean;
155
158
  query(element: any, selector: string, multi: boolean): any[];
156
159
  computeStyle(element: any, prop: string, defaultValue?: string): string;
@@ -207,14 +210,12 @@ export declare class ɵCssKeyframesPlayer implements AnimationPlayer {
207
210
 
208
211
  export declare const ɵinvokeQuery: (element: any, selector: string, multi: boolean) => any[];
209
212
 
210
- export declare const ɵmatchesElement: (element: any, selector: string) => boolean;
211
-
212
213
  /**
213
214
  * @publicApi
214
215
  */
215
216
  export declare class ɵNoopAnimationDriver implements AnimationDriver {
216
217
  validateStyleProperty(prop: string): boolean;
217
- matchesElement(element: any, selector: string): boolean;
218
+ matchesElement(_element: any, _selector: string): boolean;
218
219
  containsElement(elm1: any, elm2: any): boolean;
219
220
  query(element: any, selector: string, multi: boolean): any[];
220
221
  computeStyle(element: any, prop: string, defaultValue?: string): string;
@@ -241,7 +242,7 @@ export declare class ɵWebAnimationsDriver implements AnimationDriver {
241
242
  private _isNativeImpl;
242
243
  private _cssKeyframesDriver;
243
244
  validateStyleProperty(prop: string): boolean;
244
- matchesElement(element: any, selector: string): boolean;
245
+ matchesElement(_element: any, _selector: string): boolean;
245
246
  containsElement(elm1: any, elm2: any): boolean;
246
247
  query(element: any, selector: string, multi: boolean): any[];
247
248
  computeStyle(element: any, prop: string, defaultValue?: string): string;
@@ -267,7 +268,7 @@ export declare class ɵWebAnimationsPlayer implements AnimationPlayer {
267
268
  private _finished;
268
269
  private _started;
269
270
  private _destroyed;
270
- private _finalKeyframe;
271
+ private _finalKeyframe?;
271
272
  readonly domPlayer: DOMAnimation;
272
273
  time: number;
273
274
  parentPlayer: AnimationPlayer | null;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v13.1.0-next.2
3
- * (c) 2010-2021 Google LLC. https://angular.io/
2
+ * @license Angular v13.1.2
3
+ * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -15,7 +15,7 @@ import { ɵStyleData } from '@angular/animations';
15
15
  export declare class MockAnimationDriver implements AnimationDriver {
16
16
  static log: AnimationPlayer[];
17
17
  validateStyleProperty(prop: string): boolean;
18
- matchesElement(element: any, selector: string): boolean;
18
+ matchesElement(_element: any, _selector: string): boolean;
19
19
  containsElement(elm1: any, elm2: any): boolean;
20
20
  query(element: any, selector: string, multi: boolean): any[];
21
21
  computeStyle(element: any, prop: string, defaultValue?: string): string;