@angular/platform-browser 14.0.0-next.0 → 14.0.0-next.11
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 +7 -14
- 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 +21 -7
- 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 +26 -32
- package/fesm2015/animations.mjs.map +1 -1
- package/fesm2015/platform-browser.mjs +78 -63
- 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 +26 -32
- package/fesm2020/animations.mjs.map +1 -1
- package/fesm2020/platform-browser.mjs +78 -63
- 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.11
|
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.11", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
225
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: BrowserXhr });
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", 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.11", ngImport: i0, type: EventManager });
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", 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: "14.0.0-next.
|
358
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
357
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
358
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: SharedStylesHost });
|
359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", 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: "14.0.0-next.
|
399
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
398
|
+
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: DomSharedStylesHost });
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", 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: "14.0.0-next.
|
522
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
521
|
+
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: DomRendererFactory2 });
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", 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,
|
@@ -535,7 +535,16 @@ class DefaultDomRenderer2 {
|
|
535
535
|
destroy() { }
|
536
536
|
createElement(name, namespace) {
|
537
537
|
if (namespace) {
|
538
|
-
|
538
|
+
// TODO: `|| namespace` was added in
|
539
|
+
// https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to
|
540
|
+
// support how Ivy passed around the namespace URI rather than short name at the time. It did
|
541
|
+
// not, however extend the support to other parts of the system (setAttribute, setAttribute,
|
542
|
+
// and the ServerRenderer). We should decide what exactly the semantics for dealing with
|
543
|
+
// namespaces should be and make it consistent.
|
544
|
+
// Related issues:
|
545
|
+
// https://github.com/angular/angular/issues/44028
|
546
|
+
// https://github.com/angular/angular/issues/44883
|
547
|
+
return document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);
|
539
548
|
}
|
540
549
|
return document.createElement(name);
|
541
550
|
}
|
@@ -546,11 +555,13 @@ class DefaultDomRenderer2 {
|
|
546
555
|
return document.createTextNode(value);
|
547
556
|
}
|
548
557
|
appendChild(parent, newChild) {
|
549
|
-
parent.
|
558
|
+
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
559
|
+
targetParent.appendChild(newChild);
|
550
560
|
}
|
551
561
|
insertBefore(parent, newChild, refChild) {
|
552
562
|
if (parent) {
|
553
|
-
parent.
|
563
|
+
const targetParent = isTemplateNode(parent) ? parent.content : parent;
|
564
|
+
targetParent.insertBefore(newChild, refChild);
|
554
565
|
}
|
555
566
|
}
|
556
567
|
removeChild(parent, oldChild) {
|
@@ -651,6 +662,9 @@ function checkNoSyntheticProp(name, nameKind) {
|
|
651
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).`);
|
652
663
|
}
|
653
664
|
}
|
665
|
+
function isTemplateNode(node) {
|
666
|
+
return node.tagName === 'TEMPLATE' && node.content !== undefined;
|
667
|
+
}
|
654
668
|
class EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {
|
655
669
|
constructor(eventManager, sharedStylesHost, component, appId) {
|
656
670
|
super(eventManager);
|
@@ -727,9 +741,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
727
741
|
return target.removeEventListener(eventName, callback);
|
728
742
|
}
|
729
743
|
}
|
730
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
731
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
744
|
+
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: DomEventsPlugin });
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
733
747
|
type: Injectable
|
734
748
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
735
749
|
type: Inject,
|
@@ -905,9 +919,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
905
919
|
}
|
906
920
|
}
|
907
921
|
}
|
908
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
909
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
922
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: KeyEventsPlugin });
|
924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
911
925
|
type: Injectable
|
912
926
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
913
927
|
type: Inject,
|
@@ -1023,10 +1037,10 @@ class BrowserModule {
|
|
1023
1037
|
};
|
1024
1038
|
}
|
1025
1039
|
}
|
1026
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1027
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
1028
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1040
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1042
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: BrowserModule, providers: BROWSER_MODULE_PROVIDERS, imports: [CommonModule, ApplicationModule] });
|
1043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: BrowserModule, decorators: [{
|
1030
1044
|
type: NgModule,
|
1031
1045
|
args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] }]
|
1032
1046
|
}], ctorParameters: function () { return [{ type: BrowserModule, decorators: [{
|
@@ -1201,9 +1215,9 @@ class Meta {
|
|
1201
1215
|
return META_KEYS_MAP[prop] || prop;
|
1202
1216
|
}
|
1203
1217
|
}
|
1204
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1205
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1218
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: Meta, decorators: [{
|
1207
1221
|
type: Injectable,
|
1208
1222
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1209
1223
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1258,9 +1272,9 @@ class Title {
|
|
1258
1272
|
this._doc.title = newTitle || '';
|
1259
1273
|
}
|
1260
1274
|
}
|
1261
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1262
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1275
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: Title, decorators: [{
|
1264
1278
|
type: Injectable,
|
1265
1279
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1266
1280
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1527,9 +1541,9 @@ class TransferState {
|
|
1527
1541
|
return JSON.stringify(this.store);
|
1528
1542
|
}
|
1529
1543
|
}
|
1530
|
-
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1531
|
-
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1544
|
+
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1545
|
+
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: TransferState });
|
1546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: TransferState, decorators: [{
|
1533
1547
|
type: Injectable
|
1534
1548
|
}] });
|
1535
1549
|
function initTransferState(doc, appId) {
|
@@ -1556,10 +1570,10 @@ function initTransferState(doc, appId) {
|
|
1556
1570
|
*/
|
1557
1571
|
class BrowserTransferStateModule {
|
1558
1572
|
}
|
1559
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1560
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
1561
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1573
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1574
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: BrowserTransferStateModule });
|
1575
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1563
1577
|
type: NgModule,
|
1564
1578
|
args: [{
|
1565
1579
|
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],
|
@@ -1735,9 +1749,9 @@ class HammerGestureConfig {
|
|
1735
1749
|
return mc;
|
1736
1750
|
}
|
1737
1751
|
}
|
1738
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1739
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1752
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1753
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerGestureConfig });
|
1754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1741
1755
|
type: Injectable
|
1742
1756
|
}] });
|
1743
1757
|
/**
|
@@ -1772,7 +1786,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1772
1786
|
// If Hammer is not present but a loader is specified, we defer adding the event listener
|
1773
1787
|
// until Hammer is loaded.
|
1774
1788
|
if (!window.Hammer && this.loader) {
|
1775
|
-
this._loaderPromise = this._loaderPromise || this.loader();
|
1789
|
+
this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());
|
1776
1790
|
// This `addEventListener` method returns a function to remove the added listener.
|
1777
1791
|
// Until Hammer is loaded, the returned function needs to *cancel* the registration rather
|
1778
1792
|
// than remove anything.
|
@@ -1780,7 +1794,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1780
1794
|
let deregister = () => {
|
1781
1795
|
cancelRegistration = true;
|
1782
1796
|
};
|
1783
|
-
this._loaderPromise
|
1797
|
+
zone.runOutsideAngular(() => this._loaderPromise
|
1784
1798
|
.then(() => {
|
1785
1799
|
// If Hammer isn't actually loaded when the custom loader resolves, give up.
|
1786
1800
|
if (!window.Hammer) {
|
@@ -1792,7 +1806,8 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1792
1806
|
}
|
1793
1807
|
if (!cancelRegistration) {
|
1794
1808
|
// Now that Hammer is loaded and the listener is being loaded for real,
|
1795
|
-
// the deregistration function changes from canceling registration to
|
1809
|
+
// the deregistration function changes from canceling registration to
|
1810
|
+
// removal.
|
1796
1811
|
deregister = this.addEventListener(element, eventName, handler);
|
1797
1812
|
}
|
1798
1813
|
})
|
@@ -1802,7 +1817,7 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1802
1817
|
`Hammer.JS loader failed.`);
|
1803
1818
|
}
|
1804
1819
|
deregister = () => { };
|
1805
|
-
});
|
1820
|
+
}));
|
1806
1821
|
// Return a function that *executes* `deregister` (and not `deregister` itself) so that we
|
1807
1822
|
// can change the behavior of `deregister` once the listener is added. Using a closure in
|
1808
1823
|
// this way allows us to avoid any additional data structures to track listener removal.
|
@@ -1832,9 +1847,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1832
1847
|
return this._config.events.indexOf(eventName) > -1;
|
1833
1848
|
}
|
1834
1849
|
}
|
1835
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1836
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1850
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: HammerGesturesPlugin });
|
1852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1838
1853
|
type: Injectable
|
1839
1854
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1840
1855
|
type: Inject,
|
@@ -1861,9 +1876,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.0",
|
|
1861
1876
|
*/
|
1862
1877
|
class HammerModule {
|
1863
1878
|
}
|
1864
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1865
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
1866
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
1879
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1880
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerModule });
|
1881
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerModule, providers: [
|
1867
1882
|
{
|
1868
1883
|
provide: EVENT_MANAGER_PLUGINS,
|
1869
1884
|
useClass: HammerGesturesPlugin,
|
@@ -1872,7 +1887,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1872
1887
|
},
|
1873
1888
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1874
1889
|
] });
|
1875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: HammerModule, decorators: [{
|
1876
1891
|
type: NgModule,
|
1877
1892
|
args: [{
|
1878
1893
|
providers: [
|
@@ -1927,9 +1942,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.0",
|
|
1927
1942
|
*/
|
1928
1943
|
class DomSanitizer {
|
1929
1944
|
}
|
1930
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1931
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
1945
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1946
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
1947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: DomSanitizer, decorators: [{
|
1933
1948
|
type: Injectable,
|
1934
1949
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1935
1950
|
}] });
|
@@ -1993,9 +2008,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1993
2008
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1994
2009
|
}
|
1995
2010
|
}
|
1996
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
1997
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
1998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
2011
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.11", 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.11", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
2013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.11", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1999
2014
|
type: Injectable,
|
2000
2015
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
2001
2016
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -2021,7 +2036,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.0",
|
|
2021
2036
|
/**
|
2022
2037
|
* @publicApi
|
2023
2038
|
*/
|
2024
|
-
const VERSION = new Version('14.0.0-next.
|
2039
|
+
const VERSION = new Version('14.0.0-next.11');
|
2025
2040
|
|
2026
2041
|
/**
|
2027
2042
|
* @license
|