@angular/platform-browser 19.0.5 → 19.0.7
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 +76 -62
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +9 -4
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.0.
|
2
|
+
* @license Angular v19.0.7
|
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, ɵwithIncrementalHydration, 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, Injector, 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
|
/**
|
@@ -152,10 +152,10 @@ class BrowserXhr {
|
|
152
152
|
build() {
|
153
153
|
return new XMLHttpRequest();
|
154
154
|
}
|
155
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
156
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
155
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
156
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: BrowserXhr });
|
157
157
|
}
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: BrowserXhr, decorators: [{
|
159
159
|
type: Injectable
|
160
160
|
}] });
|
161
161
|
|
@@ -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.0.
|
223
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", 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.7", ngImport: i0, type: EventManager });
|
224
224
|
}
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", 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.0.
|
431
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", 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.0.7", ngImport: i0, type: SharedStylesHost });
|
432
432
|
}
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: SharedStylesHost, decorators: [{
|
434
434
|
type: Injectable
|
435
435
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
436
436
|
type: Inject,
|
@@ -554,10 +554,20 @@ class DomRendererFactory2 {
|
|
554
554
|
ngOnDestroy() {
|
555
555
|
this.rendererByCompId.clear();
|
556
556
|
}
|
557
|
-
|
558
|
-
|
557
|
+
/**
|
558
|
+
* Used during HMR to clear any cached data about a component.
|
559
|
+
* @param componentId ID of the component that is being replaced.
|
560
|
+
*/
|
561
|
+
componentReplaced(componentId) {
|
562
|
+
// Destroy the renderer so the styles get removed from the DOM, otherwise
|
563
|
+
// they may leak back into the component together with the new ones.
|
564
|
+
this.rendererByCompId.get(componentId)?.destroy();
|
565
|
+
this.rendererByCompId.delete(componentId);
|
566
|
+
}
|
567
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", 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 });
|
568
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomRendererFactory2 });
|
559
569
|
}
|
560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
561
571
|
type: Injectable
|
562
572
|
}], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
|
563
573
|
type: Inject,
|
@@ -751,8 +761,8 @@ const AT_CHARCODE = (() => '@'.charCodeAt(0))();
|
|
751
761
|
function checkNoSyntheticProp(name, nameKind) {
|
752
762
|
if (name.charCodeAt(0) === AT_CHARCODE) {
|
753
763
|
throw new ɵRuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
|
754
|
-
-
|
755
|
-
- There is corresponding configuration
|
764
|
+
- Make sure \`provideAnimationsAsync()\`, \`provideAnimations()\` or \`provideNoopAnimations()\` call was added to a list of providers used to bootstrap an application.
|
765
|
+
- 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).`);
|
756
766
|
}
|
757
767
|
}
|
758
768
|
function isTemplateNode(node) {
|
@@ -871,10 +881,10 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
871
881
|
removeEventListener(target, eventName, callback) {
|
872
882
|
return target.removeEventListener(eventName, callback);
|
873
883
|
}
|
874
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
875
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
884
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
885
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomEventsPlugin });
|
876
886
|
}
|
877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
878
888
|
type: Injectable
|
879
889
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
880
890
|
type: Inject,
|
@@ -1043,10 +1053,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
1043
1053
|
static _normalizeKey(keyName) {
|
1044
1054
|
return keyName === 'esc' ? 'escape' : keyName;
|
1045
1055
|
}
|
1046
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1047
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
1056
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1057
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: KeyEventsPlugin });
|
1048
1058
|
}
|
1049
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
1050
1060
|
type: Injectable
|
1051
1061
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1052
1062
|
type: Inject,
|
@@ -1235,11 +1245,11 @@ class BrowserModule {
|
|
1235
1245
|
`to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
|
1236
1246
|
}
|
1237
1247
|
}
|
1238
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1239
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.
|
1240
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.
|
1248
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1249
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1250
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });
|
1241
1251
|
}
|
1242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: BrowserModule, decorators: [{
|
1243
1253
|
type: NgModule,
|
1244
1254
|
args: [{
|
1245
1255
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
@@ -1405,10 +1415,10 @@ class Meta {
|
|
1405
1415
|
_getMetaKeyMap(prop) {
|
1406
1416
|
return META_KEYS_MAP[prop] || prop;
|
1407
1417
|
}
|
1408
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1409
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
1418
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1419
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: Meta, providedIn: 'root' });
|
1410
1420
|
}
|
1411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: Meta, decorators: [{
|
1412
1422
|
type: Injectable,
|
1413
1423
|
args: [{ providedIn: 'root' }]
|
1414
1424
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1450,10 +1460,10 @@ class Title {
|
|
1450
1460
|
setTitle(newTitle) {
|
1451
1461
|
this._doc.title = newTitle || '';
|
1452
1462
|
}
|
1453
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1454
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
1463
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1464
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: Title, providedIn: 'root' });
|
1455
1465
|
}
|
1456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: Title, decorators: [{
|
1457
1467
|
type: Injectable,
|
1458
1468
|
args: [{ providedIn: 'root' }]
|
1459
1469
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -1509,7 +1519,7 @@ class AngularProfiler {
|
|
1509
1519
|
* `record` (boolean) - causes the profiler to record a CPU profile while
|
1510
1520
|
* it exercises the change detector. Example:
|
1511
1521
|
*
|
1512
|
-
* ```
|
1522
|
+
* ```ts
|
1513
1523
|
* ng.profiler.timeChangeDetection({record: true})
|
1514
1524
|
* ```
|
1515
1525
|
*/
|
@@ -1665,7 +1675,7 @@ const EVENT_NAMES = {
|
|
1665
1675
|
* @ngModule HammerModule
|
1666
1676
|
* @publicApi
|
1667
1677
|
*/
|
1668
|
-
const HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');
|
1678
|
+
const HAMMER_GESTURE_CONFIG = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerGestureConfig' : '');
|
1669
1679
|
/**
|
1670
1680
|
* Injection token used to provide a HammerLoader to Angular.
|
1671
1681
|
*
|
@@ -1673,7 +1683,7 @@ const HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');
|
|
1673
1683
|
*
|
1674
1684
|
* @publicApi
|
1675
1685
|
*/
|
1676
|
-
const HAMMER_LOADER = new InjectionToken('HammerLoader');
|
1686
|
+
const HAMMER_LOADER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerLoader' : '');
|
1677
1687
|
/**
|
1678
1688
|
* An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
|
1679
1689
|
* for gesture recognition. Configures specific event recognition.
|
@@ -1726,10 +1736,10 @@ class HammerGestureConfig {
|
|
1726
1736
|
}
|
1727
1737
|
return mc;
|
1728
1738
|
}
|
1729
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1730
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
1739
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1740
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerGestureConfig });
|
1731
1741
|
}
|
1732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1733
1743
|
type: Injectable
|
1734
1744
|
}] });
|
1735
1745
|
/**
|
@@ -1739,13 +1749,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1739
1749
|
*/
|
1740
1750
|
class HammerGesturesPlugin extends EventManagerPlugin {
|
1741
1751
|
_config;
|
1742
|
-
|
1752
|
+
_injector;
|
1743
1753
|
loader;
|
1744
1754
|
_loaderPromise = null;
|
1745
|
-
constructor(doc, _config,
|
1755
|
+
constructor(doc, _config, _injector, loader) {
|
1746
1756
|
super(doc);
|
1747
1757
|
this._config = _config;
|
1748
|
-
this.
|
1758
|
+
this._injector = _injector;
|
1749
1759
|
this.loader = loader;
|
1750
1760
|
}
|
1751
1761
|
supports(eventName) {
|
@@ -1754,7 +1764,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1754
1764
|
}
|
1755
1765
|
if (!window.Hammer && !this.loader) {
|
1756
1766
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1757
|
-
|
1767
|
+
// Get a `Console` through an injector to tree-shake the
|
1768
|
+
// class when it is unused in production.
|
1769
|
+
const _console = this._injector.get(ɵConsole);
|
1770
|
+
_console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` +
|
1758
1771
|
`loaded and no custom loader has been specified.`);
|
1759
1772
|
}
|
1760
1773
|
return false;
|
@@ -1779,7 +1792,8 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1779
1792
|
// If Hammer isn't actually loaded when the custom loader resolves, give up.
|
1780
1793
|
if (!window.Hammer) {
|
1781
1794
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1782
|
-
this.
|
1795
|
+
const _console = this._injector.get(ɵConsole);
|
1796
|
+
_console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
|
1783
1797
|
}
|
1784
1798
|
deregister = () => { };
|
1785
1799
|
return;
|
@@ -1792,7 +1806,8 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1792
1806
|
}
|
1793
1807
|
}).catch(() => {
|
1794
1808
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
1795
|
-
this.
|
1809
|
+
const _console = this._injector.get(ɵConsole);
|
1810
|
+
_console.warn(`The "${eventName}" event cannot be bound because the custom ` +
|
1796
1811
|
`Hammer.JS loader failed.`);
|
1797
1812
|
}
|
1798
1813
|
deregister = () => { };
|
@@ -1825,10 +1840,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1825
1840
|
isCustomEvent(eventName) {
|
1826
1841
|
return this._config.events.indexOf(eventName) > -1;
|
1827
1842
|
}
|
1828
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1829
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
1843
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.Injector }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1844
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerGesturesPlugin });
|
1830
1845
|
}
|
1831
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1832
1847
|
type: Injectable
|
1833
1848
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
1834
1849
|
type: Inject,
|
@@ -1836,7 +1851,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1836
1851
|
}] }, { type: HammerGestureConfig, decorators: [{
|
1837
1852
|
type: Inject,
|
1838
1853
|
args: [HAMMER_GESTURE_CONFIG]
|
1839
|
-
}] }, { type: i0
|
1854
|
+
}] }, { type: i0.Injector }, { type: undefined, decorators: [{
|
1840
1855
|
type: Optional
|
1841
1856
|
}, {
|
1842
1857
|
type: Inject,
|
@@ -1854,19 +1869,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1854
1869
|
* @publicApi
|
1855
1870
|
*/
|
1856
1871
|
class HammerModule {
|
1857
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1858
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.
|
1859
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.
|
1872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1873
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: HammerModule });
|
1874
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerModule, providers: [
|
1860
1875
|
{
|
1861
1876
|
provide: EVENT_MANAGER_PLUGINS,
|
1862
1877
|
useClass: HammerGesturesPlugin,
|
1863
1878
|
multi: true,
|
1864
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG,
|
1879
|
+
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]],
|
1865
1880
|
},
|
1866
1881
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1867
1882
|
] });
|
1868
1883
|
}
|
1869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HammerModule, decorators: [{
|
1870
1885
|
type: NgModule,
|
1871
1886
|
args: [{
|
1872
1887
|
providers: [
|
@@ -1874,7 +1889,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1874
1889
|
provide: EVENT_MANAGER_PLUGINS,
|
1875
1890
|
useClass: HammerGesturesPlugin,
|
1876
1891
|
multi: true,
|
1877
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG,
|
1892
|
+
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]],
|
1878
1893
|
},
|
1879
1894
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1880
1895
|
],
|
@@ -1913,10 +1928,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
1913
1928
|
* @publicApi
|
1914
1929
|
*/
|
1915
1930
|
class DomSanitizer {
|
1916
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1917
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
1931
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1932
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });
|
1918
1933
|
}
|
1919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomSanitizer, decorators: [{
|
1920
1935
|
type: Injectable,
|
1921
1936
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1922
1937
|
}] });
|
@@ -1979,10 +1994,10 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1979
1994
|
bypassSecurityTrustResourceUrl(value) {
|
1980
1995
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1981
1996
|
}
|
1982
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.
|
1983
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
1997
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1998
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });
|
1984
1999
|
}
|
1985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
2000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1986
2001
|
type: Injectable,
|
1987
2002
|
args: [{ providedIn: 'root' }]
|
1988
2003
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -2100,7 +2115,6 @@ function provideZoneJsCompatibilityDetector() {
|
|
2100
2115
|
const message = ɵformatRuntimeError(-5000 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' +
|
2101
2116
|
'that uses a custom or a noop Zone.js implementation. ' +
|
2102
2117
|
'This is not yet a fully supported configuration.');
|
2103
|
-
// tslint:disable-next-line:no-console
|
2104
2118
|
console.warn(message);
|
2105
2119
|
}
|
2106
2120
|
},
|
@@ -2192,7 +2206,7 @@ function provideClientHydration(...features) {
|
|
2192
2206
|
/**
|
2193
2207
|
* @publicApi
|
2194
2208
|
*/
|
2195
|
-
const VERSION = new Version('19.0.
|
2209
|
+
const VERSION = new Version('19.0.7');
|
2196
2210
|
|
2197
2211
|
/**
|
2198
2212
|
* @module
|