@angular/platform-browser 19.0.0-next.9 → 19.0.0-rc.0
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/fesm2022/animations/async.mjs +19 -12
- package/fesm2022/animations/async.mjs.map +1 -1
- package/fesm2022/animations.mjs +12 -12
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +172 -104
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +6 -6
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +23 -4
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.0.0-
|
2
|
+
* @license Angular v19.0.0-rc.0
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -7,7 +7,7 @@
|
|
7
7
|
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } 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, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ɵwithI18nSupport, ɵwithEventReplay, ENVIRONMENT_INITIALIZER, inject, ɵZONELESS_ENABLED, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version } from '@angular/core';
|
10
|
+
import { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ɵwithI18nSupport, ɵwithEventReplay, ɵwithIncrementalHydration, ENVIRONMENT_INITIALIZER, inject, ɵZONELESS_ENABLED, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version } from '@angular/core';
|
11
11
|
import { ɵwithHttpTransferCache } from '@angular/common/http';
|
12
12
|
|
13
13
|
/**
|
@@ -17,10 +17,7 @@ import { ɵwithHttpTransferCache } from '@angular/common/http';
|
|
17
17
|
* can introduce XSS risks.
|
18
18
|
*/
|
19
19
|
class GenericBrowserDomAdapter extends ɵDomAdapter {
|
20
|
-
|
21
|
-
super(...arguments);
|
22
|
-
this.supportsDOMEvents = true;
|
23
|
-
}
|
20
|
+
supportsDOMEvents = true;
|
24
21
|
}
|
25
22
|
|
26
23
|
/**
|
@@ -155,10 +152,10 @@ class BrowserXhr {
|
|
155
152
|
build() {
|
156
153
|
return new XMLHttpRequest();
|
157
154
|
}
|
158
|
-
static
|
159
|
-
static
|
155
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
156
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: BrowserXhr });
|
160
157
|
}
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: BrowserXhr, decorators: [{
|
162
159
|
type: Injectable
|
163
160
|
}] });
|
164
161
|
|
@@ -175,12 +172,14 @@ const EVENT_MANAGER_PLUGINS = new InjectionToken(ngDevMode ? 'EventManagerPlugin
|
|
175
172
|
* @publicApi
|
176
173
|
*/
|
177
174
|
class EventManager {
|
175
|
+
_zone;
|
176
|
+
_plugins;
|
177
|
+
_eventNameToPlugin = new Map();
|
178
178
|
/**
|
179
179
|
* Initializes an instance of the event-manager service.
|
180
180
|
*/
|
181
181
|
constructor(plugins, _zone) {
|
182
182
|
this._zone = _zone;
|
183
|
-
this._eventNameToPlugin = new Map();
|
184
183
|
plugins.forEach((plugin) => {
|
185
184
|
plugin.manager = this;
|
186
185
|
});
|
@@ -220,10 +219,10 @@ class EventManager {
|
|
220
219
|
this._eventNameToPlugin.set(eventName, plugin);
|
221
220
|
return plugin;
|
222
221
|
}
|
223
|
-
static
|
224
|
-
static
|
222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", 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.0.0-rc.0", ngImport: i0, type: EventManager });
|
225
224
|
}
|
226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: EventManager, decorators: [{
|
227
226
|
type: Injectable
|
228
227
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
229
228
|
type: Inject,
|
@@ -238,10 +237,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
238
237
|
* @publicApi
|
239
238
|
*/
|
240
239
|
class EventManagerPlugin {
|
240
|
+
_doc;
|
241
241
|
// TODO: remove (has some usage in G3)
|
242
242
|
constructor(_doc) {
|
243
243
|
this._doc = _doc;
|
244
244
|
}
|
245
|
+
// Using non-null assertion because it's set by EventManager's constructor
|
246
|
+
manager;
|
245
247
|
}
|
246
248
|
|
247
249
|
/** The style elements attribute name used to set value of `APP_ID` token. */
|
@@ -297,24 +299,31 @@ function createLinkElement(url, doc) {
|
|
297
299
|
return linkElement;
|
298
300
|
}
|
299
301
|
class SharedStylesHost {
|
302
|
+
doc;
|
303
|
+
appId;
|
304
|
+
nonce;
|
305
|
+
/**
|
306
|
+
* Provides usage information for active inline style content and associated HTML <style> elements.
|
307
|
+
* Embedded styles typically originate from the `styles` metadata of a rendered component.
|
308
|
+
*/
|
309
|
+
inline = new Map();
|
310
|
+
/**
|
311
|
+
* Provides usage information for active external style URLs and the associated HTML <link> elements.
|
312
|
+
* External styles typically originate from the `ɵɵExternalStylesFeature` of a rendered component.
|
313
|
+
*/
|
314
|
+
external = new Map();
|
315
|
+
/**
|
316
|
+
* Set of host DOM nodes that will have styles attached.
|
317
|
+
*/
|
318
|
+
hosts = new Set();
|
319
|
+
/**
|
320
|
+
* Whether the application code is currently executing on a server.
|
321
|
+
*/
|
322
|
+
isServer;
|
300
323
|
constructor(doc, appId, nonce, platformId = {}) {
|
301
324
|
this.doc = doc;
|
302
325
|
this.appId = appId;
|
303
326
|
this.nonce = nonce;
|
304
|
-
/**
|
305
|
-
* Provides usage information for active inline style content and associated HTML <style> elements.
|
306
|
-
* Embedded styles typically originate from the `styles` metadata of a rendered component.
|
307
|
-
*/
|
308
|
-
this.inline = new Map();
|
309
|
-
/**
|
310
|
-
* Provides usage information for active external style URLs and the associated HTML <link> elements.
|
311
|
-
* External styles typically originate from the `ɵɵExternalStylesFeature` of a rendered component.
|
312
|
-
*/
|
313
|
-
this.external = new Map();
|
314
|
-
/**
|
315
|
-
* Set of host DOM nodes that will have styles attached.
|
316
|
-
*/
|
317
|
-
this.hosts = new Set();
|
318
327
|
this.isServer = isPlatformServer(platformId);
|
319
328
|
addServerStyles(doc, appId, this.inline);
|
320
329
|
this.hosts.add(doc.head);
|
@@ -409,10 +418,10 @@ class SharedStylesHost {
|
|
409
418
|
// Insert the element into the DOM with the host node as parent
|
410
419
|
return host.appendChild(element);
|
411
420
|
}
|
412
|
-
static
|
413
|
-
static
|
421
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
422
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: SharedStylesHost });
|
414
423
|
}
|
415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: SharedStylesHost, decorators: [{
|
416
425
|
type: Injectable
|
417
426
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
418
427
|
type: Inject,
|
@@ -467,6 +476,17 @@ function shimStylesContent(compId, styles) {
|
|
467
476
|
return styles.map((s) => s.replace(COMPONENT_REGEX, compId));
|
468
477
|
}
|
469
478
|
class DomRendererFactory2 {
|
479
|
+
eventManager;
|
480
|
+
sharedStylesHost;
|
481
|
+
appId;
|
482
|
+
removeStylesOnCompDestroy;
|
483
|
+
doc;
|
484
|
+
platformId;
|
485
|
+
ngZone;
|
486
|
+
nonce;
|
487
|
+
rendererByCompId = new Map();
|
488
|
+
defaultRenderer;
|
489
|
+
platformIsServer;
|
470
490
|
constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestroy, doc, platformId, ngZone, nonce = null) {
|
471
491
|
this.eventManager = eventManager;
|
472
492
|
this.sharedStylesHost = sharedStylesHost;
|
@@ -476,7 +496,6 @@ class DomRendererFactory2 {
|
|
476
496
|
this.platformId = platformId;
|
477
497
|
this.ngZone = ngZone;
|
478
498
|
this.nonce = nonce;
|
479
|
-
this.rendererByCompId = new Map();
|
480
499
|
this.platformIsServer = isPlatformServer(platformId);
|
481
500
|
this.defaultRenderer = new DefaultDomRenderer2(eventManager, doc, ngZone, this.platformIsServer);
|
482
501
|
}
|
@@ -526,10 +545,10 @@ class DomRendererFactory2 {
|
|
526
545
|
ngOnDestroy() {
|
527
546
|
this.rendererByCompId.clear();
|
528
547
|
}
|
529
|
-
static
|
530
|
-
static
|
548
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", 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 });
|
549
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomRendererFactory2 });
|
531
550
|
}
|
532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
533
552
|
type: Injectable
|
534
553
|
}], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
|
535
554
|
type: Inject,
|
@@ -548,20 +567,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
548
567
|
args: [CSP_NONCE]
|
549
568
|
}] }] });
|
550
569
|
class DefaultDomRenderer2 {
|
570
|
+
eventManager;
|
571
|
+
doc;
|
572
|
+
ngZone;
|
573
|
+
platformIsServer;
|
574
|
+
data = Object.create(null);
|
575
|
+
/**
|
576
|
+
* By default this renderer throws when encountering synthetic properties
|
577
|
+
* This can be disabled for example by the AsyncAnimationRendererFactory
|
578
|
+
*/
|
579
|
+
throwOnSyntheticProps = true;
|
551
580
|
constructor(eventManager, doc, ngZone, platformIsServer) {
|
552
581
|
this.eventManager = eventManager;
|
553
582
|
this.doc = doc;
|
554
583
|
this.ngZone = ngZone;
|
555
584
|
this.platformIsServer = platformIsServer;
|
556
|
-
this.data = Object.create(null);
|
557
|
-
/**
|
558
|
-
* By default this renderer throws when encountering synthetic properties
|
559
|
-
* This can be disabled for example by the AsyncAnimationRendererFactory
|
560
|
-
*/
|
561
|
-
this.throwOnSyntheticProps = true;
|
562
|
-
this.destroyNode = null;
|
563
585
|
}
|
564
586
|
destroy() { }
|
587
|
+
destroyNode = null;
|
565
588
|
createElement(name, namespace) {
|
566
589
|
if (namespace) {
|
567
590
|
// TODO: `|| namespace` was added in
|
@@ -727,6 +750,9 @@ function isTemplateNode(node) {
|
|
727
750
|
return node.tagName === 'TEMPLATE' && node.content !== undefined;
|
728
751
|
}
|
729
752
|
class ShadowDomRenderer extends DefaultDomRenderer2 {
|
753
|
+
sharedStylesHost;
|
754
|
+
hostEl;
|
755
|
+
shadowRoot;
|
730
756
|
constructor(eventManager, sharedStylesHost, hostEl, component, doc, ngZone, nonce, platformIsServer) {
|
731
757
|
super(eventManager, doc, ngZone, platformIsServer);
|
732
758
|
this.sharedStylesHost = sharedStylesHost;
|
@@ -763,6 +789,10 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
|
|
763
789
|
}
|
764
790
|
}
|
765
791
|
class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
792
|
+
sharedStylesHost;
|
793
|
+
removeStylesOnCompDestroy;
|
794
|
+
styles;
|
795
|
+
styleUrls;
|
766
796
|
constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId) {
|
767
797
|
super(eventManager, doc, ngZone, platformIsServer);
|
768
798
|
this.sharedStylesHost = sharedStylesHost;
|
@@ -781,6 +811,8 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
|
781
811
|
}
|
782
812
|
}
|
783
813
|
class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {
|
814
|
+
contentAttr;
|
815
|
+
hostAttr;
|
784
816
|
constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer) {
|
785
817
|
const compId = appId + '-' + component.id;
|
786
818
|
super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId);
|
@@ -814,10 +846,10 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
814
846
|
removeEventListener(target, eventName, callback) {
|
815
847
|
return target.removeEventListener(eventName, callback);
|
816
848
|
}
|
817
|
-
static
|
818
|
-
static
|
849
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
850
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomEventsPlugin });
|
819
851
|
}
|
820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
821
853
|
type: Injectable
|
822
854
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
823
855
|
type: Inject,
|
@@ -986,10 +1018,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
986
1018
|
static _normalizeKey(keyName) {
|
987
1019
|
return keyName === 'esc' ? 'escape' : keyName;
|
988
1020
|
}
|
989
|
-
static
|
990
|
-
static
|
1021
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1022
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: KeyEventsPlugin });
|
991
1023
|
}
|
992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
993
1025
|
type: Injectable
|
994
1026
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
995
1027
|
type: Inject,
|
@@ -1178,11 +1210,11 @@ class BrowserModule {
|
|
1178
1210
|
`to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
|
1179
1211
|
}
|
1180
1212
|
}
|
1181
|
-
static
|
1182
|
-
static
|
1183
|
-
static
|
1213
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1214
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-rc.0", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1215
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
|
1184
1216
|
}
|
1185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: BrowserModule, decorators: [{
|
1186
1218
|
type: NgModule,
|
1187
1219
|
args: [{
|
1188
1220
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
@@ -1220,6 +1252,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1220
1252
|
* @publicApi
|
1221
1253
|
*/
|
1222
1254
|
class Meta {
|
1255
|
+
_doc;
|
1256
|
+
_dom;
|
1223
1257
|
constructor(_doc) {
|
1224
1258
|
this._doc = _doc;
|
1225
1259
|
this._dom = ɵgetDOM();
|
@@ -1346,10 +1380,10 @@ class Meta {
|
|
1346
1380
|
_getMetaKeyMap(prop) {
|
1347
1381
|
return META_KEYS_MAP[prop] || prop;
|
1348
1382
|
}
|
1349
|
-
static
|
1350
|
-
static
|
1383
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1384
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: Meta, providedIn: 'root' });
|
1351
1385
|
}
|
1352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: Meta, decorators: [{
|
1353
1387
|
type: Injectable,
|
1354
1388
|
args: [{ providedIn: 'root' }]
|
1355
1389
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1374,6 +1408,7 @@ const META_KEYS_MAP = {
|
|
1374
1408
|
* @publicApi
|
1375
1409
|
*/
|
1376
1410
|
class Title {
|
1411
|
+
_doc;
|
1377
1412
|
constructor(_doc) {
|
1378
1413
|
this._doc = _doc;
|
1379
1414
|
}
|
@@ -1390,10 +1425,10 @@ class Title {
|
|
1390
1425
|
setTitle(newTitle) {
|
1391
1426
|
this._doc.title = newTitle || '';
|
1392
1427
|
}
|
1393
|
-
static
|
1394
|
-
static
|
1428
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1429
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: Title, providedIn: 'root' });
|
1395
1430
|
}
|
1396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: Title, decorators: [{
|
1397
1432
|
type: Injectable,
|
1398
1433
|
args: [{ providedIn: 'root' }]
|
1399
1434
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1420,6 +1455,8 @@ function exportNgVar(name, value) {
|
|
1420
1455
|
}
|
1421
1456
|
|
1422
1457
|
class ChangeDetectionPerfRecord {
|
1458
|
+
msPerTick;
|
1459
|
+
numTicks;
|
1423
1460
|
constructor(msPerTick, numTicks) {
|
1424
1461
|
this.msPerTick = msPerTick;
|
1425
1462
|
this.numTicks = numTicks;
|
@@ -1430,6 +1467,7 @@ class ChangeDetectionPerfRecord {
|
|
1430
1467
|
* corresponds to the `ng.profiler` in the dev console.
|
1431
1468
|
*/
|
1432
1469
|
class AngularProfiler {
|
1470
|
+
appRef;
|
1433
1471
|
constructor(ref) {
|
1434
1472
|
this.appRef = ref.injector.get(ApplicationRef);
|
1435
1473
|
}
|
@@ -1617,31 +1655,37 @@ const HAMMER_LOADER = new InjectionToken('HammerLoader');
|
|
1617
1655
|
* @publicApi
|
1618
1656
|
*/
|
1619
1657
|
class HammerGestureConfig {
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1658
|
+
/**
|
1659
|
+
* A set of supported event names for gestures to be used in Angular.
|
1660
|
+
* Angular supports all built-in recognizers, as listed in
|
1661
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1662
|
+
*/
|
1663
|
+
events = [];
|
1664
|
+
/**
|
1665
|
+
* Maps gesture event names to a set of configuration options
|
1666
|
+
* that specify overrides to the default values for specific properties.
|
1667
|
+
*
|
1668
|
+
* The key is a supported event name to be configured,
|
1669
|
+
* and the options object contains a set of properties, with override values
|
1670
|
+
* to be applied to the named recognizer event.
|
1671
|
+
* For example, to disable recognition of the rotate event, specify
|
1672
|
+
* `{"rotate": {"enable": false}}`.
|
1673
|
+
*
|
1674
|
+
* Properties that are not present take the HammerJS default values.
|
1675
|
+
* For information about which properties are supported for which events,
|
1676
|
+
* and their allowed and default values, see
|
1677
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1678
|
+
*
|
1679
|
+
*/
|
1680
|
+
overrides = {};
|
1681
|
+
/**
|
1682
|
+
* Properties whose default values can be overridden for a given event.
|
1683
|
+
* Different sets of properties apply to different events.
|
1684
|
+
* For information about which properties are supported for which events,
|
1685
|
+
* and their allowed and default values, see
|
1686
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1687
|
+
*/
|
1688
|
+
options;
|
1645
1689
|
/**
|
1646
1690
|
* Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
|
1647
1691
|
* and attaches it to a given HTML element.
|
@@ -1657,10 +1701,10 @@ class HammerGestureConfig {
|
|
1657
1701
|
}
|
1658
1702
|
return mc;
|
1659
1703
|
}
|
1660
|
-
static
|
1661
|
-
static
|
1704
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1705
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerGestureConfig });
|
1662
1706
|
}
|
1663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1664
1708
|
type: Injectable
|
1665
1709
|
}] });
|
1666
1710
|
/**
|
@@ -1669,12 +1713,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1669
1713
|
* @ngModule HammerModule
|
1670
1714
|
*/
|
1671
1715
|
class HammerGesturesPlugin extends EventManagerPlugin {
|
1716
|
+
_config;
|
1717
|
+
console;
|
1718
|
+
loader;
|
1719
|
+
_loaderPromise = null;
|
1672
1720
|
constructor(doc, _config, console, loader) {
|
1673
1721
|
super(doc);
|
1674
1722
|
this._config = _config;
|
1675
1723
|
this.console = console;
|
1676
1724
|
this.loader = loader;
|
1677
|
-
this._loaderPromise = null;
|
1678
1725
|
}
|
1679
1726
|
supports(eventName) {
|
1680
1727
|
if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
|
@@ -1753,10 +1800,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1753
1800
|
isCustomEvent(eventName) {
|
1754
1801
|
return this._config.events.indexOf(eventName) > -1;
|
1755
1802
|
}
|
1756
|
-
static
|
1757
|
-
static
|
1803
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1804
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerGesturesPlugin });
|
1758
1805
|
}
|
1759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1760
1807
|
type: Injectable
|
1761
1808
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1762
1809
|
type: Inject,
|
@@ -1782,9 +1829,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1782
1829
|
* @publicApi
|
1783
1830
|
*/
|
1784
1831
|
class HammerModule {
|
1785
|
-
static
|
1786
|
-
static
|
1787
|
-
static
|
1832
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1833
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerModule });
|
1834
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerModule, providers: [
|
1788
1835
|
{
|
1789
1836
|
provide: EVENT_MANAGER_PLUGINS,
|
1790
1837
|
useClass: HammerGesturesPlugin,
|
@@ -1792,9 +1839,9 @@ class HammerModule {
|
|
1792
1839
|
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]],
|
1793
1840
|
},
|
1794
1841
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1795
|
-
] });
|
1842
|
+
] });
|
1796
1843
|
}
|
1797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: HammerModule, decorators: [{
|
1798
1845
|
type: NgModule,
|
1799
1846
|
args: [{
|
1800
1847
|
providers: [
|
@@ -1841,14 +1888,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1841
1888
|
* @publicApi
|
1842
1889
|
*/
|
1843
1890
|
class DomSanitizer {
|
1844
|
-
static
|
1845
|
-
static
|
1891
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1892
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });
|
1846
1893
|
}
|
1847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomSanitizer, decorators: [{
|
1848
1895
|
type: Injectable,
|
1849
1896
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1850
1897
|
}] });
|
1851
1898
|
class DomSanitizerImpl extends DomSanitizer {
|
1899
|
+
_doc;
|
1852
1900
|
constructor(_doc) {
|
1853
1901
|
super();
|
1854
1902
|
this._doc = _doc;
|
@@ -1906,10 +1954,10 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1906
1954
|
bypassSecurityTrustResourceUrl(value) {
|
1907
1955
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1908
1956
|
}
|
1909
|
-
static
|
1910
|
-
static
|
1957
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1958
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });
|
1911
1959
|
}
|
1912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.0", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1913
1961
|
type: Injectable,
|
1914
1962
|
args: [{ providedIn: 'root' }]
|
1915
1963
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1929,6 +1977,7 @@ var HydrationFeatureKind;
|
|
1929
1977
|
HydrationFeatureKind[HydrationFeatureKind["HttpTransferCacheOptions"] = 1] = "HttpTransferCacheOptions";
|
1930
1978
|
HydrationFeatureKind[HydrationFeatureKind["I18nSupport"] = 2] = "I18nSupport";
|
1931
1979
|
HydrationFeatureKind[HydrationFeatureKind["EventReplay"] = 3] = "EventReplay";
|
1980
|
+
HydrationFeatureKind[HydrationFeatureKind["IncrementalHydration"] = 4] = "IncrementalHydration";
|
1932
1981
|
})(HydrationFeatureKind || (HydrationFeatureKind = {}));
|
1933
1982
|
/**
|
1934
1983
|
* Helper function to create an object that represents a Hydration feature.
|
@@ -1948,9 +1997,9 @@ function withNoHttpTransferCache() {
|
|
1948
1997
|
return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);
|
1949
1998
|
}
|
1950
1999
|
/**
|
1951
|
-
* The function accepts
|
2000
|
+
* The function accepts an object, which allows to configure cache parameters,
|
1952
2001
|
* such as which headers should be included (no headers are included by default),
|
1953
|
-
*
|
2002
|
+
* whether POST requests should be cached or a callback function to determine if a
|
1954
2003
|
* particular request should be cached.
|
1955
2004
|
*
|
1956
2005
|
* @publicApi
|
@@ -1988,6 +2037,25 @@ function withI18nSupport() {
|
|
1988
2037
|
function withEventReplay() {
|
1989
2038
|
return hydrationFeature(HydrationFeatureKind.EventReplay, ɵwithEventReplay());
|
1990
2039
|
}
|
2040
|
+
/**
|
2041
|
+
* Enables support for incremental hydration using the `hydrate` trigger syntax.
|
2042
|
+
*
|
2043
|
+
* @usageNotes
|
2044
|
+
*
|
2045
|
+
* Basic example of how you can enable incremental hydration in your application when
|
2046
|
+
* the `bootstrapApplication` function is used:
|
2047
|
+
* ```
|
2048
|
+
* bootstrapApplication(AppComponent, {
|
2049
|
+
* providers: [provideClientHydration(withIncrementalHydration())]
|
2050
|
+
* });
|
2051
|
+
* ```
|
2052
|
+
* @experimental
|
2053
|
+
* @publicApi
|
2054
|
+
* @see {@link provideClientHydration}
|
2055
|
+
*/
|
2056
|
+
function withIncrementalHydration() {
|
2057
|
+
return hydrationFeature(HydrationFeatureKind.IncrementalHydration, ɵwithIncrementalHydration());
|
2058
|
+
}
|
1991
2059
|
/**
|
1992
2060
|
* Returns an `ENVIRONMENT_INITIALIZER` token setup with a function
|
1993
2061
|
* that verifies whether compatible ZoneJS was used in an application
|
@@ -2099,7 +2167,7 @@ function provideClientHydration(...features) {
|
|
2099
2167
|
/**
|
2100
2168
|
* @publicApi
|
2101
2169
|
*/
|
2102
|
-
const VERSION = new Version('19.0.0-
|
2170
|
+
const VERSION = new Version('19.0.0-rc.0');
|
2103
2171
|
|
2104
2172
|
/**
|
2105
2173
|
* @module
|
@@ -2114,5 +2182,5 @@ const VERSION = new Version('19.0.0-next.9');
|
|
2114
2182
|
* Generated bundle index. Do not edit.
|
2115
2183
|
*/
|
2116
2184
|
|
2117
|
-
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, 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 };
|
2185
|
+
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 };
|
2118
2186
|
//# sourceMappingURL=platform-browser.mjs.map
|