@angular/platform-browser 19.1.0-next.4 → 19.1.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/LICENSE +1 -1
- package/animations/async/index.d.ts +3 -2
- package/animations/index.d.ts +2 -2
- package/fesm2022/animations/async.mjs +8 -6
- package/fesm2022/animations/async.mjs.map +1 -1
- package/fesm2022/animations.mjs +13 -13
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +87 -74
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +11 -6
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.1.0
|
2
|
+
* @license Angular v19.1.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, ɵTracingService, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule,
|
10
|
+
import { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, ɵTracingService, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, inject, ApplicationModule, NgModule, ApplicationRef, ɵConsole, Injector, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ɵwithI18nSupport, ɵwithEventReplay, ɵwithIncrementalHydration, ENVIRONMENT_INITIALIZER, ɵZONELESS_ENABLED, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version } from '@angular/core';
|
11
11
|
import { ɵwithHttpTransferCache } from '@angular/common/http';
|
12
12
|
|
13
13
|
/**
|
@@ -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.1.0
|
155
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
155
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BrowserXhr });
|
156
156
|
}
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BrowserXhr, decorators: [{
|
158
158
|
type: Injectable
|
159
159
|
}] });
|
160
160
|
|
@@ -219,10 +219,10 @@ class EventManager {
|
|
219
219
|
this._eventNameToPlugin.set(eventName, plugin);
|
220
220
|
return plugin;
|
221
221
|
}
|
222
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
223
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.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.1.0", ngImport: i0, type: EventManager });
|
224
224
|
}
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", 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.1.0
|
431
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", 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.1.0", ngImport: i0, type: SharedStylesHost });
|
432
432
|
}
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: SharedStylesHost, decorators: [{
|
434
434
|
type: Injectable
|
435
435
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
436
436
|
type: Inject,
|
@@ -556,10 +556,20 @@ class DomRendererFactory2 {
|
|
556
556
|
ngOnDestroy() {
|
557
557
|
this.rendererByCompId.clear();
|
558
558
|
}
|
559
|
-
|
560
|
-
|
559
|
+
/**
|
560
|
+
* Used during HMR to clear any cached data about a component.
|
561
|
+
* @param componentId ID of the component that is being replaced.
|
562
|
+
*/
|
563
|
+
componentReplaced(componentId) {
|
564
|
+
// Destroy the renderer so the styles get removed from the DOM, otherwise
|
565
|
+
// they may leak back into the component together with the new ones.
|
566
|
+
this.rendererByCompId.get(componentId)?.destroy();
|
567
|
+
this.rendererByCompId.delete(componentId);
|
568
|
+
}
|
569
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.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 }, { token: ɵTracingService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
570
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomRendererFactory2 });
|
561
571
|
}
|
562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
563
573
|
type: Injectable
|
564
574
|
}], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
|
565
575
|
type: Inject,
|
@@ -764,8 +774,8 @@ const AT_CHARCODE = (() => '@'.charCodeAt(0))();
|
|
764
774
|
function checkNoSyntheticProp(name, nameKind) {
|
765
775
|
if (name.charCodeAt(0) === AT_CHARCODE) {
|
766
776
|
throw new ɵRuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
|
767
|
-
-
|
768
|
-
- There is corresponding configuration
|
777
|
+
- Make sure \`provideAnimationsAsync()\`, \`provideAnimations()\` or \`provideNoopAnimations()\` call was added to a list of providers used to bootstrap an application.
|
778
|
+
- 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).`);
|
769
779
|
}
|
770
780
|
}
|
771
781
|
function isTemplateNode(node) {
|
@@ -884,10 +894,10 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
884
894
|
removeEventListener(target, eventName, callback, options) {
|
885
895
|
return target.removeEventListener(eventName, callback, options);
|
886
896
|
}
|
887
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
888
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
897
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
898
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomEventsPlugin });
|
889
899
|
}
|
890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
891
901
|
type: Injectable
|
892
902
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
893
903
|
type: Inject,
|
@@ -1056,10 +1066,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
1056
1066
|
static _normalizeKey(keyName) {
|
1057
1067
|
return keyName === 'esc' ? 'escape' : keyName;
|
1058
1068
|
}
|
1059
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1060
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
1069
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1070
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: KeyEventsPlugin });
|
1061
1071
|
}
|
1062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
1063
1073
|
type: Injectable
|
1064
1074
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1065
1075
|
type: Inject,
|
@@ -1242,30 +1252,29 @@ const BROWSER_MODULE_PROVIDERS = [
|
|
1242
1252
|
* @publicApi
|
1243
1253
|
*/
|
1244
1254
|
class BrowserModule {
|
1245
|
-
constructor(
|
1246
|
-
if (
|
1247
|
-
|
1248
|
-
|
1255
|
+
constructor() {
|
1256
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1257
|
+
const providersAlreadyPresent = inject(BROWSER_MODULE_PROVIDERS_MARKER, {
|
1258
|
+
optional: true,
|
1259
|
+
skipSelf: true,
|
1260
|
+
});
|
1261
|
+
if (providersAlreadyPresent) {
|
1262
|
+
throw new ɵRuntimeError(5100 /* RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED */, `Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
|
1263
|
+
`to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
|
1264
|
+
}
|
1249
1265
|
}
|
1250
1266
|
}
|
1251
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1252
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0
|
1253
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0
|
1267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BrowserModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1268
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1269
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
|
1254
1270
|
}
|
1255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: BrowserModule, decorators: [{
|
1256
1272
|
type: NgModule,
|
1257
1273
|
args: [{
|
1258
1274
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
1259
1275
|
exports: [CommonModule, ApplicationModule],
|
1260
1276
|
}]
|
1261
|
-
}], ctorParameters: () => [
|
1262
|
-
type: Optional
|
1263
|
-
}, {
|
1264
|
-
type: SkipSelf
|
1265
|
-
}, {
|
1266
|
-
type: Inject,
|
1267
|
-
args: [BROWSER_MODULE_PROVIDERS_MARKER]
|
1268
|
-
}] }] });
|
1277
|
+
}], ctorParameters: () => [] });
|
1269
1278
|
|
1270
1279
|
/**
|
1271
1280
|
* A service for managing HTML `<meta>` tags.
|
@@ -1418,10 +1427,10 @@ class Meta {
|
|
1418
1427
|
_getMetaKeyMap(prop) {
|
1419
1428
|
return META_KEYS_MAP[prop] || prop;
|
1420
1429
|
}
|
1421
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1422
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
1430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1431
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Meta, providedIn: 'root' });
|
1423
1432
|
}
|
1424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Meta, decorators: [{
|
1425
1434
|
type: Injectable,
|
1426
1435
|
args: [{ providedIn: 'root' }]
|
1427
1436
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1463,10 +1472,10 @@ class Title {
|
|
1463
1472
|
setTitle(newTitle) {
|
1464
1473
|
this._doc.title = newTitle || '';
|
1465
1474
|
}
|
1466
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1467
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
1475
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1476
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Title, providedIn: 'root' });
|
1468
1477
|
}
|
1469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Title, decorators: [{
|
1470
1479
|
type: Injectable,
|
1471
1480
|
args: [{ providedIn: 'root' }]
|
1472
1481
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1522,7 +1531,7 @@ class AngularProfiler {
|
|
1522
1531
|
* `record` (boolean) - causes the profiler to record a CPU profile while
|
1523
1532
|
* it exercises the change detector. Example:
|
1524
1533
|
*
|
1525
|
-
* ```
|
1534
|
+
* ```ts
|
1526
1535
|
* ng.profiler.timeChangeDetection({record: true})
|
1527
1536
|
* ```
|
1528
1537
|
*/
|
@@ -1678,7 +1687,7 @@ const EVENT_NAMES = {
|
|
1678
1687
|
* @ngModule HammerModule
|
1679
1688
|
* @publicApi
|
1680
1689
|
*/
|
1681
|
-
const HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');
|
1690
|
+
const HAMMER_GESTURE_CONFIG = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerGestureConfig' : '');
|
1682
1691
|
/**
|
1683
1692
|
* Injection token used to provide a HammerLoader to Angular.
|
1684
1693
|
*
|
@@ -1686,7 +1695,7 @@ const HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');
|
|
1686
1695
|
*
|
1687
1696
|
* @publicApi
|
1688
1697
|
*/
|
1689
|
-
const HAMMER_LOADER = new InjectionToken('HammerLoader');
|
1698
|
+
const HAMMER_LOADER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerLoader' : '');
|
1690
1699
|
/**
|
1691
1700
|
* An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
|
1692
1701
|
* for gesture recognition. Configures specific event recognition.
|
@@ -1739,10 +1748,10 @@ class HammerGestureConfig {
|
|
1739
1748
|
}
|
1740
1749
|
return mc;
|
1741
1750
|
}
|
1742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1743
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
1751
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1752
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerGestureConfig });
|
1744
1753
|
}
|
1745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1746
1755
|
type: Injectable
|
1747
1756
|
}] });
|
1748
1757
|
/**
|
@@ -1752,13 +1761,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4",
|
|
1752
1761
|
*/
|
1753
1762
|
class HammerGesturesPlugin extends EventManagerPlugin {
|
1754
1763
|
_config;
|
1755
|
-
|
1764
|
+
_injector;
|
1756
1765
|
loader;
|
1757
1766
|
_loaderPromise = null;
|
1758
|
-
constructor(doc, _config,
|
1767
|
+
constructor(doc, _config, _injector, loader) {
|
1759
1768
|
super(doc);
|
1760
1769
|
this._config = _config;
|
1761
|
-
this.
|
1770
|
+
this._injector = _injector;
|
1762
1771
|
this.loader = loader;
|
1763
1772
|
}
|
1764
1773
|
supports(eventName) {
|
@@ -1767,7 +1776,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1767
1776
|
}
|
1768
1777
|
if (!window.Hammer && !this.loader) {
|
1769
1778
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1770
|
-
|
1779
|
+
// Get a `Console` through an injector to tree-shake the
|
1780
|
+
// class when it is unused in production.
|
1781
|
+
const _console = this._injector.get(ɵConsole);
|
1782
|
+
_console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` +
|
1771
1783
|
`loaded and no custom loader has been specified.`);
|
1772
1784
|
}
|
1773
1785
|
return false;
|
@@ -1792,7 +1804,8 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1792
1804
|
// If Hammer isn't actually loaded when the custom loader resolves, give up.
|
1793
1805
|
if (!window.Hammer) {
|
1794
1806
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1795
|
-
this.
|
1807
|
+
const _console = this._injector.get(ɵConsole);
|
1808
|
+
_console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
|
1796
1809
|
}
|
1797
1810
|
deregister = () => { };
|
1798
1811
|
return;
|
@@ -1805,7 +1818,8 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1805
1818
|
}
|
1806
1819
|
}).catch(() => {
|
1807
1820
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1808
|
-
this.
|
1821
|
+
const _console = this._injector.get(ɵConsole);
|
1822
|
+
_console.warn(`The "${eventName}" event cannot be bound because the custom ` +
|
1809
1823
|
`Hammer.JS loader failed.`);
|
1810
1824
|
}
|
1811
1825
|
deregister = () => { };
|
@@ -1838,10 +1852,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1838
1852
|
isCustomEvent(eventName) {
|
1839
1853
|
return this._config.events.indexOf(eventName) > -1;
|
1840
1854
|
}
|
1841
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1842
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
1855
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.Injector }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1856
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerGesturesPlugin });
|
1843
1857
|
}
|
1844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1845
1859
|
type: Injectable
|
1846
1860
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1847
1861
|
type: Inject,
|
@@ -1849,7 +1863,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4",
|
|
1849
1863
|
}] }, { type: HammerGestureConfig, decorators: [{
|
1850
1864
|
type: Inject,
|
1851
1865
|
args: [HAMMER_GESTURE_CONFIG]
|
1852
|
-
}] }, { type: i0
|
1866
|
+
}] }, { type: i0.Injector }, { type: undefined, decorators: [{
|
1853
1867
|
type: Optional
|
1854
1868
|
}, {
|
1855
1869
|
type: Inject,
|
@@ -1867,19 +1881,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4",
|
|
1867
1881
|
* @publicApi
|
1868
1882
|
*/
|
1869
1883
|
class HammerModule {
|
1870
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1871
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0
|
1872
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0
|
1884
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1885
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: HammerModule });
|
1886
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerModule, providers: [
|
1873
1887
|
{
|
1874
1888
|
provide: EVENT_MANAGER_PLUGINS,
|
1875
1889
|
useClass: HammerGesturesPlugin,
|
1876
1890
|
multi: true,
|
1877
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG,
|
1891
|
+
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]],
|
1878
1892
|
},
|
1879
1893
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1880
1894
|
] });
|
1881
1895
|
}
|
1882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HammerModule, decorators: [{
|
1883
1897
|
type: NgModule,
|
1884
1898
|
args: [{
|
1885
1899
|
providers: [
|
@@ -1887,7 +1901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4",
|
|
1887
1901
|
provide: EVENT_MANAGER_PLUGINS,
|
1888
1902
|
useClass: HammerGesturesPlugin,
|
1889
1903
|
multi: true,
|
1890
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG,
|
1904
|
+
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]],
|
1891
1905
|
},
|
1892
1906
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1893
1907
|
],
|
@@ -1926,10 +1940,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4",
|
|
1926
1940
|
* @publicApi
|
1927
1941
|
*/
|
1928
1942
|
class DomSanitizer {
|
1929
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1930
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
1943
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1944
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });
|
1931
1945
|
}
|
1932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
1946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomSanitizer, decorators: [{
|
1933
1947
|
type: Injectable,
|
1934
1948
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1935
1949
|
}] });
|
@@ -1992,10 +2006,10 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1992
2006
|
bypassSecurityTrustResourceUrl(value) {
|
1993
2007
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1994
2008
|
}
|
1995
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
1996
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
2009
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2010
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });
|
1997
2011
|
}
|
1998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
2012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1999
2013
|
type: Injectable,
|
2000
2014
|
args: [{ providedIn: 'root' }]
|
2001
2015
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -2113,7 +2127,6 @@ function provideZoneJsCompatibilityDetector() {
|
|
2113
2127
|
const message = ɵformatRuntimeError(-5000 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' +
|
2114
2128
|
'that uses a custom or a noop Zone.js implementation. ' +
|
2115
2129
|
'This is not yet a fully supported configuration.');
|
2116
|
-
// tslint:disable-next-line:no-console
|
2117
2130
|
console.warn(message);
|
2118
2131
|
}
|
2119
2132
|
},
|
@@ -2205,7 +2218,7 @@ function provideClientHydration(...features) {
|
|
2205
2218
|
/**
|
2206
2219
|
* @publicApi
|
2207
2220
|
*/
|
2208
|
-
const VERSION = new Version('19.1.0
|
2221
|
+
const VERSION = new Version('19.1.0');
|
2209
2222
|
|
2210
2223
|
/**
|
2211
2224
|
* @module
|