@angular/compiler-cli 21.0.0-rc.1 → 21.0.0-rc.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/bundles/{chunk-5UJIUEKT.js → chunk-JCBKDAHA.js} +20 -3
- package/bundles/{chunk-DBAV4W4V.js → chunk-UI6E44E7.js} +2 -2
- package/bundles/{chunk-VBBJY6IR.js → chunk-Y65S2AOA.js} +69 -35
- package/bundles/{chunk-YVYYMXOI.js → chunk-Z6XYTYZD.js} +1 -1
- package/bundles/{chunk-DT6FD4OE.js → chunk-ZJZNLTWN.js} +1 -2
- package/bundles/index.js +4 -4
- package/bundles/linker/babel/index.js +1 -1
- package/bundles/linker/index.js +1 -1
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/testing.js +1 -1
- package/bundles/private/tooling.js +1 -1
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/docs/src/entities.d.ts +8 -2
- package/src/ngtsc/docs/src/extractor.d.ts +1 -0
- package/src/ngtsc/docs/src/type_alias_extractor.d.ts +1 -0
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
toUnredirectedSourceFile,
|
|
88
88
|
tryParseInitializerApi,
|
|
89
89
|
untagAllTsFiles
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-Y65S2AOA.js";
|
|
91
91
|
import {
|
|
92
92
|
LogicalFileSystem,
|
|
93
93
|
absoluteFromSourceFile,
|
|
@@ -123,6 +123,8 @@ var MemberType;
|
|
|
123
123
|
MemberType2["Getter"] = "getter";
|
|
124
124
|
MemberType2["Setter"] = "setter";
|
|
125
125
|
MemberType2["EnumItem"] = "enum_item";
|
|
126
|
+
MemberType2["Interface"] = "interface";
|
|
127
|
+
MemberType2["TypeAlias"] = "type_alias";
|
|
126
128
|
})(MemberType || (MemberType = {}));
|
|
127
129
|
var DecoratorType;
|
|
128
130
|
(function(DecoratorType2) {
|
|
@@ -1125,7 +1127,8 @@ function extractTypeAlias(declaration) {
|
|
|
1125
1127
|
generics: extractGenerics(declaration),
|
|
1126
1128
|
rawComment: extractRawJsDoc(declaration),
|
|
1127
1129
|
description: extractJsDocDescription(declaration),
|
|
1128
|
-
jsdocTags: extractJsDocTags(declaration)
|
|
1130
|
+
jsdocTags: extractJsDocTags(declaration),
|
|
1131
|
+
members: []
|
|
1129
1132
|
};
|
|
1130
1133
|
}
|
|
1131
1134
|
|
|
@@ -1239,13 +1242,24 @@ var DocsExtractor = class {
|
|
|
1239
1242
|
if (entries.length > 1) {
|
|
1240
1243
|
const typeAlias = entries.find(isTypeAliasEntry);
|
|
1241
1244
|
const namespace = entries.find(isNamespaceEntry);
|
|
1245
|
+
const interfaceEntry = entries.find(isInterfaceEntry);
|
|
1242
1246
|
if (typeAlias && namespace) {
|
|
1243
|
-
typeAlias.members
|
|
1247
|
+
typeAlias.members.push(...this.getTypeMembersFromNamespace(namespace));
|
|
1244
1248
|
return typeAlias;
|
|
1245
1249
|
}
|
|
1250
|
+
if (interfaceEntry && namespace) {
|
|
1251
|
+
interfaceEntry.members.push(...this.getTypeMembersFromNamespace(namespace));
|
|
1252
|
+
}
|
|
1246
1253
|
}
|
|
1247
1254
|
return entry ?? null;
|
|
1248
1255
|
}
|
|
1256
|
+
getTypeMembersFromNamespace(namespace) {
|
|
1257
|
+
return namespace.members.filter((e) => isInterfaceEntry(e) || isTypeAliasEntry(e)).map((e) => ({
|
|
1258
|
+
...e,
|
|
1259
|
+
memberType: e.entryType === EntryType.Interface ? MemberType.Interface : MemberType.TypeAlias,
|
|
1260
|
+
memberTags: []
|
|
1261
|
+
}));
|
|
1262
|
+
}
|
|
1249
1263
|
/** Extract the doc entry for a single declaration. */
|
|
1250
1264
|
extractDeclaration(node) {
|
|
1251
1265
|
if (isNamedClassDeclaration(node)) {
|
|
@@ -1319,6 +1333,9 @@ function isTypeAliasEntry(e) {
|
|
|
1319
1333
|
function isNamespaceEntry(e) {
|
|
1320
1334
|
return e?.entryType === EntryType.Namespace;
|
|
1321
1335
|
}
|
|
1336
|
+
function isInterfaceEntry(e) {
|
|
1337
|
+
return e?.entryType === EntryType.Interface;
|
|
1338
|
+
}
|
|
1322
1339
|
|
|
1323
1340
|
// packages/compiler-cli/src/ngtsc/core/api/src/public_options.js
|
|
1324
1341
|
var DiagnosticCategoryLabel;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
TrackedIncrementalBuildStrategy,
|
|
9
9
|
freshCompilationTicket,
|
|
10
10
|
incrementalFromCompilerTicket
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JCBKDAHA.js";
|
|
12
12
|
import {
|
|
13
13
|
ActivePerfRecorder,
|
|
14
14
|
OptimizeFor,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
TsCreateProgramDriver,
|
|
19
19
|
replaceTsWithNgInErrors,
|
|
20
20
|
retagAllTsFiles
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Y65S2AOA.js";
|
|
22
22
|
import {
|
|
23
23
|
absoluteFrom,
|
|
24
24
|
createFileSystemTsReadDirectoryFn,
|
|
@@ -8261,7 +8261,6 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
|
|
|
8261
8261
|
queries: contentQueries,
|
|
8262
8262
|
viewQueries,
|
|
8263
8263
|
selector,
|
|
8264
|
-
fullInheritance: false,
|
|
8265
8264
|
type,
|
|
8266
8265
|
typeArgumentCount: reflector.getGenericArityOfClass(clazz) || 0,
|
|
8267
8266
|
typeSourceSpan: createSourceSpan(clazz.name),
|
|
@@ -14802,34 +14801,20 @@ var TcbFieldDirectiveTypeBaseOp = class extends TcbOp {
|
|
|
14802
14801
|
node;
|
|
14803
14802
|
dir;
|
|
14804
14803
|
/** Bindings that aren't supported on signal form fields. */
|
|
14805
|
-
unsupportedBindingFields
|
|
14804
|
+
unsupportedBindingFields = /* @__PURE__ */ new Set([
|
|
14805
|
+
...formControlInputFields,
|
|
14806
|
+
"value",
|
|
14807
|
+
"checked",
|
|
14808
|
+
"type",
|
|
14809
|
+
"maxlength",
|
|
14810
|
+
"minlength"
|
|
14811
|
+
]);
|
|
14806
14812
|
constructor(tcb, scope, node, dir) {
|
|
14807
14813
|
super();
|
|
14808
14814
|
this.tcb = tcb;
|
|
14809
14815
|
this.scope = scope;
|
|
14810
14816
|
this.node = node;
|
|
14811
14817
|
this.dir = dir;
|
|
14812
|
-
const commonUnsupportedNames = [
|
|
14813
|
-
"value",
|
|
14814
|
-
"checked",
|
|
14815
|
-
"errors",
|
|
14816
|
-
"invalid",
|
|
14817
|
-
"disabled",
|
|
14818
|
-
"disabledReasons",
|
|
14819
|
-
"name",
|
|
14820
|
-
"readonly",
|
|
14821
|
-
"touched",
|
|
14822
|
-
"max",
|
|
14823
|
-
"maxlength",
|
|
14824
|
-
"maxLength",
|
|
14825
|
-
"min",
|
|
14826
|
-
"minLength",
|
|
14827
|
-
"minlength",
|
|
14828
|
-
"pattern",
|
|
14829
|
-
"required",
|
|
14830
|
-
"type"
|
|
14831
|
-
];
|
|
14832
|
-
this.unsupportedBindingFields = new Set(commonUnsupportedNames);
|
|
14833
14818
|
}
|
|
14834
14819
|
get optional() {
|
|
14835
14820
|
return true;
|
|
@@ -14865,6 +14850,14 @@ var TcbFieldDirectiveTypeBaseOp = class extends TcbOp {
|
|
|
14865
14850
|
}
|
|
14866
14851
|
};
|
|
14867
14852
|
var TcbNativeFieldDirectiveTypeOp = class extends TcbFieldDirectiveTypeBaseOp {
|
|
14853
|
+
inputType;
|
|
14854
|
+
constructor(tcb, scope, node, dir) {
|
|
14855
|
+
super(tcb, scope, node, dir);
|
|
14856
|
+
this.inputType = node instanceof TmplAstElement2 && node.name === "input" && node.attributes.find((attr) => attr.name === "type")?.value || null;
|
|
14857
|
+
if (this.inputType === "radio") {
|
|
14858
|
+
this.unsupportedBindingFields.delete("value");
|
|
14859
|
+
}
|
|
14860
|
+
}
|
|
14868
14861
|
getExpectedType() {
|
|
14869
14862
|
if (this.node instanceof TmplAstElement2) {
|
|
14870
14863
|
return this.getExpectedTypeFromDomNode(this.node);
|
|
@@ -14878,8 +14871,7 @@ var TcbNativeFieldDirectiveTypeOp = class extends TcbFieldDirectiveTypeBaseOp {
|
|
|
14878
14871
|
if (node.name !== "input") {
|
|
14879
14872
|
return this.getUnsupportedType();
|
|
14880
14873
|
}
|
|
14881
|
-
|
|
14882
|
-
switch (inputType) {
|
|
14874
|
+
switch (this.inputType) {
|
|
14883
14875
|
case "checkbox":
|
|
14884
14876
|
return ts62.factory.createKeywordTypeNode(ts62.SyntaxKind.BooleanKeyword);
|
|
14885
14877
|
case "number":
|
|
@@ -14950,7 +14942,7 @@ var TcbCustomFieldDirectiveTypeOp = class extends TcbFieldDirectiveTypeBaseOp {
|
|
|
14950
14942
|
throw new Error(`Expected TypeReferenceNode when referencing the type for ${symbolName}`);
|
|
14951
14943
|
}
|
|
14952
14944
|
const id = this.tcb.allocateId();
|
|
14953
|
-
const targetType = ts62.factory.createTypeReferenceNode(targetTypeRef.typeName, isCheckbox ? void 0 : [ts62.factory.createKeywordTypeNode(ts62.SyntaxKind.
|
|
14945
|
+
const targetType = ts62.factory.createTypeReferenceNode(targetTypeRef.typeName, isCheckbox ? void 0 : [ts62.factory.createKeywordTypeNode(ts62.SyntaxKind.AnyKeyword)]);
|
|
14954
14946
|
this.scope.addStatement(tsDeclareVariable(id, targetType));
|
|
14955
14947
|
const controlType = ts62.factory.createAsExpression(ts62.factory.createNonNullExpression(ts62.factory.createNull()), this.getCustomFieldTypeReference());
|
|
14956
14948
|
const assignment = ts62.factory.createBinaryExpression(id, ts62.SyntaxKind.EqualsToken, controlType);
|
|
@@ -15073,12 +15065,14 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
15073
15065
|
scope;
|
|
15074
15066
|
node;
|
|
15075
15067
|
dir;
|
|
15076
|
-
|
|
15068
|
+
ignoredRequiredInputs;
|
|
15069
|
+
constructor(tcb, scope, node, dir, ignoredRequiredInputs) {
|
|
15077
15070
|
super();
|
|
15078
15071
|
this.tcb = tcb;
|
|
15079
15072
|
this.scope = scope;
|
|
15080
15073
|
this.node = node;
|
|
15081
15074
|
this.dir = dir;
|
|
15075
|
+
this.ignoredRequiredInputs = ignoredRequiredInputs;
|
|
15082
15076
|
}
|
|
15083
15077
|
get optional() {
|
|
15084
15078
|
return false;
|
|
@@ -15157,7 +15151,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
15157
15151
|
checkRequiredInputs(seenRequiredInputs) {
|
|
15158
15152
|
const missing = [];
|
|
15159
15153
|
for (const input of this.dir.inputs) {
|
|
15160
|
-
if (input.required && !seenRequiredInputs.has(input.classPropertyName)) {
|
|
15154
|
+
if (input.required && !seenRequiredInputs.has(input.classPropertyName) && (this.ignoredRequiredInputs === null || !this.ignoredRequiredInputs.has(input.bindingPropertyName))) {
|
|
15161
15155
|
missing.push(input.bindingPropertyName);
|
|
15162
15156
|
}
|
|
15163
15157
|
}
|
|
@@ -16277,11 +16271,23 @@ var Scope = class _Scope {
|
|
|
16277
16271
|
const directiveOp = this.getDirectiveOp(dir, node, allDirectiveMatches);
|
|
16278
16272
|
const dirIndex = this.opQueue.push(directiveOp) - 1;
|
|
16279
16273
|
dirMap.set(dir, dirIndex);
|
|
16280
|
-
|
|
16274
|
+
let ignoredRequiredInputs = null;
|
|
16275
|
+
if (allDirectiveMatches.some(isFieldDirective)) {
|
|
16276
|
+
const customFieldType = getCustomFieldDirectiveType(dir);
|
|
16277
|
+
if (customFieldType !== null) {
|
|
16278
|
+
ignoredRequiredInputs = new Set(formControlInputFields);
|
|
16279
|
+
if (customFieldType === "value") {
|
|
16280
|
+
ignoredRequiredInputs.add("value");
|
|
16281
|
+
} else if (customFieldType === "checkbox") {
|
|
16282
|
+
ignoredRequiredInputs.add("checked");
|
|
16283
|
+
}
|
|
16284
|
+
}
|
|
16285
|
+
}
|
|
16286
|
+
this.opQueue.push(new TcbDirectiveInputsOp(this.tcb, this, node, dir, ignoredRequiredInputs));
|
|
16281
16287
|
}
|
|
16282
16288
|
getDirectiveOp(dir, node, allDirectiveMatches) {
|
|
16283
16289
|
const dirRef = dir.ref;
|
|
16284
|
-
if (dir
|
|
16290
|
+
if (isFieldDirective(dir)) {
|
|
16285
16291
|
let customControl = null;
|
|
16286
16292
|
for (const meta of allDirectiveMatches) {
|
|
16287
16293
|
const type = getCustomFieldDirectiveType(meta);
|
|
@@ -16796,11 +16802,39 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
16796
16802
|
function getComponentTagName(node) {
|
|
16797
16803
|
return node.tagName || "ng-component";
|
|
16798
16804
|
}
|
|
16799
|
-
function
|
|
16800
|
-
if (
|
|
16801
|
-
return
|
|
16805
|
+
function isFieldDirective(meta) {
|
|
16806
|
+
if (meta.name !== "Field") {
|
|
16807
|
+
return false;
|
|
16802
16808
|
}
|
|
16803
|
-
if (
|
|
16809
|
+
if (meta.ref.bestGuessOwningModule?.specifier === "@angular/forms/signals") {
|
|
16810
|
+
return true;
|
|
16811
|
+
}
|
|
16812
|
+
return ts62.isClassDeclaration(meta.ref.node) && meta.ref.node.members.some((member) => ts62.isPropertyDeclaration(member) && ts62.isComputedPropertyName(member.name) && ts62.isIdentifier(member.name.expression) && member.name.expression.text === "\u0275CONTROL");
|
|
16813
|
+
}
|
|
16814
|
+
function hasModel(name, meta) {
|
|
16815
|
+
return !!meta.inputs.getByBindingPropertyName(name)?.some((v) => v.isSignal) && meta.outputs.hasBindingPropertyName(name + "Change");
|
|
16816
|
+
}
|
|
16817
|
+
var formControlInputFields = [
|
|
16818
|
+
// Should be kept in sync with the `FormUiControl` bindings,
|
|
16819
|
+
// defined in `packages/forms/signals/src/api/control.ts`.
|
|
16820
|
+
"errors",
|
|
16821
|
+
"invalid",
|
|
16822
|
+
"disabled",
|
|
16823
|
+
"disabledReasons",
|
|
16824
|
+
"name",
|
|
16825
|
+
"readonly",
|
|
16826
|
+
"touched",
|
|
16827
|
+
"max",
|
|
16828
|
+
"maxLength",
|
|
16829
|
+
"min",
|
|
16830
|
+
"minLength",
|
|
16831
|
+
"pattern",
|
|
16832
|
+
"required"
|
|
16833
|
+
];
|
|
16834
|
+
function getCustomFieldDirectiveType(meta) {
|
|
16835
|
+
if (hasModel("value", meta)) {
|
|
16836
|
+
return "value";
|
|
16837
|
+
} else if (hasModel("checked", meta)) {
|
|
16804
16838
|
return "checkbox";
|
|
16805
16839
|
}
|
|
16806
16840
|
return null;
|
|
@@ -21103,7 +21137,7 @@ var ComponentDecoratorHandler = class {
|
|
|
21103
21137
|
diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.expression, resourceType).toDiagnostic());
|
|
21104
21138
|
}
|
|
21105
21139
|
}
|
|
21106
|
-
if ((encapsulation === ViewEncapsulation2.ShadowDom || encapsulation === ViewEncapsulation2.
|
|
21140
|
+
if ((encapsulation === ViewEncapsulation2.ShadowDom || encapsulation === ViewEncapsulation2.ExperimentalIsolatedShadowDom) && metadata.selector !== null) {
|
|
21107
21141
|
const selectorError = checkCustomElementSelectorForErrors(metadata.selector);
|
|
21108
21142
|
if (selectorError !== null) {
|
|
21109
21143
|
if (diagnostics === void 0) {
|
|
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
|
|
|
455
455
|
// packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
|
|
456
456
|
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
457
457
|
import semver from "semver";
|
|
458
|
-
var PLACEHOLDER_VERSION = "21.0.0-rc.
|
|
458
|
+
var PLACEHOLDER_VERSION = "21.0.0-rc.2";
|
|
459
459
|
function wrapReference(wrapped) {
|
|
460
460
|
return { value: wrapped, type: wrapped };
|
|
461
461
|
}
|
|
@@ -546,7 +546,6 @@ function toR3DirectiveMeta(metaObj, code, sourceUrl, version) {
|
|
|
546
546
|
queries: metaObj.has("queries") ? metaObj.getArray("queries").map((entry) => toQueryMetadata(entry.getObject())) : [],
|
|
547
547
|
viewQueries: metaObj.has("viewQueries") ? metaObj.getArray("viewQueries").map((entry) => toQueryMetadata(entry.getObject())) : [],
|
|
548
548
|
providers: metaObj.has("providers") ? metaObj.getOpaque("providers") : null,
|
|
549
|
-
fullInheritance: false,
|
|
550
549
|
selector: metaObj.has("selector") ? metaObj.getString("selector") : null,
|
|
551
550
|
exportAs: metaObj.has("exportAs") ? metaObj.getArray("exportAs").map((entry) => entry.getString()) : null,
|
|
552
551
|
lifecycle: {
|
package/bundles/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isTsDiagnostic,
|
|
18
18
|
performCompilation,
|
|
19
19
|
readConfiguration
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UI6E44E7.js";
|
|
21
21
|
import {
|
|
22
22
|
ConsoleLogger,
|
|
23
23
|
LogLevel
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
freshCompilationTicket,
|
|
35
35
|
incrementalFromStateTicket,
|
|
36
36
|
isDocEntryWithSourceInfo
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JCBKDAHA.js";
|
|
38
38
|
import {
|
|
39
39
|
ActivePerfRecorder,
|
|
40
40
|
ErrorCode,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
getInitializerApiJitTransform,
|
|
47
47
|
isLocalCompilationDiagnostics,
|
|
48
48
|
ngErrorCode
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-Y65S2AOA.js";
|
|
50
50
|
import "./chunk-LS5RJ5CS.js";
|
|
51
51
|
import {
|
|
52
52
|
InvalidFileSystem,
|
|
@@ -77,7 +77,7 @@ import "./chunk-G7GFT6BU.js";
|
|
|
77
77
|
|
|
78
78
|
// packages/compiler-cli/src/version.js
|
|
79
79
|
import { Version } from "@angular/compiler";
|
|
80
|
-
var VERSION = new Version("21.0.0-rc.
|
|
80
|
+
var VERSION = new Version("21.0.0-rc.2");
|
|
81
81
|
|
|
82
82
|
// packages/compiler-cli/private/tooling.js
|
|
83
83
|
var GLOBAL_DEFS_FOR_TERSER = {
|
package/bundles/linker/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {
|
|
6
6
|
DiagnosticCategoryLabel,
|
|
7
7
|
NgCompiler
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-JCBKDAHA.js";
|
|
9
9
|
import {
|
|
10
10
|
CompilationMode,
|
|
11
11
|
DtsMetadataReader,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
queryDecoratorNames,
|
|
33
33
|
reflectObjectLiteral,
|
|
34
34
|
unwrapExpression
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-Y65S2AOA.js";
|
|
36
36
|
import "../chunk-LS5RJ5CS.js";
|
|
37
37
|
import {
|
|
38
38
|
getFileSystem,
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
import {
|
|
7
7
|
main,
|
|
8
8
|
readCommandLineAndConfiguration
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-Z6XYTYZD.js";
|
|
10
10
|
import {
|
|
11
11
|
EmitFlags
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-UI6E44E7.js";
|
|
13
|
+
import "../../chunk-JCBKDAHA.js";
|
|
14
|
+
import "../../chunk-Y65S2AOA.js";
|
|
15
15
|
import "../../chunk-LS5RJ5CS.js";
|
|
16
16
|
import {
|
|
17
17
|
setFileSystem
|
package/bundles/src/bin/ngc.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
main
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-Z6XYTYZD.js";
|
|
9
|
+
import "../../chunk-UI6E44E7.js";
|
|
10
|
+
import "../../chunk-JCBKDAHA.js";
|
|
11
|
+
import "../../chunk-Y65S2AOA.js";
|
|
12
12
|
import "../../chunk-LS5RJ5CS.js";
|
|
13
13
|
import {
|
|
14
14
|
setFileSystem
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
|
|
9
9
|
import { AstObject, AstValue } from '../../ast/ast_value';
|
|
10
|
-
export declare const PLACEHOLDER_VERSION = "21.0.0-rc.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "21.0.0-rc.2";
|
|
11
11
|
export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
|
|
12
12
|
/**
|
|
13
13
|
* Parses the value of an enum from the AST value's symbol name.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler-cli",
|
|
3
|
-
"version": "21.0.0-rc.
|
|
3
|
+
"version": "21.0.0-rc.2",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"yargs": "^18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@angular/compiler": "21.0.0-rc.
|
|
43
|
+
"@angular/compiler": "21.0.0-rc.2",
|
|
44
44
|
"typescript": ">=5.9 <6.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
@@ -38,7 +38,9 @@ export declare enum MemberType {
|
|
|
38
38
|
Method = "method",
|
|
39
39
|
Getter = "getter",
|
|
40
40
|
Setter = "setter",
|
|
41
|
-
EnumItem = "enum_item"
|
|
41
|
+
EnumItem = "enum_item",
|
|
42
|
+
Interface = "interface",
|
|
43
|
+
TypeAlias = "type_alias"
|
|
42
44
|
}
|
|
43
45
|
export declare enum DecoratorType {
|
|
44
46
|
Class = "class",
|
|
@@ -90,7 +92,7 @@ export interface ConstantEntry extends DocEntry {
|
|
|
90
92
|
/** Documentation entity for a type alias. */
|
|
91
93
|
export interface TypeAliasEntry extends ConstantEntry {
|
|
92
94
|
generics: GenericEntry[];
|
|
93
|
-
members
|
|
95
|
+
members: MemberEntry[];
|
|
94
96
|
}
|
|
95
97
|
/** Documentation entity for a TypeScript class. */
|
|
96
98
|
export interface ClassEntry extends DocEntry {
|
|
@@ -161,6 +163,10 @@ export interface PropertyEntry extends MemberEntry {
|
|
|
161
163
|
}
|
|
162
164
|
/** Sub-entry for a class method. */
|
|
163
165
|
export type MethodEntry = MemberEntry & FunctionEntry;
|
|
166
|
+
/** Sub-entry for an interface (included via namespace). */
|
|
167
|
+
export type InterfaceMemberEntry = MemberEntry & InterfaceEntry;
|
|
168
|
+
/** Sub-entry for a type alias (included via namespace). */
|
|
169
|
+
export type TypeAliasMemberEntry = MemberEntry & TypeAliasEntry;
|
|
164
170
|
/** Sub-entry for a single function parameter. */
|
|
165
171
|
export interface ParameterEntry {
|
|
166
172
|
name: string;
|
|
@@ -32,6 +32,7 @@ export declare class DocsExtractor {
|
|
|
32
32
|
* exported under the same name.
|
|
33
33
|
*/
|
|
34
34
|
private extractDeclarations;
|
|
35
|
+
private getTypeMembersFromNamespace;
|
|
35
36
|
/** Extract the doc entry for a single declaration. */
|
|
36
37
|
private extractDeclaration;
|
|
37
38
|
/** Gets the list of exported declarations for doc extraction. */
|