@angular/platform-browser 16.0.0-next.3 → 16.0.0-next.5

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.
Files changed (65) hide show
  1. package/animations/index.d.ts +1 -1
  2. package/{esm2020 → esm2022}/animations/src/animation_builder.mjs +4 -4
  3. package/{esm2020 → esm2022}/animations/src/animation_renderer.mjs +4 -4
  4. package/{esm2020 → esm2022}/animations/src/module.mjs +9 -9
  5. package/{esm2020 → esm2022}/animations/src/providers.mjs +4 -4
  6. package/esm2022/src/browser/browser_adapter.mjs +93 -0
  7. package/{esm2020 → esm2022}/src/browser/generic_browser_adapter.mjs +1 -1
  8. package/{esm2020 → esm2022}/src/browser/meta.mjs +4 -4
  9. package/{esm2020 → esm2022}/src/browser/title.mjs +4 -4
  10. package/{esm2020 → esm2022}/src/browser/transfer_state_module.mjs +5 -5
  11. package/{esm2020 → esm2022}/src/browser/xhr.mjs +4 -4
  12. package/esm2022/src/browser.mjs +238 -0
  13. package/esm2022/src/dom/dom_renderer.mjs +357 -0
  14. package/{esm2020 → esm2022}/src/dom/events/dom_events.mjs +4 -4
  15. package/{esm2020 → esm2022}/src/dom/events/event_manager.mjs +4 -4
  16. package/{esm2020 → esm2022}/src/dom/events/hammer_gestures.mjs +19 -19
  17. package/{esm2020 → esm2022}/src/dom/events/key_events.mjs +4 -4
  18. package/esm2022/src/dom/shared_styles_host.mjs +162 -0
  19. package/esm2022/src/platform-browser.mjs +60 -0
  20. package/{esm2020 → esm2022}/src/private_export.mjs +2 -2
  21. package/{esm2020 → esm2022}/src/security/dom_sanitization_service.mjs +7 -7
  22. package/{esm2020 → esm2022}/src/version.mjs +1 -1
  23. package/{esm2020 → esm2022}/testing/src/browser.mjs +9 -9
  24. package/{fesm2020 → fesm2022}/animations.mjs +18 -18
  25. package/fesm2022/animations.mjs.map +1 -0
  26. package/{fesm2020 → fesm2022}/platform-browser.mjs +181 -141
  27. package/fesm2022/platform-browser.mjs.map +1 -0
  28. package/{fesm2015 → fesm2022}/testing.mjs +10 -10
  29. package/{fesm2015 → fesm2022}/testing.mjs.map +1 -1
  30. package/index.d.ts +81 -35
  31. package/package.json +14 -24
  32. package/testing/index.d.ts +1 -1
  33. package/esm2020/src/browser/browser_adapter.mjs +0 -93
  34. package/esm2020/src/browser.mjs +0 -241
  35. package/esm2020/src/dom/dom_renderer.mjs +0 -349
  36. package/esm2020/src/dom/shared_styles_host.mjs +0 -165
  37. package/esm2020/src/platform-browser.mjs +0 -22
  38. package/fesm2015/animations.mjs +0 -548
  39. package/fesm2015/animations.mjs.map +0 -1
  40. package/fesm2015/platform-browser.mjs +0 -1990
  41. package/fesm2015/platform-browser.mjs.map +0 -1
  42. package/fesm2020/animations.mjs.map +0 -1
  43. package/fesm2020/platform-browser.mjs.map +0 -1
  44. package/fesm2020/testing.mjs +0 -232
  45. package/fesm2020/testing.mjs.map +0 -1
  46. /package/{esm2020 → esm2022}/animations/animations.mjs +0 -0
  47. /package/{esm2020 → esm2022}/animations/index.mjs +0 -0
  48. /package/{esm2020 → esm2022}/animations/public_api.mjs +0 -0
  49. /package/{esm2020 → esm2022}/animations/src/animations.mjs +0 -0
  50. /package/{esm2020 → esm2022}/animations/src/private_export.mjs +0 -0
  51. /package/{esm2020 → esm2022}/index.mjs +0 -0
  52. /package/{esm2020 → esm2022}/platform-browser.mjs +0 -0
  53. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  54. /package/{esm2020 → esm2022}/src/browser/testability.mjs +0 -0
  55. /package/{esm2020 → esm2022}/src/browser/tools/browser.mjs +0 -0
  56. /package/{esm2020 → esm2022}/src/browser/tools/common_tools.mjs +0 -0
  57. /package/{esm2020 → esm2022}/src/browser/tools/tools.mjs +0 -0
  58. /package/{esm2020 → esm2022}/src/dom/debug/by.mjs +0 -0
  59. /package/{esm2020 → esm2022}/src/dom/util.mjs +0 -0
  60. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  61. /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
  62. /package/{esm2020 → esm2022}/testing/src/browser_util.mjs +0 -0
  63. /package/{esm2020 → esm2022}/testing/src/matchers.mjs +0 -0
  64. /package/{esm2020 → esm2022}/testing/src/testing.mjs +0 -0
  65. /package/{esm2020 → esm2022}/testing/testing.mjs +0 -0
