@angular/core 18.1.0 → 18.1.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/primitives/event-dispatch/contract_binary.mjs +3 -3
- package/esm2022/primitives/event-dispatch/index.mjs +7 -7
- package/esm2022/primitives/event-dispatch/src/a11y_click.mjs +1 -1
- package/esm2022/primitives/event-dispatch/src/action_resolver.mjs +1 -1
- package/esm2022/primitives/event-dispatch/src/bootstrap_app_scoped.mjs +44 -0
- package/esm2022/primitives/event-dispatch/src/bootstrap_global.mjs +32 -0
- package/esm2022/primitives/event-dispatch/src/cache.mjs +10 -21
- package/esm2022/primitives/event-dispatch/src/earlyeventcontract.mjs +56 -21
- package/esm2022/primitives/event-dispatch/src/event.mjs +3 -3
- package/esm2022/primitives/event-dispatch/src/event_contract_defines.mjs +1 -6
- package/esm2022/primitives/event-dispatch/src/event_type.mjs +19 -21
- package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +44 -41
- package/esm2022/primitives/event-dispatch/src/property.mjs +1 -1
- package/esm2022/rxjs-interop/src/to_signal.mjs +6 -5
- package/esm2022/src/event_delegation_utils.mjs +9 -9
- package/esm2022/src/event_dispatch/event_delegation.mjs +2 -4
- package/esm2022/src/hydration/event_replay.mjs +19 -24
- package/esm2022/src/render3/after_render_hooks.mjs +8 -3
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/event-dispatch-contract.min.js +1 -1
- package/fesm2022/core.mjs +35 -36
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +558 -526
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +6 -5
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +46 -45
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +45 -33
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +52 -33
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +64 -45
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +1 -1
- package/esm2022/primitives/event-dispatch/src/register_events.mjs +0 -31
|
@@ -8421,6 +8421,7 @@ var CHAINABLE = /* @__PURE__ */ new Set([
|
|
|
8421
8421
|
Identifiers.twoWayListener,
|
|
8422
8422
|
Identifiers.declareLet
|
|
8423
8423
|
]);
|
|
8424
|
+
var MAX_CHAIN_LENGTH = 256;
|
|
8424
8425
|
function chain(job) {
|
|
8425
8426
|
for (const unit of job.units) {
|
|
8426
8427
|
chainOperationsInList(unit.create);
|
|
@@ -8443,16 +8444,18 @@ function chainOperationsInList(opList) {
|
|
|
8443
8444
|
chain2 = null;
|
|
8444
8445
|
continue;
|
|
8445
8446
|
}
|
|
8446
|
-
if (chain2 !== null && chain2.instruction === instruction) {
|
|
8447
|
+
if (chain2 !== null && chain2.instruction === instruction && chain2.length < MAX_CHAIN_LENGTH) {
|
|
8447
8448
|
const expression = chain2.expression.callFn(op.statement.expr.args, op.statement.expr.sourceSpan, op.statement.expr.pure);
|
|
8448
8449
|
chain2.expression = expression;
|
|
8449
8450
|
chain2.op.statement = expression.toStmt();
|
|
8451
|
+
chain2.length++;
|
|
8450
8452
|
OpList.remove(op);
|
|
8451
8453
|
} else {
|
|
8452
8454
|
chain2 = {
|
|
8453
8455
|
op,
|
|
8454
8456
|
instruction,
|
|
8455
|
-
expression: op.statement.expr
|
|
8457
|
+
expression: op.statement.expr,
|
|
8458
|
+
length: 1
|
|
8456
8459
|
};
|
|
8457
8460
|
}
|
|
8458
8461
|
}
|
|
@@ -14258,7 +14261,7 @@ var _Tokenizer = class {
|
|
|
14258
14261
|
const nameCursor = this._cursor.clone();
|
|
14259
14262
|
let allowDigit = false;
|
|
14260
14263
|
this._attemptCharCodeUntilFn((code) => {
|
|
14261
|
-
if (isAsciiLetter(code) || code
|
|
14264
|
+
if (isAsciiLetter(code) || code === $$ || code === $_ || allowDigit && isDigit(code)) {
|
|
14262
14265
|
allowDigit = true;
|
|
14263
14266
|
return false;
|
|
14264
14267
|
}
|
|
@@ -22916,6 +22919,7 @@ function convertQueryPredicate(predicate) {
|
|
|
22916
22919
|
return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
|
|
22917
22920
|
}
|
|
22918
22921
|
function convertDirectiveFacadeToMetadata(facade) {
|
|
22922
|
+
var _a2;
|
|
22919
22923
|
const inputsFromMetadata = parseInputsArray(facade.inputs || []);
|
|
22920
22924
|
const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
|
|
22921
22925
|
const propMetadata = facade.propMetadata;
|
|
@@ -22938,6 +22942,19 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
22938
22942
|
});
|
|
22939
22943
|
}
|
|
22940
22944
|
}
|
|
22945
|
+
const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
|
|
22946
|
+
return typeof hostDirective === "function" ? {
|
|
22947
|
+
directive: wrapReference(hostDirective),
|
|
22948
|
+
inputs: null,
|
|
22949
|
+
outputs: null,
|
|
22950
|
+
isForwardReference: false
|
|
22951
|
+
} : {
|
|
22952
|
+
directive: wrapReference(hostDirective.directive),
|
|
22953
|
+
isForwardReference: false,
|
|
22954
|
+
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
22955
|
+
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
22956
|
+
};
|
|
22957
|
+
}) : null;
|
|
22941
22958
|
return __spreadProps(__spreadValues({}, facade), {
|
|
22942
22959
|
typeArgumentCount: 0,
|
|
22943
22960
|
typeSourceSpan: facade.typeSourceSpan,
|
|
@@ -22950,31 +22967,37 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
22950
22967
|
providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
|
|
22951
22968
|
viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
|
|
22952
22969
|
fullInheritance: false,
|
|
22953
|
-
hostDirectives
|
|
22970
|
+
hostDirectives
|
|
22954
22971
|
});
|
|
22955
22972
|
}
|
|
22956
22973
|
function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
22957
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
|
|
22974
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i, _j;
|
|
22975
|
+
const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
|
|
22976
|
+
directive: wrapReference(dir.directive),
|
|
22977
|
+
isForwardReference: false,
|
|
22978
|
+
inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
|
|
22979
|
+
outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
|
|
22980
|
+
})) : null;
|
|
22958
22981
|
return {
|
|
22959
22982
|
name: declaration.type.name,
|
|
22960
22983
|
type: wrapReference(declaration.type),
|
|
22961
22984
|
typeSourceSpan,
|
|
22962
|
-
selector: (
|
|
22985
|
+
selector: (_b2 = declaration.selector) != null ? _b2 : null,
|
|
22963
22986
|
inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
|
|
22964
|
-
outputs: (
|
|
22987
|
+
outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
|
|
22965
22988
|
host: convertHostDeclarationToMetadata(declaration.host),
|
|
22966
|
-
queries: ((
|
|
22967
|
-
viewQueries: ((
|
|
22989
|
+
queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
|
|
22990
|
+
viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
|
|
22968
22991
|
providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
|
|
22969
|
-
exportAs: (
|
|
22970
|
-
usesInheritance: (
|
|
22971
|
-
lifecycle: { usesOnChanges: (
|
|
22992
|
+
exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
|
|
22993
|
+
usesInheritance: (_g2 = declaration.usesInheritance) != null ? _g2 : false,
|
|
22994
|
+
lifecycle: { usesOnChanges: (_h2 = declaration.usesOnChanges) != null ? _h2 : false },
|
|
22972
22995
|
deps: null,
|
|
22973
22996
|
typeArgumentCount: 0,
|
|
22974
22997
|
fullInheritance: false,
|
|
22975
|
-
isStandalone: (
|
|
22976
|
-
isSignal: (
|
|
22977
|
-
hostDirectives
|
|
22998
|
+
isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
|
|
22999
|
+
isSignal: (_j = declaration.isSignal) != null ? _j : false,
|
|
23000
|
+
hostDirectives
|
|
22978
23001
|
};
|
|
22979
23002
|
}
|
|
22980
23003
|
function convertHostDeclarationToMetadata(host = {}) {
|
|
@@ -22989,24 +23012,13 @@ function convertHostDeclarationToMetadata(host = {}) {
|
|
|
22989
23012
|
}
|
|
22990
23013
|
};
|
|
22991
23014
|
}
|
|
22992
|
-
function
|
|
22993
|
-
|
|
22994
|
-
|
|
22995
|
-
|
|
22996
|
-
|
|
22997
|
-
directive: wrapReference(hostDirective),
|
|
22998
|
-
inputs: null,
|
|
22999
|
-
outputs: null,
|
|
23000
|
-
isForwardReference: false
|
|
23001
|
-
} : {
|
|
23002
|
-
directive: wrapReference(hostDirective.directive),
|
|
23003
|
-
isForwardReference: false,
|
|
23004
|
-
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
23005
|
-
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
23006
|
-
};
|
|
23007
|
-
});
|
|
23015
|
+
function getHostDirectiveBindingMapping(array) {
|
|
23016
|
+
let result = null;
|
|
23017
|
+
for (let i = 1; i < array.length; i += 2) {
|
|
23018
|
+
result = result || {};
|
|
23019
|
+
result[array[i - 1]] = array[i];
|
|
23008
23020
|
}
|
|
23009
|
-
return
|
|
23021
|
+
return result;
|
|
23010
23022
|
}
|
|
23011
23023
|
function convertOpaqueValuesToExpressions(obj) {
|
|
23012
23024
|
const result = {};
|
|
@@ -23277,7 +23289,7 @@ function publishFacade(global) {
|
|
|
23277
23289
|
}
|
|
23278
23290
|
|
|
23279
23291
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23280
|
-
var VERSION2 = new Version("18.1.
|
|
23292
|
+
var VERSION2 = new Version("18.1.2");
|
|
23281
23293
|
|
|
23282
23294
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23283
23295
|
var _VisitorMode;
|
|
@@ -23570,6 +23582,13 @@ var CommonCollector = class extends RecursiveVisitor {
|
|
|
23570
23582
|
}
|
|
23571
23583
|
super.visitElement(el, null);
|
|
23572
23584
|
}
|
|
23585
|
+
visitBlock(ast) {
|
|
23586
|
+
for (const blockParam of ast.parameters) {
|
|
23587
|
+
if (this.hasPipes(blockParam.expression)) {
|
|
23588
|
+
this.count++;
|
|
23589
|
+
}
|
|
23590
|
+
}
|
|
23591
|
+
}
|
|
23573
23592
|
visitText(ast) {
|
|
23574
23593
|
if (this.hasPipes(ast.value)) {
|
|
23575
23594
|
this.count++;
|