@angular/platform-browser 16.0.0-next.0 → 16.0.0-next.2

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 (39) hide show
  1. package/animations/index.d.ts +1 -1
  2. package/esm2020/animations/src/animation_builder.mjs +6 -5
  3. package/esm2020/animations/src/animation_renderer.mjs +6 -5
  4. package/esm2020/animations/src/module.mjs +13 -11
  5. package/esm2020/animations/src/providers.mjs +6 -5
  6. package/esm2020/src/browser/meta.mjs +6 -5
  7. package/esm2020/src/browser/title.mjs +6 -5
  8. package/esm2020/src/browser/transfer_state_module.mjs +28 -0
  9. package/esm2020/src/browser/xhr.mjs +6 -5
  10. package/esm2020/src/browser.mjs +9 -7
  11. package/esm2020/src/dom/dom_renderer.mjs +6 -5
  12. package/esm2020/src/dom/events/dom_events.mjs +6 -5
  13. package/esm2020/src/dom/events/event_manager.mjs +9 -6
  14. package/esm2020/src/dom/events/hammer_gestures.mjs +17 -14
  15. package/esm2020/src/dom/events/key_events.mjs +6 -5
  16. package/esm2020/src/dom/shared_styles_host.mjs +11 -9
  17. package/esm2020/src/dom/util.mjs +1 -9
  18. package/esm2020/src/platform-browser.mjs +4 -2
  19. package/esm2020/src/private_export.mjs +1 -2
  20. package/esm2020/src/security/dom_sanitization_service.mjs +11 -9
  21. package/esm2020/src/version.mjs +1 -1
  22. package/esm2020/testing/src/browser.mjs +7 -6
  23. package/fesm2015/animations.mjs +18 -18
  24. package/fesm2015/animations.mjs.map +1 -1
  25. package/fesm2015/platform-browser.mjs +64 -214
  26. package/fesm2015/platform-browser.mjs.map +1 -1
  27. package/fesm2015/testing.mjs +5 -5
  28. package/fesm2015/testing.mjs.map +1 -1
  29. package/fesm2020/animations.mjs +18 -18
  30. package/fesm2020/animations.mjs.map +1 -1
  31. package/fesm2020/platform-browser.mjs +64 -214
  32. package/fesm2020/platform-browser.mjs.map +1 -1
  33. package/fesm2020/testing.mjs +5 -5
  34. package/fesm2020/testing.mjs.map +1 -1
  35. package/index.d.ts +12 -92
  36. package/package.json +5 -5
  37. package/testing/index.d.ts +1 -1
  38. package/esm2020/src/browser/transfer_state.mjs +0 -176
  39. package/esm2020/src/dom/debug/ng_probe.mjs +0 -32
@@ -1,13 +1,14 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.0
2
+ * @license Angular v16.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
+ import * as i0 from '@angular/core';
8
+ import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, 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, Version } from '@angular/core';
9
+ export { ɵTransferState as TransferState, ɵmakeStateKey as makeStateKey } from '@angular/core';
7
10
  import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
8
11
  export { ɵgetDOM } from '@angular/common';
9
- import * as i0 from '@angular/core';
10
- import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, 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, inject, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';
11
12
 
