@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 () { return [{ type: undefined, decorators: [{
276
279
  type: Inject,
@@ -333,9 +336,9 @@ class SharedStylesHost {
333
336
  this.usageCount.clear();
334
337
  }
335
338
  }
336
- SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
337
- SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: SharedStylesHost });
338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: SharedStylesHost, decorators: [{
339
+ SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
340
+ SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost });
341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SharedStylesHost, decorators: [{
339
342
  type: Injectable
340
343
  }] });
341
344
  class DomSharedStylesHost extends SharedStylesHost {
@@ -391,9 +394,9 @@ class DomSharedStylesHost extends SharedStylesHost {
391
394
  hostNodes.add(this.doc.head);
392
395
  }
393
396
  }
394
- 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 });
395
- DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSharedStylesHost });
396
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSharedStylesHost, decorators: [{
397
+ 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 });
398
+ DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost });
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSharedStylesHost, decorators: [{
397
400
  type: Injectable
398
401
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
399
402
  type: Inject,
@@ -511,9 +514,9 @@ class DomRendererFactory2 {
511
514
  begin() { }
512
515
  end() { }
513
516
  }
514
- 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 });
515
- DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomRendererFactory2 });
516
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomRendererFactory2, decorators: [{
517
+ 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 });
518
+ DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2 });
519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
517
520
  type: Injectable
518
521
  }], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
519
522
  type: Inject,
@@ -752,9 +755,9 @@ class DomEventsPlugin extends EventManagerPlugin {
752
755
  return target.removeEventListener(eventName, callback);
753
756
  }
754
757
  }
755
- 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 });
756
- DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomEventsPlugin });
757
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomEventsPlugin, decorators: [{
758
+ 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 });
759
+ DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin });
760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
758
761
  type: Injectable
759
762
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
760
763
  type: Inject,
@@ -931,9 +934,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
931
934
  }
932
935
  }
933
936
  }
934
- 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 });
935
- KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: KeyEventsPlugin });
936
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: KeyEventsPlugin, decorators: [{
937
+ 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 });
938
+ KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin });
939
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
937
940
  type: Injectable
938
941
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
939
942
  type: Inject,
@@ -1040,7 +1043,8 @@ function createProvidersConfig(options) {
1040
1043
  */
1041
1044
  function provideProtractorTestingSupport() {
1042
1045
  // Return a copy to prevent changes to the original array in case any in-place
1043
- // alterations are performed to the `provideProtractorTestingSupport` call results in app code.
1046
+ // alterations are performed to the `provideProtractorTestingSupport` call results in app
1047
+ // code.
1044
1048
  return [...TESTABILITY_PROVIDERS];
1045
1049
  }
1046
1050
  function initDomAdapter() {
@@ -1145,13 +1149,13 @@ class BrowserModule {
1145
1149
  };
1146
1150
  }
1147
1151
  }
1148
- 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 });
1149
- BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1150
- BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserModule, providers: [
1152
+ 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 });
1153
+ BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
1154
+ BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, providers: [
1151
1155
  ...BROWSER_MODULE_PROVIDERS,
1152
1156
  ...TESTABILITY_PROVIDERS
1153
1157
  ], imports: [CommonModule, ApplicationModule] });
1154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserModule, decorators: [{
1158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserModule, decorators: [{
1155
1159
  type: NgModule,
1156
1160
  args: [{
1157
1161
  providers: [
@@ -1325,9 +1329,9 @@ class Meta {
1325
1329
  return META_KEYS_MAP[prop] || prop;
1326
1330
  }
1327
1331
  }
1328
- 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 });
1329
- Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1330
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Meta, decorators: [{
1332
+ 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 });
1333
+ Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
1334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Meta, decorators: [{
1331
1335
  type: Injectable,
1332
1336
  args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
1333
1337
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1375,9 +1379,9 @@ class Title {
1375
1379
  this._doc.title = newTitle || '';
1376
1380
  }
1377
1381
  }
1378
- 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 });
1379
- Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1380
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: Title, decorators: [{
1382
+ 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 });
1383
+ Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
1384
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Title, decorators: [{
1381
1385
  type: Injectable,
1382
1386
  args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
1383
1387
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1385,14 +1389,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
1385
1389
  args: [DOCUMENT]
1386
1390
  }] }]; } });
1387
1391
 
