@angular/platform-browser 16.0.0-next.1 → 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 +11 -19
- 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 +7 -5
- 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/dom/util.mjs +1 -9
- 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 +114 -111
- 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 +113 -111
- 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 +13 -15
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2020/src/browser/server-transition.mjs +0 -36
- package/esm2020/src/dom/debug/ng_probe.mjs +0 -32
@@ -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
|
|
@@ -216,7 +189,9 @@ class EventManager {
|
|
216
189
|
constructor(plugins, _zone) {
|
217
190
|
this._zone = _zone;
|
218
191
|
this._eventNameToPlugin = new Map();
|
219
|
-
plugins.forEach(
|
192
|
+
plugins.forEach((plugin) => {
|
193
|
+
plugin.manager = this;
|
194
|
+
});
|
220
195
|
this._plugins = plugins.slice().reverse();
|
221
196
|
}
|
222
197
|
/**
|
@@ -269,9 +244,9 @@ class EventManager {
|
|
269
244
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
270
245
|
}
|
271
246
|
}
|
272
|
-
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
273
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
274
|
-
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: [{
|
275
250
|
type: Injectable
|
276
251
|
}], ctorParameters: function () {
|
277
252
|
return [{ type: undefined, decorators: [{
|
@@ -337,18 +312,20 @@ class SharedStylesHost {
|
|
337
312
|
this.usageCount.clear();
|
338
313
|
}
|
339
314
|
}
|
340
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
341
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
342
|
-
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: [{
|
343
318
|
type: Injectable
|
344
319
|
}] });
|
345
320
|
class DomSharedStylesHost extends SharedStylesHost {
|
346
|
-
constructor(doc) {
|
321
|
+
constructor(doc, appId) {
|
347
322
|
super();
|
348
323
|
this.doc = doc;
|
324
|
+
this.appId = appId;
|
349
325
|
// Maps all registered host nodes to a list of style nodes that have been added to the host node.
|
350
326
|
this.styleRef = new Map();
|
351
327
|
this.hostNodes = new Set();
|
328
|
+
this.styleNodesInDOM = this.collectServerRenderedStyles();
|
352
329
|
this.resetHostNodes();
|
353
330
|
}
|
354
331
|
onStyleAdded(style) {
|
@@ -359,13 +336,18 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
359
336
|
onStyleRemoved(style) {
|
360
337
|
const styleRef = this.styleRef;
|
361
338
|
const styleElements = styleRef.get(style);
|
362
|
-
styleElements === null || styleElements === void 0 ? void 0 : styleElements.forEach(
|
339
|
+
styleElements === null || styleElements === void 0 ? void 0 : styleElements.forEach(node => node.remove());
|
363
340
|
styleRef.delete(style);
|
364
341
|
}
|
365
342
|
ngOnDestroy() {
|
366
343
|
super.ngOnDestroy();
|
367
344
|
this.styleRef.clear();
|
368
345
|
this.resetHostNodes();
|
346
|
+
const styleNodesInDOM = this.styleNodesInDOM;
|
347
|
+
if (styleNodesInDOM) {
|
348
|
+
styleNodesInDOM.forEach(node => node.remove());
|
349
|
+
styleNodesInDOM.clear();
|
350
|
+
}
|
369
351
|
}
|
370
352
|
addHost(hostNode) {
|
371
353
|
this.hostNodes.add(hostNode);
|
@@ -376,16 +358,49 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
376
358
|
removeHost(hostNode) {
|
377
359
|
this.hostNodes.delete(hostNode);
|
378
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
|
+
}
|
379
394
|
addStyleToHost(host, style) {
|
380
|
-
const styleEl = this.
|
381
|
-
styleEl.textContent = style;
|
395
|
+
const styleEl = this.getStyleElement(host, style);
|
382
396
|
host.appendChild(styleEl);
|
383
|
-
const
|
397
|
+
const styleRef = this.styleRef;
|
398
|
+
const styleElRef = styleRef.get(style);
|
384
399
|
if (styleElRef) {
|
385
400
|
styleElRef.push(styleEl);
|
386
401
|
}
|
387
402
|
else {
|
388
|
-
|
403
|
+
styleRef.set(style, [styleEl]);
|
389
404
|
}
|
390
405
|
}
|
391
406
|
resetHostNodes() {
|
@@ -395,14 +410,17 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
395
410
|
hostNodes.add(this.doc.head);
|
396
411
|
}
|
397
412
|
}
|
398
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
399
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
400
|
-
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: [{
|
401
416
|
type: Injectable
|
402
417
|
}], ctorParameters: function () {
|
403
|
-
return [{ type:
|
418
|
+
return [{ type: Document, decorators: [{
|
404
419
|
type: Inject,
|
405
420
|
args: [DOCUMENT]
|
421
|
+
}] }, { type: undefined, decorators: [{
|
422
|
+
type: Inject,
|
423
|
+
args: [APP_ID]
|
406
424
|
}] }];
|
407
425
|
} });
|
408
426
|
|
@@ -517,9 +535,9 @@ class DomRendererFactory2 {
|
|
517
535
|
begin() { }
|
518
536
|
end() { }
|
519
537
|
}
|
520
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
521
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
522
|
-
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: [{
|
523
541
|
type: Injectable
|
524
542
|
}], ctorParameters: function () {
|
525
543
|
return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
@@ -761,9 +779,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
761
779
|
return target.removeEventListener(eventName, callback);
|
762
780
|
}
|
763
781
|
}
|
764
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
765
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
766
|
-
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: [{
|
767
785
|
type: Injectable
|
768
786
|
}], ctorParameters: function () {
|
769
787
|
return [{ type: undefined, decorators: [{
|
@@ -942,9 +960,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
942
960
|
}
|
943
961
|
}
|
944
962
|
}
|
945
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
946
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
947
|
-
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: [{
|
948
966
|
type: Injectable
|
949
967
|
}], ctorParameters: function () {
|
950
968
|
return [{ type: undefined, decorators: [{
|
@@ -1054,7 +1072,8 @@ function createProvidersConfig(options) {
|
|
1054
1072
|
*/
|
1055
1073
|
function provideProtractorTestingSupport() {
|
1056
1074
|
// Return a copy to prevent changes to the original array in case any in-place
|
1057
|
-
// alterations are performed to the `provideProtractorTestingSupport` call results in app
|
1075
|
+
// alterations are performed to the `provideProtractorTestingSupport` call results in app
|
1076
|
+
// code.
|
1058
1077
|
return [...TESTABILITY_PROVIDERS];
|
1059
1078
|
}
|
1060
1079
|
function initDomAdapter() {
|
@@ -1118,9 +1137,7 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1118
1137
|
deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]
|
1119
1138
|
},
|
1120
1139
|
{ provide: RendererFactory2, useExisting: DomRendererFactory2 },
|
1121
|
-
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost },
|
1122
|
-
{ provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },
|
1123
|
-
{ provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
|
1140
|
+
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost }, DomSharedStylesHost, EventManager,
|
1124
1141
|
{ provide: XhrFactory, useClass: BrowserXhr, deps: [] },
|
1125
1142
|
NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
|
1126
1143
|
];
|
@@ -1147,31 +1164,25 @@ class BrowserModule {
|
|
1147
1164
|
* @param params An object containing an identifier for the app to transition.
|
1148
1165
|
* The ID must match between the client and server versions of the app.
|
1149
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.
|
1150
1169
|
*/
|
1151
1170
|
static withServerTransition(params) {
|
1152
1171
|
return {
|
1153
1172
|
ngModule: BrowserModule,
|
1154
1173
|
providers: [
|
1155
1174
|
{ provide: APP_ID, useValue: params.appId },
|
1156
|
-
{ provide: TRANSITION_ID, useExisting: APP_ID },
|
1157
|
-
SERVER_TRANSITION_PROVIDERS,
|
1158
1175
|
],
|
1159
1176
|
};
|
1160
1177
|
}
|
1161
1178
|
}
|
1162
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1163
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1164
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1165
|
-
|
1166
|
-
...TESTABILITY_PROVIDERS
|
1167
|
-
], imports: [CommonModule, ApplicationModule] });
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", 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: [{
|
1169
1183
|
type: NgModule,
|
1170
1184
|
args: [{
|
1171
|
-
providers: [
|
1172
|
-
...BROWSER_MODULE_PROVIDERS,
|
1173
|
-
...TESTABILITY_PROVIDERS
|
1174
|
-
],
|
1185
|
+
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
1175
1186
|
exports: [CommonModule, ApplicationModule],
|
1176
1187
|
}]
|
1177
1188
|
}], ctorParameters: function () {
|
@@ -1341,9 +1352,9 @@ class Meta {
|
|
1341
1352
|
return META_KEYS_MAP[prop] || prop;
|
1342
1353
|
}
|
1343
1354
|
}
|
1344
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1345
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1346
|
-
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: [{
|
1347
1358
|
type: Injectable,
|
1348
1359
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1349
1360
|
}], ctorParameters: function () {
|
@@ -1393,9 +1404,9 @@ class Title {
|
|
1393
1404
|
this._doc.title = newTitle || '';
|
1394
1405
|
}
|
1395
1406
|
}
|
1396
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1397
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1398
|
-
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: [{
|
1399
1410
|
type: Injectable,
|
1400
1411
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1401
1412
|
}], ctorParameters: function () {
|
@@ -1405,14 +1416,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1405
1416
|
}] }];
|
1406
1417
|
} });
|
1407
1418
|
|
1408
|
-
const CAMEL_CASE_REGEXP = /([A-Z])/g;
|
1409
|
-
const DASH_CASE_REGEXP = /-([a-z])/g;
|
1410
|
-
function camelCaseToDashCase(input) {
|
1411
|
-
return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
|
1412
|
-
}
|
1413
|
-
function dashCaseToCamelCase(input) {
|
1414
|
-
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
1415
|
-
}
|
1416
1419
|
/**
|
1417
1420
|
* Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if
|
1418
1421
|
* `name` is `'probe'`.
|
@@ -1530,10 +1533,10 @@ function disableDebugTools() {
|
|
1530
1533
|
*/
|
1531
1534
|
class BrowserTransferStateModule {
|
1532
1535
|
}
|
1533
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1534
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1535
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1536
|
-
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: [{
|
1537
1540
|
type: NgModule,
|
1538
1541
|
args: [{}]
|
1539
1542
|
}] });
|
@@ -1693,9 +1696,9 @@ class HammerGestureConfig {
|
|
1693
1696
|
return mc;
|
1694
1697
|
}
|
1695
1698
|
}
|
1696
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1697
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1698
|
-
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: [{
|
1699
1702
|
type: Injectable
|
1700
1703
|
}] });
|
1701
1704
|
/**
|
@@ -1791,9 +1794,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1791
1794
|
return this._config.events.indexOf(eventName) > -1;
|
1792
1795
|
}
|
1793
1796
|
}
|
1794
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1795
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1796
|
-
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: [{
|
1797
1800
|
type: Injectable
|
1798
1801
|
}], ctorParameters: function () {
|
1799
1802
|
return [{ type: undefined, decorators: [{
|
@@ -1822,9 +1825,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1822
1825
|
*/
|
1823
1826
|
class HammerModule {
|
1824
1827
|
}
|
1825
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1826
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1827
|
-
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: [
|
1828
1831
|
{
|
1829
1832
|
provide: EVENT_MANAGER_PLUGINS,
|
1830
1833
|
useClass: HammerGesturesPlugin,
|
@@ -1833,7 +1836,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1833
1836
|
},
|
1834
1837
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1835
1838
|
] });
|
1836
|
-
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: [{
|
1837
1840
|
type: NgModule,
|
1838
1841
|
args: [{
|
1839
1842
|
providers: [
|
@@ -1881,9 +1884,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1881
1884
|
*/
|
1882
1885
|
class DomSanitizer {
|
1883
1886
|
}
|
1884
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1885
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1886
|
-
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: [{
|
1887
1890
|
type: Injectable,
|
1888
1891
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1889
1892
|
}] });
|
@@ -1946,9 +1949,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1946
1949
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1947
1950
|
}
|
1948
1951
|
}
|
1949
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1950
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1951
|
-
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: [{
|
1952
1955
|
type: Injectable,
|
1953
1956
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1954
1957
|
}], ctorParameters: function () {
|
@@ -1966,7 +1969,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1966
1969
|
/**
|
1967
1970
|
* @publicApi
|
1968
1971
|
*/
|
1969
|
-
const VERSION = new Version('16.0.0-next.
|
1972
|
+
const VERSION = new Version('16.0.0-next.3');
|
1970
1973
|
|
1971
1974
|
// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
|
1972
1975
|
|
@@ -1983,5 +1986,5 @@ const VERSION = new Version('16.0.0-next.1');
|
|
1983
1986
|
* Generated bundle index. Do not edit.
|
1984
1987
|
*/
|
1985
1988
|
|
1986
|
-
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 };
|
1987
1990
|
//# sourceMappingURL=platform-browser.mjs.map
|