@angular/platform-browser 16.0.0-next.2 → 16.0.0-next.3
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/index.d.ts +1 -1
- 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_module.mjs +4 -4
- package/esm2020/src/browser/xhr.mjs +3 -3
- package/esm2020/src/browser.mjs +9 -18
- 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 +57 -15
- package/esm2020/src/private_export.mjs +1 -2
- package/esm2020/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/browser.mjs +8 -8
- package/fesm2015/animations.mjs +18 -18
- package/fesm2015/platform-browser.mjs +109 -101
- package/fesm2015/platform-browser.mjs.map +1 -1
- package/fesm2015/testing.mjs +8 -8
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/animations.mjs +18 -18
- package/fesm2020/platform-browser.mjs +108 -101
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +8 -8
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +8 -8
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2020/src/browser/server-transition.mjs +0 -36
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v16.0.0-next.
|
2
|
+
* @license Angular v16.0.0-next.3
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
7
7
|
import * as i0 from '@angular/core';
|
8
|
-
import {
|
8
|
+
import { ɵglobal, Injectable, InjectionToken, Inject, APP_ID, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Injector, Version } from '@angular/core';
|
9
9
|
export { ɵTransferState as TransferState, ɵmakeStateKey as makeStateKey } from '@angular/core';
|
10
10
|
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
|
11
11
|
export { ɵgetDOM } from '@angular/common';
|
@@ -107,33 +107,6 @@ function relativePath(url) {
|
|
107
107
|
return pathName.charAt(0) === '/' ? pathName : `/${pathName}`;
|
108
108
|
}
|
109
109
|
|
110
|
-
/**
|
111
|
-
* An id that identifies a particular application being bootstrapped, that should
|
112
|
-
* match across the client/server boundary.
|
113
|
-
*/
|
114
|
-
const TRANSITION_ID = new InjectionToken('TRANSITION_ID');
|
115
|
-
function appInitializerFactory(transitionId, document, injector) {
|
116
|
-
return () => {
|
117
|
-
// Wait for all application initializers to be completed before removing the styles set by
|
118
|
-
// the server.
|
119
|
-
injector.get(ApplicationInitStatus).donePromise.then(() => {
|
120
|
-
const dom = ɵgetDOM();
|
121
|
-
const styles = document.querySelectorAll(`style[ng-transition="${transitionId}"]`);
|
122
|
-
for (let i = 0; i < styles.length; i++) {
|
123
|
-
dom.remove(styles[i]);
|
124
|
-
}
|
125
|
-
});
|
126
|
-
};
|
127
|
-
}
|
128
|
-
const SERVER_TRANSITION_PROVIDERS = [
|
129
|
-
{
|
130
|
-
provide: APP_INITIALIZER,
|
131
|
-
useFactory: appInitializerFactory,
|
132
|
-
deps: [TRANSITION_ID, DOCUMENT, Injector],
|
133
|
-
multi: true
|
134
|
-
},
|
135
|
-
];
|
136
|
-
|
137
110
|
class BrowserGetTestability {
|
138
111
|
addToWindow(registry) {
|
139
112
|
ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {
|
@@ -191,9 +164,9 @@ class BrowserXhr {
|
|
191
164
|
return new XMLHttpRequest();
|
192
165
|
}
|
193
166
|
}
|
194
|
-
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
195
|
-
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
167
|
+
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
168
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserXhr });
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserXhr, decorators: [{
|
197
170
|
type: Injectable
|
198
171
|
}] });
|
199
172
|
|
@@ -271,9 +244,9 @@ class EventManager {
|
|
271
244
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
272
245
|
}
|
273
246
|
}
|
274
|
-
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
275
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
247
|
+
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
248
|
+
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: EventManager });
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: EventManager, decorators: [{
|
277
250
|
type: Injectable
|
278
251
|
}], ctorParameters: function () {
|
279
252
|
return [{ type: undefined, decorators: [{
|
@@ -339,18 +312,20 @@ class SharedStylesHost {
|
|
339
312
|
this.usageCount.clear();
|
340
313
|
}
|
341
314
|
}
|
342
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
343
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
315
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
316
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: SharedStylesHost });
|
317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: SharedStylesHost, decorators: [{
|
345
318
|
type: Injectable
|
346
319
|
}] });
|
347
320
|
class DomSharedStylesHost extends SharedStylesHost {
|
348
|
-
constructor(doc) {
|
321
|
+
constructor(doc, appId) {
|
349
322
|
super();
|
350
323
|
this.doc = doc;
|
324
|
+
this.appId = appId;
|
351
325
|
// Maps all registered host nodes to a list of style nodes that have been added to the host node.
|
352
326
|
this.styleRef = new Map();
|
353
327
|
this.hostNodes = new Set();
|
328
|
+
this.styleNodesInDOM = this.collectServerRenderedStyles();
|
354
329
|
this.resetHostNodes();
|
355
330
|
}
|
356
331
|
onStyleAdded(style) {
|
@@ -361,13 +336,18 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
361
336
|
onStyleRemoved(style) {
|
362
337
|
const styleRef = this.styleRef;
|
363
338
|
const styleElements = styleRef.get(style);
|
364
|
-
styleElements === null || styleElements === void 0 ? void 0 : styleElements.forEach(
|
339
|
+
styleElements === null || styleElements === void 0 ? void 0 : styleElements.forEach(node => node.remove());
|
365
340
|
styleRef.delete(style);
|
366
341
|
}
|
367
342
|
ngOnDestroy() {
|
368
343
|
super.ngOnDestroy();
|
369
344
|
this.styleRef.clear();
|
370
345
|
this.resetHostNodes();
|
346
|
+
const styleNodesInDOM = this.styleNodesInDOM;
|
347
|
+
if (styleNodesInDOM) {
|
348
|
+
styleNodesInDOM.forEach(node => node.remove());
|
349
|
+
styleNodesInDOM.clear();
|
350
|
+
}
|
371
351
|
}
|
372
352
|
addHost(hostNode) {
|
373
353
|
this.hostNodes.add(hostNode);
|
@@ -378,16 +358,49 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
378
358
|
removeHost(hostNode) {
|
379
359
|
this.hostNodes.delete(hostNode);
|
380
360
|
}
|
361
|
+
collectServerRenderedStyles() {
|
362
|
+
var _a;
|
363
|
+
const styles = (_a = this.doc.head) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`style[ng-app="${this.appId}"]`);
|
364
|
+
if (styles === null || styles === void 0 ? void 0 : styles.length) {
|
365
|
+
const styleMap = new Map();
|
366
|
+
styles.forEach(style => {
|
367
|
+
if (style.textContent != null) {
|
368
|
+
styleMap.set(style.textContent, style);
|
369
|
+
}
|
370
|
+
});
|
371
|
+
return styleMap;
|
372
|
+
}
|
373
|
+
return null;
|
374
|
+
}
|
375
|
+
getStyleElement(host, style) {
|
376
|
+
const styleNodesInDOM = this.styleNodesInDOM;
|
377
|
+
const styleEl = styleNodesInDOM === null || styleNodesInDOM === void 0 ? void 0 : styleNodesInDOM.get(style);
|
378
|
+
if ((styleEl === null || styleEl === void 0 ? void 0 : styleEl.parentNode) === host) {
|
379
|
+
// `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.
|
380
|
+
styleNodesInDOM.delete(style);
|
381
|
+
styleEl.removeAttribute('ng-app');
|
382
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
383
|
+
// This attribute is solely used for debugging purposes.
|
384
|
+
styleEl.setAttribute('ng-style-reused', '');
|
385
|
+
}
|
386
|
+
return styleEl;
|
387
|
+
}
|
388
|
+
else {
|
389
|
+
const styleEl = this.doc.createElement('style');
|
390
|
+
styleEl.textContent = style;
|
391
|
+
return styleEl;
|
392
|
+
}
|
393
|
+
}
|
381
394
|
addStyleToHost(host, style) {
|
382
|
-
const styleEl = this.
|
383
|
-
styleEl.textContent = style;
|
395
|
+
const styleEl = this.getStyleElement(host, style);
|
384
396
|
host.appendChild(styleEl);
|
385
|
-
const
|
397
|
+
const styleRef = this.styleRef;
|
398
|
+
const styleElRef = styleRef.get(style);
|
386
399
|
if (styleElRef) {
|
387
400
|
styleElRef.push(styleEl);
|
388
401
|
}
|
389
402
|
else {
|
390
|
-
|
403
|
+
styleRef.set(style, [styleEl]);
|
391
404
|
}
|
392
405
|
}
|
393
406
|
resetHostNodes() {
|
@@ -397,14 +410,17 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
397
410
|
hostNodes.add(this.doc.head);
|
398
411
|
}
|
399
412
|
}
|
400
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
401
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
413
|
+
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
414
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost });
|
415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
403
416
|
type: Injectable
|
404
417
|
}], ctorParameters: function () {
|
405
|
-
return [{ type:
|
418
|
+
return [{ type: Document, decorators: [{
|
406
419
|
type: Inject,
|
407
420
|
args: [DOCUMENT]
|
421
|
+
}] }, { type: undefined, decorators: [{
|
422
|
+
type: Inject,
|
423
|
+
args: [APP_ID]
|
408
424
|
}] }];
|
409
425
|
} });
|
410
426
|
|
@@ -519,9 +535,9 @@ class DomRendererFactory2 {
|
|
519
535
|
begin() { }
|
520
536
|
end() { }
|
521
537
|
}
|
522
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
523
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
538
|
+
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }], target: i0.ɵɵFactoryTarget.Injectable });
|
539
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomRendererFactory2 });
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
525
541
|
type: Injectable
|
526
542
|
}], ctorParameters: function () {
|
527
543
|
return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
@@ -763,9 +779,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
763
779
|
return target.removeEventListener(eventName, callback);
|
764
780
|
}
|
765
781
|
}
|
766
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
767
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
782
|
+
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
783
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomEventsPlugin });
|
784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
769
785
|
type: Injectable
|
770
786
|
}], ctorParameters: function () {
|
771
787
|
return [{ type: undefined, decorators: [{
|
@@ -944,9 +960,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
944
960
|
}
|
945
961
|
}
|
946
962
|
}
|
947
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
948
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
963
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
964
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: KeyEventsPlugin });
|
965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
950
966
|
type: Injectable
|
951
967
|
}], ctorParameters: function () {
|
952
968
|
return [{ type: undefined, decorators: [{
|
@@ -1121,9 +1137,7 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1121
1137
|
deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]
|
1122
1138
|
},
|
1123
1139
|
{ provide: RendererFactory2, useExisting: DomRendererFactory2 },
|
1124
|
-
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost },
|
1125
|
-
{ provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },
|
1126
|
-
{ provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
|
1140
|
+
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost }, DomSharedStylesHost, EventManager,
|
1127
1141
|
{ provide: XhrFactory, useClass: BrowserXhr, deps: [] },
|
1128
1142
|
NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
|
1129
1143
|
];
|
@@ -1150,31 +1164,25 @@ class BrowserModule {
|
|
1150
1164
|
* @param params An object containing an identifier for the app to transition.
|
1151
1165
|
* The ID must match between the client and server versions of the app.
|
1152
1166
|
* @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
|
1167
|
+
*
|
1168
|
+
* @deprecated Use {@link APP_ID} instead to set the application ID.
|
1153
1169
|
*/
|
1154
1170
|
static withServerTransition(params) {
|
1155
1171
|
return {
|
1156
1172
|
ngModule: BrowserModule,
|
1157
1173
|
providers: [
|
1158
1174
|
{ provide: APP_ID, useValue: params.appId },
|
1159
|
-
{ provide: TRANSITION_ID, useExisting: APP_ID },
|
1160
|
-
SERVER_TRANSITION_PROVIDERS,
|
1161
1175
|
],
|
1162
1176
|
};
|
1163
1177
|
}
|
1164
1178
|
}
|
1165
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1166
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1167
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1168
|
-
|
1169
|
-
...TESTABILITY_PROVIDERS
|
1170
|
-
], imports: [CommonModule, ApplicationModule] });
|
1171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, decorators: [{
|
1179
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1180
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1181
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
|
1182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserModule, decorators: [{
|
1172
1183
|
type: NgModule,
|
1173
1184
|
args: [{
|
1174
|
-
providers: [
|
1175
|
-
...BROWSER_MODULE_PROVIDERS,
|
1176
|
-
...TESTABILITY_PROVIDERS
|
1177
|
-
],
|
1185
|
+
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
1178
1186
|
exports: [CommonModule, ApplicationModule],
|
1179
1187
|
}]
|
1180
1188
|
}], ctorParameters: function () {
|
@@ -1344,9 +1352,9 @@ class Meta {
|
|
1344
1352
|
return META_KEYS_MAP[prop] || prop;
|
1345
1353
|
}
|
1346
1354
|
}
|
1347
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1348
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1355
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1356
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Meta, decorators: [{
|
1350
1358
|
type: Injectable,
|
1351
1359
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1352
1360
|
}], ctorParameters: function () {
|
@@ -1396,9 +1404,9 @@ class Title {
|
|
1396
1404
|
this._doc.title = newTitle || '';
|
1397
1405
|
}
|
1398
1406
|
}
|
1399
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1400
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1407
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1408
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Title, decorators: [{
|
1402
1410
|
type: Injectable,
|
1403
1411
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1404
1412
|
}], ctorParameters: function () {
|
@@ -1525,10 +1533,10 @@ function disableDebugTools() {
|
|
1525
1533
|
*/
|
1526
1534
|
class BrowserTransferStateModule {
|
1527
1535
|
}
|
1528
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1529
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1530
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1536
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1537
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule });
|
1538
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule });
|
1539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1532
1540
|
type: NgModule,
|
1533
1541
|
args: [{}]
|
1534
1542
|
}] });
|
@@ -1688,9 +1696,9 @@ class HammerGestureConfig {
|
|
1688
1696
|
return mc;
|
1689
1697
|
}
|
1690
1698
|
}
|
1691
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1692
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1699
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1700
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGestureConfig });
|
1701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1694
1702
|
type: Injectable
|
1695
1703
|
}] });
|
1696
1704
|
/**
|
@@ -1786,9 +1794,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1786
1794
|
return this._config.events.indexOf(eventName) > -1;
|
1787
1795
|
}
|
1788
1796
|
}
|
1789
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1790
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1791
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1797
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1798
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGesturesPlugin });
|
1799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1792
1800
|
type: Injectable
|
1793
1801
|
}], ctorParameters: function () {
|
1794
1802
|
return [{ type: undefined, decorators: [{
|
@@ -1817,9 +1825,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
1817
1825
|
*/
|
1818
1826
|
class HammerModule {
|
1819
1827
|
}
|
1820
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1821
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1822
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1828
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1829
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule });
|
1830
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule, providers: [
|
1823
1831
|
{
|
1824
1832
|
provide: EVENT_MANAGER_PLUGINS,
|
1825
1833
|
useClass: HammerGesturesPlugin,
|
@@ -1828,7 +1836,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1828
1836
|
},
|
1829
1837
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1830
1838
|
] });
|
1831
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule, decorators: [{
|
1832
1840
|
type: NgModule,
|
1833
1841
|
args: [{
|
1834
1842
|
providers: [
|
@@ -1876,9 +1884,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
1876
1884
|
*/
|
1877
1885
|
class DomSanitizer {
|
1878
1886
|
}
|
1879
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1880
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1887
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1888
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
1889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizer, decorators: [{
|
1882
1890
|
type: Injectable,
|
1883
1891
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1884
1892
|
}] });
|
@@ -1941,9 +1949,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1941
1949
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1942
1950
|
}
|
1943
1951
|
}
|
1944
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1945
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1952
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1953
|
+
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
1954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1947
1955
|
type: Injectable,
|
1948
1956
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1949
1957
|
}], ctorParameters: function () {
|
@@ -1961,7 +1969,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
1961
1969
|
/**
|
1962
1970
|
* @publicApi
|
1963
1971
|
*/
|
1964
|
-
const VERSION = new Version('16.0.0-next.
|
1972
|
+
const VERSION = new Version('16.0.0-next.3');
|
1965
1973
|
|
1966
1974
|
// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
|
1967
1975
|
|
@@ -1978,5 +1986,5 @@ const VERSION = new Version('16.0.0-next.2');
|
|
1978
1986
|
* Generated bundle index. Do not edit.
|
1979
1987
|
*/
|
1980
1988
|
|
1981
|
-
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, platformBrowser, provideProtractorTestingSupport, 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,
|
1989
|
+
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, platformBrowser, provideProtractorTestingSupport, 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, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute, shimStylesContent as ɵshimStyles };
|
1982
1990
|
//# sourceMappingURL=platform-browser.mjs.map
|