@@ -1,13 +1,12 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.3
2
+ * @license Angular v16.0.0-next.5
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, 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
- 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';
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, makeStateKey as makeStateKey$1, TransferState as TransferState$1 } from '@angular/core';
9
+ import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
11
10
  export { ɵgetDOM } from '@angular/common';
12
11
 
13
12
  /**
@@ -163,10 +162,10 @@ class BrowserXhr {
163
162
  build() {
164
163
  return new XMLHttpRequest();
165
164
  }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
166
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserXhr }); }
166
167
  }
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: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserXhr, decorators: [{
170
169
  type: Injectable
171
170
  }] });
172
171
 
@@ -243,10 +242,10 @@ class EventManager {
243
242
  }
244
243
  throw new Error(`No event manager plugin found for event ${eventName}`);
245
244
  }
245
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
246
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: EventManager }); }
246
247
  }
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: [{
248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: EventManager, decorators: [{
250
249
  type: Injectable
251
250
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
252
251
  type: Inject,
@@ -265,9 +264,20 @@ class EventManagerPlugin {
265
264
  }
266
265
  }
267
266
 
267
+ /** The style elements attribute name used to set value of `APP_ID` token. */
268
+ const APP_ID_ATTRIBUTE_NAME = 'ng-app-id';
268
269
  class SharedStylesHost {
269
- constructor() {
270
- this.usageCount = new Map();
270
+ constructor(doc, appId, nonce, platformId = {}) {
271
+ this.doc = doc;
272
+ this.appId = appId;
273
+ this.nonce = nonce;
274
+ this.platformId = platformId;
275
+ // Maps all registered host nodes to a list of style nodes that have been added to the host node.
276
+ this.styleRef = new Map();
277
+ this.hostNodes = new Set();
278
+ this.styleNodesInDOM = this.collectServerRenderedStyles();
279
+ this.platformIsServer = isPlatformServer(platformId);
280
+ this.resetHostNodes();
271
281
  }
272
282
  addStyles(styles) {
273
283
  for (const style of styles) {
@@ -280,50 +290,33 @@ class SharedStylesHost {
280
290
  removeStyles(styles) {
281
291
  for (const style of styles) {
282
292
  const usageCount = this.changeUsageCount(style, -1);
283
- if (usageCount === 0) {
293
+ if (usageCount <= 0) {
284
294
  this.onStyleRemoved(style);
285
295
  }
286
296
  }
287
297
  }
288
- onStyleRemoved(style) { }
289
- onStyleAdded(style) { }
290
- getAllStyles() {
291
- return this.usageCount.keys();
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);
298
+ ngOnDestroy() {
299
+ const styleNodesInDOM = this.styleNodesInDOM;
300
+ if (styleNodesInDOM) {
301
+ styleNodesInDOM.forEach((node) => node.remove());
302
+ styleNodesInDOM.clear();
299
303
  }
300
- else {
301
- map.delete(style);
304
+ for (const style of this.getAllStyles()) {
305
+ this.onStyleRemoved(style);
302
306
  }
303
- return usage;
307
+ this.resetHostNodes();
304
308
  }
305
- ngOnDestroy() {
309
+ addHost(hostNode) {
310
+ this.hostNodes.add(hostNode);
306
311
  for (const style of this.getAllStyles()) {
307
- this.onStyleRemoved(style);
312
+ this.addStyleToHost(hostNode, style);
308
313
  }
309
- this.usageCount.clear();
310
314
  }
311
- }
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: [{
315
- type: Injectable
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();
315
+ removeHost(hostNode) {
316
+ this.hostNodes.delete(hostNode);
317
+ }
318
+ getAllStyles() {
319
+ return this.styleRef.keys();
327
320
  }
328
321
  onStyleAdded(style) {
329
322
  for (const host of this.hostNodes) {
@@ -332,34 +325,14 @@ class DomSharedStylesHost extends SharedStylesHost {
332
325
  }
333
326
  onStyleRemoved(style) {
334
327
  const styleRef = this.styleRef;
335
- const styleElements = styleRef.get(style);
336
- styleElements?.forEach(node => node.remove());
328
+ styleRef.get(style)?.elements?.forEach((node) => node.remove());
337
329
  styleRef.delete(style);
338
330
  }
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
331
  collectServerRenderedStyles() {
359
- const styles = this.doc.head?.querySelectorAll(`style[ng-app="${this.appId}"]`);
332
+ const styles = this.doc.head?.querySelectorAll(`style[${APP_ID_ATTRIBUTE_NAME}="${this.appId}"]`);
360
333
  if (styles?.length) {
361
334
  const styleMap = new Map();
362
- styles.forEach(style => {
335
+ styles.forEach((style) => {
363
336
  if (style.textContent != null) {
364
337
  styleMap.set(style.textContent, style);
365
338
  }
@@ -368,13 +341,23 @@ class DomSharedStylesHost extends SharedStylesHost {
368
341
  }
369
342
  return null;
370
343
  }
344
+ changeUsageCount(style, delta) {
345
+ const map = this.styleRef;
346
+ if (map.has(style)) {
347
+ const styleRefValue = map.get(style);
348
+ styleRefValue.usage += delta;
349
+ return styleRefValue.usage;
350
+ }
351
+ map.set(style, { usage: delta, elements: [] });
352
+ return delta;
353
+ }
371
354
  getStyleElement(host, style) {
372
355
  const styleNodesInDOM = this.styleNodesInDOM;
373
356
  const styleEl = styleNodesInDOM?.get(style);
374
357
  if (styleEl?.parentNode === host) {
375
358
  // `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.
376
359
  styleNodesInDOM.delete(style);
377
- styleEl.removeAttribute('ng-app');
360
+ styleEl.removeAttribute(APP_ID_ATTRIBUTE_NAME);
378
361
  if (typeof ngDevMode === 'undefined' || ngDevMode) {
379
362
  // This attribute is solely used for debugging purposes.
380
363
  styleEl.setAttribute('ng-style-reused', '');
@@ -383,7 +366,13 @@ class DomSharedStylesHost extends SharedStylesHost {
383
366
  }
384
367
  else {
385
368
  const styleEl = this.doc.createElement('style');
369
+ if (this.nonce) {
370
+ styleEl.setAttribute('nonce', this.nonce);
371
+ }
386
372
  styleEl.textContent = style;
373
+ if (this.platformIsServer) {
374
+ styleEl.setAttribute(APP_ID_ATTRIBUTE_NAME, this.appId);
375
+ }
387
376
  return styleEl;
388
377
  }
389
378
  }
@@ -391,12 +380,12 @@ class DomSharedStylesHost extends SharedStylesHost {
391
380
  const styleEl = this.getStyleElement(host, style);
392
381
  host.appendChild(styleEl);
393
382
  const styleRef = this.styleRef;
394
- const styleElRef = styleRef.get(style);
383
+ const styleElRef = styleRef.get(style)?.elements;
395
384
  if (styleElRef) {
396
385
  styleElRef.push(styleEl);
397
386
  }
398
387
  else {
399
- styleRef.set(style, [styleEl]);
388
+ styleRef.set(style, { elements: [styleEl], usage: 1 });
400
389
  }
401
390
  }
402
391
  resetHostNodes() {
@@ -405,10 +394,10 @@ class DomSharedStylesHost extends SharedStylesHost {
405
394
  // Re-add the head element back since this is the default host.
406
395
  hostNodes.add(this.doc.head);
407
396
  }
397
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
398
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: SharedStylesHost }); }
408
399
  }
409
- DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });
410
- DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost });
411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: DomSharedStylesHost, decorators: [{
400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: SharedStylesHost, decorators: [{
412
401
  type: Injectable
413
402
  }], ctorParameters: function () { return [{ type: Document, decorators: [{
414
403
  type: Inject,
@@ -416,6 +405,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
416
405
  }] }, { type: undefined, decorators: [{
417
406
  type: Inject,
418
407
  args: [APP_ID]
408
+ }] }, { type: undefined, decorators: [{
409
+ type: Inject,
410
+ args: [CSP_NONCE]
411
+ }, {
412
+ type: Optional
413
+ }] }, { type: undefined, decorators: [{
414
+ type: Inject,
415
+ args: [PLATFORM_ID]
419
416
  }] }]; } });
420
417
 
421
418
  const NAMESPACE_URIS = {
@@ -427,7 +424,6 @@ const NAMESPACE_URIS = {
427
424
  'math': 'http://www.w3.org/1998/MathML/',
428
425
  };
429
426
  const COMPONENT_REGEX = /%COMP%/g;
430
- const NG_DEV_MODE$1 = typeof ngDevMode === 'undefined' || !!ngDevMode;
431
427
  const COMPONENT_VARIABLE = '%COMP%';
432
428
  const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
433
429
  const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
@@ -478,11 +474,12 @@ function decoratePreventDefault(eventHandler) {
478
474
  };
479
475
  }
480
476
  class DomRendererFactory2 {
481
- constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestory) {
477
+ constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestory, nonce) {
482
478
  this.eventManager = eventManager;
483
479
  this.sharedStylesHost = sharedStylesHost;
484
480
  this.appId = appId;
485
481
  this.removeStylesOnCompDestory = removeStylesOnCompDestory;
482
+ this.nonce = nonce;
486
483
  this.rendererByCompId = new Map();
487
484
  this.defaultRenderer = new DefaultDomRenderer2(eventManager);
488
485
  }
@@ -513,7 +510,7 @@ class DomRendererFactory2 {
513
510
  renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestory);
514
511
  break;
515
512
  case ViewEncapsulation.ShadowDom:
516
- return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type);
513
+ return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type, this.nonce);
517
514
  default:
518
515
  renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestory);
519
516
  break;
@@ -528,17 +525,22 @@ class DomRendererFactory2 {
528
525
  }
529
526
  begin() { }
530
527
  end() { }
528
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", 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 }); }
529
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomRendererFactory2 }); }
531
530
  }
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: [{
531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomRendererFactory2, decorators: [{
535
532
  type: Injectable
536
- }], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
533
+ }], ctorParameters: function () { return [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
537
534
  type: Inject,
538
535
  args: [APP_ID]
539
536
  }] }, { type: undefined, decorators: [{
540
537
  type: Inject,
541
538
  args: [REMOVE_STYLES_ON_COMPONENT_DESTROY]
539
+ }] }, { type: undefined, decorators: [{
540
+ type: Inject,
541
+ args: [CSP_NONCE]
542
+ }, {
543
+ type: Optional
542
544
  }] }]; } });
