@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.
@@ -11,5 +11,5 @@
11
11
  * Entry point for all public APIs of the animation package.
12
12
  */
13
13
  import { Version } from '@angular/core';
14
- export const VERSION = new Version('14.0.3');
14
+ export const VERSION = new Version('14.0.4');
15
15
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuaW1hdGlvbnMvc3JjL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUg7Ozs7R0FJRztBQUNILE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdEMsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLElBQUksT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuLyoqXG4gKiBAbW9kdWxlXG4gKiBAZGVzY3JpcHRpb25cbiAqIEVudHJ5IHBvaW50IGZvciBhbGwgcHVibGljIEFQSXMgb2YgdGhlIGFuaW1hdGlvbiBwYWNrYWdlLlxuICovXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcwLjAuMC1QTEFDRUhPTERFUicpO1xuIl19
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.3
2
+ * @license Angular v14.0.4
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.0.3
2
+ * @license Angular v14.0.4
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.0.3
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.3", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
582
- NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NoopAnimationDriver });
583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NoopAnimationDriver, decorators: [{
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
  /**
@@ -2969,10 +2969,13 @@ class AnimationTransitionNamespace {
2969
2969
  }
2970
2970
  _signalRemovalForInnerTriggers(rootElement, context) {
2971
2971
  const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);
2972
+ const shadowElements = rootElement.shadowRoot ?
2973
+ this._engine.driver.query(rootElement.shadowRoot, NG_TRIGGER_SELECTOR, true) :
2974
+ [];
2972
2975
  // emulate a leave animation for all inner nodes within this node.
2973
2976
  // If there are no animations found for any of the nodes then clear the cache
2974
2977
  // for the element.
2975
- elements.forEach(elm => {
2978
+ [...elements, ...shadowElements].forEach(elm => {
2976
2979
  // this means that an inner remove() operation has already kicked off
2977
2980
  // the animation on this element...
2978
2981
  if (elm[REMOVAL_FLAG])
@@ -3047,7 +3050,9 @@ class AnimationTransitionNamespace {
3047
3050
  }
3048
3051
  removeNode(element, context) {
3049
3052
  const engine = this._engine;
3050
- if (element.childElementCount) {
3053
+ const elementHasChildren = !!element.childElementCount;
3054
+ const elementHasShadowChildren = !!(element.shadowRoot && element.shadowRoot.childElementCount);
3055
+ if (elementHasChildren || elementHasShadowChildren) {
3051
3056
  this._signalRemovalForInnerTriggers(element, context);
3052
3057
  }
3053
3058
  // this means that a * => VOID animation was detected and kicked off