@angular/platform-browser 19.2.1 → 19.2.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.
- package/animations/async/index.d.ts +16 -25
- package/animations/index.d.ts +32 -43
- package/fesm2022/animations/async.mjs +10 -28
- package/fesm2022/animations/async.mjs.map +1 -1
- package/fesm2022/animations.mjs +23 -41
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +119 -131
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +12 -26
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +545 -601
- package/package.json +4 -4
- package/testing/index.d.ts +10 -13
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.2.
|
2
|
+
* @license Angular v19.2.2
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
7
|
-
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID
|
7
|
+
import { ɵDomAdapter as _DomAdapter, ɵsetRootDomAdapter as _setRootDomAdapter, ɵparseCookieValue as _parseCookieValue, ɵgetDOM as _getDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID as _PLATFORM_BROWSER_ID, CommonModule, XhrFactory } from '@angular/common';
|
8
8
|
export { ɵgetDOM } from '@angular/common';
|
9
9
|
import * as i0 from '@angular/core';
|
10
|
-
import { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, ɵTracingService, RendererStyleFlags2, ɵinternalCreateApplication,
|
11
|
-
import { ɵwithHttpTransferCache } from '@angular/common/http';
|
10
|
+
import { ɵglobal as _global, ɵRuntimeError as _RuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, ɵTracingService as _TracingService, RendererStyleFlags2, createPlatformFactory, PLATFORM_INITIALIZER, ɵinternalCreateApplication as _internalCreateApplication, inject, ApplicationModule, ɵINJECTOR_SCOPE as _INJECTOR_SCOPE, ErrorHandler, RendererFactory2, ɵTESTABILITY_GETTER as _TESTABILITY_GETTER, NgZone, TestabilityRegistry, Testability, ɵTESTABILITY as _TESTABILITY, platformCore, ɵsetDocument as _setDocument, NgModule, ApplicationRef, Injector, ɵConsole as _Console, ɵXSS_SECURITY_URL as _XSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow as _allowSanitizationBypassAndThrow, ɵunwrapSafeValue as _unwrapSafeValue, ɵ_sanitizeUrl as __sanitizeUrl, ɵ_sanitizeHtml as __sanitizeHtml, ɵbypassSanitizationTrustHtml as _bypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle as _bypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript as _bypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl as _bypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl as _bypassSanitizationTrustResourceUrl, forwardRef, makeEnvironmentProviders, ɵwithDomHydration as _withDomHydration, ɵwithEventReplay as _withEventReplay, ɵwithI18nSupport as _withI18nSupport, ɵwithIncrementalHydration as _withIncrementalHydration, ENVIRONMENT_INITIALIZER, ɵZONELESS_ENABLED as _ZONELESS_ENABLED, ɵformatRuntimeError as _formatRuntimeError, Version } from '@angular/core';
|
11
|
+
import { ɵwithHttpTransferCache as _withHttpTransferCache } from '@angular/common/http';
|
12
12
|
|
13
13
|
/**
|
14
14
|
* Provides DOM operations in any browser environment.
|
@@ -16,7 +16,7 @@ import { ɵwithHttpTransferCache } from '@angular/common/http';
|
|
16
16
|
* @security Tread carefully! Interacting with the DOM directly is dangerous and
|
17
17
|
* can introduce XSS risks.
|
18
18
|
*/
|
19
|
-
class GenericBrowserDomAdapter extends
|
19
|
+
class GenericBrowserDomAdapter extends _DomAdapter {
|
20
20
|
supportsDOMEvents = true;
|
21
21
|
}
|
22
22
|
|
@@ -28,7 +28,7 @@ class GenericBrowserDomAdapter extends ɵDomAdapter {
|
|
28
28
|
*/
|
29
29
|
class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
30
30
|
static makeCurrent() {
|
31
|
-
|
31
|
+
_setRootDomAdapter(new BrowserDomAdapter());
|
32
32
|
}
|
33
33
|
onAndCancel(el, evt, listener, options) {
|
34
34
|
el.addEventListener(evt, listener, options);
|
@@ -82,7 +82,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
|
82
82
|
return window.navigator.userAgent;
|
83
83
|
}
|
84
84
|
getCookie(name) {
|
85
|
-
return
|
85
|
+
return _parseCookieValue(document.cookie, name);
|
86
86
|
}
|
87
87
|
}
|
88
88
|
let baseElement = null;
|
@@ -98,18 +98,18 @@ function relativePath(url) {
|
|
98
98
|
|
99
99
|
class BrowserGetTestability {
|
100
100
|
addToWindow(registry) {
|
101
|
-
|
101
|
+
_global['getAngularTestability'] = (elem, findInAncestors = true) => {
|
102
102
|
const testability = registry.findTestabilityInTree(elem, findInAncestors);
|
103
103
|
if (testability == null) {
|
104
|
-
throw new
|
104
|
+
throw new _RuntimeError(5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
105
105
|
'Could not find testability for element.');
|
106
106
|
}
|
107
107
|
return testability;
|
108
108
|
};
|
109
|
-
|
110
|
-
|
109
|
+
_global['getAllAngularTestabilities'] = () => registry.getAllTestabilities();
|
110
|
+
_global['getAllAngularRootElements'] = () => registry.getAllRootElements();
|
111
111
|
const whenAllStable = (callback) => {
|
112
|
-
const testabilities =
|
112
|
+
const testabilities = _global['getAllAngularTestabilities']();
|
113
113
|
let count = testabilities.length;
|
114
114
|
const decrement = function () {
|
115
115
|
count--;
|
@@ -121,10 +121,10 @@ class BrowserGetTestability {
|
|
121
121
|
testability.whenStable(decrement);
|
122
122
|
});
|
123
123
|
};
|
124
|
-
if (
|
125
|
-
|
124
|
+
if (!_global['frameworkStabilizers']) {
|
125
|
+
_global['frameworkStabilizers'] = [];
|
126
126
|
}
|
127
|
-
|
127
|
+
_global['frameworkStabilizers'].push(whenAllStable);
|
128
128
|
}
|
129
129
|
findTestabilityInTree(registry, elem, findInAncestors) {
|
130
130
|
if (elem == null) {
|
@@ -137,7 +137,7 @@ class BrowserGetTestability {
|
|
137
137
|
else if (!findInAncestors) {
|
138
138
|
return null;
|
139
139
|
}
|
140
|
-
if (
|
140
|
+
if (_getDOM().isShadowRoot(elem)) {
|
141
141
|
return this.findTestabilityInTree(registry, elem.host, true);
|
142
142
|
}
|
143
143
|
return this.findTestabilityInTree(registry, elem.parentElement, true);
|
@@ -151,10 +151,10 @@ class BrowserXhr {
|
|
151
151
|
build() {
|
152
152
|
return new XMLHttpRequest();
|
153
153
|
}
|
154
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
155
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
155
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserXhr });
|
156
156
|
}
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserXhr, decorators: [{
|
158
158
|
type: Injectable
|
159
159
|
}] });
|
160
160
|
|
@@ -213,16 +213,16 @@ class EventManager {
|
|
213
213
|
const plugins = this._plugins;
|
214
214
|
plugin = plugins.find((plugin) => plugin.supports(eventName));
|
215
215
|
if (!plugin) {
|
216
|
-
throw new
|
216
|
+
throw new _RuntimeError(5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
217
217
|
`No event manager plugin found for event ${eventName}`);
|
218
218
|
}
|
219
219
|
this._eventNameToPlugin.set(eventName, plugin);
|
220
220
|
return plugin;
|
221
221
|
}
|
222
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
223
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
223
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: EventManager });
|
224
224
|
}
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: EventManager, decorators: [{
|
226
226
|
type: Injectable
|
227
227
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
228
228
|
type: Inject,
|
@@ -427,10 +427,10 @@ class SharedStylesHost {
|
|
427
427
|
// Insert the element into the DOM with the host node as parent
|
428
428
|
return host.appendChild(element);
|
429
429
|
}
|
430
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
431
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
431
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SharedStylesHost });
|
432
432
|
}
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SharedStylesHost, decorators: [{
|
434
434
|
type: Injectable
|
435
435
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
436
436
|
type: Inject,
|
@@ -604,10 +604,10 @@ class DomRendererFactory2 {
|
|
604
604
|
componentReplaced(componentId) {
|
605
605
|
this.rendererByCompId.delete(componentId);
|
606
606
|
}
|
607
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
608
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
607
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", 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 }, { token: _TracingService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
608
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomRendererFactory2 });
|
609
609
|
}
|
610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
611
611
|
type: Injectable
|
612
612
|
}], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
|
613
613
|
type: Inject,
|
@@ -626,7 +626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
626
626
|
args: [CSP_NONCE]
|
627
627
|
}] }, { type: i0.ɵTracingService, decorators: [{
|
628
628
|
type: Inject,
|
629
|
-
args: [
|
629
|
+
args: [_TracingService]
|
630
630
|
}, {
|
631
631
|
type: Optional
|
632
632
|
}] }] });
|
@@ -688,7 +688,7 @@ class DefaultDomRenderer2 {
|
|
688
688
|
selectRootElement(selectorOrNode, preserveContent) {
|
689
689
|
let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) : selectorOrNode;
|
690
690
|
if (!el) {
|
691
|
-
throw new
|
691
|
+
throw new _RuntimeError(-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
692
692
|
`The selector "${selectorOrNode}" did not match any elements`);
|
693
693
|
}
|
694
694
|
if (!preserveContent) {
|
@@ -771,13 +771,14 @@ class DefaultDomRenderer2 {
|
|
771
771
|
this.throwOnSyntheticProps &&
|
772
772
|
checkNoSyntheticProp(event, 'listener');
|
773
773
|
if (typeof target === 'string') {
|
774
|
-
target =
|
774
|
+
target = _getDOM().getGlobalEventTarget(this.doc, target);
|
775
775
|
if (!target) {
|
776
|
-
throw new
|
776
|
+
throw new _RuntimeError(5102 /* RuntimeErrorCode.UNSUPPORTED_EVENT_TARGET */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
777
|
+
`Unsupported event target ${target} for event ${event}`);
|
777
778
|
}
|
778
779
|
}
|
779
780
|
let wrappedCallback = this.decoratePreventDefault(callback);
|
780
|
-
if (this.tracingService
|
781
|
+
if (this.tracingService?.wrapEventListener) {
|
781
782
|
wrappedCallback = this.tracingService.wrapEventListener(target, event, wrappedCallback);
|
782
783
|
}
|
783
784
|
return this.eventManager.addEventListener(target, event, wrappedCallback, options);
|
@@ -811,7 +812,7 @@ class DefaultDomRenderer2 {
|
|
811
812
|
const AT_CHARCODE = (() => '@'.charCodeAt(0))();
|
812
813
|
function checkNoSyntheticProp(name, nameKind) {
|
813
814
|
if (name.charCodeAt(0) === AT_CHARCODE) {
|
814
|
-
throw new
|
815
|
+
throw new _RuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
|
815
816
|
- Make sure \`provideAnimationsAsync()\`, \`provideAnimations()\` or \`provideNoopAnimations()\` call was added to a list of providers used to bootstrap an application.
|
816
817
|
- There is a corresponding animation configuration named \`${name}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.dev/api/core/Component#animations).`);
|
817
818
|
}
|
@@ -832,7 +833,7 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
|
|
832
833
|
let styles = component.styles;
|
833
834
|
if (ngDevMode) {
|
834
835
|
// We only do this in development, as for production users should not add CSS sourcemaps to components.
|
835
|
-
const baseHref =
|
836
|
+
const baseHref = _getDOM().getBaseHref(doc) ?? '';
|
836
837
|
styles = addBaseHrefToCssSourceMap(baseHref, styles);
|
837
838
|
}
|
838
839
|
styles = shimStylesContent(component.id, styles);
|
@@ -892,7 +893,7 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
|
892
893
|
let styles = component.styles;
|
893
894
|
if (ngDevMode) {
|
894
895
|
// We only do this in development, as for production users should not add CSS sourcemaps to components.
|
895
|
-
const baseHref =
|
896
|
+
const baseHref = _getDOM().getBaseHref(doc) ?? '';
|
896
897
|
styles = addBaseHrefToCssSourceMap(baseHref, styles);
|
897
898
|
}
|
898
899
|
this.styles = compId ? shimStylesContent(compId, styles) : styles;
|
@@ -944,10 +945,10 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
944
945
|
removeEventListener(target, eventName, callback, options) {
|
945
946
|
return target.removeEventListener(eventName, callback, options);
|
946
947
|
}
|
947
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
948
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
948
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
949
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomEventsPlugin });
|
949
950
|
}
|
950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
951
952
|
type: Injectable
|
952
953
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
953
954
|
type: Inject,
|
@@ -1015,7 +1016,7 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
1015
1016
|
const parsedEvent = KeyEventsPlugin.parseEventName(eventName);
|
1016
1017
|
const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
|
1017
1018
|
return this.manager.getZone().runOutsideAngular(() => {
|
1018
|
-
return
|
1019
|
+
return _getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler, options);
|
1019
1020
|
});
|
1020
1021
|
}
|
1021
1022
|
/**
|
@@ -1116,10 +1117,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
1116
1117
|
static _normalizeKey(keyName) {
|
1117
1118
|
return keyName === 'esc' ? 'escape' : keyName;
|
1118
1119
|
}
|
1119
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1120
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
1120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1121
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: KeyEventsPlugin });
|
1121
1122
|
}
|
1122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
1123
1124
|
type: Injectable
|
1124
1125
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1125
1126
|
type: Inject,
|
@@ -1186,7 +1187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
1186
1187
|
* @publicApi
|
1187
1188
|
*/
|
1188
1189
|
function bootstrapApplication(rootComponent, options) {
|
1189
|
-
return
|
1190
|
+
return _internalCreateApplication({ rootComponent, ...createProvidersConfig(options) });
|
1190
1191
|
}
|
1191
1192
|
/**
|
1192
1193
|
* Create an instance of an Angular application without bootstrapping any components. This is useful
|
@@ -1201,7 +1202,7 @@ function bootstrapApplication(rootComponent, options) {
|
|
1201
1202
|
* @publicApi
|
1202
1203
|
*/
|
1203
1204
|
function createApplication(options) {
|
1204
|
-
return
|
1205
|
+
return _internalCreateApplication(createProvidersConfig(options));
|
1205
1206
|
}
|
1206
1207
|
function createProvidersConfig(options) {
|
1207
1208
|
return {
|
@@ -1234,11 +1235,11 @@ function errorHandler() {
|
|
1234
1235
|
}
|
1235
1236
|
function _document() {
|
1236
1237
|
// Tell ivy about the global document
|
1237
|
-
|
1238
|
+
_setDocument(document);
|
1238
1239
|
return document;
|
1239
1240
|
}
|
1240
1241
|
const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [
|
1241
|
-
{ provide: PLATFORM_ID, useValue:
|
1242
|
+
{ provide: PLATFORM_ID, useValue: _PLATFORM_BROWSER_ID },
|
1242
1243
|
{ provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },
|
1243
1244
|
{ provide: DOCUMENT, useFactory: _document, deps: [] },
|
1244
1245
|
];
|
@@ -1258,23 +1259,23 @@ const platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_
|
|
1258
1259
|
const BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '');
|
1259
1260
|
const TESTABILITY_PROVIDERS = [
|
1260
1261
|
{
|
1261
|
-
provide:
|
1262
|
+
provide: _TESTABILITY_GETTER,
|
1262
1263
|
useClass: BrowserGetTestability,
|
1263
1264
|
deps: [],
|
1264
1265
|
},
|
1265
1266
|
{
|
1266
|
-
provide:
|
1267
|
+
provide: _TESTABILITY,
|
1267
1268
|
useClass: Testability,
|
1268
|
-
deps: [NgZone, TestabilityRegistry,
|
1269
|
+
deps: [NgZone, TestabilityRegistry, _TESTABILITY_GETTER],
|
1269
1270
|
},
|
1270
1271
|
{
|
1271
1272
|
provide: Testability, // Also provide as `Testability` for backwards-compatibility.
|
1272
1273
|
useClass: Testability,
|
1273
|
-
deps: [NgZone, TestabilityRegistry,
|
1274
|
+
deps: [NgZone, TestabilityRegistry, _TESTABILITY_GETTER],
|
1274
1275
|
},
|
1275
1276
|
];
|
1276
1277
|
const BROWSER_MODULE_PROVIDERS = [
|
1277
|
-
{ provide:
|
1278
|
+
{ provide: _INJECTOR_SCOPE, useValue: 'root' },
|
1278
1279
|
{ provide: ErrorHandler, useFactory: errorHandler, deps: [] },
|
1279
1280
|
{
|
1280
1281
|
provide: EVENT_MANAGER_PLUGINS,
|
@@ -1309,16 +1310,16 @@ class BrowserModule {
|
|
1309
1310
|
skipSelf: true,
|
1310
1311
|
});
|
1311
1312
|
if (providersAlreadyPresent) {
|
1312
|
-
throw new
|
1313
|
+
throw new _RuntimeError(5100 /* RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED */, `Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
|
1313
1314
|
`to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
|
1314
1315
|
}
|
1315
1316
|
}
|
1316
1317
|
}
|
1317
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1318
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
1319
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
1318
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1319
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1320
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
|
1320
1321
|
}
|
1321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BrowserModule, decorators: [{
|
1322
1323
|
type: NgModule,
|
1323
1324
|
args: [{
|
1324
1325
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
@@ -1353,7 +1354,7 @@ class Meta {
|
|
1353
1354
|
_dom;
|
1354
1355
|
constructor(_doc) {
|
1355
1356
|
this._doc = _doc;
|
1356
|
-
this._dom =
|
1357
|
+
this._dom = _getDOM();
|
1357
1358
|
}
|
1358
1359
|
/**
|
1359
1360
|
* Retrieves or creates a specific `<meta>` tag element in the current HTML document.
|
@@ -1477,10 +1478,10 @@ class Meta {
|
|
1477
1478
|
_getMetaKeyMap(prop) {
|
1478
1479
|
return META_KEYS_MAP[prop] || prop;
|
1479
1480
|
}
|
1480
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1481
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
1481
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1482
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Meta, providedIn: 'root' });
|
1482
1483
|
}
|
1483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Meta, decorators: [{
|
1484
1485
|
type: Injectable,
|
1485
1486
|
args: [{ providedIn: 'root' }]
|
1486
1487
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1522,10 +1523,10 @@ class Title {
|
|
1522
1523
|
setTitle(newTitle) {
|
1523
1524
|
this._doc.title = newTitle || '';
|
1524
1525
|
}
|
1525
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1526
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
1526
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1527
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Title, providedIn: 'root' });
|
1527
1528
|
}
|
1528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Title, decorators: [{
|
1529
1530
|
type: Injectable,
|
1530
1531
|
args: [{ providedIn: 'root' }]
|
1531
1532
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1546,7 +1547,7 @@ function exportNgVar(name, value) {
|
|
1546
1547
|
// - closure declares globals itself for minified names, which sometimes clobber our `ng` global
|
1547
1548
|
// - we can't declare a closure extern as the namespace `ng` is already used within Google
|
1548
1549
|
// for typings for angularJS (via `goog.provide('ng....')`).
|
1549
|
-
const ng = (
|
1550
|
+
const ng = (_global['ng'] = _global['ng'] || {});
|
1550
1551
|
ng[name] = value;
|
1551
1552
|
}
|
1552
1553
|
}
|
@@ -1681,7 +1682,7 @@ class By {
|
|
1681
1682
|
}
|
1682
1683
|
}
|
1683
1684
|
function elementMatches(n, selector) {
|
1684
|
-
if (
|
1685
|
+
if (_getDOM().isElementNode(n)) {
|
1685
1686
|
return ((n.matches && n.matches(selector)) ||
|
1686
1687
|
(n.msMatchesSelector && n.msMatchesSelector(selector)) ||
|
1687
1688
|
(n.webkitMatchesSelector && n.webkitMatchesSelector(selector)));
|
@@ -1798,10 +1799,10 @@ class HammerGestureConfig {
|
|
1798
1799
|
}
|
1799
1800
|
return mc;
|
1800
1801
|
}
|
1801
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1802
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
1802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1803
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerGestureConfig });
|
1803
1804
|
}
|
1804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1805
1806
|
type: Injectable
|
1806
1807
|
}] });
|
1807
1808
|
/**
|
@@ -1828,7 +1829,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1828
1829
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1829
1830
|
// Get a `Console` through an injector to tree-shake the
|
1830
1831
|
// class when it is unused in production.
|
1831
|
-
const _console = this._injector.get(
|
1832
|
+
const _console = this._injector.get(_Console);
|
1832
1833
|
_console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` +
|
1833
1834
|
`loaded and no custom loader has been specified.`);
|
1834
1835
|
}
|
@@ -1854,7 +1855,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1854
1855
|
// If Hammer isn't actually loaded when the custom loader resolves, give up.
|
1855
1856
|
if (!window.Hammer) {
|
1856
1857
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1857
|
-
const _console = this._injector.get(
|
1858
|
+
const _console = this._injector.get(_Console);
|
1858
1859
|
_console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
|
1859
1860
|
}
|
1860
1861
|
deregister = () => { };
|
@@ -1868,7 +1869,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1868
1869
|
}
|
1869
1870
|
}).catch(() => {
|
1870
1871
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1871
|
-
const _console = this._injector.get(
|
1872
|
+
const _console = this._injector.get(_Console);
|
1872
1873
|
_console.warn(`The "${eventName}" event cannot be bound because the custom ` +
|
1873
1874
|
`Hammer.JS loader failed.`);
|
1874
1875
|
}
|
@@ -1902,10 +1903,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1902
1903
|
isCustomEvent(eventName) {
|
1903
1904
|
return this._config.events.indexOf(eventName) > -1;
|
1904
1905
|
}
|
1905
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1906
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
1906
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.Injector }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1907
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerGesturesPlugin });
|
1907
1908
|
}
|
1908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1909
1910
|
type: Injectable
|
1910
1911
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1911
1912
|
type: Inject,
|
@@ -1931,9 +1932,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
1931
1932
|
* @publicApi
|
1932
1933
|
*/
|
1933
1934
|
class HammerModule {
|
1934
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1935
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
1936
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
1935
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1936
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: HammerModule });
|
1937
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerModule, providers: [
|
1937
1938
|
{
|
1938
1939
|
provide: EVENT_MANAGER_PLUGINS,
|
1939
1940
|
useClass: HammerGesturesPlugin,
|
@@ -1943,7 +1944,7 @@ class HammerModule {
|
|
1943
1944
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1944
1945
|
] });
|
1945
1946
|
}
|
1946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HammerModule, decorators: [{
|
1947
1948
|
type: NgModule,
|
1948
1949
|
args: [{
|
1949
1950
|
providers: [
|
@@ -1990,10 +1991,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
1990
1991
|
* @publicApi
|
1991
1992
|
*/
|
1992
1993
|
class DomSanitizer {
|
1993
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
1994
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
1994
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1995
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });
|
1995
1996
|
}
|
1996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
1997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomSanitizer, decorators: [{
|
1997
1998
|
type: Injectable,
|
1998
1999
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1999
2000
|
}] });
|
@@ -2010,56 +2011,56 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
2010
2011
|
case SecurityContext.NONE:
|
2011
2012
|
return value;
|
2012
2013
|
case SecurityContext.HTML:
|
2013
|
-
if (
|
2014
|
-
return
|
2014
|
+
if (_allowSanitizationBypassAndThrow(value, "HTML" /* BypassType.Html */)) {
|
2015
|
+
return _unwrapSafeValue(value);
|
2015
2016
|
}
|
2016
|
-
return
|
2017
|
+
return __sanitizeHtml(this._doc, String(value)).toString();
|
2017
2018
|
case SecurityContext.STYLE:
|
2018
|
-
if (
|
2019
|
-
return
|
2019
|
+
if (_allowSanitizationBypassAndThrow(value, "Style" /* BypassType.Style */)) {
|
2020
|
+
return _unwrapSafeValue(value);
|
2020
2021
|
}
|
2021
2022
|
return value;
|
2022
2023
|
case SecurityContext.SCRIPT:
|
2023
|
-
if (
|
2024
|
-
return
|
2024
|
+
if (_allowSanitizationBypassAndThrow(value, "Script" /* BypassType.Script */)) {
|
2025
|
+
return _unwrapSafeValue(value);
|
2025
2026
|
}
|
2026
|
-
throw new
|
2027
|
+
throw new _RuntimeError(5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
2027
2028
|
'unsafe value used in a script context');
|
2028
2029
|
case SecurityContext.URL:
|
2029
|
-
if (
|
2030
|
-
return
|
2030
|
+
if (_allowSanitizationBypassAndThrow(value, "URL" /* BypassType.Url */)) {
|
2031
|
+
return _unwrapSafeValue(value);
|
2031
2032
|
}
|
2032
|
-
return
|
2033
|
+
return __sanitizeUrl(String(value));
|
2033
2034
|
case SecurityContext.RESOURCE_URL:
|
2034
|
-
if (
|
2035
|
-
return
|
2035
|
+
if (_allowSanitizationBypassAndThrow(value, "ResourceURL" /* BypassType.ResourceUrl */)) {
|
2036
|
+
return _unwrapSafeValue(value);
|
2036
2037
|
}
|
2037
|
-
throw new
|
2038
|
-
`unsafe value used in a resource URL context (see ${
|
2038
|
+
throw new _RuntimeError(5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
2039
|
+
`unsafe value used in a resource URL context (see ${_XSS_SECURITY_URL})`);
|
2039
2040
|
default:
|
2040
|
-
throw new
|
2041
|
-
`Unexpected SecurityContext ${ctx} (see ${
|
2041
|
+
throw new _RuntimeError(5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
2042
|
+
`Unexpected SecurityContext ${ctx} (see ${_XSS_SECURITY_URL})`);
|
2042
2043
|
}
|
2043
2044
|
}
|
2044
2045
|
bypassSecurityTrustHtml(value) {
|
2045
|
-
return
|
2046
|
+
return _bypassSanitizationTrustHtml(value);
|
2046
2047
|
}
|
2047
2048
|
bypassSecurityTrustStyle(value) {
|
2048
|
-
return
|
2049
|
+
return _bypassSanitizationTrustStyle(value);
|
2049
2050
|
}
|
2050
2051
|
bypassSecurityTrustScript(value) {
|
2051
|
-
return
|
2052
|
+
return _bypassSanitizationTrustScript(value);
|
2052
2053
|
}
|
2053
2054
|
bypassSecurityTrustUrl(value) {
|
2054
|
-
return
|
2055
|
+
return _bypassSanitizationTrustUrl(value);
|
2055
2056
|
}
|
2056
2057
|
bypassSecurityTrustResourceUrl(value) {
|
2057
|
-
return
|
2058
|
+
return _bypassSanitizationTrustResourceUrl(value);
|
2058
2059
|
}
|
2059
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
2060
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
2060
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2061
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });
|
2061
2062
|
}
|
2062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
2063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
2063
2064
|
type: Injectable,
|
2064
2065
|
args: [{ providedIn: 'root' }]
|
2065
2066
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -2108,7 +2109,7 @@ function withNoHttpTransferCache() {
|
|
2108
2109
|
*/
|
2109
2110
|
function withHttpTransferCacheOptions(options) {
|
2110
2111
|
// This feature has no providers and acts as a flag to pass options to the HTTP transfer cache.
|
2111
|
-
return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions,
|
2112
|
+
return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, _withHttpTransferCache(options));
|
2112
2113
|
}
|
2113
2114
|
/**
|
2114
2115
|
* Enables support for hydrating i18n blocks.
|
@@ -2117,7 +2118,7 @@ function withHttpTransferCacheOptions(options) {
|
|
2117
2118
|
* @publicApi
|
2118
2119
|
*/
|
2119
2120
|
function withI18nSupport() {
|
2120
|
-
return hydrationFeature(HydrationFeatureKind.I18nSupport,
|
2121
|
+
return hydrationFeature(HydrationFeatureKind.I18nSupport, _withI18nSupport());
|
2121
2122
|
}
|
2122
2123
|
/**
|
2123
2124
|
* Enables support for replaying user events (e.g. `click`s) that happened on a page
|
@@ -2137,7 +2138,7 @@ function withI18nSupport() {
|
|
2137
2138
|
* @see {@link provideClientHydration}
|
2138
2139
|
*/
|
2139
2140
|
function withEventReplay() {
|
2140
|
-
return hydrationFeature(HydrationFeatureKind.EventReplay,
|
2141
|
+
return hydrationFeature(HydrationFeatureKind.EventReplay, _withEventReplay());
|
2141
2142
|
}
|
2142
2143
|
/**
|
2143
2144
|
* Enables support for incremental hydration using the `hydrate` trigger syntax.
|
@@ -2156,7 +2157,7 @@ function withEventReplay() {
|
|
2156
2157
|
* @see {@link provideClientHydration}
|
2157
2158
|
*/
|
2158
2159
|
function withIncrementalHydration() {
|
2159
|
-
return hydrationFeature(HydrationFeatureKind.IncrementalHydration,
|
2160
|
+
return hydrationFeature(HydrationFeatureKind.IncrementalHydration, _withIncrementalHydration());
|
2160
2161
|
}
|
2161
2162
|
/**
|
2162
2163
|
* Returns an `ENVIRONMENT_INITIALIZER` token setup with a function
|
@@ -2169,12 +2170,12 @@ function provideZoneJsCompatibilityDetector() {
|
|
2169
2170
|
provide: ENVIRONMENT_INITIALIZER,
|
2170
2171
|
useValue: () => {
|
2171
2172
|
const ngZone = inject(NgZone);
|
2172
|
-
const isZoneless = inject(
|
2173
|
+
const isZoneless = inject(_ZONELESS_ENABLED);
|
2173
2174
|
// Checking `ngZone instanceof NgZone` would be insufficient here,
|
2174
2175
|
// because custom implementations might use NgZone as a base class.
|
2175
2176
|
if (!isZoneless && ngZone.constructor !== NgZone) {
|
2176
|
-
const console = inject(
|
2177
|
-
const message =
|
2177
|
+
const console = inject(_Console);
|
2178
|
+
const message = _formatRuntimeError(-5e3 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' +
|
2178
2179
|
'that uses a custom or a noop Zone.js implementation. ' +
|
2179
2180
|
'This is not yet a fully supported configuration.');
|
2180
2181
|
console.warn(message);
|
@@ -2252,10 +2253,10 @@ function provideClientHydration(...features) {
|
|
2252
2253
|
}
|
2253
2254
|
return makeEnvironmentProviders([
|
2254
2255
|
typeof ngDevMode !== 'undefined' && ngDevMode ? provideZoneJsCompatibilityDetector() : [],
|
2255
|
-
|
2256
|
+
_withDomHydration(),
|
2256
2257
|
featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions
|
2257
2258
|
? []
|
2258
|
-
:
|
2259
|
+
: _withHttpTransferCache({}),
|
2259
2260
|
providers,
|
2260
2261
|
]);
|
2261
2262
|
}
|
@@ -2268,20 +2269,7 @@ function provideClientHydration(...features) {
|
|
2268
2269
|
/**
|
2269
2270
|
* @publicApi
|
2270
2271
|
*/
|
2271
|
-
const VERSION = new Version('19.2.
|
2272
|
-
|
2273
|
-
/**
|
2274
|
-
* @module
|
2275
|
-
* @description
|
2276
|
-
* Entry point for all public APIs of this package.
|
2277
|
-
*/
|
2278
|
-
// This file only reexports content of the `src` folder. Keep it that way.
|
2279
|
-
|
2280
|
-
// This file is not used to build this module. It is only used during editing
|
2281
|
-
|
2282
|
-
/**
|
2283
|
-
* Generated bundle index. Do not edit.
|
2284
|
-
*/
|
2272
|
+
const VERSION = new Version('19.2.2');
|
2285
2273
|
|
2286
2274
|
export { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withEventReplay, withHttpTransferCacheOptions, withI18nSupport, withIncrementalHydration, 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 };
|
2287
2275
|
//# sourceMappingURL=platform-browser.mjs.map
|