@angular/core 21.2.1 → 21.2.3
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 +98 -46
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +3 -5
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk2.mjs +6 -5
- package/fesm2022/_effect-chunk2.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +7 -7
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +2 -3
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +5 -33
- 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 +1 -1
- package/fesm2022/rxjs-interop.mjs +2 -2
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +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 +3 -2
- package/types/_discovery-chunk.d.ts +96 -58
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +617 -613
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +2 -1
- package/types/testing.d.ts +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.
|
|
2
|
+
* @license Angular v21.2.3
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,6 +10,7 @@ import './_event_dispatcher-chunk.js';
|
|
|
10
10
|
import { ReactiveNode } from './_formatter-chunk.js';
|
|
11
11
|
import { SignalNode, BaseEffectNode } from './_effect-chunk.js';
|
|
12
12
|
import { Injector as Injector$1, InjectionToken as InjectionToken$1, NotFound } from '@angular/core/primitives/di';
|
|
13
|
+
import * as _angular_core from '@angular/core';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Reactive node type for an input signal. An input signal extends a signal.
|
|
@@ -68,6 +69,8 @@ declare const MAX_ANIMATION_TIMEOUT: InjectionToken<number>;
|
|
|
68
69
|
* function callbacks.
|
|
69
70
|
*
|
|
70
71
|
* @publicApi 20.2
|
|
72
|
+
*
|
|
73
|
+
* @see [Animating your applications with animate.enter and animate.leave](guide/animations)
|
|
71
74
|
*/
|
|
72
75
|
type AnimationFunction = (event: AnimationCallbackEvent) => void;
|
|
73
76
|
type RunEnterAnimationFn = VoidFunction;
|
|
@@ -94,6 +97,62 @@ interface AnimationLViewData {
|
|
|
94
97
|
*/
|
|
95
98
|
type AnimationClassBindingFn = () => string | string[];
|
|
96
99
|
|
|
100
|
+
/** Actions that are supported by the tracing framework. */
|
|
101
|
+
declare enum TracingAction {
|
|
102
|
+
CHANGE_DETECTION = 0,
|
|
103
|
+
AFTER_NEXT_RENDER = 1
|
|
104
|
+
}
|
|
105
|
+
/** A single tracing snapshot. */
|
|
106
|
+
interface TracingSnapshot {
|
|
107
|
+
run<T>(action: TracingAction, fn: () => T): T;
|
|
108
|
+
/** Disposes of the tracing snapshot. Must be run exactly once per TracingSnapshot. */
|
|
109
|
+
dispose(): void;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Injection token for a `TracingService`, optionally provided.
|
|
113
|
+
*/
|
|
114
|
+
declare const TracingService: InjectionToken<TracingService<TracingSnapshot>>;
|
|
115
|
+
/**
|
|
116
|
+
* Tracing mechanism which can associate causes (snapshots) with runs of
|
|
117
|
+
* subsequent operations.
|
|
118
|
+
*
|
|
119
|
+
* Not defined by Angular directly, but defined in contexts where tracing is
|
|
120
|
+
* desired.
|
|
121
|
+
*/
|
|
122
|
+
interface TracingService<T extends TracingSnapshot> {
|
|
123
|
+
/**
|
|
124
|
+
* Take a snapshot of the current context which will be stored by Angular and
|
|
125
|
+
* used when additional work is performed that was scheduled in this context.
|
|
126
|
+
*
|
|
127
|
+
* @param linkedSnapshot Optional snapshot to use link to the current context.
|
|
128
|
+
* The caller is no longer responsible for calling dispose on the linkedSnapshot.
|
|
129
|
+
*
|
|
130
|
+
* @return The tracing snapshot. The caller is responsible for diposing of the
|
|
131
|
+
* snapshot.
|
|
132
|
+
*/
|
|
133
|
+
snapshot(linkedSnapshot: T | null): T;
|
|
134
|
+
/**
|
|
135
|
+
* Propagate the current tracing context to the provided function.
|
|
136
|
+
* @param fn A function.
|
|
137
|
+
* @return A function that will propagate the current tracing context.
|
|
138
|
+
*/
|
|
139
|
+
propagate?<T extends Function>(fn: T): T;
|
|
140
|
+
/**
|
|
141
|
+
* Wrap an event listener bound by the framework for tracing.
|
|
142
|
+
* @param element Element on which the event is bound.
|
|
143
|
+
* @param eventName Name of the event.
|
|
144
|
+
* @param handler Event handler.
|
|
145
|
+
* @return A new event handler to be bound instead of the original one.
|
|
146
|
+
*/
|
|
147
|
+
wrapEventListener?<T extends Function>(element: HTMLElement, eventName: string, handler: T): T;
|
|
148
|
+
/**
|
|
149
|
+
* Trace the creation of a component instance.
|
|
150
|
+
* @param className Name of the component. May be null if the class is anonymous.
|
|
151
|
+
* @param fn Function that creates the component instance.
|
|
152
|
+
*/
|
|
153
|
+
componentCreate?<T>(className: string | null, fn: () => T): T;
|
|
154
|
+
}
|
|
155
|
+
|
|
97
156
|
declare const enum NotificationSource {
|
|
98
157
|
MarkAncestorsForTraversal = 0,
|
|
99
158
|
SetInput = 1,
|
|
@@ -2057,8 +2116,8 @@ interface InjectorTypeWithProviders<T> {
|
|
|
2057
2116
|
declare function ɵɵdefineInjectable<T>(opts: {
|
|
2058
2117
|
token: unknown;
|
|
2059
2118
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;
|
|
2060
|
-
factory: () => T;
|
|
2061
|
-
}):
|
|
2119
|
+
factory: (parent?: Type<any>) => T;
|
|
2120
|
+
}): ɵɵInjectableDeclaration<T>;
|
|
2062
2121
|
/**
|
|
2063
2122
|
* Construct an `InjectorDef` which configures an injector.
|
|
2064
2123
|
*
|
|
@@ -3055,57 +3114,7 @@ declare enum SecurityContext {
|
|
|
3055
3114
|
declare abstract class Sanitizer {
|
|
3056
3115
|
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
|
|
3057
3116
|
/** @nocollapse */
|
|
3058
|
-
static ɵprov:
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3061
|
-
/** Actions that are supported by the tracing framework. */
|
|
3062
|
-
declare enum TracingAction {
|
|
3063
|
-
CHANGE_DETECTION = 0,
|
|
3064
|
-
AFTER_NEXT_RENDER = 1
|
|
3065
|
-
}
|
|
3066
|
-
/** A single tracing snapshot. */
|
|
3067
|
-
interface TracingSnapshot {
|
|
3068
|
-
run<T>(action: TracingAction, fn: () => T): T;
|
|
3069
|
-
/** Disposes of the tracing snapshot. Must be run exactly once per TracingSnapshot. */
|
|
3070
|
-
dispose(): void;
|
|
3071
|
-
}
|
|
3072
|
-
/**
|
|
3073
|
-
* Injection token for a `TracingService`, optionally provided.
|
|
3074
|
-
*/
|
|
3075
|
-
declare const TracingService: InjectionToken<TracingService<TracingSnapshot>>;
|
|
3076
|
-
/**
|
|
3077
|
-
* Tracing mechanism which can associate causes (snapshots) with runs of
|
|
3078
|
-
* subsequent operations.
|
|
3079
|
-
*
|
|
3080
|
-
* Not defined by Angular directly, but defined in contexts where tracing is
|
|
3081
|
-
* desired.
|
|
3082
|
-
*/
|
|
3083
|
-
interface TracingService<T extends TracingSnapshot> {
|
|
3084
|
-
/**
|
|
3085
|
-
* Take a snapshot of the current context which will be stored by Angular and
|
|
3086
|
-
* used when additional work is performed that was scheduled in this context.
|
|
3087
|
-
*
|
|
3088
|
-
* @param linkedSnapshot Optional snapshot to use link to the current context.
|
|
3089
|
-
* The caller is no longer responsible for calling dispose on the linkedSnapshot.
|
|
3090
|
-
*
|
|
3091
|
-
* @return The tracing snapshot. The caller is responsible for diposing of the
|
|
3092
|
-
* snapshot.
|
|
3093
|
-
*/
|
|
3094
|
-
snapshot(linkedSnapshot: T | null): T;
|
|
3095
|
-
/**
|
|
3096
|
-
* Propagate the current tracing context to the provided function.
|
|
3097
|
-
* @param fn A function.
|
|
3098
|
-
* @return A function that will propagate the current tracing context.
|
|
3099
|
-
*/
|
|
3100
|
-
propagate?<T extends Function>(fn: T): T;
|
|
3101
|
-
/**
|
|
3102
|
-
* Wrap an event listener bound by the framework for tracing.
|
|
3103
|
-
* @param element Element on which the event is bound.
|
|
3104
|
-
* @param eventName Name of the event.
|
|
3105
|
-
* @param handler Event handler.
|
|
3106
|
-
* @return A new event handler to be bound instead of the original one.
|
|
3107
|
-
*/
|
|
3108
|
-
wrapEventListener?<T extends Function>(element: HTMLElement, eventName: string, handler: T): T;
|
|
3117
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<null>;
|
|
3109
3118
|
}
|
|
3110
3119
|
|
|
3111
3120
|
/**
|
|
@@ -3124,7 +3133,7 @@ declare class AfterRenderManager {
|
|
|
3124
3133
|
impl: AfterRenderImpl | null;
|
|
3125
3134
|
execute(): void;
|
|
3126
3135
|
/** @nocollapse */
|
|
3127
|
-
static ɵprov:
|
|
3136
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AfterRenderManager>;
|
|
3128
3137
|
}
|
|
3129
3138
|
declare class AfterRenderImpl {
|
|
3130
3139
|
private readonly ngZone;
|
|
@@ -3147,7 +3156,7 @@ declare class AfterRenderImpl {
|
|
|
3147
3156
|
unregister(sequence: AfterRenderSequence): void;
|
|
3148
3157
|
protected maybeTrace<T>(fn: () => T, snapshot: TracingSnapshot | null): T;
|
|
3149
3158
|
/** @nocollapse */
|
|
3150
|
-
static ɵprov:
|
|
3159
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AfterRenderImpl>;
|
|
3151
3160
|
}
|
|
3152
3161
|
type AfterRenderHook = (value?: unknown) => unknown;
|
|
3153
3162
|
type AfterRenderHooks = [
|
|
@@ -3210,13 +3219,35 @@ declare abstract class EffectScheduler {
|
|
|
3210
3219
|
/** Remove a scheduled effect */
|
|
3211
3220
|
abstract remove(e: SchedulableEffect): void;
|
|
3212
3221
|
/** @nocollapse */
|
|
3213
|
-
static ɵprov:
|
|
3222
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ZoneAwareEffectScheduler>;
|
|
3223
|
+
}
|
|
3224
|
+
/**
|
|
3225
|
+
* A wrapper around `ZoneAwareQueueingScheduler` that schedules flushing via the microtask queue
|
|
3226
|
+
* when.
|
|
3227
|
+
*/
|
|
3228
|
+
declare class ZoneAwareEffectScheduler implements EffectScheduler {
|
|
3229
|
+
private dirtyEffectCount;
|
|
3230
|
+
private queues;
|
|
3231
|
+
add(handle: SchedulableEffect): void;
|
|
3232
|
+
schedule(handle: SchedulableEffect): void;
|
|
3233
|
+
remove(handle: SchedulableEffect): void;
|
|
3234
|
+
private enqueue;
|
|
3235
|
+
/**
|
|
3236
|
+
* Run all scheduled effects.
|
|
3237
|
+
*
|
|
3238
|
+
* Execution order of effects within the same zone is guaranteed to be FIFO, but there is no
|
|
3239
|
+
* ordering guarantee between effects scheduled in different zones.
|
|
3240
|
+
*/
|
|
3241
|
+
flush(): void;
|
|
3242
|
+
private flushQueue;
|
|
3214
3243
|
}
|
|
3215
3244
|
|
|
3216
3245
|
/**
|
|
3217
3246
|
* A global reactive effect, which can be manually destroyed.
|
|
3218
3247
|
*
|
|
3219
3248
|
* @publicApi 20.0
|
|
3249
|
+
*
|
|
3250
|
+
* @see [Destroying effects](guide/signals/effect#destroying-effects)
|
|
3220
3251
|
*/
|
|
3221
3252
|
interface EffectRef {
|
|
3222
3253
|
/**
|
|
@@ -4256,6 +4287,8 @@ interface LViewEnvironment {
|
|
|
4256
4287
|
sanitizer: Sanitizer | null;
|
|
4257
4288
|
/** Scheduler for change detection to notify when application state changes. */
|
|
4258
4289
|
changeDetectionScheduler: ChangeDetectionScheduler | null;
|
|
4290
|
+
/** Service used for tracing different parts of the application. */
|
|
4291
|
+
tracingService: TracingService<TracingSnapshot> | null;
|
|
4259
4292
|
/**
|
|
4260
4293
|
* Whether `ng-reflect-*` attributes should be produced in dev mode
|
|
4261
4294
|
* (always disabled in prod mode).
|
|
@@ -5845,12 +5878,16 @@ declare const BINDING: unique symbol;
|
|
|
5845
5878
|
/**
|
|
5846
5879
|
* A dynamically-defined binding targeting.
|
|
5847
5880
|
* For example, `inputBinding('value', () => 123)` creates an input binding.
|
|
5881
|
+
*
|
|
5882
|
+
* @see [Binding inputs, outputs and setting host directives at creation](guide/components/programmatic-rendering#binding-inputs-outputs-and-setting-host-directives-at-creation)
|
|
5848
5883
|
*/
|
|
5849
5884
|
interface Binding {
|
|
5850
5885
|
readonly [BINDING]: unknown;
|
|
5851
5886
|
}
|
|
5852
5887
|
/**
|
|
5853
5888
|
* Represents a dynamically-created directive with bindings targeting it specifically.
|
|
5889
|
+
*
|
|
5890
|
+
* @see [Binding inputs, outputs and setting host directives at creation](guide/components/programmatic-rendering#binding-inputs-outputs-and-setting-host-directives-at-creation)
|
|
5854
5891
|
*/
|
|
5855
5892
|
interface DirectiveWithBindings<T> {
|
|
5856
5893
|
/** Directive type that should be created. */
|
|
@@ -6519,6 +6556,7 @@ type ɵɵComponentDeclaration<T, Selector extends String, ExportAs extends strin
|
|
|
6519
6556
|
[key: string]: string | {
|
|
6520
6557
|
alias: string | null;
|
|
6521
6558
|
required: boolean;
|
|
6559
|
+
isSignal?: boolean;
|
|
6522
6560
|
};
|
|
6523
6561
|
}, OutputMap extends {
|
|
6524
6562
|
[key: string]: string;
|
|
@@ -6538,7 +6576,7 @@ type ɵɵInjectorDeclaration<T> = unknown;
|
|
|
6538
6576
|
/**
|
|
6539
6577
|
* @publicApi
|
|
6540
6578
|
*/
|
|
6541
|
-
type ɵɵFactoryDeclaration<T, CtorDependencies extends CtorDependency[]> =
|
|
6579
|
+
type ɵɵFactoryDeclaration<T, CtorDependencies extends CtorDependency[]> = (parent?: Type<any>) => T;
|
|
6542
6580
|
/**
|
|
6543
6581
|
* An object literal of this type is used to represent the metadata of a constructor dependency.
|
|
6544
6582
|
* The type itself is never referred to from generated code.
|
package/types/_effect-chunk.d.ts
CHANGED