@angular/core 17.3.0-rc.0 → 17.3.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/esm2022/src/application/application_ref.mjs +14 -11
- package/esm2022/src/authoring/input/input.mjs +4 -1
- package/esm2022/src/authoring/output/output.mjs +2 -2
- package/esm2022/src/authoring/output/output_emitter_ref.mjs +14 -3
- package/esm2022/src/authoring/queries.mjs +7 -1
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling.mjs +1 -1
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +10 -4
- package/esm2022/src/core_private_export.mjs +2 -3
- package/esm2022/src/defer/instructions.mjs +2 -2
- package/esm2022/src/di/contextual.mjs +9 -3
- package/esm2022/src/event_emitter.mjs +6 -7
- package/esm2022/src/hydration/annotate.mjs +4 -2
- package/esm2022/src/hydration/api.mjs +27 -2
- package/esm2022/src/hydration/cleanup.mjs +18 -2
- package/esm2022/src/hydration/error_handling.mjs +6 -3
- package/esm2022/src/hydration/interfaces.mjs +1 -1
- package/esm2022/src/hydration/node_lookup_utils.mjs +59 -39
- package/esm2022/src/hydration/tokens.mjs +6 -1
- package/esm2022/src/hydration/utils.mjs +5 -4
- package/esm2022/src/i18n/utils.mjs +16 -0
- package/esm2022/src/linker/template_ref.mjs +2 -2
- package/esm2022/src/render3/after_render_hooks.mjs +11 -8
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/i18n/i18n_apply.mjs +32 -7
- package/esm2022/src/render3/i18n/i18n_parse.mjs +50 -16
- package/esm2022/src/render3/instructions/control_flow.mjs +4 -2
- package/esm2022/src/render3/instructions/element.mjs +5 -3
- package/esm2022/src/render3/instructions/element_container.mjs +3 -2
- package/esm2022/src/render3/instructions/template.mjs +4 -2
- package/esm2022/src/render3/instructions/text.mjs +4 -2
- package/esm2022/src/render3/interfaces/i18n.mjs +1 -1
- package/esm2022/src/render3/node_manipulation.mjs +6 -2
- package/esm2022/src/render3/node_selector_matcher.mjs +37 -51
- package/esm2022/src/render3/queue_state_update.mjs +2 -4
- package/esm2022/src/render3/util/view_utils.mjs +2 -1
- package/esm2022/src/render3/view_manipulation.mjs +2 -2
- package/esm2022/src/sanitization/html_sanitizer.mjs +54 -14
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +11 -66
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +1460 -1264
- 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 +11 -66
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +96 -12
- 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 +14 -2
- package/schematics/migrations/block-template-entities/bundle.js.map +2 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +14 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +14 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +386 -299
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2022/src/is_internal.mjs +0 -15
|
@@ -18700,10 +18700,13 @@ function transformTwoWayBindingSet(job) {
|
|
|
18700
18700
|
}
|
|
18701
18701
|
}
|
|
18702
18702
|
function wrapSetOperation(target, value) {
|
|
18703
|
+
if (target instanceof ReadVariableExpr) {
|
|
18704
|
+
return twoWayBindingSet(target, value);
|
|
18705
|
+
}
|
|
18703
18706
|
return twoWayBindingSet(target, value).or(target.set(value));
|
|
18704
18707
|
}
|
|
18705
18708
|
function isReadExpression2(value) {
|
|
18706
|
-
return value instanceof ReadPropExpr || value instanceof ReadKeyExpr;
|
|
18709
|
+
return value instanceof ReadPropExpr || value instanceof ReadKeyExpr || value instanceof ReadVariableExpr;
|
|
18707
18710
|
}
|
|
18708
18711
|
function wrapAction(target, value) {
|
|
18709
18712
|
if (isReadExpression2(target)) {
|
|
@@ -20261,6 +20264,12 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
20261
20264
|
const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);
|
|
20262
20265
|
unit.update.push(createBindingOp(xref, BindingKind.Attribute, attr.name, literal(attr.value), null, securityContext, true, false, null, asMessage(attr.i18n), attr.sourceSpan));
|
|
20263
20266
|
}
|
|
20267
|
+
for (const attr of root.inputs) {
|
|
20268
|
+
if (attr.type !== 4 && attr.type !== 1) {
|
|
20269
|
+
const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);
|
|
20270
|
+
unit.create.push(createExtractedAttributeOp(xref, BindingKind.Property, null, attr.name, null, null, null, securityContext));
|
|
20271
|
+
}
|
|
20272
|
+
}
|
|
20264
20273
|
const tagName = root instanceof Element ? root.name : root.tagName;
|
|
20265
20274
|
return tagName === NG_TEMPLATE_TAG_NAME ? null : tagName;
|
|
20266
20275
|
}
|
|
@@ -20905,6 +20914,9 @@ function parseForLoopParameters(block, errors, bindingParser) {
|
|
|
20905
20914
|
errors.push(new ParseError(param.sourceSpan, '@for loop can only have one "track" expression'));
|
|
20906
20915
|
} else {
|
|
20907
20916
|
const expression = parseBlockParameterToBinding(param, bindingParser, trackMatch[1]);
|
|
20917
|
+
if (expression.ast instanceof EmptyExpr) {
|
|
20918
|
+
errors.push(new ParseError(param.sourceSpan, '@for loop must have a "track" expression'));
|
|
20919
|
+
}
|
|
20908
20920
|
const keywordSpan = new ParseSourceSpan(param.sourceSpan.start, param.sourceSpan.start.moveBy("track".length));
|
|
20909
20921
|
result.trackBy = { expression, keywordSpan };
|
|
20910
20922
|
}
|
|
@@ -25986,7 +25998,7 @@ function publishFacade(global) {
|
|
|
25986
25998
|
}
|
|
25987
25999
|
|
|
25988
26000
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25989
|
-
var VERSION2 = new Version("17.3.
|
|
26001
|
+
var VERSION2 = new Version("17.3.1");
|
|
25990
26002
|
|
|
25991
26003
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
25992
26004
|
var _VisitorMode;
|