@angular/core 21.0.0-next.0 → 21.0.0-next.10
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/fesm2022/_attribute-chunk.mjs +12 -0
- package/fesm2022/_attribute-chunk.mjs.map +1 -0
- package/fesm2022/_debug_node-chunk.mjs +18469 -0
- package/fesm2022/_debug_node-chunk.mjs.map +1 -0
- package/fesm2022/_effect-chunk.mjs +423 -0
- package/fesm2022/_effect-chunk.mjs.map +1 -0
- package/fesm2022/_effect-chunk2.mjs +2951 -0
- package/fesm2022/_effect-chunk2.mjs.map +1 -0
- package/fesm2022/_not_found-chunk.mjs +39 -0
- package/fesm2022/_not_found-chunk.mjs.map +1 -0
- package/fesm2022/_resource-chunk.mjs +378 -0
- package/fesm2022/_resource-chunk.mjs.map +1 -0
- package/fesm2022/_untracked-chunk.mjs +96 -0
- package/fesm2022/_untracked-chunk.mjs.map +1 -0
- package/fesm2022/_weak_ref-chunk.mjs +10 -0
- package/fesm2022/_weak_ref-chunk.mjs.map +1 -0
- package/fesm2022/core.mjs +2499 -4185
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +23 -0
- package/fesm2022/primitives-di.mjs.map +1 -0
- package/fesm2022/primitives-event-dispatch.mjs +788 -0
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -0
- package/fesm2022/primitives-signals.mjs +187 -0
- package/fesm2022/primitives-signals.mjs.map +1 -0
- package/fesm2022/rxjs-interop.mjs +210 -308
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +2309 -3170
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +18 -12
- package/resources/best-practices.md +56 -0
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +117 -0
- package/schematics/bundles/application-config-core.cjs +84 -0
- package/schematics/bundles/{apply_import_manager-DR9xXCle.cjs → apply_import_manager-1Zs_gpB6.cjs} +4 -5
- package/schematics/bundles/bootstrap-options-migration.cjs +598 -0
- package/schematics/bundles/cleanup-unused-imports.cjs +9 -13
- package/schematics/bundles/common-to-standalone-migration.cjs +381 -0
- package/schematics/bundles/{compiler_host-BXBP7CE2.cjs → compiler_host-DBwYMlTo.cjs} +10 -11
- package/schematics/bundles/control-flow-migration.cjs +122 -119
- package/schematics/bundles/{imports-CIX-JgAN.cjs → imports-DP72APSx.cjs} +6 -1
- package/schematics/bundles/{index-CfTQUOiz.cjs → index-B7I9sIUx.cjs} +36 -39
- package/schematics/bundles/inject-migration.cjs +148 -70
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-6NtAj-Wk.cjs → migrate_ts_type_references-UGIUl7En.cjs} +500 -24
- package/schematics/bundles/ng_component_template-Dsuq1Lw7.cjs +185 -0
- package/schematics/bundles/{ng_decorators-B5HCqr20.cjs → ng_decorators-DSFlWYQY.cjs} +2 -2
- package/schematics/bundles/ngclass-to-class-migration.cjs +542 -0
- package/schematics/bundles/ngstyle-to-style-migration.cjs +487 -0
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +16 -19
- package/schematics/bundles/parse_html-8VLCL37B.cjs +132 -0
- package/schematics/bundles/{project_paths-DcaODbky.cjs → project_paths-DvD50ouC.cjs} +14 -247
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +90 -0
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +54 -26
- package/schematics/bundles/router-current-navigation.cjs +7 -18
- package/schematics/bundles/router-last-successful-navigation.cjs +7 -18
- package/schematics/bundles/router-testing-module-migration.cjs +502 -0
- package/schematics/bundles/self-closing-tags-migration.cjs +17 -216
- package/schematics/bundles/signal-input-migration.cjs +93 -29
- package/schematics/bundles/signal-queries-migration.cjs +22 -25
- package/schematics/bundles/signals.cjs +10 -13
- package/schematics/bundles/standalone-migration.cjs +135 -102
- package/schematics/bundles/{symbol-VPWguRxr.cjs → symbol-BObKoqes.cjs} +3 -2
- package/schematics/collection.json +23 -0
- package/schematics/migrations/common-to-standalone-migration/schema.json +14 -0
- package/schematics/migrations/ngclass-to-class-migration/schema.json +20 -0
- package/schematics/migrations/ngstyle-to-style-migration/schema.json +20 -0
- package/schematics/migrations/router-testing-module-migration/schema.json +14 -0
- package/schematics/migrations.json +16 -2
- package/{api.d.d.ts → types/_api-chunk.d.ts} +9 -6
- package/{chrome_dev_tools_performance.d.d.ts → types/_chrome_dev_tools_performance-chunk.d.ts} +26 -31
- package/{discovery.d.d.ts → types/_discovery-chunk.d.ts} +135 -98
- package/{signal.d.d.ts → types/_effect-chunk.d.ts} +14 -5
- package/{event_dispatcher.d.d.ts → types/_event_dispatcher-chunk.d.ts} +2 -2
- package/{graph.d.d.ts → types/_formatter-chunk.d.ts} +40 -7
- package/{weak_ref.d.d.ts → types/_weak_ref-chunk.d.ts} +2 -2
- package/{index.d.ts → types/core.d.ts} +233 -305
- package/{primitives/di/index.d.ts → types/primitives-di.d.ts} +2 -2
- package/{primitives/event-dispatch/index.d.ts → types/primitives-event-dispatch.d.ts} +4 -4
- package/{primitives/signals/index.d.ts → types/primitives-signals.d.ts} +7 -8
- package/{rxjs-interop/index.d.ts → types/rxjs-interop.d.ts} +8 -6
- package/{testing/index.d.ts → types/testing.d.ts} +7 -7
- package/fesm2022/attribute.mjs +0 -24
- package/fesm2022/attribute.mjs.map +0 -1
- package/fesm2022/debug_node.mjs +0 -31833
- package/fesm2022/debug_node.mjs.map +0 -1
- package/fesm2022/not_found.mjs +0 -56
- package/fesm2022/not_found.mjs.map +0 -1
- package/fesm2022/primitives/di.mjs +0 -23
- package/fesm2022/primitives/di.mjs.map +0 -1
- package/fesm2022/primitives/event-dispatch.mjs +0 -1622
- package/fesm2022/primitives/event-dispatch.mjs.map +0 -1
- package/fesm2022/primitives/signals.mjs +0 -89
- package/fesm2022/primitives/signals.mjs.map +0 -1
- package/fesm2022/resource.mjs +0 -633
- package/fesm2022/resource.mjs.map +0 -1
- package/fesm2022/root_effect_scheduler.mjs +0 -4007
- package/fesm2022/root_effect_scheduler.mjs.map +0 -1
- package/fesm2022/signal.mjs +0 -560
- package/fesm2022/signal.mjs.map +0 -1
- package/fesm2022/untracked.mjs +0 -117
- package/fesm2022/untracked.mjs.map +0 -1
- package/fesm2022/weak_ref.mjs +0 -12
- package/fesm2022/weak_ref.mjs.map +0 -1
- package/schematics/bundles/index-esqfDjNB.cjs +0 -22074
- package/schematics/bundles/project_tsconfig_paths-CS-eSeHC.cjs +0 -51062
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
"control-flow-migration": {
|
|
4
4
|
"version": "21.0.0",
|
|
5
5
|
"description": "Converts the entire application to block control flow syntax",
|
|
6
|
-
"factory": "./bundles/control-flow-migration.cjs#migrate"
|
|
7
|
-
"optional": true
|
|
6
|
+
"factory": "./bundles/control-flow-migration.cjs#migrate"
|
|
8
7
|
},
|
|
9
8
|
"router-current-navigation": {
|
|
10
9
|
"version": "21.0.0",
|
|
@@ -16,6 +15,21 @@
|
|
|
16
15
|
"version": "21.0.0",
|
|
17
16
|
"description": "Ensures that the Router.lastSuccessfulNavigation signal is now invoked",
|
|
18
17
|
"factory": "./bundles/router-last-successful-navigation.cjs#migrate"
|
|
18
|
+
},
|
|
19
|
+
"application-config-core": {
|
|
20
|
+
"version": "21.0.0",
|
|
21
|
+
"description": "Moves imports of `ApplicationConfig` from `@angular/platform-browser` to `@angular/core`",
|
|
22
|
+
"factory": "./bundles/application-config-core.cjs#migrate"
|
|
23
|
+
},
|
|
24
|
+
"add-bootstrap-context-to-server-main": {
|
|
25
|
+
"version": "21.0.0",
|
|
26
|
+
"description": "Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.",
|
|
27
|
+
"factory": "./bundles/add-bootstrap-context-to-server-main.cjs#migrate"
|
|
28
|
+
},
|
|
29
|
+
"bootstrap-options-migration": {
|
|
30
|
+
"version": "21.0.0",
|
|
31
|
+
"description": "Migrates deprecated bootstrap options to providers.",
|
|
32
|
+
"factory": "./bundles/bootstrap-options-migration.cjs#migrate"
|
|
19
33
|
}
|
|
20
34
|
}
|
|
21
35
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.10
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { OutputRef, OutputRefSubscription, DestroyRef, Signal, WritableSignal, ValueEqualityFn, Injector } from './
|
|
7
|
+
import { OutputRef, OutputRefSubscription, DestroyRef, Signal, WritableSignal, ValueEqualityFn, Injector } from './_chrome_dev_tools_performance-chunk.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* An `OutputEmitterRef` is created by the `output()` function and can be
|
|
@@ -139,7 +139,8 @@ interface Resource<T> {
|
|
|
139
139
|
*
|
|
140
140
|
* This function is reactive.
|
|
141
141
|
*/
|
|
142
|
-
hasValue(): this is Resource<Exclude<T, undefined>>;
|
|
142
|
+
hasValue(this: T extends undefined ? this : never): this is Resource<Exclude<T, undefined>>;
|
|
143
|
+
hasValue(): boolean;
|
|
143
144
|
}
|
|
144
145
|
/**
|
|
145
146
|
* A `Resource` with a mutable value.
|
|
@@ -150,7 +151,8 @@ interface Resource<T> {
|
|
|
150
151
|
*/
|
|
151
152
|
interface WritableResource<T> extends Resource<T> {
|
|
152
153
|
readonly value: WritableSignal<T>;
|
|
153
|
-
hasValue(): this is WritableResource<Exclude<T, undefined>>;
|
|
154
|
+
hasValue(this: T extends undefined ? this : never): this is WritableResource<Exclude<T, undefined>>;
|
|
155
|
+
hasValue(): boolean;
|
|
154
156
|
/**
|
|
155
157
|
* Convenience wrapper for `value.set`.
|
|
156
158
|
*/
|
|
@@ -176,7 +178,8 @@ interface WritableResource<T> extends Resource<T> {
|
|
|
176
178
|
* @experimental
|
|
177
179
|
*/
|
|
178
180
|
interface ResourceRef<T> extends WritableResource<T> {
|
|
179
|
-
hasValue(): this is ResourceRef<Exclude<T, undefined>>;
|
|
181
|
+
hasValue(this: T extends undefined ? this : never): this is ResourceRef<Exclude<T, undefined>>;
|
|
182
|
+
hasValue(): boolean;
|
|
180
183
|
/**
|
|
181
184
|
* Manually destroy the resource, which cancels pending requests and returns it to `idle` state.
|
|
182
185
|
*/
|
package/{chrome_dev_tools_performance.d.d.ts → types/_chrome_dev_tools_performance-chunk.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.10
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { SIGNAL } from './
|
|
8
|
-
import { EventContract } from './
|
|
7
|
+
import { SIGNAL } from './_formatter-chunk.js';
|
|
8
|
+
import { EventContract } from './_event_dispatcher-chunk.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A reactive value which notifies consumers of any changes.
|
|
@@ -28,6 +28,8 @@ type Signal<T> = (() => T) & {
|
|
|
28
28
|
declare function isSignal(value: unknown): value is Signal<unknown>;
|
|
29
29
|
/**
|
|
30
30
|
* A comparison function which can determine if two values are equal.
|
|
31
|
+
*
|
|
32
|
+
* @publicApi 17.0
|
|
31
33
|
*/
|
|
32
34
|
type ValueEqualityFn<T> = (a: T, b: T) => boolean;
|
|
33
35
|
|
|
@@ -241,7 +243,7 @@ interface ValueSansProvider {
|
|
|
241
243
|
}
|
|
242
244
|
/**
|
|
243
245
|
* Configures the `Injector` to return a value for a token.
|
|
244
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
246
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
245
247
|
*
|
|
246
248
|
* @usageNotes
|
|
247
249
|
*
|
|
@@ -286,7 +288,7 @@ interface StaticClassSansProvider {
|
|
|
286
288
|
}
|
|
287
289
|
/**
|
|
288
290
|
* Configures the `Injector` to return an instance of `useClass` for a token.
|
|
289
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
291
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
290
292
|
*
|
|
291
293
|
* @usageNotes
|
|
292
294
|
*
|
|
@@ -316,7 +318,7 @@ interface StaticClassProvider extends StaticClassSansProvider {
|
|
|
316
318
|
/**
|
|
317
319
|
* Configures the `Injector` to return an instance of a token.
|
|
318
320
|
*
|
|
319
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
321
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
320
322
|
*
|
|
321
323
|
* @usageNotes
|
|
322
324
|
*
|
|
@@ -336,7 +338,7 @@ interface ConstructorSansProvider {
|
|
|
336
338
|
/**
|
|
337
339
|
* Configures the `Injector` to return an instance of a token.
|
|
338
340
|
*
|
|
339
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
341
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
340
342
|
*
|
|
341
343
|
* @usageNotes
|
|
342
344
|
*
|
|
@@ -363,7 +365,7 @@ interface ConstructorProvider extends ConstructorSansProvider {
|
|
|
363
365
|
* Configures the `Injector` to return a value of another `useExisting` token.
|
|
364
366
|
*
|
|
365
367
|
* @see {@link ExistingProvider}
|
|
366
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
368
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
367
369
|
*
|
|
368
370
|
* @publicApi
|
|
369
371
|
*/
|
|
@@ -376,7 +378,7 @@ interface ExistingSansProvider {
|
|
|
376
378
|
/**
|
|
377
379
|
* Configures the `Injector` to return a value of another `useExisting` token.
|
|
378
380
|
*
|
|
379
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
381
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
380
382
|
*
|
|
381
383
|
* @usageNotes
|
|
382
384
|
*
|
|
@@ -403,7 +405,7 @@ interface ExistingProvider extends ExistingSansProvider {
|
|
|
403
405
|
* Configures the `Injector` to return a value by invoking a `useFactory` function.
|
|
404
406
|
*
|
|
405
407
|
* @see {@link FactoryProvider}
|
|
406
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
408
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
407
409
|
*
|
|
408
410
|
* @publicApi
|
|
409
411
|
*/
|
|
@@ -421,7 +423,7 @@ interface FactorySansProvider {
|
|
|
421
423
|
}
|
|
422
424
|
/**
|
|
423
425
|
* Configures the `Injector` to return a value by invoking a `useFactory` function.
|
|
424
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
426
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
425
427
|
*
|
|
426
428
|
* @usageNotes
|
|
427
429
|
*
|
|
@@ -478,7 +480,7 @@ interface TypeProvider extends Type<any> {
|
|
|
478
480
|
* Configures the `Injector` to return a value by invoking a `useClass` function.
|
|
479
481
|
* Base for `ClassProvider` decorator.
|
|
480
482
|
*
|
|
481
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
483
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
482
484
|
*
|
|
483
485
|
* @publicApi
|
|
484
486
|
*/
|
|
@@ -490,7 +492,7 @@ interface ClassSansProvider {
|
|
|
490
492
|
}
|
|
491
493
|
/**
|
|
492
494
|
* Configures the `Injector` to return an instance of `useClass` for a token.
|
|
493
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
495
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
494
496
|
*
|
|
495
497
|
* @usageNotes
|
|
496
498
|
*
|
|
@@ -519,7 +521,7 @@ interface ClassProvider extends ClassSansProvider {
|
|
|
519
521
|
}
|
|
520
522
|
/**
|
|
521
523
|
* Describes how the `Injector` should be configured.
|
|
522
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
524
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
523
525
|
*
|
|
524
526
|
* @see {@link StaticProvider}
|
|
525
527
|
*
|
|
@@ -569,21 +571,6 @@ interface ModuleWithProviders<T> {
|
|
|
569
571
|
ngModule: Type<T>;
|
|
570
572
|
providers?: Array<Provider | EnvironmentProviders>;
|
|
571
573
|
}
|
|
572
|
-
/**
|
|
573
|
-
* Providers that were imported from NgModules via the `importProvidersFrom` function.
|
|
574
|
-
*
|
|
575
|
-
* These providers are meant for use in an application injector (or other environment injectors) and
|
|
576
|
-
* should not be used in component injectors.
|
|
577
|
-
*
|
|
578
|
-
* This type cannot be directly implemented. It's returned from the `importProvidersFrom` function
|
|
579
|
-
* and serves to prevent the extracted NgModule providers from being used in the wrong contexts.
|
|
580
|
-
*
|
|
581
|
-
* @see {@link importProvidersFrom}
|
|
582
|
-
*
|
|
583
|
-
* @publicApi
|
|
584
|
-
* @deprecated replaced by `EnvironmentProviders`
|
|
585
|
-
*/
|
|
586
|
-
type ImportedNgModuleProviders = EnvironmentProviders;
|
|
587
574
|
|
|
588
575
|
/**
|
|
589
576
|
* This enum is an exact copy of the `InjectFlags` enum above, but the difference is that this is a
|
|
@@ -741,6 +728,8 @@ interface DestroyableInjector extends Injector {
|
|
|
741
728
|
* is injected in a component or directive, the callbacks run when that component or
|
|
742
729
|
* directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.
|
|
743
730
|
*
|
|
731
|
+
* @see [Lifecycle DestroyRef](guide/components/lifecycle#destroyref)
|
|
732
|
+
*
|
|
744
733
|
* @publicApi
|
|
745
734
|
*/
|
|
746
735
|
declare abstract class DestroyRef {
|
|
@@ -759,10 +748,16 @@ declare abstract class DestroyRef {
|
|
|
759
748
|
* // stop the destroy callback from executing if needed
|
|
760
749
|
* unregisterFn();
|
|
761
750
|
* ```
|
|
751
|
+
*
|
|
752
|
+
* @see [Lifecycle DestroyRef](guide/components/lifecycle#destroyref)
|
|
753
|
+
*
|
|
762
754
|
*/
|
|
763
755
|
abstract onDestroy(callback: () => void): () => void;
|
|
764
756
|
/**
|
|
765
757
|
* Indicates whether the instance has already been destroyed.
|
|
758
|
+
*
|
|
759
|
+
* @see [Detecting instance destruction](guide/components/lifecycle#detecting-instance-destruction)
|
|
760
|
+
*
|
|
766
761
|
*/
|
|
767
762
|
abstract get destroyed(): boolean;
|
|
768
763
|
}
|
|
@@ -834,4 +829,4 @@ declare global {
|
|
|
834
829
|
declare function enableProfiling(): () => void;
|
|
835
830
|
|
|
836
831
|
export { DestroyRef, InjectionToken, Injector, InternalInjectFlags, JSACTION_EVENT_CONTRACT, Type, enableProfiling, isEnvironmentProviders, isSignal, signal, ɵunwrapWritableSignal };
|
|
837
|
-
export type { AbstractType, ClassProvider, ClassSansProvider, ConstructorProvider, ConstructorSansProvider, CreateSignalOptions, DestroyableInjector, EnvironmentProviders, EventCallback, ExistingProvider, ExistingSansProvider, FactoryProvider, FactorySansProvider,
|
|
832
|
+
export type { AbstractType, ClassProvider, ClassSansProvider, ConstructorProvider, ConstructorSansProvider, CreateSignalOptions, DestroyableInjector, EnvironmentProviders, EventCallback, ExistingProvider, ExistingSansProvider, FactoryProvider, FactorySansProvider, InjectOptions, InternalEnvironmentProviders, ModuleWithProviders, OutputRef, OutputRefSubscription, ProcessProvidersFunction, Provider, ProviderToken, Signal, StaticClassProvider, StaticClassSansProvider, StaticProvider, TypeProvider, ValueEqualityFn, ValueProvider, ValueSansProvider, Writable, WritableSignal };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.10
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { InjectionToken, Type, ValueProvider, ExistingProvider, FactoryProvider, ConstructorProvider, StaticClassProvider, ClassProvider, EnvironmentProviders, Injector, ProviderToken, InjectOptions, Provider, ProcessProvidersFunction, ModuleWithProviders, DestroyRef, InternalInjectFlags, WritableSignal, OutputRef, StaticProvider } from './
|
|
7
|
+
import { InjectionToken, Type, ValueProvider, ExistingProvider, FactoryProvider, ConstructorProvider, StaticClassProvider, ClassProvider, EnvironmentProviders, Injector, ProviderToken, InjectOptions, Provider, ProcessProvidersFunction, ModuleWithProviders, DestroyRef, InternalInjectFlags, WritableSignal, OutputRef, StaticProvider } from './_chrome_dev_tools_performance-chunk.js';
|
|
8
8
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
9
|
-
import './
|
|
10
|
-
import {
|
|
9
|
+
import './_event_dispatcher-chunk.js';
|
|
10
|
+
import { ReactiveNode } from './_formatter-chunk.js';
|
|
11
|
+
import { SignalNode, BaseEffectNode } from './_effect-chunk.js';
|
|
11
12
|
import { Injector as Injector$1, InjectionToken as InjectionToken$1, NotFound } from '@angular/core/primitives/di';
|
|
12
|
-
import { ReactiveNode } from './graph.d.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Reactive node type for an input signal. An input signal extends a signal.
|
|
@@ -36,6 +36,48 @@ interface InputSignalNode<T, TransformT> extends SignalNode<T> {
|
|
|
36
36
|
debugName?: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* A [DI token](api/core/InjectionToken) that enables or disables all enter and leave animations.
|
|
41
|
+
*/
|
|
42
|
+
declare const ANIMATIONS_DISABLED: InjectionToken<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* The event type for when `animate.enter` and `animate.leave` are used with function
|
|
45
|
+
* callbacks.
|
|
46
|
+
*
|
|
47
|
+
* @publicApi 20.2
|
|
48
|
+
*/
|
|
49
|
+
type AnimationCallbackEvent = {
|
|
50
|
+
target: Element;
|
|
51
|
+
animationComplete: Function;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* A [DI token](api/core/InjectionToken) that configures the maximum animation timeout
|
|
55
|
+
* before element removal. The default value mirrors from Chrome's cross document
|
|
56
|
+
* navigation view transition timeout. It's intended to prevent people from accidentally
|
|
57
|
+
* forgetting to call the removal function in their callback. Also serves as a delay
|
|
58
|
+
* for when stylesheets are pruned.
|
|
59
|
+
*
|
|
60
|
+
* @publicApi 20.2
|
|
61
|
+
*/
|
|
62
|
+
declare const MAX_ANIMATION_TIMEOUT: InjectionToken<number>;
|
|
63
|
+
/**
|
|
64
|
+
* The function type for `animate.enter` and `animate.leave` when they are used with
|
|
65
|
+
* function callbacks.
|
|
66
|
+
*
|
|
67
|
+
* @publicApi 20.2
|
|
68
|
+
*/
|
|
69
|
+
type AnimationFunction = (event: AnimationCallbackEvent) => void;
|
|
70
|
+
interface NodeAnimations {
|
|
71
|
+
animateFns: Function[];
|
|
72
|
+
resolvers?: VoidFunction[];
|
|
73
|
+
}
|
|
74
|
+
interface AnimationLViewData {
|
|
75
|
+
enter?: Map<number, NodeAnimations>;
|
|
76
|
+
leave?: Map<number, NodeAnimations>;
|
|
77
|
+
running?: Promise<unknown>;
|
|
78
|
+
skipLeaveAnimations?: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
39
81
|
declare const enum NotificationSource {
|
|
40
82
|
MarkAncestorsForTraversal = 0,
|
|
41
83
|
SetInput = 1,
|
|
@@ -61,6 +103,8 @@ declare abstract class ChangeDetectionScheduler {
|
|
|
61
103
|
}
|
|
62
104
|
/** Token used to indicate if zoneless was enabled via provideZonelessChangeDetection(). */
|
|
63
105
|
declare const ZONELESS_ENABLED: InjectionToken<boolean>;
|
|
106
|
+
/** Token used to indicate `provideZonelessChangeDetection` was used. */
|
|
107
|
+
declare const PROVIDED_ZONELESS: InjectionToken<boolean>;
|
|
64
108
|
|
|
65
109
|
/**
|
|
66
110
|
* @fileoverview
|
|
@@ -447,6 +491,10 @@ interface RNode {
|
|
|
447
491
|
* Gets the Node immediately following this one in the parent's childNodes
|
|
448
492
|
*/
|
|
449
493
|
nextSibling: RNode | null;
|
|
494
|
+
/**
|
|
495
|
+
* Gets the Node immediately preceding this one in the parent's childNodes
|
|
496
|
+
*/
|
|
497
|
+
previousSibling: RNode | null;
|
|
450
498
|
/**
|
|
451
499
|
* Insert a child node.
|
|
452
500
|
*
|
|
@@ -1099,7 +1147,44 @@ declare const enum TNodeFlags {
|
|
|
1099
1147
|
/**
|
|
1100
1148
|
* Bit #10 - This bit is set if the node is within a set of control flow blocks.
|
|
1101
1149
|
*/
|
|
1102
|
-
isInControlFlow = 512
|
|
1150
|
+
isInControlFlow = 512,
|
|
1151
|
+
/**
|
|
1152
|
+
* Bit #11 - This bit is set if the node represents a form control.
|
|
1153
|
+
*
|
|
1154
|
+
* True when the node has an input binding to a `ɵControl` directive (but not also to a custom
|
|
1155
|
+
* component).
|
|
1156
|
+
*/
|
|
1157
|
+
isFormControl = 1024,
|
|
1158
|
+
/**
|
|
1159
|
+
* Bit #12 - This bit is set if the node hosts a custom control component.
|
|
1160
|
+
*
|
|
1161
|
+
* A custom control component's model property is named `value`.
|
|
1162
|
+
*/
|
|
1163
|
+
isFormValueControl = 2048,
|
|
1164
|
+
/**
|
|
1165
|
+
* Bit #13 - This bit is set if the node hosts a custom checkbox component.
|
|
1166
|
+
*
|
|
1167
|
+
* A custom checkbox component's model property is named `checked`.
|
|
1168
|
+
*/
|
|
1169
|
+
isFormCheckboxControl = 4096,
|
|
1170
|
+
/**
|
|
1171
|
+
* Bit #14 - This bit is set if the node hosts an interoperable control implementation.
|
|
1172
|
+
*
|
|
1173
|
+
* This is used to bind to a `ControlValueAccessor` from `@angular/forms`.
|
|
1174
|
+
*/
|
|
1175
|
+
isInteropControl = 8192,
|
|
1176
|
+
/**
|
|
1177
|
+
* Bit #15 - This bit is set if the node is a native control with a numeric type.
|
|
1178
|
+
*
|
|
1179
|
+
* This is used to determine whether the control supports the `min` and `max` properties.
|
|
1180
|
+
*/
|
|
1181
|
+
isNativeNumericControl = 16384,
|
|
1182
|
+
/**
|
|
1183
|
+
* Bit #16 - This bit is set if the node is a native text control.
|
|
1184
|
+
*
|
|
1185
|
+
* This is used to determine whether control supports the `minLength` and `maxLength` properties.
|
|
1186
|
+
*/
|
|
1187
|
+
isNativeTextControl = 32768
|
|
1103
1188
|
}
|
|
1104
1189
|
/**
|
|
1105
1190
|
* Corresponds to the TNode.providerIndexes property.
|
|
@@ -1963,12 +2048,6 @@ declare function ɵɵdefineInjectable<T>(opts: {
|
|
|
1963
2048
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;
|
|
1964
2049
|
factory: () => T;
|
|
1965
2050
|
}): unknown;
|
|
1966
|
-
/**
|
|
1967
|
-
* @deprecated in v8, delete after v10. This API should be used only by generated code, and that
|
|
1968
|
-
* code should now use ɵɵdefineInjectable instead.
|
|
1969
|
-
* @publicApi
|
|
1970
|
-
*/
|
|
1971
|
-
declare const defineInjectable: typeof ɵɵdefineInjectable;
|
|
1972
2051
|
/**
|
|
1973
2052
|
* Construct an `InjectorDef` which configures an injector.
|
|
1974
2053
|
*
|
|
@@ -2807,12 +2886,18 @@ declare const enum DeferBlockTrigger {
|
|
|
2807
2886
|
When = 6,
|
|
2808
2887
|
Never = 7
|
|
2809
2888
|
}
|
|
2810
|
-
/**
|
|
2889
|
+
/** Describes specified delay (in ms) in the `hydrate on timer()` trigger. */
|
|
2811
2890
|
interface HydrateTimerTriggerDetails {
|
|
2812
|
-
|
|
2891
|
+
type: DeferBlockTrigger.Timer;
|
|
2892
|
+
delay?: number;
|
|
2893
|
+
}
|
|
2894
|
+
/** Describes the config for a `hydrate on viewport` trigger. */
|
|
2895
|
+
interface HydrateViewportTriggerDetails {
|
|
2896
|
+
type: DeferBlockTrigger.Viewport;
|
|
2897
|
+
intersectionObserverOptions?: IntersectionObserverInit;
|
|
2813
2898
|
}
|
|
2814
2899
|
/** * Describes all possible hydration trigger details specified in a template. */
|
|
2815
|
-
type HydrateTriggerDetails = HydrateTimerTriggerDetails;
|
|
2900
|
+
type HydrateTriggerDetails = HydrateTimerTriggerDetails | HydrateViewportTriggerDetails;
|
|
2816
2901
|
/**
|
|
2817
2902
|
* Internal structure used for configuration of defer block behavior.
|
|
2818
2903
|
* */
|
|
@@ -2917,6 +3002,12 @@ interface TracingService<T extends TracingSnapshot> {
|
|
|
2917
3002
|
* snapshot.
|
|
2918
3003
|
*/
|
|
2919
3004
|
snapshot(linkedSnapshot: T | null): T;
|
|
3005
|
+
/**
|
|
3006
|
+
* Propagate the current tracing context to the provided function.
|
|
3007
|
+
* @param fn A function.
|
|
3008
|
+
* @return A function that will propagate the current tracing context.
|
|
3009
|
+
*/
|
|
3010
|
+
propagate?<T extends Function>(fn: T): T;
|
|
2920
3011
|
/**
|
|
2921
3012
|
* Wrap an event listener bound by the framework for tracing.
|
|
2922
3013
|
* @param element Element on which the event is bound.
|
|
@@ -3108,16 +3199,11 @@ type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void;
|
|
|
3108
3199
|
* @publicApi 20.0
|
|
3109
3200
|
*/
|
|
3110
3201
|
declare function effect(effectFn: (onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions): EffectRef;
|
|
3111
|
-
interface EffectNode extends
|
|
3112
|
-
hasRun: boolean;
|
|
3202
|
+
interface EffectNode extends BaseEffectNode, SchedulableEffect {
|
|
3113
3203
|
cleanupFns: EffectCleanupFn[] | undefined;
|
|
3114
3204
|
injector: Injector;
|
|
3115
3205
|
notifier: ChangeDetectionScheduler;
|
|
3116
3206
|
onDestroyFn: () => void;
|
|
3117
|
-
fn: (cleanupFn: EffectCleanupRegisterFn) => void;
|
|
3118
|
-
run(): void;
|
|
3119
|
-
destroy(): void;
|
|
3120
|
-
maybeCleanup(): void;
|
|
3121
3207
|
}
|
|
3122
3208
|
interface ViewEffectNode extends EffectNode {
|
|
3123
3209
|
view: LView;
|
|
@@ -3607,9 +3693,10 @@ declare abstract class Renderer2 {
|
|
|
3607
3693
|
* @param parent The parent node.
|
|
3608
3694
|
* @param oldChild The child node to remove.
|
|
3609
3695
|
* @param isHostElement Optionally signal to the renderer whether this element is a host element
|
|
3610
|
-
*
|
|
3696
|
+
* @param requireSynchronousElementRemoval Optionally signal to the renderer whether this element
|
|
3697
|
+
* needs synchronous removal
|
|
3611
3698
|
*/
|
|
3612
|
-
abstract removeChild(parent: any, oldChild: any, isHostElement?: boolean): void;
|
|
3699
|
+
abstract removeChild(parent: any, oldChild: any, isHostElement?: boolean, requireSynchronousElementRemoval?: boolean): void;
|
|
3613
3700
|
/**
|
|
3614
3701
|
* Implement this callback to prepare an element to be bootstrapped
|
|
3615
3702
|
* as a root element, and return the element instance.
|
|
@@ -3754,7 +3841,7 @@ interface Renderer {
|
|
|
3754
3841
|
destroyNode?: ((node: RNode) => void) | null;
|
|
3755
3842
|
appendChild(parent: RElement, newChild: RNode): void;
|
|
3756
3843
|
insertBefore(parent: RNode, newChild: RNode, refChild: RNode | null, isMove?: boolean): void;
|
|
3757
|
-
removeChild(parent: RElement | null, oldChild: RNode, isHostElement?: boolean): void;
|
|
3844
|
+
removeChild(parent: RElement | null, oldChild: RNode, isHostElement?: boolean, requireSynchronousElementRemoval?: boolean): void;
|
|
3758
3845
|
selectRootElement(selectorOrNode: string | any, preserveContent?: boolean): RElement;
|
|
3759
3846
|
parentNode(node: RNode): RElement | null;
|
|
3760
3847
|
nextSibling(node: RNode): RNode | null;
|
|
@@ -3800,6 +3887,7 @@ declare const EFFECTS_TO_SCHEDULE = 22;
|
|
|
3800
3887
|
declare const EFFECTS = 23;
|
|
3801
3888
|
declare const REACTIVE_TEMPLATE_CONSUMER = 24;
|
|
3802
3889
|
declare const AFTER_RENDER_SEQUENCES_TO_ADD = 25;
|
|
3890
|
+
declare const ANIMATIONS = 26;
|
|
3803
3891
|
interface OpaqueViewState {
|
|
3804
3892
|
'__brand__': 'Brand for OpaqueViewState that nothing will match';
|
|
3805
3893
|
}
|
|
@@ -4058,6 +4146,7 @@ interface LView<T = unknown> extends Array<any> {
|
|
|
4058
4146
|
*/
|
|
4059
4147
|
[REACTIVE_TEMPLATE_CONSUMER]: ReactiveLViewConsumer | null;
|
|
4060
4148
|
[AFTER_RENDER_SEQUENCES_TO_ADD]: AfterRenderSequence[] | null;
|
|
4149
|
+
[ANIMATIONS]: AnimationLViewData | null;
|
|
4061
4150
|
}
|
|
4062
4151
|
/**
|
|
4063
4152
|
* Contextual data that is shared across multiple instances of `LView` in the same application.
|
|
@@ -4618,34 +4707,25 @@ interface DirectiveDecorator {
|
|
|
4618
4707
|
*
|
|
4619
4708
|
* ### Declaring directives
|
|
4620
4709
|
*
|
|
4621
|
-
*
|
|
4622
|
-
*
|
|
4623
|
-
* - either mark the directive as [standalone](guide/components/importing),
|
|
4624
|
-
* - or declare it in an NgModule by adding it to the `declarations` and `exports` fields.
|
|
4625
|
-
*
|
|
4626
|
-
* ** Marking a directive as standalone **
|
|
4627
|
-
*
|
|
4628
|
-
* You can add the `standalone: true` flag to the Directive decorator metadata to declare it as
|
|
4629
|
-
* [standalone](guide/components/importing):
|
|
4710
|
+
* By default, directives are marked as [standalone](guide/components/importing), which makes
|
|
4711
|
+
* them available to other components in your application.
|
|
4630
4712
|
*
|
|
4631
4713
|
* ```ts
|
|
4632
4714
|
* @Directive({
|
|
4633
|
-
* standalone: true,
|
|
4634
4715
|
* selector: 'my-directive',
|
|
4635
4716
|
* })
|
|
4636
|
-
* class MyDirective {}
|
|
4637
4717
|
* ```
|
|
4638
4718
|
*
|
|
4639
|
-
*
|
|
4640
|
-
* declared in an NgModule.
|
|
4641
|
-
*
|
|
4719
|
+
* Please make sure that directives marked as standalone are not already declared in an NgModule.
|
|
4642
4720
|
*
|
|
4643
4721
|
* ** Declaring a directive in an NgModule **
|
|
4644
|
-
*
|
|
4645
|
-
*
|
|
4722
|
+
* If you want to declare a directive in an ngModule, add the `standalone: false` flag to the
|
|
4723
|
+
* Directive decorator metadata and add the directive to the `declarations` and `exports`
|
|
4724
|
+
* fields of your ngModule.
|
|
4646
4725
|
*
|
|
4647
4726
|
* ```ts
|
|
4648
4727
|
* @Directive({
|
|
4728
|
+
* standalone: false,
|
|
4649
4729
|
* selector: 'my-directive',
|
|
4650
4730
|
* })
|
|
4651
4731
|
* class MyDirective {}
|
|
@@ -5096,15 +5176,6 @@ interface Component extends Directive {
|
|
|
5096
5176
|
*
|
|
5097
5177
|
*/
|
|
5098
5178
|
viewProviders?: Provider[];
|
|
5099
|
-
/**
|
|
5100
|
-
* The module ID of the module that contains the component.
|
|
5101
|
-
* The component must be able to resolve relative URLs for templates and styles.
|
|
5102
|
-
* SystemJS exposes the `__moduleName` variable within each module.
|
|
5103
|
-
* In CommonJS, this can be set to `module.id`.
|
|
5104
|
-
*
|
|
5105
|
-
* @deprecated This option does not have any effect. Will be removed in Angular v17.
|
|
5106
|
-
*/
|
|
5107
|
-
moduleId?: string;
|
|
5108
5179
|
/**
|
|
5109
5180
|
* The relative path or absolute URL of a template file for an Angular component.
|
|
5110
5181
|
* If provided, do not supply an inline template using `template`.
|
|
@@ -5155,12 +5226,6 @@ interface Component extends Directive {
|
|
|
5155
5226
|
* the policy is automatically switched to `ViewEncapsulation.None`.
|
|
5156
5227
|
*/
|
|
5157
5228
|
encapsulation?: ViewEncapsulation;
|
|
5158
|
-
/**
|
|
5159
|
-
* Overrides the default interpolation start and end delimiters (`{{` and `}}`).
|
|
5160
|
-
*
|
|
5161
|
-
* @deprecated use Angular's default interpolation delimiters instead.
|
|
5162
|
-
*/
|
|
5163
|
-
interpolation?: [string, string];
|
|
5164
5229
|
/**
|
|
5165
5230
|
* True to preserve or false to remove potentially superfluous whitespace characters
|
|
5166
5231
|
* from the compiled template. Whitespace characters are those matching the `\s`
|
|
@@ -5416,6 +5481,9 @@ interface HostBindingDecorator {
|
|
|
5416
5481
|
*
|
|
5417
5482
|
* @usageNotes
|
|
5418
5483
|
*
|
|
5484
|
+
* NOTE: **Always** prefer using the `host` property over `@HostBinding`.
|
|
5485
|
+
* This decorator exist exclusively for backwards compatibility.
|
|
5486
|
+
*
|
|
5419
5487
|
* The following example creates a directive that sets the `valid` and `invalid`
|
|
5420
5488
|
* class, a style color, and an id on the DOM element that has an `ngModel` directive on it.
|
|
5421
5489
|
*
|
|
@@ -5669,14 +5737,6 @@ declare abstract class ChangeDetectorRef {
|
|
|
5669
5737
|
/** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
|
|
5670
5738
|
declare function injectChangeDetectorRef(flags: InternalInjectFlags): ChangeDetectorRef;
|
|
5671
5739
|
|
|
5672
|
-
/*!
|
|
5673
|
-
* @license
|
|
5674
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5675
|
-
*
|
|
5676
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
5677
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
5678
|
-
*/
|
|
5679
|
-
|
|
5680
5740
|
/** Symbol used to store and retrieve metadata about a binding. */
|
|
5681
5741
|
declare const BINDING: unique symbol;
|
|
5682
5742
|
/**
|
|
@@ -6408,17 +6468,6 @@ type CtorDependency = {
|
|
|
6408
6468
|
*/
|
|
6409
6469
|
declare const APP_BOOTSTRAP_LISTENER: InjectionToken<readonly ((compRef: ComponentRef<any>) => void)[]>;
|
|
6410
6470
|
declare function isBoundToModule<C>(cf: ComponentFactory<C>): boolean;
|
|
6411
|
-
/**
|
|
6412
|
-
* A token for third-party components that can register themselves with NgProbe.
|
|
6413
|
-
*
|
|
6414
|
-
* @deprecated
|
|
6415
|
-
* @publicApi
|
|
6416
|
-
*/
|
|
6417
|
-
declare class NgProbeToken {
|
|
6418
|
-
name: string;
|
|
6419
|
-
token: any;
|
|
6420
|
-
constructor(name: string, token: any);
|
|
6421
|
-
}
|
|
6422
6471
|
/**
|
|
6423
6472
|
* Provides additional options to the bootstrapping process.
|
|
6424
6473
|
*
|
|
@@ -6480,24 +6529,6 @@ interface BootstrapOptions {
|
|
|
6480
6529
|
* @deprecated BootstrapOptions is deprecated. Use `provideZoneChangeDetection` instead to configure coalescing.
|
|
6481
6530
|
*/
|
|
6482
6531
|
ngZoneRunCoalescing?: boolean;
|
|
6483
|
-
/**
|
|
6484
|
-
* When false, change detection is scheduled when Angular receives
|
|
6485
|
-
* a clear indication that templates need to be refreshed. This includes:
|
|
6486
|
-
*
|
|
6487
|
-
* - calling `ChangeDetectorRef.markForCheck`
|
|
6488
|
-
* - calling `ComponentRef.setInput`
|
|
6489
|
-
* - updating a signal that is read in a template
|
|
6490
|
-
* - attaching a view that is marked dirty
|
|
6491
|
-
* - removing a view
|
|
6492
|
-
* - registering a render hook (templates are only refreshed if render hooks do one of the above)
|
|
6493
|
-
*
|
|
6494
|
-
* @deprecated This option was introduced out of caution as a way for developers to opt out of the
|
|
6495
|
-
* new behavior in v18 which schedule change detection for the above events when they occur
|
|
6496
|
-
* outside the Zone. After monitoring the results post-release, we have determined that this
|
|
6497
|
-
* feature is working as desired and do not believe it should ever be disabled by setting
|
|
6498
|
-
* this option to `true`.
|
|
6499
|
-
*/
|
|
6500
|
-
ignoreChangesOutsideZone?: boolean;
|
|
6501
6532
|
}
|
|
6502
6533
|
/**
|
|
6503
6534
|
* A reference to an Angular application running on a page.
|
|
@@ -6799,7 +6830,7 @@ interface NgModule {
|
|
|
6799
6830
|
* The set of injectable objects that are available in the injector
|
|
6800
6831
|
* of this module.
|
|
6801
6832
|
*
|
|
6802
|
-
* @see [Dependency Injection guide](guide/di/dependency-injection
|
|
6833
|
+
* @see [Dependency Injection guide](guide/di/dependency-injection)
|
|
6803
6834
|
* @see [NgModule guide](guide/ngmodules/providers)
|
|
6804
6835
|
*
|
|
6805
6836
|
* @usageNotes
|
|
@@ -7070,7 +7101,9 @@ declare class PlatformRef {
|
|
|
7070
7101
|
* @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function
|
|
7071
7102
|
* argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.
|
|
7072
7103
|
*/
|
|
7073
|
-
bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>, options?: BootstrapOptions
|
|
7104
|
+
bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>, options?: BootstrapOptions & {
|
|
7105
|
+
applicationProviders?: Array<Provider | EnvironmentProviders>;
|
|
7106
|
+
}): Promise<NgModuleRef<M>>;
|
|
7074
7107
|
/**
|
|
7075
7108
|
* Creates an instance of an `@NgModule` for a given platform.
|
|
7076
7109
|
*
|
|
@@ -7087,7 +7120,11 @@ declare class PlatformRef {
|
|
|
7087
7120
|
* ```
|
|
7088
7121
|
*
|
|
7089
7122
|
*/
|
|
7090
|
-
bootstrapModule<M>(moduleType: Type<M>, compilerOptions?: (CompilerOptions & BootstrapOptions
|
|
7123
|
+
bootstrapModule<M>(moduleType: Type<M>, compilerOptions?: (CompilerOptions & BootstrapOptions & {
|
|
7124
|
+
applicationProviders?: Array<Provider | EnvironmentProviders>;
|
|
7125
|
+
}) | Array<CompilerOptions & BootstrapOptions & {
|
|
7126
|
+
applicationProviders?: Array<Provider | EnvironmentProviders>;
|
|
7127
|
+
}>): Promise<NgModuleRef<M>>;
|
|
7091
7128
|
/**
|
|
7092
7129
|
* Registers a listener to be called when the platform is destroyed.
|
|
7093
7130
|
*/
|
|
@@ -7404,5 +7441,5 @@ interface DeferBlockDetails extends DehydratedDeferBlock {
|
|
|
7404
7441
|
*/
|
|
7405
7442
|
declare function getDeferBlocks(lView: LView, deferBlocks: DeferBlockDetails[]): void;
|
|
7406
7443
|
|
|
7407
|
-
export { APP_BOOTSTRAP_LISTENER, AfterRenderManager, AnimationRendererType, ApplicationRef, AttributeMarker, COMPILER_OPTIONS, CONTAINER_HEADER_OFFSET, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionScheduler, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, DebugElement, DebugEventListener, DebugNode, DeferBlockBehavior, DeferBlockState, Directive, EffectScheduler, ElementRef, EmbeddedViewRef, EnvironmentInjector, EventEmitter, HostBinding, HostListener, INJECTOR_SCOPE, Input, InputFlags, ModuleWithComponentFactories, NG_INJ_DEF, NG_PROV_DEF, NO_ERRORS_SCHEMA, NavigateEvent, Navigation, NavigationCurrentEntryChangeEvent, NavigationDestination, NavigationHistoryEntry, NavigationTransition, NgModule, NgModuleFactory, NgModuleRef,
|
|
7408
|
-
export type { AfterRenderRef, Binding, BootstrapOptions, ClassDebugInfo, CompilerOptions, ComponentDecorator, ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, ContentQueriesFunction, CreateEffectOptions, CssSelectorList, DeferBlockConfig, DeferBlockDependencyInterceptor, DeferBlockDetails, DehydratedDeferBlock, DependencyResolverFn, DependencyTypeList, DirectiveDecorator, DirectiveDef, DirectiveDefFeature, DirectiveType, DirectiveWithBindings, EffectCleanupFn, EffectCleanupRegisterFn, EffectRef, GlobalTargetResolver, HostBindingDecorator, HostBindingsFunction, HostDirectiveConfig, HostListenerDecorator, InjectableType, InjectorType, InputDecorator, InputSignalNode, InputTransformFunction, InternalNgModuleRef, LContainer, LView, ListenerOptions, LocalRefExtractor, NavigationInterceptOptions, NavigationNavigateOptions, NavigationOptions, NavigationReloadOptions, NavigationResult, NavigationTypeString, NavigationUpdateCurrentEntryOptions, NgModuleDecorator, NgModuleScopeInfoFromDecorator, OpaqueViewState, OutputDecorator, PipeDecorator, PipeDef, PipeType, Predicate, ProjectionSlots, RElement, RNode, RawScopeInfoFromDecorator, RendererType2, SanitizerFn, SchemaMetadata, TAttributes, TConstantsOrFactory, TDeferBlockDetails, TNode, TView, TracingSnapshot, TrustedHTML, TrustedScript, TrustedScriptURL, TypeDecorator, TypeOrFactory, ViewQueriesFunction, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵFactoryDeclaration, ɵɵInjectableDeclaration, ɵɵInjectorDeclaration, ɵɵInjectorDef, ɵɵNgModuleDeclaration, ɵɵPipeDeclaration };
|
|
7444
|
+
export { ANIMATIONS_DISABLED, APP_BOOTSTRAP_LISTENER, AfterRenderManager, AnimationRendererType, ApplicationRef, AttributeMarker, COMPILER_OPTIONS, CONTAINER_HEADER_OFFSET, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionScheduler, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, DebugElement, DebugEventListener, DebugNode, DeferBlockBehavior, DeferBlockState, Directive, EffectScheduler, ElementRef, EmbeddedViewRef, EnvironmentInjector, EventEmitter, HostBinding, HostListener, INJECTOR_SCOPE, Input, InputFlags, MAX_ANIMATION_TIMEOUT, ModuleWithComponentFactories, NG_INJ_DEF, NG_PROV_DEF, NO_ERRORS_SCHEMA, NavigateEvent, Navigation, NavigationCurrentEntryChangeEvent, NavigationDestination, NavigationHistoryEntry, NavigationTransition, NgModule, NgModuleFactory, NgModuleRef, NgZone, NoopNgZone, NotificationSource, Output, PROVIDED_ZONELESS, Pipe, PlatformRef, QueryFlags, QueryList, R3Injector, RenderFlags, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, TDeferDetailsFlags, TracingAction, TracingService, ViewEncapsulation, ViewRef, ZONELESS_ENABLED, asNativeElements, effect, getDebugNode, getDeferBlocks, getInjectableDef, injectChangeDetectorRef, inputBinding, isBoundToModule, isInjectable, outputBinding, twoWayBinding, ɵɵdefineInjectable, ɵɵdefineInjector };
|
|
7445
|
+
export type { AfterRenderRef, AnimationCallbackEvent, AnimationFunction, Binding, BootstrapOptions, ClassDebugInfo, CompilerOptions, ComponentDecorator, ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, ContentQueriesFunction, CreateEffectOptions, CssSelectorList, DeferBlockConfig, DeferBlockDependencyInterceptor, DeferBlockDetails, DehydratedDeferBlock, DependencyResolverFn, DependencyTypeList, DirectiveDecorator, DirectiveDef, DirectiveDefFeature, DirectiveType, DirectiveWithBindings, EffectCleanupFn, EffectCleanupRegisterFn, EffectRef, GlobalTargetResolver, HostBindingDecorator, HostBindingsFunction, HostDirectiveConfig, HostListenerDecorator, InjectableType, InjectorType, InputDecorator, InputSignalNode, InputTransformFunction, InternalNgModuleRef, LContainer, LView, ListenerOptions, LocalRefExtractor, NavigationInterceptOptions, NavigationNavigateOptions, NavigationOptions, NavigationReloadOptions, NavigationResult, NavigationTypeString, NavigationUpdateCurrentEntryOptions, NgModuleDecorator, NgModuleScopeInfoFromDecorator, OpaqueViewState, OutputDecorator, PipeDecorator, PipeDef, PipeType, Predicate, ProjectionSlots, RElement, RNode, RawScopeInfoFromDecorator, RendererType2, SanitizerFn, SchemaMetadata, TAttributes, TConstantsOrFactory, TDeferBlockDetails, TNode, TView, TracingSnapshot, TrustedHTML, TrustedScript, TrustedScriptURL, TypeDecorator, TypeOrFactory, ViewQueriesFunction, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵFactoryDeclaration, ɵɵInjectableDeclaration, ɵɵInjectorDeclaration, ɵɵInjectorDef, ɵɵNgModuleDeclaration, ɵɵPipeDeclaration };
|