@angular/core 18.1.0 → 18.1.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/primitives/event-dispatch/contract_binary.mjs +3 -3
- package/esm2022/primitives/event-dispatch/index.mjs +6 -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 +29 -0
- package/esm2022/primitives/event-dispatch/src/bootstrap_global.mjs +21 -0
- package/esm2022/primitives/event-dispatch/src/cache.mjs +10 -21
- package/esm2022/primitives/event-dispatch/src/earlyeventcontract.mjs +32 -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 +6 -8
- package/esm2022/primitives/event-dispatch/src/property.mjs +1 -1
- package/esm2022/src/event_delegation_utils.mjs +10 -10
- package/esm2022/src/hydration/event_replay.mjs +17 -22
- package/esm2022/src/render3/after_render_hooks.mjs +7 -2
- 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 +33 -33
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +452 -529
- package/fesm2022/primitives/event-dispatch.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 +4 -4
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +23 -37
- 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 +40 -31
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +47 -31
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +59 -43
- 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
|
@@ -17028,7 +17028,7 @@ var _Tokenizer = class {
|
|
|
17028
17028
|
const nameCursor = this._cursor.clone();
|
|
17029
17029
|
let allowDigit = false;
|
|
17030
17030
|
this._attemptCharCodeUntilFn((code) => {
|
|
17031
|
-
if (isAsciiLetter(code) || code
|
|
17031
|
+
if (isAsciiLetter(code) || code === $$ || code === $_ || allowDigit && isDigit(code)) {
|
|
17032
17032
|
allowDigit = true;
|
|
17033
17033
|
return false;
|
|
17034
17034
|
}
|
|
@@ -25710,6 +25710,7 @@ function convertQueryPredicate(predicate) {
|
|
|
25710
25710
|
return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
|
|
25711
25711
|
}
|
|
25712
25712
|
function convertDirectiveFacadeToMetadata(facade) {
|
|
25713
|
+
var _a2;
|
|
25713
25714
|
const inputsFromMetadata = parseInputsArray(facade.inputs || []);
|
|
25714
25715
|
const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
|
|
25715
25716
|
const propMetadata = facade.propMetadata;
|
|
@@ -25732,6 +25733,19 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
25732
25733
|
});
|
|
25733
25734
|
}
|
|
25734
25735
|
}
|
|
25736
|
+
const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
|
|
25737
|
+
return typeof hostDirective === "function" ? {
|
|
25738
|
+
directive: wrapReference(hostDirective),
|
|
25739
|
+
inputs: null,
|
|
25740
|
+
outputs: null,
|
|
25741
|
+
isForwardReference: false
|
|
25742
|
+
} : {
|
|
25743
|
+
directive: wrapReference(hostDirective.directive),
|
|
25744
|
+
isForwardReference: false,
|
|
25745
|
+
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
25746
|
+
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
25747
|
+
};
|
|
25748
|
+
}) : null;
|
|
25735
25749
|
return __spreadProps(__spreadValues({}, facade), {
|
|
25736
25750
|
typeArgumentCount: 0,
|
|
25737
25751
|
typeSourceSpan: facade.typeSourceSpan,
|
|
@@ -25744,31 +25758,37 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
25744
25758
|
providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
|
|
25745
25759
|
viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
|
|
25746
25760
|
fullInheritance: false,
|
|
25747
|
-
hostDirectives
|
|
25761
|
+
hostDirectives
|
|
25748
25762
|
});
|
|
25749
25763
|
}
|
|
25750
25764
|
function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
25751
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
|
|
25765
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i, _j;
|
|
25766
|
+
const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
|
|
25767
|
+
directive: wrapReference(dir.directive),
|
|
25768
|
+
isForwardReference: false,
|
|
25769
|
+
inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
|
|
25770
|
+
outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
|
|
25771
|
+
})) : null;
|
|
25752
25772
|
return {
|
|
25753
25773
|
name: declaration.type.name,
|
|
25754
25774
|
type: wrapReference(declaration.type),
|
|
25755
25775
|
typeSourceSpan,
|
|
25756
|
-
selector: (
|
|
25776
|
+
selector: (_b2 = declaration.selector) != null ? _b2 : null,
|
|
25757
25777
|
inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
|
|
25758
|
-
outputs: (
|
|
25778
|
+
outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
|
|
25759
25779
|
host: convertHostDeclarationToMetadata(declaration.host),
|
|
25760
|
-
queries: ((
|
|
25761
|
-
viewQueries: ((
|
|
25780
|
+
queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
|
|
25781
|
+
viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
|
|
25762
25782
|
providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
|
|
25763
|
-
exportAs: (
|
|
25764
|
-
usesInheritance: (
|
|
25765
|
-
lifecycle: { usesOnChanges: (
|
|
25783
|
+
exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
|
|
25784
|
+
usesInheritance: (_g2 = declaration.usesInheritance) != null ? _g2 : false,
|
|
25785
|
+
lifecycle: { usesOnChanges: (_h2 = declaration.usesOnChanges) != null ? _h2 : false },
|
|
25766
25786
|
deps: null,
|
|
25767
25787
|
typeArgumentCount: 0,
|
|
25768
25788
|
fullInheritance: false,
|
|
25769
|
-
isStandalone: (
|
|
25770
|
-
isSignal: (
|
|
25771
|
-
hostDirectives
|
|
25789
|
+
isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
|
|
25790
|
+
isSignal: (_j = declaration.isSignal) != null ? _j : false,
|
|
25791
|
+
hostDirectives
|
|
25772
25792
|
};
|
|
25773
25793
|
}
|
|
25774
25794
|
function convertHostDeclarationToMetadata(host = {}) {
|
|
@@ -25783,24 +25803,13 @@ function convertHostDeclarationToMetadata(host = {}) {
|
|
|
25783
25803
|
}
|
|
25784
25804
|
};
|
|
25785
25805
|
}
|
|
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
|
-
});
|
|
25806
|
+
function getHostDirectiveBindingMapping(array) {
|
|
25807
|
+
let result = null;
|
|
25808
|
+
for (let i = 1; i < array.length; i += 2) {
|
|
25809
|
+
result = result || {};
|
|
25810
|
+
result[array[i - 1]] = array[i];
|
|
25802
25811
|
}
|
|
25803
|
-
return
|
|
25812
|
+
return result;
|
|
25804
25813
|
}
|
|
25805
25814
|
function convertOpaqueValuesToExpressions(obj) {
|
|
25806
25815
|
const result = {};
|
|
@@ -26071,7 +26080,7 @@ function publishFacade(global) {
|
|
|
26071
26080
|
}
|
|
26072
26081
|
|
|
26073
26082
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
26074
|
-
var VERSION2 = new Version("18.1.
|
|
26083
|
+
var VERSION2 = new Version("18.1.1");
|
|
26075
26084
|
|
|
26076
26085
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
26077
26086
|
var _I18N_ATTR = "i18n";
|
|
@@ -27175,7 +27184,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
27175
27184
|
function compileDeclareClassMetadata(metadata) {
|
|
27176
27185
|
const definitionMap = new DefinitionMap();
|
|
27177
27186
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
27178
|
-
definitionMap.set("version", literal("18.1.
|
|
27187
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27179
27188
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27180
27189
|
definitionMap.set("type", metadata.type);
|
|
27181
27190
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -27194,7 +27203,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
27194
27203
|
callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
|
|
27195
27204
|
callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
|
|
27196
27205
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
27197
|
-
definitionMap.set("version", literal("18.1.
|
|
27206
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27198
27207
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27199
27208
|
definitionMap.set("type", metadata.type);
|
|
27200
27209
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -27262,7 +27271,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
27262
27271
|
const definitionMap = new DefinitionMap();
|
|
27263
27272
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
27264
27273
|
definitionMap.set("minVersion", literal(minVersion));
|
|
27265
|
-
definitionMap.set("version", literal("18.1.
|
|
27274
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27266
27275
|
definitionMap.set("type", meta.type.value);
|
|
27267
27276
|
if (meta.isStandalone) {
|
|
27268
27277
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -27580,7 +27589,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
|
|
|
27580
27589
|
function compileDeclareFactoryFunction(meta) {
|
|
27581
27590
|
const definitionMap = new DefinitionMap();
|
|
27582
27591
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
27583
|
-
definitionMap.set("version", literal("18.1.
|
|
27592
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27584
27593
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27585
27594
|
definitionMap.set("type", meta.type.value);
|
|
27586
27595
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -27603,7 +27612,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
27603
27612
|
function createInjectableDefinitionMap(meta) {
|
|
27604
27613
|
const definitionMap = new DefinitionMap();
|
|
27605
27614
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
27606
|
-
definitionMap.set("version", literal("18.1.
|
|
27615
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27607
27616
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27608
27617
|
definitionMap.set("type", meta.type.value);
|
|
27609
27618
|
if (meta.providedIn !== void 0) {
|
|
@@ -27641,7 +27650,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
27641
27650
|
function createInjectorDefinitionMap(meta) {
|
|
27642
27651
|
const definitionMap = new DefinitionMap();
|
|
27643
27652
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
27644
|
-
definitionMap.set("version", literal("18.1.
|
|
27653
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27645
27654
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27646
27655
|
definitionMap.set("type", meta.type.value);
|
|
27647
27656
|
definitionMap.set("providers", meta.providers);
|
|
@@ -27665,7 +27674,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
27665
27674
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
27666
27675
|
}
|
|
27667
27676
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
27668
|
-
definitionMap.set("version", literal("18.1.
|
|
27677
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27669
27678
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27670
27679
|
definitionMap.set("type", meta.type.value);
|
|
27671
27680
|
if (meta.bootstrap.length > 0) {
|
|
@@ -27700,7 +27709,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
27700
27709
|
function createPipeDefinitionMap(meta) {
|
|
27701
27710
|
const definitionMap = new DefinitionMap();
|
|
27702
27711
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
27703
|
-
definitionMap.set("version", literal("18.1.
|
|
27712
|
+
definitionMap.set("version", literal("18.1.1"));
|
|
27704
27713
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27705
27714
|
definitionMap.set("type", meta.type.value);
|
|
27706
27715
|
if (meta.isStandalone) {
|
|
@@ -27717,7 +27726,7 @@ function createPipeDefinitionMap(meta) {
|
|
|
27717
27726
|
publishFacade(_global);
|
|
27718
27727
|
|
|
27719
27728
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
27720
|
-
var VERSION3 = new Version("18.1.
|
|
27729
|
+
var VERSION3 = new Version("18.1.1");
|
|
27721
27730
|
|
|
27722
27731
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
27723
27732
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
@@ -46049,13 +46058,19 @@ var ClassExtractor = class {
|
|
|
46049
46058
|
}
|
|
46050
46059
|
isMemberExcluded(member) {
|
|
46051
46060
|
var _a2;
|
|
46052
|
-
return !member.name || !this.isDocumentableMember(member) ||
|
|
46061
|
+
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
46062
|
}
|
|
46054
46063
|
isDocumentableMember(member) {
|
|
46055
|
-
return this.isMethod(member) || this.isProperty(member) || import_typescript102.default.isAccessor(member);
|
|
46064
|
+
return this.isMethod(member) || this.isProperty(member) || import_typescript102.default.isAccessor(member) || import_typescript102.default.isCallSignatureDeclaration(member);
|
|
46065
|
+
}
|
|
46066
|
+
isPublicConstructorParameterProperty(node) {
|
|
46067
|
+
if (import_typescript102.default.isParameterPropertyDeclaration(node, node.parent) && node.modifiers) {
|
|
46068
|
+
return node.modifiers.some((modifier) => modifier.kind === import_typescript102.default.SyntaxKind.PublicKeyword);
|
|
46069
|
+
}
|
|
46070
|
+
return false;
|
|
46056
46071
|
}
|
|
46057
46072
|
isProperty(member) {
|
|
46058
|
-
return import_typescript102.default.isPropertyDeclaration(member) || import_typescript102.default.isPropertySignature(member);
|
|
46073
|
+
return import_typescript102.default.isPropertyDeclaration(member) || import_typescript102.default.isPropertySignature(member) || this.isPublicConstructorParameterProperty(member);
|
|
46059
46074
|
}
|
|
46060
46075
|
isMethod(member) {
|
|
46061
46076
|
return import_typescript102.default.isMethodDeclaration(member) || import_typescript102.default.isMethodSignature(member);
|
|
@@ -49587,6 +49602,7 @@ var NgtscProgram = class {
|
|
|
49587
49602
|
};
|
|
49588
49603
|
}
|
|
49589
49604
|
}
|
|
49605
|
+
untagAllTsFiles(this.tsProgram);
|
|
49590
49606
|
const forceEmit = (_a2 = opts == null ? void 0 : opts.forceEmit) != null ? _a2 : false;
|
|
49591
49607
|
this.compiler.perfRecorder.memory(PerfCheckpoint.PreEmit);
|
|
49592
49608
|
const res = this.compiler.perfRecorder.inPhase(PerfPhase.TypeScriptEmit, () => {
|