@angular/platform-browser 21.0.0-next.9 → 21.0.0-rc.0

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 v21.0.0-next.9
2
+ * @license Angular v21.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -14,185 +14,172 @@ import { DomRendererFactory2 } from './_dom_renderer-chunk.mjs';
14
14
  import { BrowserModule } from './_browser-chunk.mjs';
15
15
 
16
16
  class InjectableAnimationEngine extends _AnimationEngine {
17
- // The `ApplicationRef` is injected here explicitly to force the dependency ordering.
18
- // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they
19
- // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.
20
- constructor(doc, driver, normalizer) {
21
- super(doc, driver, normalizer);
22
- }
23
- ngOnDestroy() {
24
- this.flush();
25
- }
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }], target: i0.ɵɵFactoryTarget.Injectable });
27
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: InjectableAnimationEngine });
17
+ constructor(doc, driver, normalizer) {
18
+ super(doc, driver, normalizer);
19
+ }
20
+ ngOnDestroy() {
21
+ this.flush();
22
+ }
23
+ static ɵfac = i0.ɵɵngDeclareFactory({
24
+ minVersion: "12.0.0",
25
+ version: "21.0.0-rc.0",
26
+ ngImport: i0,
27
+ type: InjectableAnimationEngine,
28
+ deps: [{
29
+ token: DOCUMENT
30
+ }, {
31
+ token: i1.AnimationDriver
32
+ }, {
33
+ token: i1.ɵAnimationStyleNormalizer
34
+ }],
35
+ target: i0.ɵɵFactoryTarget.Injectable
36
+ });
37
+ static ɵprov = i0.ɵɵngDeclareInjectable({
38
+ minVersion: "12.0.0",
39
+ version: "21.0.0-rc.0",
40
+ ngImport: i0,
41
+ type: InjectableAnimationEngine
42
+ });
28
43
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: InjectableAnimationEngine, decorators: [{
30
- type: Injectable
31
- }], ctorParameters: () => [{ type: Document, decorators: [{
32
- type: Inject,
33
- args: [DOCUMENT]
34
- }] }, { type: i1.AnimationDriver }, { type: i1.ɵAnimationStyleNormalizer }] });
44
+ i0.ɵɵngDeclareClassMetadata({
45
+ minVersion: "12.0.0",
46
+ version: "21.0.0-rc.0",
47
+ ngImport: i0,
48
+ type: InjectableAnimationEngine,
49
+ decorators: [{
50
+ type: Injectable
51
+ }],
52
+ ctorParameters: () => [{
53
+ type: Document,
54
+ decorators: [{
55
+ type: Inject,
56
+ args: [DOCUMENT]
57
+ }]
58
+ }, {
59
+ type: i1.AnimationDriver
60
+ }, {
61
+ type: i1.ɵAnimationStyleNormalizer
62
+ }]
63
+ });
35
64
  function instantiateDefaultStyleNormalizer() {
36
- return new _WebAnimationsStyleNormalizer();
65
+ return new _WebAnimationsStyleNormalizer();
37
66
  }
38
67
  function instantiateRendererFactory() {
39
- return new _AnimationRendererFactory(inject(DomRendererFactory2), inject(_AnimationEngine), inject(NgZone));
68
+ return new _AnimationRendererFactory(inject(DomRendererFactory2), inject(_AnimationEngine), inject(NgZone));
40
69
  }
