@angular/platform-browser 17.0.4 → 17.1.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animations/async/index.d.ts +1 -1
- package/animations/index.d.ts +1 -1
- package/esm2022/animations/async/src/async_animation_renderer.mjs +1 -1
- package/esm2022/animations/src/module.mjs +8 -8
- package/esm2022/animations/src/providers.mjs +3 -3
- package/esm2022/src/browser/browser_adapter.mjs +1 -1
- package/esm2022/src/browser/meta.mjs +4 -4
- package/esm2022/src/browser/testability.mjs +1 -1
- package/esm2022/src/browser/title.mjs +3 -3
- package/esm2022/src/browser/tools/common_tools.mjs +1 -1
- package/esm2022/src/browser/xhr.mjs +3 -3
- package/esm2022/src/browser.mjs +6 -6
- package/esm2022/src/dom/debug/by.mjs +1 -1
- package/esm2022/src/dom/dom_renderer.mjs +4 -4
- package/esm2022/src/dom/events/dom_events.mjs +3 -3
- package/esm2022/src/dom/events/event_manager.mjs +4 -4
- package/esm2022/src/dom/events/hammer_gestures.mjs +11 -11
- package/esm2022/src/dom/events/key_events.mjs +4 -4
- package/esm2022/src/dom/shared_styles_host.mjs +4 -4
- package/esm2022/src/dom/util.mjs +1 -1
- package/esm2022/src/hydration.mjs +17 -6
- package/esm2022/src/platform-browser.mjs +2 -2
- package/esm2022/src/security/dom_sanitization_service.mjs +7 -7
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/browser.mjs +4 -4
- package/esm2022/testing/src/browser_util.mjs +1 -1
- package/esm2022/testing/src/matchers.mjs +1 -1
- package/fesm2022/animations/async.mjs +1 -1
- package/fesm2022/animations/async.mjs.map +1 -1
- package/fesm2022/animations.mjs +12 -12
- package/fesm2022/platform-browser.mjs +64 -53
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +2 -2
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v17.0.
|
2
|
+
* @license Angular v17.1.0-next.1
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -162,10 +162,10 @@ class BrowserXhr {
|
|
162
162
|
build() {
|
163
163
|
return new XMLHttpRequest();
|
164
164
|
}
|
165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
166
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
166
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: BrowserXhr }); }
|
167
167
|
}
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: BrowserXhr, decorators: [{
|
169
169
|
type: Injectable
|
170
170
|
}] });
|
171
171
|
|
@@ -227,10 +227,10 @@ class EventManager {
|
|
227
227
|
this._eventNameToPlugin.set(eventName, plugin);
|
228
228
|
return plugin;
|
229
229
|
}
|
230
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
231
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
231
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: EventManager }); }
|
232
232
|
}
|
233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: EventManager, decorators: [{
|
234
234
|
type: Injectable
|
235
235
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
236
236
|
type: Inject,
|
@@ -381,10 +381,10 @@ class SharedStylesHost {
|
|
381
381
|
// Re-add the head element back since this is the default host.
|
382
382
|
hostNodes.add(this.doc.head);
|
383
383
|
}
|
384
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
385
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
384
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
385
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: SharedStylesHost }); }
|
386
386
|
}
|
387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: SharedStylesHost, decorators: [{
|
388
388
|
type: Injectable
|
389
389
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
390
390
|
type: Inject,
|
@@ -499,10 +499,10 @@ class DomRendererFactory2 {
|
|
499
499
|
ngOnDestroy() {
|
500
500
|
this.rendererByCompId.clear();
|
501
501
|
}
|
502
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
503
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
502
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
503
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomRendererFactory2 }); }
|
504
504
|
}
|
505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
506
506
|
type: Injectable
|
507
507
|
}], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
|
508
508
|
type: Inject,
|
@@ -787,10 +787,10 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
787
787
|
removeEventListener(target, eventName, callback) {
|
788
788
|
return target.removeEventListener(eventName, callback);
|
789
789
|
}
|
790
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
791
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
790
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
791
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomEventsPlugin }); }
|
792
792
|
}
|
793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
794
794
|
type: Injectable
|
795
795
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
796
796
|
type: Inject,
|
@@ -959,10 +959,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
959
959
|
static _normalizeKey(keyName) {
|
960
960
|
return keyName === 'esc' ? 'escape' : keyName;
|
961
961
|
}
|
962
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
963
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
963
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: KeyEventsPlugin }); }
|
964
964
|
}
|
965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
966
966
|
type: Injectable
|
967
967
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
968
968
|
type: Inject,
|
@@ -1114,7 +1114,7 @@ const TESTABILITY_PROVIDERS = [
|
|
1114
1114
|
deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]
|
1115
1115
|
},
|
1116
1116
|
{
|
1117
|
-
provide: Testability,
|
1117
|
+
provide: Testability, // Also provide as `Testability` for backwards-compatibility.
|
1118
1118
|
useClass: Testability,
|
1119
1119
|
deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]
|
1120
1120
|
}
|
@@ -1169,11 +1169,11 @@ class BrowserModule {
|
|
1169
1169
|
],
|
1170
1170
|
};
|
1171
1171
|
}
|
1172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1173
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
1174
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
1172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1173
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.0-next.1", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }
|
1174
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }
|
1175
1175
|
}
|
1176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: BrowserModule, decorators: [{
|
1177
1177
|
type: NgModule,
|
1178
1178
|
args: [{
|
1179
1179
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
@@ -1343,10 +1343,10 @@ class Meta {
|
|
1343
1343
|
_getMetaKeyMap(prop) {
|
1344
1344
|
return META_KEYS_MAP[prop] || prop;
|
1345
1345
|
}
|
1346
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1347
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
1346
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1347
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] }); }
|
1348
1348
|
}
|
1349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: Meta, decorators: [{
|
1350
1350
|
type: Injectable,
|
1351
1351
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1352
1352
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1393,10 +1393,10 @@ class Title {
|
|
1393
1393
|
setTitle(newTitle) {
|
1394
1394
|
this._doc.title = newTitle || '';
|
1395
1395
|
}
|
1396
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1397
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
1396
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1397
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] }); }
|
1398
1398
|
}
|
1399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: Title, decorators: [{
|
1400
1400
|
type: Injectable,
|
1401
1401
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1402
1402
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1665,10 +1665,10 @@ class HammerGestureConfig {
|
|
1665
1665
|
}
|
1666
1666
|
return mc;
|
1667
1667
|
}
|
1668
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1669
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
1668
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1669
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerGestureConfig }); }
|
1670
1670
|
}
|
1671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1672
1672
|
type: Injectable
|
1673
1673
|
}] });
|
1674
1674
|
/**
|
@@ -1763,10 +1763,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1763
1763
|
isCustomEvent(eventName) {
|
1764
1764
|
return this._config.events.indexOf(eventName) > -1;
|
1765
1765
|
}
|
1766
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1767
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
1766
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1767
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerGesturesPlugin }); }
|
1768
1768
|
}
|
1769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1770
1770
|
type: Injectable
|
1771
1771
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1772
1772
|
type: Inject,
|
@@ -1792,9 +1792,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
|
|
1792
1792
|
* @publicApi
|
1793
1793
|
*/
|
1794
1794
|
class HammerModule {
|
1795
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1796
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
1797
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
1795
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1796
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerModule }); }
|
1797
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerModule, providers: [
|
1798
1798
|
{
|
1799
1799
|
provide: EVENT_MANAGER_PLUGINS,
|
1800
1800
|
useClass: HammerGesturesPlugin,
|
@@ -1804,7 +1804,7 @@ class HammerModule {
|
|
1804
1804
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1805
1805
|
] }); }
|
1806
1806
|
}
|
1807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: HammerModule, decorators: [{
|
1808
1808
|
type: NgModule,
|
1809
1809
|
args: [{
|
1810
1810
|
providers: [
|
@@ -1851,10 +1851,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
|
|
1851
1851
|
* @publicApi
|
1852
1852
|
*/
|
1853
1853
|
class DomSanitizer {
|
1854
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1855
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
1854
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1855
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) }); }
|
1856
1856
|
}
|
1857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomSanitizer, decorators: [{
|
1858
1858
|
type: Injectable,
|
1859
1859
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1860
1860
|
}] });
|
@@ -1919,10 +1919,10 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1919
1919
|
bypassSecurityTrustResourceUrl(value) {
|
1920
1920
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1921
1921
|
}
|
1922
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
1923
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
1922
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1923
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] }); }
|
1924
1924
|
}
|
1925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
1925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.1", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1926
1926
|
type: Injectable,
|
1927
1927
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1928
1928
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1930,6 +1930,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
|
|
1930
1930
|
args: [DOCUMENT]
|
1931
1931
|
}] }] });
|
1932
1932
|
|
1933
|
+
/**
|
1934
|
+
* The list of features as an enum to uniquely type each `HydrationFeature`.
|
1935
|
+
* @see {@link HydrationFeature}
|
1936
|
+
*
|
1937
|
+
* @publicApi
|
1938
|
+
*/
|
1939
|
+
var HydrationFeatureKind;
|
1940
|
+
(function (HydrationFeatureKind) {
|
1941
|
+
HydrationFeatureKind[HydrationFeatureKind["NoHttpTransferCache"] = 0] = "NoHttpTransferCache";
|
1942
|
+
HydrationFeatureKind[HydrationFeatureKind["HttpTransferCacheOptions"] = 1] = "HttpTransferCacheOptions";
|
1943
|
+
})(HydrationFeatureKind || (HydrationFeatureKind = {}));
|
1933
1944
|
/**
|
1934
1945
|
* Helper function to create an object that represents a Hydration feature.
|
1935
1946
|
*/
|
@@ -1945,7 +1956,7 @@ function hydrationFeature(ɵkind, ɵproviders = [], ɵoptions = {}) {
|
|
1945
1956
|
function withNoHttpTransferCache() {
|
1946
1957
|
// This feature has no providers and acts as a flag that turns off
|
1947
1958
|
// HTTP transfer cache (which otherwise is turned on by default).
|
1948
|
-
return hydrationFeature(
|
1959
|
+
return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);
|
1949
1960
|
}
|
1950
1961
|
/**
|
1951
1962
|
* The function accepts a an object, which allows to configure cache parameters,
|
@@ -1957,7 +1968,7 @@ function withNoHttpTransferCache() {
|
|
1957
1968
|
*/
|
1958
1969
|
function withHttpTransferCacheOptions(options) {
|
1959
1970
|
// This feature has no providers and acts as a flag to pass options to the HTTP transfer cache.
|
1960
|
-
return hydrationFeature(
|
1971
|
+
return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, ɵwithHttpTransferCache(options));
|
1961
1972
|
}
|
1962
1973
|
/**
|
1963
1974
|
* Returns an `ENVIRONMENT_INITIALIZER` token setup with a function
|
@@ -2030,7 +2041,7 @@ function provideZoneJsCompatibilityDetector() {
|
|
2030
2041
|
function provideClientHydration(...features) {
|
2031
2042
|
const providers = [];
|
2032
2043
|
const featuresKind = new Set();
|
2033
|
-
const hasHttpTransferCacheOptions = featuresKind.has(
|
2044
|
+
const hasHttpTransferCacheOptions = featuresKind.has(HydrationFeatureKind.HttpTransferCacheOptions);
|
2034
2045
|
for (const { ɵproviders, ɵkind } of features) {
|
2035
2046
|
featuresKind.add(ɵkind);
|
2036
2047
|
if (ɵproviders.length) {
|
@@ -2038,14 +2049,14 @@ function provideClientHydration(...features) {
|
|
2038
2049
|
}
|
2039
2050
|
}
|
2040
2051
|
if (typeof ngDevMode !== 'undefined' && ngDevMode &&
|
2041
|
-
featuresKind.has(
|
2052
|
+
featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) && hasHttpTransferCacheOptions) {
|
2042
2053
|
// TODO: Make this a runtime error
|
2043
2054
|
throw new Error('Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');
|
2044
2055
|
}
|
2045
2056
|
return makeEnvironmentProviders([
|
2046
2057
|
(typeof ngDevMode !== 'undefined' && ngDevMode) ? provideZoneJsCompatibilityDetector() : [],
|
2047
2058
|
ɵwithDomHydration(),
|
2048
|
-
((featuresKind.has(
|
2059
|
+
((featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions) ?
|
2049
2060
|
[] :
|
2050
2061
|
ɵwithHttpTransferCache({})),
|
2051
2062
|
providers,
|
@@ -2060,7 +2071,7 @@ function provideClientHydration(...features) {
|
|
2060
2071
|
/**
|
2061
2072
|
* @publicApi
|
2062
2073
|
*/
|
2063
|
-
const VERSION = new Version('17.0.
|
2074
|
+
const VERSION = new Version('17.1.0-next.1');
|
2064
2075
|
|
2065
2076
|
// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
|
2066
2077
|
/**
|
@@ -2096,5 +2107,5 @@ const TransferState = TransferState$1;
|
|
2096
2107
|
* Generated bundle index. Do not edit.
|
2097
2108
|
*/
|
2098
2109
|
|
2099
|
-
export { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withHttpTransferCacheOptions, withNoHttpTransferCache, 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, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };
|
2110
|
+
export { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withHttpTransferCacheOptions, withNoHttpTransferCache, 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, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };
|
2100
2111
|
//# sourceMappingURL=platform-browser.mjs.map
|