@angular/platform-browser 13.3.0 → 14.0.0-next.10
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/animations.d.ts +3 -6
- package/esm2020/animations/src/animation_builder.mjs +3 -3
- package/esm2020/animations/src/animation_renderer.mjs +7 -7
- package/esm2020/animations/src/animations.mjs +2 -2
- package/esm2020/animations/src/module.mjs +8 -8
- package/esm2020/animations/src/providers.mjs +5 -9
- package/esm2020/src/browser/browser_adapter.mjs +1 -1
- package/esm2020/src/browser/meta.mjs +3 -3
- package/esm2020/src/browser/title.mjs +3 -3
- package/esm2020/src/browser/transfer_state.mjs +8 -8
- package/esm2020/src/browser/xhr.mjs +3 -3
- package/esm2020/src/browser.mjs +4 -4
- package/esm2020/src/dom/dom_renderer.mjs +11 -6
- package/esm2020/src/dom/events/dom_events.mjs +3 -3
- package/esm2020/src/dom/events/event_manager.mjs +3 -3
- package/esm2020/src/dom/events/hammer_gestures.mjs +16 -15
- package/esm2020/src/dom/events/key_events.mjs +3 -3
- package/esm2020/src/dom/shared_styles_host.mjs +6 -6
- package/esm2020/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/browser.mjs +4 -4
- package/esm2020/testing/src/browser_util.mjs +5 -1
- package/fesm2015/animations.mjs +24 -27
- package/fesm2015/animations.mjs.map +1 -1
- package/fesm2015/platform-browser.mjs +68 -62
- package/fesm2015/platform-browser.mjs.map +1 -1
- package/fesm2015/testing.mjs +9 -5
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/animations.mjs +24 -27
- package/fesm2020/animations.mjs.map +1 -1
- package/fesm2020/platform-browser.mjs +68 -62
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +9 -5
- package/fesm2020/testing.mjs.map +1 -1
- package/package.json +5 -5
- package/platform-browser.d.ts +3 -2
- package/testing/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular
|
2
|
+
* @license Angular v14.0.0-next.10
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -221,9 +221,9 @@ class BrowserXhr {
|
|
221
221
|
return new XMLHttpRequest();
|
222
222
|
}
|
223
223
|
}
|
224
|
-
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
225
|
-
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
224
|
+
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
225
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserXhr });
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserXhr, decorators: [{
|
227
227
|
type: Injectable
|
228
228
|
}] });
|
229
229
|
|
@@ -306,9 +306,9 @@ class EventManager {
|
|
306
306
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
307
307
|
}
|
308
308
|
}
|
309
|
-
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
310
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
309
|
+
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
310
|
+
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: EventManager });
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: EventManager, decorators: [{
|
312
312
|
type: Injectable
|
313
313
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
314
314
|
type: Inject,
|
@@ -354,9 +354,9 @@ class SharedStylesHost {
|
|
354
354
|
return Array.from(this._stylesSet);
|
355
355
|
}
|
356
356
|
}
|
357
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
358
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
357
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
358
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: SharedStylesHost });
|
359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: SharedStylesHost, decorators: [{
|
360
360
|
type: Injectable
|
361
361
|
}] });
|
362
362
|
class DomSharedStylesHost extends SharedStylesHost {
|
@@ -395,9 +395,9 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
395
395
|
this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));
|
396
396
|
}
|
397
397
|
}
|
398
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
399
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
398
|
+
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
399
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSharedStylesHost });
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
401
401
|
type: Injectable
|
402
402
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
403
403
|
type: Inject,
|
@@ -518,9 +518,9 @@ class DomRendererFactory2 {
|
|
518
518
|
begin() { }
|
519
519
|
end() { }
|
520
520
|
}
|
521
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
522
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
521
|
+
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
522
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomRendererFactory2 });
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
524
524
|
type: Injectable
|
525
525
|
}], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
526
526
|
type: Inject,
|
@@ -555,11 +555,13 @@ class DefaultDomRenderer2 {
|
|
555
555
|
return document.createTextNode(value);
|
556
556
|
}
|
557
557
|
appendChild(parent, newChild) {
|
558
|
-
parent.
|
558
|
+
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
559
|
+
targetParent.appendChild(newChild);
|
559
560
|
}
|
560
561
|
insertBefore(parent, newChild, refChild) {
|
561
562
|
if (parent) {
|
562
|
-
parent.
|
563
|
+
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
564
|
+
targetParent.insertBefore(newChild, refChild);
|
563
565
|
}
|
564
566
|
}
|
565
567
|
removeChild(parent, oldChild) {
|
@@ -660,6 +662,9 @@ function checkNoSyntheticProp(name, nameKind) {
|
|
660
662
|
- There is corresponding configuration for the animation named \`${name}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.io/api/core/Component#animations).`);
|
661
663
|
}
|
662
664
|
}
|
665
|
+
function isTemplateNode(node) {
|
666
|
+
return node.tagName === 'TEMPLATE' && node.content !== undefined;
|
667
|
+
}
|
663
668
|
class EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {
|
664
669
|
constructor(eventManager, sharedStylesHost, component, appId) {
|
665
670
|
super(eventManager);
|
@@ -736,9 +741,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
736
741
|
return target.removeEventListener(eventName, callback);
|
737
742
|
}
|
738
743
|
}
|
739
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
740
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
744
|
+
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
745
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomEventsPlugin });
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
742
747
|
type: Injectable
|
743
748
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
744
749
|
type: Inject,
|
@@ -914,9 +919,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
914
919
|
}
|
915
920
|
}
|
916
921
|
}
|
917
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
918
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
922
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
923
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: KeyEventsPlugin });
|
924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
920
925
|
type: Injectable
|
921
926
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
922
927
|
type: Inject,
|
@@ -1032,10 +1037,10 @@ class BrowserModule {
|
|
1032
1037
|
};
|
1033
1038
|
}
|
1034
1039
|
}
|
1035
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1036
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
1037
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1040
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserModule, deps: [{ token: BrowserModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1041
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1042
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserModule, providers: BROWSER_MODULE_PROVIDERS, imports: [CommonModule, ApplicationModule] });
|
1043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserModule, decorators: [{
|
1039
1044
|
type: NgModule,
|
1040
1045
|
args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] }]
|
1041
1046
|
}], ctorParameters: function () { return [{ type: BrowserModule, decorators: [{
|
@@ -1210,9 +1215,9 @@ class Meta {
|
|
1210
1215
|
return META_KEYS_MAP[prop] || prop;
|
1211
1216
|
}
|
1212
1217
|
}
|
1213
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1214
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1218
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1219
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Meta, decorators: [{
|
1216
1221
|
type: Injectable,
|
1217
1222
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1218
1223
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1267,9 +1272,9 @@ class Title {
|
|
1267
1272
|
this._doc.title = newTitle || '';
|
1268
1273
|
}
|
1269
1274
|
}
|
1270
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1271
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1275
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1276
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Title, decorators: [{
|
1273
1278
|
type: Injectable,
|
1274
1279
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1275
1280
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1536,9 +1541,9 @@ class TransferState {
|
|
1536
1541
|
return JSON.stringify(this.store);
|
1537
1542
|
}
|
1538
1543
|
}
|
1539
|
-
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1540
|
-
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1544
|
+
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1545
|
+
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: TransferState });
|
1546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: TransferState, decorators: [{
|
1542
1547
|
type: Injectable
|
1543
1548
|
}] });
|
1544
1549
|
function initTransferState(doc, appId) {
|
@@ -1565,10 +1570,10 @@ function initTransferState(doc, appId) {
|
|
1565
1570
|
*/
|
1566
1571
|
class BrowserTransferStateModule {
|
1567
1572
|
}
|
1568
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1569
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
1570
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1573
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1574
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserTransferStateModule });
|
1575
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserTransferStateModule, providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }] });
|
1576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1572
1577
|
type: NgModule,
|
1573
1578
|
args: [{
|
1574
1579
|
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],
|
@@ -1744,9 +1749,9 @@ class HammerGestureConfig {
|
|
1744
1749
|
return mc;
|
1745
1750
|
}
|
1746
1751
|
}
|
1747
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1748
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1752
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1753
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGestureConfig });
|
1754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1750
1755
|
type: Injectable
|
1751
1756
|
}] });
|
1752
1757
|
/**
|
@@ -1781,7 +1786,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1781
1786
|
// If Hammer is not present but a loader is specified, we defer adding the event listener
|
1782
1787
|
// until Hammer is loaded.
|
1783
1788
|
if (!window.Hammer && this.loader) {
|
1784
|
-
this._loaderPromise = this._loaderPromise || this.loader();
|
1789
|
+
this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());
|
1785
1790
|
// This `addEventListener` method returns a function to remove the added listener.
|
1786
1791
|
// Until Hammer is loaded, the returned function needs to *cancel* the registration rather
|
1787
1792
|
// than remove anything.
|
@@ -1789,7 +1794,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1789
1794
|
let deregister = () => {
|
1790
1795
|
cancelRegistration = true;
|
1791
1796
|
};
|
1792
|
-
this._loaderPromise
|
1797
|
+
zone.runOutsideAngular(() => this._loaderPromise
|
1793
1798
|
.then(() => {
|
1794
1799
|
// If Hammer isn't actually loaded when the custom loader resolves, give up.
|
1795
1800
|
if (!window.Hammer) {
|
@@ -1801,7 +1806,8 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1801
1806
|
}
|
1802
1807
|
if (!cancelRegistration) {
|
1803
1808
|
// Now that Hammer is loaded and the listener is being loaded for real,
|
1804
|
-
// the deregistration function changes from canceling registration to
|
1809
|
+
// the deregistration function changes from canceling registration to
|
1810
|
+
// removal.
|
1805
1811
|
deregister = this.addEventListener(element, eventName, handler);
|
1806
1812
|
}
|
1807
1813
|
})
|
@@ -1811,7 +1817,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1811
1817
|
`Hammer.JS loader failed.`);
|
1812
1818
|
}
|
1813
1819
|
deregister = () => { };
|
1814
|
-
});
|
1820
|
+
}));
|
1815
1821
|
// Return a function that *executes* `deregister` (and not `deregister` itself) so that we
|
1816
1822
|
// can change the behavior of `deregister` once the listener is added. Using a closure in
|
1817
1823
|
// this way allows us to avoid any additional data structures to track listener removal.
|
@@ -1841,9 +1847,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1841
1847
|
return this._config.events.indexOf(eventName) > -1;
|
1842
1848
|
}
|
1843
1849
|
}
|
1844
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1845
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1850
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1851
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGesturesPlugin });
|
1852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1847
1853
|
type: Injectable
|
1848
1854
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1849
1855
|
type: Inject,
|
@@ -1870,9 +1876,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
1870
1876
|
*/
|
1871
1877
|
class HammerModule {
|
1872
1878
|
}
|
1873
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1874
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
1875
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1879
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1880
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule });
|
1881
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule, providers: [
|
1876
1882
|
{
|
1877
1883
|
provide: EVENT_MANAGER_PLUGINS,
|
1878
1884
|
useClass: HammerGesturesPlugin,
|
@@ -1881,7 +1887,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1881
1887
|
},
|
1882
1888
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1883
1889
|
] });
|
1884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule, decorators: [{
|
1885
1891
|
type: NgModule,
|
1886
1892
|
args: [{
|
1887
1893
|
providers: [
|
@@ -1936,9 +1942,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
1936
1942
|
*/
|
1937
1943
|
class DomSanitizer {
|
1938
1944
|
}
|
1939
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1940
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1945
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1946
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
1947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizer, decorators: [{
|
1942
1948
|
type: Injectable,
|
1943
1949
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1944
1950
|
}] });
|
@@ -2002,9 +2008,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
2002
2008
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
2003
2009
|
}
|
2004
2010
|
}
|
2005
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2006
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2011
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2012
|
+
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
2013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
2008
2014
|
type: Injectable,
|
2009
2015
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
2010
2016
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -2030,7 +2036,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
2030
2036
|
/**
|
2031
2037
|
* @publicApi
|
2032
2038
|
*/
|
2033
|
-
const VERSION = new Version('
|
2039
|
+
const VERSION = new Version('14.0.0-next.10');
|
2034
2040
|
|
2035
2041
|
/**
|
2036
2042
|
* @license
|