41
- const SHARED_ANIMATION_PROVIDERS = [
42
- { provide: _AnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },
43
- { provide: _AnimationEngine, useClass: InjectableAnimationEngine },
44
- {
45
- provide: RendererFactory2,
46
- useFactory: instantiateRendererFactory,
47
- },
48
- ];
49
- /**
50
- * Separate providers from the actual module so that we can do a local modification in Google3 to
51
- * include them in the BrowserTestingModule.
52
- */
53
- const BROWSER_NOOP_ANIMATIONS_PROVIDERS = [
54
- { provide: AnimationDriver, useClass: NoopAnimationDriver },
55
- { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' },
56
- ...SHARED_ANIMATION_PROVIDERS,
57
- ];
58
- /**
59
- * Separate providers from the actual module so that we can do a local modification in Google3 to
60
- * include them in the BrowserModule.
61
- */
62
- const BROWSER_ANIMATIONS_PROVIDERS = [
63
- // Note: the `ngServerMode` happen inside factories to give the variable time to initialize.
64
- {
65
- provide: AnimationDriver,
66
- useFactory: () => typeof ngServerMode !== 'undefined' && ngServerMode
67
- ? new NoopAnimationDriver()
68
- : new _WebAnimationsDriver(),
69
- },
70
- {
71
- provide: ANIMATION_MODULE_TYPE,
72
- useFactory: () => typeof ngServerMode !== 'undefined' && ngServerMode ? 'NoopAnimations' : 'BrowserAnimations',
73
- },
74
- ...SHARED_ANIMATION_PROVIDERS,
75
- ];
70
+ const SHARED_ANIMATION_PROVIDERS = [{
71
+ provide: _AnimationStyleNormalizer,
72
+ useFactory: instantiateDefaultStyleNormalizer
73
+ }, {
74
+ provide: _AnimationEngine,
75
+ useClass: InjectableAnimationEngine
76
+ }, {
77
+ provide: RendererFactory2,
78
+ useFactory: instantiateRendererFactory
79
+ }];
80
+ const BROWSER_NOOP_ANIMATIONS_PROVIDERS = [{
81
+ provide: AnimationDriver,
82
+ useClass: NoopAnimationDriver
83
+ }, {
84
+ provide: ANIMATION_MODULE_TYPE,
85
+ useValue: 'NoopAnimations'
86
+ }, ...SHARED_ANIMATION_PROVIDERS];
87
+ const BROWSER_ANIMATIONS_PROVIDERS = [{
88
+ provide: AnimationDriver,
89
+ useFactory: () => typeof ngServerMode !== 'undefined' && ngServerMode ? new NoopAnimationDriver() : new _WebAnimationsDriver()
90
+ }, {
91
+ provide: ANIMATION_MODULE_TYPE,
92
+ useFactory: () => typeof ngServerMode !== 'undefined' && ngServerMode ? 'NoopAnimations' : 'BrowserAnimations'
93
+ }, ...SHARED_ANIMATION_PROVIDERS];
76
94
 
77
- /**
78
- * Exports `BrowserModule` with additional dependency-injection providers
79
- * for use with animations. See [Animations](guide/animations).
80
- * @publicApi
81
- *
82
- * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
83
- */
84
95
  class BrowserAnimationsModule {
85
- /**
86
- * Configures the module based on the specified object.
87
- *
88
- * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.
89
- * @see {@link BrowserAnimationsModuleConfig}
90
- *
91
- * @usageNotes
92
- * When registering the `BrowserAnimationsModule`, you can use the `withConfig`
93
- * function as follows:
94
- * ```ts
95
- * @NgModule({
96
- * imports: [BrowserAnimationsModule.withConfig(config)]
97
- * })
98
- * class MyNgModule {}
99
- * ```
100
- */
101
- static withConfig(config) {
102
- return {
103
- ngModule: BrowserAnimationsModule,
104
- providers: config.disableAnimations
105
- ? BROWSER_NOOP_ANIMATIONS_PROVIDERS
106
- : BROWSER_ANIMATIONS_PROVIDERS,
107
- };
108
- }
109
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
110
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.9", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] });
111
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
96
+ static withConfig(config) {
97
+ return {
98
+ ngModule: BrowserAnimationsModule,
99
+ providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS : BROWSER_ANIMATIONS_PROVIDERS
100
+ };
101
+ }
102
+ static ɵfac = i0.ɵɵngDeclareFactory({
103
+ minVersion: "12.0.0",
104
+ version: "21.0.0-rc.0",
105
+ ngImport: i0,
106
+ type: BrowserAnimationsModule,
107
+ deps: [],
108
+ target: i0.ɵɵFactoryTarget.NgModule
109
+ });
110
+ static ɵmod = i0.ɵɵngDeclareNgModule({
111
+ minVersion: "14.0.0",
112
+ version: "21.0.0-rc.0",
113
+ ngImport: i0,
114
+ type: BrowserAnimationsModule,
115
+ exports: [BrowserModule]
116
+ });
117
+ static ɵinj = i0.ɵɵngDeclareInjector({
118
+ minVersion: "12.0.0",
119
+ version: "21.0.0-rc.0",
120
+ ngImport: i0,
121
+ type: BrowserAnimationsModule,
122
+ providers: BROWSER_ANIMATIONS_PROVIDERS,
123
+ imports: [BrowserModule]
124
+ });
112
125
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: BrowserAnimationsModule, decorators: [{
114
- type: NgModule,
115
- args: [{
116
- exports: [BrowserModule],
117
- providers: BROWSER_ANIMATIONS_PROVIDERS,
118
- }]
119
- }] });
120
- /**
121
- * Returns the set of dependency-injection providers
122
- * to enable animations in an application. See [animations guide](guide/animations)
123
- * to learn more about animations in Angular.
124
- *
125
- * @usageNotes
126
- *
127
- * The function is useful when you want to enable animations in an application
128
- * bootstrapped using the `bootstrapApplication` function. In this scenario there
129
- * is no need to import the `BrowserAnimationsModule` NgModule at all, just add
130
- * providers returned by this function to the `providers` list as show below.
131
- *
132
- * ```ts
133
- * bootstrapApplication(RootComponent, {
134
- * providers: [
135
- * provideAnimations()
136
- * ]
137
- * });
138
- * ```
139
- *
140
- * @publicApi
141
- *
142
- * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
143
- *
144
- */
126
+ i0.ɵɵngDeclareClassMetadata({
127
+ minVersion: "12.0.0",
128
+ version: "21.0.0-rc.0",
129
+ ngImport: i0,
130
+ type: BrowserAnimationsModule,
131
+ decorators: [{
132
+ type: NgModule,
133
+ args: [{
134
+ exports: [BrowserModule],
135
+ providers: BROWSER_ANIMATIONS_PROVIDERS
136
+ }]
137
+ }]
138
+ });
145
139
  function provideAnimations() {
146
- _performanceMarkFeature('NgEagerAnimations');
147
- // Return a copy to prevent changes to the original array in case any in-place
148
- // alterations are performed to the `provideAnimations` call results in app code.
149
- return [...BROWSER_ANIMATIONS_PROVIDERS];
140
+ _performanceMarkFeature('NgEagerAnimations');
141
+ return [...BROWSER_ANIMATIONS_PROVIDERS];
150
142
  }
