@angular/core 21.2.0-next.0 → 21.2.0-next.1
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 +26 -19
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +1 -1
- package/fesm2022/_untracked-chunk.mjs +2 -2
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +1 -1
- 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 +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.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/imports-CVmcbVA9.cjs +1 -1
- package/schematics/bundles/index-BtLcQH8g.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-MWoZx-Cb.cjs +1 -1
- package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
- package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- 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-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.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/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +2 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +8 -26
- 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 +9 -4
- 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 +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1017,8 +1017,9 @@ function getNodeInjectable(lView, tView, index, tNode, flags) {
|
|
|
1017
1017
|
const factory = value;
|
|
1018
1018
|
ngDevMode && injectionPath.push(factory.name ?? 'unknown');
|
|
1019
1019
|
if (factory.resolving) {
|
|
1020
|
-
|
|
1020
|
+
let token = '';
|
|
1021
1021
|
if (ngDevMode) {
|
|
1022
|
+
token = stringifyForError(tData[index]);
|
|
1022
1023
|
throw cyclicDependencyErrorWithDetails(token, injectionPath);
|
|
1023
1024
|
} else {
|
|
1024
1025
|
throw cyclicDependencyError(token);
|
|
@@ -8313,7 +8314,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
8313
8314
|
}
|
|
8314
8315
|
}
|
|
8315
8316
|
function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
|
|
8316
|
-
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.2.0-next.
|
|
8317
|
+
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.2.0-next.1'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
|
|
8317
8318
|
let creationBindings = null;
|
|
8318
8319
|
let updateBindings = null;
|
|
8319
8320
|
let varsToAllocate = 0;
|
|
@@ -13506,12 +13507,12 @@ function updateControlClasses(lView, tNode, control) {
|
|
|
13506
13507
|
}
|
|
13507
13508
|
}
|
|
13508
13509
|
}
|
|
13509
|
-
function updateCustomControl(tNode, lView,
|
|
13510
|
+
function updateCustomControl(tNode, lView, fieldDirective, modelName) {
|
|
13510
13511
|
const tView = getTView();
|
|
13511
13512
|
const directiveIndex = tNode.customControlIndex;
|
|
13512
13513
|
const directive = lView[directiveIndex];
|
|
13513
13514
|
const directiveDef = tView.data[directiveIndex];
|
|
13514
|
-
const state =
|
|
13515
|
+
const state = fieldDirective.state();
|
|
13515
13516
|
const bindings = getControlBindings(lView);
|
|
13516
13517
|
const controlValue = state.controlValue();
|
|
13517
13518
|
if (controlBindingUpdated(bindings, CONTROL_VALUE, controlValue)) {
|
|
@@ -13521,9 +13522,9 @@ function updateCustomControl(tNode, lView, control, modelName) {
|
|
|
13521
13522
|
const element = isNative ? getNativeByTNode(tNode, lView) : null;
|
|
13522
13523
|
const renderer = lView[RENDERER];
|
|
13523
13524
|
for (const key of CONTROL_BINDING_KEYS) {
|
|
13524
|
-
const
|
|
13525
|
+
const inputName = CONTROL_BINDING_NAMES[key];
|
|
13526
|
+
const value = getValue(fieldDirective, state, key, inputName);
|
|
13525
13527
|
if (controlBindingUpdated(bindings, key, value)) {
|
|
13526
|
-
const inputName = CONTROL_BINDING_NAMES[key];
|
|
13527
13528
|
updateDirectiveInputs(tNode, lView, inputName, value);
|
|
13528
13529
|
if (isNative && !(inputName in directiveDef.inputs)) {
|
|
13529
13530
|
updateNativeProperty(tNode, renderer, element, key, value, inputName);
|
|
@@ -13531,10 +13532,10 @@ function updateCustomControl(tNode, lView, control, modelName) {
|
|
|
13531
13532
|
}
|
|
13532
13533
|
}
|
|
13533
13534
|
}
|
|
13534
|
-
function updateInteropControl(tNode, lView,
|
|
13535
|
-
const interopControl =
|
|
13535
|
+
function updateInteropControl(tNode, lView, fieldDirective) {
|
|
13536
|
+
const interopControl = fieldDirective.ɵinteropControl;
|
|
13536
13537
|
const bindings = getControlBindings(lView);
|
|
13537
|
-
const state =
|
|
13538
|
+
const state = fieldDirective.state();
|
|
13538
13539
|
const isNative = (tNode.flags & 8192) !== 0;
|
|
13539
13540
|
const element = isNative ? getNativeByTNode(tNode, lView) : null;
|
|
13540
13541
|
const renderer = lView[RENDERER];
|
|
@@ -13543,9 +13544,9 @@ function updateInteropControl(tNode, lView, control) {
|
|
|
13543
13544
|
untracked(() => interopControl.writeValue(value));
|
|
13544
13545
|
}
|
|
13545
13546
|
for (const key of CONTROL_BINDING_KEYS) {
|
|
13546
|
-
const
|
|
13547
|
+
const inputName = CONTROL_BINDING_NAMES[key];
|
|
13548
|
+
const value = getValue(fieldDirective, state, key, inputName);
|
|
13547
13549
|
if (controlBindingUpdated(bindings, key, value)) {
|
|
13548
|
-
const inputName = CONTROL_BINDING_NAMES[key];
|
|
13549
13550
|
const didUpdateInput = updateDirectiveInputs(tNode, lView, inputName, value);
|
|
13550
13551
|
if (key === DISABLED) {
|
|
13551
13552
|
if (interopControl.setDisabledState) {
|
|
@@ -13557,24 +13558,30 @@ function updateInteropControl(tNode, lView, control) {
|
|
|
13557
13558
|
}
|
|
13558
13559
|
}
|
|
13559
13560
|
}
|
|
13560
|
-
function updateNativeControl(tNode, lView,
|
|
13561
|
+
function updateNativeControl(tNode, lView, fieldDirective) {
|
|
13561
13562
|
const element = getNativeByTNode(tNode, lView);
|
|
13562
13563
|
const renderer = lView[RENDERER];
|
|
13563
|
-
const state =
|
|
13564
|
+
const state = fieldDirective.state();
|
|
13564
13565
|
const bindings = getControlBindings(lView);
|
|
13565
13566
|
const controlValue = state.controlValue();
|
|
13566
13567
|
if (controlBindingUpdated(bindings, CONTROL_VALUE, controlValue)) {
|
|
13567
13568
|
setNativeControlValue(element, controlValue);
|
|
13568
13569
|
}
|
|
13569
13570
|
for (const key of CONTROL_BINDING_KEYS) {
|
|
13570
|
-
const
|
|
13571
|
+
const inputName = CONTROL_BINDING_NAMES[key];
|
|
13572
|
+
const value = getValue(fieldDirective, state, key, inputName);
|
|
13571
13573
|
if (controlBindingUpdated(bindings, key, value)) {
|
|
13572
|
-
const inputName = CONTROL_BINDING_NAMES[key];
|
|
13573
13574
|
updateNativeProperty(tNode, renderer, element, key, value, inputName);
|
|
13574
13575
|
updateDirectiveInputs(tNode, lView, inputName, value);
|
|
13575
13576
|
}
|
|
13576
13577
|
}
|
|
13577
13578
|
}
|
|
13579
|
+
function getValue(fieldDirective, state, fieldStateKey, inputName) {
|
|
13580
|
+
if (inputName === 'errors') {
|
|
13581
|
+
return fieldDirective[fieldStateKey]();
|
|
13582
|
+
}
|
|
13583
|
+
return state[fieldStateKey]?.();
|
|
13584
|
+
}
|
|
13578
13585
|
function updateDirectiveInputs(tNode, lView, inputName, value) {
|
|
13579
13586
|
const directiveIndices = tNode.inputs?.[inputName];
|
|
13580
13587
|
if (directiveIndices) {
|
|
@@ -16393,18 +16400,18 @@ function ɵɵtext(index, value = '') {
|
|
|
16393
16400
|
const adjustedIndex = index + HEADER_OFFSET;
|
|
16394
16401
|
ngDevMode && assertTNodeCreationIndex(lView, index);
|
|
16395
16402
|
const tNode = tView.firstCreatePass ? getOrCreateTNode(tView, adjustedIndex, 1, value, null) : tView.data[adjustedIndex];
|
|
16396
|
-
const textNative = _locateOrCreateTextNode(tView, lView, tNode, value
|
|
16403
|
+
const textNative = _locateOrCreateTextNode(tView, lView, tNode, value);
|
|
16397
16404
|
lView[adjustedIndex] = textNative;
|
|
16398
16405
|
if (wasLastNodeCreated()) {
|
|
16399
16406
|
appendChild(tView, lView, textNative, tNode);
|
|
16400
16407
|
}
|
|
16401
16408
|
setCurrentTNode(tNode, false);
|
|
16402
16409
|
}
|
|
16403
|
-
let _locateOrCreateTextNode = (tView, lView, tNode, value
|
|
16410
|
+
let _locateOrCreateTextNode = (tView, lView, tNode, value) => {
|
|
16404
16411
|
lastNodeWasCreated(true);
|
|
16405
16412
|
return createTextNode(lView[RENDERER], value);
|
|
16406
16413
|
};
|
|
16407
|
-
function locateOrCreateTextNodeImpl(tView, lView, tNode, value
|
|
16414
|
+
function locateOrCreateTextNodeImpl(tView, lView, tNode, value) {
|
|
16408
16415
|
const isNodeCreationMode = !canHydrateNode(lView, tNode);
|
|
16409
16416
|
lastNodeWasCreated(isNodeCreationMode);
|
|
16410
16417
|
if (isNodeCreationMode) {
|