1388
- const CAMEL_CASE_REGEXP = /([A-Z])/g;
1389
- const DASH_CASE_REGEXP = /-([a-z])/g;
1390
- function camelCaseToDashCase(input) {
1391
- return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
1392
- }
1393
- function dashCaseToCamelCase(input) {
1394
- return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
1395
- }
1396
1392
  /**
1397
1393
  * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if
1398
1394
  * `name` is `'probe'`.
@@ -1500,154 +1496,6 @@ function disableDebugTools() {
1500
1496
  exportNgVar(PROFILER_GLOBAL_NAME, null);
1501
1497
  }
1502
1498
 
1503
- function escapeHtml(text) {
1504
- const escapedText = {
1505
- '&': '&a;',
1506
- '"': '&q;',
1507
- '\'': '&s;',
1508
- '<': '&l;',
1509
- '>': '&g;',
1510
- };
1511
- return text.replace(/[&"'<>]/g, s => escapedText[s]);
1512
- }
1513
- function unescapeHtml(text) {
1514
- const unescapedText = {
1515
- '&a;': '&',
1516
- '&q;': '"',
1517
- '&s;': '\'',
1518
- '&l;': '<',
1519
- '&g;': '>',
1520
- };
1521
- return text.replace(/&[^;]+;/g, s => unescapedText[s]);
1522
- }
1523
- /**
1524
- * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
1525
- *
1526
- * Example:
1527
- *
1528
- * ```
1529
- * const COUNTER_KEY = makeStateKey<number>('counter');
1530
- * let value = 10;
1531
- *
1532
- * transferState.set(COUNTER_KEY, value);
1533
- * ```
1534
- *
1535
- * @publicApi
1536
- */
1537
- function makeStateKey(key) {
1538
- return key;
1539
- }
1540
- /**
1541
- * A key value store that is transferred from the application on the server side to the application
1542
- * on the client side.
1543
- *
1544
- * The `TransferState` is available as an injectable token.
1545
- * On the client, just inject this token using DI and use it, it will be lazily initialized.
1546
- * On the server it's already included if `renderApplication` function is used. Otherwise, import
1547
- * the `ServerTransferStateModule` module to make the `TransferState` available.
1548
- *
1549
- * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
1550
- * boolean, number, string, null and non-class objects will be serialized and deserialized in a
1551
- * non-lossy manner.
1552
- *
1553
- * @publicApi
1554
- */
1555
- class TransferState {
1556
- constructor() {
1557
- this.store = {};
1558
- this.onSerializeCallbacks = {};
1559
- }
1560
- /**
1561
- * Get the value corresponding to a key. Return `defaultValue` if key is not found.
1562
- */
1563
- get(key, defaultValue) {
1564
- return this.store[key] !== undefined ? this.store[key] : defaultValue;
1565
- }
1566
- /**
1567
- * Set the value corresponding to a key.
1568
- */
1569
- set(key, value) {
1570
- this.store[key] = value;
1571
- }
1572
- /**
1573
- * Remove a key from the store.
1574
- */
1575
- remove(key) {
1576
- delete this.store[key];
1577
- }
1578
- /**
1579
- * Test whether a key exists in the store.
1580
- */
1581
- hasKey(key) {
1582
- return this.store.hasOwnProperty(key);
1583
- }
1584
- /**
1585
- * Indicates whether the state is empty.
1586
- */
1587
- get isEmpty() {
1588
- return Object.keys(this.store).length === 0;
1589
- }
1590
- /**
1591
- * Register a callback to provide the value for a key when `toJson` is called.
1592
- */
1593
- onSerialize(key, callback) {
1594
- this.onSerializeCallbacks[key] = callback;
1595
- }
1596
- /**
1597
- * Serialize the current state of the store to JSON.
1598
- */
1599
- toJson() {
1600
- // Call the onSerialize callbacks and put those values into the store.
1601
- for (const key in this.onSerializeCallbacks) {
1602
- if (this.onSerializeCallbacks.hasOwnProperty(key)) {
1603
- try {
1604
- this.store[key] = this.onSerializeCallbacks[key]();
1605
- }
1606
- catch (e) {
1607
- console.warn('Exception in onSerialize callback: ', e);
1608
- }
1609
- }
1610
- }
1611
- return JSON.stringify(this.store);
1612
- }
1613
- }
1614
- TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1615
- TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: TransferState, providedIn: 'root', useFactory: () => {
1616
- const doc = inject(DOCUMENT);
1617
- const appId = inject(APP_ID);
1618
- const state = new TransferState();
1619
- state.store = retrieveTransferredState(doc, appId);
1620
- return state;
1621
- } });
1622
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: TransferState, decorators: [{
1623
- type: Injectable,
1624
- args: [{
1625
- providedIn: 'root',
1626
- useFactory: () => {
1627
- const doc = inject(DOCUMENT);
1628
- const appId = inject(APP_ID);
1629
- const state = new TransferState();
1630
- state.store = retrieveTransferredState(doc, appId);
1631
- return state;
1632
- }
1633
- }]
1634
- }] });
1635
- function retrieveTransferredState(doc, appId) {
1636
- // Locate the script tag with the JSON data transferred from the server.
1637
- // The id of the script tag is set to the Angular appId + 'state'.
1638
- const script = doc.getElementById(appId + '-state');
1639
- let initialState = {};
1640
- if (script && script.textContent) {
1641
- try {
1642
- // Avoid using any here as it triggers lint errors in google3 (any is not allowed).
1643
- initialState = JSON.parse(unescapeHtml(script.textContent));
1644
- }
1645
- catch (e) {
1646
- console.warn('Exception while restoring TransferState for app ' + appId, e);
1647
- }
1648
- }
1649
- return initialState;
1650
- }
1651
1499
  /**
1652
1500
  * NgModule to install on the client side while using the `TransferState` to transfer state from
1653
1501
  * server to client.
@@ -1658,10 +1506,10 @@ function retrieveTransferredState(doc, appId) {
1658
1506
  */