543
545
  class DefaultDomRenderer2 {
544
546
  constructor(eventManager) {
@@ -654,14 +656,14 @@ class DefaultDomRenderer2 {
654
656
  }
655
657
  }
656
658
  setProperty(el, name, value) {
657
- NG_DEV_MODE$1 && checkNoSyntheticProp(name, 'property');
659
+ (typeof ngDevMode === 'undefined' || ngDevMode) && checkNoSyntheticProp(name, 'property');
658
660
  el[name] = value;
659
661
  }
660
662
  setValue(node, value) {
661
663
  node.nodeValue = value;
662
664
  }
663
665
  listen(target, event, callback) {
664
- NG_DEV_MODE$1 && checkNoSyntheticProp(event, 'listener');
666
+ (typeof ngDevMode === 'undefined' || ngDevMode) && checkNoSyntheticProp(event, 'listener');
665
667
  if (typeof target === 'string') {
666
668
  return this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback));
667
669
  }
@@ -680,7 +682,7 @@ function isTemplateNode(node) {
680
682
  return node.tagName === 'TEMPLATE' && node.content !== undefined;
681
683
  }
682
684
  class ShadowDomRenderer extends DefaultDomRenderer2 {
683
- constructor(eventManager, sharedStylesHost, hostEl, component) {
685
+ constructor(eventManager, sharedStylesHost, hostEl, component, nonce) {
684
686
  super(eventManager);
685
687
  this.sharedStylesHost = sharedStylesHost;
686
688
  this.hostEl = hostEl;
@@ -689,6 +691,9 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
689
691
  const styles = shimStylesContent(component.id, component.styles);
690
692
  for (const style of styles) {
691
693
  const styleEl = document.createElement('style');
694
+ if (nonce) {
695
+ styleEl.setAttribute('nonce', nonce);
696
+ }
692
697
  styleEl.textContent = style;
693
698
  this.shadowRoot.appendChild(styleEl);
694
699
  }
@@ -769,10 +774,10 @@ class DomEventsPlugin extends EventManagerPlugin {
769
774
  removeEventListener(target, eventName, callback) {
770
775
  return target.removeEventListener(eventName, callback);
771
776
  }
777
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
778
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomEventsPlugin }); }
772
779
  }
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: [{
780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomEventsPlugin, decorators: [{
776
781
  type: Injectable
777
782
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
778
783
  type: Inject,
@@ -948,17 +953,16 @@ class KeyEventsPlugin extends EventManagerPlugin {
948
953
  return keyName;
949
954
  }
950
955
  }
956
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
957
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: KeyEventsPlugin }); }
951
958
  }
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: [{
959
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: KeyEventsPlugin, decorators: [{
955
960
  type: Injectable
956
961
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
957
962
  type: Inject,
958
963
  args: [DOCUMENT]
959
964
  }] }]; } });
