@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 () { return [{ type: undefined, decorators: [{
|
279
252
|
type: Inject,
|
@@ -336,18 +309,20 @@ class SharedStylesHost {
|
|
336
309
|
this.usageCount.clear();
|
337
310
|
}
|
338
311
|
}
|
339
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
340
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
312
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
313
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: SharedStylesHost });
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: SharedStylesHost, decorators: [{
|
342
315
|
type: Injectable
|
343
316
|
}] });
|
344
317
|
class DomSharedStylesHost extends SharedStylesHost {
|
345
|
-
constructor(doc) {
|
318
|
+
constructor(doc, appId) {
|
346
319
|
super();
|
347
320
|
this.doc = doc;
|
321
|
+
this.appId = appId;
|
348
322
|
// Maps all registered host nodes to a list of style nodes that have been added to the host node.
|
349
323
|
this.styleRef = new Map();
|
350
324
|
this.hostNodes = new Set();
|
325
|
+
this.styleNodesInDOM = this.collectServerRenderedStyles();
|
351
326
|
this.resetHostNodes();
|
352
327
|
}
|
353
328
|
onStyleAdded(style) {
|
@@ -358,13 +333,18 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
358
333
|
onStyleRemoved(style) {
|
359
334
|
const styleRef = this.styleRef;
|
360
335
|
const styleElements = styleRef.get(style);
|
361
|
-
styleElements?.forEach(
|
336
|
+
styleElements?.forEach(node => node.remove());
|
362
337
|
styleRef.delete(style);
|
363
338
|
}
|
364
339
|
ngOnDestroy() {
|
365
340
|
super.ngOnDestroy();
|
366
341
|
this.styleRef.clear();
|
367
342
|
this.resetHostNodes();
|
343
|
+
const styleNodesInDOM = this.styleNodesInDOM;
|
344
|
+
if (styleNodesInDOM) {
|
345
|
+
styleNodesInDOM.forEach(node => node.remove());
|
346
|
+
styleNodesInDOM.clear();
|
347
|
+
}
|
368
348
|
}
|
369
349
|
addHost(hostNode) {
|
370
350
|
this.hostNodes.add(hostNode);
|
@@ -375,16 +355,48 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
375
355
|
removeHost(hostNode) {
|
376
356
|
this.hostNodes.delete(hostNode);
|
377
357
|
}
|
358
|
+
collectServerRenderedStyles() {
|
359
|
+
const styles = this.doc.head?.querySelectorAll(`style[ng-app="${this.appId}"]`);
|
360
|
+
if (styles?.length) {
|
361
|
+
const styleMap = new Map();
|
362
|
+
styles.forEach(style => {
|
363
|
+
if (style.textContent != null) {
|
364
|
+
styleMap.set(style.textContent, style);
|
365
|
+
}
|
366
|
+
});
|
367
|
+
return styleMap;
|
368
|
+
}
|
369
|
+
return null;
|
370
|
+
}
|
371
|
+
getStyleElement(host, style) {
|
372
|
+
const styleNodesInDOM = this.styleNodesInDOM;
|
373
|
+
const styleEl = styleNodesInDOM?.get(style);
|
374
|
+
if (styleEl?.parentNode === host) {
|
375
|
+
// `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.
|
376
|
+
styleNodesInDOM.delete(style);
|
377
|
+
styleEl.removeAttribute('ng-app');
|
378
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
379
|
+
// This attribute is solely used for debugging purposes.
|
380
|
+
styleEl.setAttribute('ng-style-reused', '');
|
381
|
+
}
|
382
|
+
return styleEl;
|
383
|
+
}
|
384
|
+
else {
|
385
|
+
const styleEl = this.doc.createElement('style');
|
386
|
+
styleEl.textContent = style;
|
387
|
+
return styleEl;
|
388
|
+
}
|
389
|
+
}
|
378
390
|
addStyleToHost(host, style) {
|
379
|
-
const styleEl = this.
|
380
|
-
styleEl.textContent = style;
|
391
|
+
const styleEl = this.getStyleElement(host, style);
|
381
392
|
host.appendChild(styleEl);
|
382
|
-
const
|
393
|
+
const styleRef = this.styleRef;
|
394
|
+
const styleElRef = styleRef.get(style);
|
383
395
|
if (styleElRef) {
|
384
396
|
styleElRef.push(styleEl);
|
385
397
|
}
|
386
398
|
else {
|
387
|
-
|
399
|
+
styleRef.set(style, [styleEl]);
|
388
400
|
}
|
389
401
|
}
|
390
402
|
resetHostNodes() {
|
@@ -394,13 +406,16 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
394
406
|
hostNodes.add(this.doc.head);
|
395
407
|
}
|
396
408
|
}
|
397
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
398
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
409
|
+
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 });
|
410
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost });
|
411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
400
412
|
type: Injectable
|
401
|
-
}], ctorParameters: function () { return [{ type:
|
413
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
402
414
|
type: Inject,
|
403
415
|
args: [DOCUMENT]
|
416
|
+
}] }, { type: undefined, decorators: [{
|
417
|
+
type: Inject,
|
418
|
+
args: [APP_ID]
|
404
419
|
}] }]; } });
|
405
420
|
|
406
421
|
const NAMESPACE_URIS = {
|
@@ -514,9 +529,9 @@ class DomRendererFactory2 {
|
|
514
529
|
begin() { }
|
515
530
|
end() { }
|
516
531
|
}
|
517
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
518
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
532
|
+
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 });
|
533
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomRendererFactory2 });
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
520
535
|
type: Injectable
|
521
536
|
}], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
522
537
|
type: Inject,
|
@@ -755,9 +770,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
755
770
|
return target.removeEventListener(eventName, callback);
|
756
771
|
}
|
757
772
|
}
|
758
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
759
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
773
|
+
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 });
|
774
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomEventsPlugin });
|
775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
761
776
|
type: Injectable
|
762
777
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
763
778
|
type: Inject,
|
@@ -934,9 +949,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
934
949
|
}
|
935
950
|
}
|
936
951
|
}
|
937
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
938
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
952
|
+
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 });
|
953
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: KeyEventsPlugin });
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
940
955
|
type: Injectable
|
941
956
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
942
957
|
type: Inject,
|
@@ -1108,9 +1123,7 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1108
1123
|
deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]
|
1109
1124
|
},
|
1110
1125
|
{ provide: RendererFactory2, useExisting: DomRendererFactory2 },
|
1111
|
-
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost },
|
1112
|
-
{ provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },
|
1113
|
-
{ provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
|
1126
|
+
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost }, DomSharedStylesHost, EventManager,
|
1114
1127
|
{ provide: XhrFactory, useClass: BrowserXhr, deps: [] },
|
1115
1128
|
NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
|
1116
1129
|
];
|
@@ -1137,31 +1150,25 @@ class BrowserModule {
|
|
1137
1150
|
* @param params An object containing an identifier for the app to transition.
|
1138
1151
|
* The ID must match between the client and server versions of the app.
|
1139
1152
|
* @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
|
1153
|
+
*
|
1154
|
+
* @deprecated Use {@link APP_ID} instead to set the application ID.
|
1140
1155
|
*/
|
1141
1156
|
static withServerTransition(params) {
|
1142
1157
|
return {
|
1143
1158
|
ngModule: BrowserModule,
|
1144
1159
|
providers: [
|
1145
1160
|
{ provide: APP_ID, useValue: params.appId },
|
1146
|
-
{ provide: TRANSITION_ID, useExisting: APP_ID },
|
1147
|
-
SERVER_TRANSITION_PROVIDERS,
|
1148
1161
|
],
|
1149
1162
|
};
|
1150
1163
|
}
|
1151
1164
|
}
|
1152
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1153
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1154
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1155
|
-
|
1156
|
-
...TESTABILITY_PROVIDERS
|
1157
|
-
], imports: [CommonModule, ApplicationModule] });
|
1158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, decorators: [{
|
1165
|
+
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 });
|
1166
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1167
|
+
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] });
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserModule, decorators: [{
|
1159
1169
|
type: NgModule,
|
1160
1170
|
args: [{
|
1161
|
-
providers: [
|
1162
|
-
...BROWSER_MODULE_PROVIDERS,
|
1163
|
-
...TESTABILITY_PROVIDERS
|
1164
|
-
],
|
1171
|
+
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
1165
1172
|
exports: [CommonModule, ApplicationModule],
|
1166
1173
|
}]
|
1167
1174
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1329,9 +1336,9 @@ class Meta {
|
|
1329
1336
|
return META_KEYS_MAP[prop] || prop;
|
1330
1337
|
}
|
1331
1338
|
}
|
1332
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1333
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1339
|
+
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 });
|
1340
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Meta, decorators: [{
|
1335
1342
|
type: Injectable,
|
1336
1343
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1337
1344
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1379,9 +1386,9 @@ class Title {
|
|
1379
1386
|
this._doc.title = newTitle || '';
|
1380
1387
|
}
|
1381
1388
|
}
|
1382
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1383
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1389
|
+
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 });
|
1390
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: Title, decorators: [{
|
1385
1392
|
type: Injectable,
|
1386
1393
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1387
1394
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1506,10 +1513,10 @@ function disableDebugTools() {
|
|
1506
1513
|
*/
|
1507
1514
|
class BrowserTransferStateModule {
|
1508
1515
|
}
|
1509
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1510
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1511
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1516
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1517
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule });
|
1518
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule });
|
1519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1513
1520
|
type: NgModule,
|
1514
1521
|
args: [{}]
|
1515
1522
|
}] });
|
@@ -1669,9 +1676,9 @@ class HammerGestureConfig {
|
|
1669
1676
|
return mc;
|
1670
1677
|
}
|
1671
1678
|
}
|
1672
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1673
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1679
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1680
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGestureConfig });
|
1681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1675
1682
|
type: Injectable
|
1676
1683
|
}] });
|
1677
1684
|
/**
|
@@ -1767,9 +1774,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1767
1774
|
return this._config.events.indexOf(eventName) > -1;
|
1768
1775
|
}
|
1769
1776
|
}
|
1770
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1771
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1777
|
+
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 });
|
1778
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGesturesPlugin });
|
1779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1773
1780
|
type: Injectable
|
1774
1781
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1775
1782
|
type: Inject,
|
@@ -1796,9 +1803,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
1796
1803
|
*/
|
1797
1804
|
class HammerModule {
|
1798
1805
|
}
|
1799
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1800
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1801
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1806
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1807
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule });
|
1808
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule, providers: [
|
1802
1809
|
{
|
1803
1810
|
provide: EVENT_MANAGER_PLUGINS,
|
1804
1811
|
useClass: HammerGesturesPlugin,
|
@@ -1807,7 +1814,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1807
1814
|
},
|
1808
1815
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1809
1816
|
] });
|
1810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule, decorators: [{
|
1811
1818
|
type: NgModule,
|
1812
1819
|
args: [{
|
1813
1820
|
providers: [
|
@@ -1855,9 +1862,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
1855
1862
|
*/
|
1856
1863
|
class DomSanitizer {
|
1857
1864
|
}
|
1858
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1859
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1865
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1866
|
+
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; }) });
|
1867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizer, decorators: [{
|
1861
1868
|
type: Injectable,
|
1862
1869
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1863
1870
|
}] });
|
@@ -1920,9 +1927,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1920
1927
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1921
1928
|
}
|
1922
1929
|
}
|
1923
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1924
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1930
|
+
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 });
|
1931
|
+
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 }] });
|
1932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1926
1933
|
type: Injectable,
|
1927
1934
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1928
1935
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1938,7 +1945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
1938
1945
|
/**
|
1939
1946
|
* @publicApi
|
1940
1947
|
*/
|
1941
|
-
const VERSION = new Version('16.0.0-next.
|
1948
|
+
const VERSION = new Version('16.0.0-next.3');
|
1942
1949
|
|
1943
1950
|
// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
|
1944
1951
|
|
@@ -1955,5 +1962,5 @@ const VERSION = new Version('16.0.0-next.2');
|
|
1955
1962
|
* Generated bundle index. Do not edit.
|
1956
1963
|
*/
|
1957
1964
|
|
1958
|
-
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,
|
1965
|
+
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 };
|
1959
1966
|
//# sourceMappingURL=platform-browser.mjs.map
|