@angular/core 22.0.0-next.7 → 22.0.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/_attribute-chunk.mjs +1 -1
- package/fesm2022/_debug_node-chunk.mjs +967 -872
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_pending_tasks-chunk.mjs +10 -8
- package/fesm2022/_pending_tasks-chunk.mjs.map +1 -1
- package/fesm2022/_resource-chunk.mjs +25 -11
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +350 -6
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +4 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +2 -12
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/can-match-snapshot-required.cjs +1 -1
- package/schematics/bundles/change-detection-eager.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/http-xhr-backend.cjs +1 -1
- package/schematics/bundles/imports-CKV-ITqD.cjs +1 -1
- package/schematics/bundles/incremental-hydration.cjs +91 -0
- package/schematics/bundles/index-DADA7AvC.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/json-file-Drblb4E1.cjs +1916 -0
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-B9LlDDUg.cjs +1 -1
- package/schematics/bundles/ng_component_template-DPAF1aEA.cjs +1 -1
- package/schematics/bundles/ng_decorators-IVztR9rk.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +14 -6
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/strict-safe-navigation-narrow.cjs +32 -0
- package/schematics/bundles/strict-templates-default.cjs +63 -0
- package/schematics/migrations.json +13 -3
- package/types/_api-chunk.d.ts +9 -3
- package/types/_chrome_dev_tools_performance-chunk.d.ts +2 -2
- package/types/_debug_node-chunk.d.ts +132 -212
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +876 -749
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +2 -2
- package/schematics/bundles/strict-templates.cjs +0 -55
package/fesm2022/core.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.9
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultRequiredQuerySignalFn, createSingleResultOptionalQuerySignalFn, makePropDecorator, ɵɵdefineNgModule as __defineNgModule, ApplicationRef, setClassMetadata, NgModule, IS_EVENT_REPLAY_ENABLED, APP_ID, setStashFn, APP_BOOTSTRAP_LISTENER, JSACTION_EVENT_CONTRACT, JSACTION_BLOCK_ELEMENT_MAP, removeListeners, isIncrementalHydrationEnabled, performanceMarkFeature, EVENT_REPLAY_ENABLED_DEFAULT, sharedStashFunction, sharedMapFunction, DEFER_BLOCK_SSR_ID_ATTRIBUTE, invokeListeners, EVENT_REPLAY_QUEUE, triggerHydrationFromBlockName, enableStashEventListenerImpl, IS_HYDRATION_DOM_REUSE_ENABLED, IS_I18N_HYDRATION_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED, DehydratedBlockRegistry, DEHYDRATED_BLOCK_REGISTRY, processBlockData, gatherDeferBlocksCommentNodes, processAndInitTriggers, appendDeferBlocksToJSActionMap, NGH_DATA_KEY, verifySsrContentsIntegrity, enableRetrieveHydrationInfoImpl, enableLocateOrCreateElementNodeImpl, enableLocateOrCreateTextNodeImpl, enableLocateOrCreateContainerRefImpl, enableFindMatchingDehydratedViewImpl, enableLocateOrCreateElementContainerNodeImpl, enableLocateOrCreateContainerAnchorImpl, enableApplyRootElementTransformImpl, TransferState, setIsI18nHydrationSupportEnabled, Console, PRESERVE_HOST_CONTENT, cleanupDehydratedViews, countBlocksSkippedByHydration, enableLocateOrCreateI18nNodeImpl, enablePrepareI18nBlockForHydrationImpl, enableClaimDehydratedIcuCaseImpl, enableRetrieveDeferBlockDataImpl, provideAppInitializer, isListLikeIterable, iterateListLike, isJsObject, ViewRef as ViewRef$1, checkNoChangesInternal, ChangeDetectionSchedulerImpl, UseExhaustiveCheckNoChanges, Injectable, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty,
|
|
8
|
-
export { ANIMATION_MODULE_TYPE, APP_INITIALIZER, Attribute, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Compiler, CompilerFactory, Component, ComponentRef, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, Directive, ElementRef, Host, HostBinding, HostListener, Inject, Input, MAX_ANIMATION_TIMEOUT, MissingTranslationStrategy,
|
|
9
|
-
import { RuntimeError, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, ɵɵinject as __inject, ɵɵdefineInjector as __defineInjector, ENVIRONMENT_INITIALIZER, inject, unwrapRNode, CLEANUP, makeEnvironmentProviders, formatRuntimeError, DOCUMENT, ChangeDetectionScheduler, Injector, NgZone, DOC_PAGE_BASE_URL, DEBUG_TASK_TRACKER, stringify, ɵɵdefineInjectable as __defineInjectable, isComponentHost, getComponentLViewByIndex, DECLARATION_COMPONENT_VIEW, getLView, provideEnvironmentInitializer, ErrorHandler, ZONELESS_ENABLED, SCHEDULE_IN_ROOT_ZONE_DEFAULT, SCHEDULE_IN_ROOT_ZONE, INTERNAL_APPLICATION_ERROR_HANDLER, PendingTasksInternal, assertNgModuleType, ERROR_DETAILS_PAGE_BASE_URL, PROVIDED_ZONELESS, errorHandlerEnvironmentInitializer, runInInjectionContext, INJECTOR_SCOPE, isLContainer, hasI18n, RENDERER, unwrapLView, HOST, getComponentDef, assertTNode, isProjectionTNode, PARENT, CONTEXT, HEADER_OFFSET,
|
|
10
|
-
export { EnvironmentInjector, EventEmitter, INJECTOR, PendingTasks, VERSION, Version, forwardRef, importProvidersFrom, 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,
|
|
7
|
+
import { getCompilerFacade, angularCoreDiEnv, reflectDependencies, makeDecorator, ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultRequiredQuerySignalFn, createSingleResultOptionalQuerySignalFn, makePropDecorator, ɵɵdefineNgModule as __defineNgModule, ApplicationRef, setClassMetadata, NgModule, IS_EVENT_REPLAY_ENABLED, APP_ID, setStashFn, APP_BOOTSTRAP_LISTENER, JSACTION_EVENT_CONTRACT, JSACTION_BLOCK_ELEMENT_MAP, removeListeners, isIncrementalHydrationEnabled, performanceMarkFeature, EVENT_REPLAY_ENABLED_DEFAULT, sharedStashFunction, sharedMapFunction, DEFER_BLOCK_SSR_ID_ATTRIBUTE, invokeListeners, EVENT_REPLAY_QUEUE, triggerHydrationFromBlockName, enableStashEventListenerImpl, IS_HYDRATION_DOM_REUSE_ENABLED, IS_I18N_HYDRATION_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED, DehydratedBlockRegistry, DEHYDRATED_BLOCK_REGISTRY, processBlockData, gatherDeferBlocksCommentNodes, processAndInitTriggers, appendDeferBlocksToJSActionMap, NGH_DATA_KEY, verifySsrContentsIntegrity, enableRetrieveHydrationInfoImpl, enableLocateOrCreateElementNodeImpl, enableLocateOrCreateTextNodeImpl, enableLocateOrCreateContainerRefImpl, enableFindMatchingDehydratedViewImpl, enableLocateOrCreateElementContainerNodeImpl, enableLocateOrCreateContainerAnchorImpl, enableApplyRootElementTransformImpl, TransferState, setIsI18nHydrationSupportEnabled, Console, PRESERVE_HOST_CONTENT, cleanupDehydratedViews, countBlocksSkippedByHydration, enableLocateOrCreateI18nNodeImpl, enablePrepareI18nBlockForHydrationImpl, enableClaimDehydratedIcuCaseImpl, enableRetrieveDeferBlockDataImpl, provideAppInitializer, isListLikeIterable, iterateListLike, isJsObject, ViewRef as ViewRef$1, checkNoChangesInternal, ChangeDetectionSchedulerImpl, UseExhaustiveCheckNoChanges, Injectable, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty, resolveComponentResources, IMAGE_CONFIG, getDocument, remove, isPromise, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, createNgModuleRefWithProviders, optionsReducer, validAppIdInitializer, provideZonelessChangeDetectionInternal, getInjectorMetadata, getInjectorProviders, getNodeInjectorTNode, getLContext, walkLViewDirectives, NodeInjector, ChainedInjector, getInjector, getSignalGraph, publishDefaultGlobalUtils, PLATFORM_INITIALIZER, publishSignalConfiguration, profiler, assertStandaloneComponentType, EnvironmentNgModuleRefAdapter, ProfilerEvent, isI18nHydrationEnabled, NGH_DEFER_BLOCKS_KEY, getLNodeForHydration, NGH_ATTR_NAME, SKIP_HYDRATION_ATTR_NAME, isI18nHydrationSupportEnabled, ViewEncapsulation as ViewEncapsulation$1, getOrComputeI18nChildren, trySerializeI18nBlock, I18N_DATA, isTNodeShape, isDetachedByI18n, TEMPLATES, isDisconnectedNode, isInSkipHydrationBlock, unsupportedProjectionOfDomNodes, 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, NOOP_AFTER_RENDER_REF, AfterRenderManager, TracingService, AfterRenderImpl, AfterRenderSequence, AFTER_RENDER_PHASES, setClassMetadataAsync, angularCoreEnv, getRegisteredNgModuleType, assertComponentDef, ComponentFactory } from './_debug_node-chunk.mjs';
|
|
8
|
+
export { ANIMATION_MODULE_TYPE, APP_INITIALIZER, Attribute, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Compiler, CompilerFactory, Component, ComponentRef, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, Directive, ElementRef, Host, HostBinding, HostListener, Inject, Input, MAX_ANIMATION_TIMEOUT, MissingTranslationStrategy, 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, enableProfiling, getDebugNode, inputBinding, makeStateKey, outputBinding, provideIdleServiceWith, provideNgReflectAttributes, provideZonelessChangeDetection, setTestabilityGetter, twoWayBinding, ANIMATIONS_DISABLED as ɵANIMATIONS_DISABLED, AcxChangeDetectionStrategy as ɵAcxChangeDetectionStrategy, AcxViewEncapsulation as ɵAcxViewEncapsulation, ControlFlowBlockType as ɵControlFlowBlockType, DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockState as ɵDeferBlockState, 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, SHARED_STYLES_HOST as ɵSHARED_STYLES_HOST, SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, TimerScheduler as ɵTimerScheduler, TracingAction as ɵTracingAction, USE_PENDING_TASKS as ɵUSE_PENDING_TASKS, _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, getClosestComponentName as ɵgetClosestComponentName, getDeferBlocks as ɵgetDeferBlocks, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, getTransferState as ɵgetTransferState, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, inferTagNameFromDefinition as ɵinferTagNameFromDefinition, isComponentDefPendingResolution as ɵisComponentDefPendingResolution, isNgModule as ɵisNgModule, isSubscribable as ɵisSubscribable, isViewDirty as ɵisViewDirty, markForRefresh as ɵmarkForRefresh, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, promiseWithResolvers as ɵpromiseWithResolvers, publishExternalGlobalUtil as ɵpublishExternalGlobalUtil, readHydrationInfo as ɵreadHydrationInfo, registerLocaleData as ɵregisterLocaleData, renderDeferBlockState as ɵrenderDeferBlockState, resetCompiledComponents as ɵresetCompiledComponents, resetIncrementalHydrationEnabledWarnedForTests as ɵresetIncrementalHydrationEnabledWarnedForTests, 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, ɵɵControlFeature, ɵɵExternalStylesFeature, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵanimateEnter, ɵɵanimateEnterListener, ɵɵanimateLeave, ɵɵanimateLeaveListener, ɵɵariaProperty, ɵɵarrowFunction, ɵɵattachSourceLocations, ɵɵattribute, ɵɵclassMap, ɵɵclassProp, ɵɵcomponentInstance, ɵɵconditional, ɵɵconditionalBranchCreate, ɵɵconditionalCreate, ɵɵcontentQuery, ɵɵcontentQuerySignal, ɵɵcontrol, ɵɵcontrolCreate, ɵɵ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, ɵɵdefineService, ɵɵ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, ɵɵvalidateAttribute, ɵɵviewQuery, ɵɵviewQuerySignal } from './_debug_node-chunk.mjs';
|
|
9
|
+
import { RuntimeError, NG_PROV_DEF, NG_FACTORY_DEF, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, ɵɵinject as __inject, ɵɵdefineInjector as __defineInjector, ENVIRONMENT_INITIALIZER, inject, unwrapRNode, CLEANUP, makeEnvironmentProviders, formatRuntimeError, DOCUMENT, ChangeDetectionScheduler, Injector, NgZone, DOC_PAGE_BASE_URL, DEBUG_TASK_TRACKER, stringify, ɵɵdefineInjectable as __defineInjectable, isComponentHost, getComponentLViewByIndex, DECLARATION_COMPONENT_VIEW, getLView, provideEnvironmentInitializer, ErrorHandler, ZONELESS_ENABLED, SCHEDULE_IN_ROOT_ZONE_DEFAULT, SCHEDULE_IN_ROOT_ZONE, INTERNAL_APPLICATION_ERROR_HANDLER, PendingTasksInternal, assertNgModuleType, ERROR_DETAILS_PAGE_BASE_URL, PROVIDED_ZONELESS, errorHandlerEnvironmentInitializer, TVIEW, getLViewParent, R3Injector, NullInjector, INJECTOR, T_HOST, runInInjectionContext, INJECTOR_SCOPE, isLContainer, hasI18n, RENDERER, unwrapLView, HOST, getComponentDef, assertTNode, isProjectionTNode, PARENT, CONTEXT, HEADER_OFFSET, isRootView, CONTAINER_HEADER_OFFSET, assertNotInReactiveContext, ViewContext, DestroyRef, setInjectorProfilerContext, emitAfterRenderEffectPhaseCreatedEvent, getNullInjector, isSignal, effect, _global } from './_pending_tasks-chunk.mjs';
|
|
10
|
+
export { EnvironmentInjector, EventEmitter, INJECTOR$1 as INJECTOR, PendingTasks, VERSION, Version, forwardRef, importProvidersFrom, isStandalone, isWritableSignal, 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, NoopNgZone as ɵNoopNgZone, 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 './_pending_tasks-chunk.mjs';
|
|
11
11
|
import { OutputEmitterRef, computed, ResourceValueError, linkedSignal, isInParamsFunction, invalidResourceCreationInParams, setInParamsFunction, rethrowFatalErrors, untracked } from './_resource-chunk.mjs';
|
|
12
12
|
export { ResourceDependencyError, ResourceParamsStatus, resource, ResourceImpl as ɵResourceImpl, encapsulateResourceError as ɵencapsulateResourceError, getOutputDestroyRef as ɵgetOutputDestroyRef } from './_resource-chunk.mjs';
|
|
13
13
|
import { Subscription } from 'rxjs';
|
|
@@ -64,6 +64,7 @@ var FactoryTarget;
|
|
|
64
64
|
FactoryTarget[FactoryTarget["Injectable"] = 2] = "Injectable";
|
|
65
65
|
FactoryTarget[FactoryTarget["Pipe"] = 3] = "Pipe";
|
|
66
66
|
FactoryTarget[FactoryTarget["NgModule"] = 4] = "NgModule";
|
|
67
|
+
FactoryTarget[FactoryTarget["Service"] = 5] = "Service";
|
|
67
68
|
})(FactoryTarget || (FactoryTarget = {}));
|
|
68
69
|
var R3TemplateDependencyKind;
|
|
69
70
|
(function (R3TemplateDependencyKind) {
|
|
@@ -86,6 +87,60 @@ var Framework;
|
|
|
86
87
|
Framework["Wiz"] = "wiz";
|
|
87
88
|
})(Framework || (Framework = {}));
|
|
88
89
|
|
|
90
|
+
function compileService(type, meta) {
|
|
91
|
+
let def = null;
|
|
92
|
+
let factoryDef = null;
|
|
93
|
+
if (!type.hasOwnProperty(NG_PROV_DEF)) {
|
|
94
|
+
Object.defineProperty(type, NG_PROV_DEF, {
|
|
95
|
+
get: () => {
|
|
96
|
+
if (def === null) {
|
|
97
|
+
const compiler = getCompilerFacade({
|
|
98
|
+
usage: 0,
|
|
99
|
+
kind: 'service',
|
|
100
|
+
type
|
|
101
|
+
});
|
|
102
|
+
def = compiler.compileService(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getServiceMetadata(type, meta));
|
|
103
|
+
}
|
|
104
|
+
return def;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (!type.hasOwnProperty(NG_FACTORY_DEF)) {
|
|
109
|
+
Object.defineProperty(type, NG_FACTORY_DEF, {
|
|
110
|
+
get: () => {
|
|
111
|
+
if (factoryDef === null) {
|
|
112
|
+
const compiler = getCompilerFacade({
|
|
113
|
+
usage: 0,
|
|
114
|
+
kind: 'service',
|
|
115
|
+
type
|
|
116
|
+
});
|
|
117
|
+
factoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {
|
|
118
|
+
name: type.name,
|
|
119
|
+
type,
|
|
120
|
+
typeArgumentCount: 0,
|
|
121
|
+
deps: reflectDependencies(type),
|
|
122
|
+
target: compiler.FactoryTarget.Service
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return factoryDef;
|
|
126
|
+
},
|
|
127
|
+
configurable: true
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function getServiceMetadata(type, srcMeta) {
|
|
132
|
+
const compilerMeta = {
|
|
133
|
+
name: type.name,
|
|
134
|
+
type: type,
|
|
135
|
+
typeArgumentCount: 0,
|
|
136
|
+
autoProvided: srcMeta?.autoProvided,
|
|
137
|
+
factory: srcMeta?.factory
|
|
138
|
+
};
|
|
139
|
+
return compilerMeta;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const Service = makeDecorator('Service', undefined, undefined, undefined, (type, meta) => compileService(type, meta));
|
|
143
|
+
|
|
89
144
|
class HostAttributeToken {
|
|
90
145
|
attributeName;
|
|
91
146
|
constructor(attributeName) {
|
|
@@ -2035,13 +2090,285 @@ class PlatformRef {
|
|
|
2035
2090
|
}], null);
|
|
2036
2091
|
})();
|
|
2037
2092
|
|
|
2093
|
+
function serializeInjector(injector) {
|
|
2094
|
+
const metadata = getInjectorMetadata(injector);
|
|
2095
|
+
if (metadata?.type === 'null') {
|
|
2096
|
+
return {
|
|
2097
|
+
name: 'Null Injector',
|
|
2098
|
+
type: 'null',
|
|
2099
|
+
providers: [],
|
|
2100
|
+
children: []
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
let allProviders = [];
|
|
2104
|
+
if (metadata?.type === 'element' || metadata?.type === 'environment') {
|
|
2105
|
+
allProviders = getInjectorProviders(injector).map(record => {
|
|
2106
|
+
return {
|
|
2107
|
+
token: record.token,
|
|
2108
|
+
value: injector.get(record.token, null, {
|
|
2109
|
+
optional: true,
|
|
2110
|
+
self: true
|
|
2111
|
+
})
|
|
2112
|
+
};
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
if (metadata?.type === 'element') {
|
|
2116
|
+
const tNode = getNodeInjectorTNode(injector);
|
|
2117
|
+
const viewProvidersCount = tNode ? tNode.providerIndexes >> 20 : 0;
|
|
2118
|
+
const viewProviders = allProviders.slice(0, viewProvidersCount);
|
|
2119
|
+
const resolvedProviders = allProviders.slice(viewProvidersCount);
|
|
2120
|
+
return {
|
|
2121
|
+
name: injector.constructor.name,
|
|
2122
|
+
type: 'element',
|
|
2123
|
+
providers: resolvedProviders,
|
|
2124
|
+
viewProviders,
|
|
2125
|
+
children: [],
|
|
2126
|
+
hostElement: metadata.source
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
return {
|
|
2130
|
+
name: metadata?.source ?? injector.constructor.name ?? 'Unknown Injector',
|
|
2131
|
+
type: 'environment',
|
|
2132
|
+
providers: allProviders,
|
|
2133
|
+
children: []
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
const diGraphTool = {
|
|
2138
|
+
name: 'angular:di_graph',
|
|
2139
|
+
description: `
|
|
2140
|
+
Exposes the Angular Dependency Injection (DI) graph of the application.
|
|
2141
|
+
|
|
2142
|
+
This tool extracts both the element injector tree (associated with DOM elements and components)
|
|
2143
|
+
and the environment injector tree (associated with modules and standalone application roots).
|
|
2144
|
+
It captures the relationship structure and the providers resolved at each level.
|
|
2145
|
+
|
|
2146
|
+
Returns:
|
|
2147
|
+
- \`elementInjectorRoots\`: An array of root element injectors (one for each Angular application
|
|
2148
|
+
root found). Each node forms a tree hierarchy:
|
|
2149
|
+
- \`name\`: The constructor name of this injector.
|
|
2150
|
+
- \`type\`: 'element'.
|
|
2151
|
+
- \`providers\`: Array of providers configured on this injector.
|
|
2152
|
+
- \`token\`: The DI token.
|
|
2153
|
+
- \`value\`: The resolved value of that provider if it was instantiated.
|
|
2154
|
+
- \`hostElement\`: The DOM element that this injector is associated with.
|
|
2155
|
+
- \`children\`: Array of child element injectors.
|
|
2156
|
+
- \`environmentInjectorRoot\`: The root environment injector. It forms a tree hierarchy of nodes
|
|
2157
|
+
representing all environment injectors:
|
|
2158
|
+
- \`name\`: The identifier for the environment injector.
|
|
2159
|
+
- \`type\`: 'environment' or 'null'.
|
|
2160
|
+
- \`providers\`: Array of providers configured on this injector.
|
|
2161
|
+
- \`token\`: The DI token.
|
|
2162
|
+
- \`value\`: The resolved value of that provider if it was instantiated.
|
|
2163
|
+
- \`children\`: Array of child environment injectors.
|
|
2164
|
+
`.trim(),
|
|
2165
|
+
inputSchema: {
|
|
2166
|
+
type: 'object',
|
|
2167
|
+
properties: {}
|
|
2168
|
+
},
|
|
2169
|
+
execute: async () => {
|
|
2170
|
+
const roots = Array.from(document.querySelectorAll('[ng-version]'));
|
|
2171
|
+
if (roots.length === 0) {
|
|
2172
|
+
throw new Error('Could not find Angular root element ([ng-version]) on the page.');
|
|
2173
|
+
}
|
|
2174
|
+
return discoverDiGraph(roots);
|
|
2175
|
+
}
|
|
2176
|
+
};
|
|
2177
|
+
function discoverDiGraph(roots) {
|
|
2178
|
+
const rootLViews = roots.map(root => {
|
|
2179
|
+
const lContext = getLContext(root);
|
|
2180
|
+
if (!lContext?.lView) {
|
|
2181
|
+
throw new Error(`Could not find an \`LView\` for root \`<${root.tagName.toLowerCase()}>\`, is it an Angular component?`);
|
|
2182
|
+
}
|
|
2183
|
+
return lContext.lView;
|
|
2184
|
+
});
|
|
2185
|
+
return {
|
|
2186
|
+
elementInjectorRoots: rootLViews.map(rootLView => walkElementInjectors(rootLView)),
|
|
2187
|
+
environmentInjectorRoot: collectEnvInjectors(rootLViews)
|
|
2188
|
+
};
|
|
2189
|
+
}
|
|
2190
|
+
function walkElementInjectors(rootLView) {
|
|
2191
|
+
if (rootLView[TVIEW].type !== 0) {
|
|
2192
|
+
throw new Error(`Expected a root LView but got type: \`${rootLView[TVIEW].type}\`.`);
|
|
2193
|
+
}
|
|
2194
|
+
const stack = [];
|
|
2195
|
+
for (const [tNode, lView] of walkLViewDirectives(rootLView)) {
|
|
2196
|
+
const injector = new NodeInjector(tNode, lView);
|
|
2197
|
+
const serialized = serializeInjector(injector);
|
|
2198
|
+
while (stack.length > 0) {
|
|
2199
|
+
const [lastTNode, lastLView, lastInjector] = stack[stack.length - 1];
|
|
2200
|
+
const isDescendantInSameView = isTNodeDescendant(tNode, lastTNode);
|
|
2201
|
+
const isDescendantInDifferentView = isLViewDescendantOfTNode(lView, lastLView, lastTNode);
|
|
2202
|
+
if (isDescendantInSameView || isDescendantInDifferentView) {
|
|
2203
|
+
lastInjector.children.push(serialized);
|
|
2204
|
+
break;
|
|
2205
|
+
} else {
|
|
2206
|
+
stack.pop();
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
stack.push([tNode, lView, serialized]);
|
|
2210
|
+
}
|
|
2211
|
+
if (stack.length === 0) {
|
|
2212
|
+
throw new Error(`Expected at least one component/directive in the root \`LView\`.`);
|
|
2213
|
+
}
|
|
2214
|
+
const [,, rootInjector] = stack[0];
|
|
2215
|
+
return rootInjector;
|
|
2216
|
+
}
|
|
2217
|
+
function collectEnvInjectors(rootLViews) {
|
|
2218
|
+
const serializedEnvInjectorMap = new Map();
|
|
2219
|
+
let rootEnvInjector = undefined;
|
|
2220
|
+
function serializeAncestors(injector) {
|
|
2221
|
+
const existing = serializedEnvInjectorMap.get(injector);
|
|
2222
|
+
if (existing) return existing;
|
|
2223
|
+
const serialized = serializeInjector(injector);
|
|
2224
|
+
serializedEnvInjectorMap.set(injector, serialized);
|
|
2225
|
+
const parentInjector = getParentEnvInjector(injector);
|
|
2226
|
+
if (parentInjector) {
|
|
2227
|
+
const parentSerialized = serializeAncestors(parentInjector);
|
|
2228
|
+
parentSerialized.children.push(serialized);
|
|
2229
|
+
} else {
|
|
2230
|
+
if (!rootEnvInjector) {
|
|
2231
|
+
rootEnvInjector = serialized;
|
|
2232
|
+
} else if (rootEnvInjector !== serialized) {
|
|
2233
|
+
throw new Error('Expected only one root environment injector, but found multiple.', {
|
|
2234
|
+
cause: {
|
|
2235
|
+
firstRoot: rootEnvInjector,
|
|
2236
|
+
secondRoot: serialized
|
|
2237
|
+
}
|
|
2238
|
+
});
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
return serialized;
|
|
2242
|
+
}
|
|
2243
|
+
for (const rootLView of rootLViews) {
|
|
2244
|
+
for (const [, lView] of walkLViewDirectives(rootLView)) {
|
|
2245
|
+
serializeAncestors(lView[INJECTOR]);
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
if (!rootEnvInjector) {
|
|
2249
|
+
throw new Error('Expected a root environment injector but did not find one.');
|
|
2250
|
+
}
|
|
2251
|
+
return rootEnvInjector;
|
|
2252
|
+
}
|
|
2253
|
+
function isTNodeDescendant(node, ancestor) {
|
|
2254
|
+
let curr = node;
|
|
2255
|
+
while (curr) {
|
|
2256
|
+
if (curr === ancestor) return true;
|
|
2257
|
+
curr = curr.parent;
|
|
2258
|
+
}
|
|
2259
|
+
return false;
|
|
2260
|
+
}
|
|
2261
|
+
function isLViewDescendantOfTNode(lView, parentLView, parentTNode) {
|
|
2262
|
+
let currentLView = lView;
|
|
2263
|
+
let hostTNode = null;
|
|
2264
|
+
while (currentLView && currentLView !== parentLView) {
|
|
2265
|
+
hostTNode = currentLView[T_HOST];
|
|
2266
|
+
currentLView = getLViewParent(currentLView);
|
|
2267
|
+
}
|
|
2268
|
+
return currentLView === parentLView && hostTNode !== null && isTNodeDescendant(hostTNode, parentTNode);
|
|
2269
|
+
}
|
|
2270
|
+
function getParentEnvInjector(injector) {
|
|
2271
|
+
if (injector instanceof ChainedInjector) {
|
|
2272
|
+
const chainedInjector = injector;
|
|
2273
|
+
return chainedInjector.parentInjector;
|
|
2274
|
+
} else if (injector instanceof R3Injector) {
|
|
2275
|
+
return injector.parent;
|
|
2276
|
+
} else if (injector instanceof NullInjector) {
|
|
2277
|
+
return undefined;
|
|
2278
|
+
} else {
|
|
2279
|
+
throw new Error(`Unknown injector type: "${injector.constructor.name}".`);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
const signalGraphTool = {
|
|
2284
|
+
name: 'angular:signal_graph',
|
|
2285
|
+
description: `
|
|
2286
|
+
Exposes the Angular signal dependency graph for a given DOM element.
|
|
2287
|
+
|
|
2288
|
+
This tool extracts the reactive dependency graph (signals, computeds, and effects) that
|
|
2289
|
+
are transitive dependencies of the effects of that element. It will include signals
|
|
2290
|
+
authored in other components/services and depended upon by the target component, but
|
|
2291
|
+
will *not* include signals only used in descendant components effects.
|
|
2292
|
+
|
|
2293
|
+
Params:
|
|
2294
|
+
- \`target\`: The element to get the signal graph for. Must be the host element of an
|
|
2295
|
+
Angular component.
|
|
2296
|
+
|
|
2297
|
+
Returns:
|
|
2298
|
+
- \`nodes\`: An array of reactive nodes discovered in the context. Each node contains:
|
|
2299
|
+
- \`kind\`: The type of reactive node ('signal', 'computed', 'effect', or 'template'
|
|
2300
|
+
for component template effects).
|
|
2301
|
+
- \`value\`: The current evaluated value of the node (if applicable).
|
|
2302
|
+
- \`label\`: The symbol name of the associated signal if available (ex.
|
|
2303
|
+
\`const foo = signal(0);\` has \`label: 'foo'\`).
|
|
2304
|
+
- \`epoch\`: The internal version number of the node's value.
|
|
2305
|
+
- \`edges\`: An array of dependency links representing which nodes read from which other
|
|
2306
|
+
nodes.
|
|
2307
|
+
- \`consumer\`: The index in the \`nodes\` array of the node that depends on the value.
|
|
2308
|
+
- \`producer\`: The index in the \`nodes\` array of the node that provides the value.
|
|
2309
|
+
|
|
2310
|
+
Example: An edge with \`{consumer: 2, producer: 0}\` means that \`nodes[2]\` (e.g. an
|
|
2311
|
+
\`effect\`) reads the value of \`nodes[0]\` (e.g. a \`signal\`).
|
|
2312
|
+
`.trim(),
|
|
2313
|
+
inputSchema: {
|
|
2314
|
+
type: 'object',
|
|
2315
|
+
properties: {
|
|
2316
|
+
target: {
|
|
2317
|
+
type: 'object',
|
|
2318
|
+
description: 'The element to get the signal graph for.',
|
|
2319
|
+
'x-mcp-type': 'HTMLElement'
|
|
2320
|
+
}
|
|
2321
|
+
},
|
|
2322
|
+
required: ['target']
|
|
2323
|
+
},
|
|
2324
|
+
execute: async ({
|
|
2325
|
+
target
|
|
2326
|
+
}) => {
|
|
2327
|
+
if (!(target instanceof HTMLElement)) {
|
|
2328
|
+
throw new Error('Invalid input: "target" must be an HTMLElement.');
|
|
2329
|
+
}
|
|
2330
|
+
const injector = getInjector(target);
|
|
2331
|
+
if (injector instanceof NullInjector) {
|
|
2332
|
+
throw new Error('Invalid input: "target" is not the host element of an Angular component.');
|
|
2333
|
+
}
|
|
2334
|
+
const graph = getSignalGraph(injector);
|
|
2335
|
+
return {
|
|
2336
|
+
nodes: graph.nodes.map(({
|
|
2337
|
+
id,
|
|
2338
|
+
debuggableFn,
|
|
2339
|
+
...node
|
|
2340
|
+
}) => node),
|
|
2341
|
+
edges: graph.edges
|
|
2342
|
+
};
|
|
2343
|
+
}
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2346
|
+
function registerAiTools() {
|
|
2347
|
+
if (typeof window === 'undefined' || !window.addEventListener) return () => {};
|
|
2348
|
+
function listener(inputEvent) {
|
|
2349
|
+
const event = inputEvent;
|
|
2350
|
+
event.respondWith({
|
|
2351
|
+
name: 'Angular',
|
|
2352
|
+
tools: [diGraphTool, signalGraphTool]
|
|
2353
|
+
});
|
|
2354
|
+
}
|
|
2355
|
+
window.addEventListener('devtoolstooldiscovery', listener);
|
|
2356
|
+
return () => {
|
|
2357
|
+
window.removeEventListener('devtoolstooldiscovery', listener);
|
|
2358
|
+
};
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2038
2361
|
let _platformInjector = null;
|
|
2362
|
+
let _unregisterAiTools = null;
|
|
2039
2363
|
function createPlatform(injector) {
|
|
2040
2364
|
if (getPlatform()) {
|
|
2041
2365
|
throw new RuntimeError(400, ngDevMode && 'There can be only one platform. Destroy the previous one to create a new one.');
|
|
2042
2366
|
}
|
|
2043
2367
|
publishDefaultGlobalUtils();
|
|
2044
2368
|
publishSignalConfiguration();
|
|
2369
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
2370
|
+
_unregisterAiTools = registerAiTools();
|
|
2371
|
+
}
|
|
2045
2372
|
_platformInjector = typeof ngServerMode === 'undefined' || !ngServerMode ? injector : null;
|
|
2046
2373
|
const platform = injector.get(PlatformRef);
|
|
2047
2374
|
runPlatformInitializers(injector);
|
|
@@ -2091,11 +2418,18 @@ function getPlatform() {
|
|
|
2091
2418
|
return _platformInjector?.get(PlatformRef) ?? null;
|
|
2092
2419
|
}
|
|
2093
2420
|
function destroyPlatform() {
|
|
2421
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
2422
|
+
_unregisterAiTools?.();
|
|
2423
|
+
_unregisterAiTools = null;
|
|
2424
|
+
}
|
|
2094
2425
|
getPlatform()?.destroy();
|
|
2095
2426
|
}
|
|
2096
2427
|
function createOrReusePlatformInjector(providers = []) {
|
|
2097
2428
|
if (_platformInjector) return _platformInjector;
|
|
2098
2429
|
publishDefaultGlobalUtils();
|
|
2430
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
2431
|
+
_unregisterAiTools = registerAiTools();
|
|
2432
|
+
}
|
|
2099
2433
|
const injector = createPlatformInjector(providers);
|
|
2100
2434
|
if (typeof ngServerMode === 'undefined' || !ngServerMode) {
|
|
2101
2435
|
_platformInjector = injector;
|
|
@@ -2794,6 +3128,8 @@ function getFactoryKind(target) {
|
|
|
2794
3128
|
return 'pipe';
|
|
2795
3129
|
case FactoryTarget.NgModule:
|
|
2796
3130
|
return 'NgModule';
|
|
3131
|
+
case FactoryTarget.Service:
|
|
3132
|
+
return 'service';
|
|
2797
3133
|
}
|
|
2798
3134
|
}
|
|
2799
3135
|
function ɵɵngDeclareInjectable(decl) {
|
|
@@ -2828,6 +3164,14 @@ function ɵɵngDeclarePipe(decl) {
|
|
|
2828
3164
|
});
|
|
2829
3165
|
return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);
|
|
2830
3166
|
}
|
|
3167
|
+
function ɵɵngDeclareService(decl) {
|
|
3168
|
+
const compiler = getCompilerFacade({
|
|
3169
|
+
usage: 1,
|
|
3170
|
+
kind: 'service',
|
|
3171
|
+
type: decl.type
|
|
3172
|
+
});
|
|
3173
|
+
return compiler.compileServiceDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵprov.js`, decl);
|
|
3174
|
+
}
|
|
2831
3175
|
|
|
2832
3176
|
function getModuleFactory(id) {
|
|
2833
3177
|
const type = getRegisteredNgModuleType(id);
|
|
@@ -3022,5 +3366,5 @@ function enableProdMode() {
|
|
|
3022
3366
|
}
|
|
3023
3367
|
}
|
|
3024
3368
|
|
|
3025
|
-
export { APP_BOOTSTRAP_LISTENER, APP_ID, ApplicationInitStatus, ApplicationModule, ApplicationRef, COMPILER_OPTIONS, ChangeDetectorRef, ContentChild, ContentChildren, DOCUMENT, 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, computed, contentChild, contentChildren, createComponent, createPlatform, createPlatformFactory, debounced, destroyPlatform, effect, enableProdMode, getModuleFactory, getNgModuleById, getPlatform, inject, input, isDevMode, isSignal, linkedSignal, makeEnvironmentProviders, mergeApplicationConfig, model, numberAttribute, output, platformCore, provideAppInitializer, provideCheckNoChangesConfig, provideEnvironmentInitializer, providePlatformInitializer, provideStabilityDebugging, provideZoneChangeDetection, reflectComponentType, resourceFromSnapshots, runInInjectionContext, untracked, 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, EVENT_REPLAY_QUEUE as ɵEVENT_REPLAY_QUEUE, Framework as ɵFramework, 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, ProfilerEvent as ɵProfilerEvent, 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, 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, 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 };
|
|
3369
|
+
export { APP_BOOTSTRAP_LISTENER, APP_ID, ApplicationInitStatus, ApplicationModule, ApplicationRef, COMPILER_OPTIONS, ChangeDetectorRef, ContentChild, ContentChildren, DOCUMENT, 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, Service, TransferState, ViewChild, ViewChildren, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, afterRenderEffect, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, computed, contentChild, contentChildren, createComponent, createPlatform, createPlatformFactory, debounced, destroyPlatform, effect, enableProdMode, getModuleFactory, getNgModuleById, getPlatform, inject, input, isDevMode, isSignal, linkedSignal, makeEnvironmentProviders, mergeApplicationConfig, model, numberAttribute, output, platformCore, provideAppInitializer, provideCheckNoChangesConfig, provideEnvironmentInitializer, providePlatformInitializer, provideStabilityDebugging, provideZoneChangeDetection, reflectComponentType, resourceFromSnapshots, runInInjectionContext, untracked, 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, EVENT_REPLAY_QUEUE as ɵEVENT_REPLAY_QUEUE, Framework as ɵFramework, 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, NG_PROV_DEF as ɵNG_PROV_DEF, 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, ProfilerEvent as ɵProfilerEvent, R3Injector as ɵR3Injector, 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, getComponentDef as ɵgetComponentDef, getDocument as ɵgetDocument, getLContext as ɵgetLContext, _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, 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, ɵɵngDeclareService };
|
|
3026
3370
|
//# sourceMappingURL=core.mjs.map
|