@angular/core 17.3.0 → 17.3.2
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/esm2022/src/authoring/input/input.mjs +37 -14
- package/esm2022/src/authoring/input/input_signal.mjs +1 -1
- package/esm2022/src/authoring/input/input_signal_node.mjs +1 -1
- package/esm2022/src/authoring/input/input_type_checking.mjs +1 -1
- package/esm2022/src/authoring/model/model.mjs +35 -15
- package/esm2022/src/authoring/output/output.mjs +32 -10
- package/esm2022/src/authoring/queries.mjs +11 -1
- package/esm2022/src/defer/instructions.mjs +20 -5
- package/esm2022/src/hydration/error_handling.mjs +6 -3
- package/esm2022/src/hydration/utils.mjs +5 -4
- package/esm2022/src/linker/template_ref.mjs +2 -2
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/view_manipulation.mjs +2 -2
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +17564 -17472
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +158 -109
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +8 -1
- package/schematics/migrations/block-template-entities/bundle.js.map +2 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +8 -1
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +12 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +2885 -1239
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -18937,6 +18937,7 @@ function optimizeTrackFns(job) {
|
|
|
18937
18937
|
} else if (op.track instanceof ReadVarExpr && op.track.name === "$item") {
|
|
18938
18938
|
op.trackByFn = importExpr(Identifiers.repeaterTrackByIdentity);
|
|
18939
18939
|
} else if (isTrackByFunctionCall(job.root.xref, op.track)) {
|
|
18940
|
+
op.usesComponentInstance = true;
|
|
18940
18941
|
if (op.track.receiver.receiver.view === unit.xref) {
|
|
18941
18942
|
op.trackByFn = op.track.receiver;
|
|
18942
18943
|
} else {
|
|
@@ -20264,6 +20265,12 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
20264
20265
|
const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);
|
|
20265
20266
|
unit.update.push(createBindingOp(xref, BindingKind.Attribute, attr.name, literal(attr.value), null, securityContext, true, false, null, asMessage(attr.i18n), attr.sourceSpan));
|
|
20266
20267
|
}
|
|
20268
|
+
for (const attr of root.inputs) {
|
|
20269
|
+
if (attr.type !== 4 && attr.type !== 1) {
|
|
20270
|
+
const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);
|
|
20271
|
+
unit.create.push(createExtractedAttributeOp(xref, BindingKind.Property, null, attr.name, null, null, null, securityContext));
|
|
20272
|
+
}
|
|
20273
|
+
}
|
|
20267
20274
|
const tagName = root instanceof Element ? root.name : root.tagName;
|
|
20268
20275
|
return tagName === NG_TEMPLATE_TAG_NAME ? null : tagName;
|
|
20269
20276
|
}
|
|
@@ -25992,7 +25999,7 @@ function publishFacade(global) {
|
|
|
25992
25999
|
}
|
|
25993
26000
|
|
|
25994
26001
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25995
|
-
var VERSION2 = new Version("17.3.
|
|
26002
|
+
var VERSION2 = new Version("17.3.2");
|
|
25996
26003
|
|
|
25997
26004
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
25998
26005
|
var _VisitorMode;
|
|
@@ -26434,8 +26441,11 @@ function updateImportClause(clause, removeCommonModule) {
|
|
|
26434
26441
|
function updateClassImports(propAssignment, removeCommonModule) {
|
|
26435
26442
|
const printer = import_typescript6.default.createPrinter();
|
|
26436
26443
|
const importList = propAssignment.initializer;
|
|
26444
|
+
if (!import_typescript6.default.isArrayLiteralExpression(importList)) {
|
|
26445
|
+
return null;
|
|
26446
|
+
}
|
|
26437
26447
|
const removals = removeCommonModule ? importWithCommonRemovals : importRemovals;
|
|
26438
|
-
const elements = importList.elements.filter((el) => !removals.includes(el.
|
|
26448
|
+
const elements = importList.elements.filter((el) => !import_typescript6.default.isIdentifier(el) || !removals.includes(el.text));
|
|
26439
26449
|
if (elements.length === importList.elements.length) {
|
|
26440
26450
|
return null;
|
|
26441
26451
|
}
|