@angular/animations 14.2.2 → 14.2.3

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 v14.2.2
2
+ * @license Angular v14.2.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.2
2
+ * @license Angular v14.2.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.2
2
+ * @license Angular v14.2.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -578,9 +578,9 @@ class NoopAnimationDriver {
578
578
  return new NoopAnimationPlayer(duration, delay);
579
579
  }
580
580
  }
581
- NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
582
- NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NoopAnimationDriver });
583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NoopAnimationDriver, decorators: [{
581
+ NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
582
+ NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NoopAnimationDriver });
583
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NoopAnimationDriver, decorators: [{
584
584
  type: Injectable
585
585
  }] });
586
586
  /**
@@ -1685,25 +1685,21 @@ class AnimationTimelineBuilderVisitor {
1685
1685
  visitAnimateRef(ast, context) {
1686
1686
  const innerContext = context.createSubContext(ast.options);
1687
1687
  innerContext.transformIntoNewTimeline();
1688
- this._applyAnimateRefDelay(ast.animation, context, innerContext);
1688
+ this._applyAnimationRefDelays([ast.options, ast.animation.options], context, innerContext);
1689
1689
  this.visitReference(ast.animation, innerContext);
1690
1690
  context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);
1691
1691
  context.previousNode = ast;
1692
1692
  }
1693
- _applyAnimateRefDelay(animation, context, innerContext) {
1694
- const animationDelay = animation.options?.delay;
1695
- if (!animationDelay) {
1696
- return;
1697
- }
1698
- let animationDelayValue;
1699
- if (typeof animationDelay === 'string') {
1700
- const interpolatedDelay = interpolateParams(animationDelay, animation.options?.params ?? {}, context.errors);
1701
- animationDelayValue = resolveTimingValue(interpolatedDelay);
1702
- }
1703
- else {
1704
- animationDelayValue = animationDelay;
1693
+ _applyAnimationRefDelays(animationsRefsOptions, context, innerContext) {
1694
+ for (const animationRefOptions of animationsRefsOptions) {
1695
+ const animationDelay = animationRefOptions?.delay;
1696
+ if (animationDelay) {
1697
+ const animationDelayValue = typeof animationDelay === 'number' ?
1698
+ animationDelay :
1699
+ resolveTimingValue(interpolateParams(animationDelay, animationRefOptions?.params ?? {}, context.errors));
1700
+ innerContext.delayNextStep(animationDelayValue);
1701
+ }
1705
1702
  }
1706
- innerContext.delayNextStep(animationDelayValue);
1707
1703
  }
1708
1704
  _visitSubInstructions(instructions, context, options) {
1709
1705
  const startTime = context.currentTimeline.currentTime;