12
13
  /**
13
14
  * Provides DOM operations in any browser environment.
@@ -190,9 +191,9 @@ class BrowserXhr {
190
191
  return new XMLHttpRequest();
191
192
  }
192
193
  }
193
- BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
194
- BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserXhr });
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserXhr, decorators: [{
194
+ BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
195
+ BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserXhr });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserXhr, decorators: [{
196
197
  type: Injectable
197
198
  }] });
198
199
 
@@ -215,7 +216,9 @@ class EventManager {
215
216
  constructor(plugins, _zone) {
216
217
  this._zone = _zone;
217
218
  this._eventNameToPlugin = new Map();
218
- plugins.forEach(p => p.manager = this);
219
+ plugins.forEach((plugin) => {
220
+ plugin.manager = this;
221
+ });
219
222
  this._plugins = plugins.slice().reverse();
220
223
  }
221
224
  /**
@@ -268,9 +271,9 @@ class EventManager {
268
271
  throw new Error(`No event manager plugin found for event ${eventName}`);
269
272
  }
270
273
  }
271
- EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
272
- EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: EventManager });
273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: EventManager, decorators: [{
274
+ EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
275
+ EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: EventManager });
276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: EventManager, decorators: [{
274
277
  type: Injectable
275
278
  }], ctorParameters: function () {
276
279
  return [{ type: undefined, decorators: [{
@@ -336,9 +339,9 @@ class SharedStylesHost {
336
339
  this.usageCount.clear();
337
340
  }
338
341
  }
339
- SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
340
- SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: SharedStylesHost });
341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: SharedStylesHost, decorators: [{
342
+ SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
343
+ SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost });
344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost, decorators: [{
342
345
  type: Injectable
343
346
  }] });
344
347
  class DomSharedStylesHost extends SharedStylesHost {
@@ -394,9 +397,9 @@ class DomSharedStylesHost extends SharedStylesHost {
394
397
  hostNodes.add(this.doc.head);
395
398
  }
396
399
  }
397
- DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
398
- DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSharedStylesHost });
399
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSharedStylesHost, decorators: [{
400
+ DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
401
+ DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost });
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost, decorators: [{
400
403
  type: Injectable
401
404
  }], ctorParameters: function () {
402
405
  return [{ type: undefined, decorators: [{
@@ -516,9 +519,9 @@ class DomRendererFactory2 {
516
519
  begin() { }
517
520
  end() { }
518
521
  }
519
- DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }], target: i0.ɵɵFactoryTarget.Injectable });
520
- DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomRendererFactory2 });
521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomRendererFactory2, decorators: [{
522
+ DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }], target: i0.ɵɵFactoryTarget.Injectable });
523
+ DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2 });
524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
522
525
  type: Injectable
523
526
  }], ctorParameters: function () {
524
527
  return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
@@ -760,9 +763,9 @@ class DomEventsPlugin extends EventManagerPlugin {
760
763
  return target.removeEventListener(eventName, callback);
761
764
  }
762
765
  }
763
- DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
764
- DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomEventsPlugin });
765
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomEventsPlugin, decorators: [{
766
+ DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
767
+ DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin });
768
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
766
769
  type: Injectable
767
770
  }], ctorParameters: function () {
768
771
  return [{ type: undefined, decorators: [{
@@ -941,9 +944,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
941
944
  }
942
945
  }
943
946
  }
944
- KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
945
- KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: KeyEventsPlugin });
946
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: KeyEventsPlugin, decorators: [{
947
+ KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
948
+ KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin });
949
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
947
950
  type: Injectable
948
951
  }], ctorParameters: function () {
949
952
  return [{ type: undefined, decorators: [{
@@ -1053,7 +1056,8 @@ function createProvidersConfig(options) {
1053
1056
  */
1054
1057
  function provideProtractorTestingSupport() {
1055
1058
  // Return a copy to prevent changes to the original array in case any in-place
1056
- // alterations are performed to the `provideProtractorTestingSupport` call results in app code.
1059
+ // alterations are performed to the `provideProtractorTestingSupport` call results in app
1060
+ // code.
1057
1061
  return [...TESTABILITY_PROVIDERS];
1058
1062
  }
1059
1063
  function initDomAdapter() {
@@ -1158,13 +1162,13 @@ class BrowserModule {
1158
1162
  };
1159
1163
  }
1160
1164
  }
1161
- BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
1162
- BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1163
- BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserModule, providers: [
1165
+ BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", 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.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1167
+ BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, providers: [
1164
1168
  ...BROWSER_MODULE_PROVIDERS,
1165
1169
  ...TESTABILITY_PROVIDERS
1166
1170
  ], imports: [CommonModule, ApplicationModule] });
