@angular/platform-browser 22.0.0-next.1 → 22.0.0-next.11
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/fesm2022/_browser-chunk.mjs +27 -48
- package/fesm2022/_browser-chunk.mjs.map +1 -1
- package/fesm2022/_dom_renderer-chunk.mjs +48 -32
- package/fesm2022/_dom_renderer-chunk.mjs.map +1 -1
- package/fesm2022/animations-async.mjs +5 -5
- package/fesm2022/animations-async.mjs.map +1 -1
- package/fesm2022/animations.mjs +14 -14
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +98 -331
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +5 -5
- package/types/_browser-chunk.d.ts +5 -3
- package/types/animations-async.d.ts +2 -2
- package/types/animations.d.ts +1 -1
- package/types/platform-browser.d.ts +123 -248
- package/types/testing.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/animations/src/providers.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/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":["InjectableAnimationEngine","AnimationEngine","constructor","doc","driver","normalizer","ngOnDestroy","flush","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","DOCUMENT","token","i1","AnimationDriver","ɵAnimationStyleNormalizer","target","ɵɵFactoryTarget","Injectable","decorators","Inject","instantiateDefaultStyleNormalizer","WebAnimationsStyleNormalizer","instantiateRendererFactory","AnimationRendererFactory","inject","DomRendererFactory2","NgZone","SHARED_ANIMATION_PROVIDERS","provide","AnimationStyleNormalizer","useFactory","useClass","RendererFactory2","BROWSER_NOOP_ANIMATIONS_PROVIDERS","NoopAnimationDriver","ANIMATION_MODULE_TYPE","useValue","BROWSER_ANIMATIONS_PROVIDERS","ngServerMode","WebAnimationsDriver","BrowserAnimationsModule","withConfig","config","ngModule","providers","disableAnimations","deps","NgModule","ɵmod","ɵɵngDeclareNgModule","BrowserModule","imports","args","exports","provideAnimations","performanceMarkFeature","NoopAnimationsModule","provideNoopAnimations"],"mappings":";;;;;;;;;;;;;;;AA+BM,MAAOA,yBAA0B,SAAQC,gBAAe,CAAA;AAI5DC,EAAAA,WAAAA,CACoBC,GAAa,EAC/BC,MAAuB,EACvBC,UAAoC,EAAA;AAEpC,IAAA,KAAK,CAACF,GAAG,EAAEC,MAAM,EAAEC,UAAU,CAAC;AAChC;AAEAC,EAAAA,WAAWA,GAAA;IACT,IAAI,CAACC,KAAK,EAAE;AACd;AAdW,EAAA,OAAAC,IAAA,GAAAC,EAAA,CAAAC,kBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAAd,yBAAyB;;aAK1Be;AAAQ,KAAA,EAAA;MAAAC,KAAA,EAAAC,EAAA,CAAAC;AAAA,KAAA,EAAA;MAAAF,KAAA,EAAAC,EAAA,CAAAE;AAAA,KAAA,CAAA;AAAAC,IAAAA,MAAA,EAAAX,EAAA,CAAAY,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UALPtB;AAAyB,GAAA,CAAA;;;;;;QAAzBA,yBAAyB;AAAAu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IAAAA,IAAA,EAAA+C,oBAAoB;cAHrBN,aAAa;AAAA,GAAA,CAAA;;;;;UAGZM,oBAAoB;AAAAZ,IAAAA,SAAA,EAFpBX,iCAAiC;IAAAkB,OAAA,EAAA,CADlCD,aAAa;AAAA,GAAA,CAAA;;;;;;QAGZM,oBAAoB;AAAAtC,EAAAA,UAAA,EAAA,CAAA;UAJhC6B,QAAQ;AAACK,IAAAA,IAAA,EAAA,CAAA;MACRC,OAAO,EAAE,CAACH,aAAa,CAAC;AACxBN,MAAAA,SAAS,EAAEX;KACZ;;;SA0BewB,qBAAqBA,GAAA;EAGnC,OAAO,CAAC,GAAGxB,iCAAiC,CAAC;AAC/C;;;;"}
|
|
1
|
+
{"version":3,"file":"animations.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/animations/src/providers.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/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":["InjectableAnimationEngine","AnimationEngine","constructor","doc","driver","normalizer","ngOnDestroy","flush","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","DOCUMENT","token","i1","AnimationDriver","ɵAnimationStyleNormalizer","target","ɵɵFactoryTarget","Injectable","decorators","Inject","instantiateDefaultStyleNormalizer","WebAnimationsStyleNormalizer","instantiateRendererFactory","AnimationRendererFactory","inject","DomRendererFactory2","NgZone","SHARED_ANIMATION_PROVIDERS","provide","AnimationStyleNormalizer","useFactory","useClass","RendererFactory2","BROWSER_NOOP_ANIMATIONS_PROVIDERS","NoopAnimationDriver","ANIMATION_MODULE_TYPE","useValue","BROWSER_ANIMATIONS_PROVIDERS","ngServerMode","WebAnimationsDriver","BrowserAnimationsModule","withConfig","config","ngModule","providers","disableAnimations","deps","NgModule","ɵmod","ɵɵngDeclareNgModule","BrowserModule","imports","args","exports","provideAnimations","performanceMarkFeature","NoopAnimationsModule","provideNoopAnimations"],"mappings":";;;;;;;;;;;;;;;AA+BM,MAAOA,yBAA0B,SAAQC,gBAAe,CAAA;AAI5DC,EAAAA,WAAAA,CACoBC,GAAa,EAC/BC,MAAuB,EACvBC,UAAoC,EAAA;AAEpC,IAAA,KAAK,CAACF,GAAG,EAAEC,MAAM,EAAEC,UAAU,CAAC;AAChC,EAAA;AAEAC,EAAAA,WAAWA,GAAA;IACT,IAAI,CAACC,KAAK,EAAE;AACd,EAAA;AAdW,EAAA,OAAAC,IAAA,GAAAC,EAAA,CAAAC,kBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAAd,yBAAyB;;aAK1Be;AAAQ,KAAA,EAAA;MAAAC,KAAA,EAAAC,EAAA,CAAAC;AAAA,KAAA,EAAA;MAAAF,KAAA,EAAAC,EAAA,CAAAE;AAAA,KAAA,CAAA;AAAAC,IAAAA,MAAA,EAAAX,EAAA,CAAAY,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UALPtB;AAAyB,GAAA,CAAA;;;;;;QAAzBA,yBAAyB;AAAAuB,EAAAA,UAAA,EAAA,CAAA;UADrCD;;;;;YAMIE,MAAM;aAACT,QAAQ;;;;;;;;SAYJU,iCAAiCA,GAAA;EAC/C,OAAO,IAAIC,6BAA4B,EAAE;AAC3C;SAEgBC,0BAA0BA,GAAA;AACxC,EAAA,OAAO,IAA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oBAAoB;AAAAtC,EAAAA,UAAA,EAAA,CAAA;UAJhC6B,QAAQ;AAACK,IAAAA,IAAA,EAAA,CAAA;MACRC,OAAO,EAAE,CAACH,aAAa,CAAC;AACxBN,MAAAA,SAAS,EAAEX;KACZ;;;SA0BewB,qBAAqBA,GAAA;EAGnC,OAAO,CAAC,GAAGxB,iCAAiC,CAAC;AAC/C;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.11
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8,9 +8,8 @@ export { BrowserModule, bootstrapApplication, createApplication, platformBrowser
|
|
|
8
8
|
import { ɵgetDOM as _getDOM, DOCUMENT } from '@angular/common';
|
|
9
9
|
export { ɵgetDOM } from '@angular/common';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
export { EventManager, REMOVE_STYLES_ON_COMPONENT_DESTROY, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, SharedStylesHost as ɵSharedStylesHost } from './_dom_renderer-chunk.mjs';
|
|
11
|
+
import { Inject, Injectable, ɵglobal as _global, ApplicationRef, ɵRuntimeError as _RuntimeError, makeEnvironmentProviders, ɵCACHE_ACTIVE as _CACHE_ACTIVE, APP_BOOTSTRAP_LISTENER, provideStabilityDebugging, ɵwithDomHydration as _withDomHydration, ɵwithIncrementalHydration as _withIncrementalHydration, inject, ɵwithEventReplay as _withEventReplay, ɵwithI18nSupport as _withI18nSupport, ENVIRONMENT_INITIALIZER, ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION as _IS_ENABLED_BLOCKING_INITIAL_NAVIGATION, ɵConsole as _Console, ɵformatRuntimeError as _formatRuntimeError, ɵXSS_SECURITY_URL as _XSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow as _allowSanitizationBypassAndThrow, ɵunwrapSafeValue as _unwrapSafeValue, ɵ_sanitizeUrl as __sanitizeUrl, ɵ_sanitizeHtml as __sanitizeHtml, ɵbypassSanitizationTrustHtml as _bypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle as _bypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript as _bypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl as _bypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl as _bypassSanitizationTrustResourceUrl, forwardRef, Version } from '@angular/core';
|
|
12
|
+
export { EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, REMOVE_STYLES_ON_COMPONENT_DESTROY, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, SharedStylesHost as ɵSharedStylesHost } from './_dom_renderer-chunk.mjs';
|
|
14
13
|
import { ɵwithHttpTransferCache as _withHttpTransferCache } from '@angular/common/http';
|
|
15
14
|
|
|
16
15
|
class Meta {
|
|
@@ -87,7 +86,7 @@ class Meta {
|
|
|
87
86
|
}
|
|
88
87
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
89
88
|
minVersion: "12.0.0",
|
|
90
|
-
version: "22.0.0-next.
|
|
89
|
+
version: "22.0.0-next.11",
|
|
91
90
|
ngImport: i0,
|
|
92
91
|
type: Meta,
|
|
93
92
|
deps: [{
|
|
@@ -97,7 +96,7 @@ class Meta {
|
|
|
97
96
|
});
|
|
98
97
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
99
98
|
minVersion: "12.0.0",
|
|
100
|
-
version: "22.0.0-next.
|
|
99
|
+
version: "22.0.0-next.11",
|
|
101
100
|
ngImport: i0,
|
|
102
101
|
type: Meta,
|
|
103
102
|
providedIn: 'root'
|
|
@@ -105,7 +104,7 @@ class Meta {
|
|
|
105
104
|
}
|
|
106
105
|
i0.ɵɵngDeclareClassMetadata({
|
|
107
106
|
minVersion: "12.0.0",
|
|
108
|
-
version: "22.0.0-next.
|
|
107
|
+
version: "22.0.0-next.11",
|
|
109
108
|
ngImport: i0,
|
|
110
109
|
type: Meta,
|
|
111
110
|
decorators: [{
|
|
@@ -139,7 +138,7 @@ class Title {
|
|
|
139
138
|
}
|
|
140
139
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
141
140
|
minVersion: "12.0.0",
|
|
142
|
-
version: "22.0.0-next.
|
|
141
|
+
version: "22.0.0-next.11",
|
|
143
142
|
ngImport: i0,
|
|
144
143
|
type: Title,
|
|
145
144
|
deps: [{
|
|
@@ -149,7 +148,7 @@ class Title {
|
|
|
149
148
|
});
|
|
150
149
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
151
150
|
minVersion: "12.0.0",
|
|
152
|
-
version: "22.0.0-next.
|
|
151
|
+
version: "22.0.0-next.11",
|
|
153
152
|
ngImport: i0,
|
|
154
153
|
type: Title,
|
|
155
154
|
providedIn: 'root'
|
|
@@ -157,7 +156,7 @@ class Title {
|
|
|
157
156
|
}
|
|
158
157
|
i0.ɵɵngDeclareClassMetadata({
|
|
159
158
|
minVersion: "12.0.0",
|
|
160
|
-
version: "22.0.0-next.
|
|
159
|
+
version: "22.0.0-next.11",
|
|
161
160
|
ngImport: i0,
|
|
162
161
|
type: Title,
|
|
163
162
|
decorators: [{
|
|
@@ -247,268 +246,100 @@ function elementMatches(n, selector) {
|
|
|
247
246
|
return false;
|
|
248
247
|
}
|
|
249
248
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
249
|
+
var HydrationFeatureKind;
|
|
250
|
+
(function (HydrationFeatureKind) {
|
|
251
|
+
HydrationFeatureKind[HydrationFeatureKind["NoHttpTransferCache"] = 0] = "NoHttpTransferCache";
|
|
252
|
+
HydrationFeatureKind[HydrationFeatureKind["HttpTransferCacheOptions"] = 1] = "HttpTransferCacheOptions";
|
|
253
|
+
HydrationFeatureKind[HydrationFeatureKind["I18nSupport"] = 2] = "I18nSupport";
|
|
254
|
+
HydrationFeatureKind[HydrationFeatureKind["EventReplay"] = 3] = "EventReplay";
|
|
255
|
+
HydrationFeatureKind[HydrationFeatureKind["IncrementalHydration"] = 4] = "IncrementalHydration";
|
|
256
|
+
HydrationFeatureKind[HydrationFeatureKind["NoIncrementalHydration"] = 5] = "NoIncrementalHydration";
|
|
257
|
+
})(HydrationFeatureKind || (HydrationFeatureKind = {}));
|
|
258
|
+
function hydrationFeature(ɵkind, ɵproviders = [], ɵoptions = {}) {
|
|
259
|
+
return {
|
|
260
|
+
ɵkind,
|
|
261
|
+
ɵproviders
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function withNoHttpTransferCache() {
|
|
265
|
+
return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);
|
|
266
|
+
}
|
|
267
|
+
function withHttpTransferCacheOptions(options) {
|
|
268
|
+
return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, _withHttpTransferCache(options));
|
|
269
|
+
}
|
|
270
|
+
function withI18nSupport() {
|
|
271
|
+
return hydrationFeature(HydrationFeatureKind.I18nSupport, _withI18nSupport());
|
|
272
|
+
}
|
|
273
|
+
function withEventReplay() {
|
|
274
|
+
return hydrationFeature(HydrationFeatureKind.EventReplay, _withEventReplay());
|
|
275
|
+
}
|
|
276
|
+
function withIncrementalHydration() {
|
|
277
|
+
return hydrationFeature(HydrationFeatureKind.IncrementalHydration, _withIncrementalHydration());
|
|
278
|
+
}
|
|
279
|
+
function withNoIncrementalHydration() {
|
|
280
|
+
return hydrationFeature(HydrationFeatureKind.NoIncrementalHydration);
|
|
281
|
+
}
|
|
282
|
+
function provideEnabledBlockingInitialNavigationDetector() {
|
|
283
|
+
return [{
|
|
284
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
285
|
+
useValue: () => {
|
|
286
|
+
const isEnabledBlockingInitialNavigation = inject(_IS_ENABLED_BLOCKING_INITIAL_NAVIGATION, {
|
|
287
|
+
optional: true
|
|
288
|
+
});
|
|
289
|
+
if (isEnabledBlockingInitialNavigation) {
|
|
290
|
+
const console = inject(_Console);
|
|
291
|
+
const message = _formatRuntimeError(5001, 'Configuration error: found both hydration and enabledBlocking initial navigation ' + 'in the same application, which is a contradiction.');
|
|
292
|
+
console.warn(message);
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
multi: true
|
|
296
|
+
}];
|
|
297
|
+
}
|
|
298
|
+
function provideClientHydration(...features) {
|
|
299
|
+
const providers = [];
|
|
300
|
+
const featuresKind = new Set();
|
|
301
|
+
for (const {
|
|
302
|
+
ɵproviders,
|
|
303
|
+
ɵkind
|
|
304
|
+
} of features) {
|
|
305
|
+
featuresKind.add(ɵkind);
|
|
306
|
+
if (ɵproviders.length) {
|
|
307
|
+
providers.push(ɵproviders);
|
|
298
308
|
}
|
|
299
|
-
return mc;
|
|
300
309
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
type: HammerGestureConfig,
|
|
306
|
-
deps: [],
|
|
307
|
-
target: i0.ɵɵFactoryTarget.Injectable
|
|
308
|
-
});
|
|
309
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
310
|
-
minVersion: "12.0.0",
|
|
311
|
-
version: "22.0.0-next.1",
|
|
312
|
-
ngImport: i0,
|
|
313
|
-
type: HammerGestureConfig
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
317
|
-
minVersion: "12.0.0",
|
|
318
|
-
version: "22.0.0-next.1",
|
|
319
|
-
ngImport: i0,
|
|
320
|
-
type: HammerGestureConfig,
|
|
321
|
-
decorators: [{
|
|
322
|
-
type: Injectable
|
|
323
|
-
}]
|
|
324
|
-
});
|
|
325
|
-
class HammerGesturesPlugin extends EventManagerPlugin {
|
|
326
|
-
_config;
|
|
327
|
-
_injector;
|
|
328
|
-
loader;
|
|
329
|
-
_loaderPromise = null;
|
|
330
|
-
constructor(doc, _config, _injector, loader) {
|
|
331
|
-
super(doc);
|
|
332
|
-
this._config = _config;
|
|
333
|
-
this._injector = _injector;
|
|
334
|
-
this.loader = loader;
|
|
335
|
-
}
|
|
336
|
-
supports(eventName) {
|
|
337
|
-
if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
|
|
338
|
-
return false;
|
|
310
|
+
const hasHttpTransferCacheOptions = featuresKind.has(HydrationFeatureKind.HttpTransferCacheOptions);
|
|
311
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
312
|
+
if (featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) && hasHttpTransferCacheOptions) {
|
|
313
|
+
throw new _RuntimeError(5001, 'Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');
|
|
339
314
|
}
|
|
340
|
-
if (
|
|
341
|
-
|
|
342
|
-
const _console = this._injector.get(_Console);
|
|
343
|
-
_console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` + `loaded and no custom loader has been specified.`);
|
|
344
|
-
}
|
|
345
|
-
return false;
|
|
315
|
+
if (featuresKind.has(HydrationFeatureKind.IncrementalHydration) && featuresKind.has(HydrationFeatureKind.NoIncrementalHydration)) {
|
|
316
|
+
throw new _RuntimeError(5001, 'Configuration error: found both withIncrementalHydration() and withNoIncrementalHydration() in the same call to provideClientHydration(), which is a contradiction.');
|
|
346
317
|
}
|
|
347
|
-
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
if (!window.Hammer && this.loader) {
|
|
353
|
-
this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());
|
|
354
|
-
let cancelRegistration = false;
|
|
355
|
-
let deregister = () => {
|
|
356
|
-
cancelRegistration = true;
|
|
357
|
-
};
|
|
358
|
-
zone.runOutsideAngular(() => this._loaderPromise.then(() => {
|
|
359
|
-
if (!window.Hammer) {
|
|
360
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
361
|
-
const _console = this._injector.get(_Console);
|
|
362
|
-
_console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
|
|
363
|
-
}
|
|
364
|
-
deregister = () => {};
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
if (!cancelRegistration) {
|
|
368
|
-
deregister = this.addEventListener(element, eventName, handler);
|
|
369
|
-
}
|
|
370
|
-
}).catch(() => {
|
|
371
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
372
|
-
const _console = this._injector.get(_Console);
|
|
373
|
-
_console.warn(`The "${eventName}" event cannot be bound because the custom ` + `Hammer.JS loader failed.`);
|
|
374
|
-
}
|
|
375
|
-
deregister = () => {};
|
|
376
|
-
}));
|
|
377
|
-
return () => {
|
|
378
|
-
deregister();
|
|
379
|
-
};
|
|
318
|
+
}
|
|
319
|
+
return makeEnvironmentProviders([typeof ngDevMode !== 'undefined' && ngDevMode ? provideEnabledBlockingInitialNavigationDetector() : [], typeof ngDevMode !== 'undefined' && ngDevMode ? provideStabilityDebugging() : [], _withDomHydration(), featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions ? [] : _withHttpTransferCache({}), featuresKind.has(HydrationFeatureKind.NoIncrementalHydration) ? [] : _withIncrementalHydration(), providers, {
|
|
320
|
+
provide: _CACHE_ACTIVE,
|
|
321
|
+
useValue: {
|
|
322
|
+
isActive: true
|
|
380
323
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
};
|
|
388
|
-
mc.on(eventName, callback);
|
|
324
|
+
}, {
|
|
325
|
+
provide: APP_BOOTSTRAP_LISTENER,
|
|
326
|
+
multi: true,
|
|
327
|
+
useFactory: () => {
|
|
328
|
+
const appRef = inject(ApplicationRef);
|
|
329
|
+
const cacheState = inject(_CACHE_ACTIVE);
|
|
389
330
|
return () => {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
331
|
+
appRef.whenStable().then(() => {
|
|
332
|
+
cacheState.isActive = false;
|
|
333
|
+
});
|
|
394
334
|
};
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
isCustomEvent(eventName) {
|
|
398
|
-
return this._config.events.indexOf(eventName) > -1;
|
|
399
|
-
}
|
|
400
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
401
|
-
minVersion: "12.0.0",
|
|
402
|
-
version: "22.0.0-next.1",
|
|
403
|
-
ngImport: i0,
|
|
404
|
-
type: HammerGesturesPlugin,
|
|
405
|
-
deps: [{
|
|
406
|
-
token: DOCUMENT
|
|
407
|
-
}, {
|
|
408
|
-
token: HAMMER_GESTURE_CONFIG
|
|
409
|
-
}, {
|
|
410
|
-
token: i0.Injector
|
|
411
|
-
}, {
|
|
412
|
-
token: HAMMER_LOADER,
|
|
413
|
-
optional: true
|
|
414
|
-
}],
|
|
415
|
-
target: i0.ɵɵFactoryTarget.Injectable
|
|
416
|
-
});
|
|
417
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
418
|
-
minVersion: "12.0.0",
|
|
419
|
-
version: "22.0.0-next.1",
|
|
420
|
-
ngImport: i0,
|
|
421
|
-
type: HammerGesturesPlugin
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
425
|
-
minVersion: "12.0.0",
|
|
426
|
-
version: "22.0.0-next.1",
|
|
427
|
-
ngImport: i0,
|
|
428
|
-
type: HammerGesturesPlugin,
|
|
429
|
-
decorators: [{
|
|
430
|
-
type: Injectable
|
|
431
|
-
}],
|
|
432
|
-
ctorParameters: () => [{
|
|
433
|
-
type: undefined,
|
|
434
|
-
decorators: [{
|
|
435
|
-
type: Inject,
|
|
436
|
-
args: [DOCUMENT]
|
|
437
|
-
}]
|
|
438
|
-
}, {
|
|
439
|
-
type: HammerGestureConfig,
|
|
440
|
-
decorators: [{
|
|
441
|
-
type: Inject,
|
|
442
|
-
args: [HAMMER_GESTURE_CONFIG]
|
|
443
|
-
}]
|
|
444
|
-
}, {
|
|
445
|
-
type: i0.Injector
|
|
446
|
-
}, {
|
|
447
|
-
type: undefined,
|
|
448
|
-
decorators: [{
|
|
449
|
-
type: Optional
|
|
450
|
-
}, {
|
|
451
|
-
type: Inject,
|
|
452
|
-
args: [HAMMER_LOADER]
|
|
453
|
-
}]
|
|
454
|
-
}]
|
|
455
|
-
});
|
|
456
|
-
class HammerModule {
|
|
457
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
458
|
-
minVersion: "12.0.0",
|
|
459
|
-
version: "22.0.0-next.1",
|
|
460
|
-
ngImport: i0,
|
|
461
|
-
type: HammerModule,
|
|
462
|
-
deps: [],
|
|
463
|
-
target: i0.ɵɵFactoryTarget.NgModule
|
|
464
|
-
});
|
|
465
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
466
|
-
minVersion: "14.0.0",
|
|
467
|
-
version: "22.0.0-next.1",
|
|
468
|
-
ngImport: i0,
|
|
469
|
-
type: HammerModule
|
|
470
|
-
});
|
|
471
|
-
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
472
|
-
minVersion: "12.0.0",
|
|
473
|
-
version: "22.0.0-next.1",
|
|
474
|
-
ngImport: i0,
|
|
475
|
-
type: HammerModule,
|
|
476
|
-
providers: [{
|
|
477
|
-
provide: EVENT_MANAGER_PLUGINS,
|
|
478
|
-
useClass: HammerGesturesPlugin,
|
|
479
|
-
multi: true,
|
|
480
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]]
|
|
481
|
-
}, {
|
|
482
|
-
provide: HAMMER_GESTURE_CONFIG,
|
|
483
|
-
useClass: HammerGestureConfig
|
|
484
|
-
}]
|
|
485
|
-
});
|
|
335
|
+
}
|
|
336
|
+
}]);
|
|
486
337
|
}
|
|
487
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
488
|
-
minVersion: "12.0.0",
|
|
489
|
-
version: "22.0.0-next.1",
|
|
490
|
-
ngImport: i0,
|
|
491
|
-
type: HammerModule,
|
|
492
|
-
decorators: [{
|
|
493
|
-
type: NgModule,
|
|
494
|
-
args: [{
|
|
495
|
-
providers: [{
|
|
496
|
-
provide: EVENT_MANAGER_PLUGINS,
|
|
497
|
-
useClass: HammerGesturesPlugin,
|
|
498
|
-
multi: true,
|
|
499
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]]
|
|
500
|
-
}, {
|
|
501
|
-
provide: HAMMER_GESTURE_CONFIG,
|
|
502
|
-
useClass: HammerGestureConfig
|
|
503
|
-
}]
|
|
504
|
-
}]
|
|
505
|
-
}]
|
|
506
|
-
});
|
|
507
338
|
|
|
508
339
|
class DomSanitizer {
|
|
509
340
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
510
341
|
minVersion: "12.0.0",
|
|
511
|
-
version: "22.0.0-next.
|
|
342
|
+
version: "22.0.0-next.11",
|
|
512
343
|
ngImport: i0,
|
|
513
344
|
type: DomSanitizer,
|
|
514
345
|
deps: [],
|
|
@@ -516,7 +347,7 @@ class DomSanitizer {
|
|
|
516
347
|
});
|
|
517
348
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
518
349
|
minVersion: "12.0.0",
|
|
519
|
-
version: "22.0.0-next.
|
|
350
|
+
version: "22.0.0-next.11",
|
|
520
351
|
ngImport: i0,
|
|
521
352
|
type: DomSanitizer,
|
|
522
353
|
providedIn: 'root',
|
|
@@ -525,7 +356,7 @@ class DomSanitizer {
|
|
|
525
356
|
}
|
|
526
357
|
i0.ɵɵngDeclareClassMetadata({
|
|
527
358
|
minVersion: "12.0.0",
|
|
528
|
-
version: "22.0.0-next.
|
|
359
|
+
version: "22.0.0-next.11",
|
|
529
360
|
ngImport: i0,
|
|
530
361
|
type: DomSanitizer,
|
|
531
362
|
decorators: [{
|
|
@@ -593,7 +424,7 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
|
593
424
|
}
|
|
594
425
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
595
426
|
minVersion: "12.0.0",
|
|
596
|
-
version: "22.0.0-next.
|
|
427
|
+
version: "22.0.0-next.11",
|
|
597
428
|
ngImport: i0,
|
|
598
429
|
type: DomSanitizerImpl,
|
|
599
430
|
deps: [{
|
|
@@ -603,7 +434,7 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
|
603
434
|
});
|
|
604
435
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
605
436
|
minVersion: "12.0.0",
|
|
606
|
-
version: "22.0.0-next.
|
|
437
|
+
version: "22.0.0-next.11",
|
|
607
438
|
ngImport: i0,
|
|
608
439
|
type: DomSanitizerImpl,
|
|
609
440
|
providedIn: 'root'
|
|
@@ -611,7 +442,7 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
|
611
442
|
}
|
|
612
443
|
i0.ɵɵngDeclareClassMetadata({
|
|
613
444
|
minVersion: "12.0.0",
|
|
614
|
-
version: "22.0.0-next.
|
|
445
|
+
version: "22.0.0-next.11",
|
|
615
446
|
ngImport: i0,
|
|
616
447
|
type: DomSanitizerImpl,
|
|
617
448
|
decorators: [{
|
|
@@ -629,71 +460,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
629
460
|
}]
|
|
630
461
|
});
|
|
631
462
|
|
|
632
|
-
|
|
633
|
-
(function (HydrationFeatureKind) {
|
|
634
|
-
HydrationFeatureKind[HydrationFeatureKind["NoHttpTransferCache"] = 0] = "NoHttpTransferCache";
|
|
635
|
-
HydrationFeatureKind[HydrationFeatureKind["HttpTransferCacheOptions"] = 1] = "HttpTransferCacheOptions";
|
|
636
|
-
HydrationFeatureKind[HydrationFeatureKind["I18nSupport"] = 2] = "I18nSupport";
|
|
637
|
-
HydrationFeatureKind[HydrationFeatureKind["EventReplay"] = 3] = "EventReplay";
|
|
638
|
-
HydrationFeatureKind[HydrationFeatureKind["IncrementalHydration"] = 4] = "IncrementalHydration";
|
|
639
|
-
})(HydrationFeatureKind || (HydrationFeatureKind = {}));
|
|
640
|
-
function hydrationFeature(ɵkind, ɵproviders = [], ɵoptions = {}) {
|
|
641
|
-
return {
|
|
642
|
-
ɵkind,
|
|
643
|
-
ɵproviders
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
function withNoHttpTransferCache() {
|
|
647
|
-
return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);
|
|
648
|
-
}
|
|
649
|
-
function withHttpTransferCacheOptions(options) {
|
|
650
|
-
return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, _withHttpTransferCache(options));
|
|
651
|
-
}
|
|
652
|
-
function withI18nSupport() {
|
|
653
|
-
return hydrationFeature(HydrationFeatureKind.I18nSupport, _withI18nSupport());
|
|
654
|
-
}
|
|
655
|
-
function withEventReplay() {
|
|
656
|
-
return hydrationFeature(HydrationFeatureKind.EventReplay, _withEventReplay());
|
|
657
|
-
}
|
|
658
|
-
function withIncrementalHydration() {
|
|
659
|
-
return hydrationFeature(HydrationFeatureKind.IncrementalHydration, _withIncrementalHydration());
|
|
660
|
-
}
|
|
661
|
-
function provideEnabledBlockingInitialNavigationDetector() {
|
|
662
|
-
return [{
|
|
663
|
-
provide: ENVIRONMENT_INITIALIZER,
|
|
664
|
-
useValue: () => {
|
|
665
|
-
const isEnabledBlockingInitialNavigation = inject(_IS_ENABLED_BLOCKING_INITIAL_NAVIGATION, {
|
|
666
|
-
optional: true
|
|
667
|
-
});
|
|
668
|
-
if (isEnabledBlockingInitialNavigation) {
|
|
669
|
-
const console = inject(_Console);
|
|
670
|
-
const message = _formatRuntimeError(5001, 'Configuration error: found both hydration and enabledBlocking initial navigation ' + 'in the same application, which is a contradiction.');
|
|
671
|
-
console.warn(message);
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
multi: true
|
|
675
|
-
}];
|
|
676
|
-
}
|
|
677
|
-
function provideClientHydration(...features) {
|
|
678
|
-
const providers = [];
|
|
679
|
-
const featuresKind = new Set();
|
|
680
|
-
for (const {
|
|
681
|
-
ɵproviders,
|
|
682
|
-
ɵkind
|
|
683
|
-
} of features) {
|
|
684
|
-
featuresKind.add(ɵkind);
|
|
685
|
-
if (ɵproviders.length) {
|
|
686
|
-
providers.push(ɵproviders);
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
const hasHttpTransferCacheOptions = featuresKind.has(HydrationFeatureKind.HttpTransferCacheOptions);
|
|
690
|
-
if (typeof ngDevMode !== 'undefined' && ngDevMode && featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) && hasHttpTransferCacheOptions) {
|
|
691
|
-
throw new _RuntimeError(5001, 'Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');
|
|
692
|
-
}
|
|
693
|
-
return makeEnvironmentProviders([typeof ngDevMode !== 'undefined' && ngDevMode ? provideEnabledBlockingInitialNavigationDetector() : [], typeof ngDevMode !== 'undefined' && ngDevMode ? provideStabilityDebugging() : [], _withDomHydration(), featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions ? [] : _withHttpTransferCache({}), providers]);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
const VERSION = /* @__PURE__ */new Version('22.0.0-next.1');
|
|
463
|
+
const VERSION = /* @__PURE__ */new Version('22.0.0-next.11');
|
|
697
464
|
|
|
698
|
-
export { By, DomSanitizer,
|
|
465
|
+
export { By, DomSanitizer, HydrationFeatureKind, Meta, Title, VERSION, disableDebugTools, enableDebugTools, provideClientHydration, withEventReplay, withHttpTransferCacheOptions, withI18nSupport, withIncrementalHydration, withNoHttpTransferCache, withNoIncrementalHydration, DomSanitizerImpl as ɵDomSanitizerImpl };
|
|
699
466
|
//# sourceMappingURL=platform-browser.mjs.map
|