@angular/core 21.0.0-next.3 → 21.0.0-next.4
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/api.d.d.ts +1 -1
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +44 -18
- package/effect.d.d.ts +1 -1
- package/event_dispatcher.d.d.ts +1 -1
- package/fesm2022/attribute.mjs +1 -1
- package/fesm2022/attribute.mjs.map +1 -1
- package/fesm2022/core.mjs +221 -64
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +516 -690
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/effect.mjs +1 -1
- package/fesm2022/effect.mjs.map +1 -1
- package/fesm2022/not_found.mjs +1 -1
- package/fesm2022/not_found.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 +2 -2
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/resource.mjs +1 -1
- package/fesm2022/resource.mjs.map +1 -1
- package/fesm2022/root_effect_scheduler.mjs +55 -39
- package/fesm2022/root_effect_scheduler.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +3 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/signal.mjs +32 -11
- package/fesm2022/signal.mjs.map +1 -1
- package/fesm2022/testing.mjs +4 -4
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/weak_ref.mjs +1 -1
- package/fesm2022/weak_ref.mjs.map +1 -1
- package/graph.d.d.ts +24 -4
- package/index.d.ts +11 -129
- package/package.json +2 -2
- package/primitives/di/index.d.ts +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +2 -2
- package/rxjs-interop/index.d.ts +3 -1
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
- package/schematics/bundles/application-config-core.cjs +6 -6
- package/schematics/bundles/{apply_import_manager-tNexl58m.cjs → apply_import_manager-DroqamMP.cjs} +3 -3
- package/schematics/bundles/bootstrap-options-migration.cjs +715 -0
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-Df7s6Riz.cjs → compiler_host-aKaS4KRz.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +4 -4
- package/schematics/bundles/{imports-26VeX8i-.cjs → imports-DwPXlGFl.cjs} +27 -1
- package/schematics/bundles/{index-CBaykQBv.cjs → index-BI97t1U8.cjs} +107 -32
- package/schematics/bundles/{index-Clvp4COX.cjs → index-DaB-z4lP.cjs} +4 -4
- package/schematics/bundles/inject-migration.cjs +5 -5
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-C_gTvDtH.cjs → migrate_ts_type_references-DPuwhGod.cjs} +5 -5
- package/schematics/bundles/{ng_component_template-HYGPuVhy.cjs → ng_component_template-CytqBs-q.cjs} +3 -3
- package/schematics/bundles/{ng_decorators-CtYwz9Lw.cjs → ng_decorators-BI0uV7KI.cjs} +2 -2
- package/schematics/bundles/ngclass-to-class-migration.cjs +9 -9
- package/schematics/bundles/ngstyle-to-style-migration.cjs +490 -0
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/parse_html-CeQjkdOK.cjs +132 -0
- package/schematics/bundles/{project_paths-BJTqcWvC.cjs → project_paths-Cz4x-QiT.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-bRwOJEk9.cjs → project_tsconfig_paths-Clg7WX1w.cjs} +168 -198
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +48 -4
- package/schematics/bundles/router-current-navigation.cjs +6 -6
- package/schematics/bundles/router-last-successful-navigation.cjs +6 -6
- package/schematics/bundles/self-closing-tags-migration.cjs +8 -8
- package/schematics/bundles/signal-input-migration.cjs +17 -9
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +7 -7
- package/schematics/bundles/{symbol-VPWguRxr.cjs → symbol-BObKoqes.cjs} +3 -2
- package/schematics/collection.json +6 -0
- package/schematics/migrations/ngstyle-to-style-migration/schema.json +20 -0
- package/schematics/migrations.json +5 -0
- package/testing/index.d.ts +1 -1
- package/weak_ref.d.d.ts +1 -1
- package/schematics/bundles/parse_html-CLFKoiOK.cjs +0 -41
package/api.d.d.ts
CHANGED
package/discovery.d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.4
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -36,6 +36,44 @@ 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 AnimationLViewData {
|
|
71
|
+
enter?: Function[];
|
|
72
|
+
leave?: (() => Promise<void>)[];
|
|
73
|
+
running?: Promise<PromiseSettledResult<void>[]>;
|
|
74
|
+
skipLeaveAnimations?: boolean;
|
|
75
|
+
}
|
|
76
|
+
|
|
39
77
|
declare const enum NotificationSource {
|
|
40
78
|
MarkAncestorsForTraversal = 0,
|
|
41
79
|
SetInput = 1,
|
|
@@ -3795,6 +3833,7 @@ declare const EFFECTS_TO_SCHEDULE = 22;
|
|
|
3795
3833
|
declare const EFFECTS = 23;
|
|
3796
3834
|
declare const REACTIVE_TEMPLATE_CONSUMER = 24;
|
|
3797
3835
|
declare const AFTER_RENDER_SEQUENCES_TO_ADD = 25;
|
|
3836
|
+
declare const ANIMATIONS = 26;
|
|
3798
3837
|
interface OpaqueViewState {
|
|
3799
3838
|
'__brand__': 'Brand for OpaqueViewState that nothing will match';
|
|
3800
3839
|
}
|
|
@@ -4053,6 +4092,7 @@ interface LView<T = unknown> extends Array<any> {
|
|
|
4053
4092
|
*/
|
|
4054
4093
|
[REACTIVE_TEMPLATE_CONSUMER]: ReactiveLViewConsumer | null;
|
|
4055
4094
|
[AFTER_RENDER_SEQUENCES_TO_ADD]: AfterRenderSequence[] | null;
|
|
4095
|
+
[ANIMATIONS]: AnimationLViewData | null;
|
|
4056
4096
|
}
|
|
4057
4097
|
/**
|
|
4058
4098
|
* Contextual data that is shared across multiple instances of `LView` in the same application.
|
|
@@ -5082,15 +5122,6 @@ interface Component extends Directive {
|
|
|
5082
5122
|
*
|
|
5083
5123
|
*/
|
|
5084
5124
|
viewProviders?: Provider[];
|
|
5085
|
-
/**
|
|
5086
|
-
* The module ID of the module that contains the component.
|
|
5087
|
-
* The component must be able to resolve relative URLs for templates and styles.
|
|
5088
|
-
* SystemJS exposes the `__moduleName` variable within each module.
|
|
5089
|
-
* In CommonJS, this can be set to `module.id`.
|
|
5090
|
-
*
|
|
5091
|
-
* @deprecated This option does not have any effect. Will be removed in Angular v17.
|
|
5092
|
-
*/
|
|
5093
|
-
moduleId?: string;
|
|
5094
5125
|
/**
|
|
5095
5126
|
* The relative path or absolute URL of a template file for an Angular component.
|
|
5096
5127
|
* If provided, do not supply an inline template using `template`.
|
|
@@ -5141,12 +5172,6 @@ interface Component extends Directive {
|
|
|
5141
5172
|
* the policy is automatically switched to `ViewEncapsulation.None`.
|
|
5142
5173
|
*/
|
|
5143
5174
|
encapsulation?: ViewEncapsulation;
|
|
5144
|
-
/**
|
|
5145
|
-
* Overrides the default interpolation start and end delimiters (`{{` and `}}`).
|
|
5146
|
-
*
|
|
5147
|
-
* @deprecated use Angular's default interpolation delimiters instead.
|
|
5148
|
-
*/
|
|
5149
|
-
interpolation?: [string, string];
|
|
5150
5175
|
/**
|
|
5151
5176
|
* True to preserve or false to remove potentially superfluous whitespace characters
|
|
5152
5177
|
* from the compiled template. Whitespace characters are those matching the `\s`
|
|
@@ -7007,6 +7032,7 @@ declare abstract class CompilerFactory {
|
|
|
7007
7032
|
abstract createCompiler(options?: CompilerOptions[]): Compiler;
|
|
7008
7033
|
}
|
|
7009
7034
|
|
|
7035
|
+
declare function setZoneProvidersForNextBootstrap(): void;
|
|
7010
7036
|
/**
|
|
7011
7037
|
* The Angular platform is the entry point for Angular on a web page.
|
|
7012
7038
|
* Each page has exactly one platform. Services (such as reflection) which are common
|
|
@@ -7361,5 +7387,5 @@ interface DeferBlockDetails extends DehydratedDeferBlock {
|
|
|
7361
7387
|
*/
|
|
7362
7388
|
declare function getDeferBlocks(lView: LView, deferBlocks: DeferBlockDetails[]): void;
|
|
7363
7389
|
|
|
7364
|
-
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, 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 };
|
|
7365
|
-
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 };
|
|
7390
|
+
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, setZoneProvidersForNextBootstrap, twoWayBinding, ɵɵdefineInjectable, ɵɵdefineInjector };
|
|
7391
|
+
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 };
|
package/effect.d.d.ts
CHANGED
package/event_dispatcher.d.d.ts
CHANGED
package/fesm2022/attribute.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"attribute.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/event-dispatch/src/attribute.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction' as const,\n};\n"],"names":[],"mappings":";;;;;;AAQa,MAAA,SAAS,GAAG;AACvB;;;;;;;;;;;AAWG;AACH,IAAA,QAAQ,EAAE,UAAmB;;;;;"}
|
package/fesm2022/core.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.4
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { RuntimeError, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, assertNgModuleType, Injector, inject, ɵɵdefineInjectable as __defineInjectable,
|
|
8
|
-
export { DOCUMENT, EnvironmentInjector, EventEmitter, INJECTOR, PendingTasks, forwardRef, importProvidersFrom, isSignal, isStandalone, provideBrowserGlobalErrorListeners, resolveForwardRef, signal, EffectScheduler as ɵEffectScheduler, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NoopNgZone as ɵNoopNgZone, R3Injector as ɵR3Injector, XSS_SECURITY_URL as ɵXSS_SECURITY_URL,
|
|
7
|
+
import { RuntimeError, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, assertNgModuleType, Injector, inject, NgZone, ChangeDetectionScheduler, INTERNAL_APPLICATION_ERROR_HANDLER, ɵɵdefineInjectable as __defineInjectable, ZONELESS_ENABLED, ENVIRONMENT_INITIALIZER, SCHEDULE_IN_ROOT_ZONE, SCHEDULE_IN_ROOT_ZONE_DEFAULT, makeEnvironmentProviders, PendingTasksInternal, formatRuntimeError, PROVIDED_ZONELESS, stringify, ɵɵinject as __inject, errorHandlerEnvironmentInitializer, INJECTOR_SCOPE, runInInjectionContext, provideEnvironmentInitializer, ErrorHandler, _global, isComponentHost, getComponentLViewByIndex, getLView, DECLARATION_COMPONENT_VIEW, ɵɵdefineInjector as __defineInjector, unwrapRNode, CLEANUP, isLContainer, HOST, hasI18n, unwrapLView, RENDERER, assertTNode, isProjectionTNode, PARENT, isRootView, HEADER_OFFSET, TVIEW, CONTEXT, getComponentDef, CONTAINER_HEADER_OFFSET, isLView, getTNode, assertNotInReactiveContext, ViewContext, DestroyRef, setInjectorProfilerContext, emitEffectCreatedEvent, getNullInjector } from './root_effect_scheduler.mjs';
|
|
8
|
+
export { DOCUMENT, EnvironmentInjector, EventEmitter, INJECTOR, PendingTasks, VERSION, Version, forwardRef, importProvidersFrom, isSignal, isStandalone, provideBrowserGlobalErrorListeners, resolveForwardRef, signal, EffectScheduler as ɵEffectScheduler, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NoopNgZone as ɵNoopNgZone, R3Injector as ɵR3Injector, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, getInjectableDef as ɵgetInjectableDef, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, store as ɵstore, truncateMiddle as ɵtruncateMiddle, ɵunwrapWritableSignal, ɵɵdisableBindings, ɵɵenableBindings, ɵɵinvalidFactoryDep, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵresetView, ɵɵrestoreView } from './root_effect_scheduler.mjs';
|
|
9
9
|
import { SIGNAL_NODE, signalSetFn, SIGNAL, producerAccessed, consumerDestroy, consumerPollProducersForChange, consumerBeforeComputation, consumerAfterComputation } from './signal.mjs';
|
|
10
|
-
import { ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultOptionalQuerySignalFn, createSingleResultRequiredQuerySignalFn, makePropDecorator, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty, getCompilerFacade, resolveComponentResources,
|
|
11
|
-
export { ANIMATION_MODULE_TYPE, APP_INITIALIZER, Attribute, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver, ComponentRef, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, Directive, ElementRef, Host, HostBinding, HostListener, Inject, Input, MAX_ANIMATION_TIMEOUT, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, Optional, Output, PLATFORM_ID, Pipe, QueryList, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, ViewContainerRef, afterEveryRender, afterNextRender, asNativeElements, createEnvironmentInjector, createNgModule, createNgModuleRef, enableProfiling, getDebugNode, inputBinding, makeStateKey, outputBinding, provideAppInitializer, provideNgReflectAttributes,
|
|
10
|
+
import { ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultOptionalQuerySignalFn, createSingleResultRequiredQuerySignalFn, makePropDecorator, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty, getCompilerFacade, resolveComponentResources, ApplicationRef, setClassMetadata, Injectable, performanceMarkFeature, IMAGE_CONFIG, getDocument, remove, isPromise, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, createNgModuleRefWithProviders, optionsReducer, provideZonelessChangeDetectionInternal, publishDefaultGlobalUtils, PLATFORM_INITIALIZER, publishSignalConfiguration, ChangeDetectionSchedulerImpl, checkNoChangesInternal, UseExhaustiveCheckNoChanges, getRegisteredNgModuleType, ViewRef as ViewRef$1, isListLikeIterable, iterateListLike, isJsObject, ɵɵdefineNgModule as __defineNgModule, NgModule, profiler, assertStandaloneComponentType, EnvironmentNgModuleRefAdapter, JSACTION_BLOCK_ELEMENT_MAP, APP_ID, setStashFn, APP_BOOTSTRAP_LISTENER, JSACTION_EVENT_CONTRACT, removeListeners, isIncrementalHydrationEnabled, DEFER_BLOCK_SSR_ID_ATTRIBUTE, invokeListeners, triggerHydrationFromBlockName, IS_EVENT_REPLAY_ENABLED, EVENT_REPLAY_ENABLED_DEFAULT, sharedStashFunction, sharedMapFunction, enableStashEventListenerImpl, isI18nHydrationEnabled, TransferState, NGH_DATA_KEY, NGH_DEFER_BLOCKS_KEY, SKIP_HYDRATION_ATTR_NAME, NGH_ATTR_NAME, getLNodeForHydration, isI18nHydrationSupportEnabled, getOrComputeI18nChildren, trySerializeI18nBlock, I18N_DATA, isTNodeShape, isDetachedByI18n, TEMPLATES, isDisconnectedNode, isInSkipHydrationBlock, unsupportedProjectionOfDomNodes, CONTAINERS, isLetDeclaration, ELEMENT_CONTAINERS, processTextNodeBeforeSerialization, setJSActionAttributes, ViewEncapsulation as ViewEncapsulation$1, collectNativeNodes, TEMPLATE_ID, NUM_ROOT_NODES, isDeferBlock, getLDeferBlockDetails, getTDeferBlockDetails, collectNativeNodesInLContainer, validateNodeExists, validateMatchingNode, DEFER_BLOCK_ID, DEFER_BLOCK_STATE, DEFER_BLOCK_STATE$1, MULTIPLIER, NODES, calcPathForNode, DISCONNECTED_NODES, convertHydrateTriggersToJsAction, DEFER_HYDRATE_TRIGGERS, DEFER_PARENT_BLOCK_ID, IS_I18N_HYDRATION_ENABLED, IS_HYDRATION_DOM_REUSE_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED, DEHYDRATED_BLOCK_REGISTRY, DehydratedBlockRegistry, processBlockData, gatherDeferBlocksCommentNodes, processAndInitTriggers, appendDeferBlocksToJSActionMap, verifySsrContentsIntegrity, Console, PRESERVE_HOST_CONTENT, cleanupDehydratedViews, countBlocksSkippedByHydration, enableRetrieveHydrationInfoImpl, enableLocateOrCreateElementNodeImpl, enableLocateOrCreateTextNodeImpl, enableLocateOrCreateElementContainerNodeImpl, enableLocateOrCreateContainerAnchorImpl, enableLocateOrCreateContainerRefImpl, enableFindMatchingDehydratedViewImpl, enableApplyRootElementTransformImpl, enableLocateOrCreateI18nNodeImpl, enablePrepareI18nBlockForHydrationImpl, setIsI18nHydrationSupportEnabled, enableClaimDehydratedIcuCaseImpl, enableRetrieveDeferBlockDataImpl, readPatchedLView, angularCoreEnv, setClassMetadataAsync, NOOP_AFTER_RENDER_REF, AfterRenderManager, TracingService, AfterRenderImpl, AfterRenderSequence, AFTER_RENDER_PHASES, assertComponentDef, ComponentFactory } from './debug_node.mjs';
|
|
11
|
+
export { ANIMATION_MODULE_TYPE, APP_INITIALIZER, Attribute, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver, ComponentRef, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, Directive, ElementRef, Host, HostBinding, HostListener, Inject, Input, MAX_ANIMATION_TIMEOUT, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, Optional, Output, PLATFORM_ID, Pipe, QueryList, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, ViewContainerRef, afterEveryRender, afterNextRender, asNativeElements, createEnvironmentInjector, createNgModule, createNgModuleRef, enableProfiling, getDebugNode, inputBinding, makeStateKey, outputBinding, provideAppInitializer, provideNgReflectAttributes, provideZonelessChangeDetection, setTestabilityGetter, twoWayBinding, ANIMATIONS_DISABLED as ɵANIMATIONS_DISABLED, AcxChangeDetectionStrategy as ɵAcxChangeDetectionStrategy, AcxViewEncapsulation as ɵAcxViewEncapsulation, ComponentFactory$1 as ɵComponentFactory, DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockState as ɵDeferBlockState, Framework as ɵFramework, HydrationStatus as ɵHydrationStatus, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, IS_ENABLED_BLOCKING_INITIAL_NAVIGATION as ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION, LContext as ɵLContext, LocaleDataIndex as ɵLocaleDataIndex, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, ReflectionCapabilities as ɵReflectionCapabilities, ComponentRef$1 as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, TimerScheduler as ɵTimerScheduler, TracingAction as ɵTracingAction, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allLeavingAnimations as ɵallLeavingAnimations, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compilePipe as ɵcompilePipe, depsTracker as ɵdepsTracker, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, generateStandaloneInDeclarationsError as ɵgenerateStandaloneInDeclarationsError, getAsyncClassMetadataFn as ɵgetAsyncClassMetadataFn, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, getTransferState as ɵgetTransferState, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, inferTagNameFromDefinition as ɵinferTagNameFromDefinition, isBoundToModule as ɵisBoundToModule, isComponentDefPendingResolution as ɵisComponentDefPendingResolution, isNgModule as ɵisNgModule, isSubscribable as ɵisSubscribable, isViewDirty as ɵisViewDirty, markForRefresh as ɵmarkForRefresh, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishExternalGlobalUtil as ɵpublishExternalGlobalUtil, readHydrationInfo as ɵreadHydrationInfo, registerLocaleData as ɵregisterLocaleData, renderDeferBlockState as ɵrenderDeferBlockState, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, restoreComponentResolutionQueue as ɵrestoreComponentResolutionQueue, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, ɵsetClassDebugInfo, setDocument as ɵsetDocument, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, transitiveScopesFor as ɵtransitiveScopesFor, triggerResourceLoading as ɵtriggerResourceLoading, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵɵCopyDefinitionFeature, ɵɵExternalStylesFeature, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵanimateEnter, ɵɵanimateEnterListener, ɵɵanimateLeave, ɵɵanimateLeaveListener, ɵɵariaProperty, ɵɵattachSourceLocations, ɵɵattribute, ɵɵclassMap, ɵɵclassProp, ɵɵcomponentInstance, ɵɵconditional, ɵɵconditionalBranchCreate, ɵɵconditionalCreate, ɵɵcontentQuery, ɵɵcontentQuerySignal, ɵɵdeclareLet, ɵɵdefer, ɵɵdeferEnableTimerScheduling, ɵɵdeferHydrateNever, ɵɵdeferHydrateOnHover, ɵɵdeferHydrateOnIdle, ɵɵdeferHydrateOnImmediate, ɵɵdeferHydrateOnInteraction, ɵɵdeferHydrateOnTimer, ɵɵdeferHydrateOnViewport, ɵɵdeferHydrateWhen, ɵɵdeferOnHover, ɵɵdeferOnIdle, ɵɵdeferOnImmediate, ɵɵdeferOnInteraction, ɵɵdeferOnTimer, ɵɵdeferOnViewport, ɵɵdeferPrefetchOnHover, ɵɵdeferPrefetchOnIdle, ɵɵdeferPrefetchOnImmediate, ɵɵdeferPrefetchOnInteraction, ɵɵdeferPrefetchOnTimer, ɵɵdeferPrefetchOnViewport, ɵɵdeferPrefetchWhen, ɵɵdeferWhen, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdomElement, ɵɵdomElementContainer, ɵɵdomElementContainerEnd, ɵɵdomElementContainerStart, ɵɵdomElementEnd, ɵɵdomElementStart, ɵɵdomListener, ɵɵdomProperty, ɵɵdomTemplate, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵgetReplaceMetadataURL, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinterpolate, ɵɵinterpolate1, ɵɵinterpolate2, ɵɵinterpolate3, ɵɵinterpolate4, ɵɵinterpolate5, ɵɵinterpolate6, ɵɵinterpolate7, ɵɵinterpolate8, ɵɵinterpolateV, ɵɵinvalidFactory, ɵɵlistener, ɵɵloadQuery, ɵɵnextContext, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryAdvance, ɵɵqueryRefresh, ɵɵreadContextLet, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, ɵɵrepeaterTrackByIndex, ɵɵreplaceMetadata, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstoreLet, ɵɵstyleMap, ɵɵstyleProp, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵtwoWayBindingSet, ɵɵtwoWayListener, ɵɵtwoWayProperty, ɵɵvalidateIframeAttribute, ɵɵviewQuery, ɵɵviewQuerySignal } from './debug_node.mjs';
|
|
12
12
|
import { OutputEmitterRef } from './resource.mjs';
|
|
13
13
|
export { computed, effect, linkedSignal, resource, untracked, ResourceImpl as ɵResourceImpl, encapsulateResourceError as ɵencapsulateResourceError, getOutputDestroyRef as ɵgetOutputDestroyRef } from './resource.mjs';
|
|
14
|
+
import { Subscription } from 'rxjs';
|
|
14
15
|
export { setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl } from './weak_ref.mjs';
|
|
15
16
|
export { setCurrentInjector as ɵsetCurrentInjector } from './not_found.mjs';
|
|
16
17
|
import { clearAppScopedEarlyEventContract, EventContract, EventContractContainer, EventDispatcher, registerDispatcher, EventPhase, getAppScopedQueuedEventInfos, isEarlyEventType, isCaptureEventType } from './primitives/event-dispatch.mjs';
|
|
17
18
|
import '@angular/core/primitives/signals';
|
|
18
19
|
import '@angular/core/primitives/di';
|
|
19
|
-
import 'rxjs';
|
|
20
20
|
import 'rxjs/operators';
|
|
21
21
|
import './attribute.mjs';
|
|
22
22
|
import './effect.mjs';
|
|
@@ -154,27 +154,35 @@ class HostAttributeToken {
|
|
|
154
154
|
* ```
|
|
155
155
|
* @publicApi
|
|
156
156
|
*/
|
|
157
|
-
const HOST_TAG_NAME =
|
|
158
|
-
|
|
159
|
-
//
|
|
160
|
-
//
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
const HOST_TAG_NAME = /* @__PURE__ */ (() => {
|
|
158
|
+
|
|
159
|
+
// If nothing ever injects `HOST_TAG_NAME`, the IIFE result is unused and
|
|
160
|
+
// the bundler can drop the whole block. If we set `__NG_ELEMENT_ID__` at
|
|
161
|
+
// the top level instead, the mutation would look like a side effect,
|
|
162
|
+
// forcing the bundler to keep it even when unused.
|
|
163
|
+
const HOST_TAG_NAME_TOKEN = new InjectionToken(ngDevMode ? 'HOST_TAG_NAME' : '');
|
|
164
|
+
// HOST_TAG_NAME should be resolved at the current node, similar to e.g. ElementRef,
|
|
165
|
+
// so we manually specify __NG_ELEMENT_ID__ here, instead of using a factory.
|
|
166
|
+
// tslint:disable-next-line:no-toplevel-property-access
|
|
167
|
+
HOST_TAG_NAME_TOKEN.__NG_ELEMENT_ID__ = (flags) => {
|
|
168
|
+
const tNode = getCurrentTNode();
|
|
169
|
+
if (tNode === null) {
|
|
170
|
+
throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode &&
|
|
171
|
+
'HOST_TAG_NAME can only be injected in directives and components ' +
|
|
172
|
+
'during construction time (in a class constructor or as a class field initializer)');
|
|
173
|
+
}
|
|
174
|
+
if (tNode.type & 2 /* TNodeType.Element */) {
|
|
175
|
+
return tNode.value;
|
|
176
|
+
}
|
|
177
|
+
if (flags & 8 /* InternalInjectFlags.Optional */) {
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
164
180
|
throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode &&
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
if (flags & 8 /* InternalInjectFlags.Optional */) {
|
|
172
|
-
return null;
|
|
173
|
-
}
|
|
174
|
-
throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode &&
|
|
175
|
-
`HOST_TAG_NAME was used on ${getDevModeNodeName(tNode)} which doesn't have an underlying element in the DOM. ` +
|
|
176
|
-
`This is invalid, and so the dependency should be marked as optional.`);
|
|
177
|
-
};
|
|
181
|
+
`HOST_TAG_NAME was used on ${getDevModeNodeName(tNode)} which doesn't have an underlying element in the DOM. ` +
|
|
182
|
+
`This is invalid, and so the dependency should be marked as optional.`);
|
|
183
|
+
};
|
|
184
|
+
return HOST_TAG_NAME_TOKEN;
|
|
185
|
+
})();
|
|
178
186
|
function getDevModeNodeName(tNode) {
|
|
179
187
|
if (tNode.type & 8 /* TNodeType.ElementContainer */) {
|
|
180
188
|
return 'an <ng-container>';
|
|
@@ -606,29 +614,6 @@ const ViewChild = makePropDecorator('ViewChild', (selector, opts) => ({
|
|
|
606
614
|
...opts,
|
|
607
615
|
}), Query);
|
|
608
616
|
|
|
609
|
-
/**
|
|
610
|
-
* @description Represents the version of Angular
|
|
611
|
-
*
|
|
612
|
-
* @publicApi
|
|
613
|
-
*/
|
|
614
|
-
class Version {
|
|
615
|
-
full;
|
|
616
|
-
major;
|
|
617
|
-
minor;
|
|
618
|
-
patch;
|
|
619
|
-
constructor(full) {
|
|
620
|
-
this.full = full;
|
|
621
|
-
const parts = full.split('.');
|
|
622
|
-
this.major = parts[0];
|
|
623
|
-
this.minor = parts[1];
|
|
624
|
-
this.patch = parts.slice(2).join('.');
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* @publicApi
|
|
629
|
-
*/
|
|
630
|
-
const VERSION = /* @__PURE__ */ new Version('21.0.0-next.3');
|
|
631
|
-
|
|
632
617
|
function compileNgModuleFactory(injector, options, moduleType) {
|
|
633
618
|
ngDevMode && assertNgModuleType(moduleType);
|
|
634
619
|
const moduleFactory = new NgModuleFactory(moduleType);
|
|
@@ -675,6 +660,177 @@ function _lastDefined(args) {
|
|
|
675
660
|
return undefined;
|
|
676
661
|
}
|
|
677
662
|
|
|
663
|
+
class NgZoneChangeDetectionScheduler {
|
|
664
|
+
zone = inject(NgZone);
|
|
665
|
+
changeDetectionScheduler = inject(ChangeDetectionScheduler);
|
|
666
|
+
applicationRef = inject(ApplicationRef);
|
|
667
|
+
applicationErrorHandler = inject(INTERNAL_APPLICATION_ERROR_HANDLER);
|
|
668
|
+
_onMicrotaskEmptySubscription;
|
|
669
|
+
initialize() {
|
|
670
|
+
if (this._onMicrotaskEmptySubscription) {
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
this._onMicrotaskEmptySubscription = this.zone.onMicrotaskEmpty.subscribe({
|
|
674
|
+
next: () => {
|
|
675
|
+
// `onMicroTaskEmpty` can happen _during_ the zoneless scheduler change detection because
|
|
676
|
+
// zone.run(() => {}) will result in `checkStable` at the end of the `zone.run` closure
|
|
677
|
+
// and emit `onMicrotaskEmpty` synchronously if run coalsecing is false.
|
|
678
|
+
if (this.changeDetectionScheduler.runningTick) {
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
this.zone.run(() => {
|
|
682
|
+
try {
|
|
683
|
+
this.applicationRef.dirtyFlags |= 1 /* ApplicationRefDirtyFlags.ViewTreeGlobal */;
|
|
684
|
+
this.applicationRef._tick();
|
|
685
|
+
}
|
|
686
|
+
catch (e) {
|
|
687
|
+
this.applicationErrorHandler(e);
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
},
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
ngOnDestroy() {
|
|
694
|
+
this._onMicrotaskEmptySubscription?.unsubscribe();
|
|
695
|
+
}
|
|
696
|
+
static ɵfac = function NgZoneChangeDetectionScheduler_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NgZoneChangeDetectionScheduler)(); };
|
|
697
|
+
static ɵprov = /*@__PURE__*/ __defineInjectable({ token: NgZoneChangeDetectionScheduler, factory: NgZoneChangeDetectionScheduler.ɵfac, providedIn: 'root' });
|
|
698
|
+
}
|
|
699
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgZoneChangeDetectionScheduler, [{
|
|
700
|
+
type: Injectable,
|
|
701
|
+
args: [{ providedIn: 'root' }]
|
|
702
|
+
}], null, null); })();
|
|
703
|
+
/**
|
|
704
|
+
* Internal token used to verify that `provideZoneChangeDetection` is not used
|
|
705
|
+
* with the bootstrapModule API.
|
|
706
|
+
*/
|
|
707
|
+
const PROVIDED_NG_ZONE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'provideZoneChangeDetection token' : '', { factory: () => false });
|
|
708
|
+
function internalProvideZoneChangeDetection({ ngZoneFactory, scheduleInRootZone, }) {
|
|
709
|
+
ngZoneFactory ??= () => new NgZone({ ...getNgZoneOptions(), scheduleInRootZone });
|
|
710
|
+
return [
|
|
711
|
+
{ provide: ZONELESS_ENABLED, useValue: false },
|
|
712
|
+
{ provide: NgZone, useFactory: ngZoneFactory },
|
|
713
|
+
{
|
|
714
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
715
|
+
multi: true,
|
|
716
|
+
useFactory: () => {
|
|
717
|
+
const ngZoneChangeDetectionScheduler = inject(NgZoneChangeDetectionScheduler, {
|
|
718
|
+
optional: true,
|
|
719
|
+
});
|
|
720
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
721
|
+
ngZoneChangeDetectionScheduler === null) {
|
|
722
|
+
throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, `A required Injectable was not found in the dependency injection tree. ` +
|
|
723
|
+
'If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.');
|
|
724
|
+
}
|
|
725
|
+
return () => ngZoneChangeDetectionScheduler.initialize();
|
|
726
|
+
},
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
730
|
+
multi: true,
|
|
731
|
+
useFactory: () => {
|
|
732
|
+
const service = inject(ZoneStablePendingTask);
|
|
733
|
+
return () => {
|
|
734
|
+
service.initialize();
|
|
735
|
+
};
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
provide: SCHEDULE_IN_ROOT_ZONE,
|
|
740
|
+
useValue: scheduleInRootZone ?? SCHEDULE_IN_ROOT_ZONE_DEFAULT,
|
|
741
|
+
},
|
|
742
|
+
];
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Provides `NgZone`-based change detection for the application bootstrapped using
|
|
746
|
+
* `bootstrapApplication`.
|
|
747
|
+
*
|
|
748
|
+
* `NgZone` is already provided in applications by default. This provider allows you to configure
|
|
749
|
+
* options like `eventCoalescing` in the `NgZone`.
|
|
750
|
+
* This provider is not available for `platformBrowser().bootstrapModule`, which uses
|
|
751
|
+
* `BootstrapOptions` instead.
|
|
752
|
+
*
|
|
753
|
+
* @usageNotes
|
|
754
|
+
* ```ts
|
|
755
|
+
* bootstrapApplication(MyApp, {providers: [
|
|
756
|
+
* provideZoneChangeDetection({eventCoalescing: true}),
|
|
757
|
+
* ]});
|
|
758
|
+
* ```
|
|
759
|
+
*
|
|
760
|
+
* @publicApi
|
|
761
|
+
* @see {@link /api/platform-browser/bootstrapApplication bootstrapApplication}
|
|
762
|
+
* @see {@link NgZoneOptions}
|
|
763
|
+
*/
|
|
764
|
+
function provideZoneChangeDetection(options) {
|
|
765
|
+
const scheduleInRootZone = options?.scheduleInRootZone;
|
|
766
|
+
const zoneProviders = internalProvideZoneChangeDetection({
|
|
767
|
+
ngZoneFactory: () => {
|
|
768
|
+
const ngZoneOptions = getNgZoneOptions(options);
|
|
769
|
+
ngZoneOptions.scheduleInRootZone = scheduleInRootZone;
|
|
770
|
+
if (ngZoneOptions.shouldCoalesceEventChangeDetection) {
|
|
771
|
+
performanceMarkFeature('NgZone_CoalesceEvent');
|
|
772
|
+
}
|
|
773
|
+
return new NgZone(ngZoneOptions);
|
|
774
|
+
},
|
|
775
|
+
scheduleInRootZone,
|
|
776
|
+
});
|
|
777
|
+
return makeEnvironmentProviders([{ provide: PROVIDED_NG_ZONE, useValue: true }, zoneProviders]);
|
|
778
|
+
}
|
|
779
|
+
// Transforms a set of `BootstrapOptions` (supported by the NgModule-based bootstrap APIs) ->
|
|
780
|
+
// `NgZoneOptions` that are recognized by the NgZone constructor. Passing no options will result in
|
|
781
|
+
// a set of default options returned.
|
|
782
|
+
function getNgZoneOptions(options) {
|
|
783
|
+
return {
|
|
784
|
+
enableLongStackTrace: typeof ngDevMode === 'undefined' ? false : !!ngDevMode,
|
|
785
|
+
shouldCoalesceEventChangeDetection: options?.eventCoalescing ?? false,
|
|
786
|
+
shouldCoalesceRunChangeDetection: options?.runCoalescing ?? false,
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
class ZoneStablePendingTask {
|
|
790
|
+
subscription = new Subscription();
|
|
791
|
+
initialized = false;
|
|
792
|
+
zone = inject(NgZone);
|
|
793
|
+
pendingTasks = inject(PendingTasksInternal);
|
|
794
|
+
initialize() {
|
|
795
|
+
if (this.initialized) {
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
this.initialized = true;
|
|
799
|
+
let task = null;
|
|
800
|
+
if (!this.zone.isStable && !this.zone.hasPendingMacrotasks && !this.zone.hasPendingMicrotasks) {
|
|
801
|
+
task = this.pendingTasks.add();
|
|
802
|
+
}
|
|
803
|
+
this.zone.runOutsideAngular(() => {
|
|
804
|
+
this.subscription.add(this.zone.onStable.subscribe(() => {
|
|
805
|
+
NgZone.assertNotInAngularZone();
|
|
806
|
+
// Check whether there are no pending macro/micro tasks in the next tick
|
|
807
|
+
// to allow for NgZone to update the state.
|
|
808
|
+
queueMicrotask(() => {
|
|
809
|
+
if (task !== null &&
|
|
810
|
+
!this.zone.hasPendingMacrotasks &&
|
|
811
|
+
!this.zone.hasPendingMicrotasks) {
|
|
812
|
+
this.pendingTasks.remove(task);
|
|
813
|
+
task = null;
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
}));
|
|
817
|
+
});
|
|
818
|
+
this.subscription.add(this.zone.onUnstable.subscribe(() => {
|
|
819
|
+
NgZone.assertInAngularZone();
|
|
820
|
+
task ??= this.pendingTasks.add();
|
|
821
|
+
}));
|
|
822
|
+
}
|
|
823
|
+
ngOnDestroy() {
|
|
824
|
+
this.subscription.unsubscribe();
|
|
825
|
+
}
|
|
826
|
+
static ɵfac = function ZoneStablePendingTask_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ZoneStablePendingTask)(); };
|
|
827
|
+
static ɵprov = /*@__PURE__*/ __defineInjectable({ token: ZoneStablePendingTask, factory: ZoneStablePendingTask.ɵfac, providedIn: 'root' });
|
|
828
|
+
}
|
|
829
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ZoneStablePendingTask, [{
|
|
830
|
+
type: Injectable,
|
|
831
|
+
args: [{ providedIn: 'root' }]
|
|
832
|
+
}], null, null); })();
|
|
833
|
+
|
|
678
834
|
// A delay in milliseconds before the scan is run after onLoad, to avoid any
|
|
679
835
|
// potential race conditions with other LCP-related functions. This delay
|
|
680
836
|
// happens outside of the main JavaScript execution and will only effect the timing
|
|
@@ -915,6 +1071,7 @@ function bootstrap(config) {
|
|
|
915
1071
|
console.warn(formatRuntimeError(408 /* RuntimeErrorCode.PROVIDED_BOTH_ZONE_AND_ZONELESS */, 'Both provideZoneChangeDetection and provideZonelessChangeDetection are provided. ' +
|
|
916
1072
|
'This is likely a mistake. Update the application providers to use only one of the two.'));
|
|
917
1073
|
}
|
|
1074
|
+
if (!envInjector.get(PROVIDED_ZONELESS) && !envInjector.get(PROVIDED_NG_ZONE)) ;
|
|
918
1075
|
}
|
|
919
1076
|
let onErrorSubscription;
|
|
920
1077
|
ngZone.runOutsideAngular(() => {
|
|
@@ -1027,6 +1184,12 @@ function _callAndReportToErrorHandler(errorHandler, ngZone, callback) {
|
|
|
1027
1184
|
}
|
|
1028
1185
|
}
|
|
1029
1186
|
|
|
1187
|
+
// Holds the set of providers to be used for the *next* application to be bootstrapped.
|
|
1188
|
+
// Used only for providing the zone related providers by default with `downgradeModule`.
|
|
1189
|
+
let _additionalApplicationProviders = undefined;
|
|
1190
|
+
function setZoneProvidersForNextBootstrap() {
|
|
1191
|
+
_additionalApplicationProviders = internalProvideZoneChangeDetection({});
|
|
1192
|
+
}
|
|
1030
1193
|
/**
|
|
1031
1194
|
* The Angular platform is the entry point for Angular on a web page.
|
|
1032
1195
|
* Each page has exactly one platform. Services (such as reflection) which are common
|
|
@@ -1052,21 +1215,14 @@ class PlatformRef {
|
|
|
1052
1215
|
* argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.
|
|
1053
1216
|
*/
|
|
1054
1217
|
bootstrapModuleFactory(moduleFactory, options) {
|
|
1055
|
-
const
|
|
1056
|
-
const ngZoneFactory = () => getNgZone(options?.ngZone, {
|
|
1057
|
-
...getNgZoneOptions({
|
|
1058
|
-
eventCoalescing: options?.ngZoneEventCoalescing,
|
|
1059
|
-
runCoalescing: options?.ngZoneRunCoalescing,
|
|
1060
|
-
}),
|
|
1061
|
-
scheduleInRootZone,
|
|
1062
|
-
});
|
|
1218
|
+
const defaultZoneCdProviders = [];
|
|
1063
1219
|
const allAppProviders = [
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
{ provide: ChangeDetectionScheduler, useExisting: ChangeDetectionSchedulerImpl },
|
|
1220
|
+
provideZonelessChangeDetectionInternal(),
|
|
1221
|
+
...defaultZoneCdProviders,
|
|
1222
|
+
...(_additionalApplicationProviders ?? []),
|
|
1068
1223
|
errorHandlerEnvironmentInitializer,
|
|
1069
1224
|
];
|
|
1225
|
+
_additionalApplicationProviders = undefined;
|
|
1070
1226
|
const moduleRef = createNgModuleRefWithProviders(moduleFactory.moduleType, this.injector, allAppProviders);
|
|
1071
1227
|
setModuleBootstrapImpl();
|
|
1072
1228
|
return bootstrap({
|
|
@@ -2622,6 +2778,7 @@ class ApplicationModule {
|
|
|
2622
2778
|
type: NgModule
|
|
2623
2779
|
}], () => [{ type: ApplicationRef }], null); })();
|
|
2624
2780
|
|
|
2781
|
+
const ZONELESS_BY_DEFAULT = true;
|
|
2625
2782
|
/**
|
|
2626
2783
|
* Internal create application API that implements the core application creation logic and optional
|
|
2627
2784
|
* bootstrap logic.
|
|
@@ -2649,8 +2806,8 @@ function internalCreateApplication(config) {
|
|
|
2649
2806
|
// Create root application injector based on a set of providers configured at the platform
|
|
2650
2807
|
// bootstrap level as well as providers passed to the bootstrap call by a user.
|
|
2651
2808
|
const allAppProviders = [
|
|
2652
|
-
|
|
2653
|
-
|
|
2809
|
+
provideZonelessChangeDetectionInternal(),
|
|
2810
|
+
ZONELESS_BY_DEFAULT ? [] : internalProvideZoneChangeDetection({}),
|
|
2654
2811
|
errorHandlerEnvironmentInitializer,
|
|
2655
2812
|
...(appProviders || []),
|
|
2656
2813
|
];
|
|
@@ -4545,5 +4702,5 @@ const REQUEST_CONTEXT = new InjectionToken(typeof ngDevMode === 'undefined' || n
|
|
|
4545
4702
|
factory: () => null,
|
|
4546
4703
|
});
|
|
4547
4704
|
|
|
4548
|
-
export { APP_BOOTSTRAP_LISTENER, APP_ID, ApplicationInitStatus, ApplicationModule, ApplicationRef, COMPILER_OPTIONS, ChangeDetectorRef, ContentChild, ContentChildren, DefaultIterableDiffer, DestroyRef, ENVIRONMENT_INITIALIZER, EmbeddedViewRef, ErrorHandler, HOST_TAG_NAME, HostAttributeToken, Injectable, InjectionToken, Injector, IterableDiffers, KeyValueDiffers, LOCALE_ID, NgModule, NgZone, OutputEmitterRef, PLATFORM_INITIALIZER, PlatformRef, Query, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, TransferState,
|
|
4705
|
+
export { APP_BOOTSTRAP_LISTENER, APP_ID, ApplicationInitStatus, ApplicationModule, ApplicationRef, COMPILER_OPTIONS, ChangeDetectorRef, ContentChild, ContentChildren, DefaultIterableDiffer, DestroyRef, ENVIRONMENT_INITIALIZER, EmbeddedViewRef, ErrorHandler, HOST_TAG_NAME, HostAttributeToken, Injectable, InjectionToken, Injector, IterableDiffers, KeyValueDiffers, LOCALE_ID, NgModule, NgZone, OutputEmitterRef, PLATFORM_INITIALIZER, PlatformRef, Query, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, TransferState, ViewChild, ViewChildren, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, afterRenderEffect, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, contentChild, contentChildren, createComponent, createPlatform, createPlatformFactory, destroyPlatform, enableProdMode, getModuleFactory, getNgModuleById, getPlatform, inject, input, isDevMode, makeEnvironmentProviders, mergeApplicationConfig, model, numberAttribute, output, platformCore, provideCheckNoChangesConfig, provideEnvironmentInitializer, providePlatformInitializer, provideZoneChangeDetection, reflectComponentType, runInInjectionContext, viewChild, viewChildren, AfterRenderManager as ɵAfterRenderManager, CLIENT_RENDER_MODE_FLAG as ɵCLIENT_RENDER_MODE_FLAG, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, DEHYDRATED_BLOCK_REGISTRY as ɵDEHYDRATED_BLOCK_REGISTRY, ENABLE_ROOT_COMPONENT_BOOTSTRAP as ɵENABLE_ROOT_COMPONENT_BOOTSTRAP, IMAGE_CONFIG as ɵIMAGE_CONFIG, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, ɵINPUT_SIGNAL_BRAND_WRITE_TYPE, INTERNAL_APPLICATION_ERROR_HANDLER as ɵINTERNAL_APPLICATION_ERROR_HANDLER, IS_HYDRATION_DOM_REUSE_ENABLED as ɵIS_HYDRATION_DOM_REUSE_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED as ɵIS_INCREMENTAL_HYDRATION_ENABLED, JSACTION_BLOCK_ELEMENT_MAP as ɵJSACTION_BLOCK_ELEMENT_MAP, JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, NgModuleFactory as ɵNgModuleFactory, PERFORMANCE_MARK_PREFIX as ɵPERFORMANCE_MARK_PREFIX, PROVIDED_NG_ZONE as ɵPROVIDED_NG_ZONE, PROVIDED_ZONELESS as ɵPROVIDED_ZONELESS, PendingTasksInternal as ɵPendingTasksInternal, ComponentFactory as ɵRender3ComponentFactory, RuntimeError as ɵRuntimeError, SIGNAL as ɵSIGNAL, TracingService as ɵTracingService, ViewRef$1 as ɵViewRef, ZONELESS_ENABLED as ɵZONELESS_ENABLED, annotateForHydration as ɵannotateForHydration, ɵassertType, compileNgModuleFactory as ɵcompileNgModuleFactory, createOrReusePlatformInjector as ɵcreateOrReusePlatformInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, disableProfiling as ɵdisableProfiling, enableProfiling as ɵenableProfiling, formatRuntimeError as ɵformatRuntimeError, getClosestComponentName as ɵgetClosestComponentName, getComponentDef as ɵgetComponentDef, getDocument as ɵgetDocument, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalCreateApplication as ɵinternalCreateApplication, internalProvideZoneChangeDetection as ɵinternalProvideZoneChangeDetection, isPromise as ɵisPromise, performanceMarkFeature as ɵperformanceMarkFeature, provideZonelessChangeDetectionInternal as ɵprovideZonelessChangeDetectionInternal, resolveComponentResources as ɵresolveComponentResources, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, setInjectorProfilerContext as ɵsetInjectorProfilerContext, setLocaleId as ɵsetLocaleId, setZoneProvidersForNextBootstrap as ɵsetZoneProvidersForNextBootstrap, startMeasuring as ɵstartMeasuring, stopMeasuring as ɵstopMeasuring, stringify as ɵstringify, withDomHydration as ɵwithDomHydration, withEventReplay as ɵwithEventReplay, withI18nSupport as ɵwithI18nSupport, withIncrementalHydration as ɵwithIncrementalHydration, FactoryTarget as ɵɵFactoryTarget, __defineInjectable as ɵɵdefineInjectable, __defineInjector as ɵɵdefineInjector, __defineNgModule as ɵɵdefineNgModule, __inject as ɵɵinject, __injectAttribute as ɵɵinjectAttribute, ɵɵngDeclareClassMetadata, ɵɵngDeclareClassMetadataAsync, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe };
|
|
4549
4706
|
//# sourceMappingURL=core.mjs.map
|