@angular/animations 19.1.0-next.2 → 19.1.0-next.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 v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,6 +10,7 @@ import { AnimationOptions } from '@angular/animations';
10
10
  import { AnimationPlayer } from '@angular/animations';
11
11
  import { AnimationTriggerMetadata } from '@angular/animations';
12
12
  import * as i0 from '@angular/core';
13
+ import { ListenerOptions } from '@angular/core';
13
14
  import type { NgZone } from '@angular/core';
14
15
  import { Renderer2 } from '@angular/core';
15
16
  import { RendererFactory2 } from '@angular/core';
@@ -166,7 +167,7 @@ export declare class ɵAnimationRenderer extends ɵBaseAnimationRenderer impleme
166
167
  factory: AnimationFactoryWithListenerCallback;
167
168
  constructor(factory: AnimationFactoryWithListenerCallback, namespaceId: string, delegate: Renderer2, engine: ɵAnimationEngine, onDestroy?: () => void);
168
169
  setProperty(el: any, name: string, value: any): void;
169
- listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => any): () => void;
170
+ listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => any, options?: ListenerOptions): () => void;
170
171
  }
171
172
 
172
173
  export declare class ɵAnimationRendererFactory implements RendererFactory2 {
@@ -221,7 +222,7 @@ export declare class ɵBaseAnimationRenderer implements Renderer2 {
221
222
  removeStyle(el: any, style: string, flags?: RendererStyleFlags2 | undefined): void;
222
223
  setProperty(el: any, name: string, value: any): void;
223
224
  setValue(node: any, value: string): void;
224
- listen(target: any, eventName: string, callback: (event: any) => boolean | void): () => void;
225
+ listen(target: any, eventName: string, callback: (event: any) => boolean | void, options?: ListenerOptions): () => void;
225
226
  protected disableAnimations(element: any, value: boolean): void;
226
227
  }
227
228
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -982,10 +982,10 @@ function stagger(timings, animation) {
982
982
  * @publicApi
983
983
  */
984
984
  class AnimationBuilder {
985
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: AnimationBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
986
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: AnimationBuilder, providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) });
985
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: AnimationBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
986
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: AnimationBuilder, providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) });
987
987
  }
988
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: AnimationBuilder, decorators: [{
988
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: AnimationBuilder, decorators: [{
989
989
  type: Injectable,
990
990
  args: [{ providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) }]
991
991
  }] });
@@ -1025,10 +1025,10 @@ class BrowserAnimationBuilder extends AnimationBuilder {
1025
1025
  issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
1026
1026
  return new BrowserAnimationFactory(id, this._renderer);
1027
1027
  }
1028
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1029
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: BrowserAnimationBuilder, providedIn: 'root' });
1028
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1029
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: BrowserAnimationBuilder, providedIn: 'root' });
1030
1030
  }
1031
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
1031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
1032
1032
  type: Injectable,
1033
1033
  args: [{ providedIn: 'root' }]
1034
1034
  }], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: Document, decorators: [{
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -548,10 +548,10 @@ class NoopAnimationDriver {
548
548
  animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {
549
549
  return new NoopAnimationPlayer(duration, delay);
550
550
  }
551
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
552
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: NoopAnimationDriver });
551
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
552
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: NoopAnimationDriver });
553
553
  }
554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: NoopAnimationDriver, decorators: [{
554
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: NoopAnimationDriver, decorators: [{
555
555
  type: Injectable
556
556
  }] });
557
557
  /**
@@ -4695,8 +4695,8 @@ class BaseAnimationRenderer {
4695
4695
  setValue(node, value) {
4696
4696
  this.delegate.setValue(node, value);
4697
4697
  }
4698
- listen(target, eventName, callback) {
4699
- return this.delegate.listen(target, eventName, callback);
4698
+ listen(target, eventName, callback, options) {
4699
+ return this.delegate.listen(target, eventName, callback, options);
4700
4700
  }
4701
4701
  disableAnimations(element, value) {
4702
4702
  this.engine.disableAnimations(element, value);
@@ -4723,7 +4723,7 @@ class AnimationRenderer extends BaseAnimationRenderer {
4723
4723
  this.delegate.setProperty(el, name, value);
4724
4724
  }
4725
4725
  }
4726
- listen(target, eventName, callback) {
4726
+ listen(target, eventName, callback, options) {
4727
4727
  if (eventName.charAt(0) == ANIMATION_PREFIX) {
4728
4728
  const element = resolveElementFromTarget(target);
4729
4729
  let name = eventName.slice(1);
@@ -4738,7 +4738,7 @@ class AnimationRenderer extends BaseAnimationRenderer {
4738
4738
  this.factory.scheduleListenerCallback(countId, callback, event);
4739
4739
  });
4740
4740
  }
4741
- return this.delegate.listen(target, eventName, callback);
4741
+ return this.delegate.listen(target, eventName, callback, options);
4742
4742
  }
4743
4743
  }
4744
4744
  function resolveElementFromTarget(target) {