@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 () { return [{ type: undefined, decorators: [{
|
277
252
|
type: Inject,
|
@@ -334,18 +309,20 @@ class SharedStylesHost {
|
|
334
309
|
this.usageCount.clear();
|
335
310
|
}
|
336
311
|
}
|
337
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
338
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
339
|
-
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: [{
|
340
315
|
type: Injectable
|
341
316
|
}] });
|
342
317
|
class DomSharedStylesHost extends SharedStylesHost {
|
343
|
-
constructor(doc) {
|
318
|
+
constructor(doc, appId) {
|
344
319
|
super();
|
345
320
|
this.doc = doc;
|
321
|
+
this.appId = appId;
|
346
322
|
// Maps all registered host nodes to a list of style nodes that have been added to the host node.
|
347
323
|
this.styleRef = new Map();
|
348
324
|
this.hostNodes = new Set();
|
325
|
+
this.styleNodesInDOM = this.collectServerRenderedStyles();
|
349
326
|
this.resetHostNodes();
|
350
327
|
}
|
351
328
|
onStyleAdded(style) {
|
@@ -356,13 +333,18 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
356
333
|
onStyleRemoved(style) {
|
357
334
|
const styleRef = this.styleRef;
|
358
335
|
const styleElements = styleRef.get(style);
|
359
|
-
styleElements?.forEach(
|
336
|
+
styleElements?.forEach(node => node.remove());
|
360
337
|
styleRef.delete(style);
|
361
338
|
}
|
362
339
|
ngOnDestroy() {
|
363
340
|
super.ngOnDestroy();
|
364
341
|
this.styleRef.clear();
|
365
342
|
this.resetHostNodes();
|
343
|
+
const styleNodesInDOM = this.styleNodesInDOM;
|
344
|
+
if (styleNodesInDOM) {
|
345
|
+
styleNodesInDOM.forEach(node => node.remove());
|
346
|
+
styleNodesInDOM.clear();
|
347
|
+
}
|
366
348
|
}
|
367
349
|
addHost(hostNode) {
|
368
350
|
this.hostNodes.add(hostNode);
|
@@ -373,16 +355,48 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
373
355
|
removeHost(hostNode) {
|
374
356
|
this.hostNodes.delete(hostNode);
|
375
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
|
+
}
|
376
390
|
addStyleToHost(host, style) {
|
377
|
-
const styleEl = this.
|
378
|
-
styleEl.textContent = style;
|
391
|
+
const styleEl = this.getStyleElement(host, style);
|
379
392
|
host.appendChild(styleEl);
|
380
|
-
const
|
393
|
+
const styleRef = this.styleRef;
|
394
|
+
const styleElRef = styleRef.get(style);
|
381
395
|
if (styleElRef) {
|
382
396
|
styleElRef.push(styleEl);
|
383
397
|
}
|
384
398
|
else {
|
385
|
-
|
399
|
+
styleRef.set(style, [styleEl]);
|
386
400
|
}
|
387
401
|
}
|
388
402
|
resetHostNodes() {
|
@@ -392,13 +406,16 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
392
406
|
hostNodes.add(this.doc.head);
|
393
407
|
}
|
394
408
|
}
|
395
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
396
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
397
|
-
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: [{
|
398
412
|
type: Injectable
|
399
|
-
}], ctorParameters: function () { return [{ type:
|
413
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
400
414
|
type: Inject,
|
401
415
|
args: [DOCUMENT]
|
416
|
+
}] }, { type: undefined, decorators: [{
|
417
|
+
type: Inject,
|
418
|
+
args: [APP_ID]
|
402
419
|
}] }]; } });
|
403
420
|
|
404
421
|
const NAMESPACE_URIS = {
|
@@ -512,9 +529,9 @@ class DomRendererFactory2 {
|
|
512
529
|
begin() { }
|
513
530
|
end() { }
|
514
531
|
}
|
515
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
516
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
517
|
-
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: [{
|
518
535
|
type: Injectable
|
519
536
|
}], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
520
537
|
type: Inject,
|
@@ -753,9 +770,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
753
770
|
return target.removeEventListener(eventName, callback);
|
754
771
|
}
|
755
772
|
}
|
756
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
757
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
758
|
-
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: [{
|
759
776
|
type: Injectable
|
760
777
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
761
778
|
type: Inject,
|
@@ -932,9 +949,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
932
949
|
}
|
933
950
|
}
|
934
951
|
}
|
935
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
936
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
937
|
-
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: [{
|
938
955
|
type: Injectable
|
939
956
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
940
957
|
type: Inject,
|
@@ -1041,7 +1058,8 @@ function createProvidersConfig(options) {
|
|
1041
1058
|
*/
|
1042
1059
|
function provideProtractorTestingSupport() {
|
1043
1060
|
// Return a copy to prevent changes to the original array in case any in-place
|
1044
|
-
// alterations are performed to the `provideProtractorTestingSupport` call results in app
|
1061
|
+
// alterations are performed to the `provideProtractorTestingSupport` call results in app
|
1062
|
+
// code.
|
1045
1063
|
return [...TESTABILITY_PROVIDERS];
|
1046
1064
|
}
|
1047
1065
|
function initDomAdapter() {
|
@@ -1105,9 +1123,7 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1105
1123
|
deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]
|
1106
1124
|
},
|
1107
1125
|
{ provide: RendererFactory2, useExisting: DomRendererFactory2 },
|
1108
|
-
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost },
|
1109
|
-
{ provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },
|
1110
|
-
{ provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
|
1126
|
+
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost }, DomSharedStylesHost, EventManager,
|
1111
1127
|
{ provide: XhrFactory, useClass: BrowserXhr, deps: [] },
|
1112
1128
|
NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
|
1113
1129
|
];
|
@@ -1134,31 +1150,25 @@ class BrowserModule {
|
|
1134
1150
|
* @param params An object containing an identifier for the app to transition.
|
1135
1151
|
* The ID must match between the client and server versions of the app.
|
1136
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.
|
1137
1155
|
*/
|
1138
1156
|
static withServerTransition(params) {
|
1139
1157
|
return {
|
1140
1158
|
ngModule: BrowserModule,
|
1141
1159
|
providers: [
|
1142
1160
|
{ provide: APP_ID, useValue: params.appId },
|
1143
|
-
{ provide: TRANSITION_ID, useExisting: APP_ID },
|
1144
|
-
SERVER_TRANSITION_PROVIDERS,
|
1145
1161
|
],
|
1146
1162
|
};
|
1147
1163
|
}
|
1148
1164
|
}
|
1149
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1150
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1151
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1152
|
-
|
1153
|
-
...TESTABILITY_PROVIDERS
|
1154
|
-
], imports: [CommonModule, ApplicationModule] });
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", 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: [{
|
1156
1169
|
type: NgModule,
|
1157
1170
|
args: [{
|
1158
|
-
providers: [
|
1159
|
-
...BROWSER_MODULE_PROVIDERS,
|
1160
|
-
...TESTABILITY_PROVIDERS
|
1161
|
-
],
|
1171
|
+
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
1162
1172
|
exports: [CommonModule, ApplicationModule],
|
1163
1173
|
}]
|
1164
1174
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1326,9 +1336,9 @@ class Meta {
|
|
1326
1336
|
return META_KEYS_MAP[prop] || prop;
|
1327
1337
|
}
|
1328
1338
|
}
|
1329
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1330
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1331
|
-
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: [{
|
1332
1342
|
type: Injectable,
|
1333
1343
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1334
1344
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1376,9 +1386,9 @@ class Title {
|
|
1376
1386
|
this._doc.title = newTitle || '';
|
1377
1387
|
}
|
1378
1388
|
}
|
1379
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1380
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1381
|
-
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: [{
|
1382
1392
|
type: Injectable,
|
1383
1393
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1384
1394
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1386,14 +1396,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1386
1396
|
args: [DOCUMENT]
|
1387
1397
|
}] }]; } });
|
1388
1398
|
|
1389
|
-
const CAMEL_CASE_REGEXP = /([A-Z])/g;
|
1390
|
-
const DASH_CASE_REGEXP = /-([a-z])/g;
|
1391
|
-
function camelCaseToDashCase(input) {
|
1392
|
-
return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
|
1393
|
-
}
|
1394
|
-
function dashCaseToCamelCase(input) {
|
1395
|
-
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
1396
|
-
}
|
1397
1399
|
/**
|
1398
1400
|
* Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if
|
1399
1401
|
* `name` is `'probe'`.
|
@@ -1511,10 +1513,10 @@ function disableDebugTools() {
|
|
1511
1513
|
*/
|
1512
1514
|
class BrowserTransferStateModule {
|
1513
1515
|
}
|
1514
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1515
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1516
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1517
|
-
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: [{
|
1518
1520
|
type: NgModule,
|
1519
1521
|
args: [{}]
|
1520
1522
|
}] });
|
@@ -1674,9 +1676,9 @@ class HammerGestureConfig {
|
|
1674
1676
|
return mc;
|
1675
1677
|
}
|
1676
1678
|
}
|
1677
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1678
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1679
|
-
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: [{
|
1680
1682
|
type: Injectable
|
1681
1683
|
}] });
|
1682
1684
|
/**
|
@@ -1772,9 +1774,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1772
1774
|
return this._config.events.indexOf(eventName) > -1;
|
1773
1775
|
}
|
1774
1776
|
}
|
1775
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1776
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1777
|
-
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: [{
|
1778
1780
|
type: Injectable
|
1779
1781
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1780
1782
|
type: Inject,
|
@@ -1801,9 +1803,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1801
1803
|
*/
|
1802
1804
|
class HammerModule {
|
1803
1805
|
}
|
1804
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1805
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1806
|
-
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: [
|
1807
1809
|
{
|
1808
1810
|
provide: EVENT_MANAGER_PLUGINS,
|
1809
1811
|
useClass: HammerGesturesPlugin,
|
@@ -1812,7 +1814,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1812
1814
|
},
|
1813
1815
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1814
1816
|
] });
|
1815
|
-
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: [{
|
1816
1818
|
type: NgModule,
|
1817
1819
|
args: [{
|
1818
1820
|
providers: [
|
@@ -1860,9 +1862,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1860
1862
|
*/
|
1861
1863
|
class DomSanitizer {
|
1862
1864
|
}
|
1863
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1864
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1865
|
-
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: [{
|
1866
1868
|
type: Injectable,
|
1867
1869
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1868
1870
|
}] });
|
@@ -1925,9 +1927,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1925
1927
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1926
1928
|
}
|
1927
1929
|
}
|
1928
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1929
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1930
|
-
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: [{
|
1931
1933
|
type: Injectable,
|
1932
1934
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1933
1935
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1943,7 +1945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
1943
1945
|
/**
|
1944
1946
|
* @publicApi
|
1945
1947
|
*/
|
1946
|
-
const VERSION = new Version('16.0.0-next.
|
1948
|
+
const VERSION = new Version('16.0.0-next.3');
|
1947
1949
|
|
1948
1950
|
// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
|
1949
1951
|
|
@@ -1960,5 +1962,5 @@ const VERSION = new Version('16.0.0-next.1');
|
|
1960
1962
|
* Generated bundle index. Do not edit.
|
1961
1963
|
*/
|
1962
1964
|
|
1963
|
-
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 };
|
1964
1966
|
//# sourceMappingURL=platform-browser.mjs.map
|