151
- /**
152
- * A null player that must be imported to allow disabling of animations.
153
- * @publicApi
154
- *
155
- * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
156
- */
157
143
  class NoopAnimationsModule {
158
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
159
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.9", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] });
160
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
144
+ static ɵfac = i0.ɵɵngDeclareFactory({
145
+ minVersion: "12.0.0",
146
+ version: "21.0.0-rc.0",
147
+ ngImport: i0,
148
+ type: NoopAnimationsModule,
149
+ deps: [],
150
+ target: i0.ɵɵFactoryTarget.NgModule
151
+ });
152
+ static ɵmod = i0.ɵɵngDeclareNgModule({
153
+ minVersion: "14.0.0",
154
+ version: "21.0.0-rc.0",
155
+ ngImport: i0,
156
+ type: NoopAnimationsModule,
157
+ exports: [BrowserModule]
158
+ });
159
+ static ɵinj = i0.ɵɵngDeclareInjector({
160
+ minVersion: "12.0.0",
161
+ version: "21.0.0-rc.0",
162
+ ngImport: i0,
163
+ type: NoopAnimationsModule,
164
+ providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,
165
+ imports: [BrowserModule]
166
+ });
161
167
  }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: NoopAnimationsModule, decorators: [{
163
- type: NgModule,
164
- args: [{
165
- exports: [BrowserModule],
166
- providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,
167
- }]
168
- }] });
169
- /**
170
- * Returns the set of dependency-injection providers
171
- * to disable animations in an application. See [animations guide](guide/animations)
172
- * to learn more about animations in Angular.
173
- *
174
- * @usageNotes
175
- *
176
- * The function is useful when you want to bootstrap an application using
177
- * the `bootstrapApplication` function, but you need to disable animations
178
- * (for example, when running tests).
179
- *
180
- * ```ts
181
- * bootstrapApplication(RootComponent, {
182
- * providers: [
183
- * provideNoopAnimations()
184
- * ]
185
- * });
186
- * ```
187
- *
188
- * @publicApi
189
- *
190
- * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
191
- */
168
+ i0.ɵɵngDeclareClassMetadata({
169
+ minVersion: "12.0.0",
170
+ version: "21.0.0-rc.0",
171
+ ngImport: i0,
172
+ type: NoopAnimationsModule,
173
+ decorators: [{
174
+ type: NgModule,
175
+ args: [{
176
+ exports: [BrowserModule],
177
+ providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS
178
+ }]
179
+ }]
180
+ });
192
181
  function provideNoopAnimations() {
193
- // Return a copy to prevent changes to the original array in case any in-place
194
- // alterations are performed to the `provideNoopAnimations` call results in app code.
195
- return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];
182
+ return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];
196
183
  }
