@angular/core 20.0.0-next.8 → 20.0.0-rc.0
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-KjtSQajV.d.ts → api.d-CRxC7NlU.d.ts} +28 -43
- package/{chrome_dev_tools_performance.d-qv7drdAl.d.ts → chrome_dev_tools_performance.d-B0FzTuRf.d.ts} +7 -1
- package/{discovery.d-vJaEafe4.d.ts → discovery.d-CBxzK1ay.d.ts} +30 -6
- package/event_dispatcher.d-DlbccpYq.d.ts +1 -1
- package/fesm2022/attribute-BWp59EjE.mjs +1 -1
- package/fesm2022/core.mjs +80 -166
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{debug_node-DEfPCixm.mjs → debug_node-3mmnD06K.mjs} +138 -54
- package/fesm2022/debug_node-3mmnD06K.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +2 -2
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +7 -5
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/{resource-DhKtse7l.mjs → resource-nrAenwIA.mjs} +31 -76
- package/fesm2022/resource-nrAenwIA.mjs.map +1 -0
- package/fesm2022/{root_effect_scheduler-BZMWiScf.mjs → root_effect_scheduler-B_EWGyLU.mjs} +20 -12
- package/fesm2022/root_effect_scheduler-B_EWGyLU.mjs.map +1 -0
- package/fesm2022/rxjs-interop.mjs +16 -11
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/{signal-B6pMq7KS.mjs → signal-ePSl6jXn.mjs} +14 -4
- package/fesm2022/{signal-B6pMq7KS.mjs.map → signal-ePSl6jXn.mjs.map} +1 -1
- package/fesm2022/testing.mjs +61 -63
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/{untracked-Bz5WMeU1.mjs → untracked-2ouAFbCz.mjs} +4 -4
- package/fesm2022/untracked-2ouAFbCz.mjs.map +1 -0
- package/fesm2022/weak_ref-BaIq-pgY.mjs +1 -1
- package/graph.d-BcIOep_B.d.ts +1 -1
- package/index.d.ts +154 -136
- package/package.json +3 -3
- package/primitives/di/index.d.ts +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +3 -3
- package/rxjs-interop/index.d.ts +11 -11
- package/schematics/bundles/{apply_import_manager-CaG-_cEq.js → apply_import_manager-Coc7Hewu.js} +3 -3
- package/schematics/bundles/{change_tracker-ISzWfEHN.js → change_tracker-CDJPOAni.js} +3 -3
- package/schematics/bundles/{checker-DV96LHWz.js → checker-BAl7CJ0l.js} +386 -122
- package/schematics/bundles/cleanup-unused-imports.js +6 -6
- package/schematics/bundles/{compiler-BEZ6sUQS.js → compiler-BSv6JWRF.js} +58 -65
- package/schematics/bundles/compiler_host-CAfDJO3W.js +1 -1
- package/schematics/bundles/control-flow-migration.js +2 -2
- package/schematics/bundles/document-core.js +6 -6
- package/schematics/bundles/imports-CIX-JgAN.js +1 -1
- package/schematics/bundles/{index-6wv04ZFQ.js → index-CnKffIJ6.js} +6 -5
- package/schematics/bundles/{index-B1R5GL-k.js → index-CxuDmkeg.js} +421 -317
- package/schematics/bundles/inject-flags.js +6 -6
- package/schematics/bundles/inject-migration.js +4 -4
- package/schematics/bundles/leading_space-D9nQ8UQC.js +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Dh9TZgTr.js → migrate_ts_type_references-DE1AlxIs.js} +6 -6
- package/schematics/bundles/ng_decorators-DznZ5jMl.js +1 -1
- package/schematics/bundles/nodes-B16H9JUd.js +1 -1
- package/schematics/bundles/output-migration.js +7 -7
- package/schematics/bundles/{project_paths-B-Nevd-p.js → project_paths-Bl-H7Vlb.js} +4 -4
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.js +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.js +1 -1
- package/schematics/bundles/route-lazy-loading.js +4 -4
- package/schematics/bundles/self-closing-tags-migration.js +5 -5
- package/schematics/bundles/signal-input-migration.js +8 -8
- package/schematics/bundles/signal-queries-migration.js +8 -8
- package/schematics/bundles/signals.js +8 -8
- package/schematics/bundles/standalone-migration.js +5 -5
- package/schematics/bundles/symbol-VPWguRxr.js +1 -1
- package/schematics/bundles/test-bed-get.js +5 -5
- package/{signal.d-E0e5nW1p.d.ts → signal.d-D6VJ67xi.d.ts} +8 -2
- package/testing/index.d.ts +12 -24
- package/weak_ref.d-eGOEP9S1.d.ts +1 -1
- package/fesm2022/debug_node-DEfPCixm.mjs.map +0 -1
- package/fesm2022/resource-DhKtse7l.mjs.map +0 -1
- package/fesm2022/root_effect_scheduler-BZMWiScf.mjs.map +0 -1
- package/fesm2022/untracked-Bz5WMeU1.mjs.map +0 -1
package/fesm2022/core.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-
|
|
2
|
+
* @license Angular v20.0.0-rc.0
|
|
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,
|
|
8
|
-
export { DOCUMENT, INJECTOR, PendingTasks, defineInjectable, forwardRef, importProvidersFrom, isSignal, isStandalone, provideBrowserGlobalErrorListeners,
|
|
9
|
-
import { SIGNAL_NODE, signalSetFn, SIGNAL, producerAccessed, consumerPollProducersForChange, consumerBeforeComputation, consumerAfterComputation } from './signal-
|
|
10
|
-
import { ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultRequiredQuerySignalFn, createSingleResultOptionalQuerySignalFn, makePropDecorator, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty, getCompilerFacade, resolveComponentResources, IMAGE_CONFIG, getDocument, setClassMetadata, Injectable, NgZone, PROVIDED_NG_ZONE, remove, isPromise, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ApplicationRef, createNgModuleRefWithProviders, optionsReducer, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, getNgZone, getNgZoneOptions, publishDefaultGlobalUtils, PLATFORM_INITIALIZER, publishSignalConfiguration, checkNoChangesInternal, getRegisteredNgModuleType, ViewRef as ViewRef$1, isListLikeIterable, iterateListLike, isJsObject, SkipSelf, Optional, ɵɵdefineNgModule as __defineNgModule, NgModule, profiler, assertStandaloneComponentType, EnvironmentNgModuleRefAdapter, IS_EVENT_REPLAY_ENABLED, JSACTION_BLOCK_ELEMENT_MAP, APP_BOOTSTRAP_LISTENER,
|
|
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, EventEmitter, Host, HostBinding, HostListener, Inject, Input, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, Output, PACKAGE_ROOT_URL, PLATFORM_ID, Pipe, QueryList, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, Self, SimpleChange, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, ViewContainerRef,
|
|
12
|
-
import { OutputEmitterRef } from './resource-
|
|
13
|
-
export {
|
|
7
|
+
import { RuntimeError, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, assertNgModuleType, Injector, inject, ɵɵdefineInjectable as __defineInjectable, formatRuntimeError, INTERNAL_APPLICATION_ERROR_HANDLER, PROVIDED_ZONELESS, stringify, ɵɵinject as __inject, ChangeDetectionScheduler, errorHandlerEnvironmentInitializer, makeEnvironmentProviders, runInInjectionContext, INJECTOR_SCOPE, provideEnvironmentInitializer, ErrorHandler, _global, isComponentHost, getComponentLViewByIndex, DECLARATION_COMPONENT_VIEW, getLView, ɵɵdefineInjector as __defineInjector, ENVIRONMENT_INITIALIZER, unwrapRNode, CLEANUP, isLContainer, unwrapLView, hasI18n, RENDERER, HOST, getComponentDef, assertTNode, isProjectionTNode, PARENT, CONTEXT, HEADER_OFFSET, TVIEW, isRootView, CONTAINER_HEADER_OFFSET, isLView, getTNode, assertNotInReactiveContext, ViewContext, DestroyRef, getNullInjector } from './root_effect_scheduler-B_EWGyLU.mjs';
|
|
8
|
+
export { DOCUMENT, EnvironmentInjector, INJECTOR, PendingTasks, defineInjectable, 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, PendingTasksInternal as ɵPendingTasksInternal, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, ZONELESS_ENABLED as ɵZONELESS_ENABLED, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, getInjectableDef as ɵgetInjectableDef, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, setInjectorProfilerContext as ɵsetInjectorProfilerContext, truncateMiddle as ɵtruncateMiddle, ɵunwrapWritableSignal, ɵɵdisableBindings, ɵɵenableBindings, ɵɵinvalidFactoryDep, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵresetView, ɵɵrestoreView } from './root_effect_scheduler-B_EWGyLU.mjs';
|
|
9
|
+
import { SIGNAL_NODE, signalSetFn, SIGNAL, producerAccessed, consumerPollProducersForChange, consumerBeforeComputation, consumerAfterComputation } from './signal-ePSl6jXn.mjs';
|
|
10
|
+
import { ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultRequiredQuerySignalFn, createSingleResultOptionalQuerySignalFn, makePropDecorator, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty, getCompilerFacade, resolveComponentResources, IMAGE_CONFIG, getDocument, setClassMetadata, Injectable, NgZone, PROVIDED_NG_ZONE, remove, isPromise, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ApplicationRef, createNgModuleRefWithProviders, optionsReducer, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, getNgZone, getNgZoneOptions, publishDefaultGlobalUtils, PLATFORM_INITIALIZER, publishSignalConfiguration, checkNoChangesInternal, UseExhaustiveCheckNoChanges, getRegisteredNgModuleType, ViewRef as ViewRef$1, isListLikeIterable, iterateListLike, isJsObject, SkipSelf, Optional, ɵɵdefineNgModule as __defineNgModule, NgModule, profiler, assertStandaloneComponentType, EnvironmentNgModuleRefAdapter, IS_EVENT_REPLAY_ENABLED, JSACTION_BLOCK_ELEMENT_MAP, APP_ID, setStashFn, APP_BOOTSTRAP_LISTENER, clearStashFn, JSACTION_EVENT_CONTRACT, removeListeners, isIncrementalHydrationEnabled, performanceMarkFeature, EVENT_REPLAY_ENABLED_DEFAULT, DEFER_BLOCK_SSR_ID_ATTRIBUTE, invokeListeners, triggerHydrationFromBlockName, sharedStashFunction, sharedMapFunction, isI18nHydrationEnabled, TransferState, NGH_DATA_KEY, NGH_DEFER_BLOCKS_KEY, getLNodeForHydration, NGH_ATTR_NAME, SKIP_HYDRATION_ATTR_NAME, isI18nHydrationSupportEnabled, ViewEncapsulation as ViewEncapsulation$1, getOrComputeI18nChildren, trySerializeI18nBlock, I18N_DATA, isTNodeShape, isDetachedByI18n, isDisconnectedNode, isInSkipHydrationBlock, unsupportedProjectionOfDomNodes, TEMPLATES, CONTAINERS, isLetDeclaration, ELEMENT_CONTAINERS, processTextNodeBeforeSerialization, setJSActionAttributes, DISCONNECTED_NODES, NODES, calcPathForNode, NUM_ROOT_NODES, TEMPLATE_ID, isDeferBlock, getLDeferBlockDetails, getTDeferBlockDetails, collectNativeNodesInLContainer, validateNodeExists, validateMatchingNode, DEFER_BLOCK_ID, DEFER_BLOCK_STATE, DEFER_BLOCK_STATE$1, MULTIPLIER, collectNativeNodes, convertHydrateTriggersToJsAction, DEFER_HYDRATE_TRIGGERS, DEFER_PARENT_BLOCK_ID, IS_HYDRATION_DOM_REUSE_ENABLED, IS_I18N_HYDRATION_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED, DehydratedBlockRegistry, DEHYDRATED_BLOCK_REGISTRY, processBlockData, gatherDeferBlocksCommentNodes, processAndInitTriggers, appendDeferBlocksToJSActionMap, verifySsrContentsIntegrity, Console, enableRetrieveHydrationInfoImpl, enableLocateOrCreateElementNodeImpl, enableLocateOrCreateTextNodeImpl, enableLocateOrCreateElementContainerNodeImpl, enableLocateOrCreateContainerAnchorImpl, enableLocateOrCreateContainerRefImpl, enableFindMatchingDehydratedViewImpl, enableApplyRootElementTransformImpl, setIsI18nHydrationSupportEnabled, PRESERVE_HOST_CONTENT, cleanupDehydratedViews, countBlocksSkippedByHydration, enableLocateOrCreateI18nNodeImpl, enablePrepareI18nBlockForHydrationImpl, enableClaimDehydratedIcuCaseImpl, enableRetrieveDeferBlockDataImpl, readPatchedLView, setClassMetadataAsync, angularCoreEnv, NOOP_AFTER_RENDER_REF, AfterRenderManager, TracingService, AfterRenderImpl, AfterRenderSequence, AFTER_RENDER_PHASES, assertComponentDef, ComponentFactory } from './debug_node-3mmnD06K.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, EventEmitter, Host, HostBinding, HostListener, Inject, Input, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, Output, PACKAGE_ROOT_URL, PLATFORM_ID, Pipe, QueryList, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, Self, SimpleChange, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, ViewContainerRef, afterEveryRender, afterNextRender, asNativeElements, createEnvironmentInjector, createNgModule, createNgModuleRef, getDebugNode, inputBinding, makeStateKey, outputBinding, provideAppInitializer, provideNgReflectAttributes, provideZoneChangeDetection, provideZonelessChangeDetection, setTestabilityGetter, twoWayBinding, 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, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, LContext as ɵLContext, LocaleDataIndex as ɵLocaleDataIndex, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NoopNgZone as ɵNoopNgZone, 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, TracingAction as ɵTracingAction, USE_RUNTIME_DEPS_TRACKER_FOR_JIT as ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT, _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, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, 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, store as ɵstore, transitiveScopesFor as ɵtransitiveScopesFor, triggerResourceLoading as ɵtriggerResourceLoading, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵɵCopyDefinitionFeature, ɵɵExternalStylesFeature, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵattachSourceLocations, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵ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, ɵɵdomProperty, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinvalidFactory, ɵɵlistener, ɵɵloadQuery, ɵɵnextContext, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵ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, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵ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-3mmnD06K.mjs';
|
|
12
|
+
import { OutputEmitterRef } from './resource-nrAenwIA.mjs';
|
|
13
|
+
export { computed, effect, linkedSignal, resource, untracked, ResourceImpl as ɵResourceImpl, getOutputDestroyRef as ɵgetOutputDestroyRef } from './resource-nrAenwIA.mjs';
|
|
14
14
|
export { setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl } from './weak_ref-BaIq-pgY.mjs';
|
|
15
15
|
export { setCurrentInjector as ɵsetCurrentInjector } from './primitives/di.mjs';
|
|
16
16
|
import { clearAppScopedEarlyEventContract, EventContract, EventContractContainer, getAppScopedQueuedEventInfos, EventDispatcher, registerDispatcher, EventPhase, isEarlyEventType, isCaptureEventType } from './primitives/event-dispatch.mjs';
|
|
@@ -19,7 +19,7 @@ import '@angular/core/primitives/di';
|
|
|
19
19
|
import '@angular/core/primitives/signals';
|
|
20
20
|
import 'rxjs/operators';
|
|
21
21
|
import './attribute-BWp59EjE.mjs';
|
|
22
|
-
import './untracked-
|
|
22
|
+
import './untracked-2ouAFbCz.mjs';
|
|
23
23
|
|
|
24
24
|
const REQUIRED_UNSET_VALUE = /* @__PURE__ */ Symbol('InputSignalNode#UNSET');
|
|
25
25
|
// Note: Using an IIFE here to ensure that the spread assignment is not considered
|
|
@@ -229,7 +229,7 @@ function getDevModeNodeName(tNode) {
|
|
|
229
229
|
* }
|
|
230
230
|
* ```
|
|
231
231
|
* @initializerApiFunction {"showTypesInSignaturePreview": true}
|
|
232
|
-
* @
|
|
232
|
+
* @publicApi 19.0
|
|
233
233
|
*/
|
|
234
234
|
function output(opts) {
|
|
235
235
|
ngDevMode && assertInInjectionContext(output);
|
|
@@ -327,7 +327,7 @@ function viewChildRequiredFn(locator, opts) {
|
|
|
327
327
|
* }
|
|
328
328
|
* ```
|
|
329
329
|
*
|
|
330
|
-
* @
|
|
330
|
+
* @publicApi 19.0
|
|
331
331
|
* @initializerApiFunction
|
|
332
332
|
*/
|
|
333
333
|
const viewChild = (() => {
|
|
@@ -355,7 +355,7 @@ const viewChild = (() => {
|
|
|
355
355
|
* ```
|
|
356
356
|
*
|
|
357
357
|
* @initializerApiFunction
|
|
358
|
-
* @
|
|
358
|
+
* @publicApi 19.0
|
|
359
359
|
*/
|
|
360
360
|
function viewChildren(locator, opts) {
|
|
361
361
|
ngDevMode && assertInInjectionContext(viewChildren);
|
|
@@ -388,7 +388,7 @@ function contentChildRequiredFn(locator, opts) {
|
|
|
388
388
|
* ```
|
|
389
389
|
*
|
|
390
390
|
* @initializerApiFunction
|
|
391
|
-
* @
|
|
391
|
+
* @publicApi 19.0
|
|
392
392
|
*/
|
|
393
393
|
const contentChild = (() => {
|
|
394
394
|
// Note: This may be considered a side-effect, but nothing will depend on
|
|
@@ -415,7 +415,7 @@ const contentChild = (() => {
|
|
|
415
415
|
* ```
|
|
416
416
|
*
|
|
417
417
|
* @initializerApiFunction
|
|
418
|
-
* @
|
|
418
|
+
* @publicApi 19.0
|
|
419
419
|
*/
|
|
420
420
|
function contentChildren(locator, opts) {
|
|
421
421
|
return createMultiResultQuerySignalFn(opts);
|
|
@@ -517,7 +517,7 @@ function modelRequiredFunction(opts) {
|
|
|
517
517
|
* }
|
|
518
518
|
* ```
|
|
519
519
|
*
|
|
520
|
-
* @
|
|
520
|
+
* @publicApi 19.0
|
|
521
521
|
* @initializerApiFunction
|
|
522
522
|
*/
|
|
523
523
|
const model = (() => {
|
|
@@ -622,7 +622,7 @@ class Version {
|
|
|
622
622
|
/**
|
|
623
623
|
* @publicApi
|
|
624
624
|
*/
|
|
625
|
-
const VERSION = new Version('20.0.0-
|
|
625
|
+
const VERSION = new Version('20.0.0-rc.0');
|
|
626
626
|
|
|
627
627
|
function compileNgModuleFactory(injector, options, moduleType) {
|
|
628
628
|
ngDevMode && assertNgModuleType(moduleType);
|
|
@@ -896,14 +896,8 @@ function bootstrap(config) {
|
|
|
896
896
|
else {
|
|
897
897
|
config.moduleRef.resolveInjectorInitializers();
|
|
898
898
|
}
|
|
899
|
-
const exceptionHandler = envInjector.get(
|
|
899
|
+
const exceptionHandler = envInjector.get(INTERNAL_APPLICATION_ERROR_HANDLER);
|
|
900
900
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
901
|
-
if (exceptionHandler === null) {
|
|
902
|
-
const errorMessage = isApplicationBootstrapConfig(config)
|
|
903
|
-
? 'No `ErrorHandler` found in the Dependency Injection tree.'
|
|
904
|
-
: 'No ErrorHandler. Is platform module (BrowserModule) included';
|
|
905
|
-
throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, errorMessage);
|
|
906
|
-
}
|
|
907
901
|
if (envInjector.get(PROVIDED_ZONELESS) && envInjector.get(PROVIDED_NG_ZONE)) {
|
|
908
902
|
throw new RuntimeError(408 /* RuntimeErrorCode.PROVIDED_BOTH_ZONE_AND_ZONELESS */, 'Invalid change detection configuration: ' +
|
|
909
903
|
'provideZoneChangeDetection and provideZonelessChangeDetection cannot be used together.');
|
|
@@ -912,9 +906,7 @@ function bootstrap(config) {
|
|
|
912
906
|
let onErrorSubscription;
|
|
913
907
|
ngZone.runOutsideAngular(() => {
|
|
914
908
|
onErrorSubscription = ngZone.onError.subscribe({
|
|
915
|
-
next:
|
|
916
|
-
exceptionHandler.handleError(error);
|
|
917
|
-
},
|
|
909
|
+
next: exceptionHandler,
|
|
918
910
|
});
|
|
919
911
|
});
|
|
920
912
|
// If the whole platform is destroyed, invoke the `destroy` method
|
|
@@ -965,14 +957,25 @@ function bootstrap(config) {
|
|
|
965
957
|
return appRef;
|
|
966
958
|
}
|
|
967
959
|
else {
|
|
968
|
-
|
|
960
|
+
moduleBootstrapImpl?.(config.moduleRef, config.allPlatformModules);
|
|
969
961
|
return config.moduleRef;
|
|
970
962
|
}
|
|
971
963
|
});
|
|
972
964
|
});
|
|
973
965
|
});
|
|
974
966
|
}
|
|
975
|
-
|
|
967
|
+
/**
|
|
968
|
+
* Having a separate symbol for the module boostrap implementation allows us to
|
|
969
|
+
* tree shake the module based boostrap implementation in standalone apps.
|
|
970
|
+
*/
|
|
971
|
+
let moduleBootstrapImpl;
|
|
972
|
+
/**
|
|
973
|
+
* Set the implementation of the module based bootstrap.
|
|
974
|
+
*/
|
|
975
|
+
function setModuleBootstrapImpl() {
|
|
976
|
+
moduleBootstrapImpl = _moduleDoBootstrap;
|
|
977
|
+
}
|
|
978
|
+
function _moduleDoBootstrap(moduleRef, allPlatformModules) {
|
|
976
979
|
const appRef = moduleRef.injector.get(ApplicationRef);
|
|
977
980
|
if (moduleRef._bootstrapComponents.length > 0) {
|
|
978
981
|
moduleRef._bootstrapComponents.forEach((f) => appRef.bootstrap(f));
|
|
@@ -993,7 +996,7 @@ function _callAndReportToErrorHandler(errorHandler, ngZone, callback) {
|
|
|
993
996
|
const result = callback();
|
|
994
997
|
if (isPromise(result)) {
|
|
995
998
|
return result.catch((e) => {
|
|
996
|
-
ngZone.runOutsideAngular(() => errorHandler
|
|
999
|
+
ngZone.runOutsideAngular(() => errorHandler(e));
|
|
997
1000
|
// rethrow as the exception handler might not do it
|
|
998
1001
|
throw e;
|
|
999
1002
|
});
|
|
@@ -1001,7 +1004,7 @@ function _callAndReportToErrorHandler(errorHandler, ngZone, callback) {
|
|
|
1001
1004
|
return result;
|
|
1002
1005
|
}
|
|
1003
1006
|
catch (e) {
|
|
1004
|
-
ngZone.runOutsideAngular(() => errorHandler
|
|
1007
|
+
ngZone.runOutsideAngular(() => errorHandler(e));
|
|
1005
1008
|
// rethrow as the exception handler might not do it
|
|
1006
1009
|
throw e;
|
|
1007
1010
|
}
|
|
@@ -1050,6 +1053,7 @@ class PlatformRef {
|
|
|
1050
1053
|
errorHandlerEnvironmentInitializer,
|
|
1051
1054
|
];
|
|
1052
1055
|
const moduleRef = createNgModuleRefWithProviders(moduleFactory.moduleType, this.injector, allAppProviders);
|
|
1056
|
+
setModuleBootstrapImpl();
|
|
1053
1057
|
return bootstrap({
|
|
1054
1058
|
moduleRef,
|
|
1055
1059
|
allPlatformModules: this._modules,
|
|
@@ -1074,6 +1078,7 @@ class PlatformRef {
|
|
|
1074
1078
|
*/
|
|
1075
1079
|
bootstrapModule(moduleType, compilerOptions = []) {
|
|
1076
1080
|
const options = optionsReducer({}, compilerOptions);
|
|
1081
|
+
setModuleBootstrapImpl();
|
|
1077
1082
|
return compileNgModuleFactory(this.injector, options, moduleType).then((moduleFactory) => this.bootstrapModuleFactory(moduleFactory, options));
|
|
1078
1083
|
}
|
|
1079
1084
|
/**
|
|
@@ -1269,140 +1274,48 @@ function runPlatformInitializers(injector) {
|
|
|
1269
1274
|
});
|
|
1270
1275
|
}
|
|
1271
1276
|
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
* This check is will surface any existing errors hidden by `OnPush` components. By default, this check is exhaustive
|
|
1284
|
-
* and will always check all views, regardless of their "dirty" state and `ChangeDetectionStrategy`.
|
|
1285
|
-
*
|
|
1286
|
-
* When the `useNgZoneOnStable` option is `true`, this function will provide its own `NgZone` implementation and needs
|
|
1287
|
-
* to come after any other `NgZone` provider, including `provideZoneChangeDetection()` and `provideZonelessChangeDetection()`.
|
|
1288
|
-
*
|
|
1289
|
-
* @experimental
|
|
1290
|
-
* @publicApi
|
|
1291
|
-
*/
|
|
1292
|
-
function provideExperimentalCheckNoChangesForDebug(options) {
|
|
1293
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1294
|
-
if (options.interval === undefined && !options.useNgZoneOnStable) {
|
|
1295
|
-
throw new Error('Must provide one of `useNgZoneOnStable` or `interval`');
|
|
1296
|
-
}
|
|
1297
|
-
const checkNoChangesMode = options?.exhaustive === false
|
|
1298
|
-
? CheckNoChangesMode.OnlyDirtyViews
|
|
1299
|
-
: CheckNoChangesMode.Exhaustive;
|
|
1300
|
-
return makeEnvironmentProviders([
|
|
1301
|
-
options?.useNgZoneOnStable
|
|
1302
|
-
? { provide: NgZone, useFactory: () => new DebugNgZoneForCheckNoChanges(checkNoChangesMode) }
|
|
1303
|
-
: [],
|
|
1304
|
-
options?.interval !== undefined
|
|
1305
|
-
? exhaustiveCheckNoChangesInterval(options.interval, checkNoChangesMode)
|
|
1306
|
-
: [],
|
|
1307
|
-
{
|
|
1308
|
-
provide: ENVIRONMENT_INITIALIZER,
|
|
1309
|
-
multi: true,
|
|
1310
|
-
useValue: () => {
|
|
1311
|
-
if (options?.useNgZoneOnStable &&
|
|
1312
|
-
!(inject(NgZone) instanceof DebugNgZoneForCheckNoChanges)) {
|
|
1313
|
-
throw new Error('`provideExperimentalCheckNoChangesForDebug` with `useNgZoneOnStable` must be after any other provider for `NgZone`.');
|
|
1277
|
+
function exhaustiveCheckNoChangesInterval(interval) {
|
|
1278
|
+
return provideEnvironmentInitializer(() => {
|
|
1279
|
+
const applicationRef = inject(ApplicationRef);
|
|
1280
|
+
const errorHandler = inject(ErrorHandler);
|
|
1281
|
+
const scheduler = inject(ChangeDetectionSchedulerImpl);
|
|
1282
|
+
const ngZone = inject(NgZone);
|
|
1283
|
+
function scheduleCheckNoChanges() {
|
|
1284
|
+
ngZone.runOutsideAngular(() => {
|
|
1285
|
+
setTimeout(() => {
|
|
1286
|
+
if (applicationRef.destroyed) {
|
|
1287
|
+
return;
|
|
1314
1288
|
}
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
constructor(checkNoChangesMode) {
|
|
1330
|
-
const zonelessEnabled = inject(ZONELESS_ENABLED);
|
|
1331
|
-
// Use coalescing to ensure we aren't ever running this check synchronously
|
|
1332
|
-
super({
|
|
1333
|
-
shouldCoalesceEventChangeDetection: true,
|
|
1334
|
-
shouldCoalesceRunChangeDetection: zonelessEnabled,
|
|
1335
|
-
});
|
|
1336
|
-
this.checkNoChangesMode = checkNoChangesMode;
|
|
1337
|
-
if (zonelessEnabled) {
|
|
1338
|
-
// prevent emits to ensure code doesn't rely on these
|
|
1339
|
-
this.onMicrotaskEmpty.emit = () => { };
|
|
1340
|
-
this.onStable.emit = () => {
|
|
1341
|
-
this.scheduler ||= this.injector.get(ChangeDetectionSchedulerImpl);
|
|
1342
|
-
if (this.scheduler.pendingRenderTaskId || this.scheduler.runningTick) {
|
|
1343
|
-
return;
|
|
1344
|
-
}
|
|
1345
|
-
this.checkApplicationViews();
|
|
1346
|
-
};
|
|
1347
|
-
this.onUnstable.emit = () => { };
|
|
1348
|
-
}
|
|
1349
|
-
else {
|
|
1350
|
-
this.runOutsideAngular(() => {
|
|
1351
|
-
this.onStable.subscribe(() => {
|
|
1352
|
-
this.checkApplicationViews();
|
|
1353
|
-
});
|
|
1289
|
+
if (scheduler.pendingRenderTaskId || scheduler.runningTick) {
|
|
1290
|
+
scheduleCheckNoChanges();
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
for (const view of applicationRef.allViews) {
|
|
1294
|
+
try {
|
|
1295
|
+
checkNoChangesInternal(view._lView, true /** exhaustive */);
|
|
1296
|
+
}
|
|
1297
|
+
catch (e) {
|
|
1298
|
+
errorHandler.handleError(e);
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
scheduleCheckNoChanges();
|
|
1302
|
+
}, interval);
|
|
1354
1303
|
});
|
|
1355
1304
|
}
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
this.applicationRef ||= this.injector.get(ApplicationRef);
|
|
1359
|
-
for (const view of this.applicationRef.allViews) {
|
|
1360
|
-
try {
|
|
1361
|
-
checkNoChangesInternal(view._lView, this.checkNoChangesMode);
|
|
1362
|
-
}
|
|
1363
|
-
catch (e) {
|
|
1364
|
-
this.errorHandler ||= this.injector.get(ErrorHandler);
|
|
1365
|
-
this.errorHandler.handleError(e);
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1305
|
+
scheduleCheckNoChanges();
|
|
1306
|
+
});
|
|
1369
1307
|
}
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
ngZone.runOutsideAngular(() => {
|
|
1382
|
-
setTimeout(() => {
|
|
1383
|
-
if (applicationRef.destroyed) {
|
|
1384
|
-
return;
|
|
1385
|
-
}
|
|
1386
|
-
if (scheduler.pendingRenderTaskId || scheduler.runningTick) {
|
|
1387
|
-
scheduleCheckNoChanges();
|
|
1388
|
-
return;
|
|
1389
|
-
}
|
|
1390
|
-
for (const view of applicationRef.allViews) {
|
|
1391
|
-
try {
|
|
1392
|
-
checkNoChangesInternal(view._lView, checkNoChangesMode);
|
|
1393
|
-
}
|
|
1394
|
-
catch (e) {
|
|
1395
|
-
errorHandler.handleError(e);
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
scheduleCheckNoChanges();
|
|
1399
|
-
}, interval);
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
scheduleCheckNoChanges();
|
|
1403
|
-
};
|
|
1404
|
-
},
|
|
1405
|
-
};
|
|
1308
|
+
|
|
1309
|
+
function provideCheckNoChangesConfig(options) {
|
|
1310
|
+
return makeEnvironmentProviders(typeof ngDevMode === 'undefined' || ngDevMode
|
|
1311
|
+
? [
|
|
1312
|
+
{
|
|
1313
|
+
provide: UseExhaustiveCheckNoChanges,
|
|
1314
|
+
useValue: options.exhaustive,
|
|
1315
|
+
},
|
|
1316
|
+
options?.interval !== undefined ? exhaustiveCheckNoChangesInterval(options.interval) : [],
|
|
1317
|
+
]
|
|
1318
|
+
: []);
|
|
1406
1319
|
}
|
|
1407
1320
|
|
|
1408
1321
|
/**
|
|
@@ -2795,7 +2708,8 @@ function withEventReplay() {
|
|
|
2795
2708
|
if (!appsWithEventReplay.has(appRef)) {
|
|
2796
2709
|
const jsActionMap = inject(JSACTION_BLOCK_ELEMENT_MAP);
|
|
2797
2710
|
if (shouldEnableEventReplay(injector)) {
|
|
2798
|
-
|
|
2711
|
+
const appId = injector.get(APP_ID);
|
|
2712
|
+
setStashFn(appId, (rEl, eventName, listenerFn) => {
|
|
2799
2713
|
// If a user binds to a ng-container and uses a directive that binds using a host listener,
|
|
2800
2714
|
// this element could be a comment node. So we need to ensure we have an actual element
|
|
2801
2715
|
// node before stashing anything.
|
|
@@ -2811,7 +2725,6 @@ function withEventReplay() {
|
|
|
2811
2725
|
}, {
|
|
2812
2726
|
provide: APP_BOOTSTRAP_LISTENER,
|
|
2813
2727
|
useFactory: () => {
|
|
2814
|
-
const appId = inject(APP_ID);
|
|
2815
2728
|
const appRef = inject(ApplicationRef);
|
|
2816
2729
|
const { injector } = appRef;
|
|
2817
2730
|
return () => {
|
|
@@ -2826,6 +2739,7 @@ function withEventReplay() {
|
|
|
2826
2739
|
appsWithEventReplay.delete(appRef);
|
|
2827
2740
|
// Ensure that we're always safe calling this in the browser.
|
|
2828
2741
|
if (typeof ngServerMode !== 'undefined' && !ngServerMode) {
|
|
2742
|
+
const appId = injector.get(APP_ID);
|
|
2829
2743
|
// `_ejsa` should be deleted when the app is destroyed, ensuring that
|
|
2830
2744
|
// no elements are still captured in the global list and are not prevented
|
|
2831
2745
|
// from being garbage collected.
|
|
@@ -2833,7 +2747,7 @@ function withEventReplay() {
|
|
|
2833
2747
|
// Clean up the reference to the function set by the environment initializer,
|
|
2834
2748
|
// as the function closure may capture injected elements and prevent them
|
|
2835
2749
|
// from being properly garbage collected.
|
|
2836
|
-
|
|
2750
|
+
clearStashFn(appId);
|
|
2837
2751
|
}
|
|
2838
2752
|
});
|
|
2839
2753
|
// Kick off event replay logic once hydration for the initial part
|
|
@@ -4192,8 +4106,8 @@ function ɵɵngDeclarePipe(decl) {
|
|
|
4192
4106
|
return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);
|
|
4193
4107
|
}
|
|
4194
4108
|
|
|
4195
|
-
const NOT_SET = Symbol('NOT_SET');
|
|
4196
|
-
const EMPTY_CLEANUP_SET = new Set();
|
|
4109
|
+
const NOT_SET = /* @__PURE__ */ Symbol('NOT_SET');
|
|
4110
|
+
const EMPTY_CLEANUP_SET = /* @__PURE__ */ new Set();
|
|
4197
4111
|
const AFTER_RENDER_PHASE_EFFECT_NODE = /* @__PURE__ */ (() => ({
|
|
4198
4112
|
...SIGNAL_NODE,
|
|
4199
4113
|
consumerIsAlwaysLive: true,
|
|
@@ -4560,5 +4474,5 @@ const REQUEST_CONTEXT = new InjectionToken(typeof ngDevMode === 'undefined' || n
|
|
|
4560
4474
|
factory: () => null,
|
|
4561
4475
|
});
|
|
4562
4476
|
|
|
4563
|
-
export { APP_BOOTSTRAP_LISTENER, APP_ID, ApplicationInitStatus, ApplicationModule, ApplicationRef, COMPILER_OPTIONS, ChangeDetectorRef, ContentChild, ContentChildren, DefaultIterableDiffer, DestroyRef, ENVIRONMENT_INITIALIZER, EmbeddedViewRef,
|
|
4477
|
+
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, Optional, OutputEmitterRef, PLATFORM_INITIALIZER, PlatformRef, Query, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, SkipSelf, 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, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, AfterRenderManager as ɵAfterRenderManager, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, ChangeDetectionSchedulerImpl as ɵChangeDetectionSchedulerImpl, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, 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_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, NgModuleFactory as ɵNgModuleFactory, PERFORMANCE_MARK_PREFIX as ɵPERFORMANCE_MARK_PREFIX, PROVIDED_NG_ZONE as ɵPROVIDED_NG_ZONE, ComponentFactory as ɵRender3ComponentFactory, RuntimeError as ɵRuntimeError, SIGNAL as ɵSIGNAL, TracingService as ɵTracingService, ViewRef$1 as ɵViewRef, annotateForHydration as ɵannotateForHydration, compileNgModuleFactory as ɵcompileNgModuleFactory, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, disableProfiling as ɵdisableProfiling, enableProfiling as ɵenableProfiling, formatRuntimeError as ɵformatRuntimeError, getClosestComponentName as ɵgetClosestComponentName, _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, 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 };
|
|
4564
4478
|
//# sourceMappingURL=core.mjs.map
|