@angular/core 20.0.0-next.7 → 20.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/{api.d-KjtSQajV.d.ts → api.d-B58KU5QT.d.ts} +25 -40
- package/chrome_dev_tools_performance.d-qv7drdAl.d.ts +1 -1
- package/{discovery.d-D6xf1HH-.d.ts → discovery.d-BCmtv8-u.d.ts} +21 -7
- package/event_dispatcher.d-DlbccpYq.d.ts +1 -1
- package/fesm2022/attribute-BWp59EjE.mjs +1 -1
- package/fesm2022/core.mjs +60 -159
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{debug_node-B3CixwNH.mjs → debug_node-sP8Ihhla.mjs} +191 -56
- package/fesm2022/debug_node-sP8Ihhla.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +4 -4
- package/fesm2022/{resource-DtpS_sTw.mjs → resource-aJC_NNLX.mjs} +29 -76
- package/fesm2022/resource-aJC_NNLX.mjs.map +1 -0
- package/fesm2022/{root_effect_scheduler-BK3l7wIO.mjs → root_effect_scheduler-C95A9imp.mjs} +25 -10
- package/fesm2022/root_effect_scheduler-C95A9imp.mjs.map +1 -0
- package/fesm2022/rxjs-interop.mjs +12 -7
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/{signal-B6pMq7KS.mjs → signal-CVVPheSN.mjs} +13 -3
- package/fesm2022/{signal-B6pMq7KS.mjs.map → signal-CVVPheSN.mjs.map} +1 -1
- package/fesm2022/testing.mjs +40 -21
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/{untracked-Bz5WMeU1.mjs → untracked-BLZYODu2.mjs} +3 -3
- package/fesm2022/{untracked-Bz5WMeU1.mjs.map → untracked-BLZYODu2.mjs.map} +1 -1
- package/fesm2022/weak_ref-BaIq-pgY.mjs +1 -1
- package/graph.d-BcIOep_B.d.ts +1 -1
- package/index.d.ts +190 -127
- 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 +3 -3
- package/rxjs-interop/index.d.ts +4 -4
- package/schematics/bundles/{apply_import_manager-DczRKpTm.js → apply_import_manager-CxaTw_Wy.js} +3 -3
- package/schematics/bundles/{change_tracker-CWLh-wes.js → change_tracker-CkPYZ_km.js} +3 -3
- package/schematics/bundles/{checker-_f5wM7PH.js → checker-Crz1jSZM.js} +389 -122
- package/schematics/bundles/cleanup-unused-imports.js +6 -6
- package/schematics/bundles/{compiler-BaCbbux6.js → compiler-B4MK7BP9.js} +193 -88
- 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--W6S49uu.js → index-BbZ6cSR1.js} +6 -5
- package/schematics/bundles/{index-rsJ8I_hu.js → index-Bk_3geTg.js} +463 -327
- package/schematics/bundles/inject-flags.js +6 -6
- package/schematics/bundles/inject-migration.js +14 -11
- package/schematics/bundles/leading_space-D9nQ8UQC.js +1 -1
- package/schematics/bundles/{migrate_ts_type_references-C4D_SzJk.js → migrate_ts_type_references-D6T3FlkH.js} +7 -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-Ce0O2u-M.js → project_paths-CQ4-VKlW.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 -9
- package/weak_ref.d-eGOEP9S1.d.ts +1 -1
- package/fesm2022/debug_node-B3CixwNH.mjs.map +0 -1
- package/fesm2022/resource-DtpS_sTw.mjs.map +0 -1
- package/fesm2022/root_effect_scheduler-BK3l7wIO.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.9
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { attachInjectFlag, _global, resolveForwardRef, ɵɵinvalidFactoryDep as __invalidFactoryDep, ɵɵinject as __inject, ɵɵdefineInjector as __defineInjector, ɵɵdefineInjectable as __defineInjectable, newArray, assertString, EMPTY_OBJ, assertFirstCreatePass, assertDefined, assertNotEqual, FLAGS, assertEqual, isInCheckNoChangesMode, PREORDER_HOOK_FLAGS, throwError, assertNumber, assertGreaterThan, HEADER_OFFSET, DECLARATION_VIEW, throwCyclicDependencyError, stringifyForError, setInjectorProfilerContext, setInjectImplementation, enterDI, emitInjectorToCreateInstanceEvent, emitInstanceCreatedByInjectorEvent, assertDirectiveDef, leaveDI, isRootView, assertTNodeForLView, runInInjectorProfilerContext, getCurrentTNode, getLView, throwProviderNotFoundError, assertNodeInjector, injectRootLimpMode, assertIndexInRange, TVIEW, EMBEDDED_VIEW_INJECTOR, T_HOST, NG_ELEMENT_ID, INJECTOR$1 as INJECTOR, isComponentDef, isComponentHost, convertToBitFlags, NG_FACTORY_DEF, isForwardRef, getFactoryDef, DECLARATION_COMPONENT_VIEW, RuntimeError, NG_PROV_DEF, getClosureSafeProperty, getNativeByTNode, flatten, arrayEquals, ID, isLView, assertDomNode, getComponentLViewByIndex, CONTEXT, EMPTY_ARRAY, unwrapRNode, assertLView, HOST, getLViewParent, CHILD_HEAD, NEXT, isLContainer, Injector, CLEANUP, getComponentDef, getDirectiveDef, InjectionToken, inject, isInInjectionContext, DestroyRef, PendingTasksInternal, noop, ChangeDetectionScheduler, ErrorHandler, AFTER_RENDER_SEQUENCES_TO_ADD, markAncestorsForTraversal, assertNotInReactiveContext, assertInInjectionContext, ViewContext, assertIndexInDeclRange, getTNode, isDestroyed, removeLViewOnDestroy, storeLViewOnDestroy, walkUpViews, assertLContainer, CONTAINER_HEADER_OFFSET, getNativeByIndex, assertElement, isContentQueryHost, setCurrentQueryIndex, XSS_SECURITY_URL, renderStringify, ENVIRONMENT, formatRuntimeError, resetPreOrderHookFlags, PARENT, RENDERER, HYDRATION, CHILD_TAIL, assertSame, assertFirstUpdatePass, getSelectedIndex, getTView, setSelectedIndex, INTERNAL_APPLICATION_ERROR_HANDLER, assertNotSame, setCurrentDirectiveIndex, stringify, getCurrentDirectiveIndex, unwrapLView, assertNotReactive, enterView, QUERIES, leaveView, isCreationMode, DECLARATION_LCONTAINER, MOVED_VIEWS, NATIVE, assertProjectionSlots, assertParentView, REACTIVE_TEMPLATE_CONSUMER, ON_DESTROY_HOOKS, assertFunction, EFFECTS, markViewForRefresh, setIsInCheckNoChangesMode, setIsRefreshingViews, isExhaustiveCheckNoChanges, requiresRefreshOrTraversal, setBindingIndex, EFFECTS_TO_SCHEDULE, setBindingRootForHostBindings, viewAttachedToChangeDetector, isRefreshingViews, CheckNoChangesMode, removeFromArray, addToArray, updateAncestorTraversalFlagsOnAttach, VIEW_REFS, assertGreaterThanOrEqual, isInI18nBlock, getCurrentParentTNode, assertTNodeForTView, setCurrentTNode, getCurrentTNodePlaceholderOk, isCurrentTNodeParent, isInSkipHydrationBlock as isInSkipHydrationBlock$1, assertTNode, assertTIcu, assertNumberInRange, DEHYDRATED_VIEWS, getNgModuleDef, getPipeDef as getPipeDef$1, isStandalone, concatStringsWithSpace, assertInjectImplementationNotEqual, emitInjectEvent, getConstant, assertLessThan, getOrCreateTViewCleanup, getOrCreateLViewCleanup, isDirectiveHost, assertNotDefined, getSelectedTNode, nextBindingIndex, debugStringifyTypeForError, assertComponentType, EnvironmentInjector, SVG_NAMESPACE, MATH_ML_NAMESPACE, viewAttachedToContainer, storeCleanupWithContext, signal, createInjectorWithoutInjectorInstances, R3Injector, getNullInjector, internalImportProvidersFrom, initNgDevMode, fillProperties, wasLastNodeCreated, getBindingsEnabled, lastNodeWasCreated, arrayInsert2, arraySplice, setInjectorProfiler, NullInjector, ENVIRONMENT_INITIALIZER, INJECTOR_DEF_TYPES, walkProviderTree, getInjectorDef, deepForEach, isTypeProvider, isSignal, runInInjectionContext,
|
|
8
|
-
import { setActiveConsumer, SIGNAL, consumerDestroy, REACTIVE_NODE, consumerPollProducersForChange, consumerBeforeComputation, getActiveConsumer, consumerAfterComputation, createComputed, setThrowInvalidWriteToSignalError } from './signal-
|
|
7
|
+
import { attachInjectFlag, _global, resolveForwardRef, ɵɵinvalidFactoryDep as __invalidFactoryDep, ɵɵinject as __inject, ɵɵdefineInjector as __defineInjector, ɵɵdefineInjectable as __defineInjectable, newArray, assertString, EMPTY_OBJ, assertFirstCreatePass, assertDefined, assertNotEqual, FLAGS, assertEqual, isInCheckNoChangesMode, PREORDER_HOOK_FLAGS, throwError, assertNumber, assertGreaterThan, HEADER_OFFSET, DECLARATION_VIEW, throwCyclicDependencyError, stringifyForError, setInjectorProfilerContext, setInjectImplementation, enterDI, emitInjectorToCreateInstanceEvent, emitInstanceCreatedByInjectorEvent, assertDirectiveDef, leaveDI, isRootView, assertTNodeForLView, runInInjectorProfilerContext, getCurrentTNode, getLView, throwProviderNotFoundError, assertNodeInjector, injectRootLimpMode, assertIndexInRange, TVIEW, EMBEDDED_VIEW_INJECTOR, T_HOST, NG_ELEMENT_ID, INJECTOR$1 as INJECTOR, isComponentDef, isComponentHost, convertToBitFlags, NG_FACTORY_DEF, isForwardRef, getFactoryDef, DECLARATION_COMPONENT_VIEW, RuntimeError, NG_PROV_DEF, getClosureSafeProperty, getNativeByTNode, flatten, arrayEquals, ID, isLView, assertDomNode, getComponentLViewByIndex, CONTEXT, EMPTY_ARRAY, unwrapRNode, assertLView, HOST, getLViewParent, CHILD_HEAD, NEXT, isLContainer, Injector, CLEANUP, getComponentDef, getDirectiveDef, InjectionToken, inject, isInInjectionContext, DestroyRef, PendingTasksInternal, noop, ChangeDetectionScheduler, ErrorHandler, AFTER_RENDER_SEQUENCES_TO_ADD, markAncestorsForTraversal, assertNotInReactiveContext, assertInInjectionContext, ViewContext, assertIndexInDeclRange, getTNode, isDestroyed, removeLViewOnDestroy, storeLViewOnDestroy, walkUpViews, assertLContainer, CONTAINER_HEADER_OFFSET, getNativeByIndex, assertElement, isContentQueryHost, setCurrentQueryIndex, XSS_SECURITY_URL, renderStringify, ENVIRONMENT, makeEnvironmentProviders, formatRuntimeError, resetPreOrderHookFlags, PARENT, RENDERER, HYDRATION, CHILD_TAIL, assertSame, assertFirstUpdatePass, getSelectedIndex, getTView, setSelectedIndex, INTERNAL_APPLICATION_ERROR_HANDLER, assertNotSame, setCurrentDirectiveIndex, stringify, getCurrentDirectiveIndex, unwrapLView, assertNotReactive, enterView, QUERIES, leaveView, isCreationMode, DECLARATION_LCONTAINER, MOVED_VIEWS, NATIVE, assertProjectionSlots, assertParentView, REACTIVE_TEMPLATE_CONSUMER, ON_DESTROY_HOOKS, assertFunction, EFFECTS, markViewForRefresh, setIsInCheckNoChangesMode, setIsRefreshingViews, isExhaustiveCheckNoChanges, requiresRefreshOrTraversal, setBindingIndex, EFFECTS_TO_SCHEDULE, setBindingRootForHostBindings, viewAttachedToChangeDetector, isRefreshingViews, CheckNoChangesMode, removeFromArray, addToArray, updateAncestorTraversalFlagsOnAttach, VIEW_REFS, assertGreaterThanOrEqual, isInI18nBlock, getCurrentParentTNode, assertTNodeForTView, setCurrentTNode, getCurrentTNodePlaceholderOk, isCurrentTNodeParent, isInSkipHydrationBlock as isInSkipHydrationBlock$1, assertTNode, assertTIcu, assertNumberInRange, DEHYDRATED_VIEWS, getNgModuleDef, getPipeDef as getPipeDef$1, getNgModuleDefOrThrow, isStandalone, concatStringsWithSpace, assertInjectImplementationNotEqual, emitInjectEvent, getConstant, assertLessThan, getOrCreateTViewCleanup, getOrCreateLViewCleanup, isDirectiveHost, assertNotDefined, getSelectedTNode, nextBindingIndex, debugStringifyTypeForError, assertComponentType, EnvironmentInjector, SVG_NAMESPACE, MATH_ML_NAMESPACE, viewAttachedToContainer, storeCleanupWithContext, signal, createInjectorWithoutInjectorInstances, R3Injector, getNullInjector, internalImportProvidersFrom, initNgDevMode, fillProperties, wasLastNodeCreated, getBindingsEnabled, lastNodeWasCreated, arrayInsert2, arraySplice, setInjectorProfiler, NullInjector, ENVIRONMENT_INITIALIZER, INJECTOR_DEF_TYPES, walkProviderTree, getInjectorDef, deepForEach, isTypeProvider, isSignal, runInInjectionContext, ZONELESS_ENABLED, EffectScheduler, incrementBindingIndex, getBindingIndex, keyValueArrayIndexOf, keyValueArrayGet, getCurrentDirectiveDef, keyValueArraySet, assertHasParent, getElementDepthCount, getNamespace, enterSkipHydrationBlock, increaseElementDepthCount, setCurrentTNodeAsNotParent, isSkipHydrationRootTNode, leaveSkipHydrationBlock, decreaseElementDepthCount, assertIndexInExpandoRange, assertOneOf, setInI18nBlock, nextContextImpl, getCurrentQueryIndex, getContextLView, load, isWritableSignal, providerToFactory, emitProviderConfiguredEvent, isClassProvider, getBindingRoot, NG_COMP_DEF, forwardRef, ɵɵrestoreView as __restoreView, ɵɵdisableBindings as __disableBindings, ɵɵenableBindings as __enableBindings, ɵɵnamespaceSVG as __namespaceSVG, ɵɵnamespaceMathML as __namespaceMathML, ɵɵnamespaceHTML as __namespaceHTML, ɵɵresetView as __resetView, NG_MOD_DEF, NG_INJ_DEF, NG_DIR_DEF, NG_PIPE_DEF, ZONELESS_SCHEDULER_DISABLED, SCHEDULE_IN_ROOT_ZONE, PROVIDED_ZONELESS, getNativeByTNodeOrNull } from './root_effect_scheduler-C95A9imp.mjs';
|
|
8
|
+
import { setActiveConsumer, SIGNAL, consumerDestroy, REACTIVE_NODE, consumerPollProducersForChange, consumerBeforeComputation, getActiveConsumer, consumerAfterComputation, createComputed, setThrowInvalidWriteToSignalError } from './signal-CVVPheSN.mjs';
|
|
9
9
|
import { Subject, Subscription } from 'rxjs';
|
|
10
10
|
import { setActiveConsumer as setActiveConsumer$1 } from '@angular/core/primitives/signals';
|
|
11
11
|
import { map } from 'rxjs/operators';
|
|
@@ -2392,12 +2392,13 @@ function createElementRef(tNode, lView) {
|
|
|
2392
2392
|
// and could do better codegen in the future.
|
|
2393
2393
|
class ElementRef {
|
|
2394
2394
|
/**
|
|
2395
|
-
* <div class="
|
|
2395
|
+
* <div class="docs-alert docs-alert-important">
|
|
2396
2396
|
* <header>Use with caution</header>
|
|
2397
2397
|
* <p>
|
|
2398
2398
|
* Use this API as the last resort when direct access to DOM is needed. Use templating and
|
|
2399
|
-
* data-binding provided by Angular instead.
|
|
2400
|
-
* {@link
|
|
2399
|
+
* data-binding provided by Angular instead. If used, it is recommended in combination with
|
|
2400
|
+
* {@link /best-practices/security#direct-use-of-the-dom-apis-and-explicit-sanitization-calls DomSanitizer}
|
|
2401
|
+
* for maxiumum security;
|
|
2401
2402
|
* </p>
|
|
2402
2403
|
* </div>
|
|
2403
2404
|
*/
|
|
@@ -3918,9 +3919,13 @@ class EventEmitter_ extends Subject {
|
|
|
3918
3919
|
return (value) => {
|
|
3919
3920
|
const taskId = this.pendingTasks?.add();
|
|
3920
3921
|
setTimeout(() => {
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3922
|
+
try {
|
|
3923
|
+
fn(value);
|
|
3924
|
+
}
|
|
3925
|
+
finally {
|
|
3926
|
+
if (taskId !== undefined) {
|
|
3927
|
+
this.pendingTasks?.remove(taskId);
|
|
3928
|
+
}
|
|
3924
3929
|
}
|
|
3925
3930
|
});
|
|
3926
3931
|
};
|
|
@@ -4634,17 +4639,17 @@ class AfterRenderSequence {
|
|
|
4634
4639
|
}
|
|
4635
4640
|
}
|
|
4636
4641
|
|
|
4637
|
-
function
|
|
4642
|
+
function afterEveryRender(callbackOrSpec, options) {
|
|
4638
4643
|
ngDevMode &&
|
|
4639
|
-
assertNotInReactiveContext(
|
|
4644
|
+
assertNotInReactiveContext(afterEveryRender, 'Call `afterEveryRender` outside of a reactive context. For example, schedule the render ' +
|
|
4640
4645
|
'callback inside the component constructor`.');
|
|
4641
|
-
!options?.injector && assertInInjectionContext(
|
|
4646
|
+
!options?.injector && assertInInjectionContext(afterEveryRender);
|
|
4642
4647
|
const injector = options?.injector ?? inject(Injector);
|
|
4643
4648
|
if (typeof ngServerMode !== 'undefined' && ngServerMode) {
|
|
4644
4649
|
return NOOP_AFTER_RENDER_REF;
|
|
4645
4650
|
}
|
|
4646
4651
|
performanceMarkFeature('NgAfterRender');
|
|
4647
|
-
return
|
|
4652
|
+
return afterEveryRenderImpl(callbackOrSpec, injector, options, /* once */ false);
|
|
4648
4653
|
}
|
|
4649
4654
|
function afterNextRender(callbackOrSpec, options) {
|
|
4650
4655
|
!options?.injector && assertInInjectionContext(afterNextRender);
|
|
@@ -4653,7 +4658,7 @@ function afterNextRender(callbackOrSpec, options) {
|
|
|
4653
4658
|
return NOOP_AFTER_RENDER_REF;
|
|
4654
4659
|
}
|
|
4655
4660
|
performanceMarkFeature('NgAfterNextRender');
|
|
4656
|
-
return
|
|
4661
|
+
return afterEveryRenderImpl(callbackOrSpec, injector, options, /* once */ true);
|
|
4657
4662
|
}
|
|
4658
4663
|
function getHooks(callbackOrSpec) {
|
|
4659
4664
|
if (callbackOrSpec instanceof Function) {
|
|
@@ -4669,12 +4674,12 @@ function getHooks(callbackOrSpec) {
|
|
|
4669
4674
|
}
|
|
4670
4675
|
}
|
|
4671
4676
|
/**
|
|
4672
|
-
* Shared implementation for `
|
|
4677
|
+
* Shared implementation for `afterEveryRender` and `afterNextRender`.
|
|
4673
4678
|
*/
|
|
4674
|
-
function
|
|
4679
|
+
function afterEveryRenderImpl(callbackOrSpec, injector, options, once) {
|
|
4675
4680
|
const manager = injector.get(AfterRenderManager);
|
|
4676
4681
|
// Lazily initialize the handler implementation, if necessary. This is so that it can be
|
|
4677
|
-
// tree-shaken if `
|
|
4682
|
+
// tree-shaken if `afterEveryRender` and `afterNextRender` aren't used.
|
|
4678
4683
|
manager.impl ??= injector.get(AfterRenderImpl);
|
|
4679
4684
|
const tracing = injector.get(TracingService, null, { optional: true });
|
|
4680
4685
|
const destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;
|
|
@@ -5199,7 +5204,7 @@ function registerDomTrigger(initialLView, tNode, triggerIndex, walkUpTimes, regi
|
|
|
5199
5204
|
storeTriggerCleanupFn(type, lDetails, cleanup);
|
|
5200
5205
|
}
|
|
5201
5206
|
// Begin polling for the trigger.
|
|
5202
|
-
poll =
|
|
5207
|
+
poll = afterEveryRender({ read: pollDomTrigger }, { injector });
|
|
5203
5208
|
}
|
|
5204
5209
|
|
|
5205
5210
|
const DEFER_BLOCK_SSR_ID_ATTRIBUTE = 'ngb';
|
|
@@ -6946,6 +6951,39 @@ function escapeCommentText(value) {
|
|
|
6946
6951
|
return value.replace(COMMENT_DISALLOWED, (text) => text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED));
|
|
6947
6952
|
}
|
|
6948
6953
|
|
|
6954
|
+
/** Defines the default value of the `NG_REFLECT_ATTRS_FLAG` flag. */
|
|
6955
|
+
const NG_REFLECT_ATTRS_FLAG_DEFAULT = false;
|
|
6956
|
+
/**
|
|
6957
|
+
* Defines an internal flag that indicates whether the runtime code should be
|
|
6958
|
+
* producing `ng-reflect-*` attributes.
|
|
6959
|
+
*/
|
|
6960
|
+
const NG_REFLECT_ATTRS_FLAG = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'NG_REFLECT_FLAG' : '', {
|
|
6961
|
+
providedIn: 'root',
|
|
6962
|
+
factory: () => NG_REFLECT_ATTRS_FLAG_DEFAULT,
|
|
6963
|
+
});
|
|
6964
|
+
/**
|
|
6965
|
+
* Enables the logic to produce `ng-reflect-*` attributes on elements with bindings.
|
|
6966
|
+
*
|
|
6967
|
+
* Note: this is a dev-mode only setting and it will have no effect in production mode.
|
|
6968
|
+
* In production mode, the `ng-reflect-*` attributes are *never* produced by Angular.
|
|
6969
|
+
*
|
|
6970
|
+
* Important: using and relying on the `ng-reflect-*` attributes is not recommended,
|
|
6971
|
+
* they are deprecated and only present for backwards compatibility. Angular will stop
|
|
6972
|
+
* producing them in one of the future versions.
|
|
6973
|
+
*
|
|
6974
|
+
* @publicApi
|
|
6975
|
+
*/
|
|
6976
|
+
function provideNgReflectAttributes() {
|
|
6977
|
+
const providers = typeof ngDevMode === 'undefined' || ngDevMode
|
|
6978
|
+
? [
|
|
6979
|
+
{
|
|
6980
|
+
provide: NG_REFLECT_ATTRS_FLAG,
|
|
6981
|
+
useValue: true,
|
|
6982
|
+
},
|
|
6983
|
+
]
|
|
6984
|
+
: [];
|
|
6985
|
+
return makeEnvironmentProviders(providers);
|
|
6986
|
+
}
|
|
6949
6987
|
function normalizeDebugBindingName(name) {
|
|
6950
6988
|
// Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers
|
|
6951
6989
|
name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));
|
|
@@ -8449,6 +8487,10 @@ function markDirtyIfOnPush(lView, viewIndex) {
|
|
|
8449
8487
|
}
|
|
8450
8488
|
}
|
|
8451
8489
|
function setNgReflectProperty(lView, tNode, attrName, value) {
|
|
8490
|
+
const environment = lView[ENVIRONMENT];
|
|
8491
|
+
if (!environment.ngReflect) {
|
|
8492
|
+
return;
|
|
8493
|
+
}
|
|
8452
8494
|
const element = getNativeByTNode(tNode, lView);
|
|
8453
8495
|
const renderer = lView[RENDERER];
|
|
8454
8496
|
attrName = normalizeDebugBindingName(attrName);
|
|
@@ -8467,7 +8509,8 @@ function setNgReflectProperty(lView, tNode, attrName, value) {
|
|
|
8467
8509
|
}
|
|
8468
8510
|
}
|
|
8469
8511
|
function setNgReflectProperties(lView, tView, tNode, publicName, value) {
|
|
8470
|
-
|
|
8512
|
+
const environment = lView[ENVIRONMENT];
|
|
8513
|
+
if (!environment.ngReflect || !(tNode.type & (3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */))) {
|
|
8471
8514
|
return;
|
|
8472
8515
|
}
|
|
8473
8516
|
const inputConfig = tNode.inputs?.[publicName];
|
|
@@ -8927,6 +8970,9 @@ function shouldAddViewToDom(tNode, dehydratedView) {
|
|
|
8927
8970
|
return (!dehydratedView || dehydratedView.firstChild === null || hasInSkipHydrationBlockFlag(tNode));
|
|
8928
8971
|
}
|
|
8929
8972
|
|
|
8973
|
+
const USE_EXHAUSTIVE_CHECK_NO_CHANGES_DEFAULT = false;
|
|
8974
|
+
const UseExhaustiveCheckNoChanges = new InjectionToken(ngDevMode ? 'exhaustive checkNoChanges' : '');
|
|
8975
|
+
|
|
8930
8976
|
let _icuContainerIterate;
|
|
8931
8977
|
/**
|
|
8932
8978
|
* Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.
|
|
@@ -9859,6 +9905,9 @@ const TEMPORARY_CONSUMER_NODE = {
|
|
|
9859
9905
|
function viewShouldHaveReactiveConsumer(tView) {
|
|
9860
9906
|
return tView.type !== 2 /* TViewType.Embedded */;
|
|
9861
9907
|
}
|
|
9908
|
+
function isReactiveLViewConsumer(node) {
|
|
9909
|
+
return node.kind === 'template';
|
|
9910
|
+
}
|
|
9862
9911
|
|
|
9863
9912
|
function runEffectsInView(view) {
|
|
9864
9913
|
if (view[EFFECTS] === null) {
|
|
@@ -9948,8 +9997,8 @@ function detectChangesInViewWhileDirty(lView, mode) {
|
|
|
9948
9997
|
setIsRefreshingViews(lastIsRefreshingViewsValue);
|
|
9949
9998
|
}
|
|
9950
9999
|
}
|
|
9951
|
-
function checkNoChangesInternal(lView,
|
|
9952
|
-
setIsInCheckNoChangesMode(
|
|
10000
|
+
function checkNoChangesInternal(lView, exhaustive) {
|
|
10001
|
+
setIsInCheckNoChangesMode(exhaustive ? CheckNoChangesMode.Exhaustive : CheckNoChangesMode.OnlyDirtyViews);
|
|
9953
10002
|
try {
|
|
9954
10003
|
detectChangesInternal(lView);
|
|
9955
10004
|
}
|
|
@@ -10507,6 +10556,7 @@ class ViewRef {
|
|
|
10507
10556
|
_cdRefInjectingView;
|
|
10508
10557
|
_appRef = null;
|
|
10509
10558
|
_attachedToViewContainer = false;
|
|
10559
|
+
exhaustive;
|
|
10510
10560
|
get rootNodes() {
|
|
10511
10561
|
const lView = this._lView;
|
|
10512
10562
|
const tView = lView[TVIEW];
|
|
@@ -10764,9 +10814,15 @@ class ViewRef {
|
|
|
10764
10814
|
* introduce other changes.
|
|
10765
10815
|
*/
|
|
10766
10816
|
checkNoChanges() {
|
|
10767
|
-
if (ngDevMode)
|
|
10768
|
-
|
|
10817
|
+
if (!ngDevMode)
|
|
10818
|
+
return;
|
|
10819
|
+
try {
|
|
10820
|
+
this.exhaustive ??= this._lView[INJECTOR].get(UseExhaustiveCheckNoChanges, USE_EXHAUSTIVE_CHECK_NO_CHANGES_DEFAULT);
|
|
10769
10821
|
}
|
|
10822
|
+
catch {
|
|
10823
|
+
this.exhaustive = USE_EXHAUSTIVE_CHECK_NO_CHANGES_DEFAULT;
|
|
10824
|
+
}
|
|
10825
|
+
checkNoChangesInternal(this._lView, this.exhaustive);
|
|
10770
10826
|
}
|
|
10771
10827
|
attachToViewContainerRef() {
|
|
10772
10828
|
if (this._appRef) {
|
|
@@ -12906,6 +12962,14 @@ class RendererFactory2 {
|
|
|
12906
12962
|
* renders a template into DOM. You can use custom rendering to intercept
|
|
12907
12963
|
* rendering calls, or to render to something other than DOM.
|
|
12908
12964
|
*
|
|
12965
|
+
* <div class="docs-alert docs-alert-important">
|
|
12966
|
+
* <p>
|
|
12967
|
+
* Please be aware that usage of `Renderer2`, in context of accessing DOM elements, provides no
|
|
12968
|
+
* extra security which makes it equivalent to
|
|
12969
|
+
* {@link /best-practices/security#direct-use-of-the-dom-apis-and-explicit-sanitization-calls Security vulnerabilities}.
|
|
12970
|
+
* </p>
|
|
12971
|
+
* </div>
|
|
12972
|
+
*
|
|
12909
12973
|
* Create your custom renderer using `RendererFactory2`.
|
|
12910
12974
|
*
|
|
12911
12975
|
* Use a custom renderer to bypass Angular's templating and
|
|
@@ -13103,7 +13167,7 @@ class DepsTracker {
|
|
|
13103
13167
|
}
|
|
13104
13168
|
/** Compute NgModule scope afresh. */
|
|
13105
13169
|
computeNgModuleScope(type) {
|
|
13106
|
-
const def =
|
|
13170
|
+
const def = getNgModuleDefOrThrow(type);
|
|
13107
13171
|
const scope = {
|
|
13108
13172
|
exported: { directives: new Set(), pipes: new Set() },
|
|
13109
13173
|
compilation: { directives: new Set(), pipes: new Set() },
|
|
@@ -13918,15 +13982,12 @@ function bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {
|
|
|
13918
13982
|
return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;
|
|
13919
13983
|
}
|
|
13920
13984
|
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
|
|
13924
|
-
|
|
13925
|
-
|
|
13926
|
-
|
|
13927
|
-
let stashEventListener = (el, eventName, listenerFn) => { };
|
|
13928
|
-
function setStashFn(fn) {
|
|
13929
|
-
stashEventListener = fn;
|
|
13985
|
+
const stashEventListeners = new Map();
|
|
13986
|
+
function setStashFn(appId, fn) {
|
|
13987
|
+
stashEventListeners.set(appId, fn);
|
|
13988
|
+
}
|
|
13989
|
+
function clearStashFn(appId) {
|
|
13990
|
+
stashEventListeners.delete(appId);
|
|
13930
13991
|
}
|
|
13931
13992
|
/**
|
|
13932
13993
|
* Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,
|
|
@@ -14030,7 +14091,9 @@ function listenToDomEvent(tNode, tView, lView, eventTargetResolver, renderer, ev
|
|
|
14030
14091
|
else {
|
|
14031
14092
|
const native = getNativeByTNode(tNode, lView);
|
|
14032
14093
|
const target = eventTargetResolver ? eventTargetResolver(native) : native;
|
|
14033
|
-
|
|
14094
|
+
const appId = lView[INJECTOR].get(APP_ID);
|
|
14095
|
+
const stashEventListener = stashEventListeners.get(appId);
|
|
14096
|
+
stashEventListener?.(target, eventName, wrappedListener);
|
|
14034
14097
|
const cleanupFn = renderer.listen(target, eventName, wrappedListener);
|
|
14035
14098
|
const idxOrTargetGetter = eventTargetResolver
|
|
14036
14099
|
? (_lView) => eventTargetResolver(unwrapRNode(_lView[tNode.index]))
|
|
@@ -14368,10 +14431,15 @@ function createRootLViewEnvironment(rootLViewInjector) {
|
|
|
14368
14431
|
}
|
|
14369
14432
|
const sanitizer = rootLViewInjector.get(Sanitizer, null);
|
|
14370
14433
|
const changeDetectionScheduler = rootLViewInjector.get(ChangeDetectionScheduler, null);
|
|
14434
|
+
let ngReflect = false;
|
|
14435
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
14436
|
+
ngReflect = rootLViewInjector.get(NG_REFLECT_ATTRS_FLAG, NG_REFLECT_ATTRS_FLAG_DEFAULT);
|
|
14437
|
+
}
|
|
14371
14438
|
return {
|
|
14372
14439
|
rendererFactory,
|
|
14373
14440
|
sanitizer,
|
|
14374
14441
|
changeDetectionScheduler,
|
|
14442
|
+
ngReflect,
|
|
14375
14443
|
};
|
|
14376
14444
|
}
|
|
14377
14445
|
function createHostElement(componentDef, render) {
|
|
@@ -14483,7 +14551,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
14483
14551
|
}
|
|
14484
14552
|
function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
|
|
14485
14553
|
const tAttributes = rootSelectorOrNode
|
|
14486
|
-
? ['ng-version', '20.0.0-next.
|
|
14554
|
+
? ['ng-version', '20.0.0-next.9']
|
|
14487
14555
|
: // Extract attributes and classes from the first selector only to match VE behavior.
|
|
14488
14556
|
extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
|
|
14489
14557
|
let creationBindings = null;
|
|
@@ -18004,9 +18072,12 @@ function getDeferBlocks(node) {
|
|
|
18004
18072
|
* @param results Array to which to add blocks once they're found.
|
|
18005
18073
|
*/
|
|
18006
18074
|
function findDeferBlocks(node, lView, results) {
|
|
18007
|
-
const
|
|
18075
|
+
const viewInjector = lView[INJECTOR];
|
|
18076
|
+
const registry = viewInjector.get(DEHYDRATED_BLOCK_REGISTRY, null, { optional: true });
|
|
18008
18077
|
const blocks = [];
|
|
18009
18078
|
getDeferBlocks$1(lView, blocks);
|
|
18079
|
+
const transferState = viewInjector.get(TransferState);
|
|
18080
|
+
const deferBlockParents = transferState.get(NGH_DEFER_BLOCKS_KEY, {});
|
|
18010
18081
|
for (const details of blocks) {
|
|
18011
18082
|
const native = getNativeByTNode(details.tNode, details.lView);
|
|
18012
18083
|
const lDetails = getLDeferBlockDetails(details.lView, details.tNode);
|
|
@@ -18018,12 +18089,28 @@ function findDeferBlocks(node, lView, results) {
|
|
|
18018
18089
|
const tDetails = details.tDetails;
|
|
18019
18090
|
const renderedLView = getRendererLView(details);
|
|
18020
18091
|
const rootNodes = [];
|
|
18092
|
+
const hydrationState = inferHydrationState(tDetails, lDetails, registry);
|
|
18021
18093
|
if (renderedLView !== null) {
|
|
18022
18094
|
collectNativeNodes(renderedLView[TVIEW], renderedLView, renderedLView[TVIEW].firstChild, rootNodes);
|
|
18023
18095
|
}
|
|
18096
|
+
else if (hydrationState === 'dehydrated') {
|
|
18097
|
+
// We'll find the number of root nodes in the transfer state and
|
|
18098
|
+
// collect that number of elements that precede the defer block comment node.
|
|
18099
|
+
const deferId = lDetails[SSR_UNIQUE_ID];
|
|
18100
|
+
const deferData = deferBlockParents[deferId];
|
|
18101
|
+
const numberOfRootNodes = deferData[NUM_ROOT_NODES];
|
|
18102
|
+
let collectedNodeCount = 0;
|
|
18103
|
+
const deferBlockCommentNode = details.lContainer[NATIVE];
|
|
18104
|
+
let currentNode = deferBlockCommentNode.previousSibling;
|
|
18105
|
+
while (collectedNodeCount < numberOfRootNodes && currentNode) {
|
|
18106
|
+
rootNodes.unshift(currentNode);
|
|
18107
|
+
currentNode = currentNode.previousSibling;
|
|
18108
|
+
collectedNodeCount++;
|
|
18109
|
+
}
|
|
18110
|
+
}
|
|
18024
18111
|
const data = {
|
|
18025
18112
|
state: stringifyState(lDetails[DEFER_BLOCK_STATE]),
|
|
18026
|
-
incrementalHydrationState:
|
|
18113
|
+
incrementalHydrationState: hydrationState,
|
|
18027
18114
|
hasErrorBlock: tDetails.errorTmplIndex !== null,
|
|
18028
18115
|
loadingBlock: {
|
|
18029
18116
|
exists: tDetails.loadingTmplIndex !== null,
|
|
@@ -19498,7 +19585,15 @@ function publishDefaultGlobalUtils() {
|
|
|
19498
19585
|
*/
|
|
19499
19586
|
function publishSignalConfiguration() {
|
|
19500
19587
|
setThrowInvalidWriteToSignalError(() => {
|
|
19501
|
-
|
|
19588
|
+
let errorMessage = '';
|
|
19589
|
+
if (ngDevMode) {
|
|
19590
|
+
const activeConsumer = getActiveConsumer();
|
|
19591
|
+
errorMessage =
|
|
19592
|
+
activeConsumer && isReactiveLViewConsumer(activeConsumer)
|
|
19593
|
+
? 'Writing to signals is not allowed while Angular renders the template (eg. interpolations)'
|
|
19594
|
+
: 'Writing to signals is not allowed in a `computed`';
|
|
19595
|
+
}
|
|
19596
|
+
throw new RuntimeError(600 /* RuntimeErrorCode.SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT */, errorMessage);
|
|
19502
19597
|
});
|
|
19503
19598
|
}
|
|
19504
19599
|
function isBoundToModule(cf) {
|
|
@@ -28698,7 +28793,7 @@ function ɵɵsetComponentScope(type, directives, pipes) {
|
|
|
28698
28793
|
*/
|
|
28699
28794
|
function ɵɵsetNgModuleScope(type, scope) {
|
|
28700
28795
|
return noSideEffects(() => {
|
|
28701
|
-
const ngModuleDef =
|
|
28796
|
+
const ngModuleDef = getNgModuleDefOrThrow(type);
|
|
28702
28797
|
ngModuleDef.declarations = convertToTypeArray(scope.declarations || EMPTY_ARRAY);
|
|
28703
28798
|
ngModuleDef.imports = convertToTypeArray(scope.imports || EMPTY_ARRAY);
|
|
28704
28799
|
ngModuleDef.exports = convertToTypeArray(scope.exports || EMPTY_ARRAY);
|
|
@@ -29992,7 +30087,7 @@ function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRo
|
|
|
29992
30087
|
}
|
|
29993
30088
|
}
|
|
29994
30089
|
else {
|
|
29995
|
-
ngModuleDef =
|
|
30090
|
+
ngModuleDef = getNgModuleDefOrThrow(moduleType);
|
|
29996
30091
|
}
|
|
29997
30092
|
const errors = [];
|
|
29998
30093
|
const declarations = maybeUnwrapFn(ngModuleDef.declarations);
|
|
@@ -30227,7 +30322,7 @@ function transitiveScopesFor(type) {
|
|
|
30227
30322
|
if (isNgModule(type)) {
|
|
30228
30323
|
{
|
|
30229
30324
|
const scope = depsTracker.getNgModuleScope(type);
|
|
30230
|
-
const def =
|
|
30325
|
+
const def = getNgModuleDefOrThrow(type);
|
|
30231
30326
|
return {
|
|
30232
30327
|
schemas: def.schemas || null,
|
|
30233
30328
|
...scope,
|
|
@@ -31381,7 +31476,7 @@ class ChangeDetectionSchedulerImpl {
|
|
|
31381
31476
|
* @usageNotes
|
|
31382
31477
|
* ```ts
|
|
31383
31478
|
* bootstrapApplication(MyApp, {providers: [
|
|
31384
|
-
*
|
|
31479
|
+
* provideZonelessChangeDetection(),
|
|
31385
31480
|
* ]});
|
|
31386
31481
|
* ```
|
|
31387
31482
|
*
|
|
@@ -31390,10 +31485,10 @@ class ChangeDetectionSchedulerImpl {
|
|
|
31390
31485
|
* on the exact API based on the feedback and our understanding of the problem and solution space.
|
|
31391
31486
|
*
|
|
31392
31487
|
* @publicApi
|
|
31393
|
-
* @
|
|
31488
|
+
* @developerPreview
|
|
31394
31489
|
* @see {@link /api/platform-browser/bootstrapApplication bootstrapApplication}
|
|
31395
31490
|
*/
|
|
31396
|
-
function
|
|
31491
|
+
function provideZonelessChangeDetection() {
|
|
31397
31492
|
performanceMarkFeature('NgZoneless');
|
|
31398
31493
|
if ((typeof ngDevMode === 'undefined' || ngDevMode) && typeof Zone !== 'undefined' && Zone) {
|
|
31399
31494
|
const message = formatRuntimeError(914 /* RuntimeErrorCode.UNEXPECTED_ZONEJS_PRESENT_IN_ZONELESS_MODE */, `The application is using zoneless change detection, but is still loading Zone.js. ` +
|
|
@@ -31450,13 +31545,23 @@ function getGlobalLocale() {
|
|
|
31450
31545
|
*
|
|
31451
31546
|
* @usageNotes
|
|
31452
31547
|
* ### Example
|
|
31548
|
+
* In standalone apps:
|
|
31549
|
+
* ```ts
|
|
31550
|
+
* import { LOCALE_ID, ApplicationConfig } from '@angular/core';
|
|
31551
|
+
* import { AppModule } from './app/app.module';
|
|
31552
|
+
*
|
|
31553
|
+
* const appConfig: ApplicationConfig = {
|
|
31554
|
+
* providers: [{provide: LOCALE_ID, useValue: 'en-US' }]
|
|
31555
|
+
* };
|
|
31556
|
+
* ```
|
|
31453
31557
|
*
|
|
31558
|
+
* In module based apps:
|
|
31454
31559
|
* ```ts
|
|
31455
31560
|
* import { LOCALE_ID } from '@angular/core';
|
|
31456
|
-
* import {
|
|
31561
|
+
* import { platformBrowser } from '@angular/platform-browser';
|
|
31457
31562
|
* import { AppModule } from './app/app.module';
|
|
31458
31563
|
*
|
|
31459
|
-
*
|
|
31564
|
+
* platformBrowser().bootstrapModule(AppModule, {
|
|
31460
31565
|
* providers: [{provide: LOCALE_ID, useValue: 'en-US' }]
|
|
31461
31566
|
* });
|
|
31462
31567
|
* ```
|
|
@@ -31489,12 +31594,22 @@ const LOCALE_ID = new InjectionToken(ngDevMode ? 'LocaleId' : '', {
|
|
|
31489
31594
|
*
|
|
31490
31595
|
* @usageNotes
|
|
31491
31596
|
* ### Example
|
|
31597
|
+
* In standalone apps:
|
|
31598
|
+
* ```ts
|
|
31599
|
+
* import { LOCALE_ID, ApplicationConfig } from '@angular/core';
|
|
31600
|
+
* import { AppModule } from './app/app.module';
|
|
31601
|
+
*
|
|
31602
|
+
* const appConfig: ApplicationConfig = {
|
|
31603
|
+
* providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]
|
|
31604
|
+
* };
|
|
31605
|
+
* ```
|
|
31492
31606
|
*
|
|
31607
|
+
* In module based apps:
|
|
31493
31608
|
* ```ts
|
|
31494
|
-
* import {
|
|
31609
|
+
* import { platformBrowser } from '@angular/platform-browser';
|
|
31495
31610
|
* import { AppModule } from './app/app.module';
|
|
31496
31611
|
*
|
|
31497
|
-
*
|
|
31612
|
+
* platformBrowser().bootstrapModule(AppModule, {
|
|
31498
31613
|
* providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]
|
|
31499
31614
|
* });
|
|
31500
31615
|
* ```
|
|
@@ -31513,16 +31628,26 @@ const DEFAULT_CURRENCY_CODE = new InjectionToken(ngDevMode ? 'DefaultCurrencyCod
|
|
|
31513
31628
|
*
|
|
31514
31629
|
* @usageNotes
|
|
31515
31630
|
* ### Example
|
|
31631
|
+
* In standalone apps:
|
|
31632
|
+
* ```ts
|
|
31633
|
+
* import { LOCALE_ID, ApplicationConfig } from '@angular/core';
|
|
31634
|
+
* import { AppModule } from './app/app.module';
|
|
31516
31635
|
*
|
|
31636
|
+
* const appConfig: ApplicationConfig = {
|
|
31637
|
+
* providers: [{provide: TRANSLATIONS, useValue: translations }]
|
|
31638
|
+
* };
|
|
31639
|
+
* ```
|
|
31640
|
+
*
|
|
31641
|
+
* In module based apps:
|
|
31517
31642
|
* ```ts
|
|
31518
31643
|
* import { TRANSLATIONS } from '@angular/core';
|
|
31519
|
-
* import {
|
|
31644
|
+
* import { platformBrowser } from '@angular/platform-browser';
|
|
31520
31645
|
* import { AppModule } from './app/app.module';
|
|
31521
31646
|
*
|
|
31522
31647
|
* // content of your translation file
|
|
31523
31648
|
* const translations = '....';
|
|
31524
31649
|
*
|
|
31525
|
-
*
|
|
31650
|
+
* platformBrowser().bootstrapModule(AppModule, {
|
|
31526
31651
|
* providers: [{provide: TRANSLATIONS, useValue: translations }]
|
|
31527
31652
|
* });
|
|
31528
31653
|
* ```
|
|
@@ -31538,13 +31663,23 @@ const TRANSLATIONS = new InjectionToken(ngDevMode ? 'Translations' : '');
|
|
|
31538
31663
|
*
|
|
31539
31664
|
* @usageNotes
|
|
31540
31665
|
* ### Example
|
|
31666
|
+
* In standalone apps:
|
|
31667
|
+
* ```ts
|
|
31668
|
+
* import { LOCALE_ID, ApplicationConfig } from '@angular/core';
|
|
31669
|
+
* import { AppModule } from './app/app.module';
|
|
31670
|
+
*
|
|
31671
|
+
* const appConfig: ApplicationConfig = {
|
|
31672
|
+
* providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]
|
|
31673
|
+
* };
|
|
31674
|
+
* ```
|
|
31541
31675
|
*
|
|
31676
|
+
* In module based apps: *
|
|
31542
31677
|
* ```ts
|
|
31543
31678
|
* import { TRANSLATIONS_FORMAT } from '@angular/core';
|
|
31544
|
-
* import {
|
|
31679
|
+
* import { platformBrowser } from '@angular/platform-browser';
|
|
31545
31680
|
* import { AppModule } from './app/app.module';
|
|
31546
31681
|
*
|
|
31547
|
-
*
|
|
31682
|
+
* platformBrowser().bootstrapModule(AppModule, {
|
|
31548
31683
|
* providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]
|
|
31549
31684
|
* });
|
|
31550
31685
|
* ```
|
|
@@ -31565,10 +31700,10 @@ const TRANSLATIONS_FORMAT = new InjectionToken(ngDevMode ? 'TranslationsFormat'
|
|
|
31565
31700
|
* ### Example
|
|
31566
31701
|
* ```ts
|
|
31567
31702
|
* import { MissingTranslationStrategy } from '@angular/core';
|
|
31568
|
-
* import {
|
|
31703
|
+
* import { platformBrowser } from '@angular/platform-browser';
|
|
31569
31704
|
* import { AppModule } from './app/app.module';
|
|
31570
31705
|
*
|
|
31571
|
-
*
|
|
31706
|
+
* platformBrowser().bootstrapModule(AppModule, {
|
|
31572
31707
|
* missingTranslation: MissingTranslationStrategy.Error
|
|
31573
31708
|
* });
|
|
31574
31709
|
* ```
|
|
@@ -32143,5 +32278,5 @@ function getDebugNode(nativeNode) {
|
|
|
32143
32278
|
return null;
|
|
32144
32279
|
}
|
|
32145
32280
|
|
|
32146
|
-
export { AFTER_RENDER_PHASES, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, AcxChangeDetectionStrategy, AcxViewEncapsulation, AfterRenderImpl, AfterRenderManager, AfterRenderSequence, ApplicationInitStatus, ApplicationRef, Attribute, COMPILER_OPTIONS, CONTAINERS, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionSchedulerImpl, ChangeDetectionStrategy, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactory$1, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ComponentRef as ComponentRef$1, Console, DEFAULT_CURRENCY_CODE, DEFAULT_LOCALE_ID, DEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DEFER_BLOCK_ID, DEFER_BLOCK_SSR_ID_ATTRIBUTE, DEFER_BLOCK_STATE$1 as DEFER_BLOCK_STATE, DEFER_BLOCK_STATE as DEFER_BLOCK_STATE$1, DEFER_HYDRATE_TRIGGERS, DEFER_PARENT_BLOCK_ID, DEHYDRATED_BLOCK_REGISTRY, DISCONNECTED_NODES, DebugElement, DebugEventListener, DebugNode, DeferBlockBehavior, DeferBlockState, DehydratedBlockRegistry, Directive, ELEMENT_CONTAINERS, EVENT_REPLAY_ENABLED_DEFAULT, ElementRef, EnvironmentNgModuleRefAdapter, EventEmitter, Framework, Host, HostBinding, HostListener, I18N_DATA, IMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS, IS_EVENT_REPLAY_ENABLED, IS_HYDRATION_DOM_REUSE_ENABLED, IS_I18N_HYDRATION_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED, Inject, Injectable, Input, JSACTION_BLOCK_ELEMENT_MAP, JSACTION_EVENT_CONTRACT, LContext, LOCALE_ID, LocaleDataIndex, MULTIPLIER, MissingTranslationStrategy, ModuleWithComponentFactories, NGH_ATTR_NAME, NGH_DATA_KEY, NGH_DEFER_BLOCKS_KEY, NODES, NOOP_AFTER_RENDER_REF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE, NO_ERRORS_SCHEMA, NUM_ROOT_NODES, NgModule, NgModuleFactory, NgModuleFactory$1, NgModuleRef, NgModuleRef$1, NgProbeToken, NgZone, NoopNgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, PRESERVE_HOST_CONTENT, PROVIDED_NG_ZONE, Pipe, QueryList, ReflectionCapabilities, Renderer2, RendererFactory2, RendererStyleFlags2, SKIP_HYDRATION_ATTR_NAME, SSR_CONTENT_INTEGRITY_MARKER, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TEMPLATES, TEMPLATE_ID, TESTABILITY, TESTABILITY_GETTER, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TracingAction, TracingService, TransferState, Type, USE_RUNTIME_DEPS_TRACKER_FOR_JIT, ViewContainerRef, ViewEncapsulation, ViewRef, _sanitizeHtml, _sanitizeUrl,
|
|
32147
|
-
//# sourceMappingURL=debug_node-
|
|
32281
|
+
export { AFTER_RENDER_PHASES, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, AcxChangeDetectionStrategy, AcxViewEncapsulation, AfterRenderImpl, AfterRenderManager, AfterRenderSequence, ApplicationInitStatus, ApplicationRef, Attribute, COMPILER_OPTIONS, CONTAINERS, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionSchedulerImpl, ChangeDetectionStrategy, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactory$1, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ComponentRef as ComponentRef$1, Console, DEFAULT_CURRENCY_CODE, DEFAULT_LOCALE_ID, DEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DEFER_BLOCK_ID, DEFER_BLOCK_SSR_ID_ATTRIBUTE, DEFER_BLOCK_STATE$1 as DEFER_BLOCK_STATE, DEFER_BLOCK_STATE as DEFER_BLOCK_STATE$1, DEFER_HYDRATE_TRIGGERS, DEFER_PARENT_BLOCK_ID, DEHYDRATED_BLOCK_REGISTRY, DISCONNECTED_NODES, DebugElement, DebugEventListener, DebugNode, DeferBlockBehavior, DeferBlockState, DehydratedBlockRegistry, Directive, ELEMENT_CONTAINERS, EVENT_REPLAY_ENABLED_DEFAULT, ElementRef, EnvironmentNgModuleRefAdapter, EventEmitter, Framework, Host, HostBinding, HostListener, I18N_DATA, IMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS, IS_EVENT_REPLAY_ENABLED, IS_HYDRATION_DOM_REUSE_ENABLED, IS_I18N_HYDRATION_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED, Inject, Injectable, Input, JSACTION_BLOCK_ELEMENT_MAP, JSACTION_EVENT_CONTRACT, LContext, LOCALE_ID, LocaleDataIndex, MULTIPLIER, MissingTranslationStrategy, ModuleWithComponentFactories, NGH_ATTR_NAME, NGH_DATA_KEY, NGH_DEFER_BLOCKS_KEY, NODES, NOOP_AFTER_RENDER_REF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE, NO_ERRORS_SCHEMA, NUM_ROOT_NODES, NgModule, NgModuleFactory, NgModuleFactory$1, NgModuleRef, NgModuleRef$1, NgProbeToken, NgZone, NoopNgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, PRESERVE_HOST_CONTENT, PROVIDED_NG_ZONE, Pipe, QueryList, ReflectionCapabilities, Renderer2, RendererFactory2, RendererStyleFlags2, SKIP_HYDRATION_ATTR_NAME, SSR_CONTENT_INTEGRITY_MARKER, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TEMPLATES, TEMPLATE_ID, TESTABILITY, TESTABILITY_GETTER, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TracingAction, TracingService, TransferState, Type, USE_RUNTIME_DEPS_TRACKER_FOR_JIT, UseExhaustiveCheckNoChanges, ViewContainerRef, ViewEncapsulation, ViewRef, _sanitizeHtml, _sanitizeUrl, afterEveryRender, afterNextRender, allowSanitizationBypassAndThrow, angularCoreEnv, appendDeferBlocksToJSActionMap, asNativeElements, assertComponentDef, assertStandaloneComponentType, bypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript, bypassSanitizationTrustStyle, bypassSanitizationTrustUrl, calcPathForNode, checkNoChangesInternal, cleanupDehydratedViews, clearResolutionOfComponentResourcesQueue, clearStashFn, collectNativeNodes, collectNativeNodesInLContainer, compileComponent, compileDirective, compileNgModule, compileNgModuleDefs, compilePipe, convertHydrateTriggersToJsAction, countBlocksSkippedByHydration, createEnvironmentInjector, createMultiResultQuerySignalFn, createNgModule, createNgModuleRef, createNgModuleRefWithProviders, createSingleResultOptionalQuerySignalFn, createSingleResultRequiredQuerySignalFn, depsTracker, devModeEqual, enableApplyRootElementTransformImpl, enableClaimDehydratedIcuCaseImpl, enableFindMatchingDehydratedViewImpl, enableLocateOrCreateContainerAnchorImpl, enableLocateOrCreateContainerRefImpl, enableLocateOrCreateElementContainerNodeImpl, enableLocateOrCreateElementNodeImpl, enableLocateOrCreateI18nNodeImpl, enableLocateOrCreateTextNodeImpl, enablePrepareI18nBlockForHydrationImpl, enableRetrieveDeferBlockDataImpl, enableRetrieveHydrationInfoImpl, findLocaleData, flushModuleScopingQueueAsMuchAsPossible, gatherDeferBlocksCommentNodes, generateStandaloneInDeclarationsError, getAsyncClassMetadataFn, getCompilerFacade, getDebugNode, getDeferBlocks$1 as getDeferBlocks, getDirectives, getDocument, getHostElement, getLContext, getLDeferBlockDetails, getLNodeForHydration, getLocaleCurrencyCode, getLocalePluralCase, getNgZone, getNgZoneOptions, getOrComputeI18nChildren, getRegisteredNgModuleType, getSanitizationBypassType, getTDeferBlockDetails, inputBinding, internalProvideZoneChangeDetection, invokeListeners, isBoundToModule, isComponentDefPendingResolution, isComponentResourceResolutionQueueEmpty, isDeferBlock, isDetachedByI18n, isDisconnectedNode, isI18nHydrationEnabled, isI18nHydrationSupportEnabled, isInSkipHydrationBlock, isIncrementalHydrationEnabled, isJsObject, isLetDeclaration, isListLikeIterable, isNgModule, isPromise, isSubscribable, isTNodeShape, isViewDirty, iterateListLike, makePropDecorator, makeStateKey, markForRefresh, noSideEffects, optionsReducer, outputBinding, patchComponentDefWithScope, performanceMarkFeature, processAndInitTriggers, processBlockData, processTextNodeBeforeSerialization, profiler, provideAppInitializer, provideNgReflectAttributes, provideZoneChangeDetection, provideZonelessChangeDetection, publishDefaultGlobalUtils, publishExternalGlobalUtil, publishSignalConfiguration, readHydrationInfo, readPatchedLView, registerLocaleData, registerNgModuleType, remove, removeListeners, renderDeferBlockState, resetCompiledComponents, resetJitOptions, resolveComponentResources, restoreComponentResolutionQueue, setAllowDuplicateNgModuleIdsForTest, setClassMetadata, setClassMetadataAsync, setDocument, setIsI18nHydrationSupportEnabled, setJSActionAttributes, setJitOptions, setLocaleId, setStashFn, setTestabilityGetter, sharedMapFunction, sharedStashFunction, store, transitiveScopesFor, triggerHydrationFromBlockName, triggerResourceLoading, trySerializeI18nBlock, twoWayBinding, unregisterAllLocaleData, unsupportedProjectionOfDomNodes, unwrapSafeValue, validateMatchingNode, validateNodeExists, verifySsrContentsIntegrity, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, ɵsetClassDebugInfo, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, ɵɵ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, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdomProperty, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinjectAttribute, ɵɵ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, ɵɵ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 };
|
|
32282
|
+
//# sourceMappingURL=debug_node-sP8Ihhla.mjs.map
|