@angular/core 21.0.0-next.3 → 21.0.0-next.5
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 +7 -4
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +48 -21
- package/effect.d.d.ts +1 -2
- 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 +228 -72
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +564 -747
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/effect.mjs +3 -4
- 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 +4 -5
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/resource.mjs +5 -4
- package/fesm2022/resource.mjs.map +1 -1
- package/fesm2022/root_effect_scheduler.mjs +61 -45
- 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 +19 -140
- 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 -3
- 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-Bx60Uquz.cjs} +3 -3
- package/schematics/bundles/bootstrap-options-migration.cjs +637 -0
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-Df7s6Riz.cjs → compiler_host-Aouk-n4F.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +71 -39
- package/schematics/bundles/{imports-26VeX8i-.cjs → imports-DwPXlGFl.cjs} +27 -1
- package/schematics/bundles/{index-Clvp4COX.cjs → index-BZQb51Qf.cjs} +4 -4
- package/schematics/bundles/{index-CBaykQBv.cjs → index-Bb6iejCd.cjs} +130 -41
- 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-By2ZtKls.cjs} +5 -5
- package/schematics/bundles/{ng_component_template-HYGPuVhy.cjs → ng_component_template-B4M8mTyv.cjs} +3 -3
- package/schematics/bundles/{ng_decorators-CtYwz9Lw.cjs → ng_decorators-BI0uV7KI.cjs} +2 -2
- package/schematics/bundles/ngclass-to-class-migration.cjs +110 -98
- 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-7Wl_HDnw.cjs +132 -0
- package/schematics/bundles/{project_paths-BJTqcWvC.cjs → project_paths-Dr2s3Pq3.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-bRwOJEk9.cjs → project_tsconfig_paths-DX9KHLn9.cjs} +423 -236
- 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 +17 -10
- 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/fesm2022/core.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.5
|
|
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, validAppIdInitializer, 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(typeof ngDevMode !== undefined && 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
|
|
@@ -871,7 +1027,7 @@ function logOversizedImageWarning(src) {
|
|
|
871
1027
|
* `PlatformRef` class (i.e. register the callback via `PlatformRef.onDestroy`), thus making the
|
|
872
1028
|
* entire class tree-shakeable.
|
|
873
1029
|
*/
|
|
874
|
-
const PLATFORM_DESTROY_LISTENERS = new InjectionToken(ngDevMode ? 'PlatformDestroyListeners' : '');
|
|
1030
|
+
const PLATFORM_DESTROY_LISTENERS = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'PlatformDestroyListeners' : '');
|
|
875
1031
|
|
|
876
1032
|
/**
|
|
877
1033
|
* InjectionToken to control root component bootstrap behavior.
|
|
@@ -893,7 +1049,7 @@ const PLATFORM_DESTROY_LISTENERS = new InjectionToken(ngDevMode ? 'PlatformDestr
|
|
|
893
1049
|
* This mechanism ensures SSR can efficiently separate route extraction logic
|
|
894
1050
|
* from component rendering.
|
|
895
1051
|
*/
|
|
896
|
-
const ENABLE_ROOT_COMPONENT_BOOTSTRAP = new InjectionToken(ngDevMode ? 'ENABLE_ROOT_COMPONENT_BOOTSTRAP' : '');
|
|
1052
|
+
const ENABLE_ROOT_COMPONENT_BOOTSTRAP = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'ENABLE_ROOT_COMPONENT_BOOTSTRAP' : '');
|
|
897
1053
|
function isApplicationBootstrapConfig(config) {
|
|
898
1054
|
return !config.moduleRef;
|
|
899
1055
|
}
|
|
@@ -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,15 @@ 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,
|
|
1224
|
+
...(ngDevMode ? [validAppIdInitializer] : []),
|
|
1069
1225
|
];
|
|
1226
|
+
_additionalApplicationProviders = undefined;
|
|
1070
1227
|
const moduleRef = createNgModuleRefWithProviders(moduleFactory.moduleType, this.injector, allAppProviders);
|
|
1071
1228
|
setModuleBootstrapImpl();
|
|
1072
1229
|
return bootstrap({
|
|
@@ -1211,7 +1368,7 @@ function createPlatformInjector(providers = [], name) {
|
|
|
1211
1368
|
function assertPlatform(requiredToken) {
|
|
1212
1369
|
const platform = getPlatform();
|
|
1213
1370
|
if (!platform) {
|
|
1214
|
-
throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
|
|
1371
|
+
throw new RuntimeError(-401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
|
|
1215
1372
|
}
|
|
1216
1373
|
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
1217
1374
|
!platform.injector.get(requiredToken, null)) {
|
|
@@ -2622,6 +2779,7 @@ class ApplicationModule {
|
|
|
2622
2779
|
type: NgModule
|
|
2623
2780
|
}], () => [{ type: ApplicationRef }], null); })();
|
|
2624
2781
|
|
|
2782
|
+
const ZONELESS_BY_DEFAULT = true;
|
|
2625
2783
|
/**
|
|
2626
2784
|
* Internal create application API that implements the core application creation logic and optional
|
|
2627
2785
|
* bootstrap logic.
|
|
@@ -2637,7 +2795,7 @@ function internalCreateApplication(config) {
|
|
|
2637
2795
|
const { rootComponent, appProviders, platformProviders, platformRef } = config;
|
|
2638
2796
|
profiler(8 /* ProfilerEvent.BootstrapApplicationStart */);
|
|
2639
2797
|
if (typeof ngServerMode !== 'undefined' && ngServerMode && !platformRef) {
|
|
2640
|
-
throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode &&
|
|
2798
|
+
throw new RuntimeError(-401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode &&
|
|
2641
2799
|
'Missing Platform: This may be due to using `bootstrapApplication` on the server without passing a `BootstrapContext`. ' +
|
|
2642
2800
|
'Please make sure that `bootstrapApplication` is called with a `context` argument.');
|
|
2643
2801
|
}
|
|
@@ -2649,9 +2807,10 @@ function internalCreateApplication(config) {
|
|
|
2649
2807
|
// Create root application injector based on a set of providers configured at the platform
|
|
2650
2808
|
// bootstrap level as well as providers passed to the bootstrap call by a user.
|
|
2651
2809
|
const allAppProviders = [
|
|
2652
|
-
|
|
2653
|
-
|
|
2810
|
+
provideZonelessChangeDetectionInternal(),
|
|
2811
|
+
ZONELESS_BY_DEFAULT ? [] : internalProvideZoneChangeDetection({}),
|
|
2654
2812
|
errorHandlerEnvironmentInitializer,
|
|
2813
|
+
...(ngDevMode ? [validAppIdInitializer] : []),
|
|
2655
2814
|
...(appProviders || []),
|
|
2656
2815
|
];
|
|
2657
2816
|
const adapter = new EnvironmentNgModuleRefAdapter({
|
|
@@ -4346,7 +4505,6 @@ function phaseDebugName(phase) {
|
|
|
4346
4505
|
*
|
|
4347
4506
|
* ```angular-ts
|
|
4348
4507
|
* @Component({
|
|
4349
|
-
* standalone: true,
|
|
4350
4508
|
* template: `Hello {{ name }}!`
|
|
4351
4509
|
* })
|
|
4352
4510
|
* class HelloComponent {
|
|
@@ -4354,7 +4512,6 @@ function phaseDebugName(phase) {
|
|
|
4354
4512
|
* }
|
|
4355
4513
|
*
|
|
4356
4514
|
* @Component({
|
|
4357
|
-
* standalone: true,
|
|
4358
4515
|
* template: `<div id="hello-component-host"></div>`
|
|
4359
4516
|
* })
|
|
4360
4517
|
* class RootComponent {}
|
|
@@ -4391,7 +4548,7 @@ function phaseDebugName(phase) {
|
|
|
4391
4548
|
* `[[element1, element2], [element3]]`: projects `element1` and `element2` into one `<ng-content>`,
|
|
4392
4549
|
* and `element3` into a separate `<ng-content>`.
|
|
4393
4550
|
* * `directives` (optional): Directives that should be applied to the component.
|
|
4394
|
-
* * `
|
|
4551
|
+
* * `bindings` (optional): Bindings to apply to the root component.
|
|
4395
4552
|
* @returns ComponentRef instance that represents a given Component.
|
|
4396
4553
|
*
|
|
4397
4554
|
* @publicApi
|
|
@@ -4413,7 +4570,6 @@ function createComponent(component, options) {
|
|
|
4413
4570
|
*
|
|
4414
4571
|
* ```angular-ts
|
|
4415
4572
|
* @Component({
|
|
4416
|
-
* standalone: true,
|
|
4417
4573
|
* selector: 'foo-component',
|
|
4418
4574
|
* template: `
|
|
4419
4575
|
* <ng-content></ng-content>
|
|
@@ -4545,5 +4701,5 @@ const REQUEST_CONTEXT = new InjectionToken(typeof ngDevMode === 'undefined' || n
|
|
|
4545
4701
|
factory: () => null,
|
|
4546
4702
|
});
|
|
4547
4703
|
|
|
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,
|
|
4704
|
+
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
4705
|
//# sourceMappingURL=core.mjs.map
|