@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
|
@@ -11234,6 +11234,7 @@ var CHAINABLE = /* @__PURE__ */ new Set([
|
|
|
11234
11234
|
Identifiers.twoWayListener,
|
|
11235
11235
|
Identifiers.declareLet
|
|
11236
11236
|
]);
|
|
11237
|
+
var MAX_CHAIN_LENGTH = 256;
|
|
11237
11238
|
function chain(job) {
|
|
11238
11239
|
for (const unit of job.units) {
|
|
11239
11240
|
chainOperationsInList(unit.create);
|
|
@@ -11256,16 +11257,18 @@ function chainOperationsInList(opList) {
|
|
|
11256
11257
|
chain2 = null;
|
|
11257
11258
|
continue;
|
|
11258
11259
|
}
|
|
11259
|
-
if (chain2 !== null && chain2.instruction === instruction) {
|
|
11260
|
+
if (chain2 !== null && chain2.instruction === instruction && chain2.length < MAX_CHAIN_LENGTH) {
|
|
11260
11261
|
const expression = chain2.expression.callFn(op.statement.expr.args, op.statement.expr.sourceSpan, op.statement.expr.pure);
|
|
11261
11262
|
chain2.expression = expression;
|
|
11262
11263
|
chain2.op.statement = expression.toStmt();
|
|
11264
|
+
chain2.length++;
|
|
11263
11265
|
OpList.remove(op);
|
|
11264
11266
|
} else {
|
|
11265
11267
|
chain2 = {
|
|
11266
11268
|
op,
|
|
11267
11269
|
instruction,
|
|
11268
|
-
expression: op.statement.expr
|
|
11270
|
+
expression: op.statement.expr,
|
|
11271
|
+
length: 1
|
|
11269
11272
|
};
|
|
11270
11273
|
}
|
|
11271
11274
|
}
|
|
@@ -17028,7 +17031,7 @@ var _Tokenizer = class {
|
|
|
17028
17031
|
const nameCursor = this._cursor.clone();
|
|
17029
17032
|
let allowDigit = false;
|
|
17030
17033
|
this._attemptCharCodeUntilFn((code) => {
|
|
17031
|
-
if (isAsciiLetter(code) || code
|
|
17034
|
+
if (isAsciiLetter(code) || code === $$ || code === $_ || allowDigit && isDigit(code)) {
|
|
17032
17035
|
allowDigit = true;
|
|
17033
17036
|
return false;
|
|
17034
17037
|
}
|
|
@@ -25710,6 +25713,7 @@ function convertQueryPredicate(predicate) {
|
|
|
25710
25713
|
return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
|
|
25711
25714
|
}
|
|
25712
25715
|
function convertDirectiveFacadeToMetadata(facade) {
|
|
25716
|
+
var _a2;
|
|
25713
25717
|
const inputsFromMetadata = parseInputsArray(facade.inputs || []);
|
|
25714
25718
|
const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
|
|
25715
25719
|
const propMetadata = facade.propMetadata;
|
|
@@ -25732,6 +25736,19 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
25732
25736
|
});
|
|
25733
25737
|
}
|
|
25734
25738
|
}
|
|
25739
|
+
const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
|
|
25740
|
+
return typeof hostDirective === "function" ? {
|
|
25741
|
+
directive: wrapReference(hostDirective),
|
|
25742
|
+
inputs: null,
|
|
25743
|
+
outputs: null,
|
|
25744
|
+
isForwardReference: false
|
|
25745
|
+
} : {
|
|
25746
|
+
directive: wrapReference(hostDirective.directive),
|
|
25747
|
+
isForwardReference: false,
|
|
25748
|
+
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
25749
|
+
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
25750
|
+
};
|
|
25751
|
+
}) : null;
|
|
25735
25752
|
return __spreadProps(__spreadValues({}, facade), {
|
|
25736
25753
|
typeArgumentCount: 0,
|
|
25737
25754
|
typeSourceSpan: facade.typeSourceSpan,
|
|
@@ -25744,31 +25761,37 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
25744
25761
|
providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
|
|
25745
25762
|
viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
|
|
25746
25763
|
fullInheritance: false,
|
|
25747
|
-
hostDirectives
|
|
25764
|
+
hostDirectives
|
|
25748
25765
|
});
|
|
25749
25766
|
}
|
|
25750
25767
|
function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
25751
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
|
|
25768
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i, _j;
|
|
25769
|
+
const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
|
|
25770
|
+
directive: wrapReference(dir.directive),
|
|
25771
|
+
isForwardReference: false,
|
|
25772
|
+
inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
|
|
25773
|
+
outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
|
|
25774
|
+
})) : null;
|
|
25752
25775
|
return {
|
|
25753
25776
|
name: declaration.type.name,
|
|
25754
25777
|
type: wrapReference(declaration.type),
|
|
25755
25778
|
typeSourceSpan,
|
|
25756
|
-
selector: (
|
|
25779
|
+
selector: (_b2 = declaration.selector) != null ? _b2 : null,
|
|
25757
25780
|
inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
|
|
25758
|
-
outputs: (
|
|
25781
|
+
outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
|
|
25759
25782
|
host: convertHostDeclarationToMetadata(declaration.host),
|
|
25760
|
-
queries: ((
|
|
25761
|
-
viewQueries: ((
|
|
25783
|
+
queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
|
|
25784
|
+
viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
|
|
25762
25785
|
providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
|
|
25763
|
-
exportAs: (
|
|
25764
|
-
usesInheritance: (
|
|
25765
|
-
lifecycle: { usesOnChanges: (
|
|
25786
|
+
exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
|
|
25787
|
+
usesInheritance: (_g2 = declaration.usesInheritance) != null ? _g2 : false,
|
|
25788
|
+
lifecycle: { usesOnChanges: (_h2 = declaration.usesOnChanges) != null ? _h2 : false },
|
|
25766
25789
|
deps: null,
|
|
25767
25790
|
typeArgumentCount: 0,
|
|
25768
25791
|
fullInheritance: false,
|
|
25769
|
-
isStandalone: (
|
|
25770
|
-
isSignal: (
|
|
25771
|
-
hostDirectives
|
|
25792
|
+
isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
|
|
25793
|
+
isSignal: (_j = declaration.isSignal) != null ? _j : false,
|
|
25794
|
+
hostDirectives
|
|
25772
25795
|
};
|
|
25773
25796
|
}
|
|
25774
25797
|
function convertHostDeclarationToMetadata(host = {}) {
|
|
@@ -25783,24 +25806,13 @@ function convertHostDeclarationToMetadata(host = {}) {
|
|
|
25783
25806
|
}
|
|
25784
25807
|
};
|
|
25785
25808
|
}
|
|
25786
|
-
function
|
|
25787
|
-
|
|
25788
|
-
|
|
25789
|
-
|
|
25790
|
-
|
|
25791
|
-
directive: wrapReference(hostDirective),
|
|
25792
|
-
inputs: null,
|
|
25793
|
-
outputs: null,
|
|
25794
|
-
isForwardReference: false
|
|
25795
|
-
} : {
|
|
25796
|
-
directive: wrapReference(hostDirective.directive),
|
|
25797
|
-
isForwardReference: false,
|
|
25798
|
-
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
25799
|
-
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
25800
|
-
};
|
|
25801
|
-
});
|
|
25809
|
+
function getHostDirectiveBindingMapping(array) {
|
|
25810
|
+
let result = null;
|
|
25811
|
+
for (let i = 1; i < array.length; i += 2) {
|
|
25812
|
+
result = result || {};
|
|
25813
|
+
result[array[i - 1]] = array[i];
|
|
25802
25814
|
}
|
|
25803
|
-
return
|
|
25815
|
+
return result;
|
|
25804
25816
|
}
|
|
25805
25817
|
function convertOpaqueValuesToExpressions(obj) {
|
|
25806
25818
|
const result = {};
|
|
@@ -26071,7 +26083,7 @@ function publishFacade(global) {
|
|
|
26071
26083
|
}
|
|
26072
26084
|
|
|
26073
26085
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
26074
|
-
var VERSION2 = new Version("18.1.
|
|
26086
|
+
var VERSION2 = new Version("18.1.2");
|
|
26075
26087
|
|
|
26076
26088
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
26077
26089
|
var _I18N_ATTR = "i18n";
|
|
@@ -27175,7 +27187,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
27175
27187
|
function compileDeclareClassMetadata(metadata) {
|
|
27176
27188
|
const definitionMap = new DefinitionMap();
|
|
27177
27189
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
27178
|
-
definitionMap.set("version", literal("18.1.
|
|
27190
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27179
27191
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27180
27192
|
definitionMap.set("type", metadata.type);
|
|
27181
27193
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -27194,7 +27206,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
27194
27206
|
callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
|
|
27195
27207
|
callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
|
|
27196
27208
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
27197
|
-
definitionMap.set("version", literal("18.1.
|
|
27209
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27198
27210
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27199
27211
|
definitionMap.set("type", metadata.type);
|
|
27200
27212
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -27262,7 +27274,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
27262
27274
|
const definitionMap = new DefinitionMap();
|
|
27263
27275
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
27264
27276
|
definitionMap.set("minVersion", literal(minVersion));
|
|
27265
|
-
definitionMap.set("version", literal("18.1.
|
|
27277
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27266
27278
|
definitionMap.set("type", meta.type.value);
|
|
27267
27279
|
if (meta.isStandalone) {
|
|
27268
27280
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -27580,7 +27592,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
|
|
|
27580
27592
|
function compileDeclareFactoryFunction(meta) {
|
|
27581
27593
|
const definitionMap = new DefinitionMap();
|
|
27582
27594
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
27583
|
-
definitionMap.set("version", literal("18.1.
|
|
27595
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27584
27596
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27585
27597
|
definitionMap.set("type", meta.type.value);
|
|
27586
27598
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -27603,7 +27615,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
27603
27615
|
function createInjectableDefinitionMap(meta) {
|
|
27604
27616
|
const definitionMap = new DefinitionMap();
|
|
27605
27617
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
27606
|
-
definitionMap.set("version", literal("18.1.
|
|
27618
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27607
27619
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27608
27620
|
definitionMap.set("type", meta.type.value);
|
|
27609
27621
|
if (meta.providedIn !== void 0) {
|
|
@@ -27641,7 +27653,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
27641
27653
|
function createInjectorDefinitionMap(meta) {
|
|
27642
27654
|
const definitionMap = new DefinitionMap();
|
|
27643
27655
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
27644
|
-
definitionMap.set("version", literal("18.1.
|
|
27656
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27645
27657
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27646
27658
|
definitionMap.set("type", meta.type.value);
|
|
27647
27659
|
definitionMap.set("providers", meta.providers);
|
|
@@ -27665,7 +27677,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
27665
27677
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
27666
27678
|
}
|
|
27667
27679
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
27668
|
-
definitionMap.set("version", literal("18.1.
|
|
27680
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27669
27681
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27670
27682
|
definitionMap.set("type", meta.type.value);
|
|
27671
27683
|
if (meta.bootstrap.length > 0) {
|
|
@@ -27700,7 +27712,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
27700
27712
|
function createPipeDefinitionMap(meta) {
|
|
27701
27713
|
const definitionMap = new DefinitionMap();
|
|
27702
27714
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
27703
|
-
definitionMap.set("version", literal("18.1.
|
|
27715
|
+
definitionMap.set("version", literal("18.1.2"));
|
|
27704
27716
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27705
27717
|
definitionMap.set("type", meta.type.value);
|
|
27706
27718
|
if (meta.isStandalone) {
|
|
@@ -27717,7 +27729,7 @@ function createPipeDefinitionMap(meta) {
|
|
|
27717
27729
|
publishFacade(_global);
|
|
27718
27730
|
|
|
27719
27731
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
27720
|
-
var VERSION3 = new Version("18.1.
|
|
27732
|
+
var VERSION3 = new Version("18.1.2");
|
|
27721
27733
|
|
|
27722
27734
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
27723
27735
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
@@ -46049,13 +46061,19 @@ var ClassExtractor = class {
|
|
|
46049
46061
|
}
|
|
46050
46062
|
isMemberExcluded(member) {
|
|
46051
46063
|
var _a2;
|
|
46052
|
-
return !member.name || !this.isDocumentableMember(member) ||
|
|
46064
|
+
return !member.name || !this.isDocumentableMember(member) || !import_typescript102.default.isCallSignatureDeclaration(member) && ((_a2 = member.modifiers) == null ? void 0 : _a2.some((mod) => mod.kind === import_typescript102.default.SyntaxKind.PrivateKeyword)) || member.name.getText() === "prototype" || isAngularPrivateName(member.name.getText()) || isInternal(member);
|
|
46053
46065
|
}
|
|
46054
46066
|
isDocumentableMember(member) {
|
|
46055
|
-
return this.isMethod(member) || this.isProperty(member) || import_typescript102.default.isAccessor(member);
|
|
46067
|
+
return this.isMethod(member) || this.isProperty(member) || import_typescript102.default.isAccessor(member) || import_typescript102.default.isCallSignatureDeclaration(member);
|
|
46068
|
+
}
|
|
46069
|
+
isPublicConstructorParameterProperty(node) {
|
|
46070
|
+
if (import_typescript102.default.isParameterPropertyDeclaration(node, node.parent) && node.modifiers) {
|
|
46071
|
+
return node.modifiers.some((modifier) => modifier.kind === import_typescript102.default.SyntaxKind.PublicKeyword);
|
|
46072
|
+
}
|
|
46073
|
+
return false;
|
|
46056
46074
|
}
|
|
46057
46075
|
isProperty(member) {
|
|
46058
|
-
return import_typescript102.default.isPropertyDeclaration(member) || import_typescript102.default.isPropertySignature(member);
|
|
46076
|
+
return import_typescript102.default.isPropertyDeclaration(member) || import_typescript102.default.isPropertySignature(member) || this.isPublicConstructorParameterProperty(member);
|
|
46059
46077
|
}
|
|
46060
46078
|
isMethod(member) {
|
|
46061
46079
|
return import_typescript102.default.isMethodDeclaration(member) || import_typescript102.default.isMethodSignature(member);
|
|
@@ -49587,6 +49605,7 @@ var NgtscProgram = class {
|
|
|
49587
49605
|
};
|
|
49588
49606
|
}
|
|
49589
49607
|
}
|
|
49608
|
+
untagAllTsFiles(this.tsProgram);
|
|
49590
49609
|
const forceEmit = (_a2 = opts == null ? void 0 : opts.forceEmit) != null ? _a2 : false;
|
|
49591
49610
|
this.compiler.perfRecorder.memory(PerfCheckpoint.PreEmit);
|
|
49592
49611
|
const res = this.compiler.perfRecorder.inPhase(PerfPhase.TypeScriptEmit, () => {
|