@angular/platform-browser 22.1.0-next.4 → 22.1.0-next.6
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 +8 -8
- package/fesm2022/_browser-chunk.mjs.map +1 -1
- package/fesm2022/_dom_renderer-chunk.mjs +65 -33
- package/fesm2022/_dom_renderer-chunk.mjs.map +1 -1
- package/fesm2022/animations-async.mjs +4 -4
- package/fesm2022/animations-async.mjs.map +1 -1
- package/fesm2022/animations.mjs +12 -12
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +100 -78
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +8 -8
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +4 -4
- package/types/_browser-chunk.d.ts +2 -2
- package/types/animations-async.d.ts +1 -1
- package/types/animations.d.ts +1 -1
- package/types/platform-browser.d.ts +39 -14
- package/types/testing.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.1.0-next.
|
|
2
|
+
* @license Angular v22.1.0-next.6
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -225,7 +225,7 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
|
225
225
|
}
|
|
226
226
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
227
227
|
minVersion: "12.0.0",
|
|
228
|
-
version: "22.1.0-next.
|
|
228
|
+
version: "22.1.0-next.6",
|
|
229
229
|
ngImport: i0,
|
|
230
230
|
type: KeyEventsPlugin,
|
|
231
231
|
deps: [{
|
|
@@ -235,14 +235,14 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
|
235
235
|
});
|
|
236
236
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
237
237
|
minVersion: "12.0.0",
|
|
238
|
-
version: "22.1.0-next.
|
|
238
|
+
version: "22.1.0-next.6",
|
|
239
239
|
ngImport: i0,
|
|
240
240
|
type: KeyEventsPlugin
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
i0.ɵɵngDeclareClassMetadata({
|
|
244
244
|
minVersion: "12.0.0",
|
|
245
|
-
version: "22.1.0-next.
|
|
245
|
+
version: "22.1.0-next.6",
|
|
246
246
|
ngImport: i0,
|
|
247
247
|
type: KeyEventsPlugin,
|
|
248
248
|
decorators: [{
|
|
@@ -369,7 +369,7 @@ class BrowserModule {
|
|
|
369
369
|
}
|
|
370
370
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
371
371
|
minVersion: "12.0.0",
|
|
372
|
-
version: "22.1.0-next.
|
|
372
|
+
version: "22.1.0-next.6",
|
|
373
373
|
ngImport: i0,
|
|
374
374
|
type: BrowserModule,
|
|
375
375
|
deps: [],
|
|
@@ -377,14 +377,14 @@ class BrowserModule {
|
|
|
377
377
|
});
|
|
378
378
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
379
379
|
minVersion: "14.0.0",
|
|
380
|
-
version: "22.1.0-next.
|
|
380
|
+
version: "22.1.0-next.6",
|
|
381
381
|
ngImport: i0,
|
|
382
382
|
type: BrowserModule,
|
|
383
383
|
exports: [CommonModule, ApplicationModule]
|
|
384
384
|
});
|
|
385
385
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
386
386
|
minVersion: "12.0.0",
|
|
387
|
-
version: "22.1.0-next.
|
|
387
|
+
version: "22.1.0-next.6",
|
|
388
388
|
ngImport: i0,
|
|
389
389
|
type: BrowserModule,
|
|
390
390
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
|
@@ -393,7 +393,7 @@ class BrowserModule {
|
|
|
393
393
|
}
|
|
394
394
|
i0.ɵɵngDeclareClassMetadata({
|
|
395
395
|
minVersion: "12.0.0",
|
|
396
|
-
version: "22.1.0-next.
|
|
396
|
+
version: "22.1.0-next.6",
|
|
397
397
|
ngImport: i0,
|
|
398
398
|
type: BrowserModule,
|
|
399
399
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_browser-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/browser/browser_adapter.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/browser/testability.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/dom/events/key_events.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/browser.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 ɵparseCookieValue as parseCookieValue,\n ɵsetRootDomAdapter as setRootDomAdapter,\n ɵDomAdapter as DomAdapter,\n} from '@angular/common';\n\n/**\n * A `DomAdapter` powered by full browser DOM APIs.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nexport class BrowserDomAdapter extends DomAdapter {\n override readonly supportsDOMEvents: boolean = true;\n\n static makeCurrent() {\n setRootDomAdapter(new BrowserDomAdapter());\n }\n\n override onAndCancel(el: Node, evt: any, listener: any, options: any): Function {\n el.addEventListener(evt, listener, options);\n return () => {\n el.removeEventListener(evt, listener, options);\n };\n }\n override dispatchEvent(el: Node, evt: any) {\n el.dispatchEvent(evt);\n }\n override remove(node: Node): void {\n (node as Element | Text | Comment).remove();\n }\n override createElement(tagName: string, doc?: Document): HTMLElement {\n doc = doc || this.getDefaultDocument();\n return doc.createElement(tagName);\n }\n override createHtmlDocument(): Document {\n return document.implementation.createHTMLDocument('fakeTitle');\n }\n override getDefaultDocument(): Document {\n return document;\n }\n\n override isElementNode(node: Node): boolean {\n return node.nodeType === Node.ELEMENT_NODE;\n }\n\n override isShadowRoot(node: any): boolean {\n return node instanceof DocumentFragment;\n }\n\n /** @deprecated No longer being used in Ivy code. To be removed in version 14. */\n override getGlobalEventTarget(doc: Document, target: string): EventTarget | null {\n if (target === 'window') {\n return window;\n }\n if (target === 'document') {\n return doc;\n }\n if (target === 'body') {\n return doc.body;\n }\n return null;\n }\n override getBaseHref(doc: Document): string | null {\n const href = getBaseElementHref();\n return href == null ? null : relativePath(href);\n }\n override resetBaseElement(): void {\n baseElement = null;\n }\n override getUserAgent(): string {\n return window.navigator.userAgent;\n }\n override getCookie(name: string): string | null {\n return parseCookieValue(document.cookie, name);\n }\n}\n\nlet baseElement: HTMLElement | null = null;\nfunction getBaseElementHref(): string | null {\n baseElement = baseElement || document.head.querySelector('base');\n return baseElement ? baseElement.getAttribute('href') : null;\n}\n\nfunction relativePath(url: string): string {\n // The base URL doesn't really matter, we just need it so relative paths have something\n // to resolve against. In the browser `HTMLBaseElement.href` is always absolute.\n return new URL(url, document.baseURI).pathname;\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 */\n\nimport {ɵgetDOM as getDOM} from '@angular/common';\nimport {\n GetTestability,\n Testability,\n TestabilityRegistry,\n ɵglobal as global,\n ɵRuntimeError as RuntimeError,\n} from '@angular/core';\n\nimport {RuntimeErrorCode} from '../errors';\n\nexport class BrowserGetTestability implements GetTestability {\n addToWindow(registry: TestabilityRegistry): void {\n global['getAngularTestability'] = (elem: any, findInAncestors: boolean = true) => {\n const testability = registry.findTestabilityInTree(elem, findInAncestors);\n if (testability == null) {\n throw new RuntimeError(\n RuntimeErrorCode.TESTABILITY_NOT_FOUND,\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Could not find testability for element.',\n );\n }\n return testability;\n };\n\n global['getAllAngularTestabilities'] = () => registry.getAllTestabilities();\n\n global['getAllAngularRootElements'] = () => registry.getAllRootElements();\n\n const whenAllStable = (callback: () => void) => {\n const testabilities = global['getAllAngularTestabilities']() as Testability[];\n let count = testabilities.length;\n const decrement = function () {\n count--;\n if (count == 0) {\n callback();\n }\n };\n testabilities.forEach((testability) => {\n testability.whenStable(decrement);\n });\n };\n\n if (!global['frameworkStabilizers']) {\n global['frameworkStabilizers'] = [];\n }\n global['frameworkStabilizers'].push(whenAllStable);\n }\n\n findTestabilityInTree(\n registry: TestabilityRegistry,\n elem: any,\n findInAncestors: boolean,\n ): Testability | null {\n if (elem == null) {\n return null;\n }\n const t = registry.getTestability(elem);\n if (t != null) {\n return t;\n } else if (!findInAncestors) {\n return null;\n }\n if (getDOM().isShadowRoot(elem)) {\n return this.findTestabilityInTree(registry, (<any>elem).host, true);\n }\n return this.findTestabilityInTree(registry, elem.parentElement, true);\n }\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 */\n\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable, type ListenerOptions, NgZone} from '@angular/core';\n\nimport {EventManagerPlugin} from './event_manager_plugin';\n\n/**\n * Defines supported modifiers for key events.\n */\nconst MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];\n\n// The following values are here for cross-browser compatibility and to match the W3C standard\n// cf https://www.w3.org/TR/DOM-Level-3-Events-key/\nconst _keyMap: {[k: string]: string} = {\n '\\b': 'Backspace',\n '\\t': 'Tab',\n '\\x7F': 'Delete',\n '\\x1B': 'Escape',\n 'Del': 'Delete',\n 'Esc': 'Escape',\n 'Left': 'ArrowLeft',\n 'Right': 'ArrowRight',\n 'Up': 'ArrowUp',\n 'Down': 'ArrowDown',\n 'Menu': 'ContextMenu',\n 'Scroll': 'ScrollLock',\n 'Win': 'OS',\n};\n\n/**\n * Retrieves modifiers from key-event objects.\n */\nconst MODIFIER_KEY_GETTERS: {[key: string]: (event: KeyboardEvent) => boolean} = {\n 'alt': (event: KeyboardEvent) => event.altKey,\n 'control': (event: KeyboardEvent) => event.ctrlKey,\n 'meta': (event: KeyboardEvent) => event.metaKey,\n 'shift': (event: KeyboardEvent) => event.shiftKey,\n};\n\n/**\n * A browser plug-in that provides support for handling of key events in Angular.\n */\n@Injectable()\nexport class KeyEventsPlugin extends EventManagerPlugin {\n /**\n * Initializes an instance of the browser plug-in.\n * @param doc The document in which key events will be detected.\n */\n constructor(@Inject(DOCUMENT) doc: any) {\n super(doc);\n }\n\n /**\n * Reports whether a named key event is supported.\n * @param eventName The event name to query.\n * @return True if the named key event is supported.\n */\n override supports(eventName: string): boolean {\n return KeyEventsPlugin.parseEventName(eventName) != null;\n }\n\n /**\n * Registers a handler for a specific element and key event.\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the key event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns The key event that was registered.\n */\n override addEventListener(\n element: HTMLElement,\n eventName: string,\n handler: Function,\n options?: ListenerOptions,\n ): Function {\n const parsedEvent = KeyEventsPlugin.parseEventName(eventName)!;\n\n const outsideHandler = KeyEventsPlugin.eventCallback(\n parsedEvent['fullKey'],\n handler,\n this.manager.getZone(),\n );\n\n return this.manager.getZone().runOutsideAngular(() => {\n return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler, options);\n });\n }\n\n /**\n * Parses the user provided full keyboard event definition and normalizes it for\n * later internal use. It ensures the string is all lowercase, converts special\n * characters to a standard spelling, and orders all the values consistently.\n *\n * @param eventName The name of the key event to listen for.\n * @returns an object with the full, normalized string, and the dom event name\n * or null in the case when the event doesn't match a keyboard event.\n */\n static parseEventName(eventName: string): {fullKey: string; domEventName: string} | null {\n const parts: string[] = eventName.toLowerCase().split('.');\n\n const domEventName = parts.shift();\n if (parts.length === 0 || !(domEventName === 'keydown' || domEventName === 'keyup')) {\n return null;\n }\n\n const key = KeyEventsPlugin._normalizeKey(parts.pop()!);\n\n let fullKey = '';\n let codeIX = parts.indexOf('code');\n if (codeIX > -1) {\n parts.splice(codeIX, 1);\n fullKey = 'code.';\n }\n MODIFIER_KEYS.forEach((modifierName) => {\n const index: number = parts.indexOf(modifierName);\n if (index > -1) {\n parts.splice(index, 1);\n fullKey += modifierName + '.';\n }\n });\n fullKey += key;\n\n if (parts.length != 0 || key.length === 0) {\n // returning null instead of throwing to let another plugin process the event\n return null;\n }\n\n // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.\n // The code must remain in the `result['domEventName']` form.\n // return {domEventName, fullKey};\n const result: {fullKey: string; domEventName: string} = {} as any;\n result['domEventName'] = domEventName;\n result['fullKey'] = fullKey;\n return result;\n }\n\n /**\n * Determines whether the actual keys pressed match the configured key code string.\n * The `fullKeyCode` event is normalized in the `parseEventName` method when the\n * event is attached to the DOM during the `addEventListener` call. This is unseen\n * by the end user and is normalized for internal consistency and parsing.\n *\n * @param event The keyboard event.\n * @param fullKeyCode The normalized user defined expected key event string\n * @returns boolean.\n */\n static matchEventFullKeyCode(event: KeyboardEvent, fullKeyCode: string): boolean {\n let keycode = _keyMap[event.key] || event.key;\n let key = '';\n if (fullKeyCode.indexOf('code.') > -1) {\n keycode = event.code;\n key = 'code.';\n }\n // the keycode could be unidentified so we have to check here\n if (keycode == null || !keycode) return false;\n keycode = keycode.toLowerCase();\n if (keycode === ' ') {\n keycode = 'space'; // for readability\n } else if (keycode === '.') {\n keycode = 'dot'; // because '.' is used as a separator in event names\n }\n MODIFIER_KEYS.forEach((modifierName) => {\n if (modifierName !== keycode) {\n const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];\n if (modifierGetter(event)) {\n key += modifierName + '.';\n }\n }\n });\n key += keycode;\n return key === fullKeyCode;\n }\n\n /**\n * Configures a handler callback for a key event.\n * @param fullKey The event name that combines all simultaneous keystrokes.\n * @param handler The function that responds to the key event.\n * @param zone The zone in which the event occurred.\n * @returns A callback function.\n */\n static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function {\n return (event: KeyboardEvent) => {\n if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {\n zone.runGuarded(() => handler(event));\n }\n };\n }\n\n /** @internal */\n static _normalizeKey(keyName: string): string {\n return keyName === 'esc' ? 'escape' : keyName;\n }\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 */\n\nimport {CommonModule, DOCUMENT, ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common';\nimport {\n ApplicationConfig,\n ApplicationModule,\n ApplicationRef,\n createPlatformFactory,\n ErrorHandler,\n inject,\n InjectionToken,\n ɵINJECTOR_SCOPE as INJECTOR_SCOPE,\n ɵinternalCreateApplication as internalCreateApplication,\n NgModule,\n PLATFORM_ID,\n PLATFORM_INITIALIZER,\n platformCore,\n PlatformRef,\n Provider,\n RendererFactory2,\n ɵresolveComponentResources as resolveComponentResources,\n ɵRuntimeError as RuntimeError,\n ɵSHARED_STYLES_HOST as SHARED_STYLES_HOST,\n StaticProvider,\n NgZone,\n Testability,\n TestabilityRegistry,\n ɵTESTABILITY as TESTABILITY,\n ɵTESTABILITY_GETTER as TESTABILITY_GETTER,\n ɵUSE_PENDING_TASKS,\n Type,\n ɵsetDocument,\n} from '@angular/core';\n\nimport {BrowserDomAdapter} from './browser/browser_adapter';\nimport {BrowserGetTestability} from './browser/testability';\nimport {DomRendererFactory2} from './dom/dom_renderer';\nimport {DomEventsPlugin} from './dom/events/dom_events';\nimport {EVENT_MANAGER_PLUGINS, EventManager} from './dom/events/event_manager';\nimport {KeyEventsPlugin} from './dom/events/key_events';\nimport {SharedStylesHost} from './dom/shared_styles_host';\nimport {RuntimeErrorCode} from './errors';\n\n/**\n * A context object that can be passed to `bootstrapApplication` to provide a pre-existing platform\n * injector.\n *\n * @publicApi\n */\nexport interface BootstrapContext {\n /**\n * A reference to a platform.\n */\n platformRef: PlatformRef;\n}\n\n/**\n * Bootstraps an instance of an Angular application and renders a standalone component as the\n * application's root component. More information about standalone components can be found in [this\n * guide](guide/components/importing).\n *\n * @usageNotes\n * The root component passed into this function **must** be a standalone one\n *\n * ```angular-ts\n * @Component({\n * template: 'Hello world!'\n * })\n * class Root {}\n *\n * const appRef: ApplicationRef = await bootstrapApplication(Root);\n * ```\n *\n * You can add the list of providers that should be available in the application injector by\n * specifying the `providers` field in an object passed as the second argument:\n *\n * ```ts\n * await bootstrapApplication(Root, {\n * providers: [\n * {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}\n * ]\n * });\n * ```\n *\n * The `importProvidersFrom` helper method can be used to collect all providers from any\n * existing NgModule (and transitively from all NgModules that it imports):\n *\n * ```ts\n * await bootstrapApplication(Root, {\n * providers: [\n * importProvidersFrom(SomeNgModule)\n * ]\n * });\n * ```\n *\n * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by\n * default. You can add [Testability](api/core/Testability) by getting the list of necessary\n * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`\n * array, for example:\n *\n * ```ts\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(Root, {providers: [provideProtractorTestingSupport()]});\n * ```\n *\n * @param rootComponent A reference to a standalone component that should be rendered.\n * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for\n * additional info.\n * @param context Optional context object that can be used to provide a pre-existing\n * platform injector. This is useful for advanced use-cases, for example, server-side\n * rendering, where the platform is created for each request.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nexport async function bootstrapApplication(\n rootComponent: Type<unknown>,\n options?: ApplicationConfig,\n context?: BootstrapContext,\n): Promise<ApplicationRef> {\n const config = {\n rootComponent,\n ...createProvidersConfig(options, context),\n };\n\n if ((typeof ngJitMode === 'undefined' || ngJitMode) && typeof fetch === 'function') {\n await resolveJitResources();\n }\n\n return internalCreateApplication(config);\n}\n\n/**\n * Create an instance of an Angular application without bootstrapping any components. This is useful\n * for the situation where one wants to decouple application environment creation (a platform and\n * associated injectors) from rendering components on a screen. Components can be subsequently\n * bootstrapped on the returned `ApplicationRef`.\n *\n * @param options Extra configuration for the application environment, see `ApplicationConfig` for\n * additional info.\n * @param context Optional context object that can be used to provide a pre-existing\n * platform injector. This is useful for advanced use-cases, for example, server-side\n * rendering, where the platform is created for each request.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nexport async function createApplication(\n options?: ApplicationConfig,\n context?: BootstrapContext,\n): Promise<ApplicationRef> {\n if ((typeof ngJitMode === 'undefined' || ngJitMode) && typeof fetch === 'function') {\n await resolveJitResources();\n }\n\n return internalCreateApplication(createProvidersConfig(options, context));\n}\n\nfunction createProvidersConfig(options?: ApplicationConfig, context?: BootstrapContext) {\n return {\n platformRef: context?.platformRef,\n appProviders: [...BROWSER_MODULE_PROVIDERS, ...(options?.providers ?? [])],\n platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n };\n}\n\n/** Attempt to resolve component resources before bootstrapping in JIT mode. */\nasync function resolveJitResources(): Promise<void> {\n try {\n return await resolveComponentResources(fetch);\n } catch (error) {\n // Log, but don't block bootstrapping on error.\n // tslint:disable-next-line:no-console\n console.error(error);\n }\n}\n\n/**\n * Returns a set of providers required to setup [Testability](api/core/Testability) for an\n * application bootstrapped using the `bootstrapApplication` function. The set of providers is\n * needed to support testing an application with Protractor (which relies on the Testability APIs\n * to be present).\n *\n * @returns An array of providers required to setup Testability for an application and make it\n * available for testing using Protractor.\n *\n * @publicApi\n */\nexport function provideProtractorTestingSupport(\n options: {usePendingTasksForStability?: boolean} = {},\n): Provider[] {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideProtractorTestingSupport` call results in app\n // code.\n return [\n ...TESTABILITY_PROVIDERS,\n options?.usePendingTasksForStability !== undefined\n ? {provide: ɵUSE_PENDING_TASKS, useValue: options.usePendingTasksForStability ?? false}\n : [],\n ];\n}\n\nexport function initDomAdapter() {\n BrowserDomAdapter.makeCurrent();\n}\n\nexport function errorHandler(): ErrorHandler {\n return new ErrorHandler();\n}\n\nexport function _document(): any {\n // Tell ivy about the global document\n ɵsetDocument(document);\n return document;\n}\n\nconst INTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] = [\n {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},\n {provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true},\n {provide: DOCUMENT, useFactory: _document},\n];\n\n/**\n * A factory function that returns a `PlatformRef` instance associated with browser service\n * providers.\n *\n * @publicApi\n */\nexport const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef =\n createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\n\n/**\n * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.\n * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the\n * `BrowserModule` presence itself, since the standalone-based bootstrap just imports\n * `BrowserModule` providers without referencing the module itself.\n */\nconst BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(\n typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '',\n);\n\nconst TESTABILITY_PROVIDERS = [\n {\n provide: TESTABILITY_GETTER,\n useClass: BrowserGetTestability,\n },\n {\n provide: TESTABILITY,\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER],\n },\n {\n provide: Testability, // Also provide as `Testability` for backwards-compatibility.\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER],\n },\n];\n\nconst BROWSER_MODULE_PROVIDERS: Provider[] = [\n {provide: INJECTOR_SCOPE, useValue: 'root'},\n {provide: ErrorHandler, useFactory: errorHandler},\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: DomEventsPlugin,\n multi: true,\n },\n {provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true},\n DomRendererFactory2,\n {provide: SHARED_STYLES_HOST, useClass: SharedStylesHost},\n // Only remains for backwards compatibility, should be removed once g3 no longer needs it.\n {provide: SharedStylesHost, useExisting: SHARED_STYLES_HOST},\n EventManager,\n {provide: RendererFactory2, useExisting: DomRendererFactory2},\n typeof ngDevMode === 'undefined' || ngDevMode\n ? {provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true}\n : [],\n];\n\n/**\n * Exports required infrastructure for all Angular apps.\n * Included by default in all Angular apps created with the CLI\n * `new` command.\n * Re-exports `CommonModule` and `ApplicationModule`, making their\n * exports and providers available to all apps.\n *\n * @publicApi\n */\n@NgModule({\n providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],\n exports: [CommonModule, ApplicationModule],\n})\nexport class BrowserModule {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const providersAlreadyPresent = inject(BROWSER_MODULE_PROVIDERS_MARKER, {\n optional: true,\n skipSelf: true,\n });\n\n if (providersAlreadyPresent) {\n throw new RuntimeError(\n RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED,\n `Providers from the \\`BrowserModule\\` have already been loaded. If you need access ` +\n `to common directives such as NgIf and NgFor, import the \\`CommonModule\\` instead.`,\n );\n }\n }\n }\n}\n"],"names":["BrowserDomAdapter","DomAdapter","supportsDOMEvents","makeCurrent","setRootDomAdapter","onAndCancel","el","evt","listener","options","addEventListener","removeEventListener","dispatchEvent","remove","node","createElement","tagName","doc","getDefaultDocument","createHtmlDocument","document","implementation","createHTMLDocument","isElementNode","nodeType","Node","ELEMENT_NODE","isShadowRoot","DocumentFragment","getGlobalEventTarget","target","window","body","getBaseHref","href","getBaseElementHref","relativePath","resetBaseElement","baseElement","getUserAgent","navigator","userAgent","getCookie","name","parseCookieValue","cookie","head","querySelector","getAttribute","url","URL","baseURI","pathname","BrowserGetTestability","addToWindow","registry","global","elem","findInAncestors","testability","findTestabilityInTree","RuntimeError","ngDevMode","getAllTestabilities","getAllRootElements","whenAllStable","callback","testabilities","count","length","decrement","forEach","whenStable","push","t","getTestability","getDOM","host","parentElement","MODIFIER_KEYS","_keyMap","MODIFIER_KEY_GETTERS","event","altKey","ctrlKey","metaKey","shiftKey","KeyEventsPlugin","EventManagerPlugin","constructor","supports","eventName","parseEventName","element","handler","parsedEvent","outsideHandler","eventCallback","manager","getZone","runOutsideAngular","parts","toLowerCase","split","domEventName","shift","key","_normalizeKey","pop","fullKey","codeIX","indexOf","splice","modifierName","index","result","matchEventFullKeyCode","fullKeyCode","keycode","code","modifierGetter","zone","runGuarded","keyName","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","DOCUMENT","ɵɵFactoryTarget","Injectable","decorators","Inject","bootstrapApplication","rootComponent","context","config","createProvidersConfig","ngJitMode","fetch","resolveJitResources","internalCreateApplication","createApplication","platformRef","appProviders","BROWSER_MODULE_PROVIDERS","providers","platformProviders","INTERNAL_BROWSER_PLATFORM_PROVIDERS","resolveComponentResources","error","console","provideProtractorTestingSupport","TESTABILITY_PROVIDERS","usePendingTasksForStability","undefined","provide","ɵUSE_PENDING_TASKS","useValue","initDomAdapter","errorHandler","ErrorHandler","_document","ɵsetDocument","PLATFORM_ID","PLATFORM_BROWSER_ID","PLATFORM_INITIALIZER","multi","useFactory","platformBrowser","createPlatformFactory","platformCore","BROWSER_MODULE_PROVIDERS_MARKER","InjectionToken","TESTABILITY_GETTER","useClass","TESTABILITY","Testability","deps","NgZone","TestabilityRegistry","INJECTOR_SCOPE","EVENT_MANAGER_PLUGINS","DomEventsPlugin","DomRendererFactory2","SHARED_STYLES_HOST","SharedStylesHost","useExisting","EventManager","RendererFactory2","BrowserModule","providersAlreadyPresent","inject","optional","skipSelf","NgModule","exports","CommonModule","ApplicationModule","imports","args"],"mappings":";;;;;;;;;;;AAoBM,MAAOA,iBAAkB,SAAQC,WAAU,CAAA;AAC7BC,EAAAA,iBAAiB,GAAY,IAAI;EAEnD,OAAOC,WAAWA,GAAA;AAChBC,IAAAA,kBAAiB,CAAC,IAAIJ,iBAAiB,EAAE,CAAC;AAC5C,EAAA;EAESK,WAAWA,CAACC,EAAQ,EAAEC,GAA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AIH,uBAAuB,EAAE;QAC3B,MAAM,IAAIrI,aAAY,CAAA,IAAA,EAEpB,CAAA,kFAAA,CAAoF,GAClF,mFAAmF,CACtF;AACH,MAAA;AACF,IAAA;AACF,EAAA;;;;;UAhBWoI,aAAa;AAAAZ,IAAAA,IAAA,EAAA,EAAA;AAAAvJ,IAAAA,MAAA,EAAA+F,EAAA,CAAAO,eAAA,CAAAkE;AAAA,GAAA,CAAA;;;;;UAAbL,aAAa;AAAAM,IAAAA,OAAA,EAAA,CAFdC,YAAY,EAAEC,iBAAiB;AAAA,GAAA,CAAA;;;;;UAE9BR,aAAa;AAAA5C,IAAAA,SAAA,EAHb,CAAC,GAAGD,wBAAwB,EAAE,GAAGQ,qBAAqB,CAAC;AAAA8C,IAAAA,OAAA,EAAA,CACxDF,YAAY,EAAEC,iBAAiB;AAAA,GAAA,CAAA;;;;;;QAE9BR,aAAa;AAAA3D,EAAAA,UAAA,EAAA,CAAA;UAJzBgE,QAAQ;AAACK,IAAAA,IAAA,EAAA,CAAA;AACRtD,MAAAA,SAAS,EAAE,CAAC,GAAGD,wBAAwB,EAAE,GAAGQ,qBAAqB,CAAC;AAClE2C,MAAAA,OAAO,EAAE,CAACC,YAAY,EAAEC,iBAAiB;KAC1C;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"_browser-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/browser/browser_adapter.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/browser/testability.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/dom/events/key_events.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/src/browser.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 ɵparseCookieValue as parseCookieValue,\n ɵsetRootDomAdapter as setRootDomAdapter,\n ɵDomAdapter as DomAdapter,\n} from '@angular/common';\n\n/**\n * A `DomAdapter` powered by full browser DOM APIs.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nexport class BrowserDomAdapter extends DomAdapter {\n override readonly supportsDOMEvents: boolean = true;\n\n static makeCurrent() {\n setRootDomAdapter(new BrowserDomAdapter());\n }\n\n override onAndCancel(el: Node, evt: any, listener: any, options: any): Function {\n el.addEventListener(evt, listener, options);\n return () => {\n el.removeEventListener(evt, listener, options);\n };\n }\n override dispatchEvent(el: Node, evt: any) {\n el.dispatchEvent(evt);\n }\n override remove(node: Node): void {\n (node as Element | Text | Comment).remove();\n }\n override createElement(tagName: string, doc?: Document): HTMLElement {\n doc = doc || this.getDefaultDocument();\n return doc.createElement(tagName);\n }\n override createHtmlDocument(): Document {\n return document.implementation.createHTMLDocument('fakeTitle');\n }\n override getDefaultDocument(): Document {\n return document;\n }\n\n override isElementNode(node: Node): boolean {\n return node.nodeType === Node.ELEMENT_NODE;\n }\n\n override isShadowRoot(node: any): boolean {\n return node instanceof DocumentFragment;\n }\n\n /** @deprecated No longer being used in Ivy code. To be removed in version 14. */\n override getGlobalEventTarget(doc: Document, target: string): EventTarget | null {\n if (target === 'window') {\n return window;\n }\n if (target === 'document') {\n return doc;\n }\n if (target === 'body') {\n return doc.body;\n }\n return null;\n }\n override getBaseHref(doc: Document): string | null {\n const href = getBaseElementHref();\n return href == null ? null : relativePath(href);\n }\n override resetBaseElement(): void {\n baseElement = null;\n }\n override getUserAgent(): string {\n return window.navigator.userAgent;\n }\n override getCookie(name: string): string | null {\n return parseCookieValue(document.cookie, name);\n }\n}\n\nlet baseElement: HTMLElement | null = null;\nfunction getBaseElementHref(): string | null {\n baseElement = baseElement || document.head.querySelector('base');\n return baseElement ? baseElement.getAttribute('href') : null;\n}\n\nfunction relativePath(url: string): string {\n // The base URL doesn't really matter, we just need it so relative paths have something\n // to resolve against. In the browser `HTMLBaseElement.href` is always absolute.\n return new URL(url, document.baseURI).pathname;\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 */\n\nimport {ɵgetDOM as getDOM} from '@angular/common';\nimport {\n GetTestability,\n Testability,\n TestabilityRegistry,\n ɵglobal as global,\n ɵRuntimeError as RuntimeError,\n} from '@angular/core';\n\nimport {RuntimeErrorCode} from '../errors';\n\nexport class BrowserGetTestability implements GetTestability {\n addToWindow(registry: TestabilityRegistry): void {\n global['getAngularTestability'] = (elem: any, findInAncestors: boolean = true) => {\n const testability = registry.findTestabilityInTree(elem, findInAncestors);\n if (testability == null) {\n throw new RuntimeError(\n RuntimeErrorCode.TESTABILITY_NOT_FOUND,\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Could not find testability for element.',\n );\n }\n return testability;\n };\n\n global['getAllAngularTestabilities'] = () => registry.getAllTestabilities();\n\n global['getAllAngularRootElements'] = () => registry.getAllRootElements();\n\n const whenAllStable = (callback: () => void) => {\n const testabilities = global['getAllAngularTestabilities']() as Testability[];\n let count = testabilities.length;\n const decrement = function () {\n count--;\n if (count == 0) {\n callback();\n }\n };\n testabilities.forEach((testability) => {\n testability.whenStable(decrement);\n });\n };\n\n if (!global['frameworkStabilizers']) {\n global['frameworkStabilizers'] = [];\n }\n global['frameworkStabilizers'].push(whenAllStable);\n }\n\n findTestabilityInTree(\n registry: TestabilityRegistry,\n elem: any,\n findInAncestors: boolean,\n ): Testability | null {\n if (elem == null) {\n return null;\n }\n const t = registry.getTestability(elem);\n if (t != null) {\n return t;\n } else if (!findInAncestors) {\n return null;\n }\n if (getDOM().isShadowRoot(elem)) {\n return this.findTestabilityInTree(registry, (<any>elem).host, true);\n }\n return this.findTestabilityInTree(registry, elem.parentElement, true);\n }\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 */\n\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable, type ListenerOptions, NgZone} from '@angular/core';\n\nimport {EventManagerPlugin} from './event_manager_plugin';\n\n/**\n * Defines supported modifiers for key events.\n */\nconst MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];\n\n// The following values are here for cross-browser compatibility and to match the W3C standard\n// cf https://www.w3.org/TR/DOM-Level-3-Events-key/\nconst _keyMap: {[k: string]: string} = {\n '\\b': 'Backspace',\n '\\t': 'Tab',\n '\\x7F': 'Delete',\n '\\x1B': 'Escape',\n 'Del': 'Delete',\n 'Esc': 'Escape',\n 'Left': 'ArrowLeft',\n 'Right': 'ArrowRight',\n 'Up': 'ArrowUp',\n 'Down': 'ArrowDown',\n 'Menu': 'ContextMenu',\n 'Scroll': 'ScrollLock',\n 'Win': 'OS',\n};\n\n/**\n * Retrieves modifiers from key-event objects.\n */\nconst MODIFIER_KEY_GETTERS: {[key: string]: (event: KeyboardEvent) => boolean} = {\n 'alt': (event: KeyboardEvent) => event.altKey,\n 'control': (event: KeyboardEvent) => event.ctrlKey,\n 'meta': (event: KeyboardEvent) => event.metaKey,\n 'shift': (event: KeyboardEvent) => event.shiftKey,\n};\n\n/**\n * A browser plug-in that provides support for handling of key events in Angular.\n */\n@Injectable()\nexport class KeyEventsPlugin extends EventManagerPlugin {\n /**\n * Initializes an instance of the browser plug-in.\n * @param doc The document in which key events will be detected.\n */\n constructor(@Inject(DOCUMENT) doc: any) {\n super(doc);\n }\n\n /**\n * Reports whether a named key event is supported.\n * @param eventName The event name to query.\n * @return True if the named key event is supported.\n */\n override supports(eventName: string): boolean {\n return KeyEventsPlugin.parseEventName(eventName) != null;\n }\n\n /**\n * Registers a handler for a specific element and key event.\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the key event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns The key event that was registered.\n */\n override addEventListener(\n element: HTMLElement,\n eventName: string,\n handler: Function,\n options?: ListenerOptions,\n ): Function {\n const parsedEvent = KeyEventsPlugin.parseEventName(eventName)!;\n\n const outsideHandler = KeyEventsPlugin.eventCallback(\n parsedEvent['fullKey'],\n handler,\n this.manager.getZone(),\n );\n\n return this.manager.getZone().runOutsideAngular(() => {\n return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler, options);\n });\n }\n\n /**\n * Parses the user provided full keyboard event definition and normalizes it for\n * later internal use. It ensures the string is all lowercase, converts special\n * characters to a standard spelling, and orders all the values consistently.\n *\n * @param eventName The name of the key event to listen for.\n * @returns an object with the full, normalized string, and the dom event name\n * or null in the case when the event doesn't match a keyboard event.\n */\n static parseEventName(eventName: string): {fullKey: string; domEventName: string} | null {\n const parts: string[] = eventName.toLowerCase().split('.');\n\n const domEventName = parts.shift();\n if (parts.length === 0 || !(domEventName === 'keydown' || domEventName === 'keyup')) {\n return null;\n }\n\n const key = KeyEventsPlugin._normalizeKey(parts.pop()!);\n\n let fullKey = '';\n let codeIX = parts.indexOf('code');\n if (codeIX > -1) {\n parts.splice(codeIX, 1);\n fullKey = 'code.';\n }\n MODIFIER_KEYS.forEach((modifierName) => {\n const index: number = parts.indexOf(modifierName);\n if (index > -1) {\n parts.splice(index, 1);\n fullKey += modifierName + '.';\n }\n });\n fullKey += key;\n\n if (parts.length != 0 || key.length === 0) {\n // returning null instead of throwing to let another plugin process the event\n return null;\n }\n\n // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.\n // The code must remain in the `result['domEventName']` form.\n // return {domEventName, fullKey};\n const result: {fullKey: string; domEventName: string} = {} as any;\n result['domEventName'] = domEventName;\n result['fullKey'] = fullKey;\n return result;\n }\n\n /**\n * Determines whether the actual keys pressed match the configured key code string.\n * The `fullKeyCode` event is normalized in the `parseEventName` method when the\n * event is attached to the DOM during the `addEventListener` call. This is unseen\n * by the end user and is normalized for internal consistency and parsing.\n *\n * @param event The keyboard event.\n * @param fullKeyCode The normalized user defined expected key event string\n * @returns boolean.\n */\n static matchEventFullKeyCode(event: KeyboardEvent, fullKeyCode: string): boolean {\n let keycode = _keyMap[event.key] || event.key;\n let key = '';\n if (fullKeyCode.indexOf('code.') > -1) {\n keycode = event.code;\n key = 'code.';\n }\n // the keycode could be unidentified so we have to check here\n if (keycode == null || !keycode) return false;\n keycode = keycode.toLowerCase();\n if (keycode === ' ') {\n keycode = 'space'; // for readability\n } else if (keycode === '.') {\n keycode = 'dot'; // because '.' is used as a separator in event names\n }\n MODIFIER_KEYS.forEach((modifierName) => {\n if (modifierName !== keycode) {\n const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];\n if (modifierGetter(event)) {\n key += modifierName + '.';\n }\n }\n });\n key += keycode;\n return key === fullKeyCode;\n }\n\n /**\n * Configures a handler callback for a key event.\n * @param fullKey The event name that combines all simultaneous keystrokes.\n * @param handler The function that responds to the key event.\n * @param zone The zone in which the event occurred.\n * @returns A callback function.\n */\n static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function {\n return (event: KeyboardEvent) => {\n if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {\n zone.runGuarded(() => handler(event));\n }\n };\n }\n\n /** @internal */\n static _normalizeKey(keyName: string): string {\n return keyName === 'esc' ? 'escape' : keyName;\n }\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 */\n\nimport {CommonModule, DOCUMENT, ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common';\nimport {\n ApplicationConfig,\n ApplicationModule,\n ApplicationRef,\n createPlatformFactory,\n ErrorHandler,\n inject,\n InjectionToken,\n ɵINJECTOR_SCOPE as INJECTOR_SCOPE,\n ɵinternalCreateApplication as internalCreateApplication,\n NgModule,\n PLATFORM_ID,\n PLATFORM_INITIALIZER,\n platformCore,\n PlatformRef,\n Provider,\n RendererFactory2,\n ɵresolveComponentResources as resolveComponentResources,\n ɵRuntimeError as RuntimeError,\n ɵSHARED_STYLES_HOST as SHARED_STYLES_HOST,\n StaticProvider,\n NgZone,\n Testability,\n TestabilityRegistry,\n ɵTESTABILITY as TESTABILITY,\n ɵTESTABILITY_GETTER as TESTABILITY_GETTER,\n ɵUSE_PENDING_TASKS,\n Type,\n ɵsetDocument,\n} from '@angular/core';\n\nimport {BrowserDomAdapter} from './browser/browser_adapter';\nimport {BrowserGetTestability} from './browser/testability';\nimport {DomRendererFactory2} from './dom/dom_renderer';\nimport {DomEventsPlugin} from './dom/events/dom_events';\nimport {EVENT_MANAGER_PLUGINS, EventManager} from './dom/events/event_manager';\nimport {KeyEventsPlugin} from './dom/events/key_events';\nimport {SharedStylesHost} from './dom/shared_styles_host';\nimport {RuntimeErrorCode} from './errors';\n\n/**\n * A context object that can be passed to `bootstrapApplication` to provide a pre-existing platform\n * injector.\n *\n * @publicApi\n */\nexport interface BootstrapContext {\n /**\n * A reference to a platform.\n */\n platformRef: PlatformRef;\n}\n\n/**\n * Bootstraps an instance of an Angular application and renders a standalone component as the\n * application's root component. More information about standalone components can be found in [this\n * guide](guide/components).\n *\n * @usageNotes\n * The root component passed into this function **must** be a standalone one\n *\n * ```angular-ts\n * @Component({\n * template: 'Hello world!'\n * })\n * class Root {}\n *\n * const appRef: ApplicationRef = await bootstrapApplication(Root);\n * ```\n *\n * You can add the list of providers that should be available in the application injector by\n * specifying the `providers` field in an object passed as the second argument:\n *\n * ```ts\n * await bootstrapApplication(Root, {\n * providers: [\n * {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}\n * ]\n * });\n * ```\n *\n * The `importProvidersFrom` helper method can be used to collect all providers from any\n * existing NgModule (and transitively from all NgModules that it imports):\n *\n * ```ts\n * await bootstrapApplication(Root, {\n * providers: [\n * importProvidersFrom(SomeNgModule)\n * ]\n * });\n * ```\n *\n * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by\n * default. You can add [Testability](api/core/Testability) by getting the list of necessary\n * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`\n * array, for example:\n *\n * ```ts\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(Root, {providers: [provideProtractorTestingSupport()]});\n * ```\n *\n * @param rootComponent A reference to a standalone component that should be rendered.\n * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for\n * additional info.\n * @param context Optional context object that can be used to provide a pre-existing\n * platform injector. This is useful for advanced use-cases, for example, server-side\n * rendering, where the platform is created for each request.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nexport async function bootstrapApplication(\n rootComponent: Type<unknown>,\n options?: ApplicationConfig,\n context?: BootstrapContext,\n): Promise<ApplicationRef> {\n const config = {\n rootComponent,\n ...createProvidersConfig(options, context),\n };\n\n if ((typeof ngJitMode === 'undefined' || ngJitMode) && typeof fetch === 'function') {\n await resolveJitResources();\n }\n\n return internalCreateApplication(config);\n}\n\n/**\n * Create an instance of an Angular application without bootstrapping any components. This is useful\n * for the situation where one wants to decouple application environment creation (a platform and\n * associated injectors) from rendering components on a screen. Components can be subsequently\n * bootstrapped on the returned `ApplicationRef`.\n *\n * @param options Extra configuration for the application environment, see `ApplicationConfig` for\n * additional info.\n * @param context Optional context object that can be used to provide a pre-existing\n * platform injector. This is useful for advanced use-cases, for example, server-side\n * rendering, where the platform is created for each request.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nexport async function createApplication(\n options?: ApplicationConfig,\n context?: BootstrapContext,\n): Promise<ApplicationRef> {\n if ((typeof ngJitMode === 'undefined' || ngJitMode) && typeof fetch === 'function') {\n await resolveJitResources();\n }\n\n return internalCreateApplication(createProvidersConfig(options, context));\n}\n\nfunction createProvidersConfig(options?: ApplicationConfig, context?: BootstrapContext) {\n return {\n platformRef: context?.platformRef,\n appProviders: [...BROWSER_MODULE_PROVIDERS, ...(options?.providers ?? [])],\n platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n };\n}\n\n/** Attempt to resolve component resources before bootstrapping in JIT mode. */\nasync function resolveJitResources(): Promise<void> {\n try {\n return await resolveComponentResources(fetch);\n } catch (error) {\n // Log, but don't block bootstrapping on error.\n // tslint:disable-next-line:no-console\n console.error(error);\n }\n}\n\n/**\n * Returns a set of providers required to setup [Testability](api/core/Testability) for an\n * application bootstrapped using the `bootstrapApplication` function. The set of providers is\n * needed to support testing an application with Protractor (which relies on the Testability APIs\n * to be present).\n *\n * @returns An array of providers required to setup Testability for an application and make it\n * available for testing using Protractor.\n *\n * @publicApi\n */\nexport function provideProtractorTestingSupport(\n options: {usePendingTasksForStability?: boolean} = {},\n): Provider[] {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideProtractorTestingSupport` call results in app\n // code.\n return [\n ...TESTABILITY_PROVIDERS,\n options?.usePendingTasksForStability !== undefined\n ? {provide: ɵUSE_PENDING_TASKS, useValue: options.usePendingTasksForStability ?? false}\n : [],\n ];\n}\n\nexport function initDomAdapter() {\n BrowserDomAdapter.makeCurrent();\n}\n\nexport function errorHandler(): ErrorHandler {\n return new ErrorHandler();\n}\n\nexport function _document(): any {\n // Tell ivy about the global document\n ɵsetDocument(document);\n return document;\n}\n\nconst INTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] = [\n {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},\n {provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true},\n {provide: DOCUMENT, useFactory: _document},\n];\n\n/**\n * A factory function that returns a `PlatformRef` instance associated with browser service\n * providers.\n *\n * @publicApi\n */\nexport const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef =\n createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\n\n/**\n * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.\n * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the\n * `BrowserModule` presence itself, since the standalone-based bootstrap just imports\n * `BrowserModule` providers without referencing the module itself.\n */\nconst BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(\n typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '',\n);\n\nconst TESTABILITY_PROVIDERS = [\n {\n provide: TESTABILITY_GETTER,\n useClass: BrowserGetTestability,\n },\n {\n provide: TESTABILITY,\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER],\n },\n {\n provide: Testability, // Also provide as `Testability` for backwards-compatibility.\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER],\n },\n];\n\nconst BROWSER_MODULE_PROVIDERS: Provider[] = [\n {provide: INJECTOR_SCOPE, useValue: 'root'},\n {provide: ErrorHandler, useFactory: errorHandler},\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: DomEventsPlugin,\n multi: true,\n },\n {provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true},\n DomRendererFactory2,\n {provide: SHARED_STYLES_HOST, useClass: SharedStylesHost},\n // Only remains for backwards compatibility, should be removed once g3 no longer needs it.\n {provide: SharedStylesHost, useExisting: SHARED_STYLES_HOST},\n EventManager,\n {provide: RendererFactory2, useExisting: DomRendererFactory2},\n typeof ngDevMode === 'undefined' || ngDevMode\n ? {provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true}\n : [],\n];\n\n/**\n * Exports required infrastructure for all Angular apps.\n * Included by default in all Angular apps created with the CLI\n * `new` command.\n * Re-exports `CommonModule` and `ApplicationModule`, making their\n * exports and providers available to all apps.\n *\n * @publicApi\n */\n@NgModule({\n providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],\n exports: [CommonModule, ApplicationModule],\n})\nexport class BrowserModule {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const providersAlreadyPresent = inject(BROWSER_MODULE_PROVIDERS_MARKER, {\n optional: true,\n skipSelf: true,\n });\n\n if (providersAlreadyPresent) {\n throw new RuntimeError(\n RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED,\n `Providers from the \\`BrowserModule\\` have already been loaded. If you need access ` +\n `to common directives such as NgIf and NgFor, import the \\`CommonModule\\` instead.`,\n );\n }\n }\n }\n}\n"],"names":["DomAdapter","setRootDomAdapter","parseCookieValue","global","RuntimeError","getDOM","internalCreateApplication","resolveComponentResources","ɵUSE_PENDING_TASKS","ɵsetDocument","PLATFORM_BROWSER_ID","TESTABILITY_GETTER","TESTABILITY","INJECTOR_SCOPE","SHARED_STYLES_HOST"],"mappings":";;;;;;;;;;;AAoBM,MAAO,iBAAkB,SAAQA,WAAU,CAAA;AAC7B,EAAA,iBAAiB,GAAY,IAAI;AAEnD,EAAA,OAAO,WAAW,GAAA;AAChB,IAAAC,kBAAiB,CAAC,IAAI,iBAAiB,EAAE,CAAC;AAC5C,EAAA;EAES,WAAW,CAAC,EAAQ,EAAE,GAAQ,EAAE,QAAa,EAAE,OAAY,EAAA;IAClE,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC;AAC3C,IAAA,OAAO,MAAK;MACV,EAAE,CAAC,mBAAmB,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC;IAChD,CAAC;AACH,EAAA;AACS,EAAA,aAAa,CAAC,EAAQ,EAAE,GAAQ,EAAA;AACvC,IAAA,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC;AACvB,EAAA;EACS,MAAM,CAAC,IAAU,EAAA;IACvB,IAAiC,CAAC,MAAM,EAAE;AAC7C,EAAA;AACS,EAAA,aAAa,CAAC,OAAe,EAAE,GAAc,EAAA;AACpD,IAAA,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,kBAAkB,EAAE;AACtC,IAAA,OAAO,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC;AACnC,EAAA;AACS,EAAA,kBAAkB,GAAA;AACzB,IAAA,OAAO,QAAQ,CAAC,cAAc,CAAC,kBAAkB,CAAC,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;UAhBW,aAAa;AAAA,IAAA,IAAA,EAAA,EAAA;AAAA,IAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA;AAAA,GAAA,CAAA;;;;;UAAb,aAAa;AAAA,IAAA,OAAA,EAAA,CAFd,YAAY,EAAE,iBAAiB;AAAA,GAAA,CAAA;;;;;UAE9B,aAAa;AAAA,IAAA,SAAA,EAHb,CAAC,GAAG,wBAAwB,EAAE,GAAG,qBAAqB,CAAC;AAAA,IAAA,OAAA,EAAA,CACxD,YAAY,EAAE,iBAAiB;AAAA,GAAA,CAAA;;;;;;QAE9B,aAAa;AAAA,EAAA,UAAA,EAAA,CAAA;UAJzB,QAAQ;AAAC,IAAA,IAAA,EAAA,CAAA;AACR,MAAA,SAAS,EAAE,CAAC,GAAG,wBAAwB,EAAE,GAAG,qBAAqB,CAAC;AAClE,MAAA,OAAO,EAAE,CAAC,YAAY,EAAE,iBAAiB;KAC1C;;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.1.0-next.
|
|
2
|
+
* @license Angular v22.1.0-next.6
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { DOCUMENT, ɵgetDOM as _getDOM } from '@angular/common';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { Inject, Injectable, InjectionToken, ɵRuntimeError as _RuntimeError, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, ɵSHARED_STYLES_HOST as _SHARED_STYLES_HOST, ɵTracingService as _TracingService, RendererStyleFlags2, ɵallLeavingAnimations as _allLeavingAnimations } from '@angular/core';
|
|
9
|
+
import { Inject, Injectable, InjectionToken, ɵRuntimeError as _RuntimeError, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, makeEnvironmentProviders, ViewEncapsulation, ɵSHARED_STYLES_HOST as _SHARED_STYLES_HOST, ɵTracingService as _TracingService, RendererStyleFlags2, ɵallLeavingAnimations as _allLeavingAnimations } from '@angular/core';
|
|
10
10
|
|
|
11
11
|
class EventManagerPlugin {
|
|
12
12
|
_doc;
|
|
@@ -32,7 +32,7 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
|
32
32
|
}
|
|
33
33
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
34
34
|
minVersion: "12.0.0",
|
|
35
|
-
version: "22.1.0-next.
|
|
35
|
+
version: "22.1.0-next.6",
|
|
36
36
|
ngImport: i0,
|
|
37
37
|
type: DomEventsPlugin,
|
|
38
38
|
deps: [{
|
|
@@ -42,14 +42,14 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
|
42
42
|
});
|
|
43
43
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
44
44
|
minVersion: "12.0.0",
|
|
45
|
-
version: "22.1.0-next.
|
|
45
|
+
version: "22.1.0-next.6",
|
|
46
46
|
ngImport: i0,
|
|
47
47
|
type: DomEventsPlugin
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
i0.ɵɵngDeclareClassMetadata({
|
|
51
51
|
minVersion: "12.0.0",
|
|
52
|
-
version: "22.1.0-next.
|
|
52
|
+
version: "22.1.0-next.6",
|
|
53
53
|
ngImport: i0,
|
|
54
54
|
type: DomEventsPlugin,
|
|
55
55
|
decorators: [{
|
|
@@ -103,7 +103,7 @@ class EventManager {
|
|
|
103
103
|
}
|
|
104
104
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
105
105
|
minVersion: "12.0.0",
|
|
106
|
-
version: "22.1.0-next.
|
|
106
|
+
version: "22.1.0-next.6",
|
|
107
107
|
ngImport: i0,
|
|
108
108
|
type: EventManager,
|
|
109
109
|
deps: [{
|
|
@@ -115,14 +115,14 @@ class EventManager {
|
|
|
115
115
|
});
|
|
116
116
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
117
117
|
minVersion: "12.0.0",
|
|
118
|
-
version: "22.1.0-next.
|
|
118
|
+
version: "22.1.0-next.6",
|
|
119
119
|
ngImport: i0,
|
|
120
120
|
type: EventManager
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
i0.ɵɵngDeclareClassMetadata({
|
|
124
124
|
minVersion: "12.0.0",
|
|
125
|
-
version: "22.1.0-next.
|
|
125
|
+
version: "22.1.0-next.6",
|
|
126
126
|
ngImport: i0,
|
|
127
127
|
type: EventManager,
|
|
128
128
|
decorators: [{
|
|
@@ -272,7 +272,7 @@ class SharedStylesHost {
|
|
|
272
272
|
}
|
|
273
273
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
274
274
|
minVersion: "12.0.0",
|
|
275
|
-
version: "22.1.0-next.
|
|
275
|
+
version: "22.1.0-next.6",
|
|
276
276
|
ngImport: i0,
|
|
277
277
|
type: SharedStylesHost,
|
|
278
278
|
deps: [{
|
|
@@ -289,14 +289,14 @@ class SharedStylesHost {
|
|
|
289
289
|
});
|
|
290
290
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
291
291
|
minVersion: "12.0.0",
|
|
292
|
-
version: "22.1.0-next.
|
|
292
|
+
version: "22.1.0-next.6",
|
|
293
293
|
ngImport: i0,
|
|
294
294
|
type: SharedStylesHost
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
i0.ɵɵngDeclareClassMetadata({
|
|
298
298
|
minVersion: "12.0.0",
|
|
299
|
-
version: "22.1.0-next.
|
|
299
|
+
version: "22.1.0-next.6",
|
|
300
300
|
ngImport: i0,
|
|
301
301
|
type: SharedStylesHost,
|
|
302
302
|
decorators: [{
|
|
@@ -340,7 +340,7 @@ const NAMESPACE_URIS = {
|
|
|
340
340
|
'math': 'http://www.w3.org/1998/Math/MathML'
|
|
341
341
|
};
|
|
342
342
|
const COMPONENT_REGEX = /%COMP%/g;
|
|
343
|
-
const SOURCEMAP_URL_REGEXP = /\/\*#\s*sourceMappingURL=(
|
|
343
|
+
const SOURCEMAP_URL_REGEXP = /\/\*#\s*sourceMappingURL=([^\s*]+)\s*\*\//;
|
|
344
344
|
const PROTOCOL_REGEXP = /^https?:/;
|
|
345
345
|
const COMPONENT_VARIABLE = '%COMP%';
|
|
346
346
|
const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -349,6 +349,14 @@ const REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT = true;
|
|
|
349
349
|
const REMOVE_STYLES_ON_COMPONENT_DESTROY = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'RemoveStylesOnCompDestroy' : '', {
|
|
350
350
|
factory: () => REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT
|
|
351
351
|
});
|
|
352
|
+
const CSS_VAR_NAMESPACE = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'CSS_VAR_NAMESPACE' : '');
|
|
353
|
+
function provideCssVarNamespacing(namespace) {
|
|
354
|
+
return makeEnvironmentProviders([{
|
|
355
|
+
provide: CSS_VAR_NAMESPACE,
|
|
356
|
+
useFactory: appId => `${namespace ?? appId}_`,
|
|
357
|
+
deps: [APP_ID]
|
|
358
|
+
}]);
|
|
359
|
+
}
|
|
352
360
|
function shimContentAttribute(componentShortId) {
|
|
353
361
|
return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);
|
|
354
362
|
}
|
|
@@ -389,7 +397,8 @@ class DomRendererFactory2 {
|
|
|
389
397
|
tracingService;
|
|
390
398
|
rendererByCompId = new Map();
|
|
391
399
|
defaultRenderer;
|
|
392
|
-
|
|
400
|
+
cssVarNamespace;
|
|
401
|
+
constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestroy, doc, ngZone, nonce = null, tracingService = null, cssVarNamespace = null) {
|
|
393
402
|
this.eventManager = eventManager;
|
|
394
403
|
this.sharedStylesHost = sharedStylesHost;
|
|
395
404
|
this.appId = appId;
|
|
@@ -398,7 +407,8 @@ class DomRendererFactory2 {
|
|
|
398
407
|
this.ngZone = ngZone;
|
|
399
408
|
this.nonce = nonce;
|
|
400
409
|
this.tracingService = tracingService;
|
|
401
|
-
this.
|
|
410
|
+
this.cssVarNamespace = cssVarNamespace ?? '';
|
|
411
|
+
this.defaultRenderer = new DefaultDomRenderer2(eventManager, doc, ngZone, this.tracingService, this.cssVarNamespace);
|
|
402
412
|
}
|
|
403
413
|
createRenderer(element, type) {
|
|
404
414
|
if (!element || !type) {
|
|
@@ -430,14 +440,14 @@ class DomRendererFactory2 {
|
|
|
430
440
|
const tracingService = this.tracingService;
|
|
431
441
|
switch (type.encapsulation) {
|
|
432
442
|
case ViewEncapsulation.Emulated:
|
|
433
|
-
renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestroy, doc, ngZone, tracingService);
|
|
443
|
+
renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestroy, doc, ngZone, tracingService, this.cssVarNamespace);
|
|
434
444
|
break;
|
|
435
445
|
case ViewEncapsulation.ShadowDom:
|
|
436
|
-
return new ShadowDomRenderer(eventManager, element, type, doc, ngZone, this.nonce, tracingService, sharedStylesHost);
|
|
446
|
+
return new ShadowDomRenderer(eventManager, element, type, doc, ngZone, this.nonce, tracingService, this.cssVarNamespace, sharedStylesHost);
|
|
437
447
|
case ViewEncapsulation.ExperimentalIsolatedShadowDom:
|
|
438
|
-
return new ShadowDomRenderer(eventManager, element, type, doc, ngZone, this.nonce, tracingService);
|
|
448
|
+
return new ShadowDomRenderer(eventManager, element, type, doc, ngZone, this.nonce, tracingService, this.cssVarNamespace);
|
|
439
449
|
default:
|
|
440
|
-
renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestroy, doc, ngZone, tracingService);
|
|
450
|
+
renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestroy, doc, ngZone, tracingService, this.cssVarNamespace);
|
|
441
451
|
break;
|
|
442
452
|
}
|
|
443
453
|
rendererByCompId.set(type.id, renderer);
|
|
@@ -452,7 +462,7 @@ class DomRendererFactory2 {
|
|
|
452
462
|
}
|
|
453
463
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
454
464
|
minVersion: "12.0.0",
|
|
455
|
-
version: "22.1.0-next.
|
|
465
|
+
version: "22.1.0-next.6",
|
|
456
466
|
ngImport: i0,
|
|
457
467
|
type: DomRendererFactory2,
|
|
458
468
|
deps: [{
|
|
@@ -472,19 +482,22 @@ class DomRendererFactory2 {
|
|
|
472
482
|
}, {
|
|
473
483
|
token: _TracingService,
|
|
474
484
|
optional: true
|
|
485
|
+
}, {
|
|
486
|
+
token: CSS_VAR_NAMESPACE,
|
|
487
|
+
optional: true
|
|
475
488
|
}],
|
|
476
489
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
477
490
|
});
|
|
478
491
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
479
492
|
minVersion: "12.0.0",
|
|
480
|
-
version: "22.1.0-next.
|
|
493
|
+
version: "22.1.0-next.6",
|
|
481
494
|
ngImport: i0,
|
|
482
495
|
type: DomRendererFactory2
|
|
483
496
|
});
|
|
484
497
|
}
|
|
485
498
|
i0.ɵɵngDeclareClassMetadata({
|
|
486
499
|
minVersion: "12.0.0",
|
|
487
|
-
version: "22.1.0-next.
|
|
500
|
+
version: "22.1.0-next.6",
|
|
488
501
|
ngImport: i0,
|
|
489
502
|
type: DomRendererFactory2,
|
|
490
503
|
decorators: [{
|
|
@@ -532,6 +545,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
532
545
|
}, {
|
|
533
546
|
type: Optional
|
|
534
547
|
}]
|
|
548
|
+
}, {
|
|
549
|
+
type: undefined,
|
|
550
|
+
decorators: [{
|
|
551
|
+
type: Inject,
|
|
552
|
+
args: [CSS_VAR_NAMESPACE]
|
|
553
|
+
}, {
|
|
554
|
+
type: Optional
|
|
555
|
+
}]
|
|
535
556
|
}]
|
|
536
557
|
});
|
|
537
558
|
class DefaultDomRenderer2 {
|
|
@@ -539,13 +560,15 @@ class DefaultDomRenderer2 {
|
|
|
539
560
|
doc;
|
|
540
561
|
ngZone;
|
|
541
562
|
tracingService;
|
|
563
|
+
cssVarNamespace;
|
|
542
564
|
data = Object.create(null);
|
|
543
565
|
throwOnSyntheticProps = true;
|
|
544
|
-
constructor(eventManager, doc, ngZone, tracingService) {
|
|
566
|
+
constructor(eventManager, doc, ngZone, tracingService, cssVarNamespace = '') {
|
|
545
567
|
this.eventManager = eventManager;
|
|
546
568
|
this.doc = doc;
|
|
547
569
|
this.ngZone = ngZone;
|
|
548
570
|
this.tracingService = tracingService;
|
|
571
|
+
this.cssVarNamespace = cssVarNamespace;
|
|
549
572
|
}
|
|
550
573
|
destroy() {}
|
|
551
574
|
destroyNode = null;
|
|
@@ -622,14 +645,22 @@ class DefaultDomRenderer2 {
|
|
|
622
645
|
el.classList.remove(name);
|
|
623
646
|
}
|
|
624
647
|
setStyle(el, style, value, flags) {
|
|
625
|
-
|
|
648
|
+
const isVariable = style.startsWith('--');
|
|
649
|
+
if (isVariable) {
|
|
650
|
+
style = style.replace('%NS%', this.cssVarNamespace);
|
|
651
|
+
}
|
|
652
|
+
if (isVariable || flags & (RendererStyleFlags2.DashCase | RendererStyleFlags2.Important)) {
|
|
626
653
|
el.style.setProperty(style, value, flags & RendererStyleFlags2.Important ? 'important' : '');
|
|
627
654
|
} else {
|
|
628
655
|
el.style[style] = value;
|
|
629
656
|
}
|
|
630
657
|
}
|
|
631
658
|
removeStyle(el, style, flags) {
|
|
632
|
-
|
|
659
|
+
const isVariable = style.startsWith('--');
|
|
660
|
+
if (isVariable) {
|
|
661
|
+
style = style.replace('%NS%', this.cssVarNamespace);
|
|
662
|
+
}
|
|
663
|
+
if (isVariable || flags & RendererStyleFlags2.DashCase) {
|
|
633
664
|
el.style.removeProperty(style);
|
|
634
665
|
} else {
|
|
635
666
|
el.style[style] = '';
|
|
@@ -687,8 +718,8 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
|
|
|
687
718
|
hostEl;
|
|
688
719
|
sharedStylesHost;
|
|
689
720
|
shadowRoot;
|
|
690
|
-
constructor(eventManager, hostEl, component, doc, ngZone, nonce, tracingService, sharedStylesHost) {
|
|
691
|
-
super(eventManager, doc, ngZone, tracingService);
|
|
721
|
+
constructor(eventManager, hostEl, component, doc, ngZone, nonce, tracingService, cssVarNamespace, sharedStylesHost) {
|
|
722
|
+
super(eventManager, doc, ngZone, tracingService, cssVarNamespace);
|
|
692
723
|
this.hostEl = hostEl;
|
|
693
724
|
this.sharedStylesHost = sharedStylesHost;
|
|
694
725
|
this.shadowRoot = hostEl.attachShadow({
|
|
@@ -702,7 +733,7 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
|
|
|
702
733
|
const baseHref = _getDOM().getBaseHref(doc) ?? '';
|
|
703
734
|
styles = addBaseHrefToCssSourceMap(baseHref, styles);
|
|
704
735
|
}
|
|
705
|
-
styles = shimStylesContent(component.id, styles);
|
|
736
|
+
styles = shimStylesContent(component.id, styles).map(s => s.replace(/%NS%/g, cssVarNamespace));
|
|
706
737
|
for (const style of styles) {
|
|
707
738
|
const styleEl = document.createElement('style');
|
|
708
739
|
if (nonce) {
|
|
@@ -748,8 +779,8 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
|
|
748
779
|
removeStylesOnCompDestroy;
|
|
749
780
|
styles;
|
|
750
781
|
styleUrls;
|
|
751
|
-
constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, tracingService, compId) {
|
|
752
|
-
super(eventManager, doc, ngZone, tracingService);
|
|
782
|
+
constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, tracingService, cssVarNamespace, compId) {
|
|
783
|
+
super(eventManager, doc, ngZone, tracingService, cssVarNamespace);
|
|
753
784
|
this.sharedStylesHost = sharedStylesHost;
|
|
754
785
|
this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;
|
|
755
786
|
let styles = component.styles;
|
|
@@ -757,7 +788,8 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
|
|
757
788
|
const baseHref = _getDOM().getBaseHref(doc) ?? '';
|
|
758
789
|
styles = addBaseHrefToCssSourceMap(baseHref, styles);
|
|
759
790
|
}
|
|
760
|
-
|
|
791
|
+
const shimmed = compId ? shimStylesContent(compId, styles) : styles;
|
|
792
|
+
this.styles = shimmed.map(s => s.replace(/%NS%/g, cssVarNamespace));
|
|
761
793
|
this.styleUrls = component.getExternalStyles?.(compId);
|
|
762
794
|
}
|
|
763
795
|
applyStyles() {
|
|
@@ -775,9 +807,9 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
|
|
775
807
|
class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {
|
|
776
808
|
contentAttr;
|
|
777
809
|
hostAttr;
|
|
778
|
-
constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, tracingService) {
|
|
810
|
+
constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, tracingService, cssVarNamespace) {
|
|
779
811
|
const compId = appId + '-' + component.id;
|
|
780
|
-
super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, tracingService, compId);
|
|
812
|
+
super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, tracingService, cssVarNamespace, compId);
|
|
781
813
|
this.contentAttr = shimContentAttribute(compId);
|
|
782
814
|
this.hostAttr = shimHostAttribute(compId);
|
|
783
815
|
}
|
|
@@ -792,5 +824,5 @@ class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {
|
|
|
792
824
|
}
|
|
793
825
|
}
|
|
794
826
|
|
|
795
|
-
export { DomEventsPlugin, DomRendererFactory2, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, REMOVE_STYLES_ON_COMPONENT_DESTROY, SharedStylesHost };
|
|
827
|
+
export { CSS_VAR_NAMESPACE, DomEventsPlugin, DomRendererFactory2, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, REMOVE_STYLES_ON_COMPONENT_DESTROY, SharedStylesHost, provideCssVarNamespacing };
|
|
796
828
|
//# sourceMappingURL=_dom_renderer-chunk.mjs.map
|