1659
1507
  class BrowserTransferStateModule {
1660
1508
  }
1661
- BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1662
- BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule });
1663
- BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule });
1664
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1509
+ BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1510
+ BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule });
1511
+ BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule });
1512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
1665
1513
  type: NgModule,
1666
1514
  args: [{}]
1667
1515
  }] });
@@ -1821,9 +1669,9 @@ class HammerGestureConfig {
1821
1669
  return mc;
1822
1670
  }
1823
1671
  }
1824
- HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1825
- HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGestureConfig });
1826
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGestureConfig, decorators: [{
1672
+ HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1673
+ HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig });
1674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
1827
1675
  type: Injectable
1828
1676
  }] });
1829
1677
  /**
@@ -1919,9 +1767,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1919
1767
  return this._config.events.indexOf(eventName) > -1;
1920
1768
  }
1921
1769
  }
1922
- 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 });
1923
- HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGesturesPlugin });
1924
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1770
+ 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 });
1771
+ HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin });
1772
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1925
1773
  type: Injectable
1926
1774
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1927
1775
  type: Inject,
@@ -1948,9 +1796,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
1948
1796
  */
1949
1797
  class HammerModule {
1950
1798
  }
1951
- HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1952
- HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule });
1953
- HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule, providers: [
1799
+ HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1800
+ HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule });
1801
+ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, providers: [
1954
1802
  {
1955
1803
  provide: EVENT_MANAGER_PLUGINS,
1956
1804
  useClass: HammerGesturesPlugin,
@@ -1959,7 +1807,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
1959
1807
  },
1960
1808
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1961
1809
  ] });
1962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: HammerModule, decorators: [{
1810
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: HammerModule, decorators: [{
1963
1811
  type: NgModule,
1964
1812
  args: [{
1965
1813
  providers: [
@@ -2007,9 +1855,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
2007
1855
  */
2008
1856
  class DomSanitizer {
2009
1857
  }
2010
- DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2011
- 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; }) });
2012
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizer, decorators: [{
1858
+ DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1859
+ 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; }) });
1860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizer, decorators: [{
2013
1861
  type: Injectable,
2014
1862
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
2015
1863
  }] });
@@ -2072,9 +1920,9 @@ class DomSanitizerImpl extends DomSanitizer {
2072
1920
  return ɵbypassSanitizationTrustResourceUrl(value);
2073
1921
  }
2074
1922
  }
2075
- 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 });
2076
- 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 }] });
2077
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1923
+ 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 });
1924
+ 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 }] });
1925
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
2078
1926
  type: Injectable,
2079
1927
  args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
2080
1928
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -2090,7 +1938,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.0",
2090
1938
  /**
2091
1939
  * @publicApi
2092
1940
  */
2093
- const VERSION = new Version('16.0.0-next.0');
1941
+ const VERSION = new Version('16.0.0-next.2');
1942
+
1943
+ // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
2094
1944
 
2095
1945
  /**
2096
1946
  * @module
@@ -2105,5 +1955,5 @@ const VERSION = new Version('16.0.0-next.0');
2105
1955
  * Generated bundle index. Do not edit.
2106
1956
  */
2107
1957
 
2108
- 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 };
1958
+ 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 };
2109
1959
  //# sourceMappingURL=platform-browser.mjs.map