@angular/platform-browser 14.0.0-next.13 → 14.0.0-next.16
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/animations/{animations.d.ts → index.d.ts} +155 -154
- package/esm2020/animations/src/animation_builder.mjs +3 -3
- package/esm2020/animations/src/animation_renderer.mjs +3 -3
- package/esm2020/animations/src/module.mjs +8 -8
- package/esm2020/animations/src/providers.mjs +3 -3
- package/esm2020/src/browser/meta.mjs +3 -3
- package/esm2020/src/browser/title.mjs +3 -3
- package/esm2020/src/browser/transfer_state.mjs +8 -8
- package/esm2020/src/browser/xhr.mjs +3 -3
- package/esm2020/src/browser.mjs +60 -16
- package/esm2020/src/dom/dom_renderer.mjs +3 -3
- package/esm2020/src/dom/events/dom_events.mjs +3 -3
- package/esm2020/src/dom/events/event_manager.mjs +3 -3
- package/esm2020/src/dom/events/hammer_gestures.mjs +10 -10
- package/esm2020/src/dom/events/key_events.mjs +3 -3
- package/esm2020/src/dom/shared_styles_host.mjs +6 -6
- package/esm2020/src/platform-browser.mjs +2 -2
- package/esm2020/src/private_export.mjs +2 -2
- package/esm2020/src/security/dom_sanitization_service.mjs +12 -12
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/browser.mjs +4 -4
- package/fesm2015/animations.mjs +18 -18
- package/fesm2015/platform-browser.mjs +121 -76
- package/fesm2015/platform-browser.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2020/animations.mjs +18 -18
- package/fesm2020/platform-browser.mjs +120 -76
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/{platform-browser.d.ts → index.d.ts} +875 -832
- package/package.json +8 -8
- package/testing/{testing.d.ts → index.d.ts} +26 -25
- package/animations/package.json +0 -10
- package/testing/package.json +0 -9
package/fesm2015/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v14.0.0-next.
|
2
|
+
* @license Angular v14.0.0-next.16
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -235,13 +235,13 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
235
235
|
*/
|
236
236
|
class BrowserTestingModule {
|
237
237
|
}
|
238
|
-
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
239
|
-
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
240
|
-
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
238
|
+
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
239
|
+
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
|
240
|
+
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTestingModule, providers: [
|
241
241
|
{ provide: APP_ID, useValue: 'a' },
|
242
242
|
{ provide: NgZone, useFactory: createNgZone },
|
243
243
|
], imports: [BrowserModule] });
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
245
245
|
type: NgModule,
|
246
246
|
args: [{
|
247
247
|
exports: [BrowserModule],
|
package/fesm2020/animations.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v14.0.0-next.
|
2
|
+
* @license Angular v14.0.0-next.16
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -35,9 +35,9 @@ class BrowserAnimationBuilder extends AnimationBuilder {
|
|
35
35
|
return new BrowserAnimationFactory(id, this._renderer);
|
36
36
|
}
|
37
37
|
}
|
38
|
-
BrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
39
|
-
BrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
38
|
+
BrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
39
|
+
BrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserAnimationBuilder });
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
|
41
41
|
type: Injectable
|
42
42
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: undefined, decorators: [{
|
43
43
|
type: Inject,
|
@@ -218,9 +218,9 @@ class AnimationRendererFactory {
|
|
218
218
|
return this.engine.whenRenderingDone();
|
219
219
|
}
|
220
220
|
}
|
221
|
-
AnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
222
|
-
AnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
221
|
+
AnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: AnimationRendererFactory, deps: [{ token: i0.RendererFactory2 }, { token: i1.ɵAnimationEngine }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
222
|
+
AnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: AnimationRendererFactory });
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: AnimationRendererFactory, decorators: [{
|
224
224
|
type: Injectable
|
225
225
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i1.ɵAnimationEngine }, { type: i0.NgZone }]; } });
|
226
226
|
class BaseAnimationRenderer {
|
@@ -375,9 +375,9 @@ class InjectableAnimationEngine extends ɵAnimationEngine {
|
|
375
375
|
this.flush();
|
376
376
|
}
|
377
377
|
}
|
378
|
-
InjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
379
|
-
InjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
378
|
+
InjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
379
|
+
InjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: InjectableAnimationEngine });
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: InjectableAnimationEngine, decorators: [{
|
381
381
|
type: Injectable
|
382
382
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
383
383
|
type: Inject,
|
@@ -452,10 +452,10 @@ class BrowserAnimationsModule {
|
|
452
452
|
};
|
453
453
|
}
|
454
454
|
}
|
455
|
-
BrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
456
|
-
BrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
457
|
-
BrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
455
|
+
BrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
456
|
+
BrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] });
|
457
|
+
BrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
|
458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserAnimationsModule, decorators: [{
|
459
459
|
type: NgModule,
|
460
460
|
args: [{
|
461
461
|
exports: [BrowserModule],
|
@@ -468,10 +468,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.13",
|
|
468
468
|
*/
|
469
469
|
class NoopAnimationsModule {
|
470
470
|
}
|
471
|
-
NoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
472
|
-
NoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
473
|
-
NoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
471
|
+
NoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
472
|
+
NoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] });
|
473
|
+
NoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: NoopAnimationsModule, decorators: [{
|
475
475
|
type: NgModule,
|
476
476
|
args: [{
|
477
477
|
exports: [BrowserModule],
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v14.0.0-next.
|
2
|
+
* @license Angular v14.0.0-next.16
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -7,7 +7,7 @@
|
|
7
7
|
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
|
8
8
|
export { ɵgetDOM } from '@angular/common';
|
9
9
|
import * as i0 from '@angular/core';
|
10
|
-
import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, setTestabilityGetter, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵINJECTOR_SCOPE, NgZone, RendererFactory2, Testability, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵgetSanitizationBypassType, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';
|
10
|
+
import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, setTestabilityGetter, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ɵbootstrapApplication, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵINJECTOR_SCOPE, NgZone, RendererFactory2, Testability, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵgetSanitizationBypassType, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';
|
11
11
|
|
12
12
|
/**
|
13
13
|
* @license
|
@@ -221,9 +221,9 @@ class BrowserXhr {
|
|
221
221
|
return new XMLHttpRequest();
|
222
222
|
}
|
223
223
|
}
|
224
|
-
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
225
|
-
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
224
|
+
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
225
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserXhr });
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserXhr, decorators: [{
|
227
227
|
type: Injectable
|
228
228
|
}] });
|
229
229
|
|
@@ -306,9 +306,9 @@ class EventManager {
|
|
306
306
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
307
307
|
}
|
308
308
|
}
|
309
|
-
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
310
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
309
|
+
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
310
|
+
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: EventManager });
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: EventManager, decorators: [{
|
312
312
|
type: Injectable
|
313
313
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
314
314
|
type: Inject,
|
@@ -354,9 +354,9 @@ class SharedStylesHost {
|
|
354
354
|
return Array.from(this._stylesSet);
|
355
355
|
}
|
356
356
|
}
|
357
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
358
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
357
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
358
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: SharedStylesHost });
|
359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: SharedStylesHost, decorators: [{
|
360
360
|
type: Injectable
|
361
361
|
}] });
|
362
362
|
class DomSharedStylesHost extends SharedStylesHost {
|
@@ -395,9 +395,9 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
395
395
|
this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));
|
396
396
|
}
|
397
397
|
}
|
398
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
399
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
398
|
+
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
399
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSharedStylesHost });
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
401
401
|
type: Injectable
|
402
402
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
403
403
|
type: Inject,
|
@@ -423,7 +423,7 @@ const NAMESPACE_URIS = {
|
|
423
423
|
'math': 'http://www.w3.org/1998/MathML/',
|
424
424
|
};
|
425
425
|
const COMPONENT_REGEX = /%COMP%/g;
|
426
|
-
const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
426
|
+
const NG_DEV_MODE$1 = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
427
427
|
const COMPONENT_VARIABLE = '%COMP%';
|
428
428
|
const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
429
429
|
const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
|
@@ -518,9 +518,9 @@ class DomRendererFactory2 {
|
|
518
518
|
begin() { }
|
519
519
|
end() { }
|
520
520
|
}
|
521
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
522
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
521
|
+
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
522
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomRendererFactory2 });
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
524
524
|
type: Injectable
|
525
525
|
}], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
526
526
|
type: Inject,
|
@@ -640,14 +640,14 @@ class DefaultDomRenderer2 {
|
|
640
640
|
}
|
641
641
|
}
|
642
642
|
setProperty(el, name, value) {
|
643
|
-
NG_DEV_MODE && checkNoSyntheticProp(name, 'property');
|
643
|
+
NG_DEV_MODE$1 && checkNoSyntheticProp(name, 'property');
|
644
644
|
el[name] = value;
|
645
645
|
}
|
646
646
|
setValue(node, value) {
|
647
647
|
node.nodeValue = value;
|
648
648
|
}
|
649
649
|
listen(target, event, callback) {
|
650
|
-
NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');
|
650
|
+
NG_DEV_MODE$1 && checkNoSyntheticProp(event, 'listener');
|
651
651
|
if (typeof target === 'string') {
|
652
652
|
return this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback));
|
653
653
|
}
|
@@ -741,9 +741,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
741
741
|
return target.removeEventListener(eventName, callback);
|
742
742
|
}
|
743
743
|
}
|
744
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
745
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
744
|
+
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
745
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomEventsPlugin });
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
747
747
|
type: Injectable
|
748
748
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
749
749
|
type: Inject,
|
@@ -919,9 +919,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
919
919
|
}
|
920
920
|
}
|
921
921
|
}
|
922
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
923
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
922
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
923
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: KeyEventsPlugin });
|
924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
925
925
|
type: Injectable
|
926
926
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
927
927
|
type: Inject,
|
@@ -957,6 +957,40 @@ function getEventKey(event) {
|
|
957
957
|
* Use of this source code is governed by an MIT-style license that can be
|
958
958
|
* found in the LICENSE file at https://angular.io/license
|
959
959
|
*/
|
960
|
+
const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
961
|
+
/**
|
962
|
+
* Bootstraps an instance of an Angular application and renders a root component.
|
963
|
+
*
|
964
|
+
* Note: the root component passed into this function *must* be a standalone one (should have the
|
965
|
+
* `standalone: true` flag in the `@Component` decorator config).
|
966
|
+
*
|
967
|
+
* ```typescript
|
968
|
+
* @Component({
|
969
|
+
* standalone: true,
|
970
|
+
* template: 'Hello world!'
|
971
|
+
* })
|
972
|
+
* class RootComponent {}
|
973
|
+
*
|
974
|
+
* const appRef: ApplicationRef = await bootstrapApplication(RootComponent);
|
975
|
+
* ```
|
976
|
+
*
|
977
|
+
* @param rootComponent A reference to a Standalone Component that should be rendered.
|
978
|
+
* @param options Additional configuration for the bootstrap operation, see `ApplicationConfig` for
|
979
|
+
* additional info.
|
980
|
+
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
981
|
+
*
|
982
|
+
* @publicApi
|
983
|
+
*/
|
984
|
+
function bootstrapApplication(rootComponent, options) {
|
985
|
+
return ɵbootstrapApplication({
|
986
|
+
rootComponent,
|
987
|
+
appProviders: [
|
988
|
+
...BROWSER_MODULE_PROVIDERS,
|
989
|
+
...(options?.providers ?? []),
|
990
|
+
],
|
991
|
+
platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS,
|
992
|
+
});
|
993
|
+
}
|
960
994
|
function initDomAdapter() {
|
961
995
|
BrowserDomAdapter.makeCurrent();
|
962
996
|
BrowserGetTestability.init();
|
@@ -981,17 +1015,22 @@ const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [
|
|
981
1015
|
* @publicApi
|
982
1016
|
*/
|
983
1017
|
const platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);
|
1018
|
+
/**
|
1019
|
+
* Internal marker to signal whether providers from the `BrowserModule` are already present in DI.
|
1020
|
+
* This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the
|
1021
|
+
* `BrowserModule` presence itself, since the standalone-based bootstrap just imports
|
1022
|
+
* `BrowserModule` providers without referencing the module itself.
|
1023
|
+
*/
|
1024
|
+
const BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(NG_DEV_MODE ? 'BrowserModule Providers Marker' : '');
|
984
1025
|
const BROWSER_MODULE_PROVIDERS = [
|
985
1026
|
{ provide: ɵINJECTOR_SCOPE, useValue: 'root' },
|
986
|
-
{ provide: ErrorHandler, useFactory: errorHandler, deps: [] },
|
987
|
-
{
|
1027
|
+
{ provide: ErrorHandler, useFactory: errorHandler, deps: [] }, {
|
988
1028
|
provide: EVENT_MANAGER_PLUGINS,
|
989
1029
|
useClass: DomEventsPlugin,
|
990
1030
|
multi: true,
|
991
1031
|
deps: [DOCUMENT, NgZone, PLATFORM_ID]
|
992
1032
|
},
|
993
|
-
{ provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
|
994
|
-
{
|
1033
|
+
{ provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] }, {
|
995
1034
|
provide: DomRendererFactory2,
|
996
1035
|
useClass: DomRendererFactory2,
|
997
1036
|
deps: [EventManager, DomSharedStylesHost, APP_ID]
|
@@ -1002,6 +1041,7 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1002
1041
|
{ provide: Testability, useClass: Testability, deps: [NgZone] },
|
1003
1042
|
{ provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
|
1004
1043
|
{ provide: XhrFactory, useClass: BrowserXhr, deps: [] },
|
1044
|
+
NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
|
1005
1045
|
];
|
1006
1046
|
/**
|
1007
1047
|
* Exports required infrastructure for all Angular apps.
|
@@ -1013,9 +1053,10 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1013
1053
|
* @publicApi
|
1014
1054
|
*/
|
1015
1055
|
class BrowserModule {
|
1016
|
-
constructor(
|
1017
|
-
if (
|
1018
|
-
throw new Error(`BrowserModule
|
1056
|
+
constructor(providersAlreadyPresent) {
|
1057
|
+
if (NG_DEV_MODE && providersAlreadyPresent) {
|
1058
|
+
throw new Error(`Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
|
1059
|
+
`to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
|
1019
1060
|
}
|
1020
1061
|
}
|
1021
1062
|
/**
|
@@ -1037,19 +1078,22 @@ class BrowserModule {
|
|
1037
1078
|
};
|
1038
1079
|
}
|
1039
1080
|
}
|
1040
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1041
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1042
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1081
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1082
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1083
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserModule, providers: BROWSER_MODULE_PROVIDERS, imports: [CommonModule, ApplicationModule] });
|
1084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserModule, decorators: [{
|
1044
1085
|
type: NgModule,
|
1045
|
-
args: [{
|
1046
|
-
|
1086
|
+
args: [{
|
1087
|
+
providers: BROWSER_MODULE_PROVIDERS,
|
1088
|
+
exports: [CommonModule, ApplicationModule],
|
1089
|
+
}]
|
1090
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1047
1091
|
type: Optional
|
1048
1092
|
}, {
|
1049
1093
|
type: SkipSelf
|
1050
1094
|
}, {
|
1051
1095
|
type: Inject,
|
1052
|
-
args: [
|
1096
|
+
args: [BROWSER_MODULE_PROVIDERS_MARKER]
|
1053
1097
|
}] }]; } });
|
1054
1098
|
|
1055
1099
|
/**
|
@@ -1215,9 +1259,9 @@ class Meta {
|
|
1215
1259
|
return META_KEYS_MAP[prop] || prop;
|
1216
1260
|
}
|
1217
1261
|
}
|
1218
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1219
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1262
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1263
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: Meta, decorators: [{
|
1221
1265
|
type: Injectable,
|
1222
1266
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1223
1267
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1272,9 +1316,9 @@ class Title {
|
|
1272
1316
|
this._doc.title = newTitle || '';
|
1273
1317
|
}
|
1274
1318
|
}
|
1275
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1276
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1319
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1320
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: Title, decorators: [{
|
1278
1322
|
type: Injectable,
|
1279
1323
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1280
1324
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1541,9 +1585,9 @@ class TransferState {
|
|
1541
1585
|
return JSON.stringify(this.store);
|
1542
1586
|
}
|
1543
1587
|
}
|
1544
|
-
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1545
|
-
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1588
|
+
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1589
|
+
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: TransferState });
|
1590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: TransferState, decorators: [{
|
1547
1591
|
type: Injectable
|
1548
1592
|
}] });
|
1549
1593
|
function initTransferState(doc, appId) {
|
@@ -1570,10 +1614,10 @@ function initTransferState(doc, appId) {
|
|
1570
1614
|
*/
|
1571
1615
|
class BrowserTransferStateModule {
|
1572
1616
|
}
|
1573
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1574
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1575
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1617
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1618
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTransferStateModule });
|
1619
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTransferStateModule, providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }] });
|
1620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1577
1621
|
type: NgModule,
|
1578
1622
|
args: [{
|
1579
1623
|
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],
|
@@ -1749,9 +1793,9 @@ class HammerGestureConfig {
|
|
1749
1793
|
return mc;
|
1750
1794
|
}
|
1751
1795
|
}
|
1752
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1753
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1796
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1797
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerGestureConfig });
|
1798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1755
1799
|
type: Injectable
|
1756
1800
|
}] });
|
1757
1801
|
/**
|
@@ -1847,9 +1891,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1847
1891
|
return this._config.events.indexOf(eventName) > -1;
|
1848
1892
|
}
|
1849
1893
|
}
|
1850
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1851
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1894
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1895
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerGesturesPlugin });
|
1896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1853
1897
|
type: Injectable
|
1854
1898
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1855
1899
|
type: Inject,
|
@@ -1876,9 +1920,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.13",
|
|
1876
1920
|
*/
|
1877
1921
|
class HammerModule {
|
1878
1922
|
}
|
1879
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1880
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1881
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1923
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1924
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerModule });
|
1925
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerModule, providers: [
|
1882
1926
|
{
|
1883
1927
|
provide: EVENT_MANAGER_PLUGINS,
|
1884
1928
|
useClass: HammerGesturesPlugin,
|
@@ -1887,7 +1931,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1887
1931
|
},
|
1888
1932
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1889
1933
|
] });
|
1890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: HammerModule, decorators: [{
|
1891
1935
|
type: NgModule,
|
1892
1936
|
args: [{
|
1893
1937
|
providers: [
|
@@ -1942,9 +1986,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.13",
|
|
1942
1986
|
*/
|
1943
1987
|
class DomSanitizer {
|
1944
1988
|
}
|
1945
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1946
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1989
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1990
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
1991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSanitizer, decorators: [{
|
1948
1992
|
type: Injectable,
|
1949
1993
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1950
1994
|
}] });
|
@@ -1963,28 +2007,28 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1963
2007
|
case SecurityContext.NONE:
|
1964
2008
|
return value;
|
1965
2009
|
case SecurityContext.HTML:
|
1966
|
-
if (ɵallowSanitizationBypassAndThrow(value, "HTML" /* Html */)) {
|
2010
|
+
if (ɵallowSanitizationBypassAndThrow(value, "HTML" /* BypassType.Html */)) {
|
1967
2011
|
return ɵunwrapSafeValue(value);
|
1968
2012
|
}
|
1969
2013
|
return ɵ_sanitizeHtml(this._doc, String(value)).toString();
|
1970
2014
|
case SecurityContext.STYLE:
|
1971
|
-
if (ɵallowSanitizationBypassAndThrow(value, "Style" /* Style */)) {
|
2015
|
+
if (ɵallowSanitizationBypassAndThrow(value, "Style" /* BypassType.Style */)) {
|
1972
2016
|
return ɵunwrapSafeValue(value);
|
1973
2017
|
}
|
1974
2018
|
return value;
|
1975
2019
|
case SecurityContext.SCRIPT:
|
1976
|
-
if (ɵallowSanitizationBypassAndThrow(value, "Script" /* Script */)) {
|
2020
|
+
if (ɵallowSanitizationBypassAndThrow(value, "Script" /* BypassType.Script */)) {
|
1977
2021
|
return ɵunwrapSafeValue(value);
|
1978
2022
|
}
|
1979
2023
|
throw new Error('unsafe value used in a script context');
|
1980
2024
|
case SecurityContext.URL:
|
1981
2025
|
const type = ɵgetSanitizationBypassType(value);
|
1982
|
-
if (ɵallowSanitizationBypassAndThrow(value, "URL" /* Url */)) {
|
2026
|
+
if (ɵallowSanitizationBypassAndThrow(value, "URL" /* BypassType.Url */)) {
|
1983
2027
|
return ɵunwrapSafeValue(value);
|
1984
2028
|
}
|
1985
2029
|
return ɵ_sanitizeUrl(String(value));
|
1986
2030
|
case SecurityContext.RESOURCE_URL:
|
1987
|
-
if (ɵallowSanitizationBypassAndThrow(value, "ResourceURL" /* ResourceUrl */)) {
|
2031
|
+
if (ɵallowSanitizationBypassAndThrow(value, "ResourceURL" /* BypassType.ResourceUrl */)) {
|
1988
2032
|
return ɵunwrapSafeValue(value);
|
1989
2033
|
}
|
1990
2034
|
throw new Error('unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');
|
@@ -2008,9 +2052,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
2008
2052
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
2009
2053
|
}
|
2010
2054
|
}
|
2011
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
2012
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
2013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
2055
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2056
|
+
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
2014
2058
|
type: Injectable,
|
2015
2059
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
2016
2060
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -2036,7 +2080,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.13",
|
|
2036
2080
|
/**
|
2037
2081
|
* @publicApi
|
2038
2082
|
*/
|
2039
|
-
const VERSION = new Version('14.0.0-next.
|
2083
|
+
const VERSION = new Version('14.0.0-next.16');
|
2040
2084
|
|
2041
2085
|
/**
|
2042
2086
|
* @license
|
@@ -2067,5 +2111,5 @@ const VERSION = new Version('14.0.0-next.13');
|
|
2067
2111
|
* Generated bundle index. Do not edit.
|
2068
2112
|
*/
|
2069
2113
|
|
2070
|
-
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, escapeHtml as ɵescapeHtml, flattenStyles as ɵflattenStyles, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute };
|
2114
|
+
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, bootstrapApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, bootstrapApplication as ɵbootstrapApplication, escapeHtml as ɵescapeHtml, flattenStyles as ɵflattenStyles, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute };
|
2071
2115
|
//# sourceMappingURL=platform-browser.mjs.map
|