@angular/platform-browser-dynamic 15.1.0-next.3 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/resource_loader/resource_loader_impl.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/dom_test_component_renderer.mjs +3 -3
- package/esm2020/testing/src/testing.mjs +4 -4
- package/fesm2015/platform-browser-dynamic.mjs +12 -72
- package/fesm2015/platform-browser-dynamic.mjs.map +1 -1
- package/fesm2015/testing.mjs +12 -49
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/platform-browser-dynamic.mjs +12 -72
- package/fesm2020/platform-browser-dynamic.mjs.map +1 -1
- package/fesm2020/testing.mjs +12 -49
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +5 -5
- package/testing/index.d.ts +1 -1
|
@@ -46,9 +46,9 @@ export class ResourceLoaderImpl extends ResourceLoader {
|
|
|
46
46
|
return promise;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
ResourceLoaderImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
50
|
-
ResourceLoaderImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
49
|
+
ResourceLoaderImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
+
ResourceLoaderImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl, decorators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@ -14,5 +14,5 @@ import { Version } from '@angular/core';
|
|
|
14
14
|
/**
|
|
15
15
|
* @publicApi
|
|
16
16
|
*/
|
|
17
|
-
export const VERSION = new Version('15.1.0
|
|
17
|
+
export const VERSION = new Version('15.1.0');
|
|
18
18
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BsYXRmb3JtLWJyb3dzZXItZHluYW1pYy9zcmMvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSDs7OztHQUlHO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0Qzs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBwbGF0Zm9ybS1icm93c2VyLWR5bmFtaWMgcGFja2FnZS5cbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEBwdWJsaWNBcGlcbiAqL1xuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
|
|
@@ -31,9 +31,9 @@ export class DOMTestComponentRenderer extends TestComponentRenderer {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
DOMTestComponentRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
35
|
-
DOMTestComponentRenderer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
34
|
+
DOMTestComponentRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
DOMTestComponentRenderer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{
|
|
37
37
|
type: Injectable
|
|
38
38
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
39
39
|
type: Inject,
|
|
@@ -24,12 +24,12 @@ export const platformBrowserDynamicTesting = createPlatformFactory(platformCoreD
|
|
|
24
24
|
*/
|
|
25
25
|
export class BrowserDynamicTestingModule {
|
|
26
26
|
}
|
|
27
|
-
BrowserDynamicTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
28
|
-
BrowserDynamicTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0
|
|
29
|
-
BrowserDynamicTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0
|
|
27
|
+
BrowserDynamicTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
28
|
+
BrowserDynamicTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] });
|
|
29
|
+
BrowserDynamicTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, providers: [
|
|
30
30
|
{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer },
|
|
31
31
|
], imports: [BrowserTestingModule] });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{
|
|
33
33
|
type: NgModule,
|
|
34
34
|
args: [{
|
|
35
35
|
exports: [BrowserTestingModule],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0
|
|
2
|
+
* @license Angular v15.1.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,13 +10,6 @@ import { InjectionToken, PACKAGE_ROOT_URL, Compiler, ViewEncapsulation, MissingT
|
|
|
10
10
|
import { ɵPLATFORM_BROWSER_ID } from '@angular/common';
|
|
11
11
|
import { ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright Google LLC All Rights Reserved.
|
|
16
|
-
*
|
|
17
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
-
* found in the LICENSE file at https://angular.io/license
|
|
19
|
-
*/
|
|
20
13
|
const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');
|
|
21
14
|
/**
|
|
22
15
|
* A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.
|
|
@@ -91,13 +84,6 @@ function _mergeArrays(parts) {
|
|
|
91
84
|
return result;
|
|
92
85
|
}
|
|
93
86
|
|
|
94
|
-
/**
|
|
95
|
-
* @license
|
|
96
|
-
* Copyright Google LLC All Rights Reserved.
|
|
97
|
-
*
|
|
98
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
99
|
-
* found in the LICENSE file at https://angular.io/license
|
|
100
|
-
*/
|
|
101
87
|
/**
|
|
102
88
|
* A platform that included corePlatform and the compiler.
|
|
103
89
|
*
|
|
@@ -108,13 +94,6 @@ const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [
|
|
|
108
94
|
{ provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS] },
|
|
109
95
|
]);
|
|
110
96
|
|
|
111
|
-
/**
|
|
112
|
-
* @license
|
|
113
|
-
* Copyright Google LLC All Rights Reserved.
|
|
114
|
-
*
|
|
115
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
116
|
-
* found in the LICENSE file at https://angular.io/license
|
|
117
|
-
*/
|
|
118
97
|
class ResourceLoaderImpl extends ResourceLoader {
|
|
119
98
|
get(url) {
|
|
120
99
|
let resolve;
|
|
@@ -153,19 +132,12 @@ class ResourceLoaderImpl extends ResourceLoader {
|
|
|
153
132
|
return promise;
|
|
154
133
|
}
|
|
155
134
|
}
|
|
156
|
-
ResourceLoaderImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
157
|
-
ResourceLoaderImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
135
|
+
ResourceLoaderImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
136
|
+
ResourceLoaderImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl, decorators: [{
|
|
159
138
|
type: Injectable
|
|
160
139
|
}] });
|
|
161
140
|
|
|
162
|
-
/**
|
|
163
|
-
* @license
|
|
164
|
-
* Copyright Google LLC All Rights Reserved.
|
|
165
|
-
*
|
|
166
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
167
|
-
* found in the LICENSE file at https://angular.io/license
|
|
168
|
-
*/
|
|
169
141
|
/**
|
|
170
142
|
* @publicApi
|
|
171
143
|
*/
|
|
@@ -179,13 +151,6 @@ const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [
|
|
|
179
151
|
{ provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },
|
|
180
152
|
];
|
|
181
153
|
|
|
182
|
-
/**
|
|
183
|
-
* @license
|
|
184
|
-
* Copyright Google LLC All Rights Reserved.
|
|
185
|
-
*
|
|
186
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
187
|
-
* found in the LICENSE file at https://angular.io/license
|
|
188
|
-
*/
|
|
189
154
|
/**
|
|
190
155
|
* An implementation of ResourceLoader that uses a template cache to avoid doing an actual
|
|
191
156
|
* ResourceLoader.
|
|
@@ -217,32 +182,15 @@ class CachedResourceLoader extends ResourceLoader {
|
|
|
217
182
|
}
|
|
218
183
|
|
|
219
184
|
/**
|
|
220
|
-
* @
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
224
|
-
* found in the LICENSE file at https://angular.io/license
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @license
|
|
229
|
-
* Copyright Google LLC All Rights Reserved.
|
|
230
|
-
*
|
|
231
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
232
|
-
* found in the LICENSE file at https://angular.io/license
|
|
185
|
+
* @module
|
|
186
|
+
* @description
|
|
187
|
+
* Entry point for all public APIs of the platform-browser-dynamic package.
|
|
233
188
|
*/
|
|
234
189
|
/**
|
|
235
190
|
* @publicApi
|
|
236
191
|
*/
|
|
237
|
-
const VERSION = new Version('15.1.0
|
|
192
|
+
const VERSION = new Version('15.1.0');
|
|
238
193
|
|
|
239
|
-
/**
|
|
240
|
-
* @license
|
|
241
|
-
* Copyright Google LLC All Rights Reserved.
|
|
242
|
-
*
|
|
243
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
244
|
-
* found in the LICENSE file at https://angular.io/license
|
|
245
|
-
*/
|
|
246
194
|
/**
|
|
247
195
|
* @publicApi
|
|
248
196
|
*
|
|
@@ -257,21 +205,13 @@ const RESOURCE_CACHE_PROVIDER = [{ provide: ResourceLoader, useClass: CachedReso
|
|
|
257
205
|
const platformBrowserDynamic = createPlatformFactory(platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
|
258
206
|
|
|
259
207
|
/**
|
|
260
|
-
* @
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
264
|
-
* found in the LICENSE file at https://angular.io/license
|
|
208
|
+
* @module
|
|
209
|
+
* @description
|
|
210
|
+
* Entry point for all public APIs of this package.
|
|
265
211
|
*/
|
|
266
212
|
// This file only reexports content of the `src` folder. Keep it that way.
|
|
267
213
|
|
|
268
|
-
|
|
269
|
-
* @license
|
|
270
|
-
* Copyright Google LLC All Rights Reserved.
|
|
271
|
-
*
|
|
272
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
273
|
-
* found in the LICENSE file at https://angular.io/license
|
|
274
|
-
*/
|
|
214
|
+
// This file is not used to build this module. It is only used during editing
|
|
275
215
|
|
|
276
216
|
/**
|
|
277
217
|
* Generated bundle index. Do not edit.
|
|
@@ -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/resource_loader/resource_loader_cache.ts","../../../../../../packages/platform-browser-dynamic/src/private_export.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/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.io/license\n */\n\nimport {CompilerConfig} from '@angular/compiler';\nimport {Compiler, CompilerFactory, CompilerOptions, InjectionToken, Injector, MissingTranslationStrategy, PACKAGE_ROOT_URL, StaticProvider, ViewEncapsulation} from '@angular/core';\n\nexport const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');\n\n/**\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\n */\nexport const DEFAULT_PACKAGE_URL_PROVIDER = {\n provide: PACKAGE_ROOT_URL,\n useValue: '/'\n};\n\nexport const COMPILER_PROVIDERS =\n <StaticProvider[]>[{provide: Compiler, useFactory: () => new Compiler()}];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /* @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n useJit: true,\n defaultEncapsulation: ViewEncapsulation.Emulated,\n missingTranslation: MissingTranslationStrategy.Warning,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create([\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n // let explicit values from the compiler options overwrite options\n // from the app providers\n useJit: opts.useJit,\n // let explicit values from the compiler options overwrite options\n // from the app providers\n defaultEncapsulation: opts.defaultEncapsulation,\n missingTranslation: opts.missingTranslation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: []\n },\n opts.providers!\n ]);\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n useJit: _lastDefined(optionsArr.map(options => options.useJit)),\n defaultEncapsulation: _lastDefined(optionsArr.map(options => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map(options => options.providers!)),\n missingTranslation: _lastDefined(optionsArr.map(options => options.missingTranslation)),\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.io/license\n */\n\nimport {COMPILER_OPTIONS, CompilerFactory, createPlatformFactory, platformCore, PlatformRef, StaticProvider} 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.io/license\n */\nimport {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\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 // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\n // by IE10)\n const response = xhr.response || xhr.responseText;\n\n // normalize IE9 bug (https://bugs.jquery.com/ticket/1450)\n let status = xhr.status === 1223 ? 204 : 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.io/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';\n\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {ɵglobal as global} from '@angular/core';\n\n/**\n * An implementation of ResourceLoader that uses a template cache to avoid doing an actual\n * ResourceLoader.\n *\n * The template cache needs to be built and loaded into window.$templateCache\n * via a separate mechanism.\n *\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n */\nexport class CachedResourceLoader extends ResourceLoader {\n private _cache: {[url: string]: string};\n\n constructor() {\n super();\n this._cache = (<any>global).$templateCache;\n if (this._cache == null) {\n throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');\n }\n }\n\n override get(url: string): Promise<string> {\n if (this._cache.hasOwnProperty(url)) {\n return Promise.resolve(this._cache[url]);\n } else {\n return <Promise<any>>Promise.reject(\n 'CachedResourceLoader: Did not find cached template for ' + url);\n }\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.io/license\n */\n\nexport {platformCoreDynamic as ɵplatformCoreDynamic} from './platform_core_dynamic';\nexport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\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.io/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('15.1.0-next.3');\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {CompilerFactory, createPlatformFactory, platformCore, PlatformRef, Provider, StaticProvider} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\nimport {CachedResourceLoader} from './resource_loader/resource_loader_cache';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n\n */\nexport const RESOURCE_CACHE_PROVIDER: Provider[] =\n [{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\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.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/platform-browser-dynamic';\n\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID","global"],"mappings":";;;;;;;;;;;;AAAA;;;;;;AAMG;AAKI,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E;;AAEG;AACI,MAAM,4BAA4B,GAAG;AAC1C,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,QAAQ,EAAE,GAAG;CACd,CAAC;AAEK,MAAM,kBAAkB,GACT,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC,CAAC,CAAC;AAC9E;;;;;;;AAOG;MACU,kBAAkB,CAAA;;AAI7B,IAAA,WAAA,CAAY,cAAiC,EAAA;AAC3C,QAAA,MAAM,eAAe,GAAoB;AACvC,YAAA,MAAM,EAAE,IAAI;YACZ,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ;YAChD,kBAAkB,EAAE,0BAA0B,CAAC,OAAO;SACvD,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,CAAC,eAAe,EAAE,GAAG,cAAc,CAAC,CAAC;KAC7D;IACD,cAAc,CAAC,UAA6B,EAAE,EAAA;AAC5C,QAAA,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AACjE,QAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC/B,YAAA,kBAAkB,EAAE;A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AAE,WAAW,EAAE,QAAQ,EAAEC,oBAAmB,EAAC;;;AC1BvD;;;;;;AAMG;AAKH;;;;;;;;;;;AAWG;AACG,MAAO,oBAAqB,SAAQ,cAAc,CAAA;AAGtD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,IAAI,CAAC,MAAM,GAASC,OAAO,CAAC,cAAc,CAAC;AAC3C,QAAA,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;AACvB,YAAA,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;AAC1F,SAAA;KACF;AAEQ,IAAA,GAAG,CAAC,GAAW,EAAA;QACtB,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACnC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1C,SAAA;AAAM,aAAA;YACL,OAAqB,OAAO,CAAC,MAAM,CAC/B,yDAAyD,GAAG,GAAG,CAAC,CAAC;AACtE,SAAA;KACF;AACF;;AC1CD;;;;;;AAMG;;ACNH;;;;;;AAMG;AAUH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACnBtD;;;;;;AAMG;AAaH;;;;;;AAMG;AACU,MAAA,uBAAuB,GAChC,CAAC,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,EAAC,EAAE;AAE1E;;AAEG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACvD,mBAAmB,EAAE,gBAAgB,EAAE,2CAA2C;;ACjCtF;;;;;;AAMG;AASH;;ACfA;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
|
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/resource_loader/resource_loader_cache.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/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.io/license\n */\n\nimport {CompilerConfig} from '@angular/compiler';\nimport {Compiler, CompilerFactory, CompilerOptions, InjectionToken, Injector, MissingTranslationStrategy, PACKAGE_ROOT_URL, StaticProvider, ViewEncapsulation} from '@angular/core';\n\nexport const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');\n\n/**\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\n */\nexport const DEFAULT_PACKAGE_URL_PROVIDER = {\n provide: PACKAGE_ROOT_URL,\n useValue: '/'\n};\n\nexport const COMPILER_PROVIDERS =\n <StaticProvider[]>[{provide: Compiler, useFactory: () => new Compiler()}];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /* @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n useJit: true,\n defaultEncapsulation: ViewEncapsulation.Emulated,\n missingTranslation: MissingTranslationStrategy.Warning,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create([\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n // let explicit values from the compiler options overwrite options\n // from the app providers\n useJit: opts.useJit,\n // let explicit values from the compiler options overwrite options\n // from the app providers\n defaultEncapsulation: opts.defaultEncapsulation,\n missingTranslation: opts.missingTranslation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: []\n },\n opts.providers!\n ]);\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n useJit: _lastDefined(optionsArr.map(options => options.useJit)),\n defaultEncapsulation: _lastDefined(optionsArr.map(options => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map(options => options.providers!)),\n missingTranslation: _lastDefined(optionsArr.map(options => options.missingTranslation)),\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.io/license\n */\n\nimport {COMPILER_OPTIONS, CompilerFactory, createPlatformFactory, platformCore, PlatformRef, StaticProvider} 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.io/license\n */\nimport {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\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 // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\n // by IE10)\n const response = xhr.response || xhr.responseText;\n\n // normalize IE9 bug (https://bugs.jquery.com/ticket/1450)\n let status = xhr.status === 1223 ? 204 : 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.io/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';\n\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {ɵglobal as global} from '@angular/core';\n\n/**\n * An implementation of ResourceLoader that uses a template cache to avoid doing an actual\n * ResourceLoader.\n *\n * The template cache needs to be built and loaded into window.$templateCache\n * via a separate mechanism.\n *\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n */\nexport class CachedResourceLoader extends ResourceLoader {\n private _cache: {[url: string]: string};\n\n constructor() {\n super();\n this._cache = (<any>global).$templateCache;\n if (this._cache == null) {\n throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');\n }\n }\n\n override get(url: string): Promise<string> {\n if (this._cache.hasOwnProperty(url)) {\n return Promise.resolve(this._cache[url]);\n } else {\n return <Promise<any>>Promise.reject(\n 'CachedResourceLoader: Did not find cached template for ' + url);\n }\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.io/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('15.1.0');\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {CompilerFactory, createPlatformFactory, platformCore, PlatformRef, Provider, StaticProvider} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\nimport {CachedResourceLoader} from './resource_loader/resource_loader_cache';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n\n */\nexport const RESOURCE_CACHE_PROVIDER: Provider[] =\n [{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\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.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/platform-browser-dynamic';\n\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID","global"],"mappings":";;;;;;;;;;;;AAWO,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E;;AAEG;AACI,MAAM,4BAA4B,GAAG;AAC1C,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,QAAQ,EAAE,GAAG;CACd,CAAC;AAEK,MAAM,kBAAkB,GACT,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC,CAAC,CAAC;AAC9E;;;;;;;AAOG;MACU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,GAChC,CAAC,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,EAAC,EAAE;AAE1E;;AAEG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACvD,mBAAmB,EAAE,gBAAgB,EAAE,2CAA2C;;ACzBtF;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
|
package/fesm2015/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0
|
|
2
|
+
* @license Angular v15.1.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -11,13 +11,6 @@ import { ɵplatformCoreDynamic, ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS }
|
|
|
11
11
|
import { BrowserTestingModule } from '@angular/platform-browser/testing';
|
|
12
12
|
import { ɵgetDOM, DOCUMENT } from '@angular/common';
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright Google LLC All Rights Reserved.
|
|
17
|
-
*
|
|
18
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
19
|
-
* found in the LICENSE file at https://angular.io/license
|
|
20
|
-
*/
|
|
21
14
|
/**
|
|
22
15
|
* A DOM based implementation of the TestComponentRenderer.
|
|
23
16
|
*/
|
|
@@ -40,9 +33,9 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
|
|
|
40
33
|
}
|
|
41
34
|
}
|
|
42
35
|
}
|
|
43
|
-
DOMTestComponentRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
44
|
-
DOMTestComponentRenderer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
36
|
+
DOMTestComponentRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
+
DOMTestComponentRenderer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{
|
|
46
39
|
type: Injectable
|
|
47
40
|
}], ctorParameters: function () {
|
|
48
41
|
return [{ type: undefined, decorators: [{
|
|
@@ -51,13 +44,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
51
44
|
}] }];
|
|
52
45
|
} });
|
|
53
46
|
|
|
54
|
-
/**
|
|
55
|
-
* @license
|
|
56
|
-
* Copyright Google LLC All Rights Reserved.
|
|
57
|
-
*
|
|
58
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
59
|
-
* found in the LICENSE file at https://angular.io/license
|
|
60
|
-
*/
|
|
61
47
|
/**
|
|
62
48
|
* Platform for dynamic tests
|
|
63
49
|
*
|
|
@@ -65,21 +51,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
65
51
|
*/
|
|
66
52
|
const platformCoreDynamicTesting = createPlatformFactory(ɵplatformCoreDynamic, 'coreDynamicTesting', []);
|
|
67
53
|
|
|
68
|
-
/**
|
|
69
|
-
* @license
|
|
70
|
-
* Copyright Google LLC All Rights Reserved.
|
|
71
|
-
*
|
|
72
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
73
|
-
* found in the LICENSE file at https://angular.io/license
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @license
|
|
78
|
-
* Copyright Google LLC All Rights Reserved.
|
|
79
|
-
*
|
|
80
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
81
|
-
* found in the LICENSE file at https://angular.io/license
|
|
82
|
-
*/
|
|
83
54
|
/**
|
|
84
55
|
* @publicApi
|
|
85
56
|
*/
|
|
@@ -91,12 +62,12 @@ const platformBrowserDynamicTesting = createPlatformFactory(platformCoreDynamicT
|
|
|
91
62
|
*/
|
|
92
63
|
class BrowserDynamicTestingModule {
|
|
93
64
|
}
|
|
94
|
-
BrowserDynamicTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
95
|
-
BrowserDynamicTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0
|
|
96
|
-
BrowserDynamicTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0
|
|
65
|
+
BrowserDynamicTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
66
|
+
BrowserDynamicTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] });
|
|
67
|
+
BrowserDynamicTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, providers: [
|
|
97
68
|
{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer },
|
|
98
69
|
], imports: [BrowserTestingModule] });
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{
|
|
100
71
|
type: NgModule,
|
|
101
72
|
args: [{
|
|
102
73
|
exports: [BrowserTestingModule],
|
|
@@ -107,20 +78,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
107
78
|
}] });
|
|
108
79
|
|
|
109
80
|
/**
|
|
110
|
-
* @
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
114
|
-
* found in the LICENSE file at https://angular.io/license
|
|
81
|
+
* @module
|
|
82
|
+
* @description
|
|
83
|
+
* Entry point for all public APIs of this package.
|
|
115
84
|
*/
|
|
116
85
|
|
|
117
|
-
|
|
118
|
-
* @license
|
|
119
|
-
* Copyright Google LLC All Rights Reserved.
|
|
120
|
-
*
|
|
121
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
122
|
-
* found in the LICENSE file at https://angular.io/license
|
|
123
|
-
*/
|
|
86
|
+
// This file is not used to build this module. It is only used during editing
|
|
124
87
|
|
|
125
88
|
/**
|
|
126
89
|
* Generated bundle index. Do not edit.
|
package/fesm2015/testing.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.ts","../../../../../../packages/platform-browser-dynamic/testing/public_api.ts","../../../../../../packages/platform-browser-dynamic/testing/index.ts","../../../../../../packages/platform-browser-dynamic/testing/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.io/license\n */\n\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) {\n super();\n }\n\n override insertRootElement(rootElId: string) {\n this.removeAllRootElements();\n const rootElement = getDOM().getDefaultDocument().createElement('div');\n rootElement.setAttribute('id', rootElId);\n this._doc.body.appendChild(rootElement);\n }\n\n override removeAllRootElements() {\n // TODO(juliemr): can/should this be optional?\n const oldRoots = this._doc.querySelectorAll('[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\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.io/license\n */\n\nimport {createPlatformFactory, PlatformRef} from '@angular/core';\nimport {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';\n\n/**\n * Platform for dynamic tests\n *\n * @publicApi\n */\nexport const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =\n createPlatformFactory(\n platformCoreDynamic,\n 'coreDynamicTesting',\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.io/license\n */\n\nimport {createPlatformFactory, NgModule, PlatformRef, StaticProvider} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic';\nimport {BrowserTestingModule} from '@angular/platform-browser/testing';\n\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\nimport {platformCoreDynamicTesting} from './platform_core_dynamic_testing';\n\nexport * from './private_export_testing';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamicTesting = createPlatformFactory(\n platformCoreDynamicTesting, 'browserDynamicTesting',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserTestingModule],\n providers: [\n {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},\n ]\n})\nexport class BrowserDynamicTestingModule {\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.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/testing';\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.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["getDOM","platformCoreDynamic","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;AAYA;;AAEG;AAEG,MAAO,wBAAyB,SAAQ,qBAAqB,CAAA;AACjE,IAAA,WAAA,CAAsC,IAAS,EAAA;AAC7C,QAAA,KAAK,EAAE,CAAC;AAD4B,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAK;KAE9C;AAEQ,IAAA,iBAAiB,CAAC,QAAgB,EAAA;QACzC,IAAI,CAAC,qBAAqB,EAAE,CAAC;AAC7B,QAAA,MAAM,WAAW,GAAGA,OAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACvE,QAAA,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,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AL5B,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAKnB,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,EAJ3B,SAAA,EAAA;AACT,QAAA,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;AACrE,KAAA,EAAA,OAAA,EAAA,CAHS,oBAAoB,CAAA,EAAA,CAAA,CAAA;sGAKnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAC/B,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;AACrE,qBAAA;iBACF,CAAA;;;AC3BD;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0
|
|
2
|
+
* @license Angular v15.1.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,13 +10,6 @@ import { InjectionToken, PACKAGE_ROOT_URL, Compiler, ViewEncapsulation, MissingT
|
|
|
10
10
|
import { ɵPLATFORM_BROWSER_ID } from '@angular/common';
|
|
11
11
|
import { ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright Google LLC All Rights Reserved.
|
|
16
|
-
*
|
|
17
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
-
* found in the LICENSE file at https://angular.io/license
|
|
19
|
-
*/
|
|
20
13
|
const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');
|
|
21
14
|
/**
|
|
22
15
|
* A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.
|
|
@@ -91,13 +84,6 @@ function _mergeArrays(parts) {
|
|
|
91
84
|
return result;
|
|
92
85
|
}
|
|
93
86
|
|
|
94
|
-
/**
|
|
95
|
-
* @license
|
|
96
|
-
* Copyright Google LLC All Rights Reserved.
|
|
97
|
-
*
|
|
98
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
99
|
-
* found in the LICENSE file at https://angular.io/license
|
|
100
|
-
*/
|
|
101
87
|
/**
|
|
102
88
|
* A platform that included corePlatform and the compiler.
|
|
103
89
|
*
|
|
@@ -108,13 +94,6 @@ const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [
|
|
|
108
94
|
{ provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS] },
|
|
109
95
|
]);
|
|
110
96
|
|
|
111
|
-
/**
|
|
112
|
-
* @license
|
|
113
|
-
* Copyright Google LLC All Rights Reserved.
|
|
114
|
-
*
|
|
115
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
116
|
-
* found in the LICENSE file at https://angular.io/license
|
|
117
|
-
*/
|
|
118
97
|
class ResourceLoaderImpl extends ResourceLoader {
|
|
119
98
|
get(url) {
|
|
120
99
|
let resolve;
|
|
@@ -153,19 +132,12 @@ class ResourceLoaderImpl extends ResourceLoader {
|
|
|
153
132
|
return promise;
|
|
154
133
|
}
|
|
155
134
|
}
|
|
156
|
-
ResourceLoaderImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
157
|
-
ResourceLoaderImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
135
|
+
ResourceLoaderImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
136
|
+
ResourceLoaderImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ResourceLoaderImpl, decorators: [{
|
|
159
138
|
type: Injectable
|
|
160
139
|
}] });
|
|
161
140
|
|
|
162
|
-
/**
|
|
163
|
-
* @license
|
|
164
|
-
* Copyright Google LLC All Rights Reserved.
|
|
165
|
-
*
|
|
166
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
167
|
-
* found in the LICENSE file at https://angular.io/license
|
|
168
|
-
*/
|
|
169
141
|
/**
|
|
170
142
|
* @publicApi
|
|
171
143
|
*/
|
|
@@ -179,13 +151,6 @@ const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [
|
|
|
179
151
|
{ provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },
|
|
180
152
|
];
|
|
181
153
|
|
|
182
|
-
/**
|
|
183
|
-
* @license
|
|
184
|
-
* Copyright Google LLC All Rights Reserved.
|
|
185
|
-
*
|
|
186
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
187
|
-
* found in the LICENSE file at https://angular.io/license
|
|
188
|
-
*/
|
|
189
154
|
/**
|
|
190
155
|
* An implementation of ResourceLoader that uses a template cache to avoid doing an actual
|
|
191
156
|
* ResourceLoader.
|
|
@@ -217,32 +182,15 @@ class CachedResourceLoader extends ResourceLoader {
|
|
|
217
182
|
}
|
|
218
183
|
|
|
219
184
|
/**
|
|
220
|
-
* @
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
224
|
-
* found in the LICENSE file at https://angular.io/license
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @license
|
|
229
|
-
* Copyright Google LLC All Rights Reserved.
|
|
230
|
-
*
|
|
231
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
232
|
-
* found in the LICENSE file at https://angular.io/license
|
|
185
|
+
* @module
|
|
186
|
+
* @description
|
|
187
|
+
* Entry point for all public APIs of the platform-browser-dynamic package.
|
|
233
188
|
*/
|
|
234
189
|
/**
|
|
235
190
|
* @publicApi
|
|
236
191
|
*/
|
|
237
|
-
const VERSION = new Version('15.1.0
|
|
192
|
+
const VERSION = new Version('15.1.0');
|
|
238
193
|
|
|
239
|
-
/**
|
|
240
|
-
* @license
|
|
241
|
-
* Copyright Google LLC All Rights Reserved.
|
|
242
|
-
*
|
|
243
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
244
|
-
* found in the LICENSE file at https://angular.io/license
|
|
245
|
-
*/
|
|
246
194
|
/**
|
|
247
195
|
* @publicApi
|
|
248
196
|
*
|
|
@@ -257,21 +205,13 @@ const RESOURCE_CACHE_PROVIDER = [{ provide: ResourceLoader, useClass: CachedReso
|
|
|
257
205
|
const platformBrowserDynamic = createPlatformFactory(platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
|
258
206
|
|
|
259
207
|
/**
|
|
260
|
-
* @
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
264
|
-
* found in the LICENSE file at https://angular.io/license
|
|
208
|
+
* @module
|
|
209
|
+
* @description
|
|
210
|
+
* Entry point for all public APIs of this package.
|
|
265
211
|
*/
|
|
266
212
|
// This file only reexports content of the `src` folder. Keep it that way.
|
|
267
213
|
|
|
268
|
-
|
|
269
|
-
* @license
|
|
270
|
-
* Copyright Google LLC All Rights Reserved.
|
|
271
|
-
*
|
|
272
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
273
|
-
* found in the LICENSE file at https://angular.io/license
|
|
274
|
-
*/
|
|
214
|
+
// This file is not used to build this module. It is only used during editing
|
|
275
215
|
|
|
276
216
|
/**
|
|
277
217
|
* Generated bundle index. Do not edit.
|
|
@@ -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/resource_loader/resource_loader_cache.ts","../../../../../../packages/platform-browser-dynamic/src/private_export.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/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.io/license\n */\n\nimport {CompilerConfig} from '@angular/compiler';\nimport {Compiler, CompilerFactory, CompilerOptions, InjectionToken, Injector, MissingTranslationStrategy, PACKAGE_ROOT_URL, StaticProvider, ViewEncapsulation} from '@angular/core';\n\nexport const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');\n\n/**\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\n */\nexport const DEFAULT_PACKAGE_URL_PROVIDER = {\n provide: PACKAGE_ROOT_URL,\n useValue: '/'\n};\n\nexport const COMPILER_PROVIDERS =\n <StaticProvider[]>[{provide: Compiler, useFactory: () => new Compiler()}];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /* @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n useJit: true,\n defaultEncapsulation: ViewEncapsulation.Emulated,\n missingTranslation: MissingTranslationStrategy.Warning,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create([\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n // let explicit values from the compiler options overwrite options\n // from the app providers\n useJit: opts.useJit,\n // let explicit values from the compiler options overwrite options\n // from the app providers\n defaultEncapsulation: opts.defaultEncapsulation,\n missingTranslation: opts.missingTranslation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: []\n },\n opts.providers!\n ]);\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n useJit: _lastDefined(optionsArr.map(options => options.useJit)),\n defaultEncapsulation: _lastDefined(optionsArr.map(options => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map(options => options.providers!)),\n missingTranslation: _lastDefined(optionsArr.map(options => options.missingTranslation)),\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.io/license\n */\n\nimport {COMPILER_OPTIONS, CompilerFactory, createPlatformFactory, platformCore, PlatformRef, StaticProvider} 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.io/license\n */\nimport {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\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 // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\n // by IE10)\n const response = xhr.response || xhr.responseText;\n\n // normalize IE9 bug (https://bugs.jquery.com/ticket/1450)\n let status = xhr.status === 1223 ? 204 : 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.io/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';\n\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {ɵglobal as global} from '@angular/core';\n\n/**\n * An implementation of ResourceLoader that uses a template cache to avoid doing an actual\n * ResourceLoader.\n *\n * The template cache needs to be built and loaded into window.$templateCache\n * via a separate mechanism.\n *\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n */\nexport class CachedResourceLoader extends ResourceLoader {\n private _cache: {[url: string]: string};\n\n constructor() {\n super();\n this._cache = (<any>global).$templateCache;\n if (this._cache == null) {\n throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');\n }\n }\n\n override get(url: string): Promise<string> {\n if (this._cache.hasOwnProperty(url)) {\n return Promise.resolve(this._cache[url]);\n } else {\n return <Promise<any>>Promise.reject(\n 'CachedResourceLoader: Did not find cached template for ' + url);\n }\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.io/license\n */\n\nexport {platformCoreDynamic as ɵplatformCoreDynamic} from './platform_core_dynamic';\nexport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\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.io/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('15.1.0-next.3');\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {CompilerFactory, createPlatformFactory, platformCore, PlatformRef, Provider, StaticProvider} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\nimport {CachedResourceLoader} from './resource_loader/resource_loader_cache';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n\n */\nexport const RESOURCE_CACHE_PROVIDER: Provider[] =\n [{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\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.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/platform-browser-dynamic';\n\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID","global"],"mappings":";;;;;;;;;;;;AAAA;;;;;;AAMG;AAKI,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E;;AAEG;AACI,MAAM,4BAA4B,GAAG;AAC1C,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,QAAQ,EAAE,GAAG;CACd,CAAC;AAEK,MAAM,kBAAkB,GACT,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC,CAAC,CAAC;AAC9E;;;;;;;AAOG;MACU,kBAAkB,CAAA;;AAI7B,IAAA,WAAA,CAAY,cAAiC,EAAA;AAC3C,QAAA,MAAM,eAAe,GAAoB;AACvC,YAAA,MAAM,EAAE,IAAI;YACZ,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ;YAChD,kBAAkB,EAAE,0BAA0B,CAAC,OAAO;SACvD,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,CAAC,eAAe,EAAE,GAAG,cAAc,CAAC,CAAC;KAC7D;IACD,cAAc,CAAC,UAA6B,EAAE,EAAA;AAC5C,QAAA,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AACjE,QAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC/B,YAAA,kBAAkB,EAAE;AAClB,gBAAA,OAAO,EAAE,cAAc;gBACvB,UAAU,EAAE,MAAK;oBACf,OAAO,IAAI,cAAc,CAAC;;;wBAGxB,MAAM,EAAE,IAAI,CAAC,MAAM;;;wBAGnB,oBAAoB,EAAE,IAAI,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ACE,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,IAAI,CAAC,MAAM,GAASC,OAAO,CAAC,cAAc,CAAC;AAC3C,QAAA,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;AACvB,YAAA,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;AAC1F,SAAA;KACF;AAEQ,IAAA,GAAG,CAAC,GAAW,EAAA;QACtB,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACnC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1C,SAAA;AAAM,aAAA;YACL,OAAqB,OAAO,CAAC,MAAM,CAC/B,yDAAyD,GAAG,GAAG,CAAC,CAAC;AACtE,SAAA;KACF;AACF;;AC1CD;;;;;;AAMG;;ACNH;;;;;;AAMG;AAUH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACnBtD;;;;;;AAMG;AAaH;;;;;;AAMG;AACU,MAAA,uBAAuB,GAChC,CAAC,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,EAAC,EAAE;AAE1E;;AAEG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACvD,mBAAmB,EAAE,gBAAgB,EAAE,2CAA2C;;ACjCtF;;;;;;AAMG;AASH;;ACfA;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
|
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/resource_loader/resource_loader_cache.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/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.io/license\n */\n\nimport {CompilerConfig} from '@angular/compiler';\nimport {Compiler, CompilerFactory, CompilerOptions, InjectionToken, Injector, MissingTranslationStrategy, PACKAGE_ROOT_URL, StaticProvider, ViewEncapsulation} from '@angular/core';\n\nexport const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');\n\n/**\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\n */\nexport const DEFAULT_PACKAGE_URL_PROVIDER = {\n provide: PACKAGE_ROOT_URL,\n useValue: '/'\n};\n\nexport const COMPILER_PROVIDERS =\n <StaticProvider[]>[{provide: Compiler, useFactory: () => new Compiler()}];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /* @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n useJit: true,\n defaultEncapsulation: ViewEncapsulation.Emulated,\n missingTranslation: MissingTranslationStrategy.Warning,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create([\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n // let explicit values from the compiler options overwrite options\n // from the app providers\n useJit: opts.useJit,\n // let explicit values from the compiler options overwrite options\n // from the app providers\n defaultEncapsulation: opts.defaultEncapsulation,\n missingTranslation: opts.missingTranslation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: []\n },\n opts.providers!\n ]);\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n useJit: _lastDefined(optionsArr.map(options => options.useJit)),\n defaultEncapsulation: _lastDefined(optionsArr.map(options => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map(options => options.providers!)),\n missingTranslation: _lastDefined(optionsArr.map(options => options.missingTranslation)),\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.io/license\n */\n\nimport {COMPILER_OPTIONS, CompilerFactory, createPlatformFactory, platformCore, PlatformRef, StaticProvider} 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.io/license\n */\nimport {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\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 // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\n // by IE10)\n const response = xhr.response || xhr.responseText;\n\n // normalize IE9 bug (https://bugs.jquery.com/ticket/1450)\n let status = xhr.status === 1223 ? 204 : 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.io/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';\n\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {ɵglobal as global} from '@angular/core';\n\n/**\n * An implementation of ResourceLoader that uses a template cache to avoid doing an actual\n * ResourceLoader.\n *\n * The template cache needs to be built and loaded into window.$templateCache\n * via a separate mechanism.\n *\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n */\nexport class CachedResourceLoader extends ResourceLoader {\n private _cache: {[url: string]: string};\n\n constructor() {\n super();\n this._cache = (<any>global).$templateCache;\n if (this._cache == null) {\n throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');\n }\n }\n\n override get(url: string): Promise<string> {\n if (this._cache.hasOwnProperty(url)) {\n return Promise.resolve(this._cache[url]);\n } else {\n return <Promise<any>>Promise.reject(\n 'CachedResourceLoader: Did not find cached template for ' + url);\n }\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.io/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('15.1.0');\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.io/license\n */\n\nimport {ResourceLoader} from '@angular/compiler';\nimport {CompilerFactory, createPlatformFactory, platformCore, PlatformRef, Provider, StaticProvider} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\nimport {CachedResourceLoader} from './resource_loader/resource_loader_cache';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n *\n * @deprecated This was previously necessary in some cases to test AOT-compiled components with View\n * Engine, but is no longer since Ivy.\n\n */\nexport const RESOURCE_CACHE_PROVIDER: Provider[] =\n [{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\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.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/platform-browser-dynamic';\n\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID","global"],"mappings":";;;;;;;;;;;;AAWO,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E;;AAEG;AACI,MAAM,4BAA4B,GAAG;AAC1C,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,QAAQ,EAAE,GAAG;CACd,CAAC;AAEK,MAAM,kBAAkB,GACT,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC,CAAC,CAAC;AAC9E;;;;;;;AAOG;MACU,kBAAkB,CAAA;;AAI7B,IAAA,WAAA,CAAY,cAAiC,EAAA;AAC3C,QAAA,MAAM,eAAe,GAAoB;AACvC,YAAA,MAAM,EAAE,IAAI;YACZ,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ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AAmB,EAAE,gBAAgB,EAAE,2CAA2C;;ACzBtF;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
|
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0
|
|
2
|
+
* @license Angular v15.1.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -11,13 +11,6 @@ import { ɵplatformCoreDynamic, ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS }
|
|
|
11
11
|
import { BrowserTestingModule } from '@angular/platform-browser/testing';
|
|
12
12
|
import { ɵgetDOM, DOCUMENT } from '@angular/common';
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright Google LLC All Rights Reserved.
|
|
17
|
-
*
|
|
18
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
19
|
-
* found in the LICENSE file at https://angular.io/license
|
|
20
|
-
*/
|
|
21
14
|
/**
|
|
22
15
|
* A DOM based implementation of the TestComponentRenderer.
|
|
23
16
|
*/
|
|
@@ -40,22 +33,15 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
|
|
|
40
33
|
}
|
|
41
34
|
}
|
|
42
35
|
}
|
|
43
|
-
DOMTestComponentRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
44
|
-
DOMTestComponentRenderer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
36
|
+
DOMTestComponentRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
+
DOMTestComponentRenderer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{
|
|
46
39
|
type: Injectable
|
|
47
40
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
48
41
|
type: Inject,
|
|
49
42
|
args: [DOCUMENT]
|
|
50
43
|
}] }]; } });
|
|
51
44
|
|
|
52
|
-
/**
|
|
53
|
-
* @license
|
|
54
|
-
* Copyright Google LLC All Rights Reserved.
|
|
55
|
-
*
|
|
56
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
57
|
-
* found in the LICENSE file at https://angular.io/license
|
|
58
|
-
*/
|
|
59
45
|
/**
|
|
60
46
|
* Platform for dynamic tests
|
|
61
47
|
*
|
|
@@ -63,21 +49,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
63
49
|
*/
|
|
64
50
|
const platformCoreDynamicTesting = createPlatformFactory(ɵplatformCoreDynamic, 'coreDynamicTesting', []);
|
|
65
51
|
|
|
66
|
-
/**
|
|
67
|
-
* @license
|
|
68
|
-
* Copyright Google LLC All Rights Reserved.
|
|
69
|
-
*
|
|
70
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
71
|
-
* found in the LICENSE file at https://angular.io/license
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @license
|
|
76
|
-
* Copyright Google LLC All Rights Reserved.
|
|
77
|
-
*
|
|
78
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
79
|
-
* found in the LICENSE file at https://angular.io/license
|
|
80
|
-
*/
|
|
81
52
|
/**
|
|
82
53
|
* @publicApi
|
|
83
54
|
*/
|
|
@@ -89,12 +60,12 @@ const platformBrowserDynamicTesting = createPlatformFactory(platformCoreDynamicT
|
|
|
89
60
|
*/
|
|
90
61
|
class BrowserDynamicTestingModule {
|
|
91
62
|
}
|
|
92
|
-
BrowserDynamicTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0
|
|
93
|
-
BrowserDynamicTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0
|
|
94
|
-
BrowserDynamicTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0
|
|
63
|
+
BrowserDynamicTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
64
|
+
BrowserDynamicTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] });
|
|
65
|
+
BrowserDynamicTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, providers: [
|
|
95
66
|
{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer },
|
|
96
67
|
], imports: [BrowserTestingModule] });
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{
|
|
98
69
|
type: NgModule,
|
|
99
70
|
args: [{
|
|
100
71
|
exports: [BrowserTestingModule],
|
|
@@ -105,20 +76,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
105
76
|
}] });
|
|
106
77
|
|
|
107
78
|
/**
|
|
108
|
-
* @
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
112
|
-
* found in the LICENSE file at https://angular.io/license
|
|
79
|
+
* @module
|
|
80
|
+
* @description
|
|
81
|
+
* Entry point for all public APIs of this package.
|
|
113
82
|
*/
|
|
114
83
|
|
|
115
|
-
|
|
116
|
-
* @license
|
|
117
|
-
* Copyright Google LLC All Rights Reserved.
|
|
118
|
-
*
|
|
119
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
120
|
-
* found in the LICENSE file at https://angular.io/license
|
|
121
|
-
*/
|
|
84
|
+
// This file is not used to build this module. It is only used during editing
|
|
122
85
|
|
|
123
86
|
/**
|
|
124
87
|
* Generated bundle index. Do not edit.
|
package/fesm2020/testing.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.ts","../../../../../../packages/platform-browser-dynamic/testing/public_api.ts","../../../../../../packages/platform-browser-dynamic/testing/index.ts","../../../../../../packages/platform-browser-dynamic/testing/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.io/license\n */\n\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) {\n super();\n }\n\n override insertRootElement(rootElId: string) {\n this.removeAllRootElements();\n const rootElement = getDOM().getDefaultDocument().createElement('div');\n rootElement.setAttribute('id', rootElId);\n this._doc.body.appendChild(rootElement);\n }\n\n override removeAllRootElements() {\n // TODO(juliemr): can/should this be optional?\n const oldRoots = this._doc.querySelectorAll('[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\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.io/license\n */\n\nimport {createPlatformFactory, PlatformRef} from '@angular/core';\nimport {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';\n\n/**\n * Platform for dynamic tests\n *\n * @publicApi\n */\nexport const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =\n createPlatformFactory(\n platformCoreDynamic,\n 'coreDynamicTesting',\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.io/license\n */\n\nimport {createPlatformFactory, NgModule, PlatformRef, StaticProvider} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic';\nimport {BrowserTestingModule} from '@angular/platform-browser/testing';\n\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\nimport {platformCoreDynamicTesting} from './platform_core_dynamic_testing';\n\nexport * from './private_export_testing';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamicTesting = createPlatformFactory(\n platformCoreDynamicTesting, 'browserDynamicTesting',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserTestingModule],\n providers: [\n {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},\n ]\n})\nexport class BrowserDynamicTestingModule {\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.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/testing';\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.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["getDOM","platformCoreDynamic","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;AAYA;;AAEG;AAEG,MAAO,wBAAyB,SAAQ,qBAAqB,CAAA;AACjE,IAAA,WAAA,CAAsC,IAAS,EAAA;AAC7C,QAAA,KAAK,EAAE,CAAC;QAD4B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAK;KAE9C;AAEQ,IAAA,iBAAiB,CAAC,QAAgB,EAAA;QACzC,IAAI,CAAC,qBAAqB,EAAE,CAAC;AAC7B,QAAA,MAAM,WAAW,GAAGA,OAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACvE,QAAA,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;KACzC;IAEQ,qBAAqB,GAAA;;QAE5B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAC1D,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAA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EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;AACrE,KAAA,EAAA,OAAA,EAAA,CAHS,oBAAoB,CAAA,EAAA,CAAA,CAAA;sGAKnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAC/B,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;AACrE,qBAAA;AACF,iBAAA,CAAA;;;AC3BD;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/platform-browser-dynamic",
|
|
3
|
-
"version": "15.1.0
|
|
3
|
+
"version": "15.1.0",
|
|
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": "15.1.0
|
|
15
|
-
"@angular/common": "15.1.0
|
|
16
|
-
"@angular/compiler": "15.1.0
|
|
17
|
-
"@angular/platform-browser": "15.1.0
|
|
14
|
+
"@angular/core": "15.1.0",
|
|
15
|
+
"@angular/common": "15.1.0",
|
|
16
|
+
"@angular/compiler": "15.1.0",
|
|
17
|
+
"@angular/platform-browser": "15.1.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
package/testing/index.d.ts
CHANGED