@angular/animations 15.1.2 → 15.1.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 v15.1.2
2
+ * @license Angular v15.1.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 v15.1.2
2
+ * @license Angular v15.1.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 v15.1.2
2
+ * @license Angular v15.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -550,9 +550,9 @@ class NoopAnimationDriver {
550
550
  return new NoopAnimationPlayer(duration, delay);
551
551
  }
552
552
  }
553
- NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
554
- NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NoopAnimationDriver });
555
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NoopAnimationDriver, decorators: [{
553
+ NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
554
+ NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NoopAnimationDriver });
555
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NoopAnimationDriver, decorators: [{
556
556
  type: Injectable
557
557
  }] });
558
558
  /**
@@ -2434,11 +2434,19 @@ function checkNonAnimatableInTimelines(timelines, triggerName, driver) {
2434
2434
  if (!driver.validateAnimatableStyleProperty) {
2435
2435
  return;
2436
2436
  }
2437
+ const allowedNonAnimatableProps = new Set([
2438
+ // 'easing' is a utility/synthetic prop we use to represent
2439
+ // easing functions, it represents a property of the animation
2440
+ // which is not animatable but different values can be used
2441
+ // in different steps
2442
+ 'easing'
2443
+ ]);
2437
2444
  const invalidNonAnimatableProps = new Set();
2438
2445
  timelines.forEach(({ keyframes }) => {
2439
2446
  const nonAnimatablePropsInitialValues = new Map();
2440
2447
  keyframes.forEach(keyframe => {
2441
- for (const [prop, value] of keyframe.entries()) {
2448
+ const entriesToCheck = Array.from(keyframe.entries()).filter(([prop]) => !allowedNonAnimatableProps.has(prop));
2449
+ for (const [prop, value] of entriesToCheck) {
2442
2450
  if (!driver.validateAnimatableStyleProperty(prop)) {
2443
2451
  if (nonAnimatablePropsInitialValues.has(prop) && !invalidNonAnimatableProps.has(prop)) {
2444
2452
  const propInitialValue = nonAnimatablePropsInitialValues.get(prop);