@angular/animations 14.2.1 → 14.2.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.1
2
+ * @license Angular v14.2.2
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.1
2
+ * @license Angular v14.2.2
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.1
2
+ * @license Angular v14.2.2
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.1", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
582
- NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: NoopAnimationDriver });
583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: NoopAnimationDriver, decorators: [{
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: [{
584
584
  type: Injectable
585
585
  }] });
586
586
  /**
@@ -1685,10 +1685,26 @@ 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
1689
  this.visitReference(ast.animation, innerContext);
1689
1690
  context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);
1690
1691
  context.previousNode = ast;
1691
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;
1705
+ }
1706
+ innerContext.delayNextStep(animationDelayValue);
1707
+ }
1692
1708
  _visitSubInstructions(instructions, context, options) {
1693
1709
  const startTime = context.currentTimeline.currentTime;
1694
1710
  let furthestTime = startTime;