@angular/animations 15.1.2 → 15.1.4
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.
- package/browser/index.d.ts +1 -1
- package/browser/testing/index.d.ts +1 -1
- package/esm2020/browser/src/dsl/animation_transition_factory.mjs +10 -2
- package/esm2020/browser/src/render/animation_driver.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/animations.mjs +1 -1
- package/fesm2015/browser/testing.mjs +1 -1
- package/fesm2015/browser.mjs +13 -5
- package/fesm2015/browser.mjs.map +1 -1
- package/fesm2020/animations.mjs +1 -1
- package/fesm2020/browser/testing.mjs +1 -1
- package/fesm2020/browser.mjs +13 -5
- package/fesm2020/browser.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/fesm2020/animations.mjs
CHANGED
package/fesm2020/browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.
|
|
2
|
+
* @license Angular v15.1.4
|
|
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.
|
|
554
|
-
NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.
|
|
555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
553
|
+
NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
554
|
+
NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NoopAnimationDriver });
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", 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
|
-
|
|
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);
|