@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.1
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.1.1", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
239
- BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.1", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
240
- BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: BrowserTestingModule, providers: [
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.1.1", ngImport: i0, type: BrowserTestingModule, decorators: [{
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.1.1
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 via `bootstrapApplication` call.
38
+ * Set of config options available during the application bootstrap operation.
39
39
  *
40
40
  * @developerPreview
41
41
  * @publicApi
@@ -185,6 +185,21 @@ export declare class By {
185
185
  static directive(type: Type<any>): Predicate<DebugNode>;
186
186
  }
187
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
+
188
203
  /**
189
204
  * Disables Angular tools.
190
205
  *
@@ -743,6 +758,10 @@ export declare class TransferState {
743
758
  * Test whether a key exists in the store.
744
759
  */
745
760
  hasKey<T>(key: StateKey<T>): boolean;
761
+ /**
762
+ * Indicates whether the state is empty.
763
+ */
764
+ get isEmpty(): boolean;
746
765
  /**
747
766
  * Register a callback to provide the value for a key when `toJson` is called.
748
767
  */
@@ -891,11 +910,30 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
891
910
  * @returns The key event that was registered.
892
911
  */
893
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
+ */
894
922
  static parseEventName(eventName: string): {
895
923
  fullKey: string;
896
924
  domEventName: string;
897
925
  } | null;
898
- static getEventFullKey(event: KeyboardEvent): string;
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;
899
937
  /**
900
938
  * Configures a handler callback for a key event.
901
939
  * @param fullKey The event name that combines all simultaneous keystrokes.
@@ -903,7 +941,7 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
903
941
  * @param zone The zone in which the event occurred.
904
942
  * @returns A callback function.
905
943
  */
906
- static eventCallback(fullKey: any, handler: Function, zone: NgZone): Function;
944
+ static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function;
907
945
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵKeyEventsPlugin, never>;
908
946
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵKeyEventsPlugin>;
909
947
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "14.1.1",
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.1.1",
15
- "@angular/core": "14.1.1",
16
- "@angular/common": "14.1.1"
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": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.1
2
+ * @license Angular v14.2.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */