@angular/platform-browser 14.0.0-next.1 → 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 v14.0.0-next.
|
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: "14.0.0-next.
|
225
|
-
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
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: "14.0.0-next.
|
310
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
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 () {
|
314
314
|
return [{ type: undefined, decorators: [{
|
@@ -356,9 +356,9 @@ class SharedStylesHost {
|
|
356
356
|
return Array.from(this._stylesSet);
|
357
357
|
}
|
358
358
|
}
|
359
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
360
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
359
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
360
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: SharedStylesHost });
|
361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: SharedStylesHost, decorators: [{
|
362
362
|
type: Injectable
|
363
363
|
}] });
|
364
364
|
class DomSharedStylesHost extends SharedStylesHost {
|
@@ -397,9 +397,9 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
397
397
|
this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));
|
398
398
|
}
|
399
399
|
}
|
400
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
401
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
400
|
+
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 });
|
401
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSharedStylesHost });
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
403
403
|
type: Injectable
|
404
404
|
}], ctorParameters: function () {
|
405
405
|
return [{ type: undefined, decorators: [{
|
@@ -522,9 +522,9 @@ class DomRendererFactory2 {
|
|
522
522
|
begin() { }
|
523
523
|
end() { }
|
524
524
|
}
|
525
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
526
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
525
|
+
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 });
|
526
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomRendererFactory2 });
|
527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
528
528
|
type: Injectable
|
529
529
|
}], ctorParameters: function () {
|
530
530
|
return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
@@ -561,11 +561,13 @@ class DefaultDomRenderer2 {
|
|
561
561
|
return document.createTextNode(value);
|
562
562
|
}
|
563
563
|
appendChild(parent, newChild) {
|
564
|
-
parent.
|
564
|
+
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
565
|
+
targetParent.appendChild(newChild);
|
565
566
|
}
|
566
567
|
insertBefore(parent, newChild, refChild) {
|
567
568
|
if (parent) {
|
568
|
-
parent.
|
569
|
+
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
570
|
+
targetParent.insertBefore(newChild, refChild);
|
569
571
|
}
|
570
572
|
}
|
571
573
|
removeChild(parent, oldChild) {
|
@@ -666,6 +668,9 @@ function checkNoSyntheticProp(name, nameKind) {
|
|
666
668
|
- 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).`);
|
667
669
|
}
|
668
670
|
}
|
671
|
+
function isTemplateNode(node) {
|
672
|
+
return node.tagName === 'TEMPLATE' && node.content !== undefined;
|
673
|
+
}
|
669
674
|
class EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {
|
670
675
|
constructor(eventManager, sharedStylesHost, component, appId) {
|
671
676
|
super(eventManager);
|
@@ -742,9 +747,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
742
747
|
return target.removeEventListener(eventName, callback);
|
743
748
|
}
|
744
749
|
}
|
745
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
746
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
747
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
750
|
+
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 });
|
751
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomEventsPlugin });
|
752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
748
753
|
type: Injectable
|
749
754
|
}], ctorParameters: function () {
|
750
755
|
return [{ type: undefined, decorators: [{
|
@@ -922,9 +927,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
922
927
|
}
|
923
928
|
}
|
924
929
|
}
|
925
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
926
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
930
|
+
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 });
|
931
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: KeyEventsPlugin });
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
928
933
|
type: Injectable
|
929
934
|
}], ctorParameters: function () {
|
930
935
|
return [{ type: undefined, decorators: [{
|
@@ -1042,10 +1047,10 @@ class BrowserModule {
|
|
1042
1047
|
};
|
1043
1048
|
}
|
1044
1049
|
}
|
1045
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1046
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
1047
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1050
|
+
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 });
|
1051
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1052
|
+
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] });
|
1053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserModule, decorators: [{
|
1049
1054
|
type: NgModule,
|
1050
1055
|
args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] }]
|
1051
1056
|
}], ctorParameters: function () {
|
@@ -1222,9 +1227,9 @@ class Meta {
|
|
1222
1227
|
return META_KEYS_MAP[prop] || prop;
|
1223
1228
|
}
|
1224
1229
|
}
|
1225
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1226
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1230
|
+
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 });
|
1231
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Meta, decorators: [{
|
1228
1233
|
type: Injectable,
|
1229
1234
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1230
1235
|
}], ctorParameters: function () {
|
@@ -1281,9 +1286,9 @@ class Title {
|
|
1281
1286
|
this._doc.title = newTitle || '';
|
1282
1287
|
}
|
1283
1288
|
}
|
1284
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1285
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1289
|
+
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 });
|
1290
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: Title, decorators: [{
|
1287
1292
|
type: Injectable,
|
1288
1293
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1289
1294
|
}], ctorParameters: function () {
|
@@ -1552,9 +1557,9 @@ class TransferState {
|
|
1552
1557
|
return JSON.stringify(this.store);
|
1553
1558
|
}
|
1554
1559
|
}
|
1555
|
-
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1556
|
-
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1560
|
+
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1561
|
+
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: TransferState });
|
1562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: TransferState, decorators: [{
|
1558
1563
|
type: Injectable
|
1559
1564
|
}] });
|
1560
1565
|
function initTransferState(doc, appId) {
|
@@ -1581,10 +1586,10 @@ function initTransferState(doc, appId) {
|
|
1581
1586
|
*/
|
1582
1587
|
class BrowserTransferStateModule {
|
1583
1588
|
}
|
1584
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1585
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
1586
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1589
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1590
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserTransferStateModule });
|
1591
|
+
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] }] });
|
1592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1588
1593
|
type: NgModule,
|
1589
1594
|
args: [{
|
1590
1595
|
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],
|
@@ -1760,9 +1765,9 @@ class HammerGestureConfig {
|
|
1760
1765
|
return mc;
|
1761
1766
|
}
|
1762
1767
|
}
|
1763
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1764
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1768
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1769
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGestureConfig });
|
1770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1766
1771
|
type: Injectable
|
1767
1772
|
}] });
|
1768
1773
|
/**
|
@@ -1797,7 +1802,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1797
1802
|
// If Hammer is not present but a loader is specified, we defer adding the event listener
|
1798
1803
|
// until Hammer is loaded.
|
1799
1804
|
if (!window.Hammer && this.loader) {
|
1800
|
-
this._loaderPromise = this._loaderPromise || this.loader();
|
1805
|
+
this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());
|
1801
1806
|
// This `addEventListener` method returns a function to remove the added listener.
|
1802
1807
|
// Until Hammer is loaded, the returned function needs to *cancel* the registration rather
|
1803
1808
|
// than remove anything.
|
@@ -1805,7 +1810,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1805
1810
|
let deregister = () => {
|
1806
1811
|
cancelRegistration = true;
|
1807
1812
|
};
|
1808
|
-
this._loaderPromise
|
1813
|
+
zone.runOutsideAngular(() => this._loaderPromise
|
1809
1814
|
.then(() => {
|
1810
1815
|
// If Hammer isn't actually loaded when the custom loader resolves, give up.
|
1811
1816
|
if (!window.Hammer) {
|
@@ -1817,7 +1822,8 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1817
1822
|
}
|
1818
1823
|
if (!cancelRegistration) {
|
1819
1824
|
// Now that Hammer is loaded and the listener is being loaded for real,
|
1820
|
-
// the deregistration function changes from canceling registration to
|
1825
|
+
// the deregistration function changes from canceling registration to
|
1826
|
+
// removal.
|
1821
1827
|
deregister = this.addEventListener(element, eventName, handler);
|
1822
1828
|
}
|
1823
1829
|
})
|
@@ -1827,7 +1833,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1827
1833
|
`Hammer.JS loader failed.`);
|
1828
1834
|
}
|
1829
1835
|
deregister = () => { };
|
1830
|
-
});
|
1836
|
+
}));
|
1831
1837
|
// Return a function that *executes* `deregister` (and not `deregister` itself) so that we
|
1832
1838
|
// can change the behavior of `deregister` once the listener is added. Using a closure in
|
1833
1839
|
// this way allows us to avoid any additional data structures to track listener removal.
|
@@ -1857,9 +1863,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1857
1863
|
return this._config.events.indexOf(eventName) > -1;
|
1858
1864
|
}
|
1859
1865
|
}
|
1860
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1861
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1866
|
+
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 });
|
1867
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGesturesPlugin });
|
1868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1863
1869
|
type: Injectable
|
1864
1870
|
}], ctorParameters: function () {
|
1865
1871
|
return [{ type: undefined, decorators: [{
|
@@ -1888,9 +1894,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.1",
|
|
1888
1894
|
*/
|
1889
1895
|
class HammerModule {
|
1890
1896
|
}
|
1891
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1892
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
1893
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1897
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1898
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule });
|
1899
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule, providers: [
|
1894
1900
|
{
|
1895
1901
|
provide: EVENT_MANAGER_PLUGINS,
|
1896
1902
|
useClass: HammerGesturesPlugin,
|
@@ -1899,7 +1905,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1899
1905
|
},
|
1900
1906
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1901
1907
|
] });
|
1902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: HammerModule, decorators: [{
|
1903
1909
|
type: NgModule,
|
1904
1910
|
args: [{
|
1905
1911
|
providers: [
|
@@ -1954,9 +1960,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.1",
|
|
1954
1960
|
*/
|
1955
1961
|
class DomSanitizer {
|
1956
1962
|
}
|
1957
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1958
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1963
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1964
|
+
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; }) });
|
1965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizer, decorators: [{
|
1960
1966
|
type: Injectable,
|
1961
1967
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1962
1968
|
}] });
|
@@ -2020,9 +2026,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
2020
2026
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
2021
2027
|
}
|
2022
2028
|
}
|
2023
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
2024
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
2025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
2029
|
+
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 });
|
2030
|
+
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 }] });
|
2031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.10", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
2026
2032
|
type: Injectable,
|
2027
2033
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
2028
2034
|
}], ctorParameters: function () {
|
@@ -2050,7 +2056,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.1",
|
|
2050
2056
|
/**
|
2051
2057
|
* @publicApi
|
2052
2058
|
*/
|
2053
|
-
const VERSION = new Version('14.0.0-next.
|
2059
|
+
const VERSION = new Version('14.0.0-next.10');
|
2054
2060
|
|
2055
2061
|
/**
|
2056
2062
|
* @license
|