960
965
 
961
- const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
962
966
  /**
963
967
  * Bootstraps an instance of an Angular application and renders a standalone component as the
964
968
  * application's root component. More information about standalone components can be found in [this
@@ -1091,7 +1095,7 @@ const platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_
1091
1095
  * `BrowserModule` presence itself, since the standalone-based bootstrap just imports
1092
1096
  * `BrowserModule` providers without referencing the module itself.
1093
1097
  */
1094
- const BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(NG_DEV_MODE ? 'BrowserModule Providers Marker' : '');
1098
+ const BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken((typeof ngDevMode === 'undefined' || ngDevMode) ? 'BrowserModule Providers Marker' : '');
1095
1099
  const TESTABILITY_PROVIDERS = [
1096
1100
  {
1097
1101
  provide: ɵTESTABILITY_GETTER,
@@ -1117,15 +1121,13 @@ const BROWSER_MODULE_PROVIDERS = [
1117
1121
  multi: true,
1118
1122
  deps: [DOCUMENT, NgZone, PLATFORM_ID]
1119
1123
  },
1120
- { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] }, {
1121
- provide: DomRendererFactory2,
1122
- useClass: DomRendererFactory2,
1123
- deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]
1124
- },
1124
+ { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
1125
+ DomRendererFactory2, SharedStylesHost, EventManager,
1125
1126
  { provide: RendererFactory2, useExisting: DomRendererFactory2 },
1126
- { provide: SharedStylesHost, useExisting: DomSharedStylesHost }, DomSharedStylesHost, EventManager,
1127
1127
  { provide: XhrFactory, useClass: BrowserXhr, deps: [] },
1128
- NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []
1128
+ (typeof ngDevMode === 'undefined' || ngDevMode) ?
1129
+ { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } :
1130
+ []
1129
1131
  ];
1130
1132
  /**
1131
1133
  * Exports required infrastructure for all Angular apps.
@@ -1138,7 +1140,7 @@ const BROWSER_MODULE_PROVIDERS = [
1138
1140
  */
1139
1141
  class BrowserModule {
1140
1142
  constructor(providersAlreadyPresent) {
1141
- if (NG_DEV_MODE && providersAlreadyPresent) {
1143
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) && providersAlreadyPresent) {
1142
1144
  throw new Error(`Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
1143
1145
  `to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
1144
1146
  }
@@ -1161,11 +1163,11 @@ class BrowserModule {
1161
1163
  ],
1162
1164
  };
1163
1165
  }
1166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
1167
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }
1168
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }
1164
1169
  }
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: [{
1170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserModule, decorators: [{
1169
1171
  type: NgModule,
1170
1172
  args: [{
1171
1173
  providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
@@ -1335,10 +1337,10 @@ class Meta {
1335
1337
  _getMetaKeyMap(prop) {
1336
1338
  return META_KEYS_MAP[prop] || prop;
1337
1339
  }
1340
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1341
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] }); }
1338
1342
  }
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: [{
1343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: Meta, decorators: [{
1342
1344
  type: Injectable,
1343
1345
  args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
1344
1346
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1385,10 +1387,10 @@ class Title {
1385
1387
  setTitle(newTitle) {
1386
1388
  this._doc.title = newTitle || '';
1387
1389
  }
1390
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1391
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] }); }
1388
1392
  }
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: [{
1393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: Title, decorators: [{
1392
1394
  type: Injectable,
1393
1395
  args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
1394
1396
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1512,11 +1514,11 @@ function disableDebugTools() {
1512
1514
  * this module.
1513
1515
  */
1514
1516
  class BrowserTransferStateModule {
1517
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1518
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserTransferStateModule }); }
1519
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserTransferStateModule }); }
1515
1520
  }
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: [{
1521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1520
1522
  type: NgModule,
1521
1523
  args: [{}]
1522
1524
  }] });
