@angular/core 21.0.0 → 21.0.1
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 +254 -170
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +1 -1
- package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs.map +1 -1
- package/fesm2022/_resource-chunk.mjs +33 -19
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +14 -6
- 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 +27 -16
- 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 +1 -1
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/primitives-signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +12 -4
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/best-practices.md +0 -1
- 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-1Zs_gpB6.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +2 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +5 -3
- package/schematics/bundles/compiler_host-DBwYMlTo.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-DP72APSx.cjs +1 -1
- package/schematics/bundles/index-B7I9sIUx.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-UGIUl7En.cjs +1 -1
- package/schematics/bundles/ng_component_template-Dsuq1Lw7.cjs +1 -1
- package/schematics/bundles/ng_decorators-DSFlWYQY.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-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-8VLCL37B.cjs +1 -1
- package/schematics/bundles/project_paths-DvD50ouC.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.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-BObKoqes.cjs +1 -1
- package/types/_api-chunk.d.ts +7 -2
- package/types/_chrome_dev_tools_performance-chunk.d.ts +9 -1
- package/types/_discovery-chunk.d.ts +28 -21
- 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 +148 -138
- 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 +5 -1
- package/types/testing.d.ts +13 -1
package/types/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.
|
|
2
|
+
* @license Angular v21.0.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9,7 +9,7 @@ import { Signal, WritableSignal, OutputRef, Provider, EnvironmentProviders, Type
|
|
|
9
9
|
export { AbstractType, CreateSignalOptions, DestroyRef, DestroyableInjector, OutputRefSubscription, isWritableSignal, 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, AnimationClassBindingFn, AnimationFunction, LocalRefExtractor, OpaqueViewState, GlobalTargetResolver, ProjectionSlots, QueryFlags, QueryList, RElement, RawScopeInfoFromDecorator, ClassDebugInfo, Directive, NgModule, Pipe, TrustedScriptURL, TrustedScript, PipeType, DirectiveType } from './_discovery-chunk.js';
|
|
11
11
|
export { APP_BOOTSTRAP_LISTENER, AnimationCallbackEvent, BootstrapOptions, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, Compiler, CompilerFactory, ComponentDecorator, CreateEffectOptions, DebugElement, DebugEventListener, DebugNode, DirectiveDecorator, EffectCleanupFn, EffectRef, EventEmitter, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, InjectableType, InjectorType, Input, InputDecorator, ListenerOptions, MAX_ANIMATION_TIMEOUT, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleDecorator, Output, OutputDecorator, PipeDecorator, Predicate, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, Sanitizer, SecurityContext, asNativeElements, effect, getDebugNode, inputBinding, outputBinding, twoWayBinding, ANIMATIONS_DISABLED as ɵANIMATIONS_DISABLED, AfterRenderManager as ɵAfterRenderManager, AnimationRendererType as ɵAnimationRendererType, AttributeMarker as ɵAttributeMarker, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockDetails as ɵDeferBlockDetails, EffectScheduler as ɵEffectScheduler, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, NG_INJ_DEF as ɵNG_INJ_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NavigateEvent as ɵNavigateEvent, Navigation as ɵNavigation, NavigationCurrentEntryChangeEvent as ɵNavigationCurrentEntryChangeEvent, NavigationDestination as ɵNavigationDestination, NavigationHistoryEntry as ɵNavigationHistoryEntry, NavigationInterceptOptions as ɵNavigationInterceptOptions, NavigationNavigateOptions as ɵNavigationNavigateOptions, NavigationOptions as ɵNavigationOptions, NavigationReloadOptions as ɵNavigationReloadOptions, NavigationResult as ɵNavigationResult, NavigationTransition as ɵNavigationTransition, NavigationTypeString as ɵNavigationTypeString, NavigationUpdateCurrentEntryOptions as ɵNavigationUpdateCurrentEntryOptions, NoopNgZone as ɵNoopNgZone, NotificationSource as ɵNotificationSource, PROVIDED_ZONELESS as ɵPROVIDED_ZONELESS, PipeDef as ɵPipeDef, R3Injector as ɵR3Injector, RenderFlags as ɵRenderFlags, TracingAction as ɵTracingAction, TracingService as ɵTracingService, TracingSnapshot as ɵTracingSnapshot, ZONELESS_ENABLED as ɵZONELESS_ENABLED, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getInjectableDef as ɵgetInjectableDef, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isInjectable as ɵisInjectable, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵInjectorDef, ɵɵPipeDeclaration, ɵɵdefineInjectable, ɵɵdefineInjector } from './_discovery-chunk.js';
|
|
12
|
-
import { ResourceOptions, ResourceRef,
|
|
12
|
+
import { ResourceOptions, ResourceRef, ResourceStatus, ResourceStreamingLoader, WritableResource, Resource } from './_api-chunk.js';
|
|
13
13
|
export { BaseResourceOptions, OutputEmitterRef, OutputOptions, PromiseResourceOptions, ResourceLoader, ResourceLoaderParams, ResourceStreamItem, StreamingResourceOptions, output, getOutputDestroyRef as ɵgetOutputDestroyRef } from './_api-chunk.js';
|
|
14
14
|
import './_event_dispatcher-chunk.js';
|
|
15
15
|
import { Observable, Subscribable } from 'rxjs';
|
|
@@ -644,6 +644,8 @@ declare class SimpleChange<T = any> {
|
|
|
644
644
|
*
|
|
645
645
|
* @see {@link OnChanges}
|
|
646
646
|
*
|
|
647
|
+
* @see [Inspecting changes](guide/components/lifecycle#inspecting-changes)
|
|
648
|
+
*
|
|
647
649
|
* @publicApi
|
|
648
650
|
*/
|
|
649
651
|
type SimpleChanges<T = unknown> = T extends object ? {
|
|
@@ -4079,6 +4081,8 @@ declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserA
|
|
|
4079
4081
|
* Angular will apply when inserting inline styles. If not provided, Angular will look up its value
|
|
4080
4082
|
* from the `ngCspNonce` attribute of the application root node.
|
|
4081
4083
|
*
|
|
4084
|
+
* @see [Content security policy](best-practices/security#content-security-policy)
|
|
4085
|
+
*
|
|
4082
4086
|
* @publicApi
|
|
4083
4087
|
*/
|
|
4084
4088
|
declare const CSP_NONCE: InjectionToken<string | null>;
|
|
@@ -4109,6 +4113,8 @@ declare const IMAGE_CONFIG_DEFAULTS: ImageConfig;
|
|
|
4109
4113
|
*
|
|
4110
4114
|
* @see {@link NgOptimizedImage}
|
|
4111
4115
|
* @see {@link ImageConfig}
|
|
4116
|
+
* @see [Responsive images](guide/image-optimization#responsive-images)
|
|
4117
|
+
* @see [Using placeholders](guide/image-optimization#using-placeholders)
|
|
4112
4118
|
* @publicApi
|
|
4113
4119
|
*/
|
|
4114
4120
|
declare const IMAGE_CONFIG: InjectionToken<ImageConfig>;
|
|
@@ -5605,11 +5611,11 @@ declare abstract class BaseWritableResource<T> implements WritableResource<T> {
|
|
|
5605
5611
|
abstract readonly status: Signal<ResourceStatus>;
|
|
5606
5612
|
abstract readonly error: Signal<Error | undefined>;
|
|
5607
5613
|
abstract reload(): boolean;
|
|
5608
|
-
|
|
5614
|
+
readonly isLoading: Signal<boolean>;
|
|
5615
|
+
constructor(value: Signal<T>, debugName: string | undefined);
|
|
5609
5616
|
abstract set(value: T): void;
|
|
5610
5617
|
private readonly isError;
|
|
5611
5618
|
update(updateFn: (value: T) => T): void;
|
|
5612
|
-
readonly isLoading: Signal<boolean>;
|
|
5613
5619
|
private readonly isValueDefined;
|
|
5614
5620
|
hasValue(): this is ResourceRef<Exclude<T, undefined>>;
|
|
5615
5621
|
asReadonly(): Resource<T>;
|
|
@@ -5620,6 +5626,7 @@ declare abstract class BaseWritableResource<T> implements WritableResource<T> {
|
|
|
5620
5626
|
declare class ResourceImpl<T, R> extends BaseWritableResource<T> implements ResourceRef<T> {
|
|
5621
5627
|
private readonly loaderFn;
|
|
5622
5628
|
private readonly equal;
|
|
5629
|
+
private readonly debugName;
|
|
5623
5630
|
private readonly pendingTasks;
|
|
5624
5631
|
/**
|
|
5625
5632
|
* The current state of the resource. Status, value, and error are derived from this.
|
|
@@ -5635,9 +5642,9 @@ declare class ResourceImpl<T, R> extends BaseWritableResource<T> implements Reso
|
|
|
5635
5642
|
private resolvePendingTask;
|
|
5636
5643
|
private destroyed;
|
|
5637
5644
|
private unregisterOnDestroy;
|
|
5638
|
-
constructor(request: () => R, loaderFn: ResourceStreamingLoader<T, R>, defaultValue: T, equal: ValueEqualityFn<T> | undefined, injector: Injector);
|
|
5639
5645
|
readonly status: Signal<ResourceStatus>;
|
|
5640
5646
|
readonly error: Signal<Error | undefined>;
|
|
5647
|
+
constructor(request: () => R, loaderFn: ResourceStreamingLoader<T, R>, defaultValue: T, equal: ValueEqualityFn<T> | undefined, debugName: string | undefined, injector: Injector);
|
|
5641
5648
|
/**
|
|
5642
5649
|
* Called either directly via `WritableResource.set` or via `.value.set()`.
|
|
5643
5650
|
*/
|
|
@@ -5980,6 +5987,140 @@ declare function ɵɵsetComponentScope(type: ComponentType<any>, directives: Typ
|
|
|
5980
5987
|
*/
|
|
5981
5988
|
declare function ɵɵsetNgModuleScope(type: any, scope: NgModuleScopeInfoFromDecorator): unknown;
|
|
5982
5989
|
|
|
5990
|
+
/**
|
|
5991
|
+
* Profiler events is an enum used by the profiler to distinguish between different calls of user
|
|
5992
|
+
* code invoked throughout the application lifecycle.
|
|
5993
|
+
*/
|
|
5994
|
+
declare enum ProfilerEvent {
|
|
5995
|
+
/**
|
|
5996
|
+
* Corresponds to the point in time before the runtime has called the template function of a
|
|
5997
|
+
* component with `RenderFlags.Create`.
|
|
5998
|
+
*/
|
|
5999
|
+
TemplateCreateStart = 0,
|
|
6000
|
+
/**
|
|
6001
|
+
* Corresponds to the point in time after the runtime has called the template function of a
|
|
6002
|
+
* component with `RenderFlags.Create`.
|
|
6003
|
+
*/
|
|
6004
|
+
TemplateCreateEnd = 1,
|
|
6005
|
+
/**
|
|
6006
|
+
* Corresponds to the point in time before the runtime has called the template function of a
|
|
6007
|
+
* component with `RenderFlags.Update`.
|
|
6008
|
+
*/
|
|
6009
|
+
TemplateUpdateStart = 2,
|
|
6010
|
+
/**
|
|
6011
|
+
* Corresponds to the point in time after the runtime has called the template function of a
|
|
6012
|
+
* component with `RenderFlags.Update`.
|
|
6013
|
+
*/
|
|
6014
|
+
TemplateUpdateEnd = 3,
|
|
6015
|
+
/**
|
|
6016
|
+
* Corresponds to the point in time before the runtime has called a lifecycle hook of a component
|
|
6017
|
+
* or directive.
|
|
6018
|
+
*/
|
|
6019
|
+
LifecycleHookStart = 4,
|
|
6020
|
+
/**
|
|
6021
|
+
* Corresponds to the point in time after the runtime has called a lifecycle hook of a component
|
|
6022
|
+
* or directive.
|
|
6023
|
+
*/
|
|
6024
|
+
LifecycleHookEnd = 5,
|
|
6025
|
+
/**
|
|
6026
|
+
* Corresponds to the point in time before the runtime has evaluated an expression associated with
|
|
6027
|
+
* an event or an output.
|
|
6028
|
+
*/
|
|
6029
|
+
OutputStart = 6,
|
|
6030
|
+
/**
|
|
6031
|
+
* Corresponds to the point in time after the runtime has evaluated an expression associated with
|
|
6032
|
+
* an event or an output.
|
|
6033
|
+
*/
|
|
6034
|
+
OutputEnd = 7,
|
|
6035
|
+
/**
|
|
6036
|
+
* Corresponds to the point in time just before application bootstrap.
|
|
6037
|
+
*/
|
|
6038
|
+
BootstrapApplicationStart = 8,
|
|
6039
|
+
/**
|
|
6040
|
+
* Corresponds to the point in time after application bootstrap.
|
|
6041
|
+
*/
|
|
6042
|
+
BootstrapApplicationEnd = 9,
|
|
6043
|
+
/**
|
|
6044
|
+
* Corresponds to the point in time just before root component bootstrap.
|
|
6045
|
+
*/
|
|
6046
|
+
BootstrapComponentStart = 10,
|
|
6047
|
+
/**
|
|
6048
|
+
* Corresponds to the point in time after root component bootstrap.
|
|
6049
|
+
*/
|
|
6050
|
+
BootstrapComponentEnd = 11,
|
|
6051
|
+
/**
|
|
6052
|
+
* Corresponds to the point in time just before Angular starts a change detection tick.
|
|
6053
|
+
*/
|
|
6054
|
+
ChangeDetectionStart = 12,
|
|
6055
|
+
/**
|
|
6056
|
+
* Corresponds to the point in time after Angular ended a change detection tick.
|
|
6057
|
+
*/
|
|
6058
|
+
ChangeDetectionEnd = 13,
|
|
6059
|
+
/**
|
|
6060
|
+
* Corresponds to the point in time just before Angular starts a new synchronization pass of change detection tick.
|
|
6061
|
+
*/
|
|
6062
|
+
ChangeDetectionSyncStart = 14,
|
|
6063
|
+
/**
|
|
6064
|
+
* Corresponds to the point in time after Angular ended a synchronization pass.
|
|
6065
|
+
*/
|
|
6066
|
+
ChangeDetectionSyncEnd = 15,
|
|
6067
|
+
/**
|
|
6068
|
+
* Corresponds to the point in time just before Angular executes after render hooks.
|
|
6069
|
+
*/
|
|
6070
|
+
AfterRenderHooksStart = 16,
|
|
6071
|
+
/**
|
|
6072
|
+
* Corresponds to the point in time after Angular executed after render hooks.
|
|
6073
|
+
*/
|
|
6074
|
+
AfterRenderHooksEnd = 17,
|
|
6075
|
+
/**
|
|
6076
|
+
* Corresponds to the point in time just before Angular starts processing a component (create or update).
|
|
6077
|
+
*/
|
|
6078
|
+
ComponentStart = 18,
|
|
6079
|
+
/**
|
|
6080
|
+
* Corresponds to the point in time after Angular finished processing a component.
|
|
6081
|
+
*/
|
|
6082
|
+
ComponentEnd = 19,
|
|
6083
|
+
/**
|
|
6084
|
+
* Corresponds to the point in time just before a defer block transitions between states.
|
|
6085
|
+
*/
|
|
6086
|
+
DeferBlockStateStart = 20,
|
|
6087
|
+
/**
|
|
6088
|
+
* Corresponds to the point in time after a defer block transitioned between states.
|
|
6089
|
+
*/
|
|
6090
|
+
DeferBlockStateEnd = 21,
|
|
6091
|
+
/**
|
|
6092
|
+
* Corresponds to the point in time just before a component instance is created dynamically.
|
|
6093
|
+
*/
|
|
6094
|
+
DynamicComponentStart = 22,
|
|
6095
|
+
/**
|
|
6096
|
+
* Corresponds to the point in time after a a component instance is created dynamically.
|
|
6097
|
+
*/
|
|
6098
|
+
DynamicComponentEnd = 23,
|
|
6099
|
+
/**
|
|
6100
|
+
* Corresponds to the point in time before the runtime has called the host bindings function
|
|
6101
|
+
* of a directive.
|
|
6102
|
+
*/
|
|
6103
|
+
HostBindingsUpdateStart = 24,
|
|
6104
|
+
/**
|
|
6105
|
+
* Corresponds to the point in time after the runtime has called the host bindings function
|
|
6106
|
+
* of a directive.
|
|
6107
|
+
*/
|
|
6108
|
+
HostBindingsUpdateEnd = 25
|
|
6109
|
+
}
|
|
6110
|
+
/**
|
|
6111
|
+
* Profiler function which the runtime will invoke before and after user code.
|
|
6112
|
+
*/
|
|
6113
|
+
interface Profiler {
|
|
6114
|
+
(event: ProfilerEvent, instance?: {} | null, eventFn?: Function): void;
|
|
6115
|
+
}
|
|
6116
|
+
|
|
6117
|
+
/** The framework used to author a particular application or component. */
|
|
6118
|
+
declare enum Framework {
|
|
6119
|
+
Angular = "angular",
|
|
6120
|
+
ACX = "acx",
|
|
6121
|
+
Wiz = "wiz"
|
|
6122
|
+
}
|
|
6123
|
+
|
|
5983
6124
|
/**
|
|
5984
6125
|
* Retrieves the component instance associated with a given DOM element.
|
|
5985
6126
|
*
|
|
@@ -6080,12 +6221,6 @@ declare function getInjector(elementOrDir: Element | {}): Injector;
|
|
|
6080
6221
|
* @publicApi
|
|
6081
6222
|
*/
|
|
6082
6223
|
declare function getDirectives(node: Node): {}[];
|
|
6083
|
-
/** The framework used to author a particular application or component. */
|
|
6084
|
-
declare enum Framework {
|
|
6085
|
-
Angular = "angular",
|
|
6086
|
-
ACX = "acx",
|
|
6087
|
-
Wiz = "wiz"
|
|
6088
|
-
}
|
|
6089
6224
|
/** Metadata common to directives from all frameworks. */
|
|
6090
6225
|
interface BaseDirectiveDebugMetadata {
|
|
6091
6226
|
name?: string;
|
|
@@ -8173,6 +8308,8 @@ interface ɵControl<T> {
|
|
|
8173
8308
|
readonly [ɵCONTROL]: undefined;
|
|
8174
8309
|
/** The state of the field bound to this control. */
|
|
8175
8310
|
readonly state: Signal<ɵFieldState<T>>;
|
|
8311
|
+
/** Options for the control. */
|
|
8312
|
+
readonly classes: ReadonlyArray<readonly [string, Signal<boolean>]>;
|
|
8176
8313
|
/** A reference to the interoperable control, if one is present. */
|
|
8177
8314
|
readonly ɵinteropControl: ɵInteropControl | undefined;
|
|
8178
8315
|
/**
|
|
@@ -8575,133 +8712,6 @@ declare function isNgModule<T>(value: Type$1<T>): value is Type$1<T> & {
|
|
|
8575
8712
|
ɵmod: NgModuleDef<T>;
|
|
8576
8713
|
};
|
|
8577
8714
|
|
|
8578
|
-
/**
|
|
8579
|
-
* Profiler events is an enum used by the profiler to distinguish between different calls of user
|
|
8580
|
-
* code invoked throughout the application lifecycle.
|
|
8581
|
-
*/
|
|
8582
|
-
declare const enum ProfilerEvent {
|
|
8583
|
-
/**
|
|
8584
|
-
* Corresponds to the point in time before the runtime has called the template function of a
|
|
8585
|
-
* component with `RenderFlags.Create`.
|
|
8586
|
-
*/
|
|
8587
|
-
TemplateCreateStart = 0,
|
|
8588
|
-
/**
|
|
8589
|
-
* Corresponds to the point in time after the runtime has called the template function of a
|
|
8590
|
-
* component with `RenderFlags.Create`.
|
|
8591
|
-
*/
|
|
8592
|
-
TemplateCreateEnd = 1,
|
|
8593
|
-
/**
|
|
8594
|
-
* Corresponds to the point in time before the runtime has called the template function of a
|
|
8595
|
-
* component with `RenderFlags.Update`.
|
|
8596
|
-
*/
|
|
8597
|
-
TemplateUpdateStart = 2,
|
|
8598
|
-
/**
|
|
8599
|
-
* Corresponds to the point in time after the runtime has called the template function of a
|
|
8600
|
-
* component with `RenderFlags.Update`.
|
|
8601
|
-
*/
|
|
8602
|
-
TemplateUpdateEnd = 3,
|
|
8603
|
-
/**
|
|
8604
|
-
* Corresponds to the point in time before the runtime has called a lifecycle hook of a component
|
|
8605
|
-
* or directive.
|
|
8606
|
-
*/
|
|
8607
|
-
LifecycleHookStart = 4,
|
|
8608
|
-
/**
|
|
8609
|
-
* Corresponds to the point in time after the runtime has called a lifecycle hook of a component
|
|
8610
|
-
* or directive.
|
|
8611
|
-
*/
|
|
8612
|
-
LifecycleHookEnd = 5,
|
|
8613
|
-
/**
|
|
8614
|
-
* Corresponds to the point in time before the runtime has evaluated an expression associated with
|
|
8615
|
-
* an event or an output.
|
|
8616
|
-
*/
|
|
8617
|
-
OutputStart = 6,
|
|
8618
|
-
/**
|
|
8619
|
-
* Corresponds to the point in time after the runtime has evaluated an expression associated with
|
|
8620
|
-
* an event or an output.
|
|
8621
|
-
*/
|
|
8622
|
-
OutputEnd = 7,
|
|
8623
|
-
/**
|
|
8624
|
-
* Corresponds to the point in time just before application bootstrap.
|
|
8625
|
-
*/
|
|
8626
|
-
BootstrapApplicationStart = 8,
|
|
8627
|
-
/**
|
|
8628
|
-
* Corresponds to the point in time after application bootstrap.
|
|
8629
|
-
*/
|
|
8630
|
-
BootstrapApplicationEnd = 9,
|
|
8631
|
-
/**
|
|
8632
|
-
* Corresponds to the point in time just before root component bootstrap.
|
|
8633
|
-
*/
|
|
8634
|
-
BootstrapComponentStart = 10,
|
|
8635
|
-
/**
|
|
8636
|
-
* Corresponds to the point in time after root component bootstrap.
|
|
8637
|
-
*/
|
|
8638
|
-
BootstrapComponentEnd = 11,
|
|
8639
|
-
/**
|
|
8640
|
-
* Corresponds to the point in time just before Angular starts a change detection tick.
|
|
8641
|
-
*/
|
|
8642
|
-
ChangeDetectionStart = 12,
|
|
8643
|
-
/**
|
|
8644
|
-
* Corresponds to the point in time after Angular ended a change detection tick.
|
|
8645
|
-
*/
|
|
8646
|
-
ChangeDetectionEnd = 13,
|
|
8647
|
-
/**
|
|
8648
|
-
* Corresponds to the point in time just before Angular starts a new synchronization pass of change detection tick.
|
|
8649
|
-
*/
|
|
8650
|
-
ChangeDetectionSyncStart = 14,
|
|
8651
|
-
/**
|
|
8652
|
-
* Corresponds to the point in time after Angular ended a synchronization pass.
|
|
8653
|
-
*/
|
|
8654
|
-
ChangeDetectionSyncEnd = 15,
|
|
8655
|
-
/**
|
|
8656
|
-
* Corresponds to the point in time just before Angular executes after render hooks.
|
|
8657
|
-
*/
|
|
8658
|
-
AfterRenderHooksStart = 16,
|
|
8659
|
-
/**
|
|
8660
|
-
* Corresponds to the point in time after Angular executed after render hooks.
|
|
8661
|
-
*/
|
|
8662
|
-
AfterRenderHooksEnd = 17,
|
|
8663
|
-
/**
|
|
8664
|
-
* Corresponds to the point in time just before Angular starts processing a component (create or update).
|
|
8665
|
-
*/
|
|
8666
|
-
ComponentStart = 18,
|
|
8667
|
-
/**
|
|
8668
|
-
* Corresponds to the point in time after Angular finished processing a component.
|
|
8669
|
-
*/
|
|
8670
|
-
ComponentEnd = 19,
|
|
8671
|
-
/**
|
|
8672
|
-
* Corresponds to the point in time just before a defer block transitions between states.
|
|
8673
|
-
*/
|
|
8674
|
-
DeferBlockStateStart = 20,
|
|
8675
|
-
/**
|
|
8676
|
-
* Corresponds to the point in time after a defer block transitioned between states.
|
|
8677
|
-
*/
|
|
8678
|
-
DeferBlockStateEnd = 21,
|
|
8679
|
-
/**
|
|
8680
|
-
* Corresponds to the point in time just before a component instance is created dynamically.
|
|
8681
|
-
*/
|
|
8682
|
-
DynamicComponentStart = 22,
|
|
8683
|
-
/**
|
|
8684
|
-
* Corresponds to the point in time after a a component instance is created dynamically.
|
|
8685
|
-
*/
|
|
8686
|
-
DynamicComponentEnd = 23,
|
|
8687
|
-
/**
|
|
8688
|
-
* Corresponds to the point in time before the runtime has called the host bindings function
|
|
8689
|
-
* of a directive.
|
|
8690
|
-
*/
|
|
8691
|
-
HostBindingsUpdateStart = 24,
|
|
8692
|
-
/**
|
|
8693
|
-
* Corresponds to the point in time after the runtime has called the host bindings function
|
|
8694
|
-
* of a directive.
|
|
8695
|
-
*/
|
|
8696
|
-
HostBindingsUpdateEnd = 25
|
|
8697
|
-
}
|
|
8698
|
-
/**
|
|
8699
|
-
* Profiler function which the runtime will invoke before and after user code.
|
|
8700
|
-
*/
|
|
8701
|
-
interface Profiler {
|
|
8702
|
-
(event: ProfilerEvent, instance?: {} | null, eventFn?: Function): void;
|
|
8703
|
-
}
|
|
8704
|
-
|
|
8705
8715
|
/**
|
|
8706
8716
|
* Adds a callback function which will be invoked before and after performing certain actions at
|
|
8707
8717
|
* runtime (for example, before and after running change detection). Multiple profiler callbacks can be set:
|
package/types/primitives-di.d.ts
CHANGED
package/types/rxjs-interop.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.
|
|
2
|
+
* @license Angular v21.0.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -135,6 +135,10 @@ interface ToSignalOptions<T> {
|
|
|
135
135
|
* Equality comparisons are executed against the initial value if one is provided.
|
|
136
136
|
*/
|
|
137
137
|
equal?: ValueEqualityFn<T>;
|
|
138
|
+
/**
|
|
139
|
+
* A debug name for the signal. Used in Angular DevTools to identify the signal.
|
|
140
|
+
*/
|
|
141
|
+
debugName?: string;
|
|
138
142
|
}
|
|
139
143
|
declare function toSignal<T>(source: Observable<T> | Subscribable<T>): Signal<T | undefined>;
|
|
140
144
|
declare function toSignal<T>(source: Observable<T> | Subscribable<T>, options: NoInfer<ToSignalOptions<T | undefined>> & {
|
package/types/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.
|
|
2
|
+
* @license Angular v21.0.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -147,6 +147,8 @@ declare class ComponentFixture<T> {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
+
* IMPORTANT: This API requires Zone.js
|
|
151
|
+
*
|
|
150
152
|
* Clears out the shared fake async zone for a test.
|
|
151
153
|
* To be called in a global `beforeEach`.
|
|
152
154
|
*
|
|
@@ -154,6 +156,8 @@ declare class ComponentFixture<T> {
|
|
|
154
156
|
*/
|
|
155
157
|
declare function resetFakeAsyncZone(): void;
|
|
156
158
|
/**
|
|
159
|
+
* IMPORTANT: This API requires Zone.js
|
|
160
|
+
*
|
|
157
161
|
* Wraps a function to be executed in the `fakeAsync` zone:
|
|
158
162
|
* - Microtasks are manually executed by calling `flushMicrotasks()`.
|
|
159
163
|
* - Timers are synchronous; `tick()` simulates the asynchronous passage of time.
|
|
@@ -181,6 +185,8 @@ declare function fakeAsync(fn: Function, options?: {
|
|
|
181
185
|
flush?: boolean;
|
|
182
186
|
}): (...args: any[]) => any;
|
|
183
187
|
/**
|
|
188
|
+
* IMPORTANT: This API requires Zone.js
|
|
189
|
+
*
|
|
184
190
|
* Simulates the asynchronous passage of time for the timers in the `fakeAsync` zone.
|
|
185
191
|
*
|
|
186
192
|
* The microtasks queue is drained at the very start of this function and after any timer callback
|
|
@@ -248,6 +254,8 @@ declare function tick(millis?: number, tickOptions?: {
|
|
|
248
254
|
processNewMacroTasksSynchronously: boolean;
|
|
249
255
|
}): void;
|
|
250
256
|
/**
|
|
257
|
+
* IMPORTANT: This API requires Zone.js
|
|
258
|
+
*
|
|
251
259
|
* Flushes any pending microtasks and simulates the asynchronous passage of time for the timers in
|
|
252
260
|
* the `fakeAsync` zone by
|
|
253
261
|
* draining the macrotask queue until it is empty.
|
|
@@ -260,12 +268,16 @@ declare function tick(millis?: number, tickOptions?: {
|
|
|
260
268
|
*/
|
|
261
269
|
declare function flush(maxTurns?: number): number;
|
|
262
270
|
/**
|
|
271
|
+
* IMPORTANT: This API requires Zone.js
|
|
272
|
+
*
|
|
263
273
|
* Discard all remaining periodic tasks.
|
|
264
274
|
*
|
|
265
275
|
* @publicApi
|
|
266
276
|
*/
|
|
267
277
|
declare function discardPeriodicTasks(): void;
|
|
268
278
|
/**
|
|
279
|
+
* IMPORTANT: This API requires Zone.js
|
|
280
|
+
*
|
|
269
281
|
* Flush any pending microtasks.
|
|
270
282
|
*
|
|
271
283
|
* @publicApi
|