@angular/compiler-cli 17.0.0-next.4 → 17.0.0-next.6
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-JZC4T2RR.js → chunk-3O3O4L34.js} +1 -1
- package/bundles/{chunk-KC52PQKJ.js → chunk-6MV5LVGW.js} +146 -102
- package/bundles/chunk-6MV5LVGW.js.map +6 -0
- package/bundles/{chunk-T6QD5I2A.js → chunk-7HFK25CM.js} +29 -27
- package/bundles/{chunk-T6QD5I2A.js.map → chunk-7HFK25CM.js.map} +1 -1
- package/bundles/{chunk-UYFEPQRA.js → chunk-7YXJWQNF.js} +1071 -497
- package/bundles/chunk-7YXJWQNF.js.map +6 -0
- package/bundles/{chunk-LYJKWJUC.js → chunk-CF2CT7RQ.js} +3 -3
- package/bundles/{chunk-EJSJTIHK.js → chunk-DQ4T2KWL.js} +8 -8
- package/bundles/{chunk-AIIYON4K.js → chunk-HICXNP7M.js} +52 -33
- package/bundles/chunk-HICXNP7M.js.map +6 -0
- package/bundles/{chunk-EKTJ7622.js → chunk-OULZQUKT.js} +7 -7
- package/bundles/{chunk-WPCCXY7F.js → chunk-T6QZTHEE.js} +5 -5
- package/bundles/{chunk-7PCPPTTO.js → chunk-URH5LEAG.js} +5 -5
- package/bundles/{chunk-PCMLSPQF.js → chunk-W653LDC7.js} +7 -7
- package/bundles/{chunk-VISOZQNG.js → chunk-YPVFT2MR.js} +4 -4
- package/bundles/index.js +19 -13
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/index.d.ts +1 -0
- package/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +2 -0
- package/package.json +5 -5
- package/src/ngtsc/annotations/common/src/evaluation.d.ts +8 -0
- package/src/ngtsc/annotations/component/src/handler.d.ts +2 -0
- package/src/ngtsc/core/src/compiler.d.ts +10 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +24 -0
- package/src/ngtsc/docs/index.d.ts +9 -0
- package/src/ngtsc/docs/src/class_extractor.d.ts +13 -0
- package/src/ngtsc/docs/src/constant_extractor.d.ts +13 -0
- package/src/ngtsc/docs/src/entities.d.ts +107 -0
- package/src/ngtsc/docs/src/enum_extractor.d.ts +11 -0
- package/src/ngtsc/docs/src/extractor.d.ts +26 -0
- package/src/ngtsc/docs/src/function_extractor.d.ts +16 -0
- package/src/ngtsc/docs/src/jsdoc_extractor.d.ts +21 -0
- package/src/ngtsc/docs/src/type_extractor.d.ts +10 -0
- package/src/ngtsc/imports/src/deferred_symbol_tracker.d.ts +1 -1
- package/src/ngtsc/program.d.ts +10 -0
- package/src/ngtsc/typecheck/src/oob.d.ts +11 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +8 -3
- package/bundles/chunk-AIIYON4K.js.map +0 -6
- package/bundles/chunk-KC52PQKJ.js.map +0 -6
- package/bundles/chunk-UYFEPQRA.js.map +0 -6
- /package/bundles/{chunk-JZC4T2RR.js.map → chunk-3O3O4L34.js.map} +0 -0
- /package/bundles/{chunk-LYJKWJUC.js.map → chunk-CF2CT7RQ.js.map} +0 -0
- /package/bundles/{chunk-EJSJTIHK.js.map → chunk-DQ4T2KWL.js.map} +0 -0
- /package/bundles/{chunk-EKTJ7622.js.map → chunk-OULZQUKT.js.map} +0 -0
- /package/bundles/{chunk-WPCCXY7F.js.map → chunk-T6QZTHEE.js.map} +0 -0
- /package/bundles/{chunk-7PCPPTTO.js.map → chunk-URH5LEAG.js.map} +0 -0
- /package/bundles/{chunk-PCMLSPQF.js.map → chunk-W653LDC7.js.map} +0 -0
- /package/bundles/{chunk-VISOZQNG.js.map → chunk-YPVFT2MR.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
translateExpression,
|
|
8
8
|
translateStatement,
|
|
9
9
|
translateType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DQ4T2KWL.js";
|
|
11
11
|
import {
|
|
12
12
|
ClassMemberKind,
|
|
13
13
|
ErrorCode,
|
|
@@ -30,18 +30,18 @@ import {
|
|
|
30
30
|
reflectObjectLiteral,
|
|
31
31
|
reflectTypeEntityToDeclaration,
|
|
32
32
|
typeNodeToValueExpr
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7HFK25CM.js";
|
|
34
34
|
import {
|
|
35
35
|
PerfEvent,
|
|
36
36
|
PerfPhase
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-URH5LEAG.js";
|
|
38
38
|
import {
|
|
39
39
|
absoluteFrom,
|
|
40
40
|
absoluteFromSourceFile,
|
|
41
41
|
relative
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-W653LDC7.js";
|
|
43
43
|
|
|
44
|
-
// bazel-out/
|
|
44
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
45
45
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
46
46
|
import ts from "typescript";
|
|
47
47
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -283,7 +283,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
283
283
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
// bazel-out/
|
|
286
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
287
287
|
var DynamicValue = class {
|
|
288
288
|
constructor(node, reason, code) {
|
|
289
289
|
this.node = node;
|
|
@@ -373,10 +373,10 @@ var DynamicValue = class {
|
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
|
|
376
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
377
377
|
import ts2 from "typescript";
|
|
378
378
|
|
|
379
|
-
// bazel-out/
|
|
379
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
380
380
|
var ResolvedModule = class {
|
|
381
381
|
constructor(exports, evaluate) {
|
|
382
382
|
this.exports = exports;
|
|
@@ -406,7 +406,7 @@ var EnumValue = class {
|
|
|
406
406
|
var KnownFn = class {
|
|
407
407
|
};
|
|
408
408
|
|
|
409
|
-
// bazel-out/
|
|
409
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
410
410
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
411
411
|
constructor(lhs) {
|
|
412
412
|
super();
|
|
@@ -458,14 +458,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
460
|
|
|
461
|
-
// bazel-out/
|
|
461
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
462
462
|
var SyntheticValue = class {
|
|
463
463
|
constructor(value) {
|
|
464
464
|
this.value = value;
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
|
|
468
|
-
// bazel-out/
|
|
468
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
469
469
|
function literalBinaryOp(op) {
|
|
470
470
|
return { op, literal: true };
|
|
471
471
|
}
|
|
@@ -1046,7 +1046,7 @@ function getOriginalKeywordKind(identifier) {
|
|
|
1046
1046
|
return typeof ts2.identifierToKeywordKind === "function" ? ts2.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
|
-
// bazel-out/
|
|
1049
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1050
1050
|
var PartialEvaluator = class {
|
|
1051
1051
|
constructor(host, checker, dependencyTracker) {
|
|
1052
1052
|
this.host = host;
|
|
@@ -1066,7 +1066,7 @@ var PartialEvaluator = class {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
};
|
|
1068
1068
|
|
|
1069
|
-
// bazel-out/
|
|
1069
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1070
1070
|
import ts3 from "typescript";
|
|
1071
1071
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1072
1072
|
var _a, _b;
|
|
@@ -1196,11 +1196,11 @@ function getContainerNode(node) {
|
|
|
1196
1196
|
return node.getSourceFile();
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
-
// bazel-out/
|
|
1199
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1200
1200
|
import { LiteralExpr, ReadPropExpr as ReadPropExpr2, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1201
1201
|
import ts10 from "typescript";
|
|
1202
1202
|
|
|
1203
|
-
// bazel-out/
|
|
1203
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
1204
1204
|
var CompilationMode;
|
|
1205
1205
|
(function(CompilationMode2) {
|
|
1206
1206
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -1214,7 +1214,7 @@ var HandlerPrecedence;
|
|
|
1214
1214
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
1215
1215
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
1216
1216
|
|
|
1217
|
-
// bazel-out/
|
|
1217
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
1218
1218
|
import ts4 from "typescript";
|
|
1219
1219
|
function aliasTransformFactory(exportStatements) {
|
|
1220
1220
|
return () => {
|
|
@@ -1237,10 +1237,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
|
-
// bazel-out/
|
|
1240
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
1241
1241
|
import ts5 from "typescript";
|
|
1242
1242
|
|
|
1243
|
-
// bazel-out/
|
|
1243
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
1244
1244
|
var TraitState;
|
|
1245
1245
|
(function(TraitState2) {
|
|
1246
1246
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -1297,7 +1297,7 @@ var TraitImpl = class {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
1299
|
|
|
1300
|
-
// bazel-out/
|
|
1300
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
1301
1301
|
var TraitCompiler = class {
|
|
1302
1302
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
1303
1303
|
this.handlers = handlers;
|
|
@@ -1745,10 +1745,10 @@ function containsErrors(diagnostics) {
|
|
|
1745
1745
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts5.DiagnosticCategory.Error);
|
|
1746
1746
|
}
|
|
1747
1747
|
|
|
1748
|
-
// bazel-out/
|
|
1748
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
1749
1749
|
import ts7 from "typescript";
|
|
1750
1750
|
|
|
1751
|
-
// bazel-out/
|
|
1751
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
1752
1752
|
import ts6 from "typescript";
|
|
1753
1753
|
function addImports(importManager, sf, extraStatements = []) {
|
|
1754
1754
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -1784,7 +1784,7 @@ function isImportStatement(stmt) {
|
|
|
1784
1784
|
return ts6.isImportDeclaration(stmt) || ts6.isImportEqualsDeclaration(stmt) || ts6.isNamespaceImport(stmt);
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
1787
|
-
// bazel-out/
|
|
1787
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
1788
1788
|
var DtsTransformRegistry = class {
|
|
1789
1789
|
constructor() {
|
|
1790
1790
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -1931,11 +1931,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
1931
1931
|
ts7.forEachChild(node, markForEmitAsSingleLine);
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
|
-
// bazel-out/
|
|
1934
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
1935
1935
|
import { ConstantPool } from "@angular/compiler";
|
|
1936
1936
|
import ts9 from "typescript";
|
|
1937
1937
|
|
|
1938
|
-
// bazel-out/
|
|
1938
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
1939
1939
|
import ts8 from "typescript";
|
|
1940
1940
|
function visit(node, visitor, context) {
|
|
1941
1941
|
return visitor._visit(node, context);
|
|
@@ -1996,7 +1996,7 @@ var Visitor = class {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
};
|
|
1998
1998
|
|
|
1999
|
-
// bazel-out/
|
|
1999
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
2000
2000
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
2001
2001
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
2002
2002
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -2220,7 +2220,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
2220
2220
|
return array;
|
|
2221
2221
|
}
|
|
2222
2222
|
|
|
2223
|
-
// bazel-out/
|
|
2223
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
2224
2224
|
function getConstructorDependencies(clazz, reflector, isCore, compilationMode) {
|
|
2225
2225
|
const deps = [];
|
|
2226
2226
|
const errors = [];
|
|
@@ -2377,10 +2377,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
2377
2377
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
2378
2378
|
}
|
|
2379
2379
|
|
|
2380
|
-
// bazel-out/
|
|
2380
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
2381
2381
|
import ts13 from "typescript";
|
|
2382
2382
|
|
|
2383
|
-
// bazel-out/
|
|
2383
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
2384
2384
|
var MetaKind;
|
|
2385
2385
|
(function(MetaKind2) {
|
|
2386
2386
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -2393,10 +2393,10 @@ var MatchSource;
|
|
|
2393
2393
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
2394
2394
|
})(MatchSource || (MatchSource = {}));
|
|
2395
2395
|
|
|
2396
|
-
// bazel-out/
|
|
2396
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
2397
2397
|
import ts12 from "typescript";
|
|
2398
2398
|
|
|
2399
|
-
// bazel-out/
|
|
2399
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
2400
2400
|
var ClassPropertyMapping = class {
|
|
2401
2401
|
constructor(forwardMap) {
|
|
2402
2402
|
this.forwardMap = forwardMap;
|
|
@@ -2474,7 +2474,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
2474
2474
|
return reverseMap;
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
|
-
// bazel-out/
|
|
2477
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
2478
2478
|
import ts11 from "typescript";
|
|
2479
2479
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
2480
2480
|
if (!ts11.isTupleTypeNode(def)) {
|
|
@@ -2658,7 +2658,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
2658
2658
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
2659
2659
|
}
|
|
2660
2660
|
|
|
2661
|
-
// bazel-out/
|
|
2661
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
2662
2662
|
var DtsMetadataReader = class {
|
|
2663
2663
|
constructor(checker, reflector) {
|
|
2664
2664
|
this.checker = checker;
|
|
@@ -2833,7 +2833,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
2833
2833
|
return result.length > 0 ? result : null;
|
|
2834
2834
|
}
|
|
2835
2835
|
|
|
2836
|
-
// bazel-out/
|
|
2836
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
2837
2837
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
2838
2838
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
2839
2839
|
if (topMeta === null) {
|
|
@@ -2891,7 +2891,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
2893
|
|
|
2894
|
-
// bazel-out/
|
|
2894
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
2895
2895
|
var LocalMetadataRegistry = class {
|
|
2896
2896
|
constructor() {
|
|
2897
2897
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -2948,7 +2948,7 @@ var CompoundMetadataRegistry = class {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
};
|
|
2950
2950
|
|
|
2951
|
-
// bazel-out/
|
|
2951
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
2952
2952
|
var ResourceRegistry = class {
|
|
2953
2953
|
constructor() {
|
|
2954
2954
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -3013,7 +3013,7 @@ var ResourceRegistry = class {
|
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
3015
3015
|
|
|
3016
|
-
// bazel-out/
|
|
3016
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
3017
3017
|
var ExportedProviderStatusResolver = class {
|
|
3018
3018
|
constructor(metaReader) {
|
|
3019
3019
|
this.metaReader = metaReader;
|
|
@@ -3057,7 +3057,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
};
|
|
3059
3059
|
|
|
3060
|
-
// bazel-out/
|
|
3060
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
3061
3061
|
var EMPTY_ARRAY = [];
|
|
3062
3062
|
var HostDirectivesResolver = class {
|
|
3063
3063
|
constructor(metaReader) {
|
|
@@ -3119,7 +3119,7 @@ function resolveOutput(bindingName) {
|
|
|
3119
3119
|
return bindingName;
|
|
3120
3120
|
}
|
|
3121
3121
|
|
|
3122
|
-
// bazel-out/
|
|
3122
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
3123
3123
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
3124
3124
|
const context = [];
|
|
3125
3125
|
for (const decl of data) {
|
|
@@ -3315,7 +3315,8 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
3315
3315
|
return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
|
|
3316
3316
|
}
|
|
3317
3317
|
|
|
3318
|
-
// bazel-out/
|
|
3318
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
3319
|
+
import { ViewEncapsulation } from "@angular/compiler";
|
|
3319
3320
|
import ts14 from "typescript";
|
|
3320
3321
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
3321
3322
|
let resolved = null;
|
|
@@ -3330,6 +3331,23 @@ function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
|
3330
3331
|
}
|
|
3331
3332
|
return resolved;
|
|
3332
3333
|
}
|
|
3334
|
+
function resolveEncapsulationEnumValueLocally(expr) {
|
|
3335
|
+
if (!expr) {
|
|
3336
|
+
return null;
|
|
3337
|
+
}
|
|
3338
|
+
const exprText = expr.getText().trim();
|
|
3339
|
+
for (const key in ViewEncapsulation) {
|
|
3340
|
+
if (!Number.isNaN(Number(key))) {
|
|
3341
|
+
continue;
|
|
3342
|
+
}
|
|
3343
|
+
const suffix = `ViewEncapsulation.${key}`;
|
|
3344
|
+
if (exprText === suffix || exprText.endsWith(`.${suffix}`)) {
|
|
3345
|
+
const ans = Number(ViewEncapsulation[key]);
|
|
3346
|
+
return ans;
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
return null;
|
|
3350
|
+
}
|
|
3333
3351
|
function isStringArray(resolvedValue) {
|
|
3334
3352
|
return Array.isArray(resolvedValue) && resolvedValue.every((elem) => typeof elem === "string");
|
|
3335
3353
|
}
|
|
@@ -3348,7 +3366,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
3348
3366
|
return meta;
|
|
3349
3367
|
}
|
|
3350
3368
|
|
|
3351
|
-
// bazel-out/
|
|
3369
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
3352
3370
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
3353
3371
|
function compileNgFactoryDefField(metadata) {
|
|
3354
3372
|
const res = compileFactoryFunction(metadata);
|
|
@@ -3371,7 +3389,7 @@ function compileDeclareFactory(metadata) {
|
|
|
3371
3389
|
};
|
|
3372
3390
|
}
|
|
3373
3391
|
|
|
3374
|
-
// bazel-out/
|
|
3392
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
3375
3393
|
var InjectableClassRegistry = class {
|
|
3376
3394
|
constructor(host, isCore) {
|
|
3377
3395
|
this.host = host;
|
|
@@ -3397,8 +3415,8 @@ var InjectableClassRegistry = class {
|
|
|
3397
3415
|
}
|
|
3398
3416
|
};
|
|
3399
3417
|
|
|
3400
|
-
// bazel-out/
|
|
3401
|
-
import {
|
|
3418
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
3419
|
+
import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
3402
3420
|
import ts15 from "typescript";
|
|
3403
3421
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
3404
3422
|
if (!reflection.isClass(clazz)) {
|
|
@@ -3418,9 +3436,7 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
|
|
|
3418
3436
|
const classCtorParameters = reflection.getConstructorParameters(clazz);
|
|
3419
3437
|
if (classCtorParameters !== null) {
|
|
3420
3438
|
const ctorParameters = classCtorParameters.map((param) => ctorParameterToMetadata(param, isCore));
|
|
3421
|
-
metaCtorParameters = new
|
|
3422
|
-
new ReturnStatement(new LiteralArrayExpr(ctorParameters))
|
|
3423
|
-
]);
|
|
3439
|
+
metaCtorParameters = new ArrowFunctionExpr([], new LiteralArrayExpr(ctorParameters));
|
|
3424
3440
|
}
|
|
3425
3441
|
let metaPropDecorators = null;
|
|
3426
3442
|
const classMembers = reflection.getMembersOfClass(clazz).filter((member) => !member.isStatic && member.decorators !== null && member.decorators.length > 0);
|
|
@@ -3484,13 +3500,13 @@ function removeIdentifierReferences(node, names) {
|
|
|
3484
3500
|
return result.transformed[0];
|
|
3485
3501
|
}
|
|
3486
3502
|
|
|
3487
|
-
// bazel-out/
|
|
3503
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
3488
3504
|
var NoopReferencesRegistry = class {
|
|
3489
3505
|
add(source, ...references) {
|
|
3490
3506
|
}
|
|
3491
3507
|
};
|
|
3492
3508
|
|
|
3493
|
-
// bazel-out/
|
|
3509
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
3494
3510
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
3495
3511
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
3496
3512
|
const schemas = [];
|
|
@@ -3520,7 +3536,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
3520
3536
|
return schemas;
|
|
3521
3537
|
}
|
|
3522
3538
|
|
|
3523
|
-
// bazel-out/
|
|
3539
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
3524
3540
|
import { outputAst } from "@angular/compiler";
|
|
3525
3541
|
function compileInputTransformFields(inputs) {
|
|
3526
3542
|
const extraFields = [];
|
|
@@ -3538,11 +3554,11 @@ function compileInputTransformFields(inputs) {
|
|
|
3538
3554
|
return extraFields;
|
|
3539
3555
|
}
|
|
3540
3556
|
|
|
3541
|
-
// bazel-out/
|
|
3542
|
-
import { compileClassMetadata as compileClassMetadata3, compileComponentClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
3557
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
3558
|
+
import { compileClassMetadata as compileClassMetadata3, compileComponentClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation as ViewEncapsulation2, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
3543
3559
|
import ts24 from "typescript";
|
|
3544
3560
|
|
|
3545
|
-
// bazel-out/
|
|
3561
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
3546
3562
|
import ts16 from "typescript";
|
|
3547
3563
|
var SemanticSymbol = class {
|
|
3548
3564
|
constructor(decl) {
|
|
@@ -3558,7 +3574,7 @@ function getSymbolIdentifier(decl) {
|
|
|
3558
3574
|
return decl.name.text;
|
|
3559
3575
|
}
|
|
3560
3576
|
|
|
3561
|
-
// bazel-out/
|
|
3577
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
3562
3578
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
3563
3579
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
3564
3580
|
isPublicApiAffected() {
|
|
@@ -3701,10 +3717,10 @@ function getImportPath(expr) {
|
|
|
3701
3717
|
}
|
|
3702
3718
|
}
|
|
3703
3719
|
|
|
3704
|
-
// bazel-out/
|
|
3720
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
3705
3721
|
import ts17 from "typescript";
|
|
3706
3722
|
|
|
3707
|
-
// bazel-out/
|
|
3723
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
3708
3724
|
function isSymbolEqual(a, b) {
|
|
3709
3725
|
if (a.decl === b.decl) {
|
|
3710
3726
|
return true;
|
|
@@ -3754,7 +3770,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
3754
3770
|
return true;
|
|
3755
3771
|
}
|
|
3756
3772
|
|
|
3757
|
-
// bazel-out/
|
|
3773
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
3758
3774
|
function extractSemanticTypeParameters(node) {
|
|
3759
3775
|
if (!ts17.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
3760
3776
|
return null;
|
|
@@ -3774,14 +3790,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
3774
3790
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
3775
3791
|
}
|
|
3776
3792
|
|
|
3777
|
-
// bazel-out/
|
|
3793
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
3778
3794
|
var ComponentScopeKind;
|
|
3779
3795
|
(function(ComponentScopeKind2) {
|
|
3780
3796
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
3781
3797
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
3782
3798
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
3783
3799
|
|
|
3784
|
-
// bazel-out/
|
|
3800
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
3785
3801
|
var CompoundComponentScopeReader = class {
|
|
3786
3802
|
constructor(readers) {
|
|
3787
3803
|
this.readers = readers;
|
|
@@ -3806,7 +3822,7 @@ var CompoundComponentScopeReader = class {
|
|
|
3806
3822
|
}
|
|
3807
3823
|
};
|
|
3808
3824
|
|
|
3809
|
-
// bazel-out/
|
|
3825
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
3810
3826
|
var MetadataDtsModuleScopeResolver = class {
|
|
3811
3827
|
constructor(dtsMetaReader, aliasingHost) {
|
|
3812
3828
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -3882,11 +3898,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
3882
3898
|
}
|
|
3883
3899
|
};
|
|
3884
3900
|
|
|
3885
|
-
// bazel-out/
|
|
3901
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
3886
3902
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
3887
3903
|
import ts18 from "typescript";
|
|
3888
3904
|
|
|
3889
|
-
// bazel-out/
|
|
3905
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
3890
3906
|
function getDiagnosticNode(ref, rawExpr) {
|
|
3891
3907
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
3892
3908
|
}
|
|
@@ -3909,7 +3925,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
3909
3925
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
3910
3926
|
}
|
|
3911
3927
|
|
|
3912
|
-
// bazel-out/
|
|
3928
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
3913
3929
|
var LocalModuleScopeRegistry = class {
|
|
3914
3930
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
3915
3931
|
this.localReader = localReader;
|
|
@@ -4248,7 +4264,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
4248
4264
|
]);
|
|
4249
4265
|
}
|
|
4250
4266
|
|
|
4251
|
-
// bazel-out/
|
|
4267
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
4252
4268
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
4253
4269
|
import ts19 from "typescript";
|
|
4254
4270
|
var TypeCheckScopeRegistry = class {
|
|
@@ -4317,10 +4333,10 @@ var TypeCheckScopeRegistry = class {
|
|
|
4317
4333
|
}
|
|
4318
4334
|
};
|
|
4319
4335
|
|
|
4320
|
-
// bazel-out/
|
|
4336
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4321
4337
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4322
4338
|
|
|
4323
|
-
// bazel-out/
|
|
4339
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4324
4340
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
4325
4341
|
import ts20 from "typescript";
|
|
4326
4342
|
var EMPTY_OBJECT = {};
|
|
@@ -4909,7 +4925,7 @@ function toR3InputMetadata(mapping) {
|
|
|
4909
4925
|
};
|
|
4910
4926
|
}
|
|
4911
4927
|
|
|
4912
|
-
// bazel-out/
|
|
4928
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4913
4929
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4914
4930
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4915
4931
|
super(decl);
|
|
@@ -4989,7 +5005,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4989
5005
|
return isSymbolEqual(current, previous);
|
|
4990
5006
|
}
|
|
4991
5007
|
|
|
4992
|
-
// bazel-out/
|
|
5008
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4993
5009
|
var FIELD_DECORATORS = [
|
|
4994
5010
|
"Input",
|
|
4995
5011
|
"Output",
|
|
@@ -5161,11 +5177,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
5161
5177
|
}
|
|
5162
5178
|
};
|
|
5163
5179
|
|
|
5164
|
-
// bazel-out/
|
|
5165
|
-
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr
|
|
5180
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5181
|
+
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
5166
5182
|
import ts22 from "typescript";
|
|
5167
5183
|
|
|
5168
|
-
// bazel-out/
|
|
5184
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
5169
5185
|
import ts21 from "typescript";
|
|
5170
5186
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
5171
5187
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -5232,7 +5248,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
5232
5248
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
5233
5249
|
}
|
|
5234
5250
|
|
|
5235
|
-
// bazel-out/
|
|
5251
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5236
5252
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
5237
5253
|
constructor(decl, hasProviders) {
|
|
5238
5254
|
super(decl);
|
|
@@ -5492,11 +5508,17 @@ var NgModuleDecoratorHandler = class {
|
|
|
5492
5508
|
imports: []
|
|
5493
5509
|
};
|
|
5494
5510
|
if (this.compilationMode === CompilationMode.LOCAL) {
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5511
|
+
for (const exp of [rawImports, rawExports]) {
|
|
5512
|
+
if (exp === null) {
|
|
5513
|
+
continue;
|
|
5514
|
+
}
|
|
5515
|
+
if (ts22.isArrayLiteralExpression(exp)) {
|
|
5516
|
+
if (exp.elements) {
|
|
5517
|
+
injectorMetadata.imports.push(...exp.elements.map((n) => new WrappedNodeExpr6(n)));
|
|
5518
|
+
}
|
|
5519
|
+
} else {
|
|
5520
|
+
injectorMetadata.imports.push(new WrappedNodeExpr6(exp));
|
|
5521
|
+
}
|
|
5500
5522
|
}
|
|
5501
5523
|
}
|
|
5502
5524
|
const factoryMetadata = {
|
|
@@ -5702,8 +5724,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
5702
5724
|
});
|
|
5703
5725
|
const directiveArray = new LiteralArrayExpr2(directives);
|
|
5704
5726
|
const pipesArray = new LiteralArrayExpr2(pipes);
|
|
5705
|
-
const directiveExpr = remoteScopesMayRequireCycleProtection && directives.length > 0 ? new
|
|
5706
|
-
const pipesExpr = remoteScopesMayRequireCycleProtection && pipes.length > 0 ? new
|
|
5727
|
+
const directiveExpr = remoteScopesMayRequireCycleProtection && directives.length > 0 ? new FunctionExpr([], [new ReturnStatement(directiveArray)]) : directiveArray;
|
|
5728
|
+
const pipesExpr = remoteScopesMayRequireCycleProtection && pipes.length > 0 ? new FunctionExpr([], [new ReturnStatement(pipesArray)]) : pipesArray;
|
|
5707
5729
|
const componentType = this.refEmitter.emit(decl, context);
|
|
5708
5730
|
assertSuccessfulReferenceEmit(componentType, node, "component");
|
|
5709
5731
|
const declExpr = componentType.expression;
|
|
@@ -5795,7 +5817,7 @@ function isSyntheticReference(ref) {
|
|
|
5795
5817
|
return ref.synthetic;
|
|
5796
5818
|
}
|
|
5797
5819
|
|
|
5798
|
-
// bazel-out/
|
|
5820
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5799
5821
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5800
5822
|
const name = ref.debugName || "(unknown)";
|
|
5801
5823
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5818,7 +5840,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5818
5840
|
return null;
|
|
5819
5841
|
}
|
|
5820
5842
|
|
|
5821
|
-
// bazel-out/
|
|
5843
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5822
5844
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5823
5845
|
import ts23 from "typescript";
|
|
5824
5846
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -6177,7 +6199,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
6177
6199
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
6178
6200
|
}
|
|
6179
6201
|
|
|
6180
|
-
// bazel-out/
|
|
6202
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
6181
6203
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
6182
6204
|
constructor() {
|
|
6183
6205
|
super(...arguments);
|
|
@@ -6212,7 +6234,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
6212
6234
|
}
|
|
6213
6235
|
};
|
|
6214
6236
|
|
|
6215
|
-
// bazel-out/
|
|
6237
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
6216
6238
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
6217
6239
|
if (value instanceof Map) {
|
|
6218
6240
|
const name = value.get("name");
|
|
@@ -6288,7 +6310,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
6288
6310
|
return false;
|
|
6289
6311
|
}
|
|
6290
6312
|
|
|
6291
|
-
// bazel-out/
|
|
6313
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
6292
6314
|
var EMPTY_ARRAY2 = [];
|
|
6293
6315
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
6294
6316
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -6408,8 +6430,13 @@ var ComponentDecoratorHandler = class {
|
|
|
6408
6430
|
return {};
|
|
6409
6431
|
}
|
|
6410
6432
|
const { decorator: component, metadata, inputs, outputs, hostDirectives, rawHostDirectives } = directiveResult;
|
|
6411
|
-
const encapsulation = (_a = resolveEnumValue(this.evaluator, component, "encapsulation", "ViewEncapsulation")) != null ? _a :
|
|
6412
|
-
|
|
6433
|
+
const encapsulation = (_a = this.compilationMode !== CompilationMode.LOCAL ? resolveEnumValue(this.evaluator, component, "encapsulation", "ViewEncapsulation") : resolveEncapsulationEnumValueLocally(component.get("encapsulation"))) != null ? _a : ViewEncapsulation2.Emulated;
|
|
6434
|
+
let changeDetection = null;
|
|
6435
|
+
if (this.compilationMode !== CompilationMode.LOCAL) {
|
|
6436
|
+
changeDetection = resolveEnumValue(this.evaluator, component, "changeDetection", "ChangeDetectionStrategy");
|
|
6437
|
+
} else if (component.has("changeDetection")) {
|
|
6438
|
+
changeDetection = new WrappedNodeExpr7(component.get("changeDetection"));
|
|
6439
|
+
}
|
|
6413
6440
|
let animations = null;
|
|
6414
6441
|
let animationTriggerNames = null;
|
|
6415
6442
|
if (component.has("animations")) {
|
|
@@ -6518,7 +6545,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6518
6545
|
diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.nodeForError, resourceType).toDiagnostic());
|
|
6519
6546
|
}
|
|
6520
6547
|
}
|
|
6521
|
-
if (encapsulation ===
|
|
6548
|
+
if (encapsulation === ViewEncapsulation2.ShadowDom && metadata.selector !== null) {
|
|
6522
6549
|
const selectorError = checkCustomElementSelectorForErrors(metadata.selector);
|
|
6523
6550
|
if (selectorError !== null) {
|
|
6524
6551
|
if (diagnostics === void 0) {
|
|
@@ -6563,13 +6590,14 @@ var ComponentDecoratorHandler = class {
|
|
|
6563
6590
|
ngContentSelectors: template.ngContentSelectors
|
|
6564
6591
|
},
|
|
6565
6592
|
encapsulation,
|
|
6593
|
+
changeDetection,
|
|
6566
6594
|
interpolation: (_c = template.interpolationConfig) != null ? _c : DEFAULT_INTERPOLATION_CONFIG2,
|
|
6567
6595
|
styles,
|
|
6568
6596
|
animations,
|
|
6569
6597
|
viewProviders: wrappedViewProviders,
|
|
6570
6598
|
i18nUseExternalIds: this.i18nUseExternalIds,
|
|
6571
6599
|
relativeContextFilePath,
|
|
6572
|
-
rawImports: rawImports !== null
|
|
6600
|
+
rawImports: rawImports !== null ? new WrappedNodeExpr7(rawImports) : void 0
|
|
6573
6601
|
},
|
|
6574
6602
|
typeCheckMeta: extractDirectiveTypeCheckMeta(node, inputs, this.reflector),
|
|
6575
6603
|
classMetadata: this.includeClassMetadata ? extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler, (dec) => transformDecoratorResources(dec, component, styles, template)) : null,
|
|
@@ -6591,9 +6619,6 @@ var ComponentDecoratorHandler = class {
|
|
|
6591
6619
|
},
|
|
6592
6620
|
diagnostics
|
|
6593
6621
|
};
|
|
6594
|
-
if (changeDetection !== null) {
|
|
6595
|
-
output.analysis.meta.changeDetection = changeDetection;
|
|
6596
|
-
}
|
|
6597
6622
|
return output;
|
|
6598
6623
|
}
|
|
6599
6624
|
symbol(node, analysis) {
|
|
@@ -6790,7 +6815,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6790
6815
|
symbol.usedPipes = Array.from(declarations.values()).filter(isUsedPipe).map(getSemanticReference);
|
|
6791
6816
|
}
|
|
6792
6817
|
const eagerDeclarations = Array.from(declarations.values()).filter((decl) => decl.kind === R3TemplateDependencyKind.NgModule || eagerlyUsed.has(decl.ref.node));
|
|
6793
|
-
this.resolveDeferBlocks(deferBlocks, declarations, data, analysis, eagerlyUsed);
|
|
6818
|
+
this.resolveDeferBlocks(deferBlocks, declarations, data, analysis, eagerlyUsed, bound);
|
|
6794
6819
|
const cyclesFromDirectives = /* @__PURE__ */ new Map();
|
|
6795
6820
|
const cyclesFromPipes = /* @__PURE__ */ new Map();
|
|
6796
6821
|
if (!metadata.isStandalone) {
|
|
@@ -6840,6 +6865,16 @@ var ComponentDecoratorHandler = class {
|
|
|
6840
6865
|
throw new FatalDiagnosticError(ErrorCode.IMPORT_CYCLE_DETECTED, node, "One or more import cycles would need to be created to compile this component, which is not supported by the current compiler configuration.", relatedMessages);
|
|
6841
6866
|
}
|
|
6842
6867
|
}
|
|
6868
|
+
} else {
|
|
6869
|
+
const directivelessBinder = new R3TargetBinder(new SelectorMatcher2());
|
|
6870
|
+
const bound = directivelessBinder.bind({ template: metadata.template.nodes });
|
|
6871
|
+
const deferredBlocks = bound.getDeferBlocks();
|
|
6872
|
+
const triggerElements = /* @__PURE__ */ new Map();
|
|
6873
|
+
for (const block of deferredBlocks) {
|
|
6874
|
+
this.resolveDeferTriggers(block, block.triggers, bound, triggerElements);
|
|
6875
|
+
this.resolveDeferTriggers(block, block.prefetchTriggers, bound, triggerElements);
|
|
6876
|
+
data.deferBlocks.set(block, { deps: [], triggerElements });
|
|
6877
|
+
}
|
|
6843
6878
|
}
|
|
6844
6879
|
if (analysis.resolvedImports !== null && analysis.rawImports !== null) {
|
|
6845
6880
|
const standaloneDiagnostics = validateStandaloneImports(analysis.resolvedImports, analysis.rawImports, this.metaReader, this.scopeReader);
|
|
@@ -6903,8 +6938,8 @@ var ComponentDecoratorHandler = class {
|
|
|
6903
6938
|
return [];
|
|
6904
6939
|
}
|
|
6905
6940
|
const deferrableTypes = /* @__PURE__ */ new Map();
|
|
6906
|
-
for (const [_,
|
|
6907
|
-
for (const deferBlockDep of
|
|
6941
|
+
for (const [_, metadata] of resolution.deferBlocks) {
|
|
6942
|
+
for (const deferBlockDep of metadata.deps) {
|
|
6908
6943
|
const dep = deferBlockDep;
|
|
6909
6944
|
const classDecl = dep.classDeclaration;
|
|
6910
6945
|
const importDecl = (_a = resolution.deferrableDeclToImportDecl.get(classDecl)) != null ? _a : null;
|
|
@@ -6976,12 +7011,13 @@ var ComponentDecoratorHandler = class {
|
|
|
6976
7011
|
}
|
|
6977
7012
|
this.cycleAnalyzer.recordSyntheticImport(origin, imported);
|
|
6978
7013
|
}
|
|
6979
|
-
resolveDeferBlocks(deferBlocks, deferrableDecls, resolutionData, analysisData, eagerlyUsedDecls) {
|
|
7014
|
+
resolveDeferBlocks(deferBlocks, deferrableDecls, resolutionData, analysisData, eagerlyUsedDecls, componentBoundTarget) {
|
|
6980
7015
|
const allDeferredDecls = /* @__PURE__ */ new Set();
|
|
6981
7016
|
for (const [deferBlock, bound] of deferBlocks) {
|
|
6982
7017
|
const usedDirectives = new Set(bound.getEagerlyUsedDirectives().map((d) => d.ref.node));
|
|
6983
7018
|
const usedPipes = new Set(bound.getEagerlyUsedPipes());
|
|
6984
7019
|
const deps = [];
|
|
7020
|
+
const triggerElements = /* @__PURE__ */ new Map();
|
|
6985
7021
|
for (const decl of Array.from(deferrableDecls.values())) {
|
|
6986
7022
|
if (decl.kind === R3TemplateDependencyKind.NgModule) {
|
|
6987
7023
|
continue;
|
|
@@ -7001,7 +7037,9 @@ var ComponentDecoratorHandler = class {
|
|
|
7001
7037
|
});
|
|
7002
7038
|
allDeferredDecls.add(decl.ref.node);
|
|
7003
7039
|
}
|
|
7004
|
-
|
|
7040
|
+
this.resolveDeferTriggers(deferBlock, deferBlock.triggers, componentBoundTarget, triggerElements);
|
|
7041
|
+
this.resolveDeferTriggers(deferBlock, deferBlock.prefetchTriggers, componentBoundTarget, triggerElements);
|
|
7042
|
+
resolutionData.deferBlocks.set(deferBlock, { deps, triggerElements });
|
|
7005
7043
|
}
|
|
7006
7044
|
if (analysisData.meta.isStandalone && analysisData.rawImports !== null && ts24.isArrayLiteralExpression(analysisData.rawImports)) {
|
|
7007
7045
|
for (const node of analysisData.rawImports.elements) {
|
|
@@ -7041,6 +7079,12 @@ var ComponentDecoratorHandler = class {
|
|
|
7041
7079
|
}
|
|
7042
7080
|
}
|
|
7043
7081
|
}
|
|
7082
|
+
resolveDeferTriggers(block, triggers, componentBoundTarget, triggerElements) {
|
|
7083
|
+
Object.keys(triggers).forEach((key) => {
|
|
7084
|
+
const trigger = triggers[key];
|
|
7085
|
+
triggerElements.set(trigger, componentBoundTarget.getDeferredTriggerTarget(block, trigger));
|
|
7086
|
+
});
|
|
7087
|
+
}
|
|
7044
7088
|
};
|
|
7045
7089
|
function validateStandaloneImports(importRefs, importExpr, metaReader, scopeReader) {
|
|
7046
7090
|
const diagnostics = [];
|
|
@@ -7068,7 +7112,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
7068
7112
|
return diagnostics;
|
|
7069
7113
|
}
|
|
7070
7114
|
|
|
7071
|
-
// bazel-out/
|
|
7115
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
7072
7116
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
7073
7117
|
import ts25 from "typescript";
|
|
7074
7118
|
var InjectableDecoratorHandler = class {
|
|
@@ -7294,7 +7338,7 @@ function getDep(dep, reflector) {
|
|
|
7294
7338
|
return meta;
|
|
7295
7339
|
}
|
|
7296
7340
|
|
|
7297
|
-
// bazel-out/
|
|
7341
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
7298
7342
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
7299
7343
|
import ts26 from "typescript";
|
|
7300
7344
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -7446,14 +7490,14 @@ var PipeDecoratorHandler = class {
|
|
|
7446
7490
|
}
|
|
7447
7491
|
};
|
|
7448
7492
|
|
|
7449
|
-
// bazel-out/
|
|
7493
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
7450
7494
|
var OptimizeFor;
|
|
7451
7495
|
(function(OptimizeFor2) {
|
|
7452
7496
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
7453
7497
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
7454
7498
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
7455
7499
|
|
|
7456
|
-
// bazel-out/
|
|
7500
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
7457
7501
|
var PotentialImportKind;
|
|
7458
7502
|
(function(PotentialImportKind2) {
|
|
7459
7503
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -7465,14 +7509,14 @@ var PotentialImportMode;
|
|
|
7465
7509
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
7466
7510
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
7467
7511
|
|
|
7468
|
-
// bazel-out/
|
|
7512
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
7469
7513
|
var CompletionKind;
|
|
7470
7514
|
(function(CompletionKind2) {
|
|
7471
7515
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
7472
7516
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
7473
7517
|
})(CompletionKind || (CompletionKind = {}));
|
|
7474
7518
|
|
|
7475
|
-
// bazel-out/
|
|
7519
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
7476
7520
|
var SymbolKind;
|
|
7477
7521
|
(function(SymbolKind2) {
|
|
7478
7522
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -7540,4 +7584,4 @@ export {
|
|
|
7540
7584
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7541
7585
|
* found in the LICENSE file at https://angular.io/license
|
|
7542
7586
|
*/
|
|
7543
|
-
//# sourceMappingURL=chunk-
|
|
7587
|
+
//# sourceMappingURL=chunk-6MV5LVGW.js.map
|