1167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserModule, decorators: [{
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, decorators: [{
1168
1172
  type: NgModule,
1169
1173
  args: [{
1170
1174
  providers: [
@@ -1340,9 +1344,9 @@ class Meta {
1340
1344
  return META_KEYS_MAP[prop] || prop;
1341
1345
  }
1342
1346
  }
1343
- Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1344
- Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1345
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Meta, decorators: [{
1347
+ Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1348
+ Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, decorators: [{
1346
1350
  type: Injectable,
1347
1351
  args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
1348
1352
  }], ctorParameters: function () {
@@ -1392,9 +1396,9 @@ class Title {
1392
1396
  this._doc.title = newTitle || '';
1393
1397
  }
1394
1398
  }
1395
- Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1396
- Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1397
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Title, decorators: [{
1399
+ Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1400
+ Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1401
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, decorators: [{
1398
1402
  type: Injectable,
1399
1403
  args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
1400
1404
  }], ctorParameters: function () {
@@ -1404,14 +1408,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
1404
1408
  }] }];
1405
1409
  } });
1406
1410
 
1407
- const CAMEL_CASE_REGEXP = /([A-Z])/g;
1408
- const DASH_CASE_REGEXP = /-([a-z])/g;
1409
- function camelCaseToDashCase(input) {
1410
- return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
1411
- }
1412
- function dashCaseToCamelCase(input) {
1413
- return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
1414
- }
1415
1411
  /**
1416
1412
  * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if
1417
1413
  * `name` is `'probe'`.
@@ -1519,154 +1515,6 @@ function disableDebugTools() {
1519
1515
  exportNgVar(PROFILER_GLOBAL_NAME, null);
1520
1516
  }
1521
1517
 
1522
- function escapeHtml(text) {
1523
- const escapedText = {
1524
- '&': '&a;',
1525
- '"': '&q;',
1526
- '\'': '&s;',
1527
- '<': '&l;',
1528
- '>': '&g;',
1529
- };
1530
- return text.replace(/[&"'<>]/g, s => escapedText[s]);
1531
- }
1532
- function unescapeHtml(text) {
1533
- const unescapedText = {
1534
- '&a;': '&',
1535
- '&q;': '"',
1536
- '&s;': '\'',
1537
- '&l;': '<',
1538
- '&g;': '>',
1539
- };
1540
- return text.replace(/&[^;]+;/g, s => unescapedText[s]);
1541
- }
1542
- /**
1543
- * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
1544
- *
1545
- * Example:
1546
- *
1547
- * ```
1548
- * const COUNTER_KEY = makeStateKey<number>('counter');
1549
- * let value = 10;
1550
- *
1551
- * transferState.set(COUNTER_KEY, value);
1552
- * ```
1553
- *
1554
- * @publicApi
1555
- */
1556
- function makeStateKey(key) {
1557
- return key;
1558
- }
1559
- /**
1560
- * A key value store that is transferred from the application on the server side to the application
1561
- * on the client side.
1562
- *
1563
- * The `TransferState` is available as an injectable token.
1564
- * On the client, just inject this token using DI and use it, it will be lazily initialized.
1565
- * On the server it's already included if `renderApplication` function is used. Otherwise, import
1566
- * the `ServerTransferStateModule` module to make the `TransferState` available.
1567
- *
1568
- * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
1569
- * boolean, number, string, null and non-class objects will be serialized and deserialized in a
1570
- * non-lossy manner.
1571
- *
1572
- * @publicApi
1573
- */
1574
- class TransferState {
1575
- constructor() {
1576
- this.store = {};
1577
- this.onSerializeCallbacks = {};
1578
- }
1579
- /**
1580
- * Get the value corresponding to a key. Return `defaultValue` if key is not found.
1581
- */
1582
- get(key, defaultValue) {
1583
- return this.store[key] !== undefined ? this.store[key] : defaultValue;
1584
- }
1585
- /**
1586
- * Set the value corresponding to a key.
1587
- */
1588
- set(key, value) {
1589
- this.store[key] = value;
1590
- }
1591
- /**
1592
- * Remove a key from the store.
1593
- */
1594
- remove(key) {
1595
- delete this.store[key];
1596
- }
1597
- /**
1598
- * Test whether a key exists in the store.
1599
- */
1600
- hasKey(key) {
1601
- return this.store.hasOwnProperty(key);
1602
- }
1603
- /**
1604
- * Indicates whether the state is empty.
1605
- */
1606
- get isEmpty() {
1607
- return Object.keys(this.store).length === 0;
1608
- }
1609
- /**
1610
- * Register a callback to provide the value for a key when `toJson` is called.
1611
- */
1612
- onSerialize(key, callback) {
1613
- this.onSerializeCallbacks[key] = callback;
1614
- }
1615
- /**
1616
- * Serialize the current state of the store to JSON.
1617
- */
1618
- toJson() {
1619
- // Call the onSerialize callbacks and put those values into the store.
1620
- for (const key in this.onSerializeCallbacks) {
1621
- if (this.onSerializeCallbacks.hasOwnProperty(key)) {
1622
- try {
1623
- this.store[key] = this.onSerializeCallbacks[key]();
1624
- }
1625
- catch (e) {
1626
- console.warn('Exception in onSerialize callback: ', e);
1627
- }
1628
- }
1629
- }
1630
- return JSON.stringify(this.store);
1631
- }
1632
- }
1633
- TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1634
- TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: TransferState, providedIn: 'root', useFactory: () => {
1635
- const doc = inject(DOCUMENT);
1636
- const appId = inject(APP_ID);
1637
- const state = new TransferState();
1638
- state.store = retrieveTransferredState(doc, appId);
1639
- return state;
1640
- } });
1641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: TransferState, decorators: [{
1642
- type: Injectable,
1643
- args: [{
1644
- providedIn: 'root',
1645
- useFactory: () => {
1646
- const doc = inject(DOCUMENT);
1647
- const appId = inject(APP_ID);
1648
- const state = new TransferState();
1649
- state.store = retrieveTransferredState(doc, appId);
1650
- return state;
1651
- }
1652
- }]
1653
- }] });
1654
- function retrieveTransferredState(doc, appId) {
1655
- // Locate the script tag with the JSON data transferred from the server.
1656
- // The id of the script tag is set to the Angular appId + 'state'.
1657
- const script = doc.getElementById(appId + '-state');
1658
- let initialState = {};
1659
- if (script && script.textContent) {
1660
- try {
1661
- // Avoid using any here as it triggers lint errors in google3 (any is not allowed).
1662
- initialState = JSON.parse(unescapeHtml(script.textContent));
1663
- }
1664
- catch (e) {
1665
- console.warn('Exception while restoring TransferState for app ' + appId, e);
1666
- }
1667
- }
1668
- return initialState;
1669
- }
1670
1518
  /**
1671
1519
  * NgModule to install on the client side while using the `TransferState` to transfer state from
1672
1520
  * server to client.
@@ -1677,10 +1525,10 @@ function retrieveTransferredState(doc, appId) {
1677
1525
  */
