@angular/core 14.2.0-next.0 → 14.2.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.0-next.0
2
+ * @license Angular v14.2.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1316,8 +1316,6 @@ declare class ComponentFactoryResolver_2 extends ComponentFactoryResolver {
1316
1316
  resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>;
1317
1317
  }
1318
1318
 
1319
- declare type ComponentInstance = {};
1320
-
1321
1319
  /**
1322
1320
  * An interface that describes the subset of component metadata
1323
1321
  * that can be retrieved using the `reflectComponentType` function.
@@ -2512,8 +2510,6 @@ declare type DirectiveDefList = (ɵDirectiveDef<any> | ɵComponentDef<any>)[];
2512
2510
  */
2513
2511
  declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDefList;
2514
2512
 
2515
- declare type DirectiveInstance = {};
2516
-
2517
2513
  /**
2518
2514
  * @description
2519
2515
  * Hook for manual bootstrapping of the application instead of using `bootstrap` array in @NgModule
@@ -7664,8 +7660,7 @@ export declare abstract class TemplateRef<C> {
7664
7660
  */
7665
7661
  abstract readonly elementRef: ElementRef;
7666
7662
  /**
7667
- * Instantiates an embedded view based on this template,
7668
- * and attaches it to the view container.
7663
+ * Instantiates an unattached embedded view based on this template.
7669
7664
  * @param context The data-binding context of the embedded view, as declared
7670
7665
  * in the `<ng-template>` usage.
7671
7666
  * @param injector Injector to be used within the embedded view.
@@ -10198,6 +10193,12 @@ export declare function ɵfindLocaleData(locale: string): any;
10198
10193
  */
10199
10194
  export declare function ɵflushModuleScopingQueueAsMuchAsPossible(): void;
10200
10195
 
10196
+ /**
10197
+ * Called to format a runtime error.
10198
+ * See additional info on the `message` argument type in the `RuntimeError` class description.
10199
+ */
10200
+ export declare function ɵformatRuntimeError<T extends number = RuntimeErrorCode>(code: T, message: null | false | string): string;
10201
+
10201
10202
  export declare function ɵgetDebugNodeR2(_nativeNode: any): DebugNode | null;
10202
10203
 
10203
10204
  /**
@@ -10344,6 +10345,8 @@ export declare function ɵisBoundToModule<C>(cf: ComponentFactory<C>): boolean;
10344
10345
  */
10345
10346
  export declare function ɵisDefaultChangeDetectionStrategy(changeDetectionStrategy: ChangeDetectionStrategy): boolean;
10346
10347
 
10348
+ export declare function ɵisInjectable(type: any): boolean;
10349
+
10347
10350
  export declare function ɵisListLikeIterable(obj: any): boolean;
10348
10351
 
10349
10352
  /**
@@ -10478,17 +10481,6 @@ export declare function ɵmakeDecorator<T>(name: string, props?: (...args: any[]
10478
10481
  (...args: any[]): (cls: any) => any;
10479
10482
  };
10480
10483
 
10481
- /**
10482
- * Marks the component as dirty (needing change detection). Marking a component dirty will
10483
- * schedule a change detection on it at some point in the future.
10484
- *
10485
- * Marking an already dirty component as dirty won't do anything. Only one outstanding change
10486
- * detection can be scheduled per component tree.
10487
- *
10488
- * @param component Component to mark as dirty.
10489
- */
10490
- export declare function ɵmarkDirty(component: {}): void;
10491
-
10492
10484
 
10493
10485
  export declare const ɵNG_COMP_DEF: string;
10494
10486
 
@@ -10663,69 +10655,6 @@ export declare interface ɵPipeDef<T> {
10663
10655
  onDestroy: (() => void) | null;
10664
10656
  }
10665
10657
 
10666
-
10667
- /**
10668
- * A shared interface which contains an animation player
10669
- */
10670
- export declare interface ɵPlayer {
10671
- parent?: ɵPlayer | null;
10672
- state: ɵPlayState;
10673
- play(): void;
10674
- pause(): void;
10675
- finish(): void;
10676
- destroy(): void;
10677
- addEventListener(state: ɵPlayState | string, cb: (data?: any) => any): void;
10678
- }
10679
-
10680
- /**
10681
- * Used as a reference to build a player from a styling template binding
10682
- * (`[style]` and `[class]`).
10683
- *
10684
- * The `fn` function will be called once any styling-related changes are
10685
- * evaluated on an element and is expected to return a player that will
10686
- * be then run on the element.
10687
- *
10688
- * `[style]`, `[style.prop]`, `[class]` and `[class.name]` template bindings
10689
- * all accept a `PlayerFactory` as input and this player factories.
10690
- */
10691
- export declare interface ɵPlayerFactory {
10692
- '__brand__': 'Brand for PlayerFactory that nothing will match';
10693
- }
10694
-
10695
- /**
10696
- * Designed to be used as an injection service to capture all animation players.
10697
- *
10698
- * When present all animation players will be passed into the flush method below.
10699
- * This feature is designed to service application-wide animation testing, live
10700
- * debugging as well as custom animation choreographing tools.
10701
- */
10702
- export declare interface ɵPlayerHandler {
10703
- /**
10704
- * Designed to kick off the player at the end of change detection
10705
- */
10706
- flushPlayers(): void;
10707
- /**
10708
- * @param player The player that has been scheduled to run within the application.
10709
- * @param context The context as to where the player was bound to
10710
- */
10711
- queuePlayer(player: ɵPlayer, context: ComponentInstance | DirectiveInstance | HTMLElement): void;
10712
- }
10713
-
10714
- /**
10715
- * The state of a given player
10716
- *
10717
- * Do not change the increasing nature of the numbers since the player
10718
- * code may compare state by checking if a number is higher or lower than
10719
- * a certain numeric value.
10720
- */
10721
- export declare const enum ɵPlayState {
10722
- Pending = 0,
10723
- Running = 1,
10724
- Paused = 2,
10725
- Finished = 100,
10726
- Destroyed = 200
10727
- }
10728
-
10729
10658
  /**
10730
10659
  * Profiler function which the runtime will invoke before and after user code.
10731
10660
  */
@@ -11313,24 +11242,6 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
11313
11242
  attachToAppRef(appRef: ViewRefTracker): void;
11314
11243
  }
11315
11244
 
11316
- /**
11317
- * Wait on component until it is rendered.
11318
- *
11319
- * This function returns a `Promise` which is resolved when the component's
11320
- * change detection is executed. This is determined by finding the scheduler
11321
- * associated with the `component`'s render tree and waiting until the scheduler
11322
- * flushes. If nothing is scheduled, the function returns a resolved promise.
11323
- *
11324
- * Example:
11325
- * ```
11326
- * await whenRendered(myComponent);
11327
- * ```
11328
- *
11329
- * @param component Component to wait upon
11330
- * @returns Promise which resolves when the component is rendered.
11331
- */
11332
- export declare function ɵwhenRendered(component: any): Promise<null>;
11333
-
11334
11245
  /**
11335
11246
  * Advances to an element for later binding instructions.
11336
11247
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "14.2.0-next.0",
3
+ "version": "14.2.0",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.0-next.0
2
+ * @license Angular v14.2.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- export {};
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxheWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9zcmMvcmVuZGVyMy9pbnRlcmZhY2VzL3BsYXllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUciLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuLyoqXG4gKiBBIHNoYXJlZCBpbnRlcmZhY2Ugd2hpY2ggY29udGFpbnMgYW4gYW5pbWF0aW9uIHBsYXllclxuICovXG5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