@@ -1675,10 +1677,10 @@ class HammerGestureConfig {
1675
1677
  }
1676
1678
  return mc;
1677
1679
  }
1680
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1681
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerGestureConfig }); }
1678
1682
  }
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: [{
1683
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerGestureConfig, decorators: [{
1682
1684
  type: Injectable
1683
1685
  }] });
1684
1686
  /**
@@ -1773,10 +1775,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1773
1775
  isCustomEvent(eventName) {
1774
1776
  return this._config.events.indexOf(eventName) > -1;
1775
1777
  }
1778
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1779
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerGesturesPlugin }); }
1776
1780
  }
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: [{
1781
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1780
1782
  type: Injectable
1781
1783
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1782
1784
  type: Inject,
@@ -1802,19 +1804,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
1802
1804
  * @publicApi
1803
1805
  */
1804
1806
  class HammerModule {
1807
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1808
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerModule }); }
1809
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerModule, providers: [
1810
+ {
1811
+ provide: EVENT_MANAGER_PLUGINS,
1812
+ useClass: HammerGesturesPlugin,
1813
+ multi: true,
1814
+ deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]
1815
+ },
1816
+ { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1817
+ ] }); }
1805
1818
  }
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: [
1809
- {
1810
- provide: EVENT_MANAGER_PLUGINS,
1811
- useClass: HammerGesturesPlugin,
1812
- multi: true,
1813
- deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]
1814
- },
1815
- { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1816
- ] });
1817
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: HammerModule, decorators: [{
1819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: HammerModule, decorators: [{
1818
1820
  type: NgModule,
1819
1821
  args: [{
1820
1822
  providers: [
@@ -1861,10 +1863,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
1861
1863
  * @publicApi
1862
1864
  */
1863
1865
  class DomSanitizer {
1866
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1867
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) }); }
1864
1868
  }
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: [{
1869
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomSanitizer, decorators: [{
1868
1870
  type: Injectable,
1869
1871
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
1870
1872
  }] });
@@ -1926,10 +1928,10 @@ class DomSanitizerImpl extends DomSanitizer {
1926
1928
  bypassSecurityTrustResourceUrl(value) {
1927
1929
  return ɵbypassSanitizationTrustResourceUrl(value);
1928
1930
  }
1931
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1932
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] }); }
1929
1933
  }
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: [{
1934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.5", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1933
1935
  type: Injectable,
1934
1936
  args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
1935
1937
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1945,9 +1947,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3",
1945
1947
  /**
1946
1948
  * @publicApi
1947
1949
  */
1948
- const VERSION = new Version('16.0.0-next.3');
1950
+ const VERSION = new Version('16.0.0-next.5');
1949
1951
 
1950
1952
  // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
1953
+ /**
1954
+ * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
1955
+ *
1956
+ * Example:
1957
+ *
1958
+ * ```
1959
+ * const COUNTER_KEY = makeStateKey<number>('counter');
1960
+ * let value = 10;
1961
+ *
1962
+ * transferState.set(COUNTER_KEY, value);
1963
+ * ```
1964
+ *
1965
+ * @publicApi
1966
+ * @deprecated `makeStateKey` has moved, please import `makeStateKey` from `@angular/core` instead.
1967
+ */
1968
+ // The below is a workaround to add a deprecated message.
1969
+ const makeStateKey = makeStateKey$1;
1970
+ /**
1971
+ *
1972
+ * A key value store that is transferred from the application on the server side to the application
1973
+ * on the client side.
1974
+ *
1975
+ * The `TransferState` is available as an injectable token.
1976
+ * On the client, just inject this token using DI and use it, it will be lazily initialized.
1977
+ * On the server it's already included if `renderApplication` function is used. Otherwise, import
1978
+ * the `ServerTransferStateModule` module to make the `TransferState` available.
1979
+ *
1980
+ * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
1981
+ * boolean, number, string, null and non-class objects will be serialized and deserialized in a
1982
+ * non-lossy manner.
1983
+ *
1984
+ * @publicApi
1985
+ *
1986
+ * @deprecated `TransferState` has moved, please import `TransferState` from `@angular/core`
1987
+ * instead.
1988
+ */
1989
+ // The below is a workaround to add a deprecated message.
1990
+ const TransferState = TransferState$1;
1951
1991
 
1952
1992
  /**
1953
1993
  * @module
@@ -1962,5 +2002,5 @@ const VERSION = new Version('16.0.0-next.3');
1962
2002
  * Generated bundle index. Do not edit.
1963
2003
  */
1964
2004
 
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 };
2005
+ export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, 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
2006
  //# sourceMappingURL=platform-browser.mjs.map