@angular/platform-browser 14.1.1 → 14.2.0-next.0
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/index.d.ts +1 -1
- package/esm2020/animations/src/animation_builder.mjs +3 -3
- package/esm2020/animations/src/animation_renderer.mjs +3 -3
- package/esm2020/animations/src/module.mjs +8 -8
- package/esm2020/animations/src/providers.mjs +3 -3
- package/esm2020/src/browser/meta.mjs +3 -3
- package/esm2020/src/browser/title.mjs +3 -3
- package/esm2020/src/browser/transfer_state.mjs +14 -8
- package/esm2020/src/browser/xhr.mjs +3 -3
- package/esm2020/src/browser.mjs +28 -10
- package/esm2020/src/dom/dom_renderer.mjs +3 -3
- 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 +10 -10
- package/esm2020/src/dom/events/key_events.mjs +51 -65
- package/esm2020/src/dom/shared_styles_host.mjs +6 -6
- package/esm2020/src/platform-browser.mjs +2 -2
- 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/fesm2015/animations.mjs +18 -18
- package/fesm2015/platform-browser.mjs +133 -123
- package/fesm2015/platform-browser.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2020/animations.mjs +18 -18
- package/fesm2020/platform-browser.mjs +133 -123
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/index.d.ts +42 -4
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v14.
|
2
|
+
* @license Angular v14.2.0-next.0
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -7,7 +7,7 @@
|
|
7
7
|
import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
|
8
8
|
export { ɵgetDOM } from '@angular/common';
|
9
9
|
import * as i0 from '@angular/core';
|
10
|
-
import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2,
|
10
|
+
import { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, inject, ɵConsole, forwardRef, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';
|
11
11
|
|
12
12
|
/**
|
13
13
|
* @license
|
@@ -218,9 +218,9 @@ class BrowserXhr {
|
|
218
218
|
return new XMLHttpRequest();
|
219
219
|
}
|
220
220
|
}
|
221
|
-
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
222
|
-
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
221
|
+
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
222
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserXhr });
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserXhr, decorators: [{
|
224
224
|
type: Injectable
|
225
225
|
}] });
|
226
226
|
|
@@ -303,9 +303,9 @@ class EventManager {
|
|
303
303
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
304
304
|
}
|
305
305
|
}
|
306
|
-
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
307
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
306
|
+
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
307
|
+
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: EventManager });
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: EventManager, decorators: [{
|
309
309
|
type: Injectable
|
310
310
|
}], ctorParameters: function () {
|
311
311
|
return [{ type: undefined, decorators: [{
|
@@ -353,9 +353,9 @@ class SharedStylesHost {
|
|
353
353
|
return Array.from(this._stylesSet);
|
354
354
|
}
|
355
355
|
}
|
356
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
357
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
356
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
357
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: SharedStylesHost });
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: SharedStylesHost, decorators: [{
|
359
359
|
type: Injectable
|
360
360
|
}] });
|
361
361
|
class DomSharedStylesHost extends SharedStylesHost {
|
@@ -394,9 +394,9 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
394
394
|
this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));
|
395
395
|
}
|
396
396
|
}
|
397
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
398
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
397
|
+
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
398
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSharedStylesHost });
|
399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
400
400
|
type: Injectable
|
401
401
|
}], ctorParameters: function () {
|
402
402
|
return [{ type: undefined, decorators: [{
|
@@ -519,9 +519,9 @@ class DomRendererFactory2 {
|
|
519
519
|
begin() { }
|
520
520
|
end() { }
|
521
521
|
}
|
522
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
523
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
522
|
+
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
523
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomRendererFactory2 });
|
524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
525
525
|
type: Injectable
|
526
526
|
}], ctorParameters: function () {
|
527
527
|
return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
@@ -744,9 +744,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
744
744
|
return target.removeEventListener(eventName, callback);
|
745
745
|
}
|
746
746
|
}
|
747
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
748
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
747
|
+
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
748
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomEventsPlugin });
|
749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
750
750
|
type: Injectable
|
751
751
|
}], ctorParameters: function () {
|
752
752
|
return [{ type: undefined, decorators: [{
|
@@ -766,11 +766,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
766
766
|
* Defines supported modifiers for key events.
|
767
767
|
*/
|
768
768
|
const MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];
|
769
|
-
|
770
|
-
//
|
769
|
+
// The following values are here for cross-browser compatibility and to match the W3C standard
|
770
|
+
// cf https://www.w3.org/TR/DOM-Level-3-Events-key/
|
771
771
|
const _keyMap = {
|
772
|
-
// The following values are here for cross-browser compatibility and to match the W3C standard
|
773
|
-
// cf https://www.w3.org/TR/DOM-Level-3-Events-key/
|
774
772
|
'\b': 'Backspace',
|
775
773
|
'\t': 'Tab',
|
776
774
|
'\x7F': 'Delete',
|
@@ -785,27 +783,6 @@ const _keyMap = {
|
|
785
783
|
'Scroll': 'ScrollLock',
|
786
784
|
'Win': 'OS'
|
787
785
|
};
|
788
|
-
// There is a bug in Chrome for numeric keypad keys:
|
789
|
-
// https://code.google.com/p/chromium/issues/detail?id=155654
|
790
|
-
// 1, 2, 3 ... are reported as A, B, C ...
|
791
|
-
const _chromeNumKeyPadMap = {
|
792
|
-
'A': '1',
|
793
|
-
'B': '2',
|
794
|
-
'C': '3',
|
795
|
-
'D': '4',
|
796
|
-
'E': '5',
|
797
|
-
'F': '6',
|
798
|
-
'G': '7',
|
799
|
-
'H': '8',
|
800
|
-
'I': '9',
|
801
|
-
'J': '*',
|
802
|
-
'K': '+',
|
803
|
-
'M': '-',
|
804
|
-
'N': '.',
|
805
|
-
'O': '/',
|
806
|
-
'\x60': '0',
|
807
|
-
'\x90': 'NumLock'
|
808
|
-
};
|
809
786
|
/**
|
810
787
|
* Retrieves modifiers from key-event objects.
|
811
788
|
*/
|
@@ -850,6 +827,15 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
850
827
|
return ɵgetDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);
|
851
828
|
});
|
852
829
|
}
|
830
|
+
/**
|
831
|
+
* Parses the user provided full keyboard event definition and normalizes it for
|
832
|
+
* later internal use. It ensures the string is all lowercase, converts special
|
833
|
+
* characters to a standard spelling, and orders all the values consistently.
|
834
|
+
*
|
835
|
+
* @param eventName The name of the key event to listen for.
|
836
|
+
* @returns an object with the full, normalized string, and the dom event name
|
837
|
+
* or null in the case when the event doesn't match a keyboard event.
|
838
|
+
*/
|
853
839
|
static parseEventName(eventName) {
|
854
840
|
const parts = eventName.toLowerCase().split('.');
|
855
841
|
const domEventName = parts.shift();
|
@@ -858,6 +844,11 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
858
844
|
}
|
859
845
|
const key = KeyEventsPlugin._normalizeKey(parts.pop());
|
860
846
|
let fullKey = '';
|
847
|
+
let codeIX = parts.indexOf('code');
|
848
|
+
if (codeIX > -1) {
|
849
|
+
parts.splice(codeIX, 1);
|
850
|
+
fullKey = 'code.';
|
851
|
+
}
|
861
852
|
MODIFIER_KEYS.forEach(modifierName => {
|
862
853
|
const index = parts.indexOf(modifierName);
|
863
854
|
if (index > -1) {
|
@@ -878,26 +869,43 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
878
869
|
result['fullKey'] = fullKey;
|
879
870
|
return result;
|
880
871
|
}
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
872
|
+
/**
|
873
|
+
* Determines whether the actual keys pressed match the configured key code string.
|
874
|
+
* The `fullKeyCode` event is normalized in the `parseEventName` method when the
|
875
|
+
* event is attached to the DOM during the `addEventListener` call. This is unseen
|
876
|
+
* by the end user and is normalized for internal consistency and parsing.
|
877
|
+
*
|
878
|
+
* @param event The keyboard event.
|
879
|
+
* @param fullKeyCode The normalized user defined expected key event string
|
880
|
+
* @returns boolean.
|
881
|
+
*/
|
882
|
+
static matchEventFullKeyCode(event, fullKeyCode) {
|
883
|
+
let keycode = _keyMap[event.key] || event.key;
|
884
|
+
let key = '';
|
885
|
+
if (fullKeyCode.indexOf('code.') > -1) {
|
886
|
+
keycode = event.code;
|
887
|
+
key = 'code.';
|
888
|
+
}
|
889
|
+
// the keycode could be unidentified so we have to check here
|
890
|
+
if (keycode == null || !keycode)
|
891
|
+
return false;
|
892
|
+
keycode = keycode.toLowerCase();
|
893
|
+
if (keycode === ' ') {
|
894
|
+
keycode = 'space'; // for readability
|
887
895
|
}
|
888
|
-
else if (
|
889
|
-
|
896
|
+
else if (keycode === '.') {
|
897
|
+
keycode = 'dot'; // because '.' is used as a separator in event names
|
890
898
|
}
|
891
899
|
MODIFIER_KEYS.forEach(modifierName => {
|
892
|
-
if (modifierName
|
900
|
+
if (modifierName !== keycode) {
|
893
901
|
const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];
|
894
902
|
if (modifierGetter(event)) {
|
895
|
-
|
903
|
+
key += modifierName + '.';
|
896
904
|
}
|
897
905
|
}
|
898
906
|
});
|
899
|
-
|
900
|
-
return
|
907
|
+
key += keycode;
|
908
|
+
return key === fullKeyCode;
|
901
909
|
}
|
902
910
|
/**
|
903
911
|
* Configures a handler callback for a key event.
|
@@ -907,8 +915,8 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
907
915
|
* @returns A callback function.
|
908
916
|
*/
|
909
917
|
static eventCallback(fullKey, handler, zone) {
|
910
|
-
return (event
|
911
|
-
if (KeyEventsPlugin.
|
918
|
+
return (event) => {
|
919
|
+
if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {
|
912
920
|
zone.runGuarded(() => handler(event));
|
913
921
|
}
|
914
922
|
};
|
@@ -924,9 +932,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
924
932
|
}
|
925
933
|
}
|
926
934
|
}
|
927
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
928
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
935
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
936
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: KeyEventsPlugin });
|
937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
930
938
|
type: Injectable
|
931
939
|
}], ctorParameters: function () {
|
932
940
|
return [{ type: undefined, decorators: [{
|
@@ -934,28 +942,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
934
942
|
args: [DOCUMENT]
|
935
943
|
}] }];
|
936
944
|
} });
|
937
|
-
function getEventKey(event) {
|
938
|
-
let key = event.key;
|
939
|
-
if (key == null) {
|
940
|
-
key = event.keyIdentifier;
|
941
|
-
// keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and
|
942
|
-
// Safari cf
|
943
|
-
// https://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces
|
944
|
-
if (key == null) {
|
945
|
-
return 'Unidentified';
|
946
|
-
}
|
947
|
-
if (key.startsWith('U+')) {
|
948
|
-
key = String.fromCharCode(parseInt(key.substring(2), 16));
|
949
|
-
if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {
|
950
|
-
// There is a bug in Chrome for numeric keypad keys:
|
951
|
-
// https://code.google.com/p/chromium/issues/detail?id=155654
|
952
|
-
// 1, 2, 3 ... are reported as A, B, C ...
|
953
|
-
key = _chromeNumKeyPadMap[key];
|
954
|
-
}
|
955
|
-
}
|
956
|
-
}
|
957
|
-
return _keyMap[key] || key;
|
958
|
-
}
|
959
945
|
|
960
946
|
/**
|
961
947
|
* @license
|
@@ -1026,15 +1012,33 @@ const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
1026
1012
|
* @developerPreview
|
1027
1013
|
*/
|
1028
1014
|
function bootstrapApplication(rootComponent, options) {
|
1015
|
+
return ɵinternalCreateApplication(Object.assign({ rootComponent }, createProvidersConfig(options)));
|
1016
|
+
}
|
1017
|
+
/**
|
1018
|
+
* Create an instance of an Angular application without bootstrapping any components. This is useful
|
1019
|
+
* for the situation where one wants to decouple application environment creation (a platform and
|
1020
|
+
* associated injectors) from rendering components on a screen. Components can be subsequently
|
1021
|
+
* bootstrapped on the returned `ApplicationRef`.
|
1022
|
+
*
|
1023
|
+
* @param options Extra configuration for the application environment, see `ApplicationConfig` for
|
1024
|
+
* additional info.
|
1025
|
+
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
1026
|
+
*
|
1027
|
+
* @publicApi
|
1028
|
+
* @developerPreview
|
1029
|
+
*/
|
1030
|
+
function createApplication(options) {
|
1031
|
+
return ɵinternalCreateApplication(createProvidersConfig(options));
|
1032
|
+
}
|
1033
|
+
function createProvidersConfig(options) {
|
1029
1034
|
var _a;
|
1030
|
-
return
|
1031
|
-
rootComponent,
|
1035
|
+
return {
|
1032
1036
|
appProviders: [
|
1033
1037
|
...BROWSER_MODULE_PROVIDERS,
|
1034
1038
|
...((_a = options === null || options === void 0 ? void 0 : options.providers) !== null && _a !== void 0 ? _a : []),
|
1035
1039
|
],
|
1036
|
-
platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS
|
1037
|
-
}
|
1040
|
+
platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS
|
1041
|
+
};
|
1038
1042
|
}
|
1039
1043
|
/**
|
1040
1044
|
* Returns a set of providers required to setup [Testability](api/core/Testability) for an
|
@@ -1155,13 +1159,13 @@ class BrowserModule {
|
|
1155
1159
|
};
|
1156
1160
|
}
|
1157
1161
|
}
|
1158
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
1159
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
1160
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
1162
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1163
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1164
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserModule, providers: [
|
1161
1165
|
...BROWSER_MODULE_PROVIDERS,
|
1162
1166
|
...TESTABILITY_PROVIDERS
|
1163
1167
|
], imports: [CommonModule, ApplicationModule] });
|
1164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserModule, decorators: [{
|
1165
1169
|
type: NgModule,
|
1166
1170
|
args: [{
|
1167
1171
|
providers: [
|
@@ -1344,9 +1348,9 @@ class Meta {
|
|
1344
1348
|
return META_KEYS_MAP[prop] || prop;
|
1345
1349
|
}
|
1346
1350
|
}
|
1347
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
1348
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
1349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
1351
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1352
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: Meta, decorators: [{
|
1350
1354
|
type: Injectable,
|
1351
1355
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1352
1356
|
}], ctorParameters: function () {
|
@@ -1403,9 +1407,9 @@ class Title {
|
|
1403
1407
|
this._doc.title = newTitle || '';
|
1404
1408
|
}
|
1405
1409
|
}
|
1406
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
1407
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
1408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
1410
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1411
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: Title, decorators: [{
|
1409
1413
|
type: Injectable,
|
1410
1414
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1411
1415
|
}], ctorParameters: function () {
|
@@ -1646,6 +1650,12 @@ class TransferState {
|
|
1646
1650
|
hasKey(key) {
|
1647
1651
|
return this.store.hasOwnProperty(key);
|
1648
1652
|
}
|
1653
|
+
/**
|
1654
|
+
* Indicates whether the state is empty.
|
1655
|
+
*/
|
1656
|
+
get isEmpty() {
|
1657
|
+
return Object.keys(this.store).length === 0;
|
1658
|
+
}
|
1649
1659
|
/**
|
1650
1660
|
* Register a callback to provide the value for a key when `toJson` is called.
|
1651
1661
|
*/
|
@@ -1670,15 +1680,15 @@ class TransferState {
|
|
1670
1680
|
return JSON.stringify(this.store);
|
1671
1681
|
}
|
1672
1682
|
}
|
1673
|
-
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
1674
|
-
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
1683
|
+
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1684
|
+
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: TransferState, providedIn: 'root', useFactory: () => {
|
1675
1685
|
const doc = inject(DOCUMENT);
|
1676
1686
|
const appId = inject(APP_ID);
|
1677
1687
|
const state = new TransferState();
|
1678
1688
|
state.store = retrieveTransferredState(doc, appId);
|
1679
1689
|
return state;
|
1680
1690
|
} });
|
1681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
1691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: TransferState, decorators: [{
|
1682
1692
|
type: Injectable,
|
1683
1693
|
args: [{
|
1684
1694
|
providedIn: 'root',
|
@@ -1717,10 +1727,10 @@ function retrieveTransferredState(doc, appId) {
|
|
1717
1727
|
*/
|
1718
1728
|
class BrowserTransferStateModule {
|
1719
1729
|
}
|
1720
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
1721
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
1722
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
1723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
1730
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1731
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTransferStateModule });
|
1732
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTransferStateModule });
|
1733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1724
1734
|
type: NgModule,
|
1725
1735
|
args: [{}]
|
1726
1736
|
}] });
|
@@ -1894,9 +1904,9 @@ class HammerGestureConfig {
|
|
1894
1904
|
return mc;
|
1895
1905
|
}
|
1896
1906
|
}
|
1897
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
1898
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
1899
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
1907
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1908
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerGestureConfig });
|
1909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1900
1910
|
type: Injectable
|
1901
1911
|
}] });
|
1902
1912
|
/**
|
@@ -1992,9 +2002,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1992
2002
|
return this._config.events.indexOf(eventName) > -1;
|
1993
2003
|
}
|
1994
2004
|
}
|
1995
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
1996
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
1997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
2005
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
2006
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerGesturesPlugin });
|
2007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1998
2008
|
type: Injectable
|
1999
2009
|
}], ctorParameters: function () {
|
2000
2010
|
return [{ type: undefined, decorators: [{
|
@@ -2023,9 +2033,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
2023
2033
|
*/
|
2024
2034
|
class HammerModule {
|
2025
2035
|
}
|
2026
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
2027
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
2028
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
2036
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2037
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerModule });
|
2038
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerModule, providers: [
|
2029
2039
|
{
|
2030
2040
|
provide: EVENT_MANAGER_PLUGINS,
|
2031
2041
|
useClass: HammerGesturesPlugin,
|
@@ -2034,7 +2044,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2034
2044
|
},
|
2035
2045
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
2036
2046
|
] });
|
2037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
2047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: HammerModule, decorators: [{
|
2038
2048
|
type: NgModule,
|
2039
2049
|
args: [{
|
2040
2050
|
providers: [
|
@@ -2089,9 +2099,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
2089
2099
|
*/
|
2090
2100
|
class DomSanitizer {
|
2091
2101
|
}
|
2092
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
2093
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
2094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
2102
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
2103
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
2104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSanitizer, decorators: [{
|
2095
2105
|
type: Injectable,
|
2096
2106
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
2097
2107
|
}] });
|
@@ -2154,9 +2164,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
2154
2164
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
2155
2165
|
}
|
2156
2166
|
}
|
2157
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
2158
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.
|
2159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
2167
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2168
|
+
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
2169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
2160
2170
|
type: Injectable,
|
2161
2171
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
2162
2172
|
}], ctorParameters: function () {
|
@@ -2184,7 +2194,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
2184
2194
|
/**
|
2185
2195
|
* @publicApi
|
2186
2196
|
*/
|
2187
|
-
const VERSION = new Version('14.
|
2197
|
+
const VERSION = new Version('14.2.0-next.0');
|
2188
2198
|
|
2189
2199
|
/**
|
2190
2200
|
* @license
|
@@ -2215,5 +2225,5 @@ const VERSION = new Version('14.1.1');
|
|
2215
2225
|
* Generated bundle index. Do not edit.
|
2216
2226
|
*/
|
2217
2227
|
|
2218
|
-
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, bootstrapApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideProtractorTestingSupport, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, 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 };
|
2228
|
+
export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideProtractorTestingSupport, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, 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 };
|
2219
2229
|
//# sourceMappingURL=platform-browser.mjs.map
|