@angular/compiler-cli 16.0.0-next.2 → 16.0.0-next.4
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-W6DWPJBG.js → chunk-4TZUPGBE.js} +253 -134
- package/bundles/chunk-4TZUPGBE.js.map +6 -0
- package/bundles/{chunk-7Y2QVZL6.js → chunk-BKZMHDOG.js} +35 -35
- package/bundles/chunk-BKZMHDOG.js.map +6 -0
- package/bundles/{chunk-GYHDNUIK.js → chunk-EKTJ7622.js} +7 -7
- package/bundles/{chunk-KA5NKHL6.js → chunk-J5XCN5DY.js} +136 -120
- package/bundles/chunk-J5XCN5DY.js.map +6 -0
- package/bundles/{chunk-BVXD7IJL.js → chunk-KOYPL546.js} +5 -5
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-54RHUHYB.js → chunk-N6MSUQVH.js} +5 -5
- package/bundles/{chunk-EDWIBG7R.js → chunk-QQGJEWBQ.js} +6 -6
- package/bundles/{chunk-EC5K6QPP.js → chunk-TBUSSXUA.js} +7 -7
- package/bundles/{chunk-JCJ2GTDZ.js → chunk-TNNRAQPV.js} +5 -5
- package/bundles/{chunk-K2A5WD7L.js → chunk-UZSESMCH.js} +23 -21
- package/bundles/chunk-UZSESMCH.js.map +6 -0
- package/bundles/{chunk-LLHKY5PL.js → chunk-WWVESPME.js} +8 -8
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- 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/ast/ast_value.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -2
- package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -2
- package/src/ngtsc/annotations/directive/src/shared.d.ts +3 -3
- package/src/ngtsc/annotations/directive/src/symbol.d.ts +3 -3
- package/src/ngtsc/diagnostics/src/error_code.d.ts +9 -0
- package/src/ngtsc/metadata/src/api.d.ts +6 -2
- package/src/ngtsc/metadata/src/host_directives_resolver.d.ts +1 -0
- package/src/ngtsc/metadata/src/property_mapping.d.ts +10 -10
- package/src/ngtsc/metadata/src/util.d.ts +2 -2
- package/src/ngtsc/typecheck/api/api.d.ts +2 -2
- package/src/ngtsc/typecheck/src/oob.d.ts +4 -1
- package/bundles/chunk-7Y2QVZL6.js.map +0 -6
- package/bundles/chunk-K2A5WD7L.js.map +0 -6
- package/bundles/chunk-KA5NKHL6.js.map +0 -6
- package/bundles/chunk-W6DWPJBG.js.map +0 -6
- /package/bundles/{chunk-GYHDNUIK.js.map → chunk-EKTJ7622.js.map} +0 -0
- /package/bundles/{chunk-BVXD7IJL.js.map → chunk-KOYPL546.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
- /package/bundles/{chunk-54RHUHYB.js.map → chunk-N6MSUQVH.js.map} +0 -0
- /package/bundles/{chunk-EDWIBG7R.js.map → chunk-QQGJEWBQ.js.map} +0 -0
- /package/bundles/{chunk-EC5K6QPP.js.map → chunk-TBUSSXUA.js.map} +0 -0
- /package/bundles/{chunk-JCJ2GTDZ.js.map → chunk-TNNRAQPV.js.map} +0 -0
- /package/bundles/{chunk-LLHKY5PL.js.map → chunk-WWVESPME.js.map} +0 -0
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
reflectObjectLiteral,
|
|
13
13
|
reflectTypeEntityToDeclaration,
|
|
14
14
|
typeNodeToValueExpr
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QQGJEWBQ.js";
|
|
16
16
|
import {
|
|
17
17
|
ImportManager,
|
|
18
18
|
translateExpression,
|
|
19
19
|
translateStatement,
|
|
20
20
|
translateType
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WWVESPME.js";
|
|
22
22
|
import {
|
|
23
23
|
ErrorCode,
|
|
24
24
|
FatalDiagnosticError,
|
|
@@ -35,18 +35,18 @@ import {
|
|
|
35
35
|
makeRelatedInformation,
|
|
36
36
|
nodeDebugInfo,
|
|
37
37
|
nodeNameForError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UZSESMCH.js";
|
|
39
39
|
import {
|
|
40
40
|
PerfEvent,
|
|
41
41
|
PerfPhase
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-N6MSUQVH.js";
|
|
43
43
|
import {
|
|
44
44
|
absoluteFrom,
|
|
45
45
|
absoluteFromSourceFile,
|
|
46
46
|
relative
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TBUSSXUA.js";
|
|
48
48
|
|
|
49
|
-
// bazel-out/
|
|
49
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
50
50
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
51
51
|
import ts from "typescript";
|
|
52
52
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -285,7 +285,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
285
285
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
// bazel-out/
|
|
288
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
289
289
|
var DynamicValue = class {
|
|
290
290
|
constructor(node, reason, code) {
|
|
291
291
|
this.node = node;
|
|
@@ -375,10 +375,10 @@ var DynamicValue = class {
|
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
377
|
|
|
378
|
-
// bazel-out/
|
|
378
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
379
379
|
import ts2 from "typescript";
|
|
380
380
|
|
|
381
|
-
// bazel-out/
|
|
381
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
382
382
|
var ResolvedModule = class {
|
|
383
383
|
constructor(exports, evaluate) {
|
|
384
384
|
this.exports = exports;
|
|
@@ -408,7 +408,7 @@ var EnumValue = class {
|
|
|
408
408
|
var KnownFn = class {
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
-
// bazel-out/
|
|
411
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
412
412
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
413
413
|
constructor(lhs) {
|
|
414
414
|
super();
|
|
@@ -479,7 +479,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
|
|
482
|
-
// bazel-out/
|
|
482
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
483
483
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
484
484
|
};
|
|
485
485
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -532,7 +532,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
534
|
|
|
535
|
-
// bazel-out/
|
|
535
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
536
536
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
537
537
|
var assignTsHelperFn = new AssignHelperFn();
|
|
538
538
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -556,14 +556,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
// bazel-out/
|
|
559
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
560
560
|
var SyntheticValue = class {
|
|
561
561
|
constructor(value) {
|
|
562
562
|
this.value = value;
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
565
|
|
|
566
|
-
// bazel-out/
|
|
566
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
567
567
|
function literalBinaryOp(op) {
|
|
568
568
|
return { op, literal: true };
|
|
569
569
|
}
|
|
@@ -1164,7 +1164,7 @@ function owningModule(context, override = null) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
|
-
// bazel-out/
|
|
1167
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1168
1168
|
var PartialEvaluator = class {
|
|
1169
1169
|
constructor(host, checker, dependencyTracker) {
|
|
1170
1170
|
this.host = host;
|
|
@@ -1184,7 +1184,7 @@ var PartialEvaluator = class {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
};
|
|
1186
1186
|
|
|
1187
|
-
// bazel-out/
|
|
1187
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1188
1188
|
import ts3 from "typescript";
|
|
1189
1189
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1190
1190
|
var _a, _b;
|
|
@@ -1314,7 +1314,7 @@ function getContainerNode(node) {
|
|
|
1314
1314
|
return node.getSourceFile();
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
|
-
// bazel-out/
|
|
1317
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1318
1318
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1319
1319
|
import ts4 from "typescript";
|
|
1320
1320
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1458,10 +1458,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1458
1458
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
|
-
// bazel-out/
|
|
1461
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1462
1462
|
import ts7 from "typescript";
|
|
1463
1463
|
|
|
1464
|
-
// bazel-out/
|
|
1464
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1465
1465
|
var MetaKind;
|
|
1466
1466
|
(function(MetaKind2) {
|
|
1467
1467
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1474,10 +1474,10 @@ var MatchSource;
|
|
|
1474
1474
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1475
1475
|
})(MatchSource || (MatchSource = {}));
|
|
1476
1476
|
|
|
1477
|
-
// bazel-out/
|
|
1477
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1478
1478
|
import ts6 from "typescript";
|
|
1479
1479
|
|
|
1480
|
-
// bazel-out/
|
|
1480
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1481
1481
|
var ClassPropertyMapping = class {
|
|
1482
1482
|
constructor(forwardMap) {
|
|
1483
1483
|
this.forwardMap = forwardMap;
|
|
@@ -1490,8 +1490,14 @@ var ClassPropertyMapping = class {
|
|
|
1490
1490
|
const forwardMap = /* @__PURE__ */ new Map();
|
|
1491
1491
|
for (const classPropertyName of Object.keys(obj)) {
|
|
1492
1492
|
const value = obj[classPropertyName];
|
|
1493
|
-
|
|
1494
|
-
|
|
1493
|
+
let inputOrOutput;
|
|
1494
|
+
if (typeof value === "string") {
|
|
1495
|
+
inputOrOutput = { classPropertyName, bindingPropertyName: value };
|
|
1496
|
+
} else if (Array.isArray(value)) {
|
|
1497
|
+
inputOrOutput = { classPropertyName, bindingPropertyName: value[0] };
|
|
1498
|
+
} else {
|
|
1499
|
+
inputOrOutput = value;
|
|
1500
|
+
}
|
|
1495
1501
|
forwardMap.set(classPropertyName, inputOrOutput);
|
|
1496
1502
|
}
|
|
1497
1503
|
return new ClassPropertyMapping(forwardMap);
|
|
@@ -1528,17 +1534,13 @@ var ClassPropertyMapping = class {
|
|
|
1528
1534
|
toJointMappedObject() {
|
|
1529
1535
|
const obj = {};
|
|
1530
1536
|
for (const [classPropertyName, inputOrOutput] of this.forwardMap) {
|
|
1531
|
-
|
|
1532
|
-
obj[classPropertyName] = inputOrOutput.bindingPropertyName;
|
|
1533
|
-
} else {
|
|
1534
|
-
obj[classPropertyName] = [inputOrOutput.bindingPropertyName, classPropertyName];
|
|
1535
|
-
}
|
|
1537
|
+
obj[classPropertyName] = inputOrOutput;
|
|
1536
1538
|
}
|
|
1537
1539
|
return obj;
|
|
1538
1540
|
}
|
|
1539
1541
|
*[Symbol.iterator]() {
|
|
1540
|
-
for (const
|
|
1541
|
-
yield
|
|
1542
|
+
for (const inputOrOutput of this.forwardMap.values()) {
|
|
1543
|
+
yield inputOrOutput;
|
|
1542
1544
|
}
|
|
1543
1545
|
}
|
|
1544
1546
|
};
|
|
@@ -1553,7 +1555,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1553
1555
|
return reverseMap;
|
|
1554
1556
|
}
|
|
1555
1557
|
|
|
1556
|
-
// bazel-out/
|
|
1558
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1557
1559
|
import ts5 from "typescript";
|
|
1558
1560
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1559
1561
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1735,7 +1737,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
1735
1737
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
1736
1738
|
}
|
|
1737
1739
|
|
|
1738
|
-
// bazel-out/
|
|
1740
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1739
1741
|
var DtsMetadataReader = class {
|
|
1740
1742
|
constructor(checker, reflector) {
|
|
1741
1743
|
this.checker = checker;
|
|
@@ -1778,7 +1780,7 @@ var DtsMetadataReader = class {
|
|
|
1778
1780
|
return param.typeValueReference.kind === 1 && param.typeValueReference.moduleName === "@angular/core" && param.typeValueReference.importedName === "TemplateRef";
|
|
1779
1781
|
});
|
|
1780
1782
|
const isStandalone = def.type.typeArguments.length > 7 && ((_a = readBooleanType(def.type.typeArguments[7])) != null ? _a : false);
|
|
1781
|
-
const inputs = ClassPropertyMapping.fromMappedObject(
|
|
1783
|
+
const inputs = ClassPropertyMapping.fromMappedObject(readInputsType(def.type.typeArguments[3]));
|
|
1782
1784
|
const outputs = ClassPropertyMapping.fromMappedObject(readMapType(def.type.typeArguments[4], readStringType));
|
|
1783
1785
|
const hostDirectives = def.type.typeArguments.length > 8 ? readHostDirectivesType(this.checker, def.type.typeArguments[8], ref.bestGuessOwningModule) : null;
|
|
1784
1786
|
return {
|
|
@@ -1828,6 +1830,35 @@ var DtsMetadataReader = class {
|
|
|
1828
1830
|
};
|
|
1829
1831
|
}
|
|
1830
1832
|
};
|
|
1833
|
+
function readInputsType(type) {
|
|
1834
|
+
const inputsMap = {};
|
|
1835
|
+
if (ts6.isTypeLiteralNode(type)) {
|
|
1836
|
+
for (const member of type.members) {
|
|
1837
|
+
if (!ts6.isPropertySignature(member) || member.type === void 0 || member.name === void 0 || !ts6.isStringLiteral(member.name) && !ts6.isIdentifier(member.name)) {
|
|
1838
|
+
continue;
|
|
1839
|
+
}
|
|
1840
|
+
const stringValue = readStringType(member.type);
|
|
1841
|
+
if (stringValue != null) {
|
|
1842
|
+
inputsMap[member.name.text] = {
|
|
1843
|
+
bindingPropertyName: stringValue,
|
|
1844
|
+
classPropertyName: member.name.text,
|
|
1845
|
+
required: false
|
|
1846
|
+
};
|
|
1847
|
+
} else {
|
|
1848
|
+
const config = readMapType(member.type, (innerValue) => {
|
|
1849
|
+
var _a;
|
|
1850
|
+
return (_a = readStringType(innerValue)) != null ? _a : readBooleanType(innerValue);
|
|
1851
|
+
});
|
|
1852
|
+
inputsMap[member.name.text] = {
|
|
1853
|
+
classPropertyName: member.name.text,
|
|
1854
|
+
bindingPropertyName: config.alias,
|
|
1855
|
+
required: config.required
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
return inputsMap;
|
|
1861
|
+
}
|
|
1831
1862
|
function readBaseClass2(clazz, checker, reflector) {
|
|
1832
1863
|
if (!isNamedClassDeclaration(clazz)) {
|
|
1833
1864
|
return reflector.hasBaseClass(clazz) ? "dynamic" : null;
|
|
@@ -1874,7 +1905,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1874
1905
|
return result.length > 0 ? result : null;
|
|
1875
1906
|
}
|
|
1876
1907
|
|
|
1877
|
-
// bazel-out/
|
|
1908
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1878
1909
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1879
1910
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1880
1911
|
if (topMeta === null) {
|
|
@@ -1932,7 +1963,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
1932
1963
|
};
|
|
1933
1964
|
}
|
|
1934
1965
|
|
|
1935
|
-
// bazel-out/
|
|
1966
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
1936
1967
|
var LocalMetadataRegistry = class {
|
|
1937
1968
|
constructor() {
|
|
1938
1969
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -1989,7 +2020,7 @@ var CompoundMetadataRegistry = class {
|
|
|
1989
2020
|
}
|
|
1990
2021
|
};
|
|
1991
2022
|
|
|
1992
|
-
// bazel-out/
|
|
2023
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
1993
2024
|
var ResourceRegistry = class {
|
|
1994
2025
|
constructor() {
|
|
1995
2026
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -2054,7 +2085,7 @@ var ResourceRegistry = class {
|
|
|
2054
2085
|
}
|
|
2055
2086
|
};
|
|
2056
2087
|
|
|
2057
|
-
// bazel-out/
|
|
2088
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2058
2089
|
var EMPTY_ARRAY = [];
|
|
2059
2090
|
var HostDirectivesResolver = class {
|
|
2060
2091
|
constructor(metaReader) {
|
|
@@ -2081,13 +2112,13 @@ var HostDirectivesResolver = class {
|
|
|
2081
2112
|
results.push({
|
|
2082
2113
|
...hostMeta,
|
|
2083
2114
|
matchSource: MatchSource.HostDirective,
|
|
2084
|
-
inputs: this.filterMappings(hostMeta.inputs, current.inputs),
|
|
2085
|
-
outputs: this.filterMappings(hostMeta.outputs, current.outputs)
|
|
2115
|
+
inputs: ClassPropertyMapping.fromMappedObject(this.filterMappings(hostMeta.inputs, current.inputs, resolveInput)),
|
|
2116
|
+
outputs: ClassPropertyMapping.fromMappedObject(this.filterMappings(hostMeta.outputs, current.outputs, resolveOutput))
|
|
2086
2117
|
});
|
|
2087
2118
|
}
|
|
2088
2119
|
return results;
|
|
2089
2120
|
}
|
|
2090
|
-
filterMappings(source, allowedProperties) {
|
|
2121
|
+
filterMappings(source, allowedProperties, valueResolver) {
|
|
2091
2122
|
const result = {};
|
|
2092
2123
|
if (allowedProperties !== null) {
|
|
2093
2124
|
for (const publicName in allowedProperties) {
|
|
@@ -2095,17 +2126,27 @@ var HostDirectivesResolver = class {
|
|
|
2095
2126
|
const bindings = source.getByBindingPropertyName(publicName);
|
|
2096
2127
|
if (bindings !== null) {
|
|
2097
2128
|
for (const binding of bindings) {
|
|
2098
|
-
result[binding.classPropertyName] = allowedProperties[publicName];
|
|
2129
|
+
result[binding.classPropertyName] = valueResolver(allowedProperties[publicName], binding);
|
|
2099
2130
|
}
|
|
2100
2131
|
}
|
|
2101
2132
|
}
|
|
2102
2133
|
}
|
|
2103
2134
|
}
|
|
2104
|
-
return
|
|
2135
|
+
return result;
|
|
2105
2136
|
}
|
|
2106
2137
|
};
|
|
2138
|
+
function resolveInput(bindingName, binding) {
|
|
2139
|
+
return {
|
|
2140
|
+
bindingPropertyName: bindingName,
|
|
2141
|
+
classPropertyName: binding.classPropertyName,
|
|
2142
|
+
required: binding.required
|
|
2143
|
+
};
|
|
2144
|
+
}
|
|
2145
|
+
function resolveOutput(bindingName) {
|
|
2146
|
+
return bindingName;
|
|
2147
|
+
}
|
|
2107
2148
|
|
|
2108
|
-
// bazel-out/
|
|
2149
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
2109
2150
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
2110
2151
|
const context = [];
|
|
2111
2152
|
for (const decl of data) {
|
|
@@ -2193,19 +2234,28 @@ function validateHostDirectives(origin, hostDirectives, metaReader) {
|
|
|
2193
2234
|
if (hostMeta.isComponent) {
|
|
2194
2235
|
diagnostics.push(makeDiagnostic(ErrorCode.HOST_DIRECTIVE_COMPONENT, current.directive.getOriginForDiagnostics(origin), `Host directive ${hostMeta.name} cannot be a component`));
|
|
2195
2236
|
}
|
|
2196
|
-
|
|
2197
|
-
validateHostDirectiveMappings("
|
|
2237
|
+
const requiredInputNames = Array.from(hostMeta.inputs).filter((input) => input.required).map((input) => input.classPropertyName);
|
|
2238
|
+
validateHostDirectiveMappings("input", current, hostMeta, origin, diagnostics, requiredInputNames.length > 0 ? new Set(requiredInputNames) : null);
|
|
2239
|
+
validateHostDirectiveMappings("output", current, hostMeta, origin, diagnostics, null);
|
|
2198
2240
|
}
|
|
2199
2241
|
return diagnostics;
|
|
2200
2242
|
}
|
|
2201
|
-
function validateHostDirectiveMappings(bindingType, hostDirectiveMeta, meta, origin, diagnostics) {
|
|
2243
|
+
function validateHostDirectiveMappings(bindingType, hostDirectiveMeta, meta, origin, diagnostics, requiredBindings) {
|
|
2202
2244
|
const className = meta.name;
|
|
2203
2245
|
const hostDirectiveMappings = bindingType === "input" ? hostDirectiveMeta.inputs : hostDirectiveMeta.outputs;
|
|
2204
2246
|
const existingBindings = bindingType === "input" ? meta.inputs : meta.outputs;
|
|
2247
|
+
const exposedRequiredBindings = /* @__PURE__ */ new Set();
|
|
2205
2248
|
for (const publicName in hostDirectiveMappings) {
|
|
2206
2249
|
if (hostDirectiveMappings.hasOwnProperty(publicName)) {
|
|
2207
|
-
|
|
2250
|
+
const bindings = existingBindings.getByBindingPropertyName(publicName);
|
|
2251
|
+
if (bindings === null) {
|
|
2208
2252
|
diagnostics.push(makeDiagnostic(ErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING, hostDirectiveMeta.directive.getOriginForDiagnostics(origin), `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`));
|
|
2253
|
+
} else if (requiredBindings !== null) {
|
|
2254
|
+
for (const field of bindings) {
|
|
2255
|
+
if (requiredBindings.has(field.classPropertyName)) {
|
|
2256
|
+
exposedRequiredBindings.add(field.classPropertyName);
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2209
2259
|
}
|
|
2210
2260
|
const remappedPublicName = hostDirectiveMappings[publicName];
|
|
2211
2261
|
const bindingsForPublicName = existingBindings.getByBindingPropertyName(remappedPublicName);
|
|
@@ -2218,6 +2268,18 @@ function validateHostDirectiveMappings(bindingType, hostDirectiveMeta, meta, ori
|
|
|
2218
2268
|
}
|
|
2219
2269
|
}
|
|
2220
2270
|
}
|
|
2271
|
+
if (requiredBindings !== null && requiredBindings.size !== exposedRequiredBindings.size) {
|
|
2272
|
+
const missingBindings = [];
|
|
2273
|
+
for (const publicName of requiredBindings) {
|
|
2274
|
+
if (!exposedRequiredBindings.has(publicName)) {
|
|
2275
|
+
const name = existingBindings.getByClassPropertyName(publicName);
|
|
2276
|
+
if (name) {
|
|
2277
|
+
missingBindings.push(`'${name.bindingPropertyName}'`);
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
diagnostics.push(makeDiagnostic(ErrorCode.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING, hostDirectiveMeta.directive.getOriginForDiagnostics(origin), `Required ${bindingType}${missingBindings.length === 1 ? "" : "s"} ${missingBindings.join(", ")} from host directive ${className} must be exposed.`));
|
|
2282
|
+
}
|
|
2221
2283
|
}
|
|
2222
2284
|
function getUndecoratedClassWithAngularFeaturesDiagnostic(node) {
|
|
2223
2285
|
return makeDiagnostic(ErrorCode.UNDECORATED_CLASS_USING_ANGULAR_FEATURES, node.name, `Class is using Angular features but is not decorated. Please add an explicit Angular decorator.`);
|
|
@@ -2280,7 +2342,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
2280
2342
|
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}.`);
|
|
2281
2343
|
}
|
|
2282
2344
|
|
|
2283
|
-
// bazel-out/
|
|
2345
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
2284
2346
|
import ts8 from "typescript";
|
|
2285
2347
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
2286
2348
|
let resolved = null;
|
|
@@ -2313,7 +2375,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
2313
2375
|
return meta;
|
|
2314
2376
|
}
|
|
2315
2377
|
|
|
2316
|
-
// bazel-out/
|
|
2378
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
2317
2379
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
2318
2380
|
function compileNgFactoryDefField(metadata) {
|
|
2319
2381
|
const res = compileFactoryFunction(metadata);
|
|
@@ -2324,7 +2386,7 @@ function compileDeclareFactory(metadata) {
|
|
|
2324
2386
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
2325
2387
|
}
|
|
2326
2388
|
|
|
2327
|
-
// bazel-out/
|
|
2389
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
2328
2390
|
var InjectableClassRegistry = class {
|
|
2329
2391
|
constructor(host, isCore) {
|
|
2330
2392
|
this.host = host;
|
|
@@ -2350,7 +2412,7 @@ var InjectableClassRegistry = class {
|
|
|
2350
2412
|
}
|
|
2351
2413
|
};
|
|
2352
2414
|
|
|
2353
|
-
// bazel-out/
|
|
2415
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
2354
2416
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
2355
2417
|
import ts9 from "typescript";
|
|
2356
2418
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -2437,13 +2499,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
2437
2499
|
return result.transformed[0];
|
|
2438
2500
|
}
|
|
2439
2501
|
|
|
2440
|
-
// bazel-out/
|
|
2502
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
2441
2503
|
var NoopReferencesRegistry = class {
|
|
2442
2504
|
add(source, ...references) {
|
|
2443
2505
|
}
|
|
2444
2506
|
};
|
|
2445
2507
|
|
|
2446
|
-
// bazel-out/
|
|
2508
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
2447
2509
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
2448
2510
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
2449
2511
|
const schemas = [];
|
|
@@ -2473,11 +2535,11 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
2473
2535
|
return schemas;
|
|
2474
2536
|
}
|
|
2475
2537
|
|
|
2476
|
-
// bazel-out/
|
|
2538
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
2477
2539
|
import { compileClassMetadata as compileClassMetadata3, 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";
|
|
2478
2540
|
import ts24 from "typescript";
|
|
2479
2541
|
|
|
2480
|
-
// bazel-out/
|
|
2542
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
2481
2543
|
import ts10 from "typescript";
|
|
2482
2544
|
var SemanticSymbol = class {
|
|
2483
2545
|
constructor(decl) {
|
|
@@ -2493,7 +2555,7 @@ function getSymbolIdentifier(decl) {
|
|
|
2493
2555
|
return decl.name.text;
|
|
2494
2556
|
}
|
|
2495
2557
|
|
|
2496
|
-
// bazel-out/
|
|
2558
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
2497
2559
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
2498
2560
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
2499
2561
|
isPublicApiAffected() {
|
|
@@ -2636,10 +2698,10 @@ function getImportPath(expr) {
|
|
|
2636
2698
|
}
|
|
2637
2699
|
}
|
|
2638
2700
|
|
|
2639
|
-
// bazel-out/
|
|
2701
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2640
2702
|
import ts11 from "typescript";
|
|
2641
2703
|
|
|
2642
|
-
// bazel-out/
|
|
2704
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
2643
2705
|
function isSymbolEqual(a, b) {
|
|
2644
2706
|
if (a.decl === b.decl) {
|
|
2645
2707
|
return true;
|
|
@@ -2689,7 +2751,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
2689
2751
|
return true;
|
|
2690
2752
|
}
|
|
2691
2753
|
|
|
2692
|
-
// bazel-out/
|
|
2754
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2693
2755
|
function extractSemanticTypeParameters(node) {
|
|
2694
2756
|
if (!ts11.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
2695
2757
|
return null;
|
|
@@ -2709,14 +2771,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
2709
2771
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
2710
2772
|
}
|
|
2711
2773
|
|
|
2712
|
-
// bazel-out/
|
|
2774
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2713
2775
|
var ComponentScopeKind;
|
|
2714
2776
|
(function(ComponentScopeKind2) {
|
|
2715
2777
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2716
2778
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2717
2779
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2718
2780
|
|
|
2719
|
-
// bazel-out/
|
|
2781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2720
2782
|
var CompoundComponentScopeReader = class {
|
|
2721
2783
|
constructor(readers) {
|
|
2722
2784
|
this.readers = readers;
|
|
@@ -2741,7 +2803,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2741
2803
|
}
|
|
2742
2804
|
};
|
|
2743
2805
|
|
|
2744
|
-
// bazel-out/
|
|
2806
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2745
2807
|
var MetadataDtsModuleScopeResolver = class {
|
|
2746
2808
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2747
2809
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2817,11 +2879,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2817
2879
|
}
|
|
2818
2880
|
};
|
|
2819
2881
|
|
|
2820
|
-
// bazel-out/
|
|
2882
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2821
2883
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2822
2884
|
import ts12 from "typescript";
|
|
2823
2885
|
|
|
2824
|
-
// bazel-out/
|
|
2886
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2825
2887
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2826
2888
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2827
2889
|
}
|
|
@@ -2844,7 +2906,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2844
2906
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2845
2907
|
}
|
|
2846
2908
|
|
|
2847
|
-
// bazel-out/
|
|
2909
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2848
2910
|
var LocalModuleScopeRegistry = class {
|
|
2849
2911
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2850
2912
|
this.localReader = localReader;
|
|
@@ -3183,7 +3245,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
3183
3245
|
]);
|
|
3184
3246
|
}
|
|
3185
3247
|
|
|
3186
|
-
// bazel-out/
|
|
3248
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
3187
3249
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
3188
3250
|
import ts13 from "typescript";
|
|
3189
3251
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3252,7 +3314,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3252
3314
|
}
|
|
3253
3315
|
};
|
|
3254
3316
|
|
|
3255
|
-
// bazel-out/
|
|
3317
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3256
3318
|
var CompilationMode;
|
|
3257
3319
|
(function(CompilationMode2) {
|
|
3258
3320
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3270,7 +3332,7 @@ var HandlerFlags;
|
|
|
3270
3332
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
3271
3333
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
3272
3334
|
|
|
3273
|
-
// bazel-out/
|
|
3335
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3274
3336
|
import ts14 from "typescript";
|
|
3275
3337
|
function aliasTransformFactory(exportStatements) {
|
|
3276
3338
|
return () => {
|
|
@@ -3293,10 +3355,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3293
3355
|
};
|
|
3294
3356
|
}
|
|
3295
3357
|
|
|
3296
|
-
// bazel-out/
|
|
3358
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3297
3359
|
import ts15 from "typescript";
|
|
3298
3360
|
|
|
3299
|
-
// bazel-out/
|
|
3361
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3300
3362
|
var TraitState;
|
|
3301
3363
|
(function(TraitState2) {
|
|
3302
3364
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3351,7 +3413,7 @@ var TraitImpl = class {
|
|
|
3351
3413
|
}
|
|
3352
3414
|
};
|
|
3353
3415
|
|
|
3354
|
-
// bazel-out/
|
|
3416
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3355
3417
|
var TraitCompiler = class {
|
|
3356
3418
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3357
3419
|
this.handlers = handlers;
|
|
@@ -3795,10 +3857,10 @@ function containsErrors(diagnostics) {
|
|
|
3795
3857
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3796
3858
|
}
|
|
3797
3859
|
|
|
3798
|
-
// bazel-out/
|
|
3860
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3799
3861
|
import ts17 from "typescript";
|
|
3800
3862
|
|
|
3801
|
-
// bazel-out/
|
|
3863
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3802
3864
|
import ts16 from "typescript";
|
|
3803
3865
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3804
3866
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3834,7 +3896,7 @@ function isImportStatement(stmt) {
|
|
|
3834
3896
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3835
3897
|
}
|
|
3836
3898
|
|
|
3837
|
-
// bazel-out/
|
|
3899
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3838
3900
|
var DtsTransformRegistry = class {
|
|
3839
3901
|
constructor() {
|
|
3840
3902
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3979,11 +4041,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3979
4041
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3980
4042
|
}
|
|
3981
4043
|
|
|
3982
|
-
// bazel-out/
|
|
4044
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3983
4045
|
import { ConstantPool } from "@angular/compiler";
|
|
3984
4046
|
import ts19 from "typescript";
|
|
3985
4047
|
|
|
3986
|
-
// bazel-out/
|
|
4048
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3987
4049
|
import ts18 from "typescript";
|
|
3988
4050
|
function visit(node, visitor, context) {
|
|
3989
4051
|
return visitor._visit(node, context);
|
|
@@ -4044,7 +4106,7 @@ var Visitor = class {
|
|
|
4044
4106
|
}
|
|
4045
4107
|
};
|
|
4046
4108
|
|
|
4047
|
-
// bazel-out/
|
|
4109
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
4048
4110
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
4049
4111
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
4050
4112
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -4252,10 +4314,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
4252
4314
|
return array;
|
|
4253
4315
|
}
|
|
4254
4316
|
|
|
4255
|
-
// bazel-out/
|
|
4317
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4256
4318
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4257
4319
|
|
|
4258
|
-
// bazel-out/
|
|
4320
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4259
4321
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
4260
4322
|
import ts20 from "typescript";
|
|
4261
4323
|
var EMPTY_OBJECT = {};
|
|
@@ -4284,10 +4346,12 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
4284
4346
|
const members = reflector.getMembersOfClass(clazz);
|
|
4285
4347
|
const decoratedElements = members.filter((member) => !member.isStatic && member.decorators !== null);
|
|
4286
4348
|
const coreModule = isCore ? void 0 : "@angular/core";
|
|
4287
|
-
const inputsFromMeta =
|
|
4288
|
-
const inputsFromFields =
|
|
4289
|
-
const
|
|
4290
|
-
const
|
|
4349
|
+
const inputsFromMeta = parseInputsArray(directive, evaluator);
|
|
4350
|
+
const inputsFromFields = parseInputFields(filterToMembersWithDecorator(decoratedElements, "Input", coreModule), evaluator);
|
|
4351
|
+
const inputs = ClassPropertyMapping.fromMappedObject({ ...inputsFromMeta, ...inputsFromFields });
|
|
4352
|
+
const outputsFromMeta = parseOutputsArray(directive, evaluator);
|
|
4353
|
+
const outputsFromFields = parseOutputFields(filterToMembersWithDecorator(decoratedElements, "Output", coreModule), evaluator);
|
|
4354
|
+
const outputs = ClassPropertyMapping.fromMappedObject({ ...outputsFromMeta, ...outputsFromFields });
|
|
4291
4355
|
const contentChildFromFields = queriesFromFields(filterToMembersWithDecorator(decoratedElements, "ContentChild", coreModule), reflector, evaluator);
|
|
4292
4356
|
const contentChildrenFromFields = queriesFromFields(filterToMembersWithDecorator(decoratedElements, "ContentChildren", coreModule), reflector, evaluator);
|
|
4293
4357
|
const queries = [...contentChildFromFields, ...contentChildrenFromFields];
|
|
@@ -4339,8 +4403,6 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
4339
4403
|
const sourceFile = clazz.getSourceFile();
|
|
4340
4404
|
const type = wrapTypeReference(reflector, clazz);
|
|
4341
4405
|
const internalType = new WrappedNodeExpr4(reflector.getInternalNameOfClass(clazz));
|
|
4342
|
-
const inputs = ClassPropertyMapping.fromMappedObject({ ...inputsFromMeta, ...inputsFromFields });
|
|
4343
|
-
const outputs = ClassPropertyMapping.fromMappedObject({ ...outputsFromMeta, ...outputsFromFields });
|
|
4344
4406
|
const rawHostDirectives = directive.get("hostDirectives") || null;
|
|
4345
4407
|
const hostDirectives = rawHostDirectives === null ? null : extractHostDirectives(rawHostDirectives, evaluator);
|
|
4346
4408
|
const metadata = {
|
|
@@ -4520,7 +4582,7 @@ function extractQueriesFromDecorator(queryData, reflector, evaluator, isCore) {
|
|
|
4520
4582
|
});
|
|
4521
4583
|
return { content, view };
|
|
4522
4584
|
}
|
|
4523
|
-
function
|
|
4585
|
+
function parseFieldStringArrayValue(directive, field, evaluator) {
|
|
4524
4586
|
if (!directive.has(field)) {
|
|
4525
4587
|
return null;
|
|
4526
4588
|
}
|
|
@@ -4560,44 +4622,98 @@ function queriesFromFields(fields, reflector, evaluator) {
|
|
|
4560
4622
|
function isPropertyTypeMember(member) {
|
|
4561
4623
|
return member.kind === ClassMemberKind.Getter || member.kind === ClassMemberKind.Setter || member.kind === ClassMemberKind.Property;
|
|
4562
4624
|
}
|
|
4563
|
-
function
|
|
4564
|
-
const metaValues = parseFieldArrayValue(directive, field, evaluator);
|
|
4565
|
-
return metaValues ? parseInputOutputMappingArray(metaValues) : EMPTY_OBJECT;
|
|
4566
|
-
}
|
|
4567
|
-
function parseInputOutputMappingArray(values) {
|
|
4625
|
+
function parseMappingStringArray(values) {
|
|
4568
4626
|
return values.reduce((results, value) => {
|
|
4569
4627
|
if (typeof value !== "string") {
|
|
4570
4628
|
throw new Error("Mapping value must be a string");
|
|
4571
4629
|
}
|
|
4572
|
-
const [
|
|
4573
|
-
results[
|
|
4630
|
+
const [bindingPropertyName, fieldName] = parseMappingString(value);
|
|
4631
|
+
results[fieldName] = bindingPropertyName;
|
|
4574
4632
|
return results;
|
|
4575
4633
|
}, {});
|
|
4576
4634
|
}
|
|
4577
|
-
function
|
|
4578
|
-
|
|
4635
|
+
function parseMappingString(value) {
|
|
4636
|
+
const [fieldName, bindingPropertyName] = value.split(":", 2).map((str) => str.trim());
|
|
4637
|
+
return [bindingPropertyName != null ? bindingPropertyName : fieldName, fieldName];
|
|
4638
|
+
}
|
|
4639
|
+
function parseDecoratedFields(fields, evaluator, callback) {
|
|
4640
|
+
for (const field of fields) {
|
|
4579
4641
|
const fieldName = field.member.name;
|
|
4580
|
-
field.decorators
|
|
4581
|
-
if (decorator.args
|
|
4582
|
-
results[fieldName] = fieldName;
|
|
4583
|
-
} else if (decorator.args.length === 1) {
|
|
4584
|
-
const property = evaluator.evaluate(decorator.args[0]);
|
|
4585
|
-
if (typeof property !== "string") {
|
|
4586
|
-
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), property, `@${decorator.name} decorator argument must resolve to a string`);
|
|
4587
|
-
}
|
|
4588
|
-
results[fieldName] = mapValueResolver(property, fieldName);
|
|
4589
|
-
} else {
|
|
4642
|
+
for (const decorator of field.decorators) {
|
|
4643
|
+
if (decorator.args != null && decorator.args.length > 1) {
|
|
4590
4644
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `@${decorator.name} can have at most one argument, got ${decorator.args.length} argument(s)`);
|
|
4591
4645
|
}
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4646
|
+
const value = decorator.args != null && decorator.args.length > 0 ? evaluator.evaluate(decorator.args[0]) : null;
|
|
4647
|
+
callback(fieldName, value, decorator);
|
|
4648
|
+
}
|
|
4649
|
+
}
|
|
4650
|
+
}
|
|
4651
|
+
function parseInputsArray(decoratorMetadata, evaluator) {
|
|
4652
|
+
const inputsField = decoratorMetadata.get("inputs");
|
|
4653
|
+
if (inputsField === void 0) {
|
|
4654
|
+
return {};
|
|
4655
|
+
}
|
|
4656
|
+
const inputs = {};
|
|
4657
|
+
const inputsArray = evaluator.evaluate(inputsField);
|
|
4658
|
+
if (!Array.isArray(inputsArray)) {
|
|
4659
|
+
throw createValueHasWrongTypeError(inputsField, inputsArray, `Failed to resolve @Directive.inputs to an array`);
|
|
4660
|
+
}
|
|
4661
|
+
for (let i = 0; i < inputsArray.length; i++) {
|
|
4662
|
+
const value = inputsArray[i];
|
|
4663
|
+
if (typeof value === "string") {
|
|
4664
|
+
const [bindingPropertyName, classPropertyName] = parseMappingString(value);
|
|
4665
|
+
inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required: false };
|
|
4666
|
+
} else if (value instanceof Map) {
|
|
4667
|
+
const name = value.get("name");
|
|
4668
|
+
const alias = value.get("alias");
|
|
4669
|
+
const required = value.get("required");
|
|
4670
|
+
if (typeof name !== "string") {
|
|
4671
|
+
throw createValueHasWrongTypeError(inputsField, name, `Value at position ${i} of @Directive.inputs array must have a "name" property`);
|
|
4672
|
+
}
|
|
4673
|
+
inputs[name] = {
|
|
4674
|
+
classPropertyName: name,
|
|
4675
|
+
bindingPropertyName: typeof alias === "string" ? alias : name,
|
|
4676
|
+
required: required === true
|
|
4677
|
+
};
|
|
4678
|
+
} else {
|
|
4679
|
+
throw createValueHasWrongTypeError(inputsField, value, `@Directive.inputs array can only contain strings or object literals`);
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
return inputs;
|
|
4683
|
+
}
|
|
4684
|
+
function parseInputFields(inputMembers, evaluator) {
|
|
4685
|
+
const inputs = {};
|
|
4686
|
+
parseDecoratedFields(inputMembers, evaluator, (classPropertyName, options, decorator) => {
|
|
4687
|
+
let bindingPropertyName;
|
|
4688
|
+
let required = false;
|
|
4689
|
+
if (options === null) {
|
|
4690
|
+
bindingPropertyName = classPropertyName;
|
|
4691
|
+
} else if (typeof options === "string") {
|
|
4692
|
+
bindingPropertyName = options;
|
|
4693
|
+
} else if (options instanceof Map) {
|
|
4694
|
+
const aliasInConfig = options.get("alias");
|
|
4695
|
+
bindingPropertyName = typeof aliasInConfig === "string" ? aliasInConfig : classPropertyName;
|
|
4696
|
+
required = options.get("required") === true;
|
|
4697
|
+
} else {
|
|
4698
|
+
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
|
|
4699
|
+
}
|
|
4700
|
+
inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required };
|
|
4701
|
+
});
|
|
4702
|
+
return inputs;
|
|
4595
4703
|
}
|
|
4596
|
-
function
|
|
4597
|
-
|
|
4704
|
+
function parseOutputsArray(directive, evaluator) {
|
|
4705
|
+
const metaValues = parseFieldStringArrayValue(directive, "outputs", evaluator);
|
|
4706
|
+
return metaValues ? parseMappingStringArray(metaValues) : EMPTY_OBJECT;
|
|
4598
4707
|
}
|
|
4599
|
-
function
|
|
4600
|
-
|
|
4708
|
+
function parseOutputFields(outputMembers, evaluator) {
|
|
4709
|
+
const outputs = {};
|
|
4710
|
+
parseDecoratedFields(outputMembers, evaluator, (fieldName, bindingPropertyName, decorator) => {
|
|
4711
|
+
if (bindingPropertyName != null && typeof bindingPropertyName !== "string") {
|
|
4712
|
+
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), bindingPropertyName, `@${decorator.name} decorator argument must resolve to a string`);
|
|
4713
|
+
}
|
|
4714
|
+
outputs[fieldName] = bindingPropertyName != null ? bindingPropertyName : fieldName;
|
|
4715
|
+
});
|
|
4716
|
+
return outputs;
|
|
4601
4717
|
}
|
|
4602
4718
|
function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
4603
4719
|
const hostMetaMap = evaluator.evaluate(hostExpr);
|
|
@@ -4658,7 +4774,7 @@ function parseHostDirectivesMapping(field, resolvedValue, classReference, source
|
|
|
4658
4774
|
const nameForErrors = `@Directive.hostDirectives.${classReference.name.text}.${field}`;
|
|
4659
4775
|
const rawInputs = resolvedValue.get(field);
|
|
4660
4776
|
if (isStringArrayOrDie(rawInputs, nameForErrors, sourceExpression)) {
|
|
4661
|
-
return
|
|
4777
|
+
return parseMappingStringArray(rawInputs);
|
|
4662
4778
|
}
|
|
4663
4779
|
}
|
|
4664
4780
|
return null;
|
|
@@ -4672,7 +4788,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
4672
4788
|
};
|
|
4673
4789
|
}
|
|
4674
4790
|
|
|
4675
|
-
// bazel-out/
|
|
4791
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4676
4792
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4677
4793
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4678
4794
|
super(decl);
|
|
@@ -4697,7 +4813,7 @@ var DirectiveSymbol = class extends SemanticSymbol {
|
|
|
4697
4813
|
if (!(previousSymbol instanceof DirectiveSymbol)) {
|
|
4698
4814
|
return true;
|
|
4699
4815
|
}
|
|
4700
|
-
if (!isArrayEqual(Array.from(this.inputs), Array.from(previousSymbol.inputs), isInputMappingEqual) || !isArrayEqual(Array.from(this.outputs), Array.from(previousSymbol.outputs),
|
|
4816
|
+
if (!isArrayEqual(Array.from(this.inputs), Array.from(previousSymbol.inputs), isInputMappingEqual) || !isArrayEqual(Array.from(this.outputs), Array.from(previousSymbol.outputs), isInputOrOutputEqual)) {
|
|
4701
4817
|
return true;
|
|
4702
4818
|
}
|
|
4703
4819
|
if (!areTypeParametersEqual(this.typeParameters, previousSymbol.typeParameters)) {
|
|
@@ -4713,7 +4829,10 @@ var DirectiveSymbol = class extends SemanticSymbol {
|
|
|
4713
4829
|
}
|
|
4714
4830
|
};
|
|
4715
4831
|
function isInputMappingEqual(current, previous) {
|
|
4716
|
-
return current
|
|
4832
|
+
return isInputOrOutputEqual(current, previous) && current.required === previous.required;
|
|
4833
|
+
}
|
|
4834
|
+
function isInputOrOutputEqual(current, previous) {
|
|
4835
|
+
return current.classPropertyName === previous.classPropertyName && current.bindingPropertyName === previous.bindingPropertyName;
|
|
4717
4836
|
}
|
|
4718
4837
|
function isTypeCheckMetaEqual(current, previous) {
|
|
4719
4838
|
if (current.hasNgTemplateContextGuard !== previous.hasNgTemplateContextGuard) {
|
|
@@ -4749,7 +4868,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4749
4868
|
return isSymbolEqual(current, previous);
|
|
4750
4869
|
}
|
|
4751
4870
|
|
|
4752
|
-
// bazel-out/
|
|
4871
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4753
4872
|
var FIELD_DECORATORS = [
|
|
4754
4873
|
"Input",
|
|
4755
4874
|
"Output",
|
|
@@ -4908,11 +5027,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
4908
5027
|
}
|
|
4909
5028
|
};
|
|
4910
5029
|
|
|
4911
|
-
// bazel-out/
|
|
5030
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4912
5031
|
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr as FunctionExpr2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3SelectorScopeMode, ReturnStatement as ReturnStatement2, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4913
5032
|
import ts22 from "typescript";
|
|
4914
5033
|
|
|
4915
|
-
// bazel-out/
|
|
5034
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
4916
5035
|
import ts21 from "typescript";
|
|
4917
5036
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
4918
5037
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -4979,7 +5098,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
4979
5098
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
4980
5099
|
}
|
|
4981
5100
|
|
|
4982
|
-
// bazel-out/
|
|
5101
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4983
5102
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
4984
5103
|
constructor() {
|
|
4985
5104
|
super(...arguments);
|
|
@@ -5477,7 +5596,7 @@ function isSyntheticReference(ref) {
|
|
|
5477
5596
|
return ref.synthetic;
|
|
5478
5597
|
}
|
|
5479
5598
|
|
|
5480
|
-
// bazel-out/
|
|
5599
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5481
5600
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5482
5601
|
const name = ref.debugName || "(unknown)";
|
|
5483
5602
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5500,7 +5619,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5500
5619
|
return null;
|
|
5501
5620
|
}
|
|
5502
5621
|
|
|
5503
|
-
// bazel-out/
|
|
5622
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5504
5623
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5505
5624
|
import ts23 from "typescript";
|
|
5506
5625
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -5819,7 +5938,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
5819
5938
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
5820
5939
|
}
|
|
5821
5940
|
|
|
5822
|
-
// bazel-out/
|
|
5941
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
5823
5942
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
5824
5943
|
constructor() {
|
|
5825
5944
|
super(...arguments);
|
|
@@ -5854,7 +5973,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
5854
5973
|
}
|
|
5855
5974
|
};
|
|
5856
5975
|
|
|
5857
|
-
// bazel-out/
|
|
5976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
5858
5977
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
5859
5978
|
if (value instanceof Map) {
|
|
5860
5979
|
const name = value.get("name");
|
|
@@ -5930,7 +6049,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
5930
6049
|
return false;
|
|
5931
6050
|
}
|
|
5932
6051
|
|
|
5933
|
-
// bazel-out/
|
|
6052
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
5934
6053
|
var EMPTY_ARRAY2 = [];
|
|
5935
6054
|
var ComponentDecoratorHandler = class {
|
|
5936
6055
|
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver) {
|
|
@@ -6013,7 +6132,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6013
6132
|
const componentStyleUrls = extractComponentStyleUrls(this.evaluator, component);
|
|
6014
6133
|
let inlineStyles;
|
|
6015
6134
|
if (component.has("styles")) {
|
|
6016
|
-
const litStyles =
|
|
6135
|
+
const litStyles = parseFieldStringArrayValue(component, "styles", this.evaluator);
|
|
6017
6136
|
if (litStyles === null) {
|
|
6018
6137
|
this.preanalyzeStylesCache.set(node, null);
|
|
6019
6138
|
} else {
|
|
@@ -6172,7 +6291,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6172
6291
|
throw new Error("Inline resource processing requires asynchronous preanalyze.");
|
|
6173
6292
|
}
|
|
6174
6293
|
if (component.has("styles")) {
|
|
6175
|
-
const litStyles =
|
|
6294
|
+
const litStyles = parseFieldStringArrayValue(component, "styles", this.evaluator);
|
|
6176
6295
|
if (litStyles !== null) {
|
|
6177
6296
|
inlineStyles = [...litStyles];
|
|
6178
6297
|
styles.push(...litStyles);
|
|
@@ -6577,7 +6696,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6577
6696
|
return diagnostics;
|
|
6578
6697
|
}
|
|
6579
6698
|
|
|
6580
|
-
// bazel-out/
|
|
6699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6581
6700
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
6582
6701
|
import ts25 from "typescript";
|
|
6583
6702
|
var InjectableDecoratorHandler = class {
|
|
@@ -6794,7 +6913,7 @@ function getDep(dep, reflector) {
|
|
|
6794
6913
|
return meta;
|
|
6795
6914
|
}
|
|
6796
6915
|
|
|
6797
|
-
// bazel-out/
|
|
6916
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6798
6917
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
6799
6918
|
import ts26 from "typescript";
|
|
6800
6919
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -6940,14 +7059,14 @@ var PipeDecoratorHandler = class {
|
|
|
6940
7059
|
}
|
|
6941
7060
|
};
|
|
6942
7061
|
|
|
6943
|
-
// bazel-out/
|
|
7062
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
6944
7063
|
var OptimizeFor;
|
|
6945
7064
|
(function(OptimizeFor2) {
|
|
6946
7065
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
6947
7066
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
6948
7067
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
6949
7068
|
|
|
6950
|
-
// bazel-out/
|
|
7069
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
6951
7070
|
var PotentialImportKind;
|
|
6952
7071
|
(function(PotentialImportKind2) {
|
|
6953
7072
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -6959,14 +7078,14 @@ var PotentialImportMode;
|
|
|
6959
7078
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
6960
7079
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
6961
7080
|
|
|
6962
|
-
// bazel-out/
|
|
7081
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
6963
7082
|
var CompletionKind;
|
|
6964
7083
|
(function(CompletionKind2) {
|
|
6965
7084
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
6966
7085
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
6967
7086
|
})(CompletionKind || (CompletionKind = {}));
|
|
6968
7087
|
|
|
6969
|
-
// bazel-out/
|
|
7088
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
6970
7089
|
var SymbolKind;
|
|
6971
7090
|
(function(SymbolKind2) {
|
|
6972
7091
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -7033,4 +7152,4 @@ export {
|
|
|
7033
7152
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7034
7153
|
* found in the LICENSE file at https://angular.io/license
|
|
7035
7154
|
*/
|
|
7036
|
-
//# sourceMappingURL=chunk-
|
|
7155
|
+
//# sourceMappingURL=chunk-4TZUPGBE.js.map
|