@angular/platform-browser 19.0.0-next.9 → 19.0.0-rc.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/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 +188 -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.1
|
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.1", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
156
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.1", 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.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 });
|
549
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", 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.1", 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;
|
@@ -742,6 +768,22 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
|
|
742
768
|
styleEl.textContent = style;
|
743
769
|
this.shadowRoot.appendChild(styleEl);
|
744
770
|
}
|
771
|
+
// Apply any external component styles to the shadow root for the component's element.
|
772
|
+
// The ShadowDOM renderer uses an alternative execution path for component styles that
|
773
|
+
// does not use the SharedStylesHost that other encapsulation modes leverage. Much like
|
774
|
+
// the manual addition of embedded styles directly above, any external stylesheets
|
775
|
+
// must be manually added here to ensure ShadowDOM components are correctly styled.
|
776
|
+
// TODO: Consider reworking the DOM Renderers to consolidate style handling.
|
777
|
+
const styleUrls = component.getExternalStyles?.();
|
778
|
+
if (styleUrls) {
|
779
|
+
for (const styleUrl of styleUrls) {
|
780
|
+
const linkEl = createLinkElement(styleUrl, doc);
|
781
|
+
if (nonce) {
|
782
|
+
linkEl.setAttribute('nonce', nonce);
|
783
|
+
}
|
784
|
+
this.shadowRoot.appendChild(linkEl);
|
785
|
+
}
|
786
|
+
}
|
745
787
|
}
|
746
788
|
nodeOrShadowRoot(node) {
|
747
789
|
return node === this.hostEl ? this.shadowRoot : node;
|
@@ -763,6 +805,10 @@ class ShadowDomRenderer extends DefaultDomRenderer2 {
|
|
763
805
|
}
|
764
806
|
}
|
765
807
|
class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
808
|
+
sharedStylesHost;
|
809
|
+
removeStylesOnCompDestroy;
|
810
|
+
styles;
|
811
|
+
styleUrls;
|
766
812
|
constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId) {
|
767
813
|
super(eventManager, doc, ngZone, platformIsServer);
|
768
814
|
this.sharedStylesHost = sharedStylesHost;
|
@@ -781,6 +827,8 @@ class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
|
|
781
827
|
}
|
782
828
|
}
|
783
829
|
class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {
|
830
|
+
contentAttr;
|
831
|
+
hostAttr;
|
784
832
|
constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer) {
|
785
833
|
const compId = appId + '-' + component.id;
|
786
834
|
super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId);
|
@@ -814,10 +862,10 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
814
862
|
removeEventListener(target, eventName, callback) {
|
815
863
|
return target.removeEventListener(eventName, callback);
|
816
864
|
}
|
817
|
-
static
|
818
|
-
static
|
865
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
866
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomEventsPlugin });
|
819
867
|
}
|
820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
821
869
|
type: Injectable
|
822
870
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
823
871
|
type: Inject,
|
@@ -986,10 +1034,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
986
1034
|
static _normalizeKey(keyName) {
|
987
1035
|
return keyName === 'esc' ? 'escape' : keyName;
|
988
1036
|
}
|
989
|
-
static
|
990
|
-
static
|
1037
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1038
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: KeyEventsPlugin });
|
991
1039
|
}
|
992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
993
1041
|
type: Injectable
|
994
1042
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
995
1043
|
type: Inject,
|
@@ -1178,11 +1226,11 @@ class BrowserModule {
|
|
1178
1226
|
`to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
|
1179
1227
|
}
|
1180
1228
|
}
|
1181
|
-
static
|
1182
|
-
static
|
1183
|
-
static
|
1229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1230
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-rc.1", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1231
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
|
1184
1232
|
}
|
1185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: BrowserModule, decorators: [{
|
1186
1234
|
type: NgModule,
|
1187
1235
|
args: [{
|
1188
1236
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
@@ -1220,6 +1268,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1220
1268
|
* @publicApi
|
1221
1269
|
*/
|
1222
1270
|
class Meta {
|
1271
|
+
_doc;
|
1272
|
+
_dom;
|
1223
1273
|
constructor(_doc) {
|
1224
1274
|
this._doc = _doc;
|
1225
1275
|
this._dom = ɵgetDOM();
|
@@ -1346,10 +1396,10 @@ class Meta {
|
|
1346
1396
|
_getMetaKeyMap(prop) {
|
1347
1397
|
return META_KEYS_MAP[prop] || prop;
|
1348
1398
|
}
|
1349
|
-
static
|
1350
|
-
static
|
1399
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1400
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: Meta, providedIn: 'root' });
|
1351
1401
|
}
|
1352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: Meta, decorators: [{
|
1353
1403
|
type: Injectable,
|
1354
1404
|
args: [{ providedIn: 'root' }]
|
1355
1405
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1374,6 +1424,7 @@ const META_KEYS_MAP = {
|
|
1374
1424
|
* @publicApi
|
1375
1425
|
*/
|
1376
1426
|
class Title {
|
1427
|
+
_doc;
|
1377
1428
|
constructor(_doc) {
|
1378
1429
|
this._doc = _doc;
|
1379
1430
|
}
|
@@ -1390,10 +1441,10 @@ class Title {
|
|
1390
1441
|
setTitle(newTitle) {
|
1391
1442
|
this._doc.title = newTitle || '';
|
1392
1443
|
}
|
1393
|
-
static
|
1394
|
-
static
|
1444
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1445
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: Title, providedIn: 'root' });
|
1395
1446
|
}
|
1396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: Title, decorators: [{
|
1397
1448
|
type: Injectable,
|
1398
1449
|
args: [{ providedIn: 'root' }]
|
1399
1450
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1420,6 +1471,8 @@ function exportNgVar(name, value) {
|
|
1420
1471
|
}
|
1421
1472
|
|
1422
1473
|
class ChangeDetectionPerfRecord {
|
1474
|
+
msPerTick;
|
1475
|
+
numTicks;
|
1423
1476
|
constructor(msPerTick, numTicks) {
|
1424
1477
|
this.msPerTick = msPerTick;
|
1425
1478
|
this.numTicks = numTicks;
|
@@ -1430,6 +1483,7 @@ class ChangeDetectionPerfRecord {
|
|
1430
1483
|
* corresponds to the `ng.profiler` in the dev console.
|
1431
1484
|
*/
|
1432
1485
|
class AngularProfiler {
|
1486
|
+
appRef;
|
1433
1487
|
constructor(ref) {
|
1434
1488
|
this.appRef = ref.injector.get(ApplicationRef);
|
1435
1489
|
}
|
@@ -1617,31 +1671,37 @@ const HAMMER_LOADER = new InjectionToken('HammerLoader');
|
|
1617
1671
|
* @publicApi
|
1618
1672
|
*/
|
1619
1673
|
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
|
-
|
1674
|
+
/**
|
1675
|
+
* A set of supported event names for gestures to be used in Angular.
|
1676
|
+
* Angular supports all built-in recognizers, as listed in
|
1677
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1678
|
+
*/
|
1679
|
+
events = [];
|
1680
|
+
/**
|
1681
|
+
* Maps gesture event names to a set of configuration options
|
1682
|
+
* that specify overrides to the default values for specific properties.
|
1683
|
+
*
|
1684
|
+
* The key is a supported event name to be configured,
|
1685
|
+
* and the options object contains a set of properties, with override values
|
1686
|
+
* to be applied to the named recognizer event.
|
1687
|
+
* For example, to disable recognition of the rotate event, specify
|
1688
|
+
* `{"rotate": {"enable": false}}`.
|
1689
|
+
*
|
1690
|
+
* Properties that are not present take the HammerJS default values.
|
1691
|
+
* For information about which properties are supported for which events,
|
1692
|
+
* and their allowed and default values, see
|
1693
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1694
|
+
*
|
1695
|
+
*/
|
1696
|
+
overrides = {};
|
1697
|
+
/**
|
1698
|
+
* Properties whose default values can be overridden for a given event.
|
1699
|
+
* Different sets of properties apply to different events.
|
1700
|
+
* For information about which properties are supported for which events,
|
1701
|
+
* and their allowed and default values, see
|
1702
|
+
* [HammerJS documentation](https://hammerjs.github.io/).
|
1703
|
+
*/
|
1704
|
+
options;
|
1645
1705
|
/**
|
1646
1706
|
* Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
|
1647
1707
|
* and attaches it to a given HTML element.
|
@@ -1657,10 +1717,10 @@ class HammerGestureConfig {
|
|
1657
1717
|
}
|
1658
1718
|
return mc;
|
1659
1719
|
}
|
1660
|
-
static
|
1661
|
-
static
|
1720
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1721
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerGestureConfig });
|
1662
1722
|
}
|
1663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1664
1724
|
type: Injectable
|
1665
1725
|
}] });
|
1666
1726
|
/**
|
@@ -1669,12 +1729,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1669
1729
|
* @ngModule HammerModule
|
1670
1730
|
*/
|
1671
1731
|
class HammerGesturesPlugin extends EventManagerPlugin {
|
1732
|
+
_config;
|
1733
|
+
console;
|
1734
|
+
loader;
|
1735
|
+
_loaderPromise = null;
|
1672
1736
|
constructor(doc, _config, console, loader) {
|
1673
1737
|
super(doc);
|
1674
1738
|
this._config = _config;
|
1675
1739
|
this.console = console;
|
1676
1740
|
this.loader = loader;
|
1677
|
-
this._loaderPromise = null;
|
1678
1741
|
}
|
1679
1742
|
supports(eventName) {
|
1680
1743
|
if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
|
@@ -1753,10 +1816,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1753
1816
|
isCustomEvent(eventName) {
|
1754
1817
|
return this._config.events.indexOf(eventName) > -1;
|
1755
1818
|
}
|
1756
|
-
static
|
1757
|
-
static
|
1819
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1820
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerGesturesPlugin });
|
1758
1821
|
}
|
1759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1760
1823
|
type: Injectable
|
1761
1824
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1762
1825
|
type: Inject,
|
@@ -1782,9 +1845,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1782
1845
|
* @publicApi
|
1783
1846
|
*/
|
1784
1847
|
class HammerModule {
|
1785
|
-
static
|
1786
|
-
static
|
1787
|
-
static
|
1848
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1849
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerModule });
|
1850
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerModule, providers: [
|
1788
1851
|
{
|
1789
1852
|
provide: EVENT_MANAGER_PLUGINS,
|
1790
1853
|
useClass: HammerGesturesPlugin,
|
@@ -1792,9 +1855,9 @@ class HammerModule {
|
|
1792
1855
|
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]],
|
1793
1856
|
},
|
1794
1857
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1795
|
-
] });
|
1858
|
+
] });
|
1796
1859
|
}
|
1797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: HammerModule, decorators: [{
|
1798
1861
|
type: NgModule,
|
1799
1862
|
args: [{
|
1800
1863
|
providers: [
|
@@ -1841,14 +1904,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9",
|
|
1841
1904
|
* @publicApi
|
1842
1905
|
*/
|
1843
1906
|
class DomSanitizer {
|
1844
|
-
static
|
1845
|
-
static
|
1907
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1908
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });
|
1846
1909
|
}
|
1847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomSanitizer, decorators: [{
|
1848
1911
|
type: Injectable,
|
1849
1912
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1850
1913
|
}] });
|
1851
1914
|
class DomSanitizerImpl extends DomSanitizer {
|
1915
|
+
_doc;
|
1852
1916
|
constructor(_doc) {
|
1853
1917
|
super();
|
1854
1918
|
this._doc = _doc;
|
@@ -1906,10 +1970,10 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1906
1970
|
bypassSecurityTrustResourceUrl(value) {
|
1907
1971
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1908
1972
|
}
|
1909
|
-
static
|
1910
|
-
static
|
1973
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1974
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });
|
1911
1975
|
}
|
1912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-
|
1976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-rc.1", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1913
1977
|
type: Injectable,
|
1914
1978
|
args: [{ providedIn: 'root' }]
|
1915
1979
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1929,6 +1993,7 @@ var HydrationFeatureKind;
|
|
1929
1993
|
HydrationFeatureKind[HydrationFeatureKind["HttpTransferCacheOptions"] = 1] = "HttpTransferCacheOptions";
|
1930
1994
|
HydrationFeatureKind[HydrationFeatureKind["I18nSupport"] = 2] = "I18nSupport";
|
1931
1995
|
HydrationFeatureKind[HydrationFeatureKind["EventReplay"] = 3] = "EventReplay";
|
1996
|
+
HydrationFeatureKind[HydrationFeatureKind["IncrementalHydration"] = 4] = "IncrementalHydration";
|
1932
1997
|
})(HydrationFeatureKind || (HydrationFeatureKind = {}));
|
1933
1998
|
/**
|
1934
1999
|
* Helper function to create an object that represents a Hydration feature.
|
@@ -1948,9 +2013,9 @@ function withNoHttpTransferCache() {
|
|
1948
2013
|
return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);
|
1949
2014
|
}
|
1950
2015
|
/**
|
1951
|
-
* The function accepts
|
2016
|
+
* The function accepts an object, which allows to configure cache parameters,
|
1952
2017
|
* such as which headers should be included (no headers are included by default),
|
1953
|
-
*
|
2018
|
+
* whether POST requests should be cached or a callback function to determine if a
|
1954
2019
|
* particular request should be cached.
|
1955
2020
|
*
|
1956
2021
|
* @publicApi
|
@@ -1988,6 +2053,25 @@ function withI18nSupport() {
|
|
1988
2053
|
function withEventReplay() {
|
1989
2054
|
return hydrationFeature(HydrationFeatureKind.EventReplay, ɵwithEventReplay());
|
1990
2055
|
}
|
2056
|
+
/**
|
2057
|
+
* Enables support for incremental hydration using the `hydrate` trigger syntax.
|
2058
|
+
*
|
2059
|
+
* @usageNotes
|
2060
|
+
*
|
2061
|
+
* Basic example of how you can enable incremental hydration in your application when
|
2062
|
+
* the `bootstrapApplication` function is used:
|
2063
|
+
* ```
|
2064
|
+
* bootstrapApplication(AppComponent, {
|
2065
|
+
* providers: [provideClientHydration(withIncrementalHydration())]
|
2066
|
+
* });
|
2067
|
+
* ```
|
2068
|
+
* @experimental
|
2069
|
+
* @publicApi
|
2070
|
+
* @see {@link provideClientHydration}
|
2071
|
+
*/
|
2072
|
+
function withIncrementalHydration() {
|
2073
|
+
return hydrationFeature(HydrationFeatureKind.IncrementalHydration, ɵwithIncrementalHydration());
|
2074
|
+
}
|
1991
2075
|
/**
|
1992
2076
|
* Returns an `ENVIRONMENT_INITIALIZER` token setup with a function
|
1993
2077
|
* that verifies whether compatible ZoneJS was used in an application
|
@@ -2099,7 +2183,7 @@ function provideClientHydration(...features) {
|
|
2099
2183
|
/**
|
2100
2184
|
* @publicApi
|
2101
2185
|
*/
|
2102
|
-
const VERSION = new Version('19.0.0-
|
2186
|
+
const VERSION = new Version('19.0.0-rc.1');
|
2103
2187
|
|
2104
2188
|
/**
|
2105
2189
|
* @module
|
@@ -2114,5 +2198,5 @@ const VERSION = new Version('19.0.0-next.9');
|
|
2114
2198
|
* Generated bundle index. Do not edit.
|
2115
2199
|
*/
|
2116
2200
|
|
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 };
|
2201
|
+
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
2202
|
//# sourceMappingURL=platform-browser.mjs.map
|