@angular/core 14.1.0-next.1 → 14.1.0-next.4

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.
Files changed (56) hide show
  1. package/esm2020/src/application_ref.mjs +31 -35
  2. package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +3 -5
  3. package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs +3 -5
  4. package/esm2020/src/change_detection/differs/iterable_differs.mjs +3 -5
  5. package/esm2020/src/change_detection/differs/keyvalue_differs.mjs +2 -5
  6. package/esm2020/src/core.mjs +1 -1
  7. package/esm2020/src/core_render3_private_export.mjs +2 -2
  8. package/esm2020/src/debug/debug_node.mjs +2 -3
  9. package/esm2020/src/di/index.mjs +1 -1
  10. package/esm2020/src/di/injector_compatibility.mjs +16 -16
  11. package/esm2020/src/di/interface/injector.mjs +2 -1
  12. package/esm2020/src/di/jit/util.mjs +3 -2
  13. package/esm2020/src/di/r3_injector.mjs +13 -1
  14. package/esm2020/src/di/reflective_key.mjs +3 -2
  15. package/esm2020/src/errors.mjs +1 -1
  16. package/esm2020/src/i18n/locale_data_api.mjs +3 -2
  17. package/esm2020/src/linker/component_factory.mjs +1 -1
  18. package/esm2020/src/metadata/di.mjs +1 -1
  19. package/esm2020/src/render/api.mjs +2 -11
  20. package/esm2020/src/render3/component.mjs +3 -57
  21. package/esm2020/src/render3/component_ref.mjs +30 -5
  22. package/esm2020/src/render3/features/inherit_definition_feature.mjs +3 -5
  23. package/esm2020/src/render3/index.mjs +3 -3
  24. package/esm2020/src/render3/instructions/element_validation.mjs +4 -1
  25. package/esm2020/src/render3/instructions/listener.mjs +34 -44
  26. package/esm2020/src/render3/instructions/lview_debug.mjs +1 -1
  27. package/esm2020/src/render3/instructions/shared.mjs +22 -59
  28. package/esm2020/src/render3/instructions/styling.mjs +2 -2
  29. package/esm2020/src/render3/interfaces/renderer.mjs +1 -17
  30. package/esm2020/src/render3/interfaces/view.mjs +1 -1
  31. package/esm2020/src/render3/jit/directive.mjs +20 -3
  32. package/esm2020/src/render3/ng_module_ref.mjs +13 -2
  33. package/esm2020/src/render3/node_manipulation.mjs +24 -87
  34. package/esm2020/src/render3/node_manipulation_i18n.mjs +1 -1
  35. package/esm2020/src/render3/util/attrs_utils.mjs +4 -12
  36. package/esm2020/src/render3/util/view_utils.mjs +3 -6
  37. package/esm2020/src/render3/view_ref.mjs +3 -5
  38. package/esm2020/src/sanitization/sanitization.mjs +4 -9
  39. package/esm2020/src/version.mjs +1 -1
  40. package/esm2020/src/zone/ng_zone.mjs +5 -4
  41. package/esm2020/testing/src/logger.mjs +3 -3
  42. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  43. package/esm2020/testing/src/r3_test_bed_compiler.mjs +30 -25
  44. package/fesm2015/core.mjs +1871 -2015
  45. package/fesm2015/core.mjs.map +1 -1
  46. package/fesm2015/testing.mjs +1601 -1837
  47. package/fesm2015/testing.mjs.map +1 -1
  48. package/fesm2020/core.mjs +1871 -2015
  49. package/fesm2020/core.mjs.map +1 -1
  50. package/fesm2020/testing.mjs +1601 -1837
  51. package/fesm2020/testing.mjs.map +1 -1
  52. package/index.d.ts +152 -134
  53. package/package.json +1 -1
  54. package/testing/index.d.ts +1 -1
  55. package/schematics/utils/schematics_prompt.d.ts +0 -17
  56. package/schematics/utils/schematics_prompt.js +0 -45
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-next.1
2
+ * @license Angular v14.1.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -401,7 +401,6 @@ export declare class ApplicationRef {
401
401
  private _zone;
402
402
  private _injector;
403
403
  private _exceptionHandler;
404
- private _initStatus;
405
404
  private _views;
406
405
  private _runningTick;
407
406
  private _stable;
@@ -609,8 +608,10 @@ export declare interface AttributeDecorator {
609
608
 
610
609
  /**
611
610
  * Provides additional options to the bootstraping process.
611
+ *
612
+ * @publicApi
612
613
  */
613
- declare interface BootstrapOptions {
614
+ export declare interface BootstrapOptions {
614
615
  /**
615
616
  * Optionally specify which `NgZone` should be used.
616
617
  *
@@ -1321,6 +1322,15 @@ declare type ComponentInstance = {};
1321
1322
  * @publicApi
1322
1323
  */
1323
1324
  export declare abstract class ComponentRef<C> {
1325
+ /**
1326
+ * Updates a specified input name to a new value. Using this method will properly mark for check
1327
+ * component using the `OnPush` change detection strategy. It will also assure that the
1328
+ * `OnChanges` lifecycle hook runs when a dynamically created component is change-detected.
1329
+ *
1330
+ * @param name The name of an input.
1331
+ * @param value The new value of an input.
1332
+ */
1333
+ abstract setInput(name: string, value: unknown): void;
1324
1334
  /**
1325
1335
  * The host or anchor [element](guide/glossary#element) for this component instance.
1326
1336
  */
@@ -1453,6 +1463,8 @@ export declare interface ContentChildDecorator {
1453
1463
  * **Metadata Properties**:
1454
1464
  *
1455
1465
  * * **selector** - The directive type or the name used for querying.
1466
+ * * **descendants** - If `true` (default) include all descendants of the element. If `false` then
1467
+ * only query direct children of the element.
1456
1468
  * * **read** - Used to read a different token from the queried element.
1457
1469
  * * **static** - True to resolve query results before change detection runs,
1458
1470
  * false to resolve after change detection. Defaults to false.
@@ -1486,10 +1498,12 @@ export declare interface ContentChildDecorator {
1486
1498
  * @Annotation
1487
1499
  */
1488
1500
  (selector: ProviderToken<unknown> | Function | string, opts?: {
1501
+ descendants?: boolean;
1489
1502
  read?: any;
1490
1503
  static?: boolean;
1491
1504
  }): any;
1492
1505
  new (selector: ProviderToken<unknown> | Function | string, opts?: {
1506
+ descendants?: boolean;
1493
1507
  read?: any;
1494
1508
  static?: boolean;
1495
1509
  }): ContentChild;
@@ -1600,56 +1614,21 @@ declare type ContentQueriesFunction<T> = <U extends T>(rf: ɵRenderFlags, ctx: U
1600
1614
 
1601
1615
  declare const CONTEXT = 8;
1602
1616
 
1603
- /** Options that control how the component should be bootstrapped. */
1604
- declare interface CreateComponentOptions {
1605
- /** Which renderer factory to use. */
1606
- rendererFactory?: RendererFactory3;
1607
- /** A custom sanitizer instance */
1608
- sanitizer?: Sanitizer;
1609
- /** A custom animation player handler */
1610
- playerHandler?: ɵPlayerHandler;
1611
- /**
1612
- * Host element on which the component will be bootstrapped. If not specified,
1613
- * the component definition's `tag` is used to query the existing DOM for the
1614
- * element to bootstrap.
1615
- */
1616
- host?: RElement | string;
1617
- /** Module injector for the component. If unspecified, the injector will be NULL_INJECTOR. */
1618
- injector?: Injector;
1619
- /**
1620
- * List of features to be applied to the created component. Features are simply
1621
- * functions that decorate a component with a certain behavior.
1622
- *
1623
- * Typically, the features in this list are features that cannot be added to the
1624
- * other features list in the component definition because they rely on other factors.
1625
- *
1626
- * Example: `LifecycleHooksFeature` is a function that adds lifecycle hook capabilities
1627
- * to root components in a tree-shakable way. It cannot be added to the component
1628
- * features list because there's no way of knowing when the component will be used as
1629
- * a root component.
1630
- */
1631
- hostFeatures?: HostFeature[];
1632
- /**
1633
- * A function which is used to schedule change detection work in the future.
1634
- *
1635
- * When marking components as dirty, it is necessary to schedule the work of
1636
- * change detection in the future. This is done to coalesce multiple
1637
- * {@link markDirty} calls into a single changed detection processing.
1638
- *
1639
- * The default value of the scheduler is the `requestAnimationFrame` function.
1640
- *
1641
- * It is also useful to override this function for testing purposes.
1642
- */
1643
- scheduler?: (work: () => void) => void;
1644
- }
1645
-
1646
1617
  /**
1647
1618
  * Create a new environment injector.
1648
1619
  *
1620
+ * Learn more about environment injectors in
1621
+ * [this guide](guide/standalone-components#environment-injectors).
1622
+ *
1623
+ * @param providers An array of providers.
1624
+ * @param parent A parent environment injector.
1625
+ * @param debugName An optional name for this injector instance, which will be used in error
1626
+ * messages.
1627
+ *
1649
1628
  * @publicApi
1650
1629
  * @developerPreview
1651
1630
  */
1652
- export declare function createEnvironmentInjector(providers: Array<Provider | ImportedNgModuleProviders>, parent?: EnvironmentInjector | null, debugName?: string | null): EnvironmentInjector;
1631
+ export declare function createEnvironmentInjector(providers: Array<Provider | ImportedNgModuleProviders>, parent: EnvironmentInjector, debugName?: string | null): EnvironmentInjector;
1653
1632
 
1654
1633
  /**
1655
1634
  * Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
@@ -2632,6 +2611,17 @@ export declare abstract class EnvironmentInjector implements Injector {
2632
2611
  * @suppress {duplicate}
2633
2612
  */
2634
2613
  abstract get(token: any, notFoundValue?: any): any;
2614
+ /**
2615
+ * Runs the given function in the context of this `EnvironmentInjector`.
2616
+ *
2617
+ * Within the function's stack frame, `inject` can be used to inject dependencies from this
2618
+ * injector. Note that `inject` is only usable synchronously, and cannot be used in any
2619
+ * asynchronous callbacks or after any `await` points.
2620
+ *
2621
+ * @param fn the closure to be run in the context of this injector
2622
+ * @returns the return value of the function, if any
2623
+ */
2624
+ abstract runInContext<ReturnT>(fn: () => ReturnT): ReturnT;
2635
2625
  abstract destroy(): void;
2636
2626
  }
2637
2627
 
@@ -2937,6 +2927,14 @@ export declare interface GetTestability {
2937
2927
  findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null;
2938
2928
  }
2939
2929
 
2930
+ /**
2931
+ * The goal here is to make sure that the browser DOM API is the Renderer.
2932
+ * We do this by defining a subset of DOM API to be the renderer and then
2933
+ * use that at runtime for rendering.
2934
+ *
2935
+ * At runtime we can then use the DOM api directly, in server or web-worker
2936
+ * it will be easy to implement such API.
2937
+ */
2940
2938
  declare type GlobalTargetName = 'document' | 'window' | 'body';
2941
2939
 
2942
2940
  declare type GlobalTargetResolver = (element: any) => EventTarget;
@@ -3141,9 +3139,6 @@ export declare interface HostDecorator {
3141
3139
  new (): Host;
3142
3140
  }
3143
3141
 
3144
- /** See CreateComponentOptions.hostFeatures */
3145
- declare type HostFeature = (<T>(component: T, componentDef: ɵComponentDef<T>) => void);
3146
-
3147
3142
  /**
3148
3143
  * Type of the HostListener metadata.
3149
3144
  *
@@ -3607,9 +3602,38 @@ export declare function inject<T>(token: ProviderToken<T>): T;
3607
3602
  * @throws if called outside of a supported context.
3608
3603
  *
3609
3604
  * @publicApi
3605
+ * @deprecated prefer an options object instead of `InjectFlags`
3610
3606
  */
3611
3607
  export declare function inject<T>(token: ProviderToken<T>, flags?: InjectFlags): T | null;
3612
3608
 
3609
+ /**
3610
+ * @param token A token that represents a dependency that should be injected.
3611
+ * @param options Control how injection is executed. Options correspond to injection strategies
3612
+ * that can be specified with parameter decorators `@Host`, `@Self`, `@SkipSelf`, and
3613
+ * `@Optional`.
3614
+ * @returns the injected value if operation is successful.
3615
+ * @throws if called outside of a supported context, or if the token is not found.
3616
+ *
3617
+ * @publicApi
3618
+ */
3619
+ export declare function inject<T>(token: ProviderToken<T>, options: InjectOptions & {
3620
+ optional?: false;
3621
+ }): T;
3622
+
3623
+ /**
3624
+ * @param token A token that represents a dependency that should be injected.
3625
+ * @param options Control how injection is executed. Options correspond to injection strategies
3626
+ * that can be specified with parameter decorators `@Host`, `@Self`, `@SkipSelf`, and
3627
+ * `@Optional`.
3628
+ * @returns the injected value if operation is successful, `null` if the token is not
3629
+ * found and optional injection has been requested.
3630
+ * @throws if called outside of a supported context, or if the token is not found and optional
3631
+ * injection was not requested.
3632
+ *
3633
+ * @publicApi
3634
+ */
3635
+ export declare function inject<T>(token: ProviderToken<T>, options: InjectOptions): T | null;
3636
+
3613
3637
  /**
3614
3638
  * Type of the Injectable metadata.
3615
3639
  *
@@ -3733,6 +3757,7 @@ export declare interface InjectDecorator {
3733
3757
  * Injection flags for DI.
3734
3758
  *
3735
3759
  * @publicApi
3760
+ * @deprecated use an options object for `inject` instead.
3736
3761
  */
3737
3762
  export declare enum InjectFlags {
3738
3763
  /** Check self and check parent injector if needed */
@@ -3807,6 +3832,32 @@ export declare class InjectionToken<T> {
3807
3832
  toString(): string;
3808
3833
  }
3809
3834
 
3835
+ /**
3836
+ * Type of the options argument to `inject`.
3837
+ *
3838
+ * @publicApi
3839
+ */
3840
+ export declare interface InjectOptions {
3841
+ /**
3842
+ * Use optional injection, and return `null` if the requested token is not found.
3843
+ */
3844
+ optional?: boolean;
3845
+ /**
3846
+ * Start injection at the parent of the current injector.
3847
+ */
3848
+ skipSelf?: boolean;
3849
+ /**
3850
+ * Only query the current injector for the token, and don't fall back to the parent injector if
3851
+ * it's not found.
3852
+ */
3853
+ self?: boolean;
3854
+ /**
3855
+ * Stop injection at the host component's injector. Only relevant when injecting from an element
3856
+ * injector, and a no-op for environment injectors.
3857
+ */
3858
+ host?: boolean;
3859
+ }
3860
+
3810
3861
  /**
3811
3862
  * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.
3812
3863
  *
@@ -4581,9 +4632,9 @@ declare interface LView<T = unknown> extends Array<any> {
4581
4632
  /** An optional Module Injector to be used as fall back after Element Injectors are consulted. */
4582
4633
  readonly [INJECTOR_2]: Injector | null;
4583
4634
  /** Factory to be used for creating Renderer. */
4584
- [RENDERER_FACTORY]: RendererFactory3;
4635
+ [RENDERER_FACTORY]: RendererFactory;
4585
4636
  /** Renderer to be used for this view. */
4586
- [RENDERER]: Renderer3;
4637
+ [RENDERER]: Renderer;
4587
4638
  /** An optional custom sanitizer. */
4588
4639
  [SANITIZER]: Sanitizer | null;
4589
4640
  /**
@@ -5428,21 +5479,6 @@ declare interface NodeInjectorDebug {
5428
5479
  parentInjectorIndex: number;
5429
5480
  }
5430
5481
 
5431
- /**
5432
- * Object Oriented style of API needed to create elements and text nodes.
5433
- *
5434
- * This is the native browser API style, e.g. operations are methods on individual objects
5435
- * like HTMLElement. With this style, no additional code is needed as a facade
5436
- * (reducing payload size).
5437
- * */
5438
- declare interface ObjectOrientedRenderer3 {
5439
- createComment(data: string): RComment;
5440
- createElement(tagName: string): RElement;
5441
- createElementNS(namespace: string, tagName: string): RElement;
5442
- createTextNode(data: string): RText;
5443
- querySelector(selectors: string): RElement | null;
5444
- }
5445
-
5446
5482
  /**
5447
5483
  * @description
5448
5484
  * A lifecycle hook that is called when any data-bound property of a directive changes.
@@ -5867,41 +5903,6 @@ declare const enum PreOrderHookFlags {
5867
5903
  NumberOfInitHooksCalledMask = 4294901760
5868
5904
  }
5869
5905
 
5870
- /**
5871
- * Procedural style of API needed to create elements and text nodes.
5872
- *
5873
- * In non-native browser environments (e.g. platforms such as web-workers), this is the
5874
- * facade that enables element manipulation. This also facilitates backwards compatibility
5875
- * with Renderer2.
5876
- */
5877
- declare interface ProceduralRenderer3 {
5878
- destroy(): void;
5879
- createComment(value: string): RComment;
5880
- createElement(name: string, namespace?: string | null): RElement;
5881
- createText(value: string): RText;
5882
- /**
5883
- * This property is allowed to be null / undefined,
5884
- * in which case the view engine won't call it.
5885
- * This is used as a performance optimization for production mode.
5886
- */
5887
- destroyNode?: ((node: RNode) => void) | null;
5888
- appendChild(parent: RElement, newChild: RNode): void;
5889
- insertBefore(parent: RNode, newChild: RNode, refChild: RNode | null, isMove?: boolean): void;
5890
- removeChild(parent: RElement, oldChild: RNode, isHostElement?: boolean): void;
5891
- selectRootElement(selectorOrNode: string | any, preserveContent?: boolean): RElement;
5892
- parentNode(node: RNode): RElement | null;
5893
- nextSibling(node: RNode): RNode | null;
5894
- setAttribute(el: RElement, name: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL, namespace?: string | null): void;
5895
- removeAttribute(el: RElement, name: string, namespace?: string | null): void;
5896
- addClass(el: RElement, name: string): void;
5897
- removeClass(el: RElement, name: string): void;
5898
- setStyle(el: RElement, style: string, value: any, flags?: RendererStyleFlags2 | RendererStyleFlags3): void;
5899
- removeStyle(el: RElement, style: string, flags?: RendererStyleFlags2 | RendererStyleFlags3): void;
5900
- setProperty(el: RElement, name: string, value: any): void;
5901
- setValue(node: RText | RComment, value: string): void;
5902
- listen(target: GlobalTargetName | RNode, eventName: string, callback: (event: any) => boolean | void): () => void;
5903
- }
5904
-
5905
5906
  /**
5906
5907
  * Describes a function that is used to process provider lists (such as provider
5907
5908
  * overrides).
@@ -6300,6 +6301,7 @@ declare class R3Injector extends EnvironmentInjector {
6300
6301
  */
6301
6302
  destroy(): void;
6302
6303
  onDestroy(callback: () => void): void;
6304
+ runInContext<ReturnT>(fn: () => ReturnT): ReturnT;
6303
6305
  get<T>(token: ProviderToken<T>, notFoundValue?: any, flags?: InjectFlags): T;
6304
6306
  toString(): string;
6305
6307
  private assertNotDestroyed;
@@ -6630,6 +6632,40 @@ declare interface RElement extends RNode {
6630
6632
 
6631
6633
  declare const RENDERER = 11;
6632
6634
 
6635
+ /**
6636
+ * Procedural style of API needed to create elements and text nodes.
6637
+ *
6638
+ * In non-native browser environments (e.g. platforms such as web-workers), this is the
6639
+ * facade that enables element manipulation. In practice, this is implemented by `Renderer2`.
6640
+ */
6641
+ declare interface Renderer {
6642
+ destroy(): void;
6643
+ createComment(value: string): RComment;
6644
+ createElement(name: string, namespace?: string | null): RElement;
6645
+ createText(value: string): RText;
6646
+ /**
6647
+ * This property is allowed to be null / undefined,
6648
+ * in which case the view engine won't call it.
6649
+ * This is used as a performance optimization for production mode.
6650
+ */
6651
+ destroyNode?: ((node: RNode) => void) | null;
6652
+ appendChild(parent: RElement, newChild: RNode): void;
6653
+ insertBefore(parent: RNode, newChild: RNode, refChild: RNode | null, isMove?: boolean): void;
6654
+ removeChild(parent: RElement, oldChild: RNode, isHostElement?: boolean): void;
6655
+ selectRootElement(selectorOrNode: string | any, preserveContent?: boolean): RElement;
6656
+ parentNode(node: RNode): RElement | null;
6657
+ nextSibling(node: RNode): RNode | null;
6658
+ setAttribute(el: RElement, name: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL, namespace?: string | null): void;
6659
+ removeAttribute(el: RElement, name: string, namespace?: string | null): void;
6660
+ addClass(el: RElement, name: string): void;
6661
+ removeClass(el: RElement, name: string): void;
6662
+ setStyle(el: RElement, style: string, value: any, flags?: RendererStyleFlags2): void;
6663
+ removeStyle(el: RElement, style: string, flags?: RendererStyleFlags2): void;
6664
+ setProperty(el: RElement, name: string, value: any): void;
6665
+ setValue(node: RText | RComment, value: string): void;
6666
+ listen(target: GlobalTargetName | RNode, eventName: string, callback: (event: any) => boolean | void): () => void;
6667
+ }
6668
+
6633
6669
  /**
6634
6670
  * Extend this base class to implement custom rendering. By default, Angular
6635
6671
  * renders a template into DOM. You can use custom rendering to intercept
@@ -6806,10 +6842,14 @@ export declare abstract class Renderer2 {
6806
6842
  abstract listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => boolean | void): () => void;
6807
6843
  }
6808
6844
 
6809
- declare type Renderer3 = ObjectOrientedRenderer3 | ProceduralRenderer3;
6810
-
6811
6845
  declare const RENDERER_FACTORY = 10;
6812
6846
 
6847
+ declare interface RendererFactory {
6848
+ createRenderer(hostElement: RElement | null, rendererType: RendererType2 | null): Renderer;
6849
+ begin?(): void;
6850
+ end?(): void;
6851
+ }
6852
+
6813
6853
  /**
6814
6854
  * Creates and initializes a custom renderer that implements the `Renderer2` base class.
6815
6855
  *
@@ -6838,12 +6878,6 @@ export declare abstract class RendererFactory2 {
6838
6878
  abstract whenRenderingDone?(): Promise<any>;
6839
6879
  }
6840
6880
 
6841
- declare interface RendererFactory3 {
6842
- createRenderer(hostElement: RElement | null, rendererType: RendererType2 | null): Renderer3;
6843
- begin?(): void;
6844
- end?(): void;
6845
- }
6846
-
6847
6881
  /**
6848
6882
  * Flags for renderer-specific style modifiers.
6849
6883
  * @publicApi
@@ -6859,11 +6893,6 @@ export declare enum RendererStyleFlags2 {
6859
6893
  DashCase = 2
6860
6894
  }
6861
6895
 
6862
- declare enum RendererStyleFlags3 {
6863
- Important = 1,
6864
- DashCase = 2
6865
- }
6866
-
6867
6896
  /**
6868
6897
  * Used by `RendererFactory2` to associate custom rendering data and styles
6869
6898
  * with a rendering implementation.
@@ -7038,6 +7067,7 @@ declare const enum RuntimeErrorCode {
7038
7067
  INVALID_INJECTION_TOKEN = 204,
7039
7068
  INJECTOR_ALREADY_DESTROYED = 205,
7040
7069
  PROVIDER_IN_WRONG_CONTEXT = 207,
7070
+ MISSING_INJECTION_TOKEN = 208,
7041
7071
  MULTIPLE_COMPONENTS_MATCH = -300,
7042
7072
  EXPORT_NOT_FOUND = -301,
7043
7073
  PIPE_NOT_FOUND = -302,
@@ -7052,7 +7082,9 @@ declare const enum RuntimeErrorCode {
7052
7082
  PLATFORM_ALREADY_DESTROYED = 404,
7053
7083
  ASYNC_INITIALIZERS_STILL_RUNNING = 405,
7054
7084
  APPLICATION_REF_ALREADY_DESTROYED = 406,
7085
+ RENDERER_NOT_FOUND = 407,
7055
7086
  INVALID_I18N_STRUCTURE = 700,
7087
+ MISSING_LOCALE_DATA = 701,
7056
7088
  IMPORT_PROVIDERS_FROM_STANDALONE = 800,
7057
7089
  INVALID_DIFFER_INPUT = 900,
7058
7090
  NO_SUPPORTING_DIFFER_FACTORY = 901,
@@ -7061,7 +7093,9 @@ declare const enum RuntimeErrorCode {
7061
7093
  UNSAFE_VALUE_IN_RESOURCE_URL = 904,
7062
7094
  UNSAFE_VALUE_IN_SCRIPT = 905,
7063
7095
  MISSING_GENERATED_DEF = 906,
7064
- TYPE_IS_NOT_STANDALONE = 907
7096
+ TYPE_IS_NOT_STANDALONE = 907,
7097
+ MISSING_ZONEJS = 908,
7098
+ UNEXPECTED_ZONE_STATE = 909
7065
7099
  }
7066
7100
 
7067
7101
  declare const SANITIZER = 12;
@@ -10667,6 +10701,7 @@ export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
10667
10701
  changeDetectorRef: ChangeDetectorRef;
10668
10702
  componentType: Type<T>;
10669
10703
  constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: LView, _tNode: TElementNode | TContainerNode | TElementContainerNode);
10704
+ setInput(name: string, value: unknown): void;
10670
10705
  get injector(): Injector;
10671
10706
  destroy(): void;
10672
10707
  onDestroy(callback: () => void): void;
@@ -10682,25 +10717,11 @@ export declare class ɵRender3NgModuleRef<T> extends NgModuleRef<T> implements I
10682
10717
  readonly componentFactoryResolver: ComponentFactoryResolver_2;
10683
10718
  constructor(ngModuleType: Type<T>, _parent: Injector | null);
10684
10719
  get(token: any, notFoundValue?: any, injectFlags?: InjectFlags): any;
10720
+ runInContext<ReturnT>(fn: () => ReturnT): ReturnT;
10685
10721
  destroy(): void;
10686
10722
  onDestroy(callback: () => void): void;
10687
10723
  }
10688
10724
 
10689
- /**
10690
- * Bootstraps a Component into an existing host element and returns an instance
10691
- * of the component.
10692
- *
10693
- * Use this function to bootstrap a component into the DOM tree. Each invocation
10694
- * of this function will create a separate tree of components, injectors and
10695
- * change detection cycles and lifetimes. To dynamically insert a new component
10696
- * into an existing tree such that it shares the same injection, change detection
10697
- * and object lifetime, use {@link ViewContainer#createComponent}.
10698
- *
10699
- * @param componentType Component to bootstrap
10700
- * @param options Optional parameters which control bootstrapping
10701
- */
10702
- export declare function ɵrenderComponent<T>(componentType: ɵComponentType<T> | Type<T>, opts?: CreateComponentOptions): T;
10703
-
10704
10725
  /**
10705
10726
  * Flags passed into template functions to determine which blocks (i.e. creation, update)
10706
10727
  * should be executed.
@@ -12750,9 +12771,6 @@ export declare function ɵɵinvalidFactory(): never;
12750
12771
  * Throws an error indicating that a factory function could not be generated by the compiler for a
12751
12772
  * particular class.
12752
12773
  *
12753
- * This instruction allows the actual error message to be optimized away when ngDevMode is turned
12754
- * off, saving bytes of generated code while still providing a good experience in dev mode.
12755
- *
12756
12774
  * The name of the class is not mentioned here, but will be in the generated factory function name
12757
12775
  * and thus in the stack trace.
12758
12776
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "14.1.0-next.1",
3
+ "version": "14.1.0-next.4",
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.1.0-next.1
2
+ * @license Angular v14.1.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,17 +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
- /// <amd-module name="@angular/core/schematics/utils/schematics_prompt" />
9
- declare type Inquirer = typeof import('inquirer');
10
- /** Whether prompts are currently supported. */
11
- export declare function supportsPrompt(): boolean;
12
- /**
13
- * Gets the resolved instance of "inquirer" which can be used to programmatically
14
- * create prompts.
15
- */
16
- export declare function getInquirer(): Inquirer;
17
- export {};
@@ -1,45 +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
- (function (factory) {
9
- if (typeof module === "object" && typeof module.exports === "object") {
10
- var v = factory(require, exports);
11
- if (v !== undefined) module.exports = v;
12
- }
13
- else if (typeof define === "function" && define.amd) {
14
- define("@angular/core/schematics/utils/schematics_prompt", ["require", "exports"], factory);
15
- }
16
- })(function (require, exports) {
17
- "use strict";
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.getInquirer = exports.supportsPrompt = void 0;
20
- let resolvedInquirerModule;
21
- try {
22
- // "inquirer" is the prompt module also used by the devkit schematics CLI
23
- // in order to show prompts for schematics. We transitively depend on this
24
- // module, but don't want to throw an exception if the module is not
25
- // installed for some reason. In that case prompts are just not supported.
26
- resolvedInquirerModule = require('inquirer');
27
- }
28
- catch (e) {
29
- resolvedInquirerModule = null;
30
- }
31
- /** Whether prompts are currently supported. */
32
- function supportsPrompt() {
33
- return !!resolvedInquirerModule && !!process.stdin.isTTY;
34
- }
35
- exports.supportsPrompt = supportsPrompt;
36
- /**
37
- * Gets the resolved instance of "inquirer" which can be used to programmatically
38
- * create prompts.
39
- */
40
- function getInquirer() {
41
- return resolvedInquirerModule;
42
- }
43
- exports.getInquirer = getInquirer;
44
- });
45
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hdGljc19wcm9tcHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8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