1678
1526
  class BrowserTransferStateModule {
1679
1527
  }
1680
- BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1681
- BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule });
1682
- BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule });
1683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1528
+ BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1529
+ BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule });
1530
+ BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule });
1531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1684
1532
  type: NgModule,
1685
1533
  args: [{}]
1686
1534
  }] });
@@ -1840,9 +1688,9 @@ class HammerGestureConfig {
1840
1688
  return mc;
1841
1689
  }
1842
1690
  }
1843
- HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1844
- HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGestureConfig });
1845
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGestureConfig, decorators: [{
1691
+ HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1692
+ HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig });
1693
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
1846
1694
  type: Injectable
1847
1695
  }] });
1848
1696
  /**
@@ -1938,9 +1786,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1938
1786
  return this._config.events.indexOf(eventName) > -1;
1939
1787
  }
1940
1788
  }
1941
- HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1942
- HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGesturesPlugin });
1943
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1789
+ HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1790
+ HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin });
1791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1944
1792
  type: Injectable
1945
1793
  }], ctorParameters: function () {
1946
1794
  return [{ type: undefined, decorators: [{
@@ -1969,9 +1817,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
1969
1817
  */
1970
1818
  class HammerModule {
1971
1819
  }
1972
- HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1973
- HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule });
1974
- HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule, providers: [
1820
+ HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1821
+ HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule });
1822
+ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, providers: [
1975
1823
  {
1976
1824
  provide: EVENT_MANAGER_PLUGINS,
1977
1825
  useClass: HammerGesturesPlugin,
@@ -1980,7 +1828,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
1980
1828
  },
1981
1829
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1982
1830
  ] });
1983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule, decorators: [{
1831
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, decorators: [{
1984
1832
  type: NgModule,
1985
1833
  args: [{
1986
1834
  providers: [
@@ -2028,9 +1876,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
2028
1876
  */
2029
1877
  class DomSanitizer {
2030
1878
  }
2031
- DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2032
- DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
2033
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizer, decorators: [{
1879
+ DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1880
+ DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
1881
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, decorators: [{
2034
1882
  type: Injectable,
2035
1883
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
2036
1884
  }] });
@@ -2093,9 +1941,9 @@ class DomSanitizerImpl extends DomSanitizer {
2093
1941
  return ɵbypassSanitizationTrustResourceUrl(value);
2094
1942
  }
2095
1943
  }
2096
- DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2097
- DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
2098
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1944
+ DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1945
+ DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
1946
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
2099
1947
  type: Injectable,
2100
1948
  args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
2101
1949
  }], ctorParameters: function () {
@@ -2113,7 +1961,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
2113
1961
  /**
2114
1962
  * @publicApi
2115
1963
  */
2116
- const VERSION = new Version('16.0.0-next.0');
1964
+ const VERSION = new Version('16.0.0-next.2');
1965
+
1966
+ // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
2117
1967
 
2118
1968
  /**
2119
1969
  * @module
@@ -2128,5 +1978,5 @@ const VERSION = new Version('16.0.0-next.0');
2128
1978
  * Generated bundle index. Do not edit.
2129
1979
  */
2130
1980
 
2131
- 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, 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, TRANSITION_ID as ɵTRANSITION_ID, escapeHtml as ɵescapeHtml, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute, shimStylesContent as ɵshimStyles };
1981
+ 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, TRANSITION_ID as ɵTRANSITION_ID, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute, shimStylesContent as ɵshimStyles };
2132
1982
  //# sourceMappingURL=platform-browser.mjs.map