@angular/compiler-cli 16.0.0-next.3 → 16.0.0-next.5
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-LJFSK6KK.js → chunk-76ZWV2KR.js} +33 -33
- package/bundles/chunk-76ZWV2KR.js.map +6 -0
- package/bundles/{chunk-54RHUHYB.js → chunk-7PCPPTTO.js} +5 -5
- package/bundles/{chunk-54RHUHYB.js.map → chunk-7PCPPTTO.js.map} +1 -1
- package/bundles/{chunk-K2A5WD7L.js → chunk-B6WD2R2T.js} +25 -21
- package/bundles/chunk-B6WD2R2T.js.map +6 -0
- package/bundles/{chunk-LLHKY5PL.js → chunk-C4B5W2XC.js} +8 -8
- package/bundles/{chunk-GYHDNUIK.js → chunk-EKTJ7622.js} +7 -7
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-BVXD7IJL.js → chunk-MNUHP7AS.js} +5 -5
- package/bundles/{chunk-F6KVOAVN.js → chunk-O6RGCXNH.js} +5 -5
- package/bundles/{chunk-EDWIBG7R.js → chunk-QQGJEWBQ.js} +6 -6
- package/bundles/{chunk-MENJKFAO.js → chunk-SY7FDL66.js} +146 -93
- package/bundles/chunk-SY7FDL66.js.map +6 -0
- package/bundles/{chunk-EC5K6QPP.js → chunk-TBUSSXUA.js} +7 -7
- package/bundles/{chunk-OJ24Q4I3.js → chunk-VFEPUUWJ.js} +140 -121
- package/bundles/chunk-VFEPUUWJ.js.map +6 -0
- 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/package.json +2 -2
- package/src/ngtsc/core/src/host.d.ts +2 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +21 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
- package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +2 -2
- package/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.d.ts +10 -0
- package/src/ngtsc/typecheck/src/oob.d.ts +4 -1
- package/bundles/chunk-K2A5WD7L.js.map +0 -6
- package/bundles/chunk-LJFSK6KK.js.map +0 -6
- package/bundles/chunk-MENJKFAO.js.map +0 -6
- package/bundles/chunk-OJ24Q4I3.js.map +0 -6
- /package/bundles/{chunk-LLHKY5PL.js.map → chunk-C4B5W2XC.js.map} +0 -0
- /package/bundles/{chunk-GYHDNUIK.js.map → chunk-EKTJ7622.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
- /package/bundles/{chunk-BVXD7IJL.js.map → chunk-MNUHP7AS.js.map} +0 -0
- /package/bundles/{chunk-F6KVOAVN.js.map → chunk-O6RGCXNH.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
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
aliasTransformFactory,
|
|
36
36
|
declarationTransformFactory,
|
|
37
37
|
ivyTransformFactory
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SY7FDL66.js";
|
|
39
39
|
import {
|
|
40
40
|
TypeScriptReflectionHost,
|
|
41
41
|
isNamedClassDeclaration
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QQGJEWBQ.js";
|
|
43
43
|
import {
|
|
44
44
|
ImportManager,
|
|
45
45
|
translateExpression,
|
|
46
46
|
translateType
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-C4B5W2XC.js";
|
|
48
48
|
import {
|
|
49
49
|
AbsoluteModuleStrategy,
|
|
50
50
|
AliasStrategy,
|
|
@@ -82,14 +82,14 @@ import {
|
|
|
82
82
|
relativePathBetween,
|
|
83
83
|
replaceTsWithNgInErrors,
|
|
84
84
|
toUnredirectedSourceFile
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-B6WD2R2T.js";
|
|
86
86
|
import {
|
|
87
87
|
ActivePerfRecorder,
|
|
88
88
|
DelegatingPerfRecorder,
|
|
89
89
|
PerfCheckpoint,
|
|
90
90
|
PerfEvent,
|
|
91
91
|
PerfPhase
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-7PCPPTTO.js";
|
|
93
93
|
import {
|
|
94
94
|
LogicalFileSystem,
|
|
95
95
|
absoluteFrom,
|
|
@@ -99,9 +99,9 @@ import {
|
|
|
99
99
|
getSourceFileOrError,
|
|
100
100
|
join,
|
|
101
101
|
resolve
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-TBUSSXUA.js";
|
|
103
103
|
|
|
104
|
-
// bazel-out/
|
|
104
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
105
105
|
var DEFAULT_ERROR_CODE = 100;
|
|
106
106
|
var UNKNOWN_ERROR_CODE = 500;
|
|
107
107
|
var SOURCE = "angular";
|
|
@@ -119,7 +119,7 @@ var EmitFlags;
|
|
|
119
119
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
120
120
|
})(EmitFlags || (EmitFlags = {}));
|
|
121
121
|
|
|
122
|
-
// bazel-out/
|
|
122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
123
123
|
import ts from "typescript";
|
|
124
124
|
var wrapHostForTest = null;
|
|
125
125
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -129,11 +129,11 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
129
129
|
return tsHost;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
// bazel-out/
|
|
132
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
133
133
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
134
134
|
import ts32 from "typescript";
|
|
135
135
|
|
|
136
|
-
// bazel-out/
|
|
136
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
137
137
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
138
138
|
import * as path from "path";
|
|
139
139
|
function i18nGetExtension(formatName) {
|
|
@@ -184,10 +184,10 @@ function getPathNormalizer(basePath) {
|
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
// bazel-out/
|
|
187
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
188
188
|
import ts2 from "typescript";
|
|
189
189
|
|
|
190
|
-
// bazel-out/
|
|
190
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
191
191
|
function toNumbers(value) {
|
|
192
192
|
const suffixIndex = value.lastIndexOf("-");
|
|
193
193
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -222,7 +222,7 @@ function compareVersions(v1, v2) {
|
|
|
222
222
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
// bazel-out/
|
|
225
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
226
226
|
var MIN_TS_VERSION = "4.9.3";
|
|
227
227
|
var MAX_TS_VERSION = "5.1.0";
|
|
228
228
|
var tsVersion = ts2.version;
|
|
@@ -235,10 +235,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
235
235
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
// bazel-out/
|
|
238
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
239
239
|
import ts30 from "typescript";
|
|
240
240
|
|
|
241
|
-
// bazel-out/
|
|
241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
242
242
|
var CycleAnalyzer = class {
|
|
243
243
|
constructor(importGraph) {
|
|
244
244
|
this.importGraph = importGraph;
|
|
@@ -309,7 +309,7 @@ var Cycle = class {
|
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
// bazel-out/
|
|
312
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
313
313
|
import ts3 from "typescript";
|
|
314
314
|
var ImportGraph = class {
|
|
315
315
|
constructor(checker, perf) {
|
|
@@ -401,7 +401,7 @@ var Found = class {
|
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
// bazel-out/
|
|
404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
405
405
|
import ts4 from "typescript";
|
|
406
406
|
var FlatIndexGenerator = class {
|
|
407
407
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -426,7 +426,7 @@ export * from '${relativeEntryPoint}';
|
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
428
|
|
|
429
|
-
// bazel-out/
|
|
429
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
430
430
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
431
431
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
432
432
|
let resolvedEntryPoint = null;
|
|
@@ -442,7 +442,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
442
442
|
return resolvedEntryPoint;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
// bazel-out/
|
|
445
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
446
446
|
import ts5 from "typescript";
|
|
447
447
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
448
448
|
const diagnostics = [];
|
|
@@ -522,7 +522,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
// bazel-out/
|
|
525
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
526
526
|
var ReferenceGraph = class {
|
|
527
527
|
constructor() {
|
|
528
528
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -576,7 +576,7 @@ var ReferenceGraph = class {
|
|
|
576
576
|
}
|
|
577
577
|
};
|
|
578
578
|
|
|
579
|
-
// bazel-out/
|
|
579
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
580
580
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
581
581
|
var UpdateMode;
|
|
582
582
|
(function(UpdateMode2) {
|
|
@@ -584,13 +584,13 @@ var UpdateMode;
|
|
|
584
584
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
585
585
|
})(UpdateMode || (UpdateMode = {}));
|
|
586
586
|
|
|
587
|
-
// bazel-out/
|
|
587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
588
588
|
import ts7 from "typescript";
|
|
589
589
|
|
|
590
|
-
// bazel-out/
|
|
590
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
591
591
|
import ts6 from "typescript";
|
|
592
592
|
|
|
593
|
-
// bazel-out/
|
|
593
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
594
594
|
var NgExtension = Symbol("NgExtension");
|
|
595
595
|
function isExtended(sf) {
|
|
596
596
|
return sf[NgExtension] !== void 0;
|
|
@@ -650,13 +650,13 @@ function retagTsFile(sf) {
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
-
// bazel-out/
|
|
653
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
654
654
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
655
655
|
function makeShimFileName(fileName, suffix) {
|
|
656
656
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
-
// bazel-out/
|
|
659
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
660
660
|
var ShimAdapter = class {
|
|
661
661
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
662
662
|
this.delegate = delegate;
|
|
@@ -751,7 +751,7 @@ var ShimAdapter = class {
|
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
753
|
|
|
754
|
-
// bazel-out/
|
|
754
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
755
755
|
var ShimReferenceTagger = class {
|
|
756
756
|
constructor(shimExtensions) {
|
|
757
757
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -785,7 +785,7 @@ var ShimReferenceTagger = class {
|
|
|
785
785
|
}
|
|
786
786
|
};
|
|
787
787
|
|
|
788
|
-
// bazel-out/
|
|
788
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
789
789
|
var DelegatingCompilerHost = class {
|
|
790
790
|
constructor(delegate) {
|
|
791
791
|
this.delegate = delegate;
|
|
@@ -861,8 +861,8 @@ var TsCreateProgramDriver = class {
|
|
|
861
861
|
this.options = options;
|
|
862
862
|
this.shimExtensionPrefixes = shimExtensionPrefixes;
|
|
863
863
|
this.sfMap = /* @__PURE__ */ new Map();
|
|
864
|
-
this.program = this.originalProgram;
|
|
865
864
|
this.supportsInlineOperations = true;
|
|
865
|
+
this.program = this.originalProgram;
|
|
866
866
|
}
|
|
867
867
|
getProgram() {
|
|
868
868
|
return this.program;
|
|
@@ -898,7 +898,7 @@ var TsCreateProgramDriver = class {
|
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
900
|
|
|
901
|
-
// bazel-out/
|
|
901
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
902
902
|
var FileDependencyGraph = class {
|
|
903
903
|
constructor() {
|
|
904
904
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -965,7 +965,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
965
965
|
return false;
|
|
966
966
|
}
|
|
967
967
|
|
|
968
|
-
// bazel-out/
|
|
968
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
969
969
|
var IncrementalStateKind;
|
|
970
970
|
(function(IncrementalStateKind2) {
|
|
971
971
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -973,7 +973,7 @@ var IncrementalStateKind;
|
|
|
973
973
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
974
974
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
975
975
|
|
|
976
|
-
// bazel-out/
|
|
976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
977
977
|
var PhaseKind;
|
|
978
978
|
(function(PhaseKind2) {
|
|
979
979
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1174,7 +1174,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
|
-
// bazel-out/
|
|
1177
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1178
1178
|
var TrackedIncrementalBuildStrategy = class {
|
|
1179
1179
|
constructor() {
|
|
1180
1180
|
this.state = null;
|
|
@@ -1210,7 +1210,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1210
1210
|
};
|
|
1211
1211
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1212
1212
|
|
|
1213
|
-
// bazel-out/
|
|
1213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1214
1214
|
var IdentifierKind;
|
|
1215
1215
|
(function(IdentifierKind2) {
|
|
1216
1216
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1228,7 +1228,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
};
|
|
1230
1230
|
|
|
1231
|
-
// bazel-out/
|
|
1231
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1232
1232
|
var IndexingContext = class {
|
|
1233
1233
|
constructor() {
|
|
1234
1234
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1238,10 +1238,10 @@ var IndexingContext = class {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
1240
|
|
|
1241
|
-
// bazel-out/
|
|
1241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1242
1242
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1243
1243
|
|
|
1244
|
-
// bazel-out/
|
|
1244
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1245
1245
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1246
1246
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1247
1247
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -1478,7 +1478,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
1478
1478
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
|
-
// bazel-out/
|
|
1481
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1482
1482
|
function generateAnalysis(context) {
|
|
1483
1483
|
const analysis = /* @__PURE__ */ new Map();
|
|
1484
1484
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -1514,7 +1514,7 @@ function generateAnalysis(context) {
|
|
|
1514
1514
|
return analysis;
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
|
-
// bazel-out/
|
|
1517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
1518
1518
|
var NgModuleIndexImpl = class {
|
|
1519
1519
|
constructor(metaReader, localReader) {
|
|
1520
1520
|
this.metaReader = metaReader;
|
|
@@ -1603,7 +1603,7 @@ var NgModuleIndexImpl = class {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
};
|
|
1605
1605
|
|
|
1606
|
-
// bazel-out/
|
|
1606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
1607
1607
|
import ts8 from "typescript";
|
|
1608
1608
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
1609
1609
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -1749,7 +1749,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
|
-
// bazel-out/
|
|
1752
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
1753
1753
|
var StandaloneComponentScopeReader = class {
|
|
1754
1754
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
1755
1755
|
this.metaReader = metaReader;
|
|
@@ -1827,10 +1827,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
1829
|
|
|
1830
|
-
// bazel-out/
|
|
1830
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
1831
1831
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
1832
1832
|
|
|
1833
|
-
// bazel-out/
|
|
1833
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
1834
1834
|
import ts9 from "typescript";
|
|
1835
1835
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
1836
1836
|
var _a;
|
|
@@ -1937,7 +1937,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
1937
1937
|
return ts9.createSourceFile(fileName, template, ts9.ScriptTarget.Latest, false, ts9.ScriptKind.JSX);
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
1940
|
-
// bazel-out/
|
|
1940
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
1941
1941
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
1942
1942
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
1943
1943
|
function getTemplateId(clazz) {
|
|
@@ -1954,11 +1954,11 @@ function allocateTemplateId(sf) {
|
|
|
1954
1954
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
|
-
// bazel-out/
|
|
1957
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
1958
1958
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
1959
1959
|
import ts11 from "typescript";
|
|
1960
1960
|
|
|
1961
|
-
// bazel-out/
|
|
1961
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
1962
1962
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
1963
1963
|
import ts10 from "typescript";
|
|
1964
1964
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2088,7 +2088,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2088
2088
|
}) || false;
|
|
2089
2089
|
}
|
|
2090
2090
|
|
|
2091
|
-
// bazel-out/
|
|
2091
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2092
2092
|
var CompletionEngine = class {
|
|
2093
2093
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2094
2094
|
this.tcb = tcb;
|
|
@@ -2245,10 +2245,10 @@ var CompletionEngine = class {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
};
|
|
2247
2247
|
|
|
2248
|
-
// bazel-out/
|
|
2248
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2249
2249
|
import ts25 from "typescript";
|
|
2250
2250
|
|
|
2251
|
-
// bazel-out/
|
|
2251
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2252
2252
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2253
2253
|
import ts12 from "typescript";
|
|
2254
2254
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2301,11 +2301,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
};
|
|
2303
2303
|
|
|
2304
|
-
// bazel-out/
|
|
2304
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2305
2305
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2306
2306
|
import ts18 from "typescript";
|
|
2307
2307
|
|
|
2308
|
-
// bazel-out/
|
|
2308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2309
2309
|
import ts13 from "typescript";
|
|
2310
2310
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2311
2311
|
ts13.SyntaxKind.ParenthesizedExpression,
|
|
@@ -2379,16 +2379,16 @@ function isAccessExpression(node) {
|
|
|
2379
2379
|
return ts13.isPropertyAccessExpression(node) || ts13.isElementAccessExpression(node);
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
|
-
// bazel-out/
|
|
2382
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2383
2383
|
import ts17 from "typescript";
|
|
2384
2384
|
|
|
2385
|
-
// bazel-out/
|
|
2385
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2386
2386
|
import ts16 from "typescript";
|
|
2387
2387
|
|
|
2388
|
-
// bazel-out/
|
|
2388
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2389
2389
|
import ts15 from "typescript";
|
|
2390
2390
|
|
|
2391
|
-
// bazel-out/
|
|
2391
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2392
2392
|
import ts14 from "typescript";
|
|
2393
2393
|
var INELIGIBLE = {};
|
|
2394
2394
|
function canEmitType(type, canEmit) {
|
|
@@ -2463,7 +2463,7 @@ var TypeEmitter = class {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
};
|
|
2465
2465
|
|
|
2466
|
-
// bazel-out/
|
|
2466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2467
2467
|
var TypeParameterEmitter = class {
|
|
2468
2468
|
constructor(typeParameters, reflector) {
|
|
2469
2469
|
this.typeParameters = typeParameters;
|
|
@@ -2540,7 +2540,7 @@ var TypeParameterEmitter = class {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
2542
|
|
|
2543
|
-
// bazel-out/
|
|
2543
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2544
2544
|
var TcbInliningRequirement;
|
|
2545
2545
|
(function(TcbInliningRequirement2) {
|
|
2546
2546
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -2620,7 +2620,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
2620
2620
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
2621
2621
|
}
|
|
2622
2622
|
|
|
2623
|
-
// bazel-out/
|
|
2623
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2624
2624
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
2625
2625
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
2626
2626
|
const rawType = ts17.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -2732,7 +2732,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
2732
2732
|
});
|
|
2733
2733
|
}
|
|
2734
2734
|
|
|
2735
|
-
// bazel-out/
|
|
2735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2736
2736
|
var Environment = class {
|
|
2737
2737
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
2738
2738
|
this.config = config;
|
|
@@ -2824,7 +2824,7 @@ var Environment = class {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
};
|
|
2826
2826
|
|
|
2827
|
-
// bazel-out/
|
|
2827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
2828
2828
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
2829
2829
|
import ts19 from "typescript";
|
|
2830
2830
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -2948,6 +2948,10 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
|
|
|
2948
2948
|
}
|
|
2949
2949
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, ts19.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
|
|
2950
2950
|
}
|
|
2951
|
+
missingRequiredInputs(templateId, element, directiveName, isComponent, inputAliases) {
|
|
2952
|
+
const message = `Required input${inputAliases.length === 1 ? "" : "s"} ${inputAliases.map((n) => `'${n}'`).join(", ")} from ${isComponent ? "component" : "directive"} ${directiveName} must be specified.`;
|
|
2953
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), element.startSourceSpan, ts19.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REQUIRED_INPUTS), message));
|
|
2954
|
+
}
|
|
2951
2955
|
};
|
|
2952
2956
|
function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
|
|
2953
2957
|
return {
|
|
@@ -2957,7 +2961,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
2957
2961
|
};
|
|
2958
2962
|
}
|
|
2959
2963
|
|
|
2960
|
-
// bazel-out/
|
|
2964
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
2961
2965
|
import ts20 from "typescript";
|
|
2962
2966
|
var TypeCheckShimGenerator = class {
|
|
2963
2967
|
constructor() {
|
|
@@ -2975,11 +2979,11 @@ var TypeCheckShimGenerator = class {
|
|
|
2975
2979
|
}
|
|
2976
2980
|
};
|
|
2977
2981
|
|
|
2978
|
-
// bazel-out/
|
|
2982
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
2979
2983
|
import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstElement as TmplAstElement3, TmplAstIcu, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
|
|
2980
2984
|
import ts23 from "typescript";
|
|
2981
2985
|
|
|
2982
|
-
// bazel-out/
|
|
2986
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
2983
2987
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
2984
2988
|
import ts21 from "typescript";
|
|
2985
2989
|
function wrapForDiagnostics(expr) {
|
|
@@ -3025,7 +3029,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3025
3029
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3026
3030
|
}
|
|
3027
3031
|
|
|
3028
|
-
// bazel-out/
|
|
3032
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3029
3033
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3030
3034
|
import ts22 from "typescript";
|
|
3031
3035
|
var NULL_AS_ANY = ts22.factory.createAsExpression(ts22.factory.createNull(), ts22.factory.createKeywordTypeNode(ts22.SyntaxKind.AnyKeyword));
|
|
@@ -3284,9 +3288,9 @@ var AstTranslator = class {
|
|
|
3284
3288
|
return tsCastToAny(ts22.factory.createCallExpression(ts22.factory.createNonNullExpression(expr), void 0, args));
|
|
3285
3289
|
}
|
|
3286
3290
|
};
|
|
3287
|
-
var
|
|
3291
|
+
var _VeSafeLhsInferenceBugDetector = class {
|
|
3288
3292
|
static veWillInferAnyFor(ast) {
|
|
3289
|
-
const visitor =
|
|
3293
|
+
const visitor = _VeSafeLhsInferenceBugDetector.SINGLETON;
|
|
3290
3294
|
return ast instanceof Call ? ast.visit(visitor) : ast.receiver.visit(visitor);
|
|
3291
3295
|
}
|
|
3292
3296
|
visitUnary(ast) {
|
|
@@ -3353,9 +3357,12 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
3353
3357
|
return false;
|
|
3354
3358
|
}
|
|
3355
3359
|
};
|
|
3356
|
-
VeSafeLhsInferenceBugDetector
|
|
3360
|
+
var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
3361
|
+
(() => {
|
|
3362
|
+
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
3363
|
+
})();
|
|
3357
3364
|
|
|
3358
|
-
// bazel-out/
|
|
3365
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3359
3366
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3360
3367
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3361
3368
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3379,7 +3386,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3379
3386
|
}
|
|
3380
3387
|
};
|
|
3381
3388
|
|
|
3382
|
-
// bazel-out/
|
|
3389
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3383
3390
|
var TcbGenericContextBehavior;
|
|
3384
3391
|
(function(TcbGenericContextBehavior2) {
|
|
3385
3392
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -3683,22 +3690,17 @@ var TcbDirectiveCtorOp = class extends TcbOp {
|
|
|
3683
3690
|
addExpressionIdentifier(id, ExpressionIdentifier.DIRECTIVE);
|
|
3684
3691
|
addParseSpanInfo(id, this.node.startSourceSpan || this.node.sourceSpan);
|
|
3685
3692
|
const genericInputs = /* @__PURE__ */ new Map();
|
|
3686
|
-
const
|
|
3687
|
-
for (const
|
|
3688
|
-
if (!this.tcb.env.config.checkTypeOfAttributes &&
|
|
3693
|
+
const boundAttrs = getBoundAttributes(this.dir, this.node);
|
|
3694
|
+
for (const attr of boundAttrs) {
|
|
3695
|
+
if (!this.tcb.env.config.checkTypeOfAttributes && attr.attribute instanceof TmplAstTextAttribute2) {
|
|
3689
3696
|
continue;
|
|
3690
3697
|
}
|
|
3691
|
-
for (const fieldName of
|
|
3698
|
+
for (const { fieldName } of attr.inputs) {
|
|
3692
3699
|
if (genericInputs.has(fieldName)) {
|
|
3693
3700
|
continue;
|
|
3694
3701
|
}
|
|
3695
|
-
const expression = translateInput(
|
|
3696
|
-
genericInputs.set(fieldName, {
|
|
3697
|
-
type: "binding",
|
|
3698
|
-
field: fieldName,
|
|
3699
|
-
expression,
|
|
3700
|
-
sourceSpan: input.attribute.sourceSpan
|
|
3701
|
-
});
|
|
3702
|
+
const expression = translateInput(attr.attribute, this.tcb, this.scope);
|
|
3703
|
+
genericInputs.set(fieldName, { type: "binding", field: fieldName, expression, sourceSpan: attr.attribute.sourceSpan });
|
|
3702
3704
|
}
|
|
3703
3705
|
}
|
|
3704
3706
|
for (const { classPropertyName } of this.dir.inputs) {
|
|
@@ -3728,12 +3730,16 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
3728
3730
|
}
|
|
3729
3731
|
execute() {
|
|
3730
3732
|
let dirId = null;
|
|
3731
|
-
const
|
|
3732
|
-
|
|
3733
|
-
|
|
3733
|
+
const boundAttrs = getBoundAttributes(this.dir, this.node);
|
|
3734
|
+
const seenRequiredInputs = /* @__PURE__ */ new Set();
|
|
3735
|
+
for (const attr of boundAttrs) {
|
|
3736
|
+
const expr = widenBinding(translateInput(attr.attribute, this.tcb, this.scope), this.tcb);
|
|
3734
3737
|
let assignment = wrapForDiagnostics(expr);
|
|
3735
|
-
for (const fieldName of
|
|
3738
|
+
for (const { fieldName, required } of attr.inputs) {
|
|
3736
3739
|
let target;
|
|
3740
|
+
if (required) {
|
|
3741
|
+
seenRequiredInputs.add(fieldName);
|
|
3742
|
+
}
|
|
3737
3743
|
if (this.dir.coercedInputFields.has(fieldName)) {
|
|
3738
3744
|
const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
|
|
3739
3745
|
if (!ts23.isTypeReferenceNode(dirTypeRef)) {
|
|
@@ -3764,19 +3770,31 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
3764
3770
|
}
|
|
3765
3771
|
target = this.dir.stringLiteralInputFields.has(fieldName) ? ts23.factory.createElementAccessExpression(dirId, ts23.factory.createStringLiteral(fieldName)) : ts23.factory.createPropertyAccessExpression(dirId, ts23.factory.createIdentifier(fieldName));
|
|
3766
3772
|
}
|
|
3767
|
-
if (
|
|
3768
|
-
addParseSpanInfo(target,
|
|
3773
|
+
if (attr.attribute.keySpan !== void 0) {
|
|
3774
|
+
addParseSpanInfo(target, attr.attribute.keySpan);
|
|
3769
3775
|
}
|
|
3770
3776
|
assignment = ts23.factory.createBinaryExpression(target, ts23.SyntaxKind.EqualsToken, assignment);
|
|
3771
3777
|
}
|
|
3772
|
-
addParseSpanInfo(assignment,
|
|
3773
|
-
if (!this.tcb.env.config.checkTypeOfAttributes &&
|
|
3778
|
+
addParseSpanInfo(assignment, attr.attribute.sourceSpan);
|
|
3779
|
+
if (!this.tcb.env.config.checkTypeOfAttributes && attr.attribute instanceof TmplAstTextAttribute2) {
|
|
3774
3780
|
markIgnoreDiagnostics(assignment);
|
|
3775
3781
|
}
|
|
3776
3782
|
this.scope.addStatement(ts23.factory.createExpressionStatement(assignment));
|
|
3777
3783
|
}
|
|
3784
|
+
this.checkRequiredInputs(seenRequiredInputs);
|
|
3778
3785
|
return null;
|
|
3779
3786
|
}
|
|
3787
|
+
checkRequiredInputs(seenRequiredInputs) {
|
|
3788
|
+
const missing = [];
|
|
3789
|
+
for (const input of this.dir.inputs) {
|
|
3790
|
+
if (input.required && !seenRequiredInputs.has(input.classPropertyName)) {
|
|
3791
|
+
missing.push(input.bindingPropertyName);
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
if (missing.length > 0) {
|
|
3795
|
+
this.tcb.oobRecorder.missingRequiredInputs(this.tcb.id, this.node, this.dir.name, this.dir.isComponent, missing);
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3780
3798
|
};
|
|
3781
3799
|
var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
|
|
3782
3800
|
constructor(tcb, scope, node, dir) {
|
|
@@ -4375,18 +4393,19 @@ function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
|
4375
4393
|
[ts23.factory.createObjectLiteralExpression(members)]
|
|
4376
4394
|
);
|
|
4377
4395
|
}
|
|
4378
|
-
function
|
|
4396
|
+
function getBoundAttributes(directive, node) {
|
|
4379
4397
|
const boundInputs = [];
|
|
4380
4398
|
const processAttribute = (attr) => {
|
|
4381
4399
|
if (attr instanceof TmplAstBoundAttribute && attr.type !== 0) {
|
|
4382
4400
|
return;
|
|
4383
4401
|
}
|
|
4384
4402
|
const inputs = directive.inputs.getByBindingPropertyName(attr.name);
|
|
4385
|
-
if (inputs
|
|
4386
|
-
|
|
4403
|
+
if (inputs !== null) {
|
|
4404
|
+
boundInputs.push({
|
|
4405
|
+
attribute: attr,
|
|
4406
|
+
inputs: inputs.map((input) => ({ fieldName: input.classPropertyName, required: input.required }))
|
|
4407
|
+
});
|
|
4387
4408
|
}
|
|
4388
|
-
const fieldNames = inputs.map((input) => input.classPropertyName);
|
|
4389
|
-
boundInputs.push({ attribute: attr, fieldNames });
|
|
4390
4409
|
};
|
|
4391
4410
|
node.inputs.forEach(processAttribute);
|
|
4392
4411
|
node.attributes.forEach(processAttribute);
|
|
@@ -4482,7 +4501,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
4482
4501
|
}
|
|
4483
4502
|
};
|
|
4484
4503
|
|
|
4485
|
-
// bazel-out/
|
|
4504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
4486
4505
|
import ts24 from "typescript";
|
|
4487
4506
|
var TypeCheckFile = class extends Environment {
|
|
4488
4507
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -4518,7 +4537,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
4518
4537
|
}
|
|
4519
4538
|
};
|
|
4520
4539
|
|
|
4521
|
-
// bazel-out/
|
|
4540
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4522
4541
|
var InliningMode;
|
|
4523
4542
|
(function(InliningMode2) {
|
|
4524
4543
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -4756,10 +4775,10 @@ function splitStringAtPoints(str, points) {
|
|
|
4756
4775
|
return splits;
|
|
4757
4776
|
}
|
|
4758
4777
|
|
|
4759
|
-
// bazel-out/
|
|
4778
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4760
4779
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
4761
4780
|
|
|
4762
|
-
// bazel-out/
|
|
4781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
4763
4782
|
var LF_CHAR = 10;
|
|
4764
4783
|
var CR_CHAR = 13;
|
|
4765
4784
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -4800,7 +4819,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
4800
4819
|
return low - 1;
|
|
4801
4820
|
}
|
|
4802
4821
|
|
|
4803
|
-
// bazel-out/
|
|
4822
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4804
4823
|
var TemplateSource = class {
|
|
4805
4824
|
constructor(mapping, file) {
|
|
4806
4825
|
this.mapping = mapping;
|
|
@@ -4851,7 +4870,7 @@ var TemplateSourceManager = class {
|
|
|
4851
4870
|
}
|
|
4852
4871
|
};
|
|
4853
4872
|
|
|
4854
|
-
// bazel-out/
|
|
4873
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
4855
4874
|
import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
|
|
4856
4875
|
import ts26 from "typescript";
|
|
4857
4876
|
var SymbolBuilder = class {
|
|
@@ -5335,7 +5354,7 @@ function sourceSpanEqual(a, b) {
|
|
|
5335
5354
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
5336
5355
|
}
|
|
5337
5356
|
|
|
5338
|
-
// bazel-out/
|
|
5357
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
5339
5358
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
5340
5359
|
var TemplateTypeCheckerImpl = class {
|
|
5341
5360
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -6029,10 +6048,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
6029
6048
|
}
|
|
6030
6049
|
};
|
|
6031
6050
|
|
|
6032
|
-
// bazel-out/
|
|
6051
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
6033
6052
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
6034
6053
|
|
|
6035
|
-
// bazel-out/
|
|
6054
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
6036
6055
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
|
|
6037
6056
|
var TemplateCheckWithVisitor = class {
|
|
6038
6057
|
run(ctx, component, template) {
|
|
@@ -6109,7 +6128,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
6109
6128
|
}
|
|
6110
6129
|
};
|
|
6111
6130
|
|
|
6112
|
-
// bazel-out/
|
|
6131
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
6113
6132
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
6114
6133
|
constructor() {
|
|
6115
6134
|
super(...arguments);
|
|
@@ -6134,7 +6153,7 @@ var factory = {
|
|
|
6134
6153
|
create: () => new InvalidBananaInBoxCheck()
|
|
6135
6154
|
};
|
|
6136
6155
|
|
|
6137
|
-
// bazel-out/
|
|
6156
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
6138
6157
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
6139
6158
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
6140
6159
|
["ngIf", "NgIf"],
|
|
@@ -6179,7 +6198,7 @@ var factory2 = {
|
|
|
6179
6198
|
}
|
|
6180
6199
|
};
|
|
6181
6200
|
|
|
6182
|
-
// bazel-out/
|
|
6201
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
6183
6202
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
6184
6203
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
6185
6204
|
constructor() {
|
|
@@ -6212,7 +6231,7 @@ var factory3 = {
|
|
|
6212
6231
|
create: () => new MissingNgForOfLetCheck()
|
|
6213
6232
|
};
|
|
6214
6233
|
|
|
6215
|
-
// bazel-out/
|
|
6234
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
6216
6235
|
import { Binary } from "@angular/compiler";
|
|
6217
6236
|
import ts27 from "typescript";
|
|
6218
6237
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6257,7 +6276,7 @@ var factory4 = {
|
|
|
6257
6276
|
}
|
|
6258
6277
|
};
|
|
6259
6278
|
|
|
6260
|
-
// bazel-out/
|
|
6279
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
6261
6280
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
6262
6281
|
import ts28 from "typescript";
|
|
6263
6282
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6303,7 +6322,7 @@ var factory5 = {
|
|
|
6303
6322
|
}
|
|
6304
6323
|
};
|
|
6305
6324
|
|
|
6306
|
-
// bazel-out/
|
|
6325
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
6307
6326
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
6308
6327
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
6309
6328
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6327,7 +6346,7 @@ var factory6 = {
|
|
|
6327
6346
|
create: () => new SuffixNotSupportedCheck()
|
|
6328
6347
|
};
|
|
6329
6348
|
|
|
6330
|
-
// bazel-out/
|
|
6349
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
6331
6350
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
6332
6351
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
6333
6352
|
constructor() {
|
|
@@ -6366,10 +6385,10 @@ var factory7 = {
|
|
|
6366
6385
|
create: () => new TextAttributeNotBindingSpec()
|
|
6367
6386
|
};
|
|
6368
6387
|
|
|
6369
|
-
// bazel-out/
|
|
6388
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6370
6389
|
import ts29 from "typescript";
|
|
6371
6390
|
|
|
6372
|
-
// bazel-out/
|
|
6391
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
6373
6392
|
var DiagnosticCategoryLabel;
|
|
6374
6393
|
(function(DiagnosticCategoryLabel2) {
|
|
6375
6394
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -6377,7 +6396,7 @@ var DiagnosticCategoryLabel;
|
|
|
6377
6396
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
6378
6397
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
6379
6398
|
|
|
6380
|
-
// bazel-out/
|
|
6399
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6381
6400
|
var ExtendedTemplateCheckerImpl = class {
|
|
6382
6401
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
6383
6402
|
var _a, _b, _c, _d, _e;
|
|
@@ -6430,7 +6449,7 @@ function assertNever(value) {
|
|
|
6430
6449
|
${value}`);
|
|
6431
6450
|
}
|
|
6432
6451
|
|
|
6433
|
-
// bazel-out/
|
|
6452
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
6434
6453
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
6435
6454
|
factory,
|
|
6436
6455
|
factory4,
|
|
@@ -6441,7 +6460,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
6441
6460
|
factory6
|
|
6442
6461
|
];
|
|
6443
6462
|
|
|
6444
|
-
// bazel-out/
|
|
6463
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
6445
6464
|
var CompilationTicketKind;
|
|
6446
6465
|
(function(CompilationTicketKind2) {
|
|
6447
6466
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -7144,7 +7163,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
7144
7163
|
return versions;
|
|
7145
7164
|
}
|
|
7146
7165
|
|
|
7147
|
-
// bazel-out/
|
|
7166
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
7148
7167
|
import ts31 from "typescript";
|
|
7149
7168
|
var DelegatingCompilerHost2 = class {
|
|
7150
7169
|
constructor(delegate) {
|
|
@@ -7277,7 +7296,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
7277
7296
|
}
|
|
7278
7297
|
};
|
|
7279
7298
|
|
|
7280
|
-
// bazel-out/
|
|
7299
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
7281
7300
|
var NgtscProgram = class {
|
|
7282
7301
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
7283
7302
|
this.options = options;
|
|
@@ -7495,15 +7514,15 @@ function mergeEmitResults(emitResults) {
|
|
|
7495
7514
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
7496
7515
|
}
|
|
7497
7516
|
|
|
7498
|
-
// bazel-out/
|
|
7517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
7499
7518
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
7500
7519
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
7501
7520
|
}
|
|
7502
7521
|
|
|
7503
|
-
// bazel-out/
|
|
7522
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7504
7523
|
import ts34 from "typescript";
|
|
7505
7524
|
|
|
7506
|
-
// bazel-out/
|
|
7525
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
7507
7526
|
import ts33 from "typescript";
|
|
7508
7527
|
function createMessageDiagnostic(messageText) {
|
|
7509
7528
|
return {
|
|
@@ -7517,7 +7536,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
7517
7536
|
};
|
|
7518
7537
|
}
|
|
7519
7538
|
|
|
7520
|
-
// bazel-out/
|
|
7539
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7521
7540
|
var defaultFormatHost = {
|
|
7522
7541
|
getCurrentDirectory: () => ts34.sys.getCurrentDirectory(),
|
|
7523
7542
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -7731,4 +7750,4 @@ export {
|
|
|
7731
7750
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7732
7751
|
* found in the LICENSE file at https://angular.io/license
|
|
7733
7752
|
*/
|
|
7734
|
-
//# sourceMappingURL=chunk-
|
|
7753
|
+
//# sourceMappingURL=chunk-VFEPUUWJ.js.map
|