@angular/core 21.0.0-next.8 → 21.0.0-next.9
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 +1 -1
- package/fesm2022/_debug_node-chunk.mjs +481 -438
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +512 -48
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/{_root_effect_scheduler-chunk.mjs → _effect-chunk2.mjs} +197 -19
- package/fesm2022/_effect-chunk2.mjs.map +1 -0
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +5 -173
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +117 -0
- package/fesm2022/_untracked-chunk.mjs.map +1 -0
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +8 -7
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -1
- package/fesm2022/primitives-signals.mjs +4 -4
- package/fesm2022/primitives-signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +5 -5
- package/fesm2022/testing.mjs +3 -3
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
- package/schematics/bundles/application-config-core.cjs +5 -5
- package/schematics/bundles/{apply_import_manager-CBLmogDD.cjs → apply_import_manager-CoeTX_Ob.cjs} +3 -3
- package/schematics/bundles/bootstrap-options-migration.cjs +5 -5
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/common-to-standalone-migration.cjs +385 -0
- package/schematics/bundles/{compiler_host-T6xncpiw.cjs → compiler_host-emLDwK2U.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +4 -4
- package/schematics/bundles/imports-DwPXlGFl.cjs +1 -1
- package/schematics/bundles/{index-DWSaRJdz.cjs → index-CLxYZ09c.cjs} +4 -4
- package/schematics/bundles/{index-BnmACOsq.cjs → index-Dvqnp6JS.cjs} +166 -66
- package/schematics/bundles/inject-migration.cjs +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Cu-FR4L5.cjs → migrate_ts_type_references-CpM5FPGa.cjs} +5 -5
- package/schematics/bundles/{ng_component_template-BkWiUuGG.cjs → ng_component_template-BRbBIAUX.cjs} +2 -2
- package/schematics/bundles/ng_decorators-BI0uV7KI.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +7 -7
- package/schematics/bundles/ngstyle-to-style-migration.cjs +7 -7
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{parse_html-C97tKKp3.cjs → parse_html-CPWfkfhR.cjs} +2 -2
- package/schematics/bundles/{project_paths-C6g3lqjX.cjs → project_paths-C8H7KDJ3.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-CdhVNYMk.cjs → project_tsconfig_paths-CiBzGSIa.cjs} +12 -4
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/router-current-navigation.cjs +4 -4
- package/schematics/bundles/router-last-successful-navigation.cjs +4 -4
- package/schematics/bundles/router-testing-module-migration.cjs +5 -5
- package/schematics/bundles/self-closing-tags-migration.cjs +6 -6
- package/schematics/bundles/signal-input-migration.cjs +7 -7
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-BObKoqes.cjs +1 -1
- package/schematics/collection.json +6 -0
- package/schematics/migrations/common-to-standalone-migration/schema.json +14 -0
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +20 -12
- package/types/_discovery-chunk.d.ts +12 -6
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +4 -3
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +49 -20
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +2 -2
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
- package/fesm2022/_root_effect_scheduler-chunk.mjs.map +0 -1
- package/fesm2022/_signal-chunk.mjs +0 -581
- package/fesm2022/_signal-chunk.mjs.map +0 -1
package/types/core.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.9
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { SIGNAL } from './_formatter-chunk.js';
|
|
7
|
+
import { SIGNAL, ReactiveNodeKind } from './_formatter-chunk.js';
|
|
8
8
|
import { Signal, WritableSignal, OutputRef, Provider, EnvironmentProviders, Type as Type$1, ModuleWithProviders, TypeProvider, ValueProvider, ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, StaticClassProvider, ProviderToken, StaticProvider, Injector, ValueSansProvider, ExistingSansProvider, StaticClassSansProvider, ConstructorSansProvider, FactorySansProvider, ClassSansProvider, InjectionToken, InternalInjectFlags, InjectOptions, ValueEqualityFn, EventCallback, isSignal, enableProfiling as enableProfiling$1 } from './_chrome_dev_tools_performance-chunk.js';
|
|
9
9
|
export { AbstractType, CreateSignalOptions, DestroyRef, DestroyableInjector, OutputRefSubscription, signal, InternalEnvironmentProviders as ɵInternalEnvironmentProviders, JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, Writable as ɵWritable, isEnvironmentProviders as ɵisEnvironmentProviders, ɵunwrapWritableSignal } from './_chrome_dev_tools_performance-chunk.js';
|
|
10
10
|
import { InputSignalNode, TypeDecorator, AfterRenderRef, EffectCleanupRegisterFn, SchemaMetadata, ComponentDef, DirectiveDef, CssSelectorList, DirectiveDefFeature, HostBindingsFunction, TAttributes, ContentQueriesFunction, ViewQueriesFunction, ComponentTemplate, TConstantsOrFactory, ComponentDefFeature, ViewEncapsulation as ViewEncapsulation$1, ChangeDetectionStrategy as ChangeDetectionStrategy$1, TypeOrFactory, DependencyTypeList, InputFlags, InputTransformFunction, EmbeddedViewRef, LView, ApplicationRef, ChangeDetectorRef, ComponentFactory as ComponentFactory$1, NgModuleRef as NgModuleRef$1, EnvironmentInjector, DirectiveWithBindings, Binding, ComponentRef as ComponentRef$1, ElementRef, ComponentFactoryResolver as ComponentFactoryResolver$1, InternalNgModuleRef, NgModuleFactory as NgModuleFactory$1, ViewRef as ViewRef$1, PlatformRef, NgZone, ɵɵFactoryDeclaration as __FactoryDeclaration, ɵɵInjectableDeclaration as __InjectableDeclaration, ɵɵNgModuleDeclaration as __NgModuleDeclaration, ɵɵInjectorDeclaration as __InjectorDeclaration, DeferBlockDependencyInterceptor, DeferBlockConfig, DeferBlockState, TNode, LContainer, TView, TDeferBlockDetails, RNode, Component, TrustedHTML, DehydratedDeferBlock, CompilerOptions, HostDirectiveConfig, ComponentType, NgModuleScopeInfoFromDecorator, DependencyResolverFn, TDeferDetailsFlags, SanitizerFn, AnimationFunction, LocalRefExtractor, OpaqueViewState, GlobalTargetResolver, ProjectionSlots, QueryFlags, QueryList, RElement, RawScopeInfoFromDecorator, ClassDebugInfo, Directive, NgModule, Pipe, TrustedScriptURL, TrustedScript, PipeType, DirectiveType } from './_discovery-chunk.js';
|
|
@@ -612,11 +612,11 @@ declare const Attribute: AttributeDecorator;
|
|
|
612
612
|
*
|
|
613
613
|
* @publicApi
|
|
614
614
|
*/
|
|
615
|
-
declare class SimpleChange {
|
|
616
|
-
previousValue:
|
|
617
|
-
currentValue:
|
|
615
|
+
declare class SimpleChange<T = any> {
|
|
616
|
+
previousValue: T;
|
|
617
|
+
currentValue: T;
|
|
618
618
|
firstChange: boolean;
|
|
619
|
-
constructor(previousValue:
|
|
619
|
+
constructor(previousValue: T, currentValue: T, firstChange: boolean);
|
|
620
620
|
/**
|
|
621
621
|
* Check whether the new value is the first value assigned.
|
|
622
622
|
*/
|
|
@@ -625,15 +625,20 @@ declare class SimpleChange {
|
|
|
625
625
|
/**
|
|
626
626
|
* A hashtable of changes represented by {@link SimpleChange} objects stored
|
|
627
627
|
* at the declared property name they belong to on a Directive or Component. This is
|
|
628
|
-
* the type passed to the `ngOnChanges` hook.
|
|
628
|
+
* the type passed to the `ngOnChanges` hook. Pass the current class or `this` as the
|
|
629
|
+
* first generic argument for stronger type checking (e.g. `SimpleChanges<YourComponent>`).
|
|
629
630
|
*
|
|
630
631
|
* @see {@link OnChanges}
|
|
631
632
|
*
|
|
632
633
|
* @publicApi
|
|
633
634
|
*/
|
|
634
|
-
|
|
635
|
+
type SimpleChanges<T = unknown> = T extends object ? {
|
|
636
|
+
[Key in keyof T]?: SimpleChange<T[Key] extends {
|
|
637
|
+
[ɵINPUT_SIGNAL_BRAND_READ_TYPE]: infer V;
|
|
638
|
+
} ? V : T[Key]>;
|
|
639
|
+
} : {
|
|
635
640
|
[propName: string]: SimpleChange;
|
|
636
|
-
}
|
|
641
|
+
};
|
|
637
642
|
|
|
638
643
|
/**
|
|
639
644
|
* @description
|
|
@@ -1432,7 +1437,7 @@ interface InjectDecorator {
|
|
|
1432
1437
|
*
|
|
1433
1438
|
* {@example core/di/ts/metadata_spec.ts region='InjectWithoutDecorator'}
|
|
1434
1439
|
*
|
|
1435
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
1440
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
1436
1441
|
*
|
|
1437
1442
|
*/
|
|
1438
1443
|
(token: any): any;
|
|
@@ -1476,7 +1481,7 @@ interface OptionalDecorator {
|
|
|
1476
1481
|
*
|
|
1477
1482
|
* {@example core/di/ts/metadata_spec.ts region='Optional'}
|
|
1478
1483
|
*
|
|
1479
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
1484
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
1480
1485
|
*/
|
|
1481
1486
|
(): any;
|
|
1482
1487
|
new (): Optional;
|
|
@@ -1729,7 +1734,7 @@ interface InjectableDecorator {
|
|
|
1729
1734
|
* provided and injected as a dependency.
|
|
1730
1735
|
*
|
|
1731
1736
|
* @see [Introduction to Services and DI](guide/di)
|
|
1732
|
-
* @see [Dependency Injection Guide](guide/di/dependency-injection
|
|
1737
|
+
* @see [Dependency Injection Guide](guide/di/dependency-injection)
|
|
1733
1738
|
*
|
|
1734
1739
|
* @usageNotes
|
|
1735
1740
|
*
|
|
@@ -8218,7 +8223,27 @@ interface ɵControl<T> {
|
|
|
8218
8223
|
* the component will forward the bound field to another field directive in its own template,
|
|
8219
8224
|
* and do nothing.
|
|
8220
8225
|
*/
|
|
8221
|
-
|
|
8226
|
+
ɵregister(): void;
|
|
8227
|
+
/**
|
|
8228
|
+
* Indicates whether this field is bound to an interoperable control.
|
|
8229
|
+
*
|
|
8230
|
+
* This is used for interoperability between signal forms and reactive forms.
|
|
8231
|
+
*/
|
|
8232
|
+
readonly ɵhasInteropControl: boolean;
|
|
8233
|
+
/**
|
|
8234
|
+
* Adds event listeners to the associated interoperable control.
|
|
8235
|
+
*
|
|
8236
|
+
* This method should only be called from a template function in create mode if this
|
|
8237
|
+
* {@link ɵhasInteropControl}.
|
|
8238
|
+
*/
|
|
8239
|
+
ɵinteropControlCreate(): void;
|
|
8240
|
+
/**
|
|
8241
|
+
* Updates the associated interoperable control.
|
|
8242
|
+
*
|
|
8243
|
+
* This method should only be called from a template function in update mode if this
|
|
8244
|
+
* {@link ɵhasInteropControl}.
|
|
8245
|
+
*/
|
|
8246
|
+
ɵinteropControlUpdate(): void;
|
|
8222
8247
|
}
|
|
8223
8248
|
/**
|
|
8224
8249
|
* The state of a form field to be synchronized with its bound control.
|
|
@@ -8228,6 +8253,10 @@ interface ɵFieldState<T> {
|
|
|
8228
8253
|
* A signal containing the current errors for the field.
|
|
8229
8254
|
*/
|
|
8230
8255
|
readonly errors: Signal<unknown>;
|
|
8256
|
+
/**
|
|
8257
|
+
* A signal indicating whether the field is valid.
|
|
8258
|
+
*/
|
|
8259
|
+
readonly invalid: Signal<boolean>;
|
|
8231
8260
|
/**
|
|
8232
8261
|
* A signal indicating whether the field is currently disabled.
|
|
8233
8262
|
*/
|
|
@@ -8241,25 +8270,25 @@ interface ɵFieldState<T> {
|
|
|
8241
8270
|
*
|
|
8242
8271
|
* Applies to `<input>` with a numeric or date `type` attribute and custom controls.
|
|
8243
8272
|
*/
|
|
8244
|
-
readonly max
|
|
8273
|
+
readonly max?: Signal<number | undefined>;
|
|
8245
8274
|
/**
|
|
8246
8275
|
* A signal indicating the field's maximum string length, if applicable.
|
|
8247
8276
|
*
|
|
8248
8277
|
* Applies to `<input>`, `<textarea>`, and custom controls.
|
|
8249
8278
|
*/
|
|
8250
|
-
readonly maxLength
|
|
8279
|
+
readonly maxLength?: Signal<number | undefined>;
|
|
8251
8280
|
/**
|
|
8252
8281
|
* A signal indicating the field's minimum value, if applicable.
|
|
8253
8282
|
*
|
|
8254
8283
|
* Applies to `<input>` with a numeric or date `type` attribute and custom controls.
|
|
8255
8284
|
*/
|
|
8256
|
-
readonly min
|
|
8285
|
+
readonly min?: Signal<number | undefined>;
|
|
8257
8286
|
/**
|
|
8258
8287
|
* A signal indicating the field's minimum string length, if applicable.
|
|
8259
8288
|
*
|
|
8260
8289
|
* Applies to `<input>`, `<textarea>`, and custom controls.
|
|
8261
8290
|
*/
|
|
8262
|
-
readonly minLength
|
|
8291
|
+
readonly minLength?: Signal<number | undefined>;
|
|
8263
8292
|
/**
|
|
8264
8293
|
* A signal of a unique name for the field, by default based on the name of its parent field.
|
|
8265
8294
|
*/
|
|
@@ -8267,7 +8296,7 @@ interface ɵFieldState<T> {
|
|
|
8267
8296
|
/**
|
|
8268
8297
|
* A signal indicating the patterns the field must match.
|
|
8269
8298
|
*/
|
|
8270
|
-
readonly pattern
|
|
8299
|
+
readonly pattern?: Signal<readonly RegExp[]>;
|
|
8271
8300
|
/**
|
|
8272
8301
|
* A signal indicating whether the field is currently readonly.
|
|
8273
8302
|
*/
|
|
@@ -8275,7 +8304,7 @@ interface ɵFieldState<T> {
|
|
|
8275
8304
|
/**
|
|
8276
8305
|
* A signal indicating whether the field is required.
|
|
8277
8306
|
*/
|
|
8278
|
-
readonly required
|
|
8307
|
+
readonly required?: Signal<boolean>;
|
|
8279
8308
|
/**
|
|
8280
8309
|
* A signal indicating whether the field has been touched by the user.
|
|
8281
8310
|
*/
|
|
@@ -8830,7 +8859,7 @@ declare function getInjectorMetadata(injector: Injector): {
|
|
|
8830
8859
|
declare function getInjectorResolutionPath(injector: Injector): Injector[];
|
|
8831
8860
|
|
|
8832
8861
|
interface DebugSignalGraphNode {
|
|
8833
|
-
kind:
|
|
8862
|
+
kind: ReactiveNodeKind;
|
|
8834
8863
|
id: string;
|
|
8835
8864
|
epoch: number;
|
|
8836
8865
|
label?: string;
|
package/types/primitives-di.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.9
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { ReactiveNode, ValueEqualityFn, SIGNAL } from './_formatter-chunk.js';
|
|
8
|
-
export { REACTIVE_NODE, Reactive, ReactiveHookFn, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, defaultEquals, finalizeConsumerAfterComputation, getActiveConsumer, installDevToolsSignalFormatter, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, resetConsumerBeforeComputation, runPostProducerCreatedFn, setActiveConsumer, setPostProducerCreatedFn } from './_formatter-chunk.js';
|
|
8
|
+
export { REACTIVE_NODE, Reactive, ReactiveHookFn, ReactiveNodeKind, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, defaultEquals, finalizeConsumerAfterComputation, getActiveConsumer, installDevToolsSignalFormatter, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, resetConsumerBeforeComputation, runPostProducerCreatedFn, setActiveConsumer, setPostProducerCreatedFn } from './_formatter-chunk.js';
|
|
9
9
|
import { SignalNode } from './_effect-chunk.js';
|
|
10
10
|
export { BASE_EFFECT_NODE, BaseEffectNode, SIGNAL_NODE, SignalGetter, createSignal, runEffect, runPostSignalSetFn, setPostSignalSetFn, signalGetFn, signalSetFn, signalUpdateFn } from './_effect-chunk.js';
|
|
11
11
|
export { setAlternateWeakRefImpl } from './_weak_ref-chunk.js';
|
package/types/rxjs-interop.d.ts
CHANGED
package/types/testing.d.ts
CHANGED