@angular/core 21.2.0-next.1 → 21.2.0-next.2
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/_attribute-chunk.mjs.map +1 -1
- package/fesm2022/_debug_node-chunk.mjs +184 -537
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +2 -11
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk2.mjs +2969 -0
- package/fesm2022/_effect-chunk2.mjs.map +1 -0
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs.map +1 -1
- package/fesm2022/_resource-chunk.mjs +8 -4
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +72 -2946
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs.map +1 -1
- package/fesm2022/core.mjs +6 -10
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-di.mjs.map +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +2 -2
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives-signals.mjs +3 -3
- package/fesm2022/primitives-signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +4 -4
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +2 -2
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-CVmcbVA9.cjs +1 -1
- package/schematics/bundles/index-BtLcQH8g.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-MWoZx-Cb.cjs +1 -1
- package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
- package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/router-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +86 -25
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +2 -2
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +11 -187
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +3 -3
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +0 -87
- package/fesm2022/_linked_signal-chunk.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "21.2.0-next.
|
|
3
|
+
"version": "21.2.0-next.2",
|
|
4
4
|
"description": "Angular - the core framework",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tslib": "^2.3.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@angular/compiler": "21.2.0-next.
|
|
49
|
+
"@angular/compiler": "21.2.0-next.2",
|
|
50
50
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
51
51
|
"zone.js": "~0.15.0 || ~0.16.0"
|
|
52
52
|
},
|
package/types/_api-chunk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.2
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1126,6 +1126,10 @@ declare const enum TNodeType {
|
|
|
1126
1126
|
* The TNode contains information about a `@let` declaration.
|
|
1127
1127
|
*/
|
|
1128
1128
|
LetDeclaration = 128,
|
|
1129
|
+
/**
|
|
1130
|
+
* The TNode contains a control directive's update function.
|
|
1131
|
+
*/
|
|
1132
|
+
ControlDirective = 256,
|
|
1129
1133
|
AnyRNode = 3,// Text | Element
|
|
1130
1134
|
AnyContainer = 12
|
|
1131
1135
|
}
|
|
@@ -1181,26 +1185,7 @@ declare const enum TNodeFlags {
|
|
|
1181
1185
|
*
|
|
1182
1186
|
* This is used to bind to a `ControlValueAccessor` from `@angular/forms`.
|
|
1183
1187
|
*/
|
|
1184
|
-
|
|
1185
|
-
/**
|
|
1186
|
-
* Bit #14 - This bit is set if the node is a native control.
|
|
1187
|
-
*
|
|
1188
|
-
* This is used to determine whether we can bind common control properties to the host element of
|
|
1189
|
-
* a custom control when it doesn't define a corresponding input.
|
|
1190
|
-
*/
|
|
1191
|
-
isNativeControl = 8192,
|
|
1192
|
-
/**
|
|
1193
|
-
* Bit #15 - This bit is set if the node is a native control with a numeric type.
|
|
1194
|
-
*
|
|
1195
|
-
* This is used to determine whether the control supports the `min` and `max` properties.
|
|
1196
|
-
*/
|
|
1197
|
-
isNativeNumericControl = 16384,
|
|
1198
|
-
/**
|
|
1199
|
-
* Bit #16 - This bit is set if the node is a native text control.
|
|
1200
|
-
*
|
|
1201
|
-
* This is used to determine whether control supports the `minLength` and `maxLength` properties.
|
|
1202
|
-
*/
|
|
1203
|
-
isNativeTextControl = 32768
|
|
1188
|
+
isPassThroughControl = 4096
|
|
1204
1189
|
}
|
|
1205
1190
|
/**
|
|
1206
1191
|
* Corresponds to the TNode.providerIndexes property.
|
|
@@ -1351,7 +1336,7 @@ interface TNode {
|
|
|
1351
1336
|
* Index at which the signal forms field directive is stored.
|
|
1352
1337
|
* Value is set to -1 if there are no field directives.
|
|
1353
1338
|
*/
|
|
1354
|
-
|
|
1339
|
+
controlDirectiveIndex: number;
|
|
1355
1340
|
/**
|
|
1356
1341
|
* Index at which the custom control directive is stored.
|
|
1357
1342
|
* Value is set to -1 if there is no custom control directive.
|
|
@@ -2309,6 +2294,74 @@ declare enum InputFlags {
|
|
|
2309
2294
|
HasDecoratorInputTransform = 2
|
|
2310
2295
|
}
|
|
2311
2296
|
|
|
2297
|
+
/**
|
|
2298
|
+
* A control directive definition that captures control-related behavior for a directive.
|
|
2299
|
+
*
|
|
2300
|
+
* This is the type of `DirectiveDef.controlDef`.
|
|
2301
|
+
*
|
|
2302
|
+
* @see ɵɵControlFeature
|
|
2303
|
+
*/
|
|
2304
|
+
interface ControlDirectiveDef {
|
|
2305
|
+
readonly passThroughInput: string | null;
|
|
2306
|
+
readonly create: (instance: unknown, host: ControlDirectiveHost) => void;
|
|
2307
|
+
readonly update: (instance: unknown, host: ControlDirectiveHost) => void;
|
|
2308
|
+
}
|
|
2309
|
+
/**
|
|
2310
|
+
* Interface provided by the runtime to directives that act as form controls, as the argument to
|
|
2311
|
+
* `ɵngControlCreate` and `ɵngControlUpdate` lifecycle hooks.
|
|
2312
|
+
*
|
|
2313
|
+
* @param _TPassthroughInput if given, the name of an input which, if found on other directives,
|
|
2314
|
+
* will cause the control infrastructure to recognize this usage as "pass-through". This sets
|
|
2315
|
+
* the `hasPassThrough` flag. This generic is only read by the compiler on the type declaration
|
|
2316
|
+
* of `ɵngControlCreate`, and has no impact on the type of the host.
|
|
2317
|
+
*/
|
|
2318
|
+
interface ControlDirectiveHost<_TPassthroughInput extends string | undefined = undefined> {
|
|
2319
|
+
/**
|
|
2320
|
+
* A string that describes this control directive, used for error messages.
|
|
2321
|
+
*/
|
|
2322
|
+
readonly descriptor: string;
|
|
2323
|
+
/**
|
|
2324
|
+
* Whether any other directive on the element has an input that matches this directive's
|
|
2325
|
+
* `_TPassThroughInput` declaration.
|
|
2326
|
+
*/
|
|
2327
|
+
readonly hasPassThrough: boolean;
|
|
2328
|
+
/**
|
|
2329
|
+
* A `FormUiControl` instance that this directive is declared on.
|
|
2330
|
+
*/
|
|
2331
|
+
readonly customControl: unknown | undefined;
|
|
2332
|
+
/**
|
|
2333
|
+
* Registers a listener that will be called when the custom control's value changes.
|
|
2334
|
+
*
|
|
2335
|
+
* This abstracts over the fact that different types of custom controls use different model
|
|
2336
|
+
* names (`value` vs `checked`).
|
|
2337
|
+
*/
|
|
2338
|
+
listenToCustomControlModel(listener: (value: unknown) => void): void;
|
|
2339
|
+
/**
|
|
2340
|
+
* Registers a listener that will be called when the custom control emits an output.
|
|
2341
|
+
*/
|
|
2342
|
+
listenToCustomControlOutput(outputName: string, listener: () => void): void;
|
|
2343
|
+
/**
|
|
2344
|
+
* Sets the custom control's value.
|
|
2345
|
+
*
|
|
2346
|
+
* This abstracts over the fact that different types of custom controls use different model
|
|
2347
|
+
* names (`value` vs `checked`).
|
|
2348
|
+
*/
|
|
2349
|
+
setCustomControlModelInput(value: unknown): void;
|
|
2350
|
+
/**
|
|
2351
|
+
* Checks if the custom control has an input with the given name.
|
|
2352
|
+
*/
|
|
2353
|
+
customControlHasInput(inputName: string): boolean;
|
|
2354
|
+
/**
|
|
2355
|
+
* Updates a property binding on all directives on this node, aside from the control directive
|
|
2356
|
+
* itself.
|
|
2357
|
+
*/
|
|
2358
|
+
setInputOnDirectives(inputName: string, value: unknown): boolean;
|
|
2359
|
+
/**
|
|
2360
|
+
* Listens to a DOM event on the host element.
|
|
2361
|
+
*/
|
|
2362
|
+
listenToDom(eventName: string, listener: (event: Event) => void): void;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2312
2365
|
/**
|
|
2313
2366
|
* Definition of what a template rendering function should look like for a component.
|
|
2314
2367
|
*/
|
|
@@ -2510,6 +2563,7 @@ interface DirectiveDef<T> {
|
|
|
2510
2563
|
* distinguish if a function in the array is a `Type` or a `() => HostDirectiveConfig[]`.
|
|
2511
2564
|
*/
|
|
2512
2565
|
hostDirectives: (HostDirectiveDef | (() => HostDirectiveConfig[]))[] | null;
|
|
2566
|
+
controlDef: ControlDirectiveDef | null;
|
|
2513
2567
|
setInput: (<U extends T>(this: DirectiveDef<U>, instance: U, inputSignalNode: null | InputSignalNode<unknown, unknown>, value: any, publicName: string, privateName: string) => void) | null;
|
|
2514
2568
|
}
|
|
2515
2569
|
/**
|
|
@@ -4694,8 +4748,15 @@ declare enum ChangeDetectionStrategy {
|
|
|
4694
4748
|
/**
|
|
4695
4749
|
* Use the default `CheckAlways` strategy, in which change detection is automatic until
|
|
4696
4750
|
* explicitly deactivated.
|
|
4751
|
+
* @deprecated Use `Eager` instead.
|
|
4752
|
+
*/
|
|
4753
|
+
Default = 1,
|
|
4754
|
+
/**
|
|
4755
|
+
* Use the `Eager` strategy, meaning that the component is checked eagerly when the change
|
|
4756
|
+
* detection traversal reaches it, rather than only checking under certain circumstances (e.g.
|
|
4757
|
+
* `markForCheck`, a signal in the template changed, etc).
|
|
4697
4758
|
*/
|
|
4698
|
-
|
|
4759
|
+
Eager = 1
|
|
4699
4760
|
}
|
|
4700
4761
|
|
|
4701
4762
|
/**
|
|
@@ -5595,7 +5656,7 @@ interface HostListenerDecorator {
|
|
|
5595
5656
|
*
|
|
5596
5657
|
* @usageNotes
|
|
5597
5658
|
*
|
|
5598
|
-
* NOTE: **Always** prefer using the `host` property over `@HostListener`.
|
|
5659
|
+
* NOTE: **Always** prefer using the [`host` property](guide/components/host-elements#binding-to-the-host-element) over `@HostListener`.
|
|
5599
5660
|
* This decorator exist exclusively for backwards compatibility.
|
|
5600
5661
|
*
|
|
5601
5662
|
* The following example declares a directive
|
|
@@ -7495,4 +7556,4 @@ interface DeferBlockDetails extends DehydratedDeferBlock {
|
|
|
7495
7556
|
declare function getDeferBlocks(lView: LView, deferBlocks: DeferBlockDetails[]): void;
|
|
7496
7557
|
|
|
7497
7558
|
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 };
|
|
7498
|
-
export type { AfterRenderRef, AnimationCallbackEvent, AnimationClassBindingFn, 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 };
|
|
7559
|
+
export type { AfterRenderRef, AnimationCallbackEvent, AnimationClassBindingFn, AnimationFunction, Binding, BootstrapOptions, ClassDebugInfo, CompilerOptions, ComponentDecorator, ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, ContentQueriesFunction, ControlDirectiveHost, 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 };
|
package/types/_effect-chunk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.2
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -368,5 +368,5 @@ declare class EventDispatcher {
|
|
|
368
368
|
*/
|
|
369
369
|
declare function registerDispatcher(eventContract: UnrenamedEventContract, dispatcher: EventDispatcher): void;
|
|
370
370
|
|
|
371
|
-
export { EventContract, EventContractContainer, EventDispatcher, EventInfoWrapper, EventPhase,
|
|
371
|
+
export { EventContract, EventContractContainer, EventDispatcher, EventInfoWrapper, EventPhase, registerDispatcher };
|
|
372
372
|
export type { EarlyJsactionDataContainer, EventInfo };
|