@angular/platform-browser-dynamic 20.0.0-next.2 → 20.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.4
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { ViewEncapsulation, Injector, Compiler,
|
|
8
|
+
import { Version, ViewEncapsulation, Injector, Compiler, Injectable, createPlatformFactory, COMPILER_OPTIONS, CompilerFactory } from '@angular/core';
|
|
9
9
|
import { CompilerConfig, ResourceLoader } from '@angular/compiler';
|
|
10
|
-
import {
|
|
11
|
-
|
|
10
|
+
import { platformBrowser } from '@angular/platform-browser';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @module
|
|
14
|
+
* @description
|
|
15
|
+
* Entry point for all public APIs of the platform-browser-dynamic package.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* @publicApi
|
|
19
|
+
*/
|
|
20
|
+
const VERSION = new Version('20.0.0-next.4');
|
|
12
21
|
|
|
13
22
|
const COMPILER_PROVIDERS = [
|
|
14
23
|
{ provide: Compiler, useFactory: () => new Compiler() },
|
|
@@ -70,16 +79,6 @@ function _mergeArrays(parts) {
|
|
|
70
79
|
return result;
|
|
71
80
|
}
|
|
72
81
|
|
|
73
|
-
/**
|
|
74
|
-
* A platform that included corePlatform and the compiler.
|
|
75
|
-
*
|
|
76
|
-
* @publicApi
|
|
77
|
-
*/
|
|
78
|
-
const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [
|
|
79
|
-
{ provide: COMPILER_OPTIONS, useValue: {}, multi: true },
|
|
80
|
-
{ provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS] },
|
|
81
|
-
]);
|
|
82
|
-
|
|
83
82
|
class ResourceLoaderImpl extends ResourceLoader {
|
|
84
83
|
get(url) {
|
|
85
84
|
let resolve;
|
|
@@ -113,40 +112,25 @@ class ResourceLoaderImpl extends ResourceLoader {
|
|
|
113
112
|
xhr.send();
|
|
114
113
|
return promise;
|
|
115
114
|
}
|
|
116
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
117
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
116
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: ResourceLoaderImpl });
|
|
118
117
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: ResourceLoaderImpl, decorators: [{
|
|
120
119
|
type: Injectable
|
|
121
120
|
}] });
|
|
122
121
|
|
|
123
|
-
/**
|
|
124
|
-
* @publicApi
|
|
125
|
-
*/
|
|
126
122
|
const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [
|
|
127
|
-
_INTERNAL_BROWSER_PLATFORM_PROVIDERS,
|
|
128
123
|
{
|
|
129
124
|
provide: COMPILER_OPTIONS,
|
|
130
125
|
useValue: { providers: [{ provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: [] }] },
|
|
131
126
|
multi: true,
|
|
132
127
|
},
|
|
133
|
-
{ provide:
|
|
128
|
+
{ provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS] },
|
|
134
129
|
];
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @module
|
|
138
|
-
* @description
|
|
139
|
-
* Entry point for all public APIs of the platform-browser-dynamic package.
|
|
140
|
-
*/
|
|
141
|
-
/**
|
|
142
|
-
* @publicApi
|
|
143
|
-
*/
|
|
144
|
-
const VERSION = new Version('20.0.0-next.2');
|
|
145
|
-
|
|
146
130
|
/**
|
|
147
131
|
* @publicApi
|
|
148
132
|
*/
|
|
149
|
-
const platformBrowserDynamic = createPlatformFactory(
|
|
133
|
+
const platformBrowserDynamic = createPlatformFactory(platformBrowser, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
|
150
134
|
|
|
151
|
-
export { JitCompilerFactory, VERSION, platformBrowserDynamic, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS
|
|
135
|
+
export { JitCompilerFactory, VERSION, platformBrowserDynamic, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS };
|
|
152
136
|
//# sourceMappingURL=platform-browser-dynamic.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-browser-dynamic.mjs","sources":["../../../../../../packages/platform-browser-dynamic/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/src/platform_core_dynamic.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_impl.ts","../../../../../../packages/platform-browser-dynamic/src/platform_providers.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.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 {CompilerConfig} from '@angular/compiler';\nimport {\n Compiler,\n CompilerFactory,\n CompilerOptions,\n Injector,\n StaticProvider,\n ViewEncapsulation,\n} from '@angular/core';\n\nexport const COMPILER_PROVIDERS = <StaticProvider[]>[\n {provide: Compiler, useFactory: () => new Compiler()},\n];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /** @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n defaultEncapsulation: ViewEncapsulation.Emulated,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create({\n providers: [\n COMPILER_PROVIDERS,\n {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n defaultEncapsulation: opts.defaultEncapsulation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: [],\n },\n opts.providers!,\n ],\n });\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n defaultEncapsulation: _lastDefined(optionsArr.map((options) => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map((options) => options.providers!)),\n preserveWhitespaces: _lastDefined(optionsArr.map((options) => options.preserveWhitespaces)),\n };\n}\n\nfunction _lastDefined<T>(args: T[]): T | undefined {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\n\nfunction _mergeArrays(parts: any[][]): any[] {\n const result: any[] = [];\n parts.forEach((part) => part && result.push(...part));\n return result;\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 {\n COMPILER_OPTIONS,\n CompilerFactory,\n createPlatformFactory,\n platformCore,\n} from '@angular/core';\n\nimport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * A platform that included corePlatform and the compiler.\n *\n * @publicApi\n */\nexport const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [\n {provide: COMPILER_OPTIONS, useValue: {}, multi: true},\n {provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS]},\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 {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\n@Injectable()\nexport class ResourceLoaderImpl extends ResourceLoader {\n override get(url: string): Promise<string> {\n let resolve: (result: any) => void;\n let reject: (error: any) => void;\n const promise = new Promise<string>((res, rej) => {\n resolve = res;\n reject = rej;\n });\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n\n xhr.onload = function () {\n const response = xhr.response;\n\n let status = xhr.status;\n\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = response ? 200 : 0;\n }\n\n if (200 <= status && status <= 300) {\n resolve(response);\n } else {\n reject(`Failed to load ${url}`);\n }\n };\n\n xhr.onerror = function () {\n reject(`Failed to load ${url}`);\n };\n\n xhr.send();\n return promise;\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 {ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common';\nimport {ResourceLoader} from '@angular/compiler';\nimport {COMPILER_OPTIONS, PLATFORM_ID, StaticProvider} from '@angular/core';\nimport {ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVIDERS} from '@angular/platform-browser';\n\nimport {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';\n\n/**\n * @publicApi\n */\nexport const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [\n INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n {\n provide: COMPILER_OPTIONS,\n useValue: {providers: [{provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: []}]},\n multi: true,\n },\n {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},\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\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser-dynamic package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = new Version('20.0.0-next.2');\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 {createPlatformFactory} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic,\n 'browserDynamic',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n);\n"],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID"],"mappings":";;;;;;;;;;;;AAkBO,MAAM,kBAAkB,GAAqB;AAClD,IAAA,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC;CACtD;AACD;;;;;AAKG;MACU,kBAAkB,CAAA;AACrB,IAAA,eAAe;;AAGvB,IAAA,WAAA,CAAY,cAAiC,EAAA;AAC3C,QAAA,MAAM,eAAe,GAAoB;YACvC,o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../../packages/platform-browser-dynamic/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_impl.ts","../../../../../../packages/platform-browser-dynamic/src/platform_providers.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser-dynamic package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = new Version('20.0.0-next.4');\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 {CompilerConfig} from '@angular/compiler';\nimport {\n Compiler,\n CompilerFactory,\n CompilerOptions,\n Injector,\n StaticProvider,\n ViewEncapsulation,\n} from '@angular/core';\n\nexport const COMPILER_PROVIDERS = <StaticProvider[]>[\n {provide: Compiler, useFactory: () => new Compiler()},\n];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /** @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n defaultEncapsulation: ViewEncapsulation.Emulated,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create({\n providers: [\n COMPILER_PROVIDERS,\n {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n defaultEncapsulation: opts.defaultEncapsulation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: [],\n },\n opts.providers!,\n ],\n });\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n defaultEncapsulation: _lastDefined(optionsArr.map((options) => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map((options) => options.providers!)),\n preserveWhitespaces: _lastDefined(optionsArr.map((options) => options.preserveWhitespaces)),\n };\n}\n\nfunction _lastDefined<T>(args: T[]): T | undefined {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\n\nfunction _mergeArrays(parts: any[][]): any[] {\n const result: any[] = [];\n parts.forEach((part) => part && result.push(...part));\n return result;\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 {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\n@Injectable()\nexport class ResourceLoaderImpl extends ResourceLoader {\n override get(url: string): Promise<string> {\n let resolve: (result: any) => void;\n let reject: (error: any) => void;\n const promise = new Promise<string>((res, rej) => {\n resolve = res;\n reject = rej;\n });\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n\n xhr.onload = function () {\n const response = xhr.response;\n\n let status = xhr.status;\n\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = response ? 200 : 0;\n }\n\n if (200 <= status && status <= 300) {\n resolve(response);\n } else {\n reject(`Failed to load ${url}`);\n }\n };\n\n xhr.onerror = function () {\n reject(`Failed to load ${url}`);\n };\n\n xhr.send();\n return promise;\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 {\n COMPILER_OPTIONS,\n CompilerFactory,\n createPlatformFactory,\n StaticProvider,\n} from '@angular/core';\nimport {platformBrowser} from '@angular/platform-browser';\nimport {ResourceLoader} from '@angular/compiler';\nimport {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';\nimport {JitCompilerFactory} from './compiler_factory';\n\nexport const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [\n {\n provide: COMPILER_OPTIONS,\n useValue: {providers: [{provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: []}]},\n multi: true,\n },\n {provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS]},\n];\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformBrowser,\n 'browserDynamic',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n);\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;;;AAIG;AAIH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACD/C,MAAM,kBAAkB,GAAqB;AAClD,IAAA,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC;CACtD;AACD;;;;;AAKG;MACU,kBAAkB,CAAA;AACrB,IAAA,eAAe;;AAGvB,IAAA,WAAA,CAAY,cAAiC,EAAA;AAC3C,QAAA,MAAM,eAAe,GAAoB;YACvC,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ;SACjD;QAED,IAAI,CAAC,eAAe,GAAG,CAAC,eAAe,EAAE,GAAG,cAAc,CAAC;;IAG7D,cAAc,CAAC,UAA6B,EAAE,EAAA;AAC5C,QAAA,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChE,QAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC/B,YAAA,SAAS,EAAE;gBACT,kBAAkB;AAClB,gBAAA;AACE,oBAAA,OAAO,EAAE,cAAc;oBACvB,UAAU,EAAE,MAAK;wBACf,OAAO,IAAI,cAAc,CAAC;4BACxB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;4BAC/C,mBAAmB,E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BAAkB,EAAE,IAAI,EAAE,EAAE,EAAC,CAAC,EAAC;AAC1F,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA;AACD,IAAA,EAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,gBAAgB,CAAC,EAAC;;AAGpF;;AAEG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACzD,eAAe,EACf,gBAAgB,EAChB,2CAA2C;;;;"}
|
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,85 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.4
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { ɵgetDOM as _getDOM, DOCUMENT } from '@angular/common';
|
|
8
7
|
import * as i0 from '@angular/core';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { ɵplatformCoreDynamic as _platformCoreDynamic, ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as _INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS } from '@angular/platform-browser-dynamic';
|
|
8
|
+
import { createPlatformFactory, NgModule } from '@angular/core';
|
|
9
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
12
10
|
import { BrowserTestingModule } from '@angular/platform-browser/testing';
|
|
13
11
|
|
|
14
|
-
/**
|
|
15
|
-
* A DOM based implementation of the TestComponentRenderer.
|
|
16
|
-
*/
|
|
17
|
-
class DOMTestComponentRenderer extends TestComponentRenderer {
|
|
18
|
-
_doc;
|
|
19
|
-
constructor(_doc) {
|
|
20
|
-
super();
|
|
21
|
-
this._doc = _doc;
|
|
22
|
-
}
|
|
23
|
-
insertRootElement(rootElId) {
|
|
24
|
-
this.removeAllRootElementsImpl();
|
|
25
|
-
const rootElement = _getDOM().getDefaultDocument().createElement('div');
|
|
26
|
-
rootElement.setAttribute('id', rootElId);
|
|
27
|
-
this._doc.body.appendChild(rootElement);
|
|
28
|
-
}
|
|
29
|
-
removeAllRootElements() {
|
|
30
|
-
// Check whether the `DOCUMENT` instance retrieved from DI contains
|
|
31
|
-
// the necessary function to complete the cleanup. In tests that don't
|
|
32
|
-
// interact with DOM, the `DOCUMENT` might be mocked and some functions
|
|
33
|
-
// might be missing. For such tests, DOM cleanup is not required and
|
|
34
|
-
// we skip the logic if there are missing functions.
|
|
35
|
-
if (typeof this._doc.querySelectorAll === 'function') {
|
|
36
|
-
this.removeAllRootElementsImpl();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
removeAllRootElementsImpl() {
|
|
40
|
-
const oldRoots = this._doc.querySelectorAll('[id^=root]');
|
|
41
|
-
for (let i = 0; i < oldRoots.length; i++) {
|
|
42
|
-
_getDOM().remove(oldRoots[i]);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
46
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DOMTestComponentRenderer });
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{
|
|
49
|
-
type: Injectable
|
|
50
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
51
|
-
type: Inject,
|
|
52
|
-
args: [DOCUMENT]
|
|
53
|
-
}] }] });
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Platform for dynamic tests
|
|
57
|
-
*
|
|
58
|
-
* @publicApi
|
|
59
|
-
*/
|
|
60
|
-
const platformCoreDynamicTesting = createPlatformFactory(_platformCoreDynamic, 'coreDynamicTesting', []);
|
|
61
|
-
|
|
62
12
|
/**
|
|
63
13
|
* @publicApi
|
|
64
14
|
*/
|
|
65
|
-
const platformBrowserDynamicTesting = createPlatformFactory(
|
|
15
|
+
const platformBrowserDynamicTesting = createPlatformFactory(platformBrowserDynamic, 'browserDynamicTesting');
|
|
66
16
|
/**
|
|
67
17
|
* NgModule for testing.
|
|
68
18
|
*
|
|
69
19
|
* @publicApi
|
|
70
20
|
*/
|
|
71
21
|
class BrowserDynamicTestingModule {
|
|
72
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
73
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
74
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.4", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] });
|
|
24
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: BrowserDynamicTestingModule, imports: [BrowserTestingModule] });
|
|
75
25
|
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{
|
|
77
27
|
type: NgModule,
|
|
78
28
|
args: [{
|
|
79
29
|
exports: [BrowserTestingModule],
|
|
80
|
-
providers: [{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer }],
|
|
81
30
|
}]
|
|
82
31
|
}] });
|
|
83
32
|
|
|
84
|
-
export { BrowserDynamicTestingModule, platformBrowserDynamicTesting
|
|
33
|
+
export { BrowserDynamicTestingModule, platformBrowserDynamicTesting };
|
|
85
34
|
//# sourceMappingURL=testing.mjs.map
|
package/fesm2022/testing.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/testing.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 {createPlatformFactory, NgModule, PlatformRef, StaticProvider} from '@angular/core';\nimport {platformBrowserDynamic} from '@angular/platform-browser-dynamic';\nimport {BrowserTestingModule} from '@angular/platform-browser/testing';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamicTesting = createPlatformFactory(\n platformBrowserDynamic,\n 'browserDynamicTesting',\n);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserTestingModule],\n})\nexport class BrowserDynamicTestingModule {}\n"],"names":[],"mappings":";;;;;;;;;;;AAYA;;AAEG;AACU,MAAA,6BAA6B,GAAG,qBAAqB,CAChE,sBAAsB,EACtB,uBAAuB;AAGzB;;;;AAIG;MAIU,2BAA2B,CAAA;kHAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YAF5B,oBAAoB,CAAA,EAAA,CAAA;AAEnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YAF5B,oBAAoB,CAAA,EAAA,CAAA;;sGAEnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAChC,iBAAA;;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.4
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A platform that included corePlatform and the compiler.
|
|
12
|
-
*
|
|
13
|
-
* @publicApi
|
|
14
|
-
*/
|
|
15
|
-
declare const platformCoreDynamic: (extraProviders?: i0.StaticProvider[]) => i0.PlatformRef;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @publicApi
|
|
19
|
-
*/
|
|
20
|
-
declare const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[];
|
|
8
|
+
import { Version, CompilerFactory, CompilerOptions, Compiler, StaticProvider } from '@angular/core';
|
|
21
9
|
|
|
22
10
|
/**
|
|
23
11
|
* @module
|
|
@@ -41,9 +29,10 @@ declare class JitCompilerFactory implements CompilerFactory {
|
|
|
41
29
|
createCompiler(options?: CompilerOptions[]): Compiler;
|
|
42
30
|
}
|
|
43
31
|
|
|
32
|
+
declare const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[];
|
|
44
33
|
/**
|
|
45
34
|
* @publicApi
|
|
46
35
|
*/
|
|
47
|
-
declare const platformBrowserDynamic: (extraProviders?:
|
|
36
|
+
declare const platformBrowserDynamic: (extraProviders?: StaticProvider[]) => i0.PlatformRef;
|
|
48
37
|
|
|
49
|
-
export { JitCompilerFactory, VERSION, platformBrowserDynamic, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS
|
|
38
|
+
export { JitCompilerFactory, VERSION, platformBrowserDynamic, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/platform-browser-dynamic",
|
|
3
|
-
"version": "20.0.0-next.
|
|
3
|
+
"version": "20.0.0-next.4",
|
|
4
4
|
"description": "Angular - library for using Angular in a web browser with JIT compilation",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "20.0.0-next.
|
|
15
|
-
"@angular/common": "20.0.0-next.
|
|
16
|
-
"@angular/compiler": "20.0.0-next.
|
|
17
|
-
"@angular/platform-browser": "20.0.0-next.
|
|
14
|
+
"@angular/core": "20.0.0-next.4",
|
|
15
|
+
"@angular/common": "20.0.0-next.4",
|
|
16
|
+
"@angular/compiler": "20.0.0-next.4",
|
|
17
|
+
"@angular/platform-browser": "20.0.0-next.4"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -41,7 +41,10 @@
|
|
|
41
41
|
"@angular/service-worker"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
-
"sideEffects":
|
|
44
|
+
"sideEffects": [
|
|
45
|
+
"./fesm2022/platform-browser-dynamic.mjs",
|
|
46
|
+
"./fesm2022/testing.mjs"
|
|
47
|
+
],
|
|
45
48
|
"module": "./fesm2022/platform-browser-dynamic.mjs",
|
|
46
49
|
"typings": "./index.d.ts",
|
|
47
50
|
"type": "module",
|
package/testing/index.d.ts
CHANGED
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.4
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import {
|
|
8
|
+
import { StaticProvider, PlatformRef } from '@angular/core';
|
|
9
9
|
import * as i1 from '@angular/platform-browser/testing';
|
|
10
|
-
import { TestComponentRenderer } from '@angular/core/testing';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* A DOM based implementation of the TestComponentRenderer.
|
|
14
|
-
*/
|
|
15
|
-
declare class DOMTestComponentRenderer extends TestComponentRenderer {
|
|
16
|
-
private _doc;
|
|
17
|
-
constructor(_doc: any);
|
|
18
|
-
insertRootElement(rootElId: string): void;
|
|
19
|
-
removeAllRootElements(): void;
|
|
20
|
-
private removeAllRootElementsImpl;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DOMTestComponentRenderer, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DOMTestComponentRenderer>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Platform for dynamic tests
|
|
27
|
-
*
|
|
28
|
-
* @publicApi
|
|
29
|
-
*/
|
|
30
|
-
declare const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef;
|
|
31
10
|
|
|
32
11
|
/**
|
|
33
12
|
* @publicApi
|
|
@@ -44,4 +23,4 @@ declare class BrowserDynamicTestingModule {
|
|
|
44
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<BrowserDynamicTestingModule>;
|
|
45
24
|
}
|
|
46
25
|
|
|
47
|
-
export { BrowserDynamicTestingModule, platformBrowserDynamicTesting
|
|
26
|
+
export { BrowserDynamicTestingModule, platformBrowserDynamicTesting };
|