@angular/platform-browser 14.1.0-rc.0 → 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 +41 -23
- 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 +159 -137
- 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 +159 -137
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/index.d.ts +48 -6
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
@@ -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
|
*/
|
@@ -235,13 +235,13 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
235
235
|
*/
|
236
236
|
class BrowserTestingModule {
|
237
237
|
}
|
238
|
-
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.
|
239
|
-
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
240
|
-
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
238
|
+
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
239
|
+
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
|
240
|
+
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTestingModule, providers: [
|
241
241
|
{ provide: APP_ID, useValue: 'a' },
|
242
242
|
{ provide: NgZone, useFactory: createNgZone },
|
243
243
|
], imports: [BrowserModule] });
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
245
245
|
type: NgModule,
|
246
246
|
args: [{
|
247
247
|
exports: [BrowserModule],
|
package/index.d.ts
CHANGED
@@ -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
|
*/
|
@@ -35,7 +35,7 @@ import { ɵDomAdapter } from '@angular/common';
|
|
35
35
|
import { ɵgetDOM } from '@angular/common';
|
36
36
|
|
37
37
|
/**
|
38
|
-
* Set of config options available during the bootstrap operation
|
38
|
+
* Set of config options available during the application bootstrap operation.
|
39
39
|
*
|
40
40
|
* @developerPreview
|
41
41
|
* @publicApi
|
@@ -141,6 +141,8 @@ export declare class BrowserModule {
|
|
141
141
|
* server to client.
|
142
142
|
*
|
143
143
|
* @publicApi
|
144
|
+
* @deprecated no longer needed, you can inject the `TransferState` in an app without providing
|
145
|
+
* this module.
|
144
146
|
*/
|
145
147
|
export declare class BrowserTransferStateModule {
|
146
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserTransferStateModule, never>;
|
@@ -183,6 +185,21 @@ export declare class By {
|
|
183
185
|
static directive(type: Type<any>): Predicate<DebugNode>;
|
184
186
|
}
|
185
187
|
|
188
|
+
/**
|
189
|
+
* Create an instance of an Angular application without bootstrapping any components. This is useful
|
190
|
+
* for the situation where one wants to decouple application environment creation (a platform and
|
191
|
+
* associated injectors) from rendering components on a screen. Components can be subsequently
|
192
|
+
* bootstrapped on the returned `ApplicationRef`.
|
193
|
+
*
|
194
|
+
* @param options Extra configuration for the application environment, see `ApplicationConfig` for
|
195
|
+
* additional info.
|
196
|
+
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
197
|
+
*
|
198
|
+
* @publicApi
|
199
|
+
* @developerPreview
|
200
|
+
*/
|
201
|
+
export declare function createApplication(options?: ApplicationConfig): Promise<ApplicationRef>;
|
202
|
+
|
186
203
|
/**
|
187
204
|
* Disables Angular tools.
|
188
205
|
*
|
@@ -711,8 +728,10 @@ export declare class Title {
|
|
711
728
|
* A key value store that is transferred from the application on the server side to the application
|
712
729
|
* on the client side.
|
713
730
|
*
|
714
|
-
* `TransferState`
|
715
|
-
*
|
731
|
+
* The `TransferState` is available as an injectable token.
|
732
|
+
* On the client, just inject this token using DI and use it, it will be lazily initialized.
|
733
|
+
* On the server it's already included if `renderApplication` function is used. Otherwise, import
|
734
|
+
* the `ServerTransferStateModule` module to make the `TransferState` available.
|
716
735
|
*
|
717
736
|
* The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
|
718
737
|
* boolean, number, string, null and non-class objects will be serialized and deserialized in a
|
@@ -739,6 +758,10 @@ export declare class TransferState {
|
|
739
758
|
* Test whether a key exists in the store.
|
740
759
|
*/
|
741
760
|
hasKey<T>(key: StateKey<T>): boolean;
|
761
|
+
/**
|
762
|
+
* Indicates whether the state is empty.
|
763
|
+
*/
|
764
|
+
get isEmpty(): boolean;
|
742
765
|
/**
|
743
766
|
* Register a callback to provide the value for a key when `toJson` is called.
|
744
767
|
*/
|
@@ -887,11 +910,30 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
|
|
887
910
|
* @returns The key event that was registered.
|
888
911
|
*/
|
889
912
|
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
913
|
+
/**
|
914
|
+
* Parses the user provided full keyboard event definition and normalizes it for
|
915
|
+
* later internal use. It ensures the string is all lowercase, converts special
|
916
|
+
* characters to a standard spelling, and orders all the values consistently.
|
917
|
+
*
|
918
|
+
* @param eventName The name of the key event to listen for.
|
919
|
+
* @returns an object with the full, normalized string, and the dom event name
|
920
|
+
* or null in the case when the event doesn't match a keyboard event.
|
921
|
+
*/
|
890
922
|
static parseEventName(eventName: string): {
|
891
923
|
fullKey: string;
|
892
924
|
domEventName: string;
|
893
925
|
} | null;
|
894
|
-
|
926
|
+
/**
|
927
|
+
* Determines whether the actual keys pressed match the configured key code string.
|
928
|
+
* The `fullKeyCode` event is normalized in the `parseEventName` method when the
|
929
|
+
* event is attached to the DOM during the `addEventListener` call. This is unseen
|
930
|
+
* by the end user and is normalized for internal consistency and parsing.
|
931
|
+
*
|
932
|
+
* @param event The keyboard event.
|
933
|
+
* @param fullKeyCode The normalized user defined expected key event string
|
934
|
+
* @returns boolean.
|
935
|
+
*/
|
936
|
+
static matchEventFullKeyCode(event: KeyboardEvent, fullKeyCode: string): boolean;
|
895
937
|
/**
|
896
938
|
* Configures a handler callback for a key event.
|
897
939
|
* @param fullKey The event name that combines all simultaneous keystrokes.
|
@@ -899,7 +941,7 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
|
|
899
941
|
* @param zone The zone in which the event occurred.
|
900
942
|
* @returns A callback function.
|
901
943
|
*/
|
902
|
-
static eventCallback(fullKey:
|
944
|
+
static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function;
|
903
945
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵKeyEventsPlugin, never>;
|
904
946
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵKeyEventsPlugin>;
|
905
947
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "14.
|
3
|
+
"version": "14.2.0-next.0",
|
4
4
|
"description": "Angular - library for using Angular in a web browser",
|
5
5
|
"author": "angular",
|
6
6
|
"license": "MIT",
|
@@ -11,9 +11,9 @@
|
|
11
11
|
"tslib": "^2.3.0"
|
12
12
|
},
|
13
13
|
"peerDependencies": {
|
14
|
-
"@angular/animations": "14.
|
15
|
-
"@angular/core": "14.
|
16
|
-
"@angular/common": "14.
|
14
|
+
"@angular/animations": "14.2.0-next.0",
|
15
|
+
"@angular/core": "14.2.0-next.0",
|
16
|
+
"@angular/common": "14.2.0-next.0"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED