@angular/core 18.0.0-next.2 → 18.0.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.
- package/esm2022/rxjs-interop/src/take_until_destroyed.mjs +2 -2
- package/esm2022/rxjs-interop/src/to_observable.mjs +1 -1
- package/esm2022/rxjs-interop/src/to_signal.mjs +2 -2
- package/esm2022/src/application/application_init.mjs +2 -2
- package/esm2022/src/application/application_ref.mjs +10 -15
- package/esm2022/src/application/application_tokens.mjs +3 -3
- package/esm2022/src/change_detection/change_detector_ref.mjs +3 -3
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +31 -4
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +7 -15
- package/esm2022/src/core_private_export.mjs +3 -3
- package/esm2022/src/core_render3_private_export.mjs +1 -2
- package/esm2022/src/debug/debug_node.mjs +5 -5
- package/esm2022/src/defer/instructions.mjs +2 -2
- package/esm2022/src/di/contextual.mjs +3 -3
- package/esm2022/src/di/injectable.mjs +1 -1
- package/esm2022/src/di/injector.mjs +4 -4
- package/esm2022/src/di/injector_compatibility.mjs +3 -3
- package/esm2022/src/di/interface/provider.mjs +1 -1
- package/esm2022/src/di/metadata.mjs +1 -1
- package/esm2022/src/di/provider_collection.mjs +2 -2
- package/esm2022/src/event_emitter.mjs +1 -1
- package/esm2022/src/hydration/annotate.mjs +35 -49
- package/esm2022/src/hydration/api.mjs +37 -15
- package/esm2022/src/hydration/cleanup.mjs +4 -18
- package/esm2022/src/hydration/i18n.mjs +378 -0
- package/esm2022/src/hydration/interfaces.mjs +2 -1
- package/esm2022/src/hydration/node_lookup_utils.mjs +24 -10
- package/esm2022/src/hydration/utils.mjs +61 -2
- package/esm2022/src/i18n/locale_data_api.mjs +4 -4
- package/esm2022/src/i18n/tokens.mjs +6 -6
- package/esm2022/src/interface/lifecycle_hooks.mjs +1 -1
- package/esm2022/src/linker/compiler.mjs +1 -7
- package/esm2022/src/linker/component_factory.mjs +1 -1
- package/esm2022/src/linker/ng_module_factory.mjs +2 -3
- package/esm2022/src/linker/template_ref.mjs +1 -2
- package/esm2022/src/linker/view_container_ref.mjs +2 -2
- package/esm2022/src/linker/view_ref.mjs +4 -4
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/metadata/do_bootstrap.mjs +1 -1
- package/esm2022/src/metadata/ng_module.mjs +1 -1
- package/esm2022/src/render3/component.mjs +3 -4
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/definition.mjs +2 -2
- package/esm2022/src/render3/i18n/i18n_apply.mjs +28 -6
- package/esm2022/src/render3/i18n/i18n_parse.mjs +2 -5
- package/esm2022/src/render3/i18n/i18n_util.mjs +6 -1
- package/esm2022/src/render3/instructions/change_detection.mjs +3 -6
- package/esm2022/src/render3/instructions/i18n.mjs +3 -1
- package/esm2022/src/render3/jit/environment.mjs +1 -3
- package/esm2022/src/render3/ng_module_ref.mjs +1 -4
- package/esm2022/src/render3/node_manipulation.mjs +19 -15
- package/esm2022/src/render3/reactivity/effect.mjs +1 -1
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +12 -8
- package/esm2022/src/render3/util/view_utils.mjs +4 -14
- package/esm2022/src/render3/view_ref.mjs +14 -4
- package/esm2022/src/util/callback_scheduler.mjs +23 -33
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/src/zone/ng_zone.mjs +3 -3
- package/esm2022/testing/src/component_fixture.mjs +2 -2
- package/esm2022/testing/src/fake_async.mjs +6 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/private_export.mjs +9 -0
- package/esm2022/testing/src/test_hooks.mjs +3 -3
- package/esm2022/testing/src/testing.mjs +3 -2
- package/fesm2022/core.mjs +1186 -753
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +2 -2
- package/fesm2022/rxjs-interop.mjs +4 -4
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +42 -37
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +168 -134
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +2 -2
- package/rxjs-interop/index.d.ts +6 -6
- package/schematics/migrations/block-template-entities/bundle.js +6 -22
- package/schematics/migrations/block-template-entities/bundle.js.map +2 -2
- package/schematics/migrations/compiler-options/bundle.js.map +1 -1
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +6 -22
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/migrations/transfer-state/bundle.js.map +1 -1
- package/schematics/ng-generate/control-flow-migration/bundle.js +29 -33
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +49 -72
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +8 -2
- package/esm2022/src/change_detection/flags.mjs +0 -17
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.0-next.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v18.0.0-next.4
|
|
3
|
+
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ export declare interface AbstractType<T> extends Function {
|
|
|
33
33
|
* has been checked and most of the time it's during a change detection cycle.
|
|
34
34
|
*
|
|
35
35
|
* @see {@link AfterViewChecked}
|
|
36
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
36
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
37
37
|
*
|
|
38
38
|
* @usageNotes
|
|
39
39
|
* The following snippet shows how a component can implement this interface to
|
|
@@ -60,7 +60,7 @@ export declare interface AfterContentChecked {
|
|
|
60
60
|
*
|
|
61
61
|
* @see {@link OnInit}
|
|
62
62
|
* @see {@link AfterViewInit}
|
|
63
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
63
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
64
64
|
*
|
|
65
65
|
* @usageNotes
|
|
66
66
|
* The following snippet shows how a component can implement this interface to
|
|
@@ -284,7 +284,7 @@ export declare interface AfterRenderRef {
|
|
|
284
284
|
* completed checking a component's view for changes.
|
|
285
285
|
*
|
|
286
286
|
* @see {@link AfterContentChecked}
|
|
287
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
287
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
288
288
|
*
|
|
289
289
|
* @usageNotes
|
|
290
290
|
* The following snippet shows how a component can implement this interface to
|
|
@@ -311,7 +311,7 @@ export declare interface AfterViewChecked {
|
|
|
311
311
|
*
|
|
312
312
|
* @see {@link OnInit}
|
|
313
313
|
* @see {@link AfterContentInit}
|
|
314
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
314
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
315
315
|
*
|
|
316
316
|
* @usageNotes
|
|
317
317
|
* The following snippet shows how a component can implement this interface to
|
|
@@ -339,7 +339,7 @@ export declare interface AfterViewInit {
|
|
|
339
339
|
export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
* A
|
|
342
|
+
* A DI token that provides a set of callbacks to
|
|
343
343
|
* be called for every component that is bootstrapped.
|
|
344
344
|
*
|
|
345
345
|
* Each callback must take a `ComponentRef` instance and return nothing.
|
|
@@ -351,7 +351,7 @@ export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "B
|
|
|
351
351
|
export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<readonly ((compRef: ComponentRef<any>) => void)[]>;
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* A
|
|
354
|
+
* A DI token representing a string ID, used
|
|
355
355
|
* primarily for prefixing application attributes and CSS styles when
|
|
356
356
|
* {@link ViewEncapsulation#Emulated} is being used.
|
|
357
357
|
*
|
|
@@ -383,7 +383,7 @@ export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<readonly ((compRef:
|
|
|
383
383
|
export declare const APP_ID: InjectionToken<string>;
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
|
-
* A
|
|
386
|
+
* A DI token that you can use to provide
|
|
387
387
|
* one or more initialization functions.
|
|
388
388
|
*
|
|
389
389
|
* The provided functions are injected at application startup and executed during
|
|
@@ -644,6 +644,7 @@ export declare class ApplicationRef {
|
|
|
644
644
|
private _destroyListeners;
|
|
645
645
|
private readonly internalErrorHandler;
|
|
646
646
|
private readonly afterRenderEffectManager;
|
|
647
|
+
private readonly zonelessEnabled;
|
|
647
648
|
private externalTestViews;
|
|
648
649
|
private beforeRender;
|
|
649
650
|
private afterTick;
|
|
@@ -812,7 +813,7 @@ export declare function asNativeElements(debugEls: DebugElement[]): any;
|
|
|
812
813
|
|
|
813
814
|
/**
|
|
814
815
|
* Asserts that the current stack frame is within an [injection
|
|
815
|
-
* context](guide/dependency-injection-context) and has access to `inject`.
|
|
816
|
+
* context](guide/di/dependency-injection-context) and has access to `inject`.
|
|
816
817
|
*
|
|
817
818
|
* @param debugFn a reference to the function making the assertion (used for the error message).
|
|
818
819
|
*
|
|
@@ -994,8 +995,8 @@ declare type ChangeDetectionStrategy_2 = number;
|
|
|
994
995
|
* Use the methods to add and remove views from the tree, initiate change-detection,
|
|
995
996
|
* and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.
|
|
996
997
|
*
|
|
997
|
-
* @see [Using change detection hooks](guide/lifecycle
|
|
998
|
-
* @see [Defining custom change detection](guide/lifecycle
|
|
998
|
+
* @see [Using change detection hooks](guide/components/lifecycle#using-change-detection-hooks)
|
|
999
|
+
* @see [Defining custom change detection](guide/components/lifecycle#defining-custom-change-detection)
|
|
999
1000
|
*
|
|
1000
1001
|
* @usageNotes
|
|
1001
1002
|
*
|
|
@@ -1106,7 +1107,7 @@ declare interface ClassDebugInfo {
|
|
|
1106
1107
|
|
|
1107
1108
|
/**
|
|
1108
1109
|
* Configures the `Injector` to return an instance of `useClass` for a token.
|
|
1109
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
1110
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
1110
1111
|
*
|
|
1111
1112
|
* @usageNotes
|
|
1112
1113
|
*
|
|
@@ -1138,7 +1139,7 @@ export declare interface ClassProvider extends ClassSansProvider {
|
|
|
1138
1139
|
* Configures the `Injector` to return a value by invoking a `useClass` function.
|
|
1139
1140
|
* Base for `ClassProvider` decorator.
|
|
1140
1141
|
*
|
|
1141
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
1142
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
1142
1143
|
*
|
|
1143
1144
|
* @publicApi
|
|
1144
1145
|
*/
|
|
@@ -1164,8 +1165,6 @@ declare const CLEANUP = 7;
|
|
|
1164
1165
|
*
|
|
1165
1166
|
* @deprecated
|
|
1166
1167
|
* Ivy JIT mode doesn't require accessing this symbol.
|
|
1167
|
-
* See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
|
|
1168
|
-
* additional context.
|
|
1169
1168
|
*/
|
|
1170
1169
|
export declare class Compiler {
|
|
1171
1170
|
/**
|
|
@@ -1215,8 +1214,6 @@ export declare const COMPILER_OPTIONS: InjectionToken<CompilerOptions[]>;
|
|
|
1215
1214
|
*
|
|
1216
1215
|
* @deprecated
|
|
1217
1216
|
* Ivy JIT mode doesn't require accessing this symbol.
|
|
1218
|
-
* See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
|
|
1219
|
-
* additional context.
|
|
1220
1217
|
*/
|
|
1221
1218
|
export declare abstract class CompilerFactory {
|
|
1222
1219
|
abstract createCompiler(options?: CompilerOptions[]): Compiler;
|
|
@@ -1293,7 +1290,7 @@ export declare interface Component extends Directive {
|
|
|
1293
1290
|
/**
|
|
1294
1291
|
* One or more animation `trigger()` calls, containing
|
|
1295
1292
|
* [`state()`](api/animations/state) and `transition()` definitions.
|
|
1296
|
-
* See the [Animations guide](
|
|
1293
|
+
* See the [Animations guide](guide/animations) and animations API documentation.
|
|
1297
1294
|
*
|
|
1298
1295
|
*/
|
|
1299
1296
|
animations?: any[];
|
|
@@ -1330,7 +1327,7 @@ export declare interface Component extends Directive {
|
|
|
1330
1327
|
* used in a template) via the imports property.
|
|
1331
1328
|
*
|
|
1332
1329
|
* More information about standalone components, directives, and pipes can be found in [this
|
|
1333
|
-
* guide](guide/
|
|
1330
|
+
* guide](guide/components/importing).
|
|
1334
1331
|
*/
|
|
1335
1332
|
standalone?: boolean;
|
|
1336
1333
|
/**
|
|
@@ -1342,7 +1339,7 @@ export declare interface Component extends Directive {
|
|
|
1342
1339
|
* declared in an NgModule generates a compilation error.
|
|
1343
1340
|
*
|
|
1344
1341
|
* More information about standalone components, directives, and pipes can be found in [this
|
|
1345
|
-
* guide](guide/
|
|
1342
|
+
* guide](guide/components/importing).
|
|
1346
1343
|
*/
|
|
1347
1344
|
imports?: (Type<any> | ReadonlyArray<any>)[];
|
|
1348
1345
|
/**
|
|
@@ -1353,7 +1350,7 @@ export declare interface Component extends Directive {
|
|
|
1353
1350
|
* declared in an NgModule generates a compilation error.
|
|
1354
1351
|
*
|
|
1355
1352
|
* More information about standalone components, directives, and pipes can be found in [this
|
|
1356
|
-
* guide](guide/
|
|
1353
|
+
* guide](guide/components/importing).
|
|
1357
1354
|
*/
|
|
1358
1355
|
schemas?: SchemaMetadata[];
|
|
1359
1356
|
}
|
|
@@ -1391,7 +1388,7 @@ export declare interface ComponentDecorator {
|
|
|
1391
1388
|
* Note that, in addition to these options for configuring a directive,
|
|
1392
1389
|
* you can control a component's runtime behavior by implementing
|
|
1393
1390
|
* life-cycle hooks. For more information, see the
|
|
1394
|
-
* [Lifecycle Hooks](guide/lifecycle
|
|
1391
|
+
* [Lifecycle Hooks](guide/components/lifecycle) guide.
|
|
1395
1392
|
*
|
|
1396
1393
|
* @usageNotes
|
|
1397
1394
|
*
|
|
@@ -1767,11 +1764,11 @@ export declare abstract class ComponentRef<C> {
|
|
|
1767
1764
|
*/
|
|
1768
1765
|
abstract setInput(name: string, value: unknown): void;
|
|
1769
1766
|
/**
|
|
1770
|
-
* The host or anchor
|
|
1767
|
+
* The host or anchor element for this component instance.
|
|
1771
1768
|
*/
|
|
1772
1769
|
abstract get location(): ElementRef;
|
|
1773
1770
|
/**
|
|
1774
|
-
* The
|
|
1771
|
+
* The dependency injector for this component instance.
|
|
1775
1772
|
*/
|
|
1776
1773
|
abstract get injector(): Injector;
|
|
1777
1774
|
/**
|
|
@@ -1779,7 +1776,7 @@ export declare abstract class ComponentRef<C> {
|
|
|
1779
1776
|
*/
|
|
1780
1777
|
abstract get instance(): C;
|
|
1781
1778
|
/**
|
|
1782
|
-
* The
|
|
1779
|
+
* The host view defined by the template
|
|
1783
1780
|
* for this component instance.
|
|
1784
1781
|
*/
|
|
1785
1782
|
abstract get hostView(): ViewRef;
|
|
@@ -1819,7 +1816,7 @@ export declare function computed<T>(computation: () => T, options?: CreateComput
|
|
|
1819
1816
|
/**
|
|
1820
1817
|
* Configures the `Injector` to return an instance of a token.
|
|
1821
1818
|
*
|
|
1822
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
1819
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
1823
1820
|
*
|
|
1824
1821
|
* @usageNotes
|
|
1825
1822
|
*
|
|
@@ -1846,7 +1843,7 @@ export declare interface ConstructorProvider extends ConstructorSansProvider {
|
|
|
1846
1843
|
/**
|
|
1847
1844
|
* Configures the `Injector` to return an instance of a token.
|
|
1848
1845
|
*
|
|
1849
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
1846
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
1850
1847
|
*
|
|
1851
1848
|
* @usageNotes
|
|
1852
1849
|
*
|
|
@@ -2184,13 +2181,12 @@ declare const CONTEXT = 8;
|
|
|
2184
2181
|
*
|
|
2185
2182
|
* @param component Component class reference.
|
|
2186
2183
|
* @param options Set of options to use:
|
|
2187
|
-
* * `environmentInjector`: An `EnvironmentInjector` instance to be used for the component
|
|
2188
|
-
* additional info about it [here](/guide/standalone-components#environment-injectors).
|
|
2184
|
+
* * `environmentInjector`: An `EnvironmentInjector` instance to be used for the component.
|
|
2189
2185
|
* * `hostElement` (optional): A DOM node that should act as a host node for the component. If not
|
|
2190
2186
|
* provided, Angular creates one based on the tag name used in the component selector (and falls
|
|
2191
2187
|
* back to using `div` if selector doesn't have tag name info).
|
|
2192
2188
|
* * `elementInjector` (optional): An `ElementInjector` instance, see additional info about it
|
|
2193
|
-
* [here](
|
|
2189
|
+
* [here](guide/di/hierarchical-dependency-injection#elementinjector).
|
|
2194
2190
|
* * `projectableNodes` (optional): A list of DOM nodes that should be projected through
|
|
2195
2191
|
* [`<ng-content>`](api/core/ng-content) of the new component instance.
|
|
2196
2192
|
* @returns ComponentRef instance that represents a given Component.
|
|
@@ -2223,7 +2219,7 @@ export declare interface CreateEffectOptions {
|
|
|
2223
2219
|
/**
|
|
2224
2220
|
* The `Injector` in which to create the effect.
|
|
2225
2221
|
*
|
|
2226
|
-
* If this is not provided, the current [injection context](guide/dependency-injection-context)
|
|
2222
|
+
* If this is not provided, the current [injection context](guide/di/dependency-injection-context)
|
|
2227
2223
|
* will be used instead (via `inject`).
|
|
2228
2224
|
*/
|
|
2229
2225
|
injector?: Injector;
|
|
@@ -2246,9 +2242,6 @@ export declare interface CreateEffectOptions {
|
|
|
2246
2242
|
/**
|
|
2247
2243
|
* Create a new environment injector.
|
|
2248
2244
|
*
|
|
2249
|
-
* Learn more about environment injectors in
|
|
2250
|
-
* [this guide](guide/standalone-components#environment-injectors).
|
|
2251
|
-
*
|
|
2252
2245
|
* @param providers An array of providers.
|
|
2253
2246
|
* @param parent A parent environment injector.
|
|
2254
2247
|
* @param debugName An optional name for this injector instance, which will be used in error
|
|
@@ -2394,9 +2387,9 @@ export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
|
|
|
2394
2387
|
/**
|
|
2395
2388
|
* @publicApi
|
|
2396
2389
|
*
|
|
2397
|
-
* @see [Component testing scenarios](guide/testing
|
|
2398
|
-
* @see [Basics of testing components](guide/testing
|
|
2399
|
-
* @see [Testing utility APIs](guide/testing
|
|
2390
|
+
* @see [Component testing scenarios](guide/testing/components-scenarios)
|
|
2391
|
+
* @see [Basics of testing components](guide/testing/components-basics)
|
|
2392
|
+
* @see [Testing utility APIs](guide/testing/utility-apis)
|
|
2400
2393
|
*/
|
|
2401
2394
|
export declare class DebugElement extends DebugNode {
|
|
2402
2395
|
constructor(nativeNode: Element);
|
|
@@ -2480,7 +2473,7 @@ export declare class DebugElement extends DebugNode {
|
|
|
2480
2473
|
* @param eventName The name of the event to trigger
|
|
2481
2474
|
* @param eventObj The _event object_ expected by the handler
|
|
2482
2475
|
*
|
|
2483
|
-
* @see [Testing components scenarios](guide/testing
|
|
2476
|
+
* @see [Testing components scenarios](guide/testing/components-scenarios#trigger-event-handler)
|
|
2484
2477
|
*/
|
|
2485
2478
|
triggerEventHandler(eventName: string, eventObj?: any): void;
|
|
2486
2479
|
}
|
|
@@ -2554,7 +2547,7 @@ declare const DECLARATION_VIEW = 14;
|
|
|
2554
2547
|
* CurrencyPipe when there is no currency code passed into it. This is only used by
|
|
2555
2548
|
* CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
|
|
2556
2549
|
*
|
|
2557
|
-
* See the [i18n guide](guide/i18n
|
|
2550
|
+
* See the [i18n guide](guide/i18n/locale-id) for more information.
|
|
2558
2551
|
*
|
|
2559
2552
|
* <div class="alert is-helpful">
|
|
2560
2553
|
*
|
|
@@ -2670,6 +2663,23 @@ declare interface DehydratedContainerView extends DehydratedView {
|
|
|
2670
2663
|
data: Readonly<SerializedContainerView>;
|
|
2671
2664
|
}
|
|
2672
2665
|
|
|
2666
|
+
/**
|
|
2667
|
+
* An object that contains information about a dehydrated ICU case,
|
|
2668
|
+
* to facilitate cleaning up ICU cases that were active during
|
|
2669
|
+
* server-side rendering, but not during hydration.
|
|
2670
|
+
*/
|
|
2671
|
+
declare interface DehydratedIcuData {
|
|
2672
|
+
/**
|
|
2673
|
+
* The case index that this data represents.
|
|
2674
|
+
*/
|
|
2675
|
+
case: number;
|
|
2676
|
+
/**
|
|
2677
|
+
* A reference back to the AST for the ICU node. This allows the
|
|
2678
|
+
* AST to be used to clean up dehydrated nodes.
|
|
2679
|
+
*/
|
|
2680
|
+
node: I18nICUNode;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2673
2683
|
/**
|
|
2674
2684
|
* An object that contains hydration-related information serialized
|
|
2675
2685
|
* on the server, as well as the necessary references to segments of
|
|
@@ -2714,11 +2724,19 @@ declare interface DehydratedView {
|
|
|
2714
2724
|
* A mapping from a view to the first child to begin claiming nodes.
|
|
2715
2725
|
*
|
|
2716
2726
|
* This mapping is generated by an i18n block, and is the source of
|
|
2717
|
-
* truth for the nodes inside of it.
|
|
2718
|
-
|
|
2719
|
-
|
|
2727
|
+
* truth for the nodes inside of it.
|
|
2728
|
+
*/
|
|
2729
|
+
i18nNodes?: Map<number, RNode | null>;
|
|
2730
|
+
/**
|
|
2731
|
+
* A mapping from the index of an ICU node to dehydrated data for it.
|
|
2732
|
+
*
|
|
2733
|
+
* This information is used during the hydration process on the client.
|
|
2734
|
+
* ICU cases that were active during server-side rendering will be added
|
|
2735
|
+
* to the map. The hydration logic will "claim" matching cases, removing
|
|
2736
|
+
* them from the map. The remaining entries are "unclaimed", and will be
|
|
2737
|
+
* removed from the DOM during hydration cleanup.
|
|
2720
2738
|
*/
|
|
2721
|
-
|
|
2739
|
+
dehydratedIcuData?: Map<number, DehydratedIcuData>;
|
|
2722
2740
|
}
|
|
2723
2741
|
|
|
2724
2742
|
/**
|
|
@@ -3004,9 +3022,9 @@ export declare interface Directive {
|
|
|
3004
3022
|
*/
|
|
3005
3023
|
outputs?: string[];
|
|
3006
3024
|
/**
|
|
3007
|
-
* Configures the
|
|
3008
|
-
* directive or component with a
|
|
3009
|
-
* that maps to a
|
|
3025
|
+
* Configures the injector of this
|
|
3026
|
+
* directive or component with a token
|
|
3027
|
+
* that maps to a provider of a dependency.
|
|
3010
3028
|
*/
|
|
3011
3029
|
providers?: Provider[];
|
|
3012
3030
|
/**
|
|
@@ -3109,7 +3127,7 @@ export declare interface Directive {
|
|
|
3109
3127
|
* providers).
|
|
3110
3128
|
*
|
|
3111
3129
|
* More information about standalone components, directives, and pipes can be found in [this
|
|
3112
|
-
* guide](guide/
|
|
3130
|
+
* guide](guide/components/importing).
|
|
3113
3131
|
*/
|
|
3114
3132
|
standalone?: boolean;
|
|
3115
3133
|
/**
|
|
@@ -3162,7 +3180,7 @@ export declare interface DirectiveDecorator {
|
|
|
3162
3180
|
* runtime.
|
|
3163
3181
|
*
|
|
3164
3182
|
* Directive classes, like component classes, can implement
|
|
3165
|
-
* [life-cycle hooks](guide/lifecycle
|
|
3183
|
+
* [life-cycle hooks](guide/components/lifecycle) to influence their configuration and behavior.
|
|
3166
3184
|
*
|
|
3167
3185
|
*
|
|
3168
3186
|
* @usageNotes
|
|
@@ -3183,13 +3201,13 @@ export declare interface DirectiveDecorator {
|
|
|
3183
3201
|
*
|
|
3184
3202
|
* In order to make a directive available to other components in your application, you should do
|
|
3185
3203
|
* one of the following:
|
|
3186
|
-
* - either mark the directive as [standalone](guide/
|
|
3204
|
+
* - either mark the directive as [standalone](guide/components/importing),
|
|
3187
3205
|
* - or declare it in an NgModule by adding it to the `declarations` and `exports` fields.
|
|
3188
3206
|
*
|
|
3189
3207
|
* ** Marking a directive as standalone **
|
|
3190
3208
|
*
|
|
3191
3209
|
* You can add the `standalone: true` flag to the Directive decorator metadata to declare it as
|
|
3192
|
-
* [standalone](guide/
|
|
3210
|
+
* [standalone](guide/components/importing):
|
|
3193
3211
|
*
|
|
3194
3212
|
* ```ts
|
|
3195
3213
|
* @Directive({
|
|
@@ -3416,7 +3434,7 @@ declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDef
|
|
|
3416
3434
|
*/
|
|
3417
3435
|
declare type DirectiveInputs<T> = {
|
|
3418
3436
|
[P in keyof T]?: string | [
|
|
3419
|
-
flags:
|
|
3437
|
+
flags: InputFlags,
|
|
3420
3438
|
publicName: string,
|
|
3421
3439
|
declaredName?: string,
|
|
3422
3440
|
transform?: InputTransformFunction
|
|
@@ -3432,7 +3450,7 @@ declare const DISCONNECTED_NODES = "d";
|
|
|
3432
3450
|
*
|
|
3433
3451
|
* Reference to the current application is provided as a parameter.
|
|
3434
3452
|
*
|
|
3435
|
-
* See ["Bootstrapping"](guide/bootstrapping).
|
|
3453
|
+
* See ["Bootstrapping"](guide/ngmodules/bootstrapping).
|
|
3436
3454
|
*
|
|
3437
3455
|
* @usageNotes
|
|
3438
3456
|
* The example below uses `ApplicationRef.bootstrap()` to render the
|
|
@@ -3466,7 +3484,7 @@ export declare interface DoBootstrap {
|
|
|
3466
3484
|
* changes on the same input.
|
|
3467
3485
|
*
|
|
3468
3486
|
* @see {@link OnChanges}
|
|
3469
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
3487
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
3470
3488
|
*
|
|
3471
3489
|
* @usageNotes
|
|
3472
3490
|
* The following snippet shows how a component can implement this interface
|
|
@@ -3475,7 +3493,7 @@ export declare interface DoBootstrap {
|
|
|
3475
3493
|
* {@example core/ts/metadata/lifecycle_hooks_spec.ts region='DoCheck'}
|
|
3476
3494
|
*
|
|
3477
3495
|
* For a more complete example and discussion, see
|
|
3478
|
-
* [Defining custom change detection](guide/lifecycle
|
|
3496
|
+
* [Defining custom change detection](guide/components/lifecycle#defining-custom-change-detection).
|
|
3479
3497
|
*
|
|
3480
3498
|
* @publicApi
|
|
3481
3499
|
*/
|
|
@@ -3574,8 +3592,8 @@ export declare class ElementRef<T = any> {
|
|
|
3574
3592
|
declare const EMBEDDED_VIEW_INJECTOR = 20;
|
|
3575
3593
|
|
|
3576
3594
|
/**
|
|
3577
|
-
* Represents an Angular
|
|
3578
|
-
* An
|
|
3595
|
+
* Represents an Angular view in a view container.
|
|
3596
|
+
* An embedded view can be referenced from a component
|
|
3579
3597
|
* other than the hosting component whose template defines it, or it can be defined
|
|
3580
3598
|
* independently by a `TemplateRef`.
|
|
3581
3599
|
*
|
|
@@ -3811,7 +3829,6 @@ export declare class ErrorHandler {
|
|
|
3811
3829
|
* <zippy (open)="onOpen($event)" (close)="onClose($event)"></zippy>
|
|
3812
3830
|
* ```
|
|
3813
3831
|
*
|
|
3814
|
-
* @see [Observables in Angular](guide/observables-in-angular)
|
|
3815
3832
|
* @publicApi
|
|
3816
3833
|
*/
|
|
3817
3834
|
export declare interface EventEmitter<T> extends Subject<T>, OutputRef<T> {
|
|
@@ -3859,7 +3876,7 @@ export declare const EventEmitter: {
|
|
|
3859
3876
|
/**
|
|
3860
3877
|
* Configures the `Injector` to return a value of another `useExisting` token.
|
|
3861
3878
|
*
|
|
3862
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
3879
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
3863
3880
|
*
|
|
3864
3881
|
* @usageNotes
|
|
3865
3882
|
*
|
|
@@ -3887,7 +3904,7 @@ export declare interface ExistingProvider extends ExistingSansProvider {
|
|
|
3887
3904
|
* Configures the `Injector` to return a value of another `useExisting` token.
|
|
3888
3905
|
*
|
|
3889
3906
|
* @see {@link ExistingProvider}
|
|
3890
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
3907
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
3891
3908
|
*
|
|
3892
3909
|
* @publicApi
|
|
3893
3910
|
*/
|
|
@@ -3915,7 +3932,7 @@ declare type FactoryFn<T> = {
|
|
|
3915
3932
|
|
|
3916
3933
|
/**
|
|
3917
3934
|
* Configures the `Injector` to return a value by invoking a `useFactory` function.
|
|
3918
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
3935
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
3919
3936
|
*
|
|
3920
3937
|
* @usageNotes
|
|
3921
3938
|
*
|
|
@@ -3947,7 +3964,7 @@ export declare interface FactoryProvider extends FactorySansProvider {
|
|
|
3947
3964
|
* Configures the `Injector` to return a value by invoking a `useFactory` function.
|
|
3948
3965
|
*
|
|
3949
3966
|
* @see {@link FactoryProvider}
|
|
3950
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
3967
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
3951
3968
|
*
|
|
3952
3969
|
* @publicApi
|
|
3953
3970
|
*/
|
|
@@ -4513,7 +4530,7 @@ export declare interface HostDecorator {
|
|
|
4513
4530
|
* </code-example>
|
|
4514
4531
|
*
|
|
4515
4532
|
* For an extended example, see ["Dependency Injection
|
|
4516
|
-
* Guide"](guide/
|
|
4533
|
+
* Guide"](guide/di/di-in-action#optional).
|
|
4517
4534
|
*/
|
|
4518
4535
|
(): any;
|
|
4519
4536
|
new (): Host;
|
|
@@ -4686,6 +4703,8 @@ declare namespace i0 {
|
|
|
4686
4703
|
}
|
|
4687
4704
|
}
|
|
4688
4705
|
|
|
4706
|
+
declare const I18N_DATA = "l";
|
|
4707
|
+
|
|
4689
4708
|
/**
|
|
4690
4709
|
* Array storing OpCode for dynamically creating `i18n` translation DOM elements.
|
|
4691
4710
|
*
|
|
@@ -4982,7 +5001,7 @@ export declare type ImportedNgModuleProviders = EnvironmentProviders;
|
|
|
4982
5001
|
* providers.
|
|
4983
5002
|
*
|
|
4984
5003
|
* More information about standalone components can be found in [this
|
|
4985
|
-
* guide](guide/
|
|
5004
|
+
* guide](guide/components/importing).
|
|
4986
5005
|
*
|
|
4987
5006
|
* @usageNotes
|
|
4988
5007
|
* The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
|
|
@@ -5053,7 +5072,7 @@ declare type InitialInputData = (InitialInputs | null)[];
|
|
|
5053
5072
|
*
|
|
5054
5073
|
* e.g. ['role-min', 'minified-input', 'button']
|
|
5055
5074
|
*/
|
|
5056
|
-
declare type InitialInputs = (string |
|
|
5075
|
+
declare type InitialInputs = (string | InputFlags)[];
|
|
5057
5076
|
|
|
5058
5077
|
/**
|
|
5059
5078
|
* Type of the Inject metadata.
|
|
@@ -5062,7 +5081,7 @@ declare type InitialInputs = (string | ɵɵInputFlags)[];
|
|
|
5062
5081
|
*/
|
|
5063
5082
|
export declare interface Inject {
|
|
5064
5083
|
/**
|
|
5065
|
-
* A
|
|
5084
|
+
* A DI token that maps to the dependency to be injected.
|
|
5066
5085
|
*/
|
|
5067
5086
|
token: any;
|
|
5068
5087
|
}
|
|
@@ -5200,8 +5219,8 @@ export declare interface InjectableDecorator {
|
|
|
5200
5219
|
* Decorator that marks a class as available to be
|
|
5201
5220
|
* provided and injected as a dependency.
|
|
5202
5221
|
*
|
|
5203
|
-
* @see [Introduction to Services and DI](guide/
|
|
5204
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
5222
|
+
* @see [Introduction to Services and DI](guide/di)
|
|
5223
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
5205
5224
|
*
|
|
5206
5225
|
* @usageNotes
|
|
5207
5226
|
*
|
|
@@ -5268,7 +5287,7 @@ export declare interface InjectDecorator {
|
|
|
5268
5287
|
* <code-example path="core/di/ts/metadata_spec.ts" region="InjectWithoutDecorator">
|
|
5269
5288
|
* </code-example>
|
|
5270
5289
|
*
|
|
5271
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
5290
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
5272
5291
|
*
|
|
5273
5292
|
*/
|
|
5274
5293
|
(token: any): any;
|
|
@@ -5430,10 +5449,10 @@ export declare const INJECTOR: InjectionToken<Injector>;
|
|
|
5430
5449
|
|
|
5431
5450
|
/**
|
|
5432
5451
|
* Concrete injectors implement this interface. Injectors are configured
|
|
5433
|
-
* with [providers](guide/dependency-injection-providers) that associate
|
|
5434
|
-
* dependencies of various types with [injection tokens](guide/dependency-injection-providers).
|
|
5452
|
+
* with [providers](guide/di/dependency-injection-providers) that associate
|
|
5453
|
+
* dependencies of various types with [injection tokens](guide/di/dependency-injection-providers).
|
|
5435
5454
|
*
|
|
5436
|
-
* @see [DI Providers](guide/dependency-injection-providers).
|
|
5455
|
+
* @see [DI Providers](guide/di/dependency-injection-providers).
|
|
5437
5456
|
* @see {@link StaticProvider}
|
|
5438
5457
|
*
|
|
5439
5458
|
* @usageNotes
|
|
@@ -5679,12 +5698,21 @@ export declare interface InputDecorator {
|
|
|
5679
5698
|
* class App {}
|
|
5680
5699
|
* ```
|
|
5681
5700
|
*
|
|
5682
|
-
* @see [Input
|
|
5701
|
+
* @see [Input properties](guide/components/inputs)
|
|
5702
|
+
* @see [Output properties](guide/components/outputs)
|
|
5683
5703
|
*/
|
|
5684
5704
|
(arg?: string | Input): any;
|
|
5685
5705
|
new (arg?: string | Input): any;
|
|
5686
5706
|
}
|
|
5687
5707
|
|
|
5708
|
+
|
|
5709
|
+
/** Flags describing an input for a directive. */
|
|
5710
|
+
declare enum InputFlags {
|
|
5711
|
+
None = 0,
|
|
5712
|
+
SignalBased = 1,
|
|
5713
|
+
HasDecoratorInputTransform = 2
|
|
5714
|
+
}
|
|
5715
|
+
|
|
5688
5716
|
/**
|
|
5689
5717
|
* The `input` function allows declaration of inputs in directives and
|
|
5690
5718
|
* components.
|
|
@@ -5915,7 +5943,7 @@ export declare function isSignal(value: unknown): value is Signal<unknown>;
|
|
|
5915
5943
|
/**
|
|
5916
5944
|
* Checks whether a given Component, Directive or Pipe is marked as standalone.
|
|
5917
5945
|
* This will return false if passed anything other than a Component, Directive, or Pipe class
|
|
5918
|
-
* See [this guide](
|
|
5946
|
+
* See [this guide](guide/components/importing) for additional information:
|
|
5919
5947
|
*
|
|
5920
5948
|
* @param type A reference to a Component, Directive or Pipe.
|
|
5921
5949
|
* @publicApi
|
|
@@ -6313,7 +6341,7 @@ declare interface Listener {
|
|
|
6313
6341
|
* It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
|
|
6314
6342
|
* DecimalPipe and PercentPipe) and by ICU expressions.
|
|
6315
6343
|
*
|
|
6316
|
-
* See the [i18n guide](guide/i18n
|
|
6344
|
+
* See the [i18n guide](guide/i18n/locale-id) for more information.
|
|
6317
6345
|
*
|
|
6318
6346
|
* @usageNotes
|
|
6319
6347
|
* ### Example
|
|
@@ -6775,7 +6803,7 @@ export declare function mergeApplicationConfig(...configs: ApplicationConfig[]):
|
|
|
6775
6803
|
* - Warning (default): show a warning in the console and/or shell.
|
|
6776
6804
|
* - Ignore: do nothing.
|
|
6777
6805
|
*
|
|
6778
|
-
* See the [i18n guide](guide/i18n
|
|
6806
|
+
* See the [i18n guide](guide/i18n/merge#report-missing-translations) for more information.
|
|
6779
6807
|
*
|
|
6780
6808
|
* @usageNotes
|
|
6781
6809
|
* ### Example
|
|
@@ -6910,8 +6938,6 @@ export declare interface ModelSignal<T> extends WritableSignal<T>, OutputRef<T>
|
|
|
6910
6938
|
*
|
|
6911
6939
|
* @deprecated
|
|
6912
6940
|
* Ivy JIT mode doesn't require accessing this symbol.
|
|
6913
|
-
* See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
|
|
6914
|
-
* additional context.
|
|
6915
6941
|
*/
|
|
6916
6942
|
export declare class ModuleWithComponentFactories<T> {
|
|
6917
6943
|
ngModuleFactory: NgModuleFactory<T>;
|
|
@@ -6920,10 +6946,8 @@ export declare class ModuleWithComponentFactories<T> {
|
|
|
6920
6946
|
}
|
|
6921
6947
|
|
|
6922
6948
|
/**
|
|
6923
|
-
* A wrapper around an NgModule that associates it with
|
|
6924
|
-
*
|
|
6925
|
-
*
|
|
6926
|
-
* @see [Deprecations](guide/deprecations#modulewithproviders-type-without-a-generic)
|
|
6949
|
+
* A wrapper around an NgModule that associates it with providers
|
|
6950
|
+
* Usage without a generic type is deprecated.
|
|
6927
6951
|
*
|
|
6928
6952
|
* @publicApi
|
|
6929
6953
|
*/
|
|
@@ -6963,8 +6987,8 @@ export declare interface NgModule {
|
|
|
6963
6987
|
* The set of injectable objects that are available in the injector
|
|
6964
6988
|
* of this module.
|
|
6965
6989
|
*
|
|
6966
|
-
* @see [Dependency Injection guide](guide/dependency-injection
|
|
6967
|
-
* @see [NgModule guide](guide/providers)
|
|
6990
|
+
* @see [Dependency Injection guide](guide/di/dependency-injection
|
|
6991
|
+
* @see [NgModule guide](guide/ngmodules/providers)
|
|
6968
6992
|
*
|
|
6969
6993
|
* @usageNotes
|
|
6970
6994
|
*
|
|
@@ -7008,7 +7032,7 @@ export declare interface NgModule {
|
|
|
7008
7032
|
*/
|
|
7009
7033
|
providers?: Array<Provider | EnvironmentProviders>;
|
|
7010
7034
|
/**
|
|
7011
|
-
* The set of components, directives, and pipes (
|
|
7035
|
+
* The set of components, directives, and pipes (declarables
|
|
7012
7036
|
* that belong to this module.
|
|
7013
7037
|
*
|
|
7014
7038
|
* @usageNotes
|
|
@@ -7035,7 +7059,7 @@ export declare interface NgModule {
|
|
|
7035
7059
|
*/
|
|
7036
7060
|
declarations?: Array<Type<any> | any[]>;
|
|
7037
7061
|
/**
|
|
7038
|
-
* The set of NgModules whose exported
|
|
7062
|
+
* The set of NgModules whose exported declarables
|
|
7039
7063
|
* are available to templates in this module.
|
|
7040
7064
|
*
|
|
7041
7065
|
* @usageNotes
|
|
@@ -7145,8 +7169,7 @@ export declare interface NgModuleDecorator {
|
|
|
7145
7169
|
*
|
|
7146
7170
|
* @deprecated
|
|
7147
7171
|
* This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy
|
|
7148
|
-
* JIT mode.
|
|
7149
|
-
* for additional context. Angular provides APIs that accept NgModule classes directly (such as
|
|
7172
|
+
* JIT mode. Angular provides APIs that accept NgModule classes directly (such as
|
|
7150
7173
|
* [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and
|
|
7151
7174
|
* [createNgModule](api/core/createNgModule)), consider switching to those APIs instead of
|
|
7152
7175
|
* using factory-based ones.
|
|
@@ -7483,7 +7506,7 @@ export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
|
|
|
7483
7506
|
* }
|
|
7484
7507
|
* ```
|
|
7485
7508
|
*/
|
|
7486
|
-
declare type NodeInputBindings = Record<string, (number | string |
|
|
7509
|
+
declare type NodeInputBindings = Record<string, (number | string | InputFlags)[]>;
|
|
7487
7510
|
|
|
7488
7511
|
/**
|
|
7489
7512
|
* Store the runtime output names for all the directives.
|
|
@@ -7532,7 +7555,7 @@ declare const ON_DESTROY_HOOKS = 21;
|
|
|
7532
7555
|
*
|
|
7533
7556
|
* @see {@link DoCheck}
|
|
7534
7557
|
* @see {@link OnInit}
|
|
7535
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
7558
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
7536
7559
|
*
|
|
7537
7560
|
* @usageNotes
|
|
7538
7561
|
* The following snippet shows how a component can implement this interface to
|
|
@@ -7557,7 +7580,7 @@ export declare interface OnChanges {
|
|
|
7557
7580
|
* A lifecycle hook that is called when a directive, pipe, or service is destroyed.
|
|
7558
7581
|
* Use for any custom cleanup that needs to occur when the
|
|
7559
7582
|
* instance is destroyed.
|
|
7560
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
7583
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
7561
7584
|
*
|
|
7562
7585
|
* @usageNotes
|
|
7563
7586
|
* The following snippet shows how a component can implement this interface
|
|
@@ -7582,7 +7605,7 @@ export declare interface OnDestroy {
|
|
|
7582
7605
|
* Define an `ngOnInit()` method to handle any additional initialization tasks.
|
|
7583
7606
|
*
|
|
7584
7607
|
* @see {@link AfterContentInit}
|
|
7585
|
-
* @see [Lifecycle hooks guide](guide/lifecycle
|
|
7608
|
+
* @see [Lifecycle hooks guide](guide/components/lifecycle)
|
|
7586
7609
|
*
|
|
7587
7610
|
* @usageNotes
|
|
7588
7611
|
* The following snippet shows how a component can implement this interface to
|
|
@@ -7646,7 +7669,7 @@ export declare interface OptionalDecorator {
|
|
|
7646
7669
|
* <code-example path="core/di/ts/metadata_spec.ts" region="Optional">
|
|
7647
7670
|
* </code-example>
|
|
7648
7671
|
*
|
|
7649
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
7672
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
7650
7673
|
*/
|
|
7651
7674
|
(): any;
|
|
7652
7675
|
new (): Optional;
|
|
@@ -7734,7 +7757,8 @@ export declare interface OutputDecorator {
|
|
|
7734
7757
|
*
|
|
7735
7758
|
* See `Input` decorator for an example of providing a binding name.
|
|
7736
7759
|
*
|
|
7737
|
-
* @see [Input
|
|
7760
|
+
* @see [Input properties](guide/components/inputs)
|
|
7761
|
+
* @see [Output properties](guide/components/outputs)
|
|
7738
7762
|
*
|
|
7739
7763
|
*/
|
|
7740
7764
|
(alias?: string): any;
|
|
@@ -7804,7 +7828,7 @@ export declare interface OutputRefSubscription {
|
|
|
7804
7828
|
}
|
|
7805
7829
|
|
|
7806
7830
|
/**
|
|
7807
|
-
* A
|
|
7831
|
+
* A DI token that indicates the root directory of
|
|
7808
7832
|
* the application
|
|
7809
7833
|
* @publicApi
|
|
7810
7834
|
* @deprecated
|
|
@@ -7821,7 +7845,7 @@ declare const PARENT = 3;
|
|
|
7821
7845
|
export declare interface Pipe {
|
|
7822
7846
|
/**
|
|
7823
7847
|
* The pipe name to use in template bindings.
|
|
7824
|
-
* Typically uses
|
|
7848
|
+
* Typically uses lowerCamelCase
|
|
7825
7849
|
* because the name cannot contain hyphens.
|
|
7826
7850
|
*/
|
|
7827
7851
|
name: string;
|
|
@@ -7841,7 +7865,7 @@ export declare interface Pipe {
|
|
|
7841
7865
|
* pipes don't depend on any "intermediate context" of an NgModule (ex. configured providers).
|
|
7842
7866
|
*
|
|
7843
7867
|
* More information about standalone components, directives, and pipes can be found in [this
|
|
7844
|
-
* guide](guide/
|
|
7868
|
+
* guide](guide/components/importing).
|
|
7845
7869
|
*/
|
|
7846
7870
|
standalone?: boolean;
|
|
7847
7871
|
}
|
|
@@ -7876,7 +7900,7 @@ export declare interface PipeDecorator {
|
|
|
7876
7900
|
* to a template. To make it a member of an NgModule,
|
|
7877
7901
|
* list it in the `declarations` field of the `NgModule` metadata.
|
|
7878
7902
|
*
|
|
7879
|
-
* @see [Style Guide: Pipe Names](guide
|
|
7903
|
+
* @see [Style Guide: Pipe Names](style-guide#02-09)
|
|
7880
7904
|
*
|
|
7881
7905
|
*/
|
|
7882
7906
|
(obj: Pipe): TypeDecorator;
|
|
@@ -8075,7 +8099,7 @@ declare type ProjectionSlots = (ɵCssSelectorList | '*')[];
|
|
|
8075
8099
|
|
|
8076
8100
|
/**
|
|
8077
8101
|
* Describes how the `Injector` should be configured.
|
|
8078
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
8102
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
8079
8103
|
*
|
|
8080
8104
|
* @see {@link StaticProvider}
|
|
8081
8105
|
*
|
|
@@ -8929,7 +8953,7 @@ declare interface RText extends RNode {
|
|
|
8929
8953
|
}
|
|
8930
8954
|
|
|
8931
8955
|
/**
|
|
8932
|
-
* Runs the given function in the [context](guide/dependency-injection-context) of the given
|
|
8956
|
+
* Runs the given function in the [context](guide/di/dependency-injection-context) of the given
|
|
8933
8957
|
* `Injector`.
|
|
8934
8958
|
*
|
|
8935
8959
|
* Within the function's stack frame, [`inject`](api/core/inject) can be used to inject dependencies
|
|
@@ -9155,6 +9179,13 @@ declare interface SerializedView {
|
|
|
9155
9179
|
* logic for such nodes and instead use a regular "creation mode".
|
|
9156
9180
|
*/
|
|
9157
9181
|
[DISCONNECTED_NODES]?: number[];
|
|
9182
|
+
/**
|
|
9183
|
+
* Serialized information about i18n blocks in a template.
|
|
9184
|
+
* Key-value pairs where a key is an index of the corresponding
|
|
9185
|
+
* i18n entry within an LView, and the value is a list of
|
|
9186
|
+
* active ICU cases.
|
|
9187
|
+
*/
|
|
9188
|
+
[I18N_DATA]?: Record<number, number[]>;
|
|
9158
9189
|
}
|
|
9159
9190
|
|
|
9160
9191
|
/**
|
|
@@ -9255,7 +9286,7 @@ export declare interface SkipSelfDecorator {
|
|
|
9255
9286
|
* <code-example path="core/di/ts/metadata_spec.ts" region="SkipSelf">
|
|
9256
9287
|
* </code-example>
|
|
9257
9288
|
*
|
|
9258
|
-
* @see [Dependency Injection guide](guide/
|
|
9289
|
+
* @see [Dependency Injection guide](guide/di/di-in-action#skip).
|
|
9259
9290
|
* @see {@link Self}
|
|
9260
9291
|
* @see {@link Optional}
|
|
9261
9292
|
*
|
|
@@ -9301,7 +9332,7 @@ export declare type StateKey<T> = string & {
|
|
|
9301
9332
|
|
|
9302
9333
|
/**
|
|
9303
9334
|
* Configures the `Injector` to return an instance of `useClass` for a token.
|
|
9304
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
9335
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
9305
9336
|
*
|
|
9306
9337
|
* @usageNotes
|
|
9307
9338
|
*
|
|
@@ -9353,7 +9384,7 @@ export declare interface StaticClassSansProvider {
|
|
|
9353
9384
|
* A static provider provides tokens to an injector for various types of dependencies.
|
|
9354
9385
|
*
|
|
9355
9386
|
* @see {@link Injector.create()}
|
|
9356
|
-
* @see [Dependency Injection Guide](guide/dependency-injection-providers).
|
|
9387
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection-providers).
|
|
9357
9388
|
*
|
|
9358
9389
|
* @publicApi
|
|
9359
9390
|
*/
|
|
@@ -9542,7 +9573,6 @@ declare const TEMPLATE_ID = "i";
|
|
|
9542
9573
|
* a component or a directive.
|
|
9543
9574
|
*
|
|
9544
9575
|
* @see {@link ViewContainerRef}
|
|
9545
|
-
* @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)
|
|
9546
9576
|
*
|
|
9547
9577
|
* @publicApi
|
|
9548
9578
|
*/
|
|
@@ -9550,8 +9580,8 @@ export declare abstract class TemplateRef<C> {
|
|
|
9550
9580
|
/**
|
|
9551
9581
|
* The anchor element in the parent view for this embedded view.
|
|
9552
9582
|
*
|
|
9553
|
-
* The data-binding and [injection contexts](guide/dependency-injection-context) of embedded
|
|
9554
|
-
* created from this `TemplateRef` inherit from the contexts of this location.
|
|
9583
|
+
* The data-binding and [injection contexts](guide/di/dependency-injection-context) of embedded
|
|
9584
|
+
* views created from this `TemplateRef` inherit from the contexts of this location.
|
|
9555
9585
|
*
|
|
9556
9586
|
* Typically new embedded views are attached to the view container of this location, but in
|
|
9557
9587
|
* advanced use-cases, the view can be attached to a different container while keeping the
|
|
@@ -10509,7 +10539,7 @@ export declare class TransferState {
|
|
|
10509
10539
|
* Use this token at bootstrap to provide the content of your translation file (`xtb`,
|
|
10510
10540
|
* `xlf` or `xlf2`) when you want to translate your application in another language.
|
|
10511
10541
|
*
|
|
10512
|
-
* See the [i18n guide](guide/i18n
|
|
10542
|
+
* See the [i18n guide](guide/i18n/merge) for more information.
|
|
10513
10543
|
*
|
|
10514
10544
|
* @usageNotes
|
|
10515
10545
|
* ### Example
|
|
@@ -10535,7 +10565,7 @@ export declare const TRANSLATIONS: InjectionToken<string>;
|
|
|
10535
10565
|
* Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
|
|
10536
10566
|
* `xlf` or `xlf2`.
|
|
10537
10567
|
*
|
|
10538
|
-
* See the [i18n guide](guide/i18n
|
|
10568
|
+
* See the [i18n guide](guide/i18n/merge) for more information.
|
|
10539
10569
|
*
|
|
10540
10570
|
* @usageNotes
|
|
10541
10571
|
* ### Example
|
|
@@ -11030,7 +11060,7 @@ declare type TypeOrFactory<T> = T | (() => T);
|
|
|
11030
11060
|
* Create an instance by invoking the `new` operator and supplying additional arguments.
|
|
11031
11061
|
* This form is a short form of `TypeProvider`;
|
|
11032
11062
|
*
|
|
11033
|
-
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection
|
|
11063
|
+
* For more details, see the ["Dependency Injection Guide"](guide/di/dependency-injection.
|
|
11034
11064
|
*
|
|
11035
11065
|
* @usageNotes
|
|
11036
11066
|
*
|
|
@@ -11055,7 +11085,7 @@ export declare type ValueEqualityFn<T> = (a: T, b: T) => boolean;
|
|
|
11055
11085
|
|
|
11056
11086
|
/**
|
|
11057
11087
|
* Configures the `Injector` to return a value for a token.
|
|
11058
|
-
* @see [Dependency Injection Guide](guide/dependency-injection
|
|
11088
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection.
|
|
11059
11089
|
*
|
|
11060
11090
|
* @usageNotes
|
|
11061
11091
|
*
|
|
@@ -11356,7 +11386,7 @@ export declare interface ViewChildrenDecorator {
|
|
|
11356
11386
|
* (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).
|
|
11357
11387
|
*
|
|
11358
11388
|
* A view container instance can contain other view containers,
|
|
11359
|
-
* creating a
|
|
11389
|
+
* creating a view hierarchy.
|
|
11360
11390
|
*
|
|
11361
11391
|
* @usageNotes
|
|
11362
11392
|
*
|
|
@@ -11413,7 +11443,7 @@ export declare abstract class ViewContainerRef {
|
|
|
11413
11443
|
*/
|
|
11414
11444
|
abstract get element(): ElementRef;
|
|
11415
11445
|
/**
|
|
11416
|
-
* The
|
|
11446
|
+
* The dependency injector for this view container.
|
|
11417
11447
|
*/
|
|
11418
11448
|
abstract get injector(): Injector;
|
|
11419
11449
|
/** @deprecated No replacement */
|
|
@@ -11595,7 +11625,7 @@ declare enum ViewEncapsulation_2 {
|
|
|
11595
11625
|
declare type ViewQueriesFunction<T> = <U extends T>(rf: ɵRenderFlags, ctx: U) => void;
|
|
11596
11626
|
|
|
11597
11627
|
/**
|
|
11598
|
-
* Represents an Angular
|
|
11628
|
+
* Represents an Angular view.
|
|
11599
11629
|
*
|
|
11600
11630
|
* @see {@link ChangeDetectorRef#usage-notes Change detection usage}
|
|
11601
11631
|
*
|
|
@@ -12231,7 +12261,7 @@ export declare enum ɵDeferBlockState {
|
|
|
12231
12261
|
/** The deps tracker to be used in the current Angular app in dev mode. */
|
|
12232
12262
|
export declare const ɵdepsTracker: DepsTracker;
|
|
12233
12263
|
|
|
12234
|
-
export declare function ɵdetectChangesInViewIfRequired(lView: LView, isFirstPass: boolean,
|
|
12264
|
+
export declare function ɵdetectChangesInViewIfRequired(lView: LView, notifyErrorHandler: boolean, isFirstPass: boolean, zonelessEnabled: boolean): void;
|
|
12235
12265
|
|
|
12236
12266
|
|
|
12237
12267
|
export declare function ɵdevModeEqual(a: any, b: any): boolean;
|
|
@@ -12256,7 +12286,7 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
12256
12286
|
* (along with flags if there are any).
|
|
12257
12287
|
*/
|
|
12258
12288
|
readonly inputs: {
|
|
12259
|
-
[P in keyof T]?: string | [minifiedName: string, flags:
|
|
12289
|
+
[P in keyof T]?: string | [minifiedName: string, flags: InputFlags];
|
|
12260
12290
|
};
|
|
12261
12291
|
/**
|
|
12262
12292
|
* A dictionary mapping the private names of inputs to their transformation functions.
|
|
@@ -12274,7 +12304,7 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
12274
12304
|
* used to do further processing after the `inputs` have been inverted.
|
|
12275
12305
|
*/
|
|
12276
12306
|
readonly inputConfig: {
|
|
12277
|
-
[P in keyof T]?: string | [
|
|
12307
|
+
[P in keyof T]?: string | [InputFlags, string, string?, InputTransformFunction?];
|
|
12278
12308
|
};
|
|
12279
12309
|
/**
|
|
12280
12310
|
* @deprecated This is only here because `NgOnChanges` incorrectly uses declared name instead of
|
|
@@ -12429,7 +12459,7 @@ export declare const enum ɵExtraLocaleDataIndex {
|
|
|
12429
12459
|
*
|
|
12430
12460
|
* @param locale The locale code.
|
|
12431
12461
|
* @returns The locale data.
|
|
12432
|
-
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n
|
|
12462
|
+
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
|
|
12433
12463
|
*/
|
|
12434
12464
|
export declare function ɵfindLocaleData(locale: string): any;
|
|
12435
12465
|
|
|
@@ -12490,9 +12520,6 @@ export declare function ɵgetDeferBlocks(lView: LView, deferBlocks: ɵDeferBlock
|
|
|
12490
12520
|
*/
|
|
12491
12521
|
export declare function ɵgetDirectives(node: Node): {}[];
|
|
12492
12522
|
|
|
12493
|
-
|
|
12494
|
-
export declare function ɵgetEnsureDirtyViewsAreAlwaysReachable(): boolean;
|
|
12495
|
-
|
|
12496
12523
|
/**
|
|
12497
12524
|
* Retrieves the host element of a component or directive instance.
|
|
12498
12525
|
* The host element is the DOM element that matched the selector of the directive.
|
|
@@ -12553,7 +12580,7 @@ export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
|
|
|
12553
12580
|
* @param locale A locale code for the locale format rules to use.
|
|
12554
12581
|
* @returns The plural function for the locale.
|
|
12555
12582
|
* @see {@link NgPlural}
|
|
12556
|
-
* @see [Internationalization (i18n) Guide](
|
|
12583
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
12557
12584
|
*/
|
|
12558
12585
|
export declare function ɵgetLocalePluralCase(locale: string): (value: number) => number;
|
|
12559
12586
|
|
|
@@ -12616,7 +12643,7 @@ export declare const ɵIMAGE_CONFIG_DEFAULTS: ɵImageConfig;
|
|
|
12616
12643
|
* - disableImageLazyLoadWarning: A boolean value. Setting this to true will
|
|
12617
12644
|
* disable console warnings about LCP images configured with `loading="lazy"`.
|
|
12618
12645
|
* Learn more about the responsive image configuration in [the NgOptimizedImage
|
|
12619
|
-
* guide](guide/image-
|
|
12646
|
+
* guide](guide/image-optimization).
|
|
12620
12647
|
* Learn more about image warning options in [the related error page](errors/NG0913).
|
|
12621
12648
|
* @publicApi
|
|
12622
12649
|
*/
|
|
@@ -13159,7 +13186,7 @@ export declare class ɵReflectionCapabilities implements PlatformReflectionCapab
|
|
|
13159
13186
|
|
|
13160
13187
|
/**
|
|
13161
13188
|
* Register locale data to be used internally by Angular. See the
|
|
13162
|
-
* ["I18n guide"](guide/i18n
|
|
13189
|
+
* ["I18n guide"](guide/i18n/format-data-locale) to know how to import additional locale
|
|
13163
13190
|
* data.
|
|
13164
13191
|
*
|
|
13165
13192
|
* The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1
|
|
@@ -13460,6 +13487,23 @@ export declare interface ɵSafeUrl extends ɵSafeValue {
|
|
|
13460
13487
|
export declare interface ɵSafeValue {
|
|
13461
13488
|
}
|
|
13462
13489
|
|
|
13490
|
+
/**
|
|
13491
|
+
* Configures change detection scheduling when using ZoneJS.
|
|
13492
|
+
*/
|
|
13493
|
+
export declare enum ɵSchedulingMode {
|
|
13494
|
+
/**
|
|
13495
|
+
* Change detection will run when the `NgZone.onMicrotaskEmpty` observable emits.
|
|
13496
|
+
* Change detection will also be scheduled to run whenever Angular is notified
|
|
13497
|
+
* of a change. This includes calling `ChangeDetectorRef.markForCheck`,
|
|
13498
|
+
* setting a `signal` value, and attaching a view.
|
|
13499
|
+
*/
|
|
13500
|
+
Hybrid = 0,
|
|
13501
|
+
/**
|
|
13502
|
+
* Change detection will only run when the `NgZone.onMicrotaskEmpty` observable emits.
|
|
13503
|
+
*/
|
|
13504
|
+
NgZoneOnly = 1
|
|
13505
|
+
}
|
|
13506
|
+
|
|
13463
13507
|
/**
|
|
13464
13508
|
* Control whether the NgModule registration system enforces that each NgModule type registered has
|
|
13465
13509
|
* a unique id.
|
|
@@ -13514,8 +13558,6 @@ export declare function ɵsetCurrentInjector(injector: Injector | null | undefin
|
|
|
13514
13558
|
*/
|
|
13515
13559
|
export declare function ɵsetDocument(document: Document | undefined): void;
|
|
13516
13560
|
|
|
13517
|
-
export declare function ɵsetEnsureDirtyViewsAreAlwaysReachable(v: boolean): void;
|
|
13518
|
-
|
|
13519
13561
|
export declare function ɵsetInjectorProfilerContext(context: ɵInjectorProfilerContext): ɵInjectorProfilerContext;
|
|
13520
13562
|
|
|
13521
13563
|
|
|
@@ -13870,7 +13912,7 @@ export declare function ɵwithDomHydration(): EnvironmentProviders;
|
|
|
13870
13912
|
* Returns a set of providers required to setup support for i18n hydration.
|
|
13871
13913
|
* Requires hydration to be enabled separately.
|
|
13872
13914
|
*/
|
|
13873
|
-
export declare function ɵ
|
|
13915
|
+
export declare function ɵwithI18nSupport(): Provider[];
|
|
13874
13916
|
|
|
13875
13917
|
/**
|
|
13876
13918
|
* Returns a writable type version of type.
|
|
@@ -15343,14 +15385,6 @@ export declare interface ɵɵInjectorDef<T> {
|
|
|
15343
15385
|
imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
|
|
15344
15386
|
}
|
|
15345
15387
|
|
|
15346
|
-
|
|
15347
|
-
/** Flags describing an input for a directive. */
|
|
15348
|
-
export declare enum ɵɵInputFlags {
|
|
15349
|
-
None = 0,
|
|
15350
|
-
SignalBased = 1,
|
|
15351
|
-
HasDecoratorInputTransform = 2
|
|
15352
|
-
}
|
|
15353
|
-
|
|
15354
15388
|
/**
|
|
15355
15389
|
* Decorates the directive definition with support for input transform functions.
|
|
15356
15390
|
*
|