@angular/platform-browser 13.0.0-next.0 → 13.0.0-next.12
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 +47 -56
- package/animations/package.json +5 -5
- package/esm2020/animations/animations.mjs +5 -0
- package/{esm2015/animations/index.js → esm2020/animations/index.mjs} +0 -0
- package/{esm2015/animations/public_api.js → esm2020/animations/public_api.mjs} +0 -0
- package/esm2020/animations/src/animation_builder.mjs +106 -0
- package/esm2020/animations/src/animation_renderer.mjs +248 -0
- package/{esm2015/animations/src/animations.js → esm2020/animations/src/animations.mjs} +0 -0
- package/esm2020/animations/src/module.mjs +68 -0
- package/{esm2015/animations/src/private_export.js → esm2020/animations/src/private_export.mjs} +0 -0
- package/esm2020/animations/src/providers.mjs +71 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/esm2020/platform-browser.mjs +5 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/src/browser/browser_adapter.js → esm2020/src/browser/browser_adapter.mjs} +0 -0
- package/{esm2015/src/browser/generic_browser_adapter.js → esm2020/src/browser/generic_browser_adapter.mjs} +0 -0
- package/esm2020/src/browser/meta.mjs +182 -0
- package/esm2020/src/browser/server-transition.mjs +36 -0
- package/{esm2015/src/browser/testability.js → esm2020/src/browser/testability.mjs} +0 -0
- package/esm2020/src/browser/title.mjs +54 -0
- package/{esm2015/src/browser/tools/browser.js → esm2020/src/browser/tools/browser.mjs} +0 -0
- package/{esm2015/src/browser/tools/common_tools.js → esm2020/src/browser/tools/common_tools.mjs} +0 -0
- package/{esm2015/src/browser/tools/tools.js → esm2020/src/browser/tools/tools.mjs} +0 -0
- package/esm2020/src/browser/transfer_state.mjs +158 -0
- package/esm2020/src/browser/xhr.mjs +16 -0
- package/esm2020/src/browser.mjs +132 -0
- package/{esm2015/src/dom/debug/by.js → esm2020/src/dom/debug/by.mjs} +0 -0
- package/esm2020/src/dom/debug/ng_probe.mjs +54 -0
- package/esm2020/src/dom/dom_renderer.mjs +310 -0
- package/esm2020/src/dom/events/dom_events.mjs +37 -0
- package/esm2020/src/dom/events/event_manager.mjs +103 -0
- package/esm2020/src/dom/events/hammer_gestures.mjs +266 -0
- package/esm2020/src/dom/events/key_events.mjs +204 -0
- package/esm2020/src/dom/shared_styles_host.mjs +83 -0
- package/{esm2015/src/dom/util.js → esm2020/src/dom/util.mjs} +0 -0
- package/{esm2015/src/platform-browser.js → esm2020/src/platform-browser.mjs} +0 -0
- package/{esm2015/src/private_export.js → esm2020/src/private_export.mjs} +0 -0
- package/{esm2015/src/security/dom_sanitization_service.js → esm2020/src/security/dom_sanitization_service.mjs} +16 -12
- package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
- package/esm2020/testing/src/browser.mjs +48 -0
- package/{esm2015/testing/src/browser_util.js → esm2020/testing/src/browser_util.mjs} +0 -0
- package/{esm2015/testing/src/matchers.js → esm2020/testing/src/matchers.mjs} +0 -0
- package/{esm2015/testing/src/testing.js → esm2020/testing/src/testing.mjs} +0 -0
- package/esm2020/testing/testing.mjs +5 -0
- package/fesm2015/{animations.js → animations.mjs} +52 -40
- package/fesm2015/animations.mjs.map +1 -0
- package/fesm2015/platform-browser.mjs +2152 -0
- package/fesm2015/platform-browser.mjs.map +1 -0
- package/fesm2015/{testing.js → testing.mjs} +23 -15
- package/fesm2015/testing.mjs.map +1 -0
- package/fesm2020/animations.mjs +524 -0
- package/fesm2020/animations.mjs.map +1 -0
- package/{fesm2015/platform-browser.js → fesm2020/platform-browser.mjs} +165 -125
- package/fesm2020/platform-browser.mjs.map +1 -0
- package/fesm2020/testing.mjs +285 -0
- package/fesm2020/testing.mjs.map +1 -0
- package/package.json +34 -10
- package/platform-browser.d.ts +63 -78
- package/testing/package.json +5 -5
- package/testing/testing.d.ts +6 -4
- package/animations/animations.metadata.json +0 -1
- package/animations.d.ts +0 -7
- package/animations.metadata.json +0 -1
- package/bundles/platform-browser-animations.umd.js +0 -873
- package/bundles/platform-browser-animations.umd.js.map +0 -1
- package/bundles/platform-browser-testing.umd.js +0 -684
- package/bundles/platform-browser-testing.umd.js.map +0 -1
- package/bundles/platform-browser.umd.js +0 -2504
- package/bundles/platform-browser.umd.js.map +0 -1
- package/esm2015/animations/animations.externs.js +0 -6
- package/esm2015/animations/animations.js +0 -7
- package/esm2015/animations/src/animation_builder.js +0 -105
- package/esm2015/animations/src/animation_renderer.js +0 -249
- package/esm2015/animations/src/module.js +0 -59
- package/esm2015/animations/src/providers.js +0 -69
- package/esm2015/platform-browser.externs.js +0 -6
- package/esm2015/platform-browser.js +0 -16
- package/esm2015/src/browser/meta.js +0 -180
- package/esm2015/src/browser/server-transition.js +0 -35
- package/esm2015/src/browser/title.js +0 -52
- package/esm2015/src/browser/transfer_state.js +0 -151
- package/esm2015/src/browser/xhr.js +0 -20
- package/esm2015/src/browser.js +0 -125
- package/esm2015/src/dom/debug/ng_probe.js +0 -56
- package/esm2015/src/dom/dom_renderer.js +0 -306
- package/esm2015/src/dom/events/dom_events.js +0 -34
- package/esm2015/src/dom/events/event_manager.js +0 -101
- package/esm2015/src/dom/events/hammer_gestures.js +0 -252
- package/esm2015/src/dom/events/key_events.js +0 -203
- package/esm2015/src/dom/shared_styles_host.js +0 -78
- package/esm2015/testing/src/browser.js +0 -41
- package/esm2015/testing/testing.externs.js +0 -6
- package/esm2015/testing/testing.js +0 -6
- package/fesm2015/animations.js.map +0 -1
- package/fesm2015/platform-browser.js.map +0 -1
- package/fesm2015/testing.js.map +0 -1
- package/platform-browser.metadata.json +0 -1
- package/testing/testing.metadata.json +0 -1
- package/testing.d.ts +0 -7
- package/testing.metadata.json +0 -1
@@ -1,12 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v13.0.0-next.
|
2
|
+
* @license Angular v13.0.0-next.12
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
7
7
|
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
|
8
8
|
export { ɵgetDOM } from '@angular/common';
|
9
|
-
import
|
9
|
+
import * as i0 from '@angular/core';
|
10
|
+
import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, setTestabilityGetter, ɵglobal, Injectable, ApplicationRef, NgZone, ɵgetDebugNodeR2, NgProbeToken, Optional, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ɵConsole, NgModule, forwardRef, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵgetSanitizationBypassType, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, Sanitizer, createPlatformFactory, platformCore, ɵINJECTOR_SCOPE, RendererFactory2, Testability, ApplicationModule, SkipSelf, ɵɵinject, Version } from '@angular/core';
|
10
11
|
|
11
12
|
/**
|
12
13
|
* @license
|
@@ -137,9 +138,10 @@ function appInitializerFactory(transitionId, document, injector) {
|
|
137
138
|
// the server.
|
138
139
|
injector.get(ApplicationInitStatus).donePromise.then(() => {
|
139
140
|
const dom = ɵgetDOM();
|
140
|
-
const styles =
|
141
|
-
|
142
|
-
|
141
|
+
const styles = document.querySelectorAll(`style[ng-transition="${transitionId}"]`);
|
142
|
+
for (let i = 0; i < styles.length; i++) {
|
143
|
+
dom.remove(styles[i]);
|
144
|
+
}
|
143
145
|
});
|
144
146
|
};
|
145
147
|
}
|
@@ -211,13 +213,6 @@ class BrowserGetTestability {
|
|
211
213
|
}
|
212
214
|
}
|
213
215
|
|
214
|
-
/**
|
215
|
-
* @license
|
216
|
-
* Copyright Google LLC All Rights Reserved.
|
217
|
-
*
|
218
|
-
* Use of this source code is governed by an MIT-style license that can be
|
219
|
-
* found in the LICENSE file at https://angular.io/license
|
220
|
-
*/
|
221
216
|
/**
|
222
217
|
* A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.
|
223
218
|
*/
|
@@ -226,9 +221,11 @@ class BrowserXhr {
|
|
226
221
|
return new XMLHttpRequest();
|
227
222
|
}
|
228
223
|
}
|
229
|
-
BrowserXhr
|
230
|
-
|
231
|
-
|
224
|
+
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
225
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserXhr });
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserXhr, decorators: [{
|
227
|
+
type: Injectable
|
228
|
+
}] });
|
232
229
|
|
233
230
|
/**
|
234
231
|
* @license
|
@@ -270,11 +267,10 @@ function exportNgVar(name, value) {
|
|
270
267
|
* Use of this source code is governed by an MIT-style license that can be
|
271
268
|
* found in the LICENSE file at https://angular.io/license
|
272
269
|
*/
|
273
|
-
const
|
270
|
+
const CORE_TOKENS = (() => ({
|
274
271
|
'ApplicationRef': ApplicationRef,
|
275
272
|
'NgZone': NgZone,
|
276
|
-
});
|
277
|
-
const CORE_TOKENS = (ɵ0)();
|
273
|
+
}))();
|
278
274
|
const INSPECT_GLOBAL_NAME = 'probe';
|
279
275
|
const CORE_TOKENS_GLOBAL_NAME = 'coreTokens';
|
280
276
|
/**
|
@@ -287,7 +283,7 @@ function inspectNativeElementR2(element) {
|
|
287
283
|
}
|
288
284
|
function _createNgProbeR2(coreTokens) {
|
289
285
|
exportNgVar(INSPECT_GLOBAL_NAME, inspectNativeElementR2);
|
290
|
-
exportNgVar(CORE_TOKENS_GLOBAL_NAME,
|
286
|
+
exportNgVar(CORE_TOKENS_GLOBAL_NAME, { ...CORE_TOKENS, ..._ngProbeTokensToMap(coreTokens || []) });
|
291
287
|
return () => inspectNativeElementR2;
|
292
288
|
}
|
293
289
|
function _ngProbeTokensToMap(tokens) {
|
@@ -314,7 +310,7 @@ const ELEMENT_PROBE_PROVIDERS__PRE_R3__ = [
|
|
314
310
|
multi: true,
|
315
311
|
},
|
316
312
|
];
|
317
|
-
const ELEMENT_PROBE_PROVIDERS =
|
313
|
+
const ELEMENT_PROBE_PROVIDERS = ELEMENT_PROBE_PROVIDERS__POST_R3__;
|
318
314
|
|
319
315
|
/**
|
320
316
|
* @license
|
@@ -395,13 +391,14 @@ class EventManager {
|
|
395
391
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
396
392
|
}
|
397
393
|
}
|
398
|
-
EventManager
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
]
|
394
|
+
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
395
|
+
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: EventManager });
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: EventManager, decorators: [{
|
397
|
+
type: Injectable
|
398
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
399
|
+
type: Inject,
|
400
|
+
args: [EVENT_MANAGER_PLUGINS]
|
401
|
+
}] }, { type: i0.NgZone }]; } });
|
405
402
|
class EventManagerPlugin {
|
406
403
|
constructor(_doc) {
|
407
404
|
this._doc = _doc;
|
@@ -442,9 +439,11 @@ class SharedStylesHost {
|
|
442
439
|
return Array.from(this._stylesSet);
|
443
440
|
}
|
444
441
|
}
|
445
|
-
SharedStylesHost
|
446
|
-
|
447
|
-
|
442
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
443
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: SharedStylesHost });
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: SharedStylesHost, decorators: [{
|
445
|
+
type: Injectable
|
446
|
+
}] });
|
448
447
|
class DomSharedStylesHost extends SharedStylesHost {
|
449
448
|
constructor(_doc) {
|
450
449
|
super();
|
@@ -481,12 +480,14 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
481
480
|
this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));
|
482
481
|
}
|
483
482
|
}
|
484
|
-
DomSharedStylesHost
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
483
|
+
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
484
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSharedStylesHost });
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
486
|
+
type: Injectable
|
487
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
488
|
+
type: Inject,
|
489
|
+
args: [DOCUMENT]
|
490
|
+
}] }]; } });
|
490
491
|
function removeStyle(styleNode) {
|
491
492
|
ɵgetDOM().remove(styleNode);
|
492
493
|
}
|
@@ -601,18 +602,19 @@ class DomRendererFactory2 {
|
|
601
602
|
begin() { }
|
602
603
|
end() { }
|
603
604
|
}
|
604
|
-
DomRendererFactory2
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
];
|
605
|
+
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
606
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomRendererFactory2 });
|
607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
608
|
+
type: Injectable
|
609
|
+
}], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
610
|
+
type: Inject,
|
611
|
+
args: [APP_ID]
|
612
|
+
}] }]; } });
|
612
613
|
class DefaultDomRenderer2 {
|
613
614
|
constructor(eventManager) {
|
614
615
|
this.eventManager = eventManager;
|
615
616
|
this.data = Object.create(null);
|
617
|
+
this.destroyNode = null;
|
616
618
|
}
|
617
619
|
destroy() { }
|
618
620
|
createElement(name, namespace) {
|
@@ -734,11 +736,12 @@ class DefaultDomRenderer2 {
|
|
734
736
|
return this.eventManager.addEventListener(target, event, decoratePreventDefault(callback));
|
735
737
|
}
|
736
738
|
}
|
737
|
-
const
|
738
|
-
const AT_CHARCODE = (ɵ0$1)();
|
739
|
+
const AT_CHARCODE = (() => '@'.charCodeAt(0))();
|
739
740
|
function checkNoSyntheticProp(name, nameKind) {
|
740
741
|
if (name.charCodeAt(0) === AT_CHARCODE) {
|
741
|
-
throw new Error(`
|
742
|
+
throw new Error(`Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
|
743
|
+
- Either \`BrowserAnimationsModule\` or \`NoopAnimationsModule\` are imported in your application.
|
744
|
+
- 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).`);
|
742
745
|
}
|
743
746
|
}
|
744
747
|
class EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {
|
@@ -817,12 +820,14 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
817
820
|
return target.removeEventListener(eventName, callback);
|
818
821
|
}
|
819
822
|
}
|
820
|
-
DomEventsPlugin
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
823
|
+
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
824
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomEventsPlugin });
|
825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
826
|
+
type: Injectable
|
827
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
828
|
+
type: Inject,
|
829
|
+
args: [DOCUMENT]
|
830
|
+
}] }]; } });
|
826
831
|
|
827
832
|
/**
|
828
833
|
* @license
|
@@ -933,9 +938,11 @@ class HammerGestureConfig {
|
|
933
938
|
return mc;
|
934
939
|
}
|
935
940
|
}
|
936
|
-
HammerGestureConfig
|
937
|
-
|
938
|
-
|
941
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
942
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerGestureConfig });
|
943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
944
|
+
type: Injectable
|
945
|
+
}] });
|
939
946
|
/**
|
940
947
|
* Event plugin that adds Hammer support to an application.
|
941
948
|
*
|
@@ -1028,15 +1035,22 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1028
1035
|
return this._config.events.indexOf(eventName) > -1;
|
1029
1036
|
}
|
1030
1037
|
}
|
1031
|
-
HammerGesturesPlugin
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1038
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1039
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerGesturesPlugin });
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1041
|
+
type: Injectable
|
1042
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1043
|
+
type: Inject,
|
1044
|
+
args: [DOCUMENT]
|
1045
|
+
}] }, { type: HammerGestureConfig, decorators: [{
|
1046
|
+
type: Inject,
|
1047
|
+
args: [HAMMER_GESTURE_CONFIG]
|
1048
|
+
}] }, { type: i0.ɵConsole }, { type: undefined, decorators: [{
|
1049
|
+
type: Optional
|
1050
|
+
}, {
|
1051
|
+
type: Inject,
|
1052
|
+
args: [HAMMER_LOADER]
|
1053
|
+
}] }]; } });
|
1040
1054
|
/**
|
1041
1055
|
* In Ivy, support for Hammer gestures is optional, so applications must
|
1042
1056
|
* import the `HammerModule` at root to turn on support. This means that
|
@@ -1055,7 +1069,7 @@ const HAMMER_PROVIDERS__PRE_R3__ = [
|
|
1055
1069
|
},
|
1056
1070
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1057
1071
|
];
|
1058
|
-
const HAMMER_PROVIDERS =
|
1072
|
+
const HAMMER_PROVIDERS = HAMMER_PROVIDERS__POST_R3__;
|
1059
1073
|
/**
|
1060
1074
|
* Adds support for HammerJS.
|
1061
1075
|
*
|
@@ -1069,9 +1083,13 @@ const HAMMER_PROVIDERS = HAMMER_PROVIDERS__PRE_R3__;
|
|
1069
1083
|
*/
|
1070
1084
|
class HammerModule {
|
1071
1085
|
}
|
1072
|
-
HammerModule
|
1073
|
-
|
1074
|
-
|
1086
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1087
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerModule });
|
1088
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerModule, providers: HAMMER_PROVIDERS__PRE_R3__ });
|
1089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: HammerModule, decorators: [{
|
1090
|
+
type: NgModule,
|
1091
|
+
args: [{ providers: HAMMER_PROVIDERS__PRE_R3__ }]
|
1092
|
+
}] });
|
1075
1093
|
|
1076
1094
|
/**
|
1077
1095
|
* @license
|
@@ -1124,15 +1142,14 @@ const _chromeNumKeyPadMap = {
|
|
1124
1142
|
'\x60': '0',
|
1125
1143
|
'\x90': 'NumLock'
|
1126
1144
|
};
|
1127
|
-
const ɵ0$2 = (event) => event.altKey, ɵ1 = (event) => event.ctrlKey, ɵ2 = (event) => event.metaKey, ɵ3 = (event) => event.shiftKey;
|
1128
1145
|
/**
|
1129
1146
|
* Retrieves modifiers from key-event objects.
|
1130
1147
|
*/
|
1131
1148
|
const MODIFIER_KEY_GETTERS = {
|
1132
|
-
'alt':
|
1133
|
-
'control':
|
1134
|
-
'meta':
|
1135
|
-
'shift':
|
1149
|
+
'alt': (event) => event.altKey,
|
1150
|
+
'control': (event) => event.ctrlKey,
|
1151
|
+
'meta': (event) => event.metaKey,
|
1152
|
+
'shift': (event) => event.shiftKey
|
1136
1153
|
};
|
1137
1154
|
/**
|
1138
1155
|
* @publicApi
|
@@ -1243,12 +1260,14 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
1243
1260
|
}
|
1244
1261
|
}
|
1245
1262
|
}
|
1246
|
-
KeyEventsPlugin
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1263
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1264
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: KeyEventsPlugin });
|
1265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
1266
|
+
type: Injectable
|
1267
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1268
|
+
type: Inject,
|
1269
|
+
args: [DOCUMENT]
|
1270
|
+
}] }]; } });
|
1252
1271
|
function getEventKey(event) {
|
1253
1272
|
let key = event.key;
|
1254
1273
|
if (key == null) {
|
@@ -1312,10 +1331,12 @@ function getEventKey(event) {
|
|
1312
1331
|
*/
|
1313
1332
|
class DomSanitizer {
|
1314
1333
|
}
|
1315
|
-
DomSanitizer.ɵ
|
1316
|
-
DomSanitizer
|
1317
|
-
|
1318
|
-
|
1334
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1335
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
1336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSanitizer, decorators: [{
|
1337
|
+
type: Injectable,
|
1338
|
+
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1339
|
+
}] });
|
1319
1340
|
function domSanitizerImplFactory(injector) {
|
1320
1341
|
return new DomSanitizerImpl(injector.get(DOCUMENT));
|
1321
1342
|
}
|
@@ -1376,13 +1397,15 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1376
1397
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1377
1398
|
}
|
1378
1399
|
}
|
1379
|
-
DomSanitizerImpl.ɵ
|
1380
|
-
DomSanitizerImpl
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1400
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1401
|
+
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
1402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1403
|
+
type: Injectable,
|
1404
|
+
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1405
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1406
|
+
type: Inject,
|
1407
|
+
args: [DOCUMENT]
|
1408
|
+
}] }]; } });
|
1386
1409
|
|
1387
1410
|
/**
|
1388
1411
|
* @license
|
@@ -1403,9 +1426,8 @@ function _document() {
|
|
1403
1426
|
ɵsetDocument(document);
|
1404
1427
|
return document;
|
1405
1428
|
}
|
1406
|
-
const ɵ0$3 = ɵPLATFORM_BROWSER_ID;
|
1407
1429
|
const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [
|
1408
|
-
{ provide: PLATFORM_ID, useValue: ɵ
|
1430
|
+
{ provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },
|
1409
1431
|
{ provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },
|
1410
1432
|
{ provide: DOCUMENT, useFactory: _document, deps: [] },
|
1411
1433
|
];
|
@@ -1420,7 +1442,7 @@ const BROWSER_SANITIZATION_PROVIDERS__POST_R3__ = [];
|
|
1420
1442
|
* application to XSS risks. For more detail, see the [Security Guide](https://g.co/ng/security).
|
1421
1443
|
* @publicApi
|
1422
1444
|
*/
|
1423
|
-
const BROWSER_SANITIZATION_PROVIDERS =
|
1445
|
+
const BROWSER_SANITIZATION_PROVIDERS = BROWSER_SANITIZATION_PROVIDERS__POST_R3__;
|
1424
1446
|
/**
|
1425
1447
|
* A factory function that returns a `PlatformRef` instance associated with browser service
|
1426
1448
|
* providers.
|
@@ -1487,12 +1509,20 @@ class BrowserModule {
|
|
1487
1509
|
};
|
1488
1510
|
}
|
1489
1511
|
}
|
1490
|
-
BrowserModule
|
1491
|
-
|
1492
|
-
];
|
1493
|
-
|
1494
|
-
|
1495
|
-
]
|
1512
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserModule, deps: [{ token: BrowserModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1513
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1514
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserModule, providers: BROWSER_MODULE_PROVIDERS, imports: [CommonModule, ApplicationModule] });
|
1515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserModule, decorators: [{
|
1516
|
+
type: NgModule,
|
1517
|
+
args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] }]
|
1518
|
+
}], ctorParameters: function () { return [{ type: BrowserModule, decorators: [{
|
1519
|
+
type: Optional
|
1520
|
+
}, {
|
1521
|
+
type: SkipSelf
|
1522
|
+
}, {
|
1523
|
+
type: Inject,
|
1524
|
+
args: [BrowserModule]
|
1525
|
+
}] }]; } });
|
1496
1526
|
|
1497
1527
|
/**
|
1498
1528
|
* @license
|
@@ -1657,13 +1687,15 @@ class Meta {
|
|
1657
1687
|
return META_KEYS_MAP[prop] || prop;
|
1658
1688
|
}
|
1659
1689
|
}
|
1660
|
-
Meta.ɵ
|
1661
|
-
Meta
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1690
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1691
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: Meta, decorators: [{
|
1693
|
+
type: Injectable,
|
1694
|
+
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1695
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1696
|
+
type: Inject,
|
1697
|
+
args: [DOCUMENT]
|
1698
|
+
}] }]; } });
|
1667
1699
|
/**
|
1668
1700
|
* Mapping for MetaDefinition properties with their correct meta attribute names
|
1669
1701
|
*/
|
@@ -1712,13 +1744,15 @@ class Title {
|
|
1712
1744
|
this._doc.title = newTitle || '';
|
1713
1745
|
}
|
1714
1746
|
}
|
1715
|
-
Title.ɵ
|
1716
|
-
Title
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1747
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1748
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: Title, decorators: [{
|
1750
|
+
type: Injectable,
|
1751
|
+
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1752
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1753
|
+
type: Inject,
|
1754
|
+
args: [DOCUMENT]
|
1755
|
+
}] }]; } });
|
1722
1756
|
|
1723
1757
|
/**
|
1724
1758
|
* @license
|
@@ -1946,9 +1980,11 @@ class TransferState {
|
|
1946
1980
|
return JSON.stringify(this.store);
|
1947
1981
|
}
|
1948
1982
|
}
|
1949
|
-
TransferState
|
1950
|
-
|
1951
|
-
|
1983
|
+
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1984
|
+
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: TransferState });
|
1985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: TransferState, decorators: [{
|
1986
|
+
type: Injectable
|
1987
|
+
}] });
|
1952
1988
|
function initTransferState(doc, appId) {
|
1953
1989
|
// Locate the script tag with the JSON data transferred from the server.
|
1954
1990
|
// The id of the script tag is set to the Angular appId + 'state'.
|
@@ -1973,11 +2009,15 @@ function initTransferState(doc, appId) {
|
|
1973
2009
|
*/
|
1974
2010
|
class BrowserTransferStateModule {
|
1975
2011
|
}
|
1976
|
-
BrowserTransferStateModule
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
2012
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2013
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserTransferStateModule });
|
2014
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserTransferStateModule, providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }] });
|
2015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.12", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
2016
|
+
type: NgModule,
|
2017
|
+
args: [{
|
2018
|
+
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],
|
2019
|
+
}]
|
2020
|
+
}] });
|
1981
2021
|
|
1982
2022
|
/**
|
1983
2023
|
* @license
|
@@ -2057,7 +2097,7 @@ function elementMatches(n, selector) {
|
|
2057
2097
|
/**
|
2058
2098
|
* @publicApi
|
2059
2099
|
*/
|
2060
|
-
const VERSION = new Version('13.0.0-next.
|
2100
|
+
const VERSION = new Version('13.0.0-next.12');
|
2061
2101
|
|
2062
2102
|
/**
|
2063
2103
|
* @license
|
@@ -2088,5 +2128,5 @@ const VERSION = new Version('13.0.0-next.0');
|
|
2088
2128
|
* Generated bundle index. Do not edit.
|
2089
2129
|
*/
|
2090
2130
|
|
2091
|
-
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, BROWSER_SANITIZATION_PROVIDERS as ɵBROWSER_SANITIZATION_PROVIDERS, BROWSER_SANITIZATION_PROVIDERS__POST_R3__ as ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, ELEMENT_PROBE_PROVIDERS as ɵELEMENT_PROBE_PROVIDERS, ELEMENT_PROBE_PROVIDERS__POST_R3__ as ɵELEMENT_PROBE_PROVIDERS__POST_R3__, HAMMER_PROVIDERS__POST_R3__ as ɵHAMMER_PROVIDERS__POST_R3__, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID,
|
2092
|
-
//# sourceMappingURL=platform-browser.
|
2131
|
+
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, BROWSER_SANITIZATION_PROVIDERS as ɵBROWSER_SANITIZATION_PROVIDERS, BROWSER_SANITIZATION_PROVIDERS__POST_R3__ as ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, ELEMENT_PROBE_PROVIDERS as ɵELEMENT_PROBE_PROVIDERS, ELEMENT_PROBE_PROVIDERS__POST_R3__ as ɵELEMENT_PROBE_PROVIDERS__POST_R3__, HAMMER_PROVIDERS__POST_R3__ as ɵHAMMER_PROVIDERS__POST_R3__, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, escapeHtml as ɵescapeHtml, flattenStyles as ɵflattenStyles, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute };
|
2132
|
+
//# sourceMappingURL=platform-browser.mjs.map
|