@angular/compiler-cli 17.0.0-next.5 → 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-UHYH6BYB.js → chunk-3O3O4L34.js} +1 -1
- package/bundles/{chunk-YWV5CDS7.js → chunk-6MV5LVGW.js} +134 -96
- package/bundles/chunk-6MV5LVGW.js.map +6 -0
- package/bundles/{chunk-TX6LIB73.js → chunk-7HFK25CM.js} +28 -27
- package/bundles/{chunk-TX6LIB73.js.map → chunk-7HFK25CM.js.map} +1 -1
- package/bundles/{chunk-RVITQ7TS.js → chunk-7YXJWQNF.js} +146 -107
- package/bundles/chunk-7YXJWQNF.js.map +6 -0
- package/bundles/{chunk-SBDNBITT.js → chunk-CF2CT7RQ.js} +3 -3
- package/bundles/{chunk-7QICZXP3.js → chunk-DQ4T2KWL.js} +8 -8
- package/bundles/{chunk-KV7WQARZ.js → chunk-HICXNP7M.js} +52 -33
- package/bundles/chunk-HICXNP7M.js.map +6 -0
- package/bundles/{chunk-GYHDNUIK.js → chunk-OULZQUKT.js} +7 -7
- package/bundles/{chunk-OADA63HC.js → chunk-T6QZTHEE.js} +5 -5
- package/bundles/{chunk-HJOPJLIM.js → chunk-URH5LEAG.js} +5 -5
- package/bundles/{chunk-CSOLWS7O.js → chunk-W653LDC7.js} +7 -7
- package/bundles/{chunk-7QTF7U4J.js → chunk-YPVFT2MR.js} +4 -4
- package/bundles/index.js +13 -13
- 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/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +2 -0
- package/package.json +2 -2
- 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/diagnostics/src/error_code.d.ts +14 -1
- package/src/ngtsc/imports/src/deferred_symbol_tracker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +6 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +3 -0
- package/bundles/chunk-KV7WQARZ.js.map +0 -6
- package/bundles/chunk-RVITQ7TS.js.map +0 -6
- package/bundles/chunk-YWV5CDS7.js.map +0 -6
- /package/bundles/{chunk-UHYH6BYB.js.map → chunk-3O3O4L34.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-CF2CT7RQ.js.map} +0 -0
- /package/bundles/{chunk-7QICZXP3.js.map → chunk-DQ4T2KWL.js.map} +0 -0
- /package/bundles/{chunk-GYHDNUIK.js.map → chunk-OULZQUKT.js.map} +0 -0
- /package/bundles/{chunk-OADA63HC.js.map → chunk-T6QZTHEE.js.map} +0 -0
- /package/bundles/{chunk-HJOPJLIM.js.map → chunk-URH5LEAG.js.map} +0 -0
- /package/bundles/{chunk-CSOLWS7O.js.map → chunk-W653LDC7.js.map} +0 -0
- /package/bundles/{chunk-7QTF7U4J.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);
|
|
@@ -5708,8 +5724,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
5708
5724
|
});
|
|
5709
5725
|
const directiveArray = new LiteralArrayExpr2(directives);
|
|
5710
5726
|
const pipesArray = new LiteralArrayExpr2(pipes);
|
|
5711
|
-
const directiveExpr = remoteScopesMayRequireCycleProtection && directives.length > 0 ? new
|
|
5712
|
-
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;
|
|
5713
5729
|
const componentType = this.refEmitter.emit(decl, context);
|
|
5714
5730
|
assertSuccessfulReferenceEmit(componentType, node, "component");
|
|
5715
5731
|
const declExpr = componentType.expression;
|
|
@@ -5801,7 +5817,7 @@ function isSyntheticReference(ref) {
|
|
|
5801
5817
|
return ref.synthetic;
|
|
5802
5818
|
}
|
|
5803
5819
|
|
|
5804
|
-
// bazel-out/
|
|
5820
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5805
5821
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5806
5822
|
const name = ref.debugName || "(unknown)";
|
|
5807
5823
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5824,7 +5840,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5824
5840
|
return null;
|
|
5825
5841
|
}
|
|
5826
5842
|
|
|
5827
|
-
// bazel-out/
|
|
5843
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5828
5844
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5829
5845
|
import ts23 from "typescript";
|
|
5830
5846
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -6183,7 +6199,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
6183
6199
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
6184
6200
|
}
|
|
6185
6201
|
|
|
6186
|
-
// bazel-out/
|
|
6202
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
6187
6203
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
6188
6204
|
constructor() {
|
|
6189
6205
|
super(...arguments);
|
|
@@ -6218,7 +6234,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
6218
6234
|
}
|
|
6219
6235
|
};
|
|
6220
6236
|
|
|
6221
|
-
// bazel-out/
|
|
6237
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
6222
6238
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
6223
6239
|
if (value instanceof Map) {
|
|
6224
6240
|
const name = value.get("name");
|
|
@@ -6294,7 +6310,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
6294
6310
|
return false;
|
|
6295
6311
|
}
|
|
6296
6312
|
|
|
6297
|
-
// bazel-out/
|
|
6313
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
6298
6314
|
var EMPTY_ARRAY2 = [];
|
|
6299
6315
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
6300
6316
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -6414,8 +6430,13 @@ var ComponentDecoratorHandler = class {
|
|
|
6414
6430
|
return {};
|
|
6415
6431
|
}
|
|
6416
6432
|
const { decorator: component, metadata, inputs, outputs, hostDirectives, rawHostDirectives } = directiveResult;
|
|
6417
|
-
const encapsulation = (_a = resolveEnumValue(this.evaluator, component, "encapsulation", "ViewEncapsulation")) != null ? _a :
|
|
6418
|
-
|
|
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
|
+
}
|
|
6419
6440
|
let animations = null;
|
|
6420
6441
|
let animationTriggerNames = null;
|
|
6421
6442
|
if (component.has("animations")) {
|
|
@@ -6524,7 +6545,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6524
6545
|
diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.nodeForError, resourceType).toDiagnostic());
|
|
6525
6546
|
}
|
|
6526
6547
|
}
|
|
6527
|
-
if (encapsulation ===
|
|
6548
|
+
if (encapsulation === ViewEncapsulation2.ShadowDom && metadata.selector !== null) {
|
|
6528
6549
|
const selectorError = checkCustomElementSelectorForErrors(metadata.selector);
|
|
6529
6550
|
if (selectorError !== null) {
|
|
6530
6551
|
if (diagnostics === void 0) {
|
|
@@ -6569,6 +6590,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6569
6590
|
ngContentSelectors: template.ngContentSelectors
|
|
6570
6591
|
},
|
|
6571
6592
|
encapsulation,
|
|
6593
|
+
changeDetection,
|
|
6572
6594
|
interpolation: (_c = template.interpolationConfig) != null ? _c : DEFAULT_INTERPOLATION_CONFIG2,
|
|
6573
6595
|
styles,
|
|
6574
6596
|
animations,
|
|
@@ -6597,9 +6619,6 @@ var ComponentDecoratorHandler = class {
|
|
|
6597
6619
|
},
|
|
6598
6620
|
diagnostics
|
|
6599
6621
|
};
|
|
6600
|
-
if (changeDetection !== null) {
|
|
6601
|
-
output.analysis.meta.changeDetection = changeDetection;
|
|
6602
|
-
}
|
|
6603
6622
|
return output;
|
|
6604
6623
|
}
|
|
6605
6624
|
symbol(node, analysis) {
|
|
@@ -6796,7 +6815,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6796
6815
|
symbol.usedPipes = Array.from(declarations.values()).filter(isUsedPipe).map(getSemanticReference);
|
|
6797
6816
|
}
|
|
6798
6817
|
const eagerDeclarations = Array.from(declarations.values()).filter((decl) => decl.kind === R3TemplateDependencyKind.NgModule || eagerlyUsed.has(decl.ref.node));
|
|
6799
|
-
this.resolveDeferBlocks(deferBlocks, declarations, data, analysis, eagerlyUsed);
|
|
6818
|
+
this.resolveDeferBlocks(deferBlocks, declarations, data, analysis, eagerlyUsed, bound);
|
|
6800
6819
|
const cyclesFromDirectives = /* @__PURE__ */ new Map();
|
|
6801
6820
|
const cyclesFromPipes = /* @__PURE__ */ new Map();
|
|
6802
6821
|
if (!metadata.isStandalone) {
|
|
@@ -6846,6 +6865,16 @@ var ComponentDecoratorHandler = class {
|
|
|
6846
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);
|
|
6847
6866
|
}
|
|
6848
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
|
+
}
|
|
6849
6878
|
}
|
|
6850
6879
|
if (analysis.resolvedImports !== null && analysis.rawImports !== null) {
|
|
6851
6880
|
const standaloneDiagnostics = validateStandaloneImports(analysis.resolvedImports, analysis.rawImports, this.metaReader, this.scopeReader);
|
|
@@ -6909,8 +6938,8 @@ var ComponentDecoratorHandler = class {
|
|
|
6909
6938
|
return [];
|
|
6910
6939
|
}
|
|
6911
6940
|
const deferrableTypes = /* @__PURE__ */ new Map();
|
|
6912
|
-
for (const [_,
|
|
6913
|
-
for (const deferBlockDep of
|
|
6941
|
+
for (const [_, metadata] of resolution.deferBlocks) {
|
|
6942
|
+
for (const deferBlockDep of metadata.deps) {
|
|
6914
6943
|
const dep = deferBlockDep;
|
|
6915
6944
|
const classDecl = dep.classDeclaration;
|
|
6916
6945
|
const importDecl = (_a = resolution.deferrableDeclToImportDecl.get(classDecl)) != null ? _a : null;
|
|
@@ -6982,12 +7011,13 @@ var ComponentDecoratorHandler = class {
|
|
|
6982
7011
|
}
|
|
6983
7012
|
this.cycleAnalyzer.recordSyntheticImport(origin, imported);
|
|
6984
7013
|
}
|
|
6985
|
-
resolveDeferBlocks(deferBlocks, deferrableDecls, resolutionData, analysisData, eagerlyUsedDecls) {
|
|
7014
|
+
resolveDeferBlocks(deferBlocks, deferrableDecls, resolutionData, analysisData, eagerlyUsedDecls, componentBoundTarget) {
|
|
6986
7015
|
const allDeferredDecls = /* @__PURE__ */ new Set();
|
|
6987
7016
|
for (const [deferBlock, bound] of deferBlocks) {
|
|
6988
7017
|
const usedDirectives = new Set(bound.getEagerlyUsedDirectives().map((d) => d.ref.node));
|
|
6989
7018
|
const usedPipes = new Set(bound.getEagerlyUsedPipes());
|
|
6990
7019
|
const deps = [];
|
|
7020
|
+
const triggerElements = /* @__PURE__ */ new Map();
|
|
6991
7021
|
for (const decl of Array.from(deferrableDecls.values())) {
|
|
6992
7022
|
if (decl.kind === R3TemplateDependencyKind.NgModule) {
|
|
6993
7023
|
continue;
|
|
@@ -7007,7 +7037,9 @@ var ComponentDecoratorHandler = class {
|
|
|
7007
7037
|
});
|
|
7008
7038
|
allDeferredDecls.add(decl.ref.node);
|
|
7009
7039
|
}
|
|
7010
|
-
|
|
7040
|
+
this.resolveDeferTriggers(deferBlock, deferBlock.triggers, componentBoundTarget, triggerElements);
|
|
7041
|
+
this.resolveDeferTriggers(deferBlock, deferBlock.prefetchTriggers, componentBoundTarget, triggerElements);
|
|
7042
|
+
resolutionData.deferBlocks.set(deferBlock, { deps, triggerElements });
|
|
7011
7043
|
}
|
|
7012
7044
|
if (analysisData.meta.isStandalone && analysisData.rawImports !== null && ts24.isArrayLiteralExpression(analysisData.rawImports)) {
|
|
7013
7045
|
for (const node of analysisData.rawImports.elements) {
|
|
@@ -7047,6 +7079,12 @@ var ComponentDecoratorHandler = class {
|
|
|
7047
7079
|
}
|
|
7048
7080
|
}
|
|
7049
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
|
+
}
|
|
7050
7088
|
};
|
|
7051
7089
|
function validateStandaloneImports(importRefs, importExpr, metaReader, scopeReader) {
|
|
7052
7090
|
const diagnostics = [];
|
|
@@ -7074,7 +7112,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
7074
7112
|
return diagnostics;
|
|
7075
7113
|
}
|
|
7076
7114
|
|
|
7077
|
-
// bazel-out/
|
|
7115
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
7078
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";
|
|
7079
7117
|
import ts25 from "typescript";
|
|
7080
7118
|
var InjectableDecoratorHandler = class {
|
|
@@ -7300,7 +7338,7 @@ function getDep(dep, reflector) {
|
|
|
7300
7338
|
return meta;
|
|
7301
7339
|
}
|
|
7302
7340
|
|
|
7303
|
-
// bazel-out/
|
|
7341
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
7304
7342
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
7305
7343
|
import ts26 from "typescript";
|
|
7306
7344
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -7452,14 +7490,14 @@ var PipeDecoratorHandler = class {
|
|
|
7452
7490
|
}
|
|
7453
7491
|
};
|
|
7454
7492
|
|
|
7455
|
-
// bazel-out/
|
|
7493
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
7456
7494
|
var OptimizeFor;
|
|
7457
7495
|
(function(OptimizeFor2) {
|
|
7458
7496
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
7459
7497
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
7460
7498
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
7461
7499
|
|
|
7462
|
-
// bazel-out/
|
|
7500
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
7463
7501
|
var PotentialImportKind;
|
|
7464
7502
|
(function(PotentialImportKind2) {
|
|
7465
7503
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -7471,14 +7509,14 @@ var PotentialImportMode;
|
|
|
7471
7509
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
7472
7510
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
7473
7511
|
|
|
7474
|
-
// bazel-out/
|
|
7512
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
7475
7513
|
var CompletionKind;
|
|
7476
7514
|
(function(CompletionKind2) {
|
|
7477
7515
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
7478
7516
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
7479
7517
|
})(CompletionKind || (CompletionKind = {}));
|
|
7480
7518
|
|
|
7481
|
-
// bazel-out/
|
|
7519
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
7482
7520
|
var SymbolKind;
|
|
7483
7521
|
(function(SymbolKind2) {
|
|
7484
7522
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -7546,4 +7584,4 @@ export {
|
|
|
7546
7584
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7547
7585
|
* found in the LICENSE file at https://angular.io/license
|
|
7548
7586
|
*/
|
|
7549
|
-
//# sourceMappingURL=chunk-
|
|
7587
|
+
//# sourceMappingURL=chunk-6MV5LVGW.js.map
|