@angular/platform-browser 16.0.0-next.3 → 16.0.0-next.4
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 -13
- package/esm2020/src/dom/dom_renderer.mjs +20 -10
- 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 +68 -70
- package/esm2020/src/private_export.mjs +2 -2
- package/esm2020/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/browser.mjs +4 -4
- package/fesm2015/animations.mjs +18 -18
- package/fesm2015/platform-browser.mjs +132 -126
- package/fesm2015/platform-browser.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2020/animations.mjs +18 -18
- package/fesm2020/platform-browser.mjs +130 -125
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/index.d.ts +24 -29
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2015/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v16.0.0-next.
|
2
|
+
* @license Angular v16.0.0-next.4
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -195,14 +195,14 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
195
195
|
*/
|
196
196
|
class BrowserTestingModule {
|
197
197
|
}
|
198
|
-
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
199
|
-
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
200
|
-
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
198
|
+
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
199
|
+
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
|
200
|
+
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, providers: [
|
201
201
|
{ provide: APP_ID, useValue: 'a' },
|
202
202
|
ɵprovideNgZoneChangeDetection(createNgZone()),
|
203
203
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
204
204
|
], imports: [BrowserModule] });
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
206
206
|
type: NgModule,
|
207
207
|
args: [{
|
208
208
|
exports: [BrowserModule],
|
package/fesm2020/animations.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v16.0.0-next.
|
2
|
+
* @license Angular v16.0.0-next.4
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -28,9 +28,9 @@ class BrowserAnimationBuilder extends AnimationBuilder {
|
|
28
28
|
return new BrowserAnimationFactory(id, this._renderer);
|
29
29
|
}
|
30
30
|
}
|
31
|
-
BrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
32
|
-
BrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
31
|
+
BrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
32
|
+
BrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserAnimationBuilder });
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
|
34
34
|
type: Injectable
|
35
35
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: undefined, decorators: [{
|
36
36
|
type: Inject,
|
@@ -215,9 +215,9 @@ class AnimationRendererFactory {
|
|
215
215
|
return this.engine.whenRenderingDone();
|
216
216
|
}
|
217
217
|
}
|
218
|
-
AnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
219
|
-
AnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
218
|
+
AnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: AnimationRendererFactory, deps: [{ token: i0.RendererFactory2 }, { token: i1.ɵAnimationEngine }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
219
|
+
AnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: AnimationRendererFactory });
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: AnimationRendererFactory, decorators: [{
|
221
221
|
type: Injectable
|
222
222
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i1.ɵAnimationEngine }, { type: i0.NgZone }]; } });
|
223
223
|
class BaseAnimationRenderer {
|
@@ -370,9 +370,9 @@ class InjectableAnimationEngine extends ɵAnimationEngine {
|
|
370
370
|
this.flush();
|
371
371
|
}
|
372
372
|
}
|
373
|
-
InjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
374
|
-
InjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
373
|
+
InjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
374
|
+
InjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: InjectableAnimationEngine });
|
375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: InjectableAnimationEngine, decorators: [{
|
376
376
|
type: Injectable
|
377
377
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
378
378
|
type: Inject,
|
@@ -440,10 +440,10 @@ class BrowserAnimationsModule {
|
|
440
440
|
};
|
441
441
|
}
|
442
442
|
}
|
443
|
-
BrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
444
|
-
BrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
445
|
-
BrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
443
|
+
BrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
444
|
+
BrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] });
|
445
|
+
BrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
|
446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserAnimationsModule, decorators: [{
|
447
447
|
type: NgModule,
|
448
448
|
args: [{
|
449
449
|
exports: [BrowserModule],
|
@@ -483,10 +483,10 @@ function provideAnimations() {
|
|
483
483
|
*/
|
484
484
|
class NoopAnimationsModule {
|
485
485
|
}
|
486
|
-
NoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
487
|
-
NoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
488
|
-
NoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
486
|
+
NoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
487
|
+
NoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] });
|
488
|
+
NoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: NoopAnimationsModule, decorators: [{
|
490
490
|
type: NgModule,
|
491
491
|
args: [{
|
492
492
|
exports: [BrowserModule],
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v16.0.0-next.
|
2
|
+
* @license Angular v16.0.0-next.4
|
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 { ɵglobal, Injectable, InjectionToken, Inject, APP_ID, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument,
|
8
|
+
import { ɵglobal, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, 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
|
-
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
|
10
|
+
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
|
11
11
|
export { ɵgetDOM } from '@angular/common';
|
12
12
|
|
13
13
|
/**
|
@@ -164,9 +164,9 @@ class BrowserXhr {
|
|
164
164
|
return new XMLHttpRequest();
|
165
165
|
}
|
166
166
|
}
|
167
|
-
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
168
|
-
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
169
|
-
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.4", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
168
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserXhr });
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserXhr, decorators: [{
|
170
170
|
type: Injectable
|
171
171
|
}] });
|
172
172
|
|
@@ -244,9 +244,9 @@ class EventManager {
|
|
244
244
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
245
245
|
}
|
246
246
|
}
|
247
|
-
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
248
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
249
|
-
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.4", 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.4", ngImport: i0, type: EventManager });
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: EventManager, decorators: [{
|
250
250
|
type: Injectable
|
251
251
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
252
252
|
type: Inject,
|
@@ -265,9 +265,20 @@ class EventManagerPlugin {
|
|
265
265
|
}
|
266
266
|
}
|
267
267
|
|
268
|
+
/** The style elements attribute name used to set value of `APP_ID` token. */
|
269
|
+
const APP_ID_ATTRIBUTE_NAME = 'ng-app-id';
|
268
270
|
class SharedStylesHost {
|
269
|
-
constructor() {
|
270
|
-
this.
|
271
|
+
constructor(doc, appId, nonce, platformId = {}) {
|
272
|
+
this.doc = doc;
|
273
|
+
this.appId = appId;
|
274
|
+
this.nonce = nonce;
|
275
|
+
this.platformId = platformId;
|
276
|
+
// Maps all registered host nodes to a list of style nodes that have been added to the host node.
|
277
|
+
this.styleRef = new Map();
|
278
|
+
this.hostNodes = new Set();
|
279
|
+
this.styleNodesInDOM = this.collectServerRenderedStyles();
|
280
|
+
this.platformIsServer = isPlatformServer(platformId);
|
281
|
+
this.resetHostNodes();
|
271
282
|
}
|
272
283
|
addStyles(styles) {
|
273
284
|
for (const style of styles) {
|
@@ -280,50 +291,33 @@ class SharedStylesHost {
|
|
280
291
|
removeStyles(styles) {
|
281
292
|
for (const style of styles) {
|
282
293
|
const usageCount = this.changeUsageCount(style, -1);
|
283
|
-
if (usageCount
|
294
|
+
if (usageCount <= 0) {
|
284
295
|
this.onStyleRemoved(style);
|
285
296
|
}
|
286
297
|
}
|
287
298
|
}
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
changeUsageCount(style, delta) {
|
294
|
-
const map = this.usageCount;
|
295
|
-
let usage = map.get(style) ?? 0;
|
296
|
-
usage += delta;
|
297
|
-
if (usage > 0) {
|
298
|
-
map.set(style, usage);
|
299
|
+
ngOnDestroy() {
|
300
|
+
const styleNodesInDOM = this.styleNodesInDOM;
|
301
|
+
if (styleNodesInDOM) {
|
302
|
+
styleNodesInDOM.forEach((node) => node.remove());
|
303
|
+
styleNodesInDOM.clear();
|
299
304
|
}
|
300
|
-
|
301
|
-
|
305
|
+
for (const style of this.getAllStyles()) {
|
306
|
+
this.onStyleRemoved(style);
|
302
307
|
}
|
303
|
-
|
308
|
+
this.resetHostNodes();
|
304
309
|
}
|
305
|
-
|
310
|
+
addHost(hostNode) {
|
311
|
+
this.hostNodes.add(hostNode);
|
306
312
|
for (const style of this.getAllStyles()) {
|
307
|
-
this.
|
313
|
+
this.addStyleToHost(hostNode, style);
|
308
314
|
}
|
309
|
-
this.usageCount.clear();
|
310
315
|
}
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
}] });
|
317
|
-
class DomSharedStylesHost extends SharedStylesHost {
|
318
|
-
constructor(doc, appId) {
|
319
|
-
super();
|
320
|
-
this.doc = doc;
|
321
|
-
this.appId = appId;
|
322
|
-
// Maps all registered host nodes to a list of style nodes that have been added to the host node.
|
323
|
-
this.styleRef = new Map();
|
324
|
-
this.hostNodes = new Set();
|
325
|
-
this.styleNodesInDOM = this.collectServerRenderedStyles();
|
326
|
-
this.resetHostNodes();
|
316
|
+
removeHost(hostNode) {
|
317
|
+
this.hostNodes.delete(hostNode);
|
318
|
+
}
|
319
|
+
getAllStyles() {
|
320
|
+
return this.styleRef.keys();
|
327
321
|
}
|
328
322
|
onStyleAdded(style) {
|
329
323
|
for (const host of this.hostNodes) {
|
@@ -332,34 +326,14 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
332
326
|
}
|
333
327
|
onStyleRemoved(style) {
|
334
328
|
const styleRef = this.styleRef;
|
335
|
-
|
336
|
-
styleElements?.forEach(node => node.remove());
|
329
|
+
styleRef.get(style)?.elements?.forEach((node) => node.remove());
|
337
330
|
styleRef.delete(style);
|
338
331
|
}
|
339
|
-
ngOnDestroy() {
|
340
|
-
super.ngOnDestroy();
|
341
|
-
this.styleRef.clear();
|
342
|
-
this.resetHostNodes();
|
343
|
-
const styleNodesInDOM = this.styleNodesInDOM;
|
344
|
-
if (styleNodesInDOM) {
|
345
|
-
styleNodesInDOM.forEach(node => node.remove());
|
346
|
-
styleNodesInDOM.clear();
|
347
|
-
}
|
348
|
-
}
|
349
|
-
addHost(hostNode) {
|
350
|
-
this.hostNodes.add(hostNode);
|
351
|
-
for (const style of this.getAllStyles()) {
|
352
|
-
this.addStyleToHost(hostNode, style);
|
353
|
-
}
|
354
|
-
}
|
355
|
-
removeHost(hostNode) {
|
356
|
-
this.hostNodes.delete(hostNode);
|
357
|
-
}
|
358
332
|
collectServerRenderedStyles() {
|
359
|
-
const styles = this.doc.head?.querySelectorAll(`style[
|
333
|
+
const styles = this.doc.head?.querySelectorAll(`style[${APP_ID_ATTRIBUTE_NAME}="${this.appId}"]`);
|
360
334
|
if (styles?.length) {
|
361
335
|
const styleMap = new Map();
|
362
|
-
styles.forEach(style => {
|
336
|
+
styles.forEach((style) => {
|
363
337
|
if (style.textContent != null) {
|
364
338
|
styleMap.set(style.textContent, style);
|
365
339
|
}
|
@@ -368,13 +342,23 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
368
342
|
}
|
369
343
|
return null;
|
370
344
|
}
|
345
|
+
changeUsageCount(style, delta) {
|
346
|
+
const map = this.styleRef;
|
347
|
+
if (map.has(style)) {
|
348
|
+
const styleRefValue = map.get(style);
|
349
|
+
styleRefValue.usage += delta;
|
350
|
+
return styleRefValue.usage;
|
351
|
+
}
|
352
|
+
map.set(style, { usage: delta, elements: [] });
|
353
|
+
return delta;
|
354
|
+
}
|
371
355
|
getStyleElement(host, style) {
|
372
356
|
const styleNodesInDOM = this.styleNodesInDOM;
|
373
357
|
const styleEl = styleNodesInDOM?.get(style);
|
374
358
|
if (styleEl?.parentNode === host) {
|
375
359
|
// `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.
|
376
360
|
styleNodesInDOM.delete(style);
|
377
|
-
styleEl.removeAttribute(
|
361
|
+
styleEl.removeAttribute(APP_ID_ATTRIBUTE_NAME);
|
378
362
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
379
363
|
// This attribute is solely used for debugging purposes.
|
380
364
|
styleEl.setAttribute('ng-style-reused', '');
|
@@ -383,7 +367,14 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
383
367
|
}
|
384
368
|
else {
|
385
369
|
const styleEl = this.doc.createElement('style');
|
370
|
+
if (this.nonce) {
|
371
|
+
// Uses a keyed write to avoid issues with property minification.
|
372
|
+
styleEl['nonce'] = this.nonce;
|
373
|
+
}
|
386
374
|
styleEl.textContent = style;
|
375
|
+
if (this.platformIsServer) {
|
376
|
+
styleEl.setAttribute(APP_ID_ATTRIBUTE_NAME, this.appId);
|
377
|
+
}
|
387
378
|
return styleEl;
|
388
379
|
}
|
389
380
|
}
|
@@ -391,12 +382,12 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
391
382
|
const styleEl = this.getStyleElement(host, style);
|
392
383
|
host.appendChild(styleEl);
|
393
384
|
const styleRef = this.styleRef;
|
394
|
-
const styleElRef = styleRef.get(style);
|
385
|
+
const styleElRef = styleRef.get(style)?.elements;
|
395
386
|
if (styleElRef) {
|
396
387
|
styleElRef.push(styleEl);
|
397
388
|
}
|
398
389
|
else {
|
399
|
-
styleRef.set(style, [styleEl]);
|
390
|
+
styleRef.set(style, { elements: [styleEl], usage: 1 });
|
400
391
|
}
|
401
392
|
}
|
402
393
|
resetHostNodes() {
|
@@ -406,9 +397,9 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
406
397
|
hostNodes.add(this.doc.head);
|
407
398
|
}
|
408
399
|
}
|
409
|
-
|
410
|
-
|
411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
400
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
401
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: SharedStylesHost });
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: SharedStylesHost, decorators: [{
|
412
403
|
type: Injectable
|
413
404
|
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
414
405
|
type: Inject,
|
@@ -416,6 +407,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
|
|
416
407
|
}] }, { type: undefined, decorators: [{
|
417
408
|
type: Inject,
|
418
409
|
args: [APP_ID]
|
410
|
+
}] }, { type: undefined, decorators: [{
|
411
|
+
type: Inject,
|
412
|
+
args: [CSP_NONCE]
|
413
|
+
}, {
|
414
|
+
type: Optional
|
415
|
+
}] }, { type: undefined, decorators: [{
|
416
|
+
type: Inject,
|
417
|
+
args: [PLATFORM_ID]
|
419
418
|
}] }]; } });
|
420
419
|
|
421
420
|
const NAMESPACE_URIS = {
|
@@ -478,11 +477,12 @@ function decoratePreventDefault(eventHandler) {
|
|
478
477
|
};
|
479
478
|
}
|
480
479
|
class DomRendererFactory2 {
|
481
|
-
constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestory) {
|
480
|
+
constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestory, nonce) {
|
482
481
|
this.eventManager = eventManager;
|
483
482
|
this.sharedStylesHost = sharedStylesHost;
|
484
483
|
this.appId = appId;
|
485
484
|
this.removeStylesOnCompDestory = removeStylesOnCompDestory;
|
485
|
+
this.nonce = nonce;
|
486
486
|
this.rendererByCompId = new Map();
|
487
487
|
this.defaultRenderer = new DefaultDomRenderer2(eventManager);
|
488
488
|
}
|
@@ -513,7 +513,7 @@ class DomRendererFactory2 {
|
|
513
513
|
renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestory);
|
514
514
|
break;
|
515
515
|
case ViewEncapsulation.ShadowDom:
|
516
|
-
return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type);
|
516
|
+
return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type, this.nonce);
|
517
517
|
default:
|
518
518
|
renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestory);
|
519
519
|
break;
|
@@ -529,16 +529,21 @@ class DomRendererFactory2 {
|
|
529
529
|
begin() { }
|
530
530
|
end() { }
|
531
531
|
}
|
532
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
533
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
534
|
-
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.4", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: CSP_NONCE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
533
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomRendererFactory2 });
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
535
535
|
type: Injectable
|
536
|
-
}], ctorParameters: function () { return [{ type: EventManager }, { type:
|
536
|
+
}], ctorParameters: function () { return [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
|
537
537
|
type: Inject,
|
538
538
|
args: [APP_ID]
|
539
539
|
}] }, { type: undefined, decorators: [{
|
540
540
|
type: Inject,
|
541
541
|
args: [REMOVE_STYLES_ON_COMPONENT_DESTROY]
|
542
|
+
}] }, { type: undefined, decorators: [{
|
543
|
+
type: Inject,
|
544
|
+
args: [CSP_NONCE]
|
545
|
+
}, {
|
546
|
+
type: Optional
|
542
547
|
}] }]; } });
|
543
548
|
class DefaultDomRenderer2 {
|
544
549
|
constructor(eventManager) {
|
@@ -680,7 +685,7 @@ function isTemplateNode(node) {
|
|
680
685
|
return node.tagName === 'TEMPLATE' && node.content !== undefined;
|
681
686
|
}
|
682
687
|
class ShadowDomRenderer extends DefaultDomRenderer2 {
|
683
|
-
constructor(eventManager, sharedStylesHost, hostEl, component) {
|
688
|
+
constructor(eventManager, sharedStylesHost, hostEl, component, nonce) {
|
684
689
|
super(eventManager);
|
685
690
|
this.sharedStylesHost = sharedStylesHost;
|
686
691
|
this.hostEl = hostEl;
|
@@ -689,6 +694,10 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
|
|
689
694
|
const styles = shimStylesContent(component.id, component.styles);
|
690
695
|
for (const style of styles) {
|
691
696
|
const styleEl = document.createElement('style');
|
697
|
+
if (nonce) {
|
698
|
+
// Uses a keyed write to avoid issues with property minification.
|
699
|
+
styleEl['nonce'] = nonce;
|
700
|
+
}
|
692
701
|
styleEl.textContent = style;
|
693
702
|
this.shadowRoot.appendChild(styleEl);
|
694
703
|
}
|
@@ -770,9 +779,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
770
779
|
return target.removeEventListener(eventName, callback);
|
771
780
|
}
|
772
781
|
}
|
773
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
774
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
775
|
-
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.4", 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.4", ngImport: i0, type: DomEventsPlugin });
|
784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
776
785
|
type: Injectable
|
777
786
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
778
787
|
type: Inject,
|
@@ -949,9 +958,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
949
958
|
}
|
950
959
|
}
|
951
960
|
}
|
952
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
953
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
961
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
962
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: KeyEventsPlugin });
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
955
964
|
type: Injectable
|
956
965
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
957
966
|
type: Inject,
|
@@ -1117,13 +1126,9 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1117
1126
|
multi: true,
|
1118
1127
|
deps: [DOCUMENT, NgZone, PLATFORM_ID]
|
1119
1128
|
},
|
1120
|
-
{ provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
|
1121
|
-
|
1122
|
-
useClass: DomRendererFactory2,
|
1123
|
-
deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]
|
1124
|
-
},
|
1129
|
+
{ provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
|
1130
|
+
DomRendererFactory2, SharedStylesHost, EventManager,
|
1125
1131
|
{ provide: RendererFactory2, useExisting: DomRendererFactory2 },
|
1126
|
-
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost }, DomSharedStylesHost, EventManager,
|
1127
1132
|
{ provide: XhrFactory, useClass: BrowserXhr, deps: [] },
|
1128
1133
|
NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
|
1129
1134
|
];
|
@@ -1162,10 +1167,10 @@ class BrowserModule {
|
|
1162
1167
|
};
|
1163
1168
|
}
|
1164
1169
|
}
|
1165
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1166
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1167
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1170
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1171
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1172
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
|
1173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserModule, decorators: [{
|
1169
1174
|
type: NgModule,
|
1170
1175
|
args: [{
|
1171
1176
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
@@ -1336,9 +1341,9 @@ class Meta {
|
|
1336
1341
|
return META_KEYS_MAP[prop] || prop;
|
1337
1342
|
}
|
1338
1343
|
}
|
1339
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1340
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1344
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1345
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Meta, decorators: [{
|
1342
1347
|
type: Injectable,
|
1343
1348
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1344
1349
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1386,9 +1391,9 @@ class Title {
|
|
1386
1391
|
this._doc.title = newTitle || '';
|
1387
1392
|
}
|
1388
1393
|
}
|
1389
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1390
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1394
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1395
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: Title, decorators: [{
|
1392
1397
|
type: Injectable,
|
1393
1398
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1394
1399
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1513,10 +1518,10 @@ function disableDebugTools() {
|
|
1513
1518
|
*/
|
1514
1519
|
class BrowserTransferStateModule {
|
1515
1520
|
}
|
1516
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1517
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1518
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1521
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1522
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule });
|
1523
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule });
|
1524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1520
1525
|
type: NgModule,
|
1521
1526
|
args: [{}]
|
1522
1527
|
}] });
|
@@ -1676,9 +1681,9 @@ class HammerGestureConfig {
|
|
1676
1681
|
return mc;
|
1677
1682
|
}
|
1678
1683
|
}
|
1679
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1680
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1684
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1685
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGestureConfig });
|
1686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1682
1687
|
type: Injectable
|
1683
1688
|
}] });
|
1684
1689
|
/**
|
@@ -1774,9 +1779,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1774
1779
|
return this._config.events.indexOf(eventName) > -1;
|
1775
1780
|
}
|
1776
1781
|
}
|
1777
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1778
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1782
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1783
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin });
|
1784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1780
1785
|
type: Injectable
|
1781
1786
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1782
1787
|
type: Inject,
|
@@ -1803,9 +1808,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
|
|
1803
1808
|
*/
|
1804
1809
|
class HammerModule {
|
1805
1810
|
}
|
1806
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1807
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
1808
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
1811
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1812
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule });
|
1813
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule, providers: [
|
1809
1814
|
{
|
1810
1815
|
provide: EVENT_MANAGER_PLUGINS,
|
1811
1816
|
useClass: HammerGesturesPlugin,
|
@@ -1814,7 +1819,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1814
1819
|
},
|
1815
1820
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1816
1821
|
] });
|
1817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: HammerModule, decorators: [{
|
1818
1823
|
type: NgModule,
|
1819
1824
|
args: [{
|
1820
1825
|
providers: [
|
@@ -1862,9 +1867,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
|
|
1862
1867
|
*/
|
1863
1868
|
class DomSanitizer {
|
1864
1869
|
}
|
1865
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1866
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1870
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1871
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
1872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizer, decorators: [{
|
1868
1873
|
type: Injectable,
|
1869
1874
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1870
1875
|
}] });
|
@@ -1927,9 +1932,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1927
1932
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1928
1933
|
}
|
1929
1934
|
}
|
1930
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
1931
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
1932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
1935
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1936
|
+
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
1937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1933
1938
|
type: Injectable,
|
1934
1939
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1935
1940
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1945,7 +1950,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
|
|
1945
1950
|
/**
|
1946
1951
|
* @publicApi
|
1947
1952
|
*/
|
1948
|
-
const VERSION = new Version('16.0.0-next.
|
1953
|
+
const VERSION = new Version('16.0.0-next.4');
|
1949
1954
|
|
1950
1955
|
// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
|
1951
1956
|
|
@@ -1962,5 +1967,5 @@ const VERSION = new Version('16.0.0-next.3');
|
|
1962
1967
|
* Generated bundle index. Do not edit.
|
1963
1968
|
*/
|
1964
1969
|
|
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,
|
1970
|
+
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, 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 };
|
1966
1971
|
//# sourceMappingURL=platform-browser.mjs.map
|