197
184
 
198
185
  export { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, InjectableAnimationEngine as ɵInjectableAnimationEngine };
@@ -1 +1 @@
1
- {"version":3,"file":"animations.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/platform-browser/animations/src/providers.ts","../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/platform-browser/animations/src/module.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n AnimationDriver,\n NoopAnimationDriver,\n ɵAnimationEngine as AnimationEngine,\n ɵAnimationRendererFactory as AnimationRendererFactory,\n ɵAnimationStyleNormalizer as AnimationStyleNormalizer,\n ɵWebAnimationsDriver as WebAnimationsDriver,\n ɵWebAnimationsStyleNormalizer as WebAnimationsStyleNormalizer,\n} from '@angular/animations/browser';\nimport {DOCUMENT} from '@angular/common';\nimport {\n ANIMATION_MODULE_TYPE,\n inject,\n Inject,\n Injectable,\n NgZone,\n OnDestroy,\n Provider,\n RendererFactory2,\n} from '@angular/core';\nimport {ɵDomRendererFactory2 as DomRendererFactory2} from '../../index';\n\n@Injectable()\nexport class InjectableAnimationEngine extends AnimationEngine implements OnDestroy {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(\n @Inject(DOCUMENT) doc: Document,\n driver: AnimationDriver,\n normalizer: AnimationStyleNormalizer,\n ) {\n super(doc, driver, normalizer);\n }\n\n ngOnDestroy(): void {\n this.flush();\n }\n}\n\nexport function instantiateDefaultStyleNormalizer() {\n return new WebAnimationsStyleNormalizer();\n}\n\nexport function instantiateRendererFactory() {\n return new AnimationRendererFactory(\n inject(DomRendererFactory2),\n inject(AnimationEngine),\n inject(NgZone),\n );\n}\n\nconst SHARED_ANIMATION_PROVIDERS: Provider[] = [\n {provide: AnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer},\n {provide: AnimationEngine, useClass: InjectableAnimationEngine},\n {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n },\n];\n\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nexport const BROWSER_NOOP_ANIMATIONS_PROVIDERS: Provider[] = [\n {provide: AnimationDriver, useClass: NoopAnimationDriver},\n {provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations'},\n ...SHARED_ANIMATION_PROVIDERS,\n];\n\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nexport const BROWSER_ANIMATIONS_PROVIDERS: Provider[] = [\n // Note: the `ngServerMode` happen inside factories to give the variable time to initialize.\n {\n provide: AnimationDriver,\n useFactory: () =>\n typeof ngServerMode !== 'undefined' && ngServerMode\n ? new NoopAnimationDriver()\n : new WebAnimationsDriver(),\n },\n {\n provide: ANIMATION_MODULE_TYPE,\n useFactory: () =>\n typeof ngServerMode !== 'undefined' && ngServerMode ? 'NoopAnimations' : 'BrowserAnimations',\n },\n ...SHARED_ANIMATION_PROVIDERS,\n];\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {\n ModuleWithProviders,\n NgModule,\n Provider,\n ɵperformanceMarkFeature as performanceMarkFeature,\n} from '@angular/core';\nimport {BrowserModule} from '../../index';\n\nimport {BROWSER_ANIMATIONS_PROVIDERS, BROWSER_NOOP_ANIMATIONS_PROVIDERS} from './providers';\n\n/**\n * Object used to configure the behavior of {@link BrowserAnimationsModule}\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\nexport interface BrowserAnimationsModuleConfig {\n /**\n * Whether animations should be disabled. Passing this is identical to providing the\n * `NoopAnimationsModule`, but it can be controlled based on a runtime value.\n */\n disableAnimations?: boolean;\n}\n\n/**\n * Exports `BrowserModule` with additional dependency-injection providers\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\n@NgModule({\n exports: [BrowserModule],\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n})\nexport class BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see {@link BrowserAnimationsModuleConfig}\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```ts\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(\n config: BrowserAnimationsModuleConfig,\n ): ModuleWithProviders<BrowserAnimationsModule> {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations\n ? BROWSER_NOOP_ANIMATIONS_PROVIDERS\n : BROWSER_ANIMATIONS_PROVIDERS,\n };\n }\n}\n\n/**\n * Returns the set of dependency-injection providers\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```ts\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n *\n */\nexport function provideAnimations(): Provider[] {\n performanceMarkFeature('NgEagerAnimations');\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideAnimations` call results in app code.\n return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\n@NgModule({\n exports: [BrowserModule],\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n})\nexport class NoopAnimationsModule {}\n\n/**\n * Returns the set of dependency-injection providers\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```ts\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideNoopAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n *\n * @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23\n */\nexport function provideNoopAnimations(): Provider[] {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideNoopAnimations` call results in app code.\n return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\n}\n"],"names":["AnimationEngine","WebAnimationsStyleNormalizer","AnimationRendererFactory","AnimationStyleNormalizer","WebAnimationsDriver","performanceMarkFeature"],"mappings":";;;;;;;;;;;;;;;AA+BM,MAAO,yBAA0B,SAAQA,gBAAe,CAAA;;;;AAI5D,IAAA,WAAA,CACoB,GAAa,EAC/B,MAAuB,EACvB,UAAoC,EAAA;AAEpC,QAAA,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC;;IAGhC,WAAW,GAAA;QACT,IAAI,CAAC,KAAK,EAAE;;AAbH,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,kBAK1B,QAAQ,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,eAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,yBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;sHALP,yBAAyB,EAAA,CAAA;;sGAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC;;0BAMI,MAAM;2BAAC,QAAQ;;SAYJ,iCAAiC,GAAA;IAC/C,OAAO,IAAIC,6BAA4B,EAAE;AAC3C;SAEgB,0BAA0B,GAAA;AACxC,IAAA,OAAO,IAAIC,yBAAwB,CACjC,MAAM,CAAC,mBAA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;;;;;;;;;;;;;;;;;;;;;;AAsBG;SACa,qBAAqB,GAAA;;;AAGnC,IAAA,OAAO,CAAC,GAAG,iCAAiC,CAAC;AAC/C;;;;"}
1
+ {"version":3,"file":"animations.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/platform-browser/animations/src/providers.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n AnimationDriver,\n NoopAnimationDriver,\n ɵAnimationEngine as AnimationEngine,\n ɵAnimationRendererFactory as AnimationRendererFactory,\n ɵAnimationStyleNormalizer as AnimationStyleNormalizer,\n ɵWebAnimationsDriver as WebAnimationsDriver,\n ɵWebAnimationsStyleNormalizer as WebAnimationsStyleNormalizer,\n} from '@angular/animations/browser';\nimport {DOCUMENT} from '@angular/common';\nimport {\n ANIMATION_MODULE_TYPE,\n inject,\n Inject,\n Injectable,\n NgZone,\n OnDestroy,\n Provider,\n RendererFactory2,\n} from '@angular/core';\nimport {ɵDomRendererFactory2 as DomRendererFactory2} from '../../index';\n\n@Injectable()\nexport class InjectableAnimationEngine extends AnimationEngine implements OnDestroy {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(\n @Inject(DOCUMENT) doc: Document,\n driver: AnimationDriver,\n normalizer: AnimationStyleNormalizer,\n ) {\n super(doc, driver, normalizer);\n }\n\n ngOnDestroy(): void {\n this.flush();\n }\n}\n\nexport function instantiateDefaultStyleNormalizer() {\n return new WebAnimationsStyleNormalizer();\n}\n\nexport function instantiateRendererFactory() {\n return new AnimationRendererFactory(\n inject(DomRendererFactory2),\n inject(AnimationEngine),\n inject(NgZone),\n );\n}\n\nconst SHARED_ANIMATION_PROVIDERS: Provider[] = [\n {provide: AnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer},\n {provide: AnimationEngine, useClass: InjectableAnimationEngine},\n {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n },\n];\n\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nexport const BROWSER_NOOP_ANIMATIONS_PROVIDERS: Provider[] = [\n {provide: AnimationDriver, useClass: NoopAnimationDriver},\n {provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations'},\n ...SHARED_ANIMATION_PROVIDERS,\n];\n\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nexport const BROWSER_ANIMATIONS_PROVIDERS: Provider[] = [\n // Note: the `ngServerMode` happen inside factories to give the variable time to initialize.\n {\n provide: AnimationDriver,\n useFactory: () =>\n typeof ngServerMode !== 'undefined' && ngServerMode\n ? new NoopAnimationDriver()\n : new WebAnimationsDriver(),\n },\n {\n provide: ANIMATION_MODULE_TYPE,\n useFactory: () =>\n typeof ngServerMode !== 'undefined' && ngServerMode ? 'NoopAnimations' : 'BrowserAnimations',\n },\n ...SHARED_ANIMATION_PROVIDERS,\n];\n"],"names":["InjectableAnimationEngine","AnimationEngine","constructor","normalizer","ngOnDestroy","flush","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","deps","token","DOCUMENT","i1","AnimationDriver","ɵAnimationStyleNormalizer","target","ɵɵFactoryTarget","Injectable","ɵprov","ɵɵngDeclareInjectable","ctorParameters","Document","decorators","Inject","inject","DomRendererFactory2","NgZone","provide","AnimationStyleNormalizer","useFactory","instantiateDefaultStyleNormalizer","RendererFactory2","instantiateRendererFactory","BROWSER_NOOP_ANIMATIONS_PROVIDERS"],"mappings":";;;;;;;;;;;;;;;AA+BM,MAAAA,yBAAA,SAAAC,gBAAA,CAAA;AAqBNC,EAAAA,yBAA0CC,UAAA,EAAA;;;AAQ1CC,EAAAA;AACE,IAAA,IAAA,CAAAC,KAAA,EAA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