@angular/core 21.0.0-next.1 → 21.0.0-next.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/api.d.d.ts +1 -1
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +11 -36
- 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 +46 -41
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +29 -669
- 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 +1 -1
- 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 +689 -81
- package/fesm2022/root_effect_scheduler.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +3 -3
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/signal.mjs +1 -1
- package/fesm2022/signal.mjs.map +1 -1
- package/fesm2022/testing.mjs +6 -8
- 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 +1 -1
- package/index.d.ts +37 -54
- 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 +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +135 -0
- package/schematics/bundles/application-config-core.cjs +95 -0
- package/schematics/bundles/{apply_import_manager-yycO3l8f.cjs → apply_import_manager-tNexl58m.cjs} +3 -3
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-DrXTGf_7.cjs → compiler_host-Df7s6Riz.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +4 -4
- package/schematics/bundles/imports-26VeX8i-.cjs +1 -1
- package/schematics/bundles/{index-jjHOgYYs.cjs → index-CBaykQBv.cjs} +35 -14
- package/schematics/bundles/{index-BdH2rlWJ.cjs → index-Clvp4COX.cjs} +4 -4
- package/schematics/bundles/inject-migration.cjs +142 -47
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-BVSg43hf.cjs → migrate_ts_type_references-C_gTvDtH.cjs} +5 -5
- package/schematics/bundles/{ng_component_template-DjLc4mdL.cjs → ng_component_template-HYGPuVhy.cjs} +2 -2
- package/schematics/bundles/ng_decorators-CtYwz9Lw.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +8 -8
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{parse_html-CXR8hziE.cjs → parse_html-CLFKoiOK.cjs} +2 -2
- package/schematics/bundles/{project_paths-T_M15e2g.cjs → project_paths-BJTqcWvC.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-D7xzGqRi.cjs → project_tsconfig_paths-bRwOJEk9.cjs} +13 -5
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/router-current-navigation.cjs +4 -4
- package/schematics/bundles/router-last-successful-navigation.cjs +4 -4
- package/schematics/bundles/self-closing-tags-migration.cjs +6 -6
- package/schematics/bundles/signal-input-migration.cjs +7 -7
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/migrations/ngclass-to-class-migration/schema.json +2 -2
- package/schematics/migrations.json +10 -0
- package/testing/index.d.ts +1 -1
- package/weak_ref.d.d.ts +1 -1
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.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -61,6 +61,8 @@ declare abstract class ChangeDetectionScheduler {
|
|
|
61
61
|
}
|
|
62
62
|
/** Token used to indicate if zoneless was enabled via provideZonelessChangeDetection(). */
|
|
63
63
|
declare const ZONELESS_ENABLED: InjectionToken<boolean>;
|
|
64
|
+
/** Token used to indicate `provideZonelessChangeDetection` was used. */
|
|
65
|
+
declare const PROVIDED_ZONELESS: InjectionToken<boolean>;
|
|
64
66
|
|
|
65
67
|
/**
|
|
66
68
|
* @fileoverview
|
|
@@ -4611,34 +4613,25 @@ interface DirectiveDecorator {
|
|
|
4611
4613
|
*
|
|
4612
4614
|
* ### Declaring directives
|
|
4613
4615
|
*
|
|
4614
|
-
*
|
|
4615
|
-
*
|
|
4616
|
-
* - either mark the directive as [standalone](guide/components/importing),
|
|
4617
|
-
* - or declare it in an NgModule by adding it to the `declarations` and `exports` fields.
|
|
4618
|
-
*
|
|
4619
|
-
* ** Marking a directive as standalone **
|
|
4620
|
-
*
|
|
4621
|
-
* You can add the `standalone: true` flag to the Directive decorator metadata to declare it as
|
|
4622
|
-
* [standalone](guide/components/importing):
|
|
4616
|
+
* By default, directives are marked as [standalone](guide/components/importing), which makes
|
|
4617
|
+
* them available to other components in your application.
|
|
4623
4618
|
*
|
|
4624
4619
|
* ```ts
|
|
4625
4620
|
* @Directive({
|
|
4626
|
-
* standalone: true,
|
|
4627
4621
|
* selector: 'my-directive',
|
|
4628
4622
|
* })
|
|
4629
|
-
* class MyDirective {}
|
|
4630
4623
|
* ```
|
|
4631
4624
|
*
|
|
4632
|
-
*
|
|
4633
|
-
* declared in an NgModule.
|
|
4634
|
-
*
|
|
4625
|
+
* Please make sure that directives marked as standalone are not already declared in an NgModule.
|
|
4635
4626
|
*
|
|
4636
4627
|
* ** Declaring a directive in an NgModule **
|
|
4637
|
-
*
|
|
4638
|
-
*
|
|
4628
|
+
* If you want to declare a directive in an ngModule, add the `standalone: false` flag to the
|
|
4629
|
+
* Directive decorator metadata and add the directive to the `declarations` and `exports`
|
|
4630
|
+
* fields of your ngModule.
|
|
4639
4631
|
*
|
|
4640
4632
|
* ```ts
|
|
4641
4633
|
* @Directive({
|
|
4634
|
+
* standalone: false,
|
|
4642
4635
|
* selector: 'my-directive',
|
|
4643
4636
|
* })
|
|
4644
4637
|
* class MyDirective {}
|
|
@@ -6462,24 +6455,6 @@ interface BootstrapOptions {
|
|
|
6462
6455
|
* @deprecated BootstrapOptions is deprecated. Use `provideZoneChangeDetection` instead to configure coalescing.
|
|
6463
6456
|
*/
|
|
6464
6457
|
ngZoneRunCoalescing?: boolean;
|
|
6465
|
-
/**
|
|
6466
|
-
* When false, change detection is scheduled when Angular receives
|
|
6467
|
-
* a clear indication that templates need to be refreshed. This includes:
|
|
6468
|
-
*
|
|
6469
|
-
* - calling `ChangeDetectorRef.markForCheck`
|
|
6470
|
-
* - calling `ComponentRef.setInput`
|
|
6471
|
-
* - updating a signal that is read in a template
|
|
6472
|
-
* - attaching a view that is marked dirty
|
|
6473
|
-
* - removing a view
|
|
6474
|
-
* - registering a render hook (templates are only refreshed if render hooks do one of the above)
|
|
6475
|
-
*
|
|
6476
|
-
* @deprecated This option was introduced out of caution as a way for developers to opt out of the
|
|
6477
|
-
* new behavior in v18 which schedule change detection for the above events when they occur
|
|
6478
|
-
* outside the Zone. After monitoring the results post-release, we have determined that this
|
|
6479
|
-
* feature is working as desired and do not believe it should ever be disabled by setting
|
|
6480
|
-
* this option to `true`.
|
|
6481
|
-
*/
|
|
6482
|
-
ignoreChangesOutsideZone?: boolean;
|
|
6483
6458
|
}
|
|
6484
6459
|
/**
|
|
6485
6460
|
* A reference to an Angular application running on a page.
|
|
@@ -7386,5 +7361,5 @@ interface DeferBlockDetails extends DehydratedDeferBlock {
|
|
|
7386
7361
|
*/
|
|
7387
7362
|
declare function getDeferBlocks(lView: LView, deferBlocks: DeferBlockDetails[]): void;
|
|
7388
7363
|
|
|
7389
|
-
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, 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 };
|
|
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 };
|
|
7390
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 };
|
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":["../../../../../darwin_arm64-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.3
|
|
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, formatRuntimeError, INTERNAL_APPLICATION_ERROR_HANDLER, PROVIDED_ZONELESS, PendingTasksInternal, stringify, ChangeDetectionScheduler, errorHandlerEnvironmentInitializer, ɵɵinject as __inject, INJECTOR_SCOPE, makeEnvironmentProviders, runInInjectionContext, provideEnvironmentInitializer, ErrorHandler, _global, isComponentHost, getComponentLViewByIndex, getLView, DECLARATION_COMPONENT_VIEW, ɵɵdefineInjector as __defineInjector, ENVIRONMENT_INITIALIZER, 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, 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, R3Injector as ɵR3Injector, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, ZONELESS_ENABLED as ɵZONELESS_ENABLED, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, getAnimationElementRemovalRegistry as ɵgetAnimationElementRemovalRegistry, 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';
|
|
7
|
+
import { RuntimeError, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, assertNgModuleType, Injector, inject, ɵɵdefineInjectable as __defineInjectable, formatRuntimeError, NgZone, INTERNAL_APPLICATION_ERROR_HANDLER, PROVIDED_ZONELESS, PendingTasksInternal, stringify, ChangeDetectionScheduler, errorHandlerEnvironmentInitializer, ɵɵinject as __inject, getNgZone, INJECTOR_SCOPE, makeEnvironmentProviders, runInInjectionContext, provideEnvironmentInitializer, ErrorHandler, _global, isComponentHost, getComponentLViewByIndex, getLView, DECLARATION_COMPONENT_VIEW, ɵɵdefineInjector as __defineInjector, ENVIRONMENT_INITIALIZER, 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, 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, ZONELESS_ENABLED as ɵZONELESS_ENABLED, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, getAnimationElementRemovalRegistry as ɵgetAnimationElementRemovalRegistry, 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, IMAGE_CONFIG, getDocument, setClassMetadata, Injectable,
|
|
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,
|
|
10
|
+
import { ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultOptionalQuerySignalFn, createSingleResultRequiredQuerySignalFn, makePropDecorator, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty, getCompilerFacade, resolveComponentResources, IMAGE_CONFIG, getDocument, setClassMetadata, Injectable, PROVIDED_NG_ZONE, remove, isPromise, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ApplicationRef, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, createNgModuleRefWithProviders, optionsReducer, getNgZoneOptions, publishDefaultGlobalUtils, PLATFORM_INITIALIZER, publishSignalConfiguration, 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, performanceMarkFeature, 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, provideZoneChangeDetection, 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, ElementRegistry as ɵElementRegistry, 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, 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, ɵɵAnimationsFeature, ɵɵ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
14
|
export { setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl } from './weak_ref.mjs';
|
|
15
15
|
export { setCurrentInjector as ɵsetCurrentInjector } from './not_found.mjs';
|
|
16
16
|
import { clearAppScopedEarlyEventContract, EventContract, EventContractContainer, EventDispatcher, registerDispatcher, EventPhase, getAppScopedQueuedEventInfos, isEarlyEventType, isCaptureEventType } from './primitives/event-dispatch.mjs';
|
|
17
|
-
import 'rxjs';
|
|
18
17
|
import '@angular/core/primitives/signals';
|
|
19
18
|
import '@angular/core/primitives/di';
|
|
19
|
+
import 'rxjs';
|
|
20
20
|
import 'rxjs/operators';
|
|
21
21
|
import './attribute.mjs';
|
|
22
22
|
import './effect.mjs';
|
|
@@ -627,7 +627,7 @@ class Version {
|
|
|
627
627
|
/**
|
|
628
628
|
* @publicApi
|
|
629
629
|
*/
|
|
630
|
-
const VERSION = new Version('21.0.0-next.
|
|
630
|
+
const VERSION = /* @__PURE__ */ new Version('21.0.0-next.3');
|
|
631
631
|
|
|
632
632
|
function compileNgModuleFactory(injector, options, moduleType) {
|
|
633
633
|
ngDevMode && assertNgModuleType(moduleType);
|
|
@@ -912,8 +912,8 @@ function bootstrap(config) {
|
|
|
912
912
|
const exceptionHandler = envInjector.get(INTERNAL_APPLICATION_ERROR_HANDLER);
|
|
913
913
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
914
914
|
if (envInjector.get(PROVIDED_ZONELESS) && envInjector.get(PROVIDED_NG_ZONE)) {
|
|
915
|
-
|
|
916
|
-
'
|
|
915
|
+
console.warn(formatRuntimeError(408 /* RuntimeErrorCode.PROVIDED_BOTH_ZONE_AND_ZONELESS */, 'Both provideZoneChangeDetection and provideZonelessChangeDetection are provided. ' +
|
|
916
|
+
'This is likely a mistake. Update the application providers to use only one of the two.'));
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
let onErrorSubscription;
|
|
@@ -953,8 +953,8 @@ function bootstrap(config) {
|
|
|
953
953
|
// If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy
|
|
954
954
|
const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);
|
|
955
955
|
setLocaleId(localeId || DEFAULT_LOCALE_ID);
|
|
956
|
-
const
|
|
957
|
-
if (!
|
|
956
|
+
const enableRootComponentbootstrap = envInjector.get(ENABLE_ROOT_COMPONENT_BOOTSTRAP, true);
|
|
957
|
+
if (!enableRootComponentbootstrap) {
|
|
958
958
|
if (isApplicationBootstrapConfig(config)) {
|
|
959
959
|
return envInjector.get(ApplicationRef);
|
|
960
960
|
}
|
|
@@ -982,8 +982,8 @@ function bootstrap(config) {
|
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
/**
|
|
985
|
-
* Having a separate symbol for the module
|
|
986
|
-
* tree shake the module based
|
|
985
|
+
* Having a separate symbol for the module bootstrap implementation allows us to
|
|
986
|
+
* tree shake the module based bootstrap implementation in standalone apps.
|
|
987
987
|
*/
|
|
988
988
|
let moduleBootstrapImpl;
|
|
989
989
|
/**
|
|
@@ -1060,11 +1060,9 @@ class PlatformRef {
|
|
|
1060
1060
|
}),
|
|
1061
1061
|
scheduleInRootZone,
|
|
1062
1062
|
});
|
|
1063
|
-
const ignoreChangesOutsideZone = options?.ignoreChangesOutsideZone;
|
|
1064
1063
|
const allAppProviders = [
|
|
1065
1064
|
internalProvideZoneChangeDetection({
|
|
1066
1065
|
ngZoneFactory,
|
|
1067
|
-
ignoreChangesOutsideZone,
|
|
1068
1066
|
}),
|
|
1069
1067
|
{ provide: ChangeDetectionScheduler, useExisting: ChangeDetectionSchedulerImpl },
|
|
1070
1068
|
errorHandlerEnvironmentInitializer,
|
|
@@ -1143,11 +1141,6 @@ class PlatformRef {
|
|
|
1143
1141
|
}], () => [{ type: Injector }], null); })();
|
|
1144
1142
|
|
|
1145
1143
|
let _platformInjector = null;
|
|
1146
|
-
/**
|
|
1147
|
-
* Internal token to indicate whether having multiple bootstrapped platform should be allowed (only
|
|
1148
|
-
* one bootstrapped platform is allowed by default). This token helps to support SSR scenarios.
|
|
1149
|
-
*/
|
|
1150
|
-
const ALLOW_MULTIPLE_PLATFORMS = new InjectionToken(ngDevMode ? 'AllowMultipleToken' : '');
|
|
1151
1144
|
/**
|
|
1152
1145
|
* Creates a platform.
|
|
1153
1146
|
* Platforms must be created on launch using this function.
|
|
@@ -1155,12 +1148,14 @@ const ALLOW_MULTIPLE_PLATFORMS = new InjectionToken(ngDevMode ? 'AllowMultipleTo
|
|
|
1155
1148
|
* @publicApi
|
|
1156
1149
|
*/
|
|
1157
1150
|
function createPlatform(injector) {
|
|
1158
|
-
if (
|
|
1151
|
+
if (getPlatform()) {
|
|
1159
1152
|
throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode && 'There can be only one platform. Destroy the previous one to create a new one.');
|
|
1160
1153
|
}
|
|
1161
1154
|
publishDefaultGlobalUtils();
|
|
1162
1155
|
publishSignalConfiguration();
|
|
1163
|
-
|
|
1156
|
+
// During SSR, using this setting and using an injector from the global can cause the
|
|
1157
|
+
// injector to be used for a different requjest due to concurrency.
|
|
1158
|
+
_platformInjector = typeof ngServerMode === 'undefined' || !ngServerMode ? injector : null;
|
|
1164
1159
|
const platform = injector.get(PlatformRef);
|
|
1165
1160
|
runPlatformInitializers(injector);
|
|
1166
1161
|
return platform;
|
|
@@ -1181,20 +1176,17 @@ function createPlatformFactory(parentPlatformFactory, name, providers = []) {
|
|
|
1181
1176
|
const marker = new InjectionToken(desc);
|
|
1182
1177
|
return (extraProviders = []) => {
|
|
1183
1178
|
let platform = getPlatform();
|
|
1184
|
-
if (!platform
|
|
1179
|
+
if (!platform) {
|
|
1185
1180
|
const platformProviders = [
|
|
1186
1181
|
...providers,
|
|
1187
1182
|
...extraProviders,
|
|
1188
1183
|
{ provide: marker, useValue: true },
|
|
1189
1184
|
];
|
|
1190
|
-
|
|
1191
|
-
parentPlatformFactory(platformProviders)
|
|
1192
|
-
|
|
1193
|
-
else {
|
|
1194
|
-
createPlatform(createPlatformInjector(platformProviders, desc));
|
|
1195
|
-
}
|
|
1185
|
+
platform =
|
|
1186
|
+
parentPlatformFactory?.(platformProviders) ??
|
|
1187
|
+
createPlatform(createPlatformInjector(platformProviders, desc));
|
|
1196
1188
|
}
|
|
1197
|
-
return assertPlatform(marker);
|
|
1189
|
+
return typeof ngServerMode !== 'undefined' && ngServerMode ? platform : assertPlatform(marker);
|
|
1198
1190
|
};
|
|
1199
1191
|
}
|
|
1200
1192
|
/**
|
|
@@ -1228,17 +1220,23 @@ function assertPlatform(requiredToken) {
|
|
|
1228
1220
|
return platform;
|
|
1229
1221
|
}
|
|
1230
1222
|
/**
|
|
1231
|
-
* Returns the current platform.
|
|
1223
|
+
* Returns the current platform in the browser environment. In the server environment,
|
|
1224
|
+
* returns `null`. If you need access to the platform information, inject `PlatformRef` in your application.
|
|
1232
1225
|
*
|
|
1233
1226
|
* @publicApi
|
|
1234
1227
|
*/
|
|
1235
1228
|
function getPlatform() {
|
|
1229
|
+
if (typeof ngServerMode !== 'undefined' && ngServerMode) {
|
|
1230
|
+
return null;
|
|
1231
|
+
}
|
|
1236
1232
|
return _platformInjector?.get(PlatformRef) ?? null;
|
|
1237
1233
|
}
|
|
1238
1234
|
/**
|
|
1239
1235
|
* Destroys the current Angular platform and all Angular applications on the page.
|
|
1240
1236
|
* Destroys all modules and listeners registered with the platform.
|
|
1241
1237
|
*
|
|
1238
|
+
* This function should not be used in a server environment, as it will be a no-op.
|
|
1239
|
+
*
|
|
1242
1240
|
* @publicApi
|
|
1243
1241
|
*/
|
|
1244
1242
|
function destroyPlatform() {
|
|
@@ -1257,7 +1255,11 @@ function createOrReusePlatformInjector(providers = []) {
|
|
|
1257
1255
|
publishDefaultGlobalUtils();
|
|
1258
1256
|
// Otherwise, setup a new platform injector and run platform initializers.
|
|
1259
1257
|
const injector = createPlatformInjector(providers);
|
|
1260
|
-
|
|
1258
|
+
// During SSR, using this setting and using an injector from the global can cause the
|
|
1259
|
+
// injector to be used for a different request due to concurrency.
|
|
1260
|
+
if (typeof ngServerMode === 'undefined' || !ngServerMode) {
|
|
1261
|
+
_platformInjector = injector;
|
|
1262
|
+
}
|
|
1261
1263
|
publishSignalConfiguration();
|
|
1262
1264
|
runPlatformInitializers(injector);
|
|
1263
1265
|
return injector;
|
|
@@ -2493,14 +2495,13 @@ class IterableDiffers {
|
|
|
2493
2495
|
static extend(factories) {
|
|
2494
2496
|
return {
|
|
2495
2497
|
provide: IterableDiffers,
|
|
2496
|
-
useFactory: (
|
|
2498
|
+
useFactory: () => {
|
|
2499
|
+
const parent = inject(IterableDiffers, { optional: true, skipSelf: true });
|
|
2497
2500
|
// if parent is null, it means that we are in the root injector and we have just overridden
|
|
2498
2501
|
// the default injection mechanism for IterableDiffers, in such a case just assume
|
|
2499
2502
|
// `defaultIterableDiffersFactory`.
|
|
2500
2503
|
return IterableDiffers.create(factories, parent || defaultIterableDiffersFactory());
|
|
2501
2504
|
},
|
|
2502
|
-
// Dependency technically isn't optional, but we can provide a better error message this way.
|
|
2503
|
-
deps: [[IterableDiffers, new SkipSelf(), new Optional()]],
|
|
2504
2505
|
};
|
|
2505
2506
|
}
|
|
2506
2507
|
find(iterable) {
|
|
@@ -2567,14 +2568,13 @@ class KeyValueDiffers {
|
|
|
2567
2568
|
static extend(factories) {
|
|
2568
2569
|
return {
|
|
2569
2570
|
provide: KeyValueDiffers,
|
|
2570
|
-
useFactory: (
|
|
2571
|
+
useFactory: () => {
|
|
2572
|
+
const parent = inject(KeyValueDiffers, { optional: true, skipSelf: true });
|
|
2571
2573
|
// if parent is null, it means that we are in the root injector and we have just overridden
|
|
2572
2574
|
// the default injection mechanism for KeyValueDiffers, in such a case just assume
|
|
2573
2575
|
// `defaultKeyValueDiffersFactory`.
|
|
2574
2576
|
return KeyValueDiffers.create(factories, parent || defaultKeyValueDiffersFactory());
|
|
2575
2577
|
},
|
|
2576
|
-
// Dependency technically isn't optional, but we can provide a better error message this way.
|
|
2577
|
-
deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]],
|
|
2578
2578
|
};
|
|
2579
2579
|
}
|
|
2580
2580
|
find(kv) {
|
|
@@ -2634,13 +2634,18 @@ class ApplicationModule {
|
|
|
2634
2634
|
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
|
2635
2635
|
*/
|
|
2636
2636
|
function internalCreateApplication(config) {
|
|
2637
|
+
const { rootComponent, appProviders, platformProviders, platformRef } = config;
|
|
2637
2638
|
profiler(8 /* ProfilerEvent.BootstrapApplicationStart */);
|
|
2639
|
+
if (typeof ngServerMode !== 'undefined' && ngServerMode && !platformRef) {
|
|
2640
|
+
throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode &&
|
|
2641
|
+
'Missing Platform: This may be due to using `bootstrapApplication` on the server without passing a `BootstrapContext`. ' +
|
|
2642
|
+
'Please make sure that `bootstrapApplication` is called with a `context` argument.');
|
|
2643
|
+
}
|
|
2638
2644
|
try {
|
|
2639
|
-
const
|
|
2645
|
+
const platformInjector = platformRef?.injector ?? createOrReusePlatformInjector(platformProviders);
|
|
2640
2646
|
if ((typeof ngDevMode === 'undefined' || ngDevMode) && rootComponent !== undefined) {
|
|
2641
2647
|
assertStandaloneComponentType(rootComponent);
|
|
2642
2648
|
}
|
|
2643
|
-
const platformInjector = createOrReusePlatformInjector(platformProviders);
|
|
2644
2649
|
// Create root application injector based on a set of providers configured at the platform
|
|
2645
2650
|
// bootstrap level as well as providers passed to the bootstrap call by a user.
|
|
2646
2651
|
const allAppProviders = [
|
|
@@ -4540,5 +4545,5 @@ const REQUEST_CONTEXT = new InjectionToken(typeof ngDevMode === 'undefined' || n
|
|
|
4540
4545
|
factory: () => null,
|
|
4541
4546
|
});
|
|
4542
4547
|
|
|
4543
|
-
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,
|
|
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, VERSION, Version, 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, 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, ChangeDetectionSchedulerImpl as ɵChangeDetectionSchedulerImpl, 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, 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, resolveComponentResources as ɵresolveComponentResources, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, setInjectorProfilerContext as ɵsetInjectorProfilerContext, setLocaleId as ɵsetLocaleId, 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 };
|
|
4544
4549
|
//# sourceMappingURL=core.mjs.map
|