@angular/animations 14.0.3 → 14.0.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/render/animation_driver.mjs +3 -3
- package/esm2020/browser/src/render/transition_animation_engine.mjs +8 -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 +11 -6
- package/fesm2015/browser.mjs.map +1 -1
- package/fesm2020/animations.mjs +1 -1
- package/fesm2020/browser/testing.mjs +1 -1
- package/fesm2020/browser.mjs +11 -6
- 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 v14.0.
|
|
2
|
+
* @license Angular v14.0.4
|
|
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.0.
|
|
582
|
-
NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
|
581
|
+
NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
582
|
+
NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: NoopAnimationDriver });
|
|
583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.4", ngImport: i0, type: NoopAnimationDriver, decorators: [{
|
|
584
584
|
type: Injectable
|
|
585
585
|
}] });
|
|
586
586
|
/**
|
|
@@ -2968,10 +2968,13 @@ class AnimationTransitionNamespace {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
_signalRemovalForInnerTriggers(rootElement, context) {
|
|
2970
2970
|
const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);
|
|
2971
|
+
const shadowElements = rootElement.shadowRoot ?
|
|
2972
|
+
this._engine.driver.query(rootElement.shadowRoot, NG_TRIGGER_SELECTOR, true) :
|
|
2973
|
+
[];
|
|
2971
2974
|
// emulate a leave animation for all inner nodes within this node.
|
|
2972
2975
|
// If there are no animations found for any of the nodes then clear the cache
|
|
2973
2976
|
// for the element.
|
|
2974
|
-
elements.forEach(elm => {
|
|
2977
|
+
[...elements, ...shadowElements].forEach(elm => {
|
|
2975
2978
|
// this means that an inner remove() operation has already kicked off
|
|
2976
2979
|
// the animation on this element...
|
|
2977
2980
|
if (elm[REMOVAL_FLAG])
|
|
@@ -3046,7 +3049,9 @@ class AnimationTransitionNamespace {
|
|
|
3046
3049
|
}
|
|
3047
3050
|
removeNode(element, context) {
|
|
3048
3051
|
const engine = this._engine;
|
|
3049
|
-
|
|
3052
|
+
const elementHasChildren = !!element.childElementCount;
|
|
3053
|
+
const elementHasShadowChildren = !!(element.shadowRoot && element.shadowRoot.childElementCount);
|
|
3054
|
+
if (elementHasChildren || elementHasShadowChildren) {
|
|
3050
3055
|
this._signalRemovalForInnerTriggers(element, context);
|
|
3051
3056
|
}
|
|
3052
3057
|
// this means that a * => VOID animation was detected and kicked off
|