@angular/core 20.1.0-next.3 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.d.ts +1 -1
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +1 -1
- package/event_dispatcher.d.d.ts +1 -1
- package/fesm2022/attribute.mjs +1 -1
- package/fesm2022/core.mjs +14 -6
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +8 -6
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/{injector.mjs → not_found.mjs} +28 -25
- package/fesm2022/not_found.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +11 -3
- package/fesm2022/primitives/di.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/resource.mjs +1 -1
- package/fesm2022/root_effect_scheduler.mjs +3 -3
- package/fesm2022/root_effect_scheduler.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +2 -2
- package/fesm2022/signal.mjs +1 -1
- package/fesm2022/testing.mjs +2 -2
- package/fesm2022/untracked.mjs +1 -1
- package/fesm2022/weak_ref.mjs +1 -1
- package/graph.d.d.ts +1 -1
- package/index.d.ts +7 -8
- package/package.json +2 -2
- package/primitives/di/index.d.ts +11 -3
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/{apply_import_manager-C11Q8021.cjs → apply_import_manager-B0fYYMpr.cjs} +3 -3
- package/schematics/bundles/{checker-BVnpy__J.cjs → checker-DLInMAS3.cjs} +533 -1264
- package/schematics/bundles/cleanup-unused-imports.cjs +6 -5
- package/schematics/bundles/{compiler_host-j95cyBKm.cjs → compiler_host-Doj9KVJf.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +3 -3
- package/schematics/bundles/document-core.cjs +6 -5
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/{index-BkA2Tb_u.cjs → index-BmuUS1AB.cjs} +947 -71
- package/schematics/bundles/{index-DYpSE68_.cjs → index-Bp8sCiq1.cjs} +5 -4
- package/schematics/bundles/inject-flags.cjs +6 -5
- package/schematics/bundles/inject-migration.cjs +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Covsxz7y.cjs → migrate_ts_type_references-CmZ0155c.cjs} +6 -5
- package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +7 -6
- package/schematics/bundles/{project_paths-3GwjSb-R.cjs → project_paths-D2SJWT7x.cjs} +39 -3
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/self-closing-tags-migration.cjs +5 -4
- package/schematics/bundles/signal-input-migration.cjs +8 -7
- package/schematics/bundles/signal-queries-migration.cjs +8 -7
- package/schematics/bundles/signals.cjs +8 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +5 -4
- package/signal.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/weak_ref.d.d.ts +1 -1
- package/fesm2022/injector.mjs.map +0 -1
package/fesm2022/debug_node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0
|
|
2
|
+
* @license Angular v20.1.0
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8017,8 +8017,7 @@ function enableApplyRootElementTransformImpl() {
|
|
|
8017
8017
|
* object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of
|
|
8018
8018
|
* mapping property names. Do NOT change without benchmarking.
|
|
8019
8019
|
*
|
|
8020
|
-
* Note: this mapping has to be kept in sync with the
|
|
8021
|
-
* type-checking machinery of ngtsc.
|
|
8020
|
+
* Note: this mapping has to be kept in sync with the equivalent mappings in the compiler.
|
|
8022
8021
|
*/
|
|
8023
8022
|
function mapPropName(name) {
|
|
8024
8023
|
if (name === 'class')
|
|
@@ -8044,6 +8043,10 @@ function setPropertyAndInputs(tNode, lView, propName, value, renderer, sanitizer
|
|
|
8044
8043
|
ngDevMode && setNgReflectProperties(lView, tView, tNode, propName, value);
|
|
8045
8044
|
return; // Stop propcessing if we've matched at least one input.
|
|
8046
8045
|
}
|
|
8046
|
+
// If the property is going to a DOM node, we have to remap it.
|
|
8047
|
+
if (tNode.type & 3 /* TNodeType.AnyRNode */) {
|
|
8048
|
+
propName = mapPropName(propName);
|
|
8049
|
+
}
|
|
8047
8050
|
setDomProperty(tNode, lView, propName, value, renderer, sanitizer);
|
|
8048
8051
|
}
|
|
8049
8052
|
/**
|
|
@@ -8058,7 +8061,6 @@ function setPropertyAndInputs(tNode, lView, propName, value, renderer, sanitizer
|
|
|
8058
8061
|
function setDomProperty(tNode, lView, propName, value, renderer, sanitizer) {
|
|
8059
8062
|
if (tNode.type & 3 /* TNodeType.AnyRNode */) {
|
|
8060
8063
|
const element = getNativeByTNode(tNode, lView);
|
|
8061
|
-
propName = mapPropName(propName);
|
|
8062
8064
|
if (ngDevMode) {
|
|
8063
8065
|
validateAgainstEventProperties(propName);
|
|
8064
8066
|
if (!isPropertyValid(element, propName, tNode.value, lView[TVIEW].schemas)) {
|
|
@@ -13476,7 +13478,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
13476
13478
|
}
|
|
13477
13479
|
function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
|
|
13478
13480
|
const tAttributes = rootSelectorOrNode
|
|
13479
|
-
? ['ng-version', '20.1.0
|
|
13481
|
+
? ['ng-version', '20.1.0']
|
|
13480
13482
|
: // Extract attributes and classes from the first selector only to match VE behavior.
|
|
13481
13483
|
extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
|
|
13482
13484
|
let creationBindings = null;
|
|
@@ -13600,7 +13602,7 @@ class ComponentRef extends ComponentRef$1 {
|
|
|
13600
13602
|
if (ngDevMode && !hasSetInput) {
|
|
13601
13603
|
const cmpNameForError = stringifyForError(this.componentType);
|
|
13602
13604
|
let message = `Can't set value of the '${name}' input on the '${cmpNameForError}' component. `;
|
|
13603
|
-
message += `Make sure that the '${name}' property is
|
|
13605
|
+
message += `Make sure that the '${name}' property is declared as an input using the @Input() decorator or the input() function.`;
|
|
13604
13606
|
reportUnknownPropertyError(message);
|
|
13605
13607
|
}
|
|
13606
13608
|
}
|