@angular/core 16.0.0-next.3 → 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/esm2020/src/application_tokens.mjs +33 -1
- package/esm2020/src/change_detection/change_detector_ref.mjs +4 -4
- package/esm2020/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2020/src/core.mjs +2 -2
- package/esm2020/src/core_private_export.mjs +2 -1
- package/esm2020/src/core_reactivity_export_internal.mjs +1 -1
- package/esm2020/src/core_render3_private_export.mjs +1 -2
- package/esm2020/src/di/r3_injector.mjs +8 -1
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/hydration/annotate.mjs +118 -5
- package/esm2020/src/hydration/api.mjs +14 -1
- package/esm2020/src/hydration/cleanup.mjs +54 -3
- package/esm2020/src/hydration/compression.mjs +69 -0
- package/esm2020/src/hydration/error_handling.mjs +357 -15
- package/esm2020/src/hydration/interfaces.mjs +17 -1
- package/esm2020/src/hydration/node_lookup_utils.mjs +199 -7
- package/esm2020/src/hydration/utils.mjs +16 -3
- package/esm2020/src/hydration/views.mjs +19 -15
- package/esm2020/src/linker/destroy_ref.mjs +5 -2
- package/esm2020/src/linker/view_container_ref.mjs +8 -7
- package/esm2020/src/metadata/directives.mjs +8 -3
- package/esm2020/src/render3/instructions/element.mjs +16 -9
- package/esm2020/src/render3/instructions/element_container.mjs +2 -5
- package/esm2020/src/render3/instructions/element_validation.mjs +2 -2
- package/esm2020/src/render3/instructions/projection.mjs +7 -4
- package/esm2020/src/render3/instructions/template.mjs +4 -7
- package/esm2020/src/render3/instructions/text.mjs +6 -6
- package/esm2020/src/render3/interfaces/public_definitions.mjs +1 -1
- package/esm2020/src/render3/interfaces/type_checks.mjs +4 -1
- package/esm2020/src/render3/node_manipulation.mjs +2 -2
- package/esm2020/src/render3/node_selector_matcher.mjs +17 -5
- package/esm2020/src/render3/util/view_utils.mjs +12 -1
- package/esm2020/src/render3/view_ref.mjs +1 -1
- package/esm2020/src/signals/index.mjs +2 -1
- package/esm2020/src/signals/src/computed.mjs +3 -3
- package/esm2020/src/signals/src/effect.mjs +1 -3
- package/esm2020/src/signals/src/signal.mjs +3 -3
- package/esm2020/src/signals/src/watch.mjs +3 -3
- package/esm2020/src/signals/src/weak_ref.mjs +18 -2
- package/esm2020/src/util/ng_dev_mode.mjs +2 -1
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/test_bed_compiler.mjs +12 -7
- package/fesm2015/core.mjs +1066 -178
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +816 -68
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +1051 -170
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +810 -67
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +128 -216
- package/package.json +1 -1
- package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
- package/schematics/migrations/router-link-with-href/bundle.js +10 -10
- package/schematics/ng-generate/standalone-migration/bundle.js +473 -376
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +1 -1
|
@@ -59,7 +59,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// bazel-out/
|
|
62
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
63
63
|
var standalone_migration_exports = {};
|
|
64
64
|
__export(standalone_migration_exports, {
|
|
65
65
|
default: () => standalone_migration_default
|
|
@@ -67,10 +67,10 @@ __export(standalone_migration_exports, {
|
|
|
67
67
|
module.exports = __toCommonJS(standalone_migration_exports);
|
|
68
68
|
var import_schematics = require("@angular-devkit/schematics");
|
|
69
69
|
|
|
70
|
-
// bazel-out/
|
|
70
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
71
71
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
72
72
|
|
|
73
|
-
// bazel-out/
|
|
73
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
74
74
|
var InvalidFileSystem = class {
|
|
75
75
|
exists(path3) {
|
|
76
76
|
throw makeError();
|
|
@@ -158,7 +158,7 @@ function makeError() {
|
|
|
158
158
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// bazel-out/
|
|
161
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
162
162
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
163
163
|
function stripExtension(path3) {
|
|
164
164
|
return path3.replace(TS_DTS_JS_EXTENSION, "");
|
|
@@ -171,7 +171,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
171
171
|
return sf;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
// bazel-out/
|
|
174
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
175
175
|
var fs = new InvalidFileSystem();
|
|
176
176
|
function getFileSystem() {
|
|
177
177
|
return fs;
|
|
@@ -215,7 +215,7 @@ function toRelativeImport(relativePath) {
|
|
|
215
215
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
// bazel-out/
|
|
218
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
219
219
|
var LogicalProjectPath = {
|
|
220
220
|
relativePathBetween: function(from, to) {
|
|
221
221
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -261,7 +261,7 @@ function isWithinBasePath(base, path3) {
|
|
|
261
261
|
return isLocalRelativePath(relative(base, path3));
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
// bazel-out/
|
|
264
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
265
265
|
var import_fs = __toESM(require("fs"), 1);
|
|
266
266
|
var import_module = __toESM(require("module"), 1);
|
|
267
267
|
var p = __toESM(require("path"), 1);
|
|
@@ -369,7 +369,7 @@ function toggleCase(str) {
|
|
|
369
369
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
// bazel-out/
|
|
372
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
373
373
|
var _SELECTOR_REGEXP = new RegExp(
|
|
374
374
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
375
375
|
"g"
|
|
@@ -677,7 +677,7 @@ var SelectorContext = class {
|
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
// bazel-out/
|
|
680
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
681
681
|
var emitDistinctChangesOnlyDefaultValue = true;
|
|
682
682
|
var ViewEncapsulation;
|
|
683
683
|
(function(ViewEncapsulation2) {
|
|
@@ -740,7 +740,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
740
740
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
// bazel-out/
|
|
743
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
|
|
744
744
|
var BigInteger = class {
|
|
745
745
|
static zero() {
|
|
746
746
|
return new BigInteger([0]);
|
|
@@ -832,7 +832,7 @@ var BigIntExponentiation = class {
|
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
834
|
|
|
835
|
-
// bazel-out/
|
|
835
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
836
836
|
var textEncoder;
|
|
837
837
|
function digest(message) {
|
|
838
838
|
return message.id || computeDigest(message);
|
|
@@ -1095,7 +1095,7 @@ function wordsToDecimalString(hi, lo) {
|
|
|
1095
1095
|
return decimal.toString();
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
|
-
// bazel-out/
|
|
1098
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1099
1099
|
var TypeModifier;
|
|
1100
1100
|
(function(TypeModifier2) {
|
|
1101
1101
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1922,7 +1922,7 @@ function serializeTags(tags) {
|
|
|
1922
1922
|
return out;
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
|
-
// bazel-out/
|
|
1925
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1926
1926
|
var CONSTANT_PREFIX = "_c";
|
|
1927
1927
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1928
1928
|
var KEY_CONTEXT = {};
|
|
@@ -2090,7 +2090,7 @@ function isLongStringLiteral(expr) {
|
|
|
2090
2090
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
2093
|
-
// bazel-out/
|
|
2093
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2094
2094
|
var CORE = "@angular/core";
|
|
2095
2095
|
var Identifiers = class {
|
|
2096
2096
|
};
|
|
@@ -2294,7 +2294,7 @@ Identifiers.trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleN
|
|
|
2294
2294
|
Identifiers.trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: CORE };
|
|
2295
2295
|
Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
2296
2296
|
|
|
2297
|
-
// bazel-out/
|
|
2297
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2298
2298
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2299
2299
|
function dashCaseToCamelCase(input) {
|
|
2300
2300
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2382,7 +2382,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2382
2382
|
return [truthy, falsy];
|
|
2383
2383
|
}
|
|
2384
2384
|
|
|
2385
|
-
// bazel-out/
|
|
2385
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2386
2386
|
var VERSION = 3;
|
|
2387
2387
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2388
2388
|
var SourceMapGenerator = class {
|
|
@@ -2511,7 +2511,7 @@ function toBase64Digit(value) {
|
|
|
2511
2511
|
return B64_DIGITS[value];
|
|
2512
2512
|
}
|
|
2513
2513
|
|
|
2514
|
-
// bazel-out/
|
|
2514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2515
2515
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2516
2516
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2517
2517
|
var _INDENT_WITH = " ";
|
|
@@ -2986,7 +2986,7 @@ function _createIndent(count) {
|
|
|
2986
2986
|
return res;
|
|
2987
2987
|
}
|
|
2988
2988
|
|
|
2989
|
-
// bazel-out/
|
|
2989
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
2990
2990
|
function typeWithParameters(type, numParams) {
|
|
2991
2991
|
if (numParams === 0) {
|
|
2992
2992
|
return expressionType(type);
|
|
@@ -3054,7 +3054,7 @@ function generateForwardRef(expr) {
|
|
|
3054
3054
|
return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
|
-
// bazel-out/
|
|
3057
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3058
3058
|
var R3FactoryDelegateType;
|
|
3059
3059
|
(function(R3FactoryDelegateType2) {
|
|
3060
3060
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3199,7 +3199,7 @@ function getInjectFn(target) {
|
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
3201
3201
|
|
|
3202
|
-
// bazel-out/
|
|
3202
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3203
3203
|
var Comment = class {
|
|
3204
3204
|
constructor(value, sourceSpan) {
|
|
3205
3205
|
this.value = value;
|
|
@@ -3421,7 +3421,7 @@ function visitAll(visitor, nodes) {
|
|
|
3421
3421
|
return result;
|
|
3422
3422
|
}
|
|
3423
3423
|
|
|
3424
|
-
// bazel-out/
|
|
3424
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3425
3425
|
var Message = class {
|
|
3426
3426
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3427
3427
|
this.nodes = nodes;
|
|
@@ -3584,7 +3584,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
};
|
|
3586
3586
|
|
|
3587
|
-
// bazel-out/
|
|
3587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
3588
3588
|
var Serializer = class {
|
|
3589
3589
|
createNameMapper(message) {
|
|
3590
3590
|
return null;
|
|
@@ -3636,7 +3636,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
};
|
|
3638
3638
|
|
|
3639
|
-
// bazel-out/
|
|
3639
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
3640
3640
|
var _Visitor = class {
|
|
3641
3641
|
visitTag(tag) {
|
|
3642
3642
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -3724,7 +3724,7 @@ function escapeXml(text) {
|
|
|
3724
3724
|
return _ESCAPED_CHARS.reduce((text2, entry) => text2.replace(entry[0], entry[1]), text);
|
|
3725
3725
|
}
|
|
3726
3726
|
|
|
3727
|
-
// bazel-out/
|
|
3727
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
3728
3728
|
var _MESSAGES_TAG = "messagebundle";
|
|
3729
3729
|
var _MESSAGE_TAG = "msg";
|
|
3730
3730
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -3867,7 +3867,7 @@ function toPublicName(internalName) {
|
|
|
3867
3867
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
3868
3868
|
}
|
|
3869
3869
|
|
|
3870
|
-
// bazel-out/
|
|
3870
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
3871
3871
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
3872
3872
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
3873
3873
|
var I18N_ATTR = "i18n";
|
|
@@ -3969,7 +3969,7 @@ function declareI18nVariable(variable2) {
|
|
|
3969
3969
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
3970
3970
|
}
|
|
3971
3971
|
|
|
3972
|
-
// bazel-out/
|
|
3972
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
3973
3973
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
3974
3974
|
var TEMPORARY_NAME = "_t";
|
|
3975
3975
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4175,7 +4175,7 @@ function getInstructionStatements(instructions) {
|
|
|
4175
4175
|
return statements;
|
|
4176
4176
|
}
|
|
4177
4177
|
|
|
4178
|
-
// bazel-out/
|
|
4178
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4179
4179
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4180
4180
|
let result = null;
|
|
4181
4181
|
const factoryMeta = {
|
|
@@ -4264,7 +4264,7 @@ function createFactoryFunction(type) {
|
|
|
4264
4264
|
return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
|
|
4265
4265
|
}
|
|
4266
4266
|
|
|
4267
|
-
// bazel-out/
|
|
4267
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4268
4268
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4269
4269
|
/^\s*$/,
|
|
4270
4270
|
/[<>]/,
|
|
@@ -4286,7 +4286,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4286
4286
|
}
|
|
4287
4287
|
}
|
|
4288
4288
|
|
|
4289
|
-
// bazel-out/
|
|
4289
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
4290
4290
|
var InterpolationConfig = class {
|
|
4291
4291
|
static fromArray(markers) {
|
|
4292
4292
|
if (!markers) {
|
|
@@ -4302,7 +4302,7 @@ var InterpolationConfig = class {
|
|
|
4302
4302
|
};
|
|
4303
4303
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4304
4304
|
|
|
4305
|
-
// bazel-out/
|
|
4305
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4306
4306
|
var $EOF = 0;
|
|
4307
4307
|
var $BSPACE = 8;
|
|
4308
4308
|
var $TAB = 9;
|
|
@@ -4383,7 +4383,7 @@ function isQuote(code) {
|
|
|
4383
4383
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4384
4384
|
}
|
|
4385
4385
|
|
|
4386
|
-
// bazel-out/
|
|
4386
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4387
4387
|
var ParseLocation = class {
|
|
4388
4388
|
constructor(file, offset, line, col) {
|
|
4389
4389
|
this.file = file;
|
|
@@ -4530,7 +4530,7 @@ function sanitizeIdentifier(name) {
|
|
|
4530
4530
|
return name.replace(/\W/g, "_");
|
|
4531
4531
|
}
|
|
4532
4532
|
|
|
4533
|
-
// bazel-out/
|
|
4533
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4534
4534
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4535
4535
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4536
4536
|
constructor() {
|
|
@@ -4601,7 +4601,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
};
|
|
4603
4603
|
|
|
4604
|
-
// bazel-out/
|
|
4604
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4605
4605
|
var policy;
|
|
4606
4606
|
function getPolicy() {
|
|
4607
4607
|
if (policy === void 0) {
|
|
@@ -4638,7 +4638,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4638
4638
|
return fn2.bind(_global);
|
|
4639
4639
|
}
|
|
4640
4640
|
|
|
4641
|
-
// bazel-out/
|
|
4641
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4642
4642
|
var JitEvaluator = class {
|
|
4643
4643
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4644
4644
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -4729,7 +4729,7 @@ function isUseStrictStatement(statement) {
|
|
|
4729
4729
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
4730
4730
|
}
|
|
4731
4731
|
|
|
4732
|
-
// bazel-out/
|
|
4732
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
4733
4733
|
function compileInjector(meta) {
|
|
4734
4734
|
const definitionMap = new DefinitionMap();
|
|
4735
4735
|
if (meta.providers !== null) {
|
|
@@ -4746,7 +4746,7 @@ function createInjectorType(meta) {
|
|
|
4746
4746
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
4747
4747
|
}
|
|
4748
4748
|
|
|
4749
|
-
// bazel-out/
|
|
4749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
4750
4750
|
var R3JitReflector = class {
|
|
4751
4751
|
constructor(context) {
|
|
4752
4752
|
this.context = context;
|
|
@@ -4762,7 +4762,7 @@ var R3JitReflector = class {
|
|
|
4762
4762
|
}
|
|
4763
4763
|
};
|
|
4764
4764
|
|
|
4765
|
-
// bazel-out/
|
|
4765
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
4766
4766
|
var R3SelectorScopeMode;
|
|
4767
4767
|
(function(R3SelectorScopeMode2) {
|
|
4768
4768
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -4875,7 +4875,7 @@ function tupleOfTypes(types) {
|
|
|
4875
4875
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
4876
4876
|
}
|
|
4877
4877
|
|
|
4878
|
-
// bazel-out/
|
|
4878
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
4879
4879
|
function compilePipeFromMetadata(metadata) {
|
|
4880
4880
|
const definitionMapValues = [];
|
|
4881
4881
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -4896,7 +4896,7 @@ function createPipeType(metadata) {
|
|
|
4896
4896
|
]));
|
|
4897
4897
|
}
|
|
4898
4898
|
|
|
4899
|
-
// bazel-out/
|
|
4899
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
4900
4900
|
var R3TemplateDependencyKind;
|
|
4901
4901
|
(function(R3TemplateDependencyKind2) {
|
|
4902
4902
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -4904,7 +4904,7 @@ var R3TemplateDependencyKind;
|
|
|
4904
4904
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
4905
4905
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
4906
4906
|
|
|
4907
|
-
// bazel-out/
|
|
4907
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
4908
4908
|
var ParserError = class {
|
|
4909
4909
|
constructor(message, input, errLocation, ctxLocation) {
|
|
4910
4910
|
this.input = input;
|
|
@@ -5570,7 +5570,7 @@ var BoundElementProperty = class {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
};
|
|
5572
5572
|
|
|
5573
|
-
// bazel-out/
|
|
5573
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5574
5574
|
var EventHandlerVars = class {
|
|
5575
5575
|
};
|
|
5576
5576
|
EventHandlerVars.event = variable("$event");
|
|
@@ -6188,7 +6188,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6188
6188
|
}
|
|
6189
6189
|
};
|
|
6190
6190
|
|
|
6191
|
-
// bazel-out/
|
|
6191
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6192
6192
|
var _SECURITY_SCHEMA;
|
|
6193
6193
|
function SECURITY_SCHEMA() {
|
|
6194
6194
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6246,7 +6246,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6246
6246
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6247
6247
|
}
|
|
6248
6248
|
|
|
6249
|
-
// bazel-out/
|
|
6249
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6250
6250
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6251
6251
|
"inherit",
|
|
6252
6252
|
"initial",
|
|
@@ -6706,7 +6706,7 @@ function repeatGroups(groups, multiples) {
|
|
|
6706
6706
|
}
|
|
6707
6707
|
}
|
|
6708
6708
|
|
|
6709
|
-
// bazel-out/
|
|
6709
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
6710
6710
|
function parse(value) {
|
|
6711
6711
|
const styles = [];
|
|
6712
6712
|
let i = 0;
|
|
@@ -6782,7 +6782,7 @@ function hyphenate(value) {
|
|
|
6782
6782
|
}).toLowerCase();
|
|
6783
6783
|
}
|
|
6784
6784
|
|
|
6785
|
-
// bazel-out/
|
|
6785
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
6786
6786
|
var IMPORTANT_FLAG = "!important";
|
|
6787
6787
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
6788
6788
|
var StylingBuilder = class {
|
|
@@ -7115,7 +7115,7 @@ function isEmptyExpression(ast) {
|
|
|
7115
7115
|
return ast instanceof EmptyExpr;
|
|
7116
7116
|
}
|
|
7117
7117
|
|
|
7118
|
-
// bazel-out/
|
|
7118
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
7119
7119
|
var TokenType;
|
|
7120
7120
|
(function(TokenType2) {
|
|
7121
7121
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -7476,7 +7476,7 @@ function parseIntAutoRadix(text) {
|
|
|
7476
7476
|
return result;
|
|
7477
7477
|
}
|
|
7478
7478
|
|
|
7479
|
-
// bazel-out/
|
|
7479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
7480
7480
|
var SplitInterpolation = class {
|
|
7481
7481
|
constructor(strings, expressions, offsets) {
|
|
7482
7482
|
this.strings = strings;
|
|
@@ -8370,7 +8370,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
8370
8370
|
return offsetMap;
|
|
8371
8371
|
}
|
|
8372
8372
|
|
|
8373
|
-
// bazel-out/
|
|
8373
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
8374
8374
|
var NodeWithI18n = class {
|
|
8375
8375
|
constructor(sourceSpan, i18n) {
|
|
8376
8376
|
this.sourceSpan = sourceSpan;
|
|
@@ -8458,7 +8458,7 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
8458
8458
|
return result;
|
|
8459
8459
|
}
|
|
8460
8460
|
|
|
8461
|
-
// bazel-out/
|
|
8461
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
8462
8462
|
var TagContentType;
|
|
8463
8463
|
(function(TagContentType2) {
|
|
8464
8464
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -8491,11 +8491,11 @@ function mergeNsAndName(prefix, localName) {
|
|
|
8491
8491
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
8492
8492
|
}
|
|
8493
8493
|
|
|
8494
|
-
// bazel-out/
|
|
8494
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
8495
8495
|
var ElementSchemaRegistry = class {
|
|
8496
8496
|
};
|
|
8497
8497
|
|
|
8498
|
-
// bazel-out/
|
|
8498
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
8499
8499
|
var BOOLEAN = "boolean";
|
|
8500
8500
|
var NUMBER = "number";
|
|
8501
8501
|
var STRING = "string";
|
|
@@ -8848,7 +8848,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
8848
8848
|
}
|
|
8849
8849
|
}
|
|
8850
8850
|
|
|
8851
|
-
// bazel-out/
|
|
8851
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
8852
8852
|
var HtmlTagDefinition = class {
|
|
8853
8853
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
8854
8854
|
this.closedByChildren = {};
|
|
@@ -8966,7 +8966,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
8966
8966
|
return (_b = (_a = TAG_DEFINITIONS[tagName]) != null ? _a : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b : DEFAULT_TAG_DEFINITION;
|
|
8967
8967
|
}
|
|
8968
8968
|
|
|
8969
|
-
// bazel-out/
|
|
8969
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
8970
8970
|
var NAMED_ENTITIES = {
|
|
8971
8971
|
"AElig": "\xC6",
|
|
8972
8972
|
"AMP": "&",
|
|
@@ -11097,7 +11097,7 @@ var NAMED_ENTITIES = {
|
|
|
11097
11097
|
var NGSP_UNICODE = "\uE500";
|
|
11098
11098
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
11099
11099
|
|
|
11100
|
-
// bazel-out/
|
|
11100
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
11101
11101
|
var TokenError = class extends ParseError {
|
|
11102
11102
|
constructor(errorMsg, tokenType, span) {
|
|
11103
11103
|
super(span, errorMsg);
|
|
@@ -11932,7 +11932,7 @@ var CursorError = class {
|
|
|
11932
11932
|
}
|
|
11933
11933
|
};
|
|
11934
11934
|
|
|
11935
|
-
// bazel-out/
|
|
11935
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
11936
11936
|
var TreeError = class extends ParseError {
|
|
11937
11937
|
static create(elementName, span, msg) {
|
|
11938
11938
|
return new TreeError(elementName, span, msg);
|
|
@@ -12259,7 +12259,7 @@ function decodeEntity(match, entity) {
|
|
|
12259
12259
|
return match;
|
|
12260
12260
|
}
|
|
12261
12261
|
|
|
12262
|
-
// bazel-out/
|
|
12262
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
12263
12263
|
var HtmlParser = class extends Parser2 {
|
|
12264
12264
|
constructor() {
|
|
12265
12265
|
super(getHtmlTagDefinition);
|
|
@@ -12269,7 +12269,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
12269
12269
|
}
|
|
12270
12270
|
};
|
|
12271
12271
|
|
|
12272
|
-
// bazel-out/
|
|
12272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
12273
12273
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
12274
12274
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
12275
12275
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -12329,7 +12329,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
12329
12329
|
return result;
|
|
12330
12330
|
}
|
|
12331
12331
|
|
|
12332
|
-
// bazel-out/
|
|
12332
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
12333
12333
|
function mapLiteral(obj, quoted = false) {
|
|
12334
12334
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
12335
12335
|
key,
|
|
@@ -12338,7 +12338,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
12338
12338
|
})));
|
|
12339
12339
|
}
|
|
12340
12340
|
|
|
12341
|
-
// bazel-out/
|
|
12341
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
12342
12342
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
12343
12343
|
"iframe|srcdoc",
|
|
12344
12344
|
"*|innerhtml",
|
|
@@ -12353,7 +12353,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
12353
12353
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
12354
12354
|
}
|
|
12355
12355
|
|
|
12356
|
-
// bazel-out/
|
|
12356
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
12357
12357
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
12358
12358
|
var ATTRIBUTE_PREFIX = "attr";
|
|
12359
12359
|
var CLASS_PREFIX = "class";
|
|
@@ -12673,7 +12673,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
12673
12673
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
12674
12674
|
}
|
|
12675
12675
|
|
|
12676
|
-
// bazel-out/
|
|
12676
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
12677
12677
|
function isStyleUrlResolvable(url) {
|
|
12678
12678
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
12679
12679
|
return false;
|
|
@@ -12682,7 +12682,7 @@ function isStyleUrlResolvable(url) {
|
|
|
12682
12682
|
}
|
|
12683
12683
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
12684
12684
|
|
|
12685
|
-
// bazel-out/
|
|
12685
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
12686
12686
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
12687
12687
|
var LINK_ELEMENT = "link";
|
|
12688
12688
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -12752,7 +12752,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
12752
12752
|
return selectAttr;
|
|
12753
12753
|
}
|
|
12754
12754
|
|
|
12755
|
-
// bazel-out/
|
|
12755
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
12756
12756
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
12757
12757
|
var KW_BIND_IDX = 1;
|
|
12758
12758
|
var KW_LET_IDX = 2;
|
|
@@ -13100,7 +13100,7 @@ function textContents(node) {
|
|
|
13100
13100
|
}
|
|
13101
13101
|
}
|
|
13102
13102
|
|
|
13103
|
-
// bazel-out/
|
|
13103
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
13104
13104
|
var TagType;
|
|
13105
13105
|
(function(TagType2) {
|
|
13106
13106
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -13235,7 +13235,7 @@ function serializePlaceholderValue(value) {
|
|
|
13235
13235
|
}
|
|
13236
13236
|
}
|
|
13237
13237
|
|
|
13238
|
-
// bazel-out/
|
|
13238
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
13239
13239
|
var IcuSerializerVisitor = class {
|
|
13240
13240
|
visitText(text) {
|
|
13241
13241
|
return text.value;
|
|
@@ -13266,7 +13266,7 @@ function serializeIcuNode(icu) {
|
|
|
13266
13266
|
return icu.visit(serializer);
|
|
13267
13267
|
}
|
|
13268
13268
|
|
|
13269
|
-
// bazel-out/
|
|
13269
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
13270
13270
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
13271
13271
|
"A": "LINK",
|
|
13272
13272
|
"B": "BOLD_TEXT",
|
|
@@ -13360,7 +13360,7 @@ var PlaceholderRegistry = class {
|
|
|
13360
13360
|
}
|
|
13361
13361
|
};
|
|
13362
13362
|
|
|
13363
|
-
// bazel-out/
|
|
13363
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
13364
13364
|
var _expParser = new Parser(new Lexer());
|
|
13365
13365
|
function createI18nMessageFactory(interpolationConfig) {
|
|
13366
13366
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -13515,14 +13515,14 @@ function extractPlaceholderName(input) {
|
|
|
13515
13515
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
13516
13516
|
}
|
|
13517
13517
|
|
|
13518
|
-
// bazel-out/
|
|
13518
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
13519
13519
|
var I18nError = class extends ParseError {
|
|
13520
13520
|
constructor(span, msg) {
|
|
13521
13521
|
super(span, msg);
|
|
13522
13522
|
}
|
|
13523
13523
|
};
|
|
13524
13524
|
|
|
13525
|
-
// bazel-out/
|
|
13525
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
13526
13526
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
13527
13527
|
if (htmlNode instanceof NodeWithI18n) {
|
|
13528
13528
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -13671,7 +13671,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
13671
13671
|
return jsDocComment(tags);
|
|
13672
13672
|
}
|
|
13673
13673
|
|
|
13674
|
-
// bazel-out/
|
|
13674
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
13675
13675
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
13676
13676
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
13677
13677
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -13719,7 +13719,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
13719
13719
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
13720
13720
|
}
|
|
13721
13721
|
|
|
13722
|
-
// bazel-out/
|
|
13722
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
13723
13723
|
function createLocalizeStatements(variable2, message, params) {
|
|
13724
13724
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
13725
13725
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -13802,7 +13802,7 @@ function createEmptyMessagePart(location) {
|
|
|
13802
13802
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
13803
13803
|
}
|
|
13804
13804
|
|
|
13805
|
-
// bazel-out/
|
|
13805
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
13806
13806
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
13807
13807
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
13808
13808
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -15104,7 +15104,7 @@ function createClosureModeGuard() {
|
|
|
15104
15104
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
15105
15105
|
}
|
|
15106
15106
|
|
|
15107
|
-
// bazel-out/
|
|
15107
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
15108
15108
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
15109
15109
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
15110
15110
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -15327,7 +15327,15 @@ function createBaseDirectiveTypeParams(meta) {
|
|
|
15327
15327
|
}
|
|
15328
15328
|
function getInputsTypeExpression(meta) {
|
|
15329
15329
|
return literalMap(Object.keys(meta.inputs).map((key) => {
|
|
15330
|
-
|
|
15330
|
+
const value = meta.inputs[key];
|
|
15331
|
+
return {
|
|
15332
|
+
key,
|
|
15333
|
+
value: literalMap([
|
|
15334
|
+
{ key: "alias", value: literal(value.bindingPropertyName), quoted: true },
|
|
15335
|
+
{ key: "required", value: literal(value.required), quoted: true }
|
|
15336
|
+
]),
|
|
15337
|
+
quoted: true
|
|
15338
|
+
};
|
|
15331
15339
|
}));
|
|
15332
15340
|
}
|
|
15333
15341
|
function createDirectiveType(meta) {
|
|
@@ -15628,11 +15636,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
15628
15636
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
15629
15637
|
}
|
|
15630
15638
|
|
|
15631
|
-
// bazel-out/
|
|
15639
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
15632
15640
|
var ResourceLoader = class {
|
|
15633
15641
|
};
|
|
15634
15642
|
|
|
15635
|
-
// bazel-out/
|
|
15643
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
15636
15644
|
var CompilerFacadeImpl = class {
|
|
15637
15645
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
15638
15646
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -15849,11 +15857,12 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
15849
15857
|
propMetadata[field].forEach((ann) => {
|
|
15850
15858
|
if (isInput(ann)) {
|
|
15851
15859
|
inputsFromType[field] = {
|
|
15852
|
-
bindingPropertyName: ann.
|
|
15853
|
-
classPropertyName: field
|
|
15860
|
+
bindingPropertyName: ann.alias || field,
|
|
15861
|
+
classPropertyName: field,
|
|
15862
|
+
required: ann.required || false
|
|
15854
15863
|
};
|
|
15855
15864
|
} else if (isOutput(ann)) {
|
|
15856
|
-
outputsFromType[field] = ann.
|
|
15865
|
+
outputsFromType[field] = ann.alias || field;
|
|
15857
15866
|
}
|
|
15858
15867
|
});
|
|
15859
15868
|
}
|
|
@@ -16087,7 +16096,7 @@ function isOutput(value) {
|
|
|
16087
16096
|
function inputsMappingToInputMetadata(inputs) {
|
|
16088
16097
|
return Object.keys(inputs).reduce((result, key) => {
|
|
16089
16098
|
const value = inputs[key];
|
|
16090
|
-
result[key] = typeof value === "string" ? { bindingPropertyName: value, classPropertyName: value } : { bindingPropertyName: value[0], classPropertyName: value[1] };
|
|
16099
|
+
result[key] = typeof value === "string" ? { bindingPropertyName: value, classPropertyName: value, required: false } : { bindingPropertyName: value[0], classPropertyName: value[1], required: false };
|
|
16091
16100
|
return result;
|
|
16092
16101
|
}, {});
|
|
16093
16102
|
}
|
|
@@ -16095,11 +16104,12 @@ function parseInputsArray(values) {
|
|
|
16095
16104
|
return values.reduce((results, value) => {
|
|
16096
16105
|
if (typeof value === "string") {
|
|
16097
16106
|
const [bindingPropertyName, classPropertyName] = parseMappingString(value);
|
|
16098
|
-
results[classPropertyName] = { bindingPropertyName, classPropertyName };
|
|
16107
|
+
results[classPropertyName] = { bindingPropertyName, classPropertyName, required: false };
|
|
16099
16108
|
} else {
|
|
16100
16109
|
results[value.name] = {
|
|
16101
16110
|
bindingPropertyName: value.alias || value.name,
|
|
16102
|
-
classPropertyName: value.name
|
|
16111
|
+
classPropertyName: value.name,
|
|
16112
|
+
required: value.required || false
|
|
16103
16113
|
};
|
|
16104
16114
|
}
|
|
16105
16115
|
return results;
|
|
@@ -16107,8 +16117,8 @@ function parseInputsArray(values) {
|
|
|
16107
16117
|
}
|
|
16108
16118
|
function parseMappingStringArray(values) {
|
|
16109
16119
|
return values.reduce((results, value) => {
|
|
16110
|
-
const [
|
|
16111
|
-
results[fieldName] =
|
|
16120
|
+
const [alias, fieldName] = parseMappingString(value);
|
|
16121
|
+
results[fieldName] = alias;
|
|
16112
16122
|
return results;
|
|
16113
16123
|
}, {});
|
|
16114
16124
|
}
|
|
@@ -16143,10 +16153,10 @@ function publishFacade(global2) {
|
|
|
16143
16153
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
16144
16154
|
}
|
|
16145
16155
|
|
|
16146
|
-
// bazel-out/
|
|
16147
|
-
var VERSION2 = new Version("16.0.0-next.
|
|
16156
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
16157
|
+
var VERSION2 = new Version("16.0.0-next.4");
|
|
16148
16158
|
|
|
16149
|
-
// bazel-out/
|
|
16159
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
16150
16160
|
var _I18N_ATTR = "i18n";
|
|
16151
16161
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
16152
16162
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -16450,7 +16460,7 @@ function _parseMessageMeta(i18n) {
|
|
|
16450
16460
|
return { meaning, description, id: id.trim() };
|
|
16451
16461
|
}
|
|
16452
16462
|
|
|
16453
|
-
// bazel-out/
|
|
16463
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
16454
16464
|
var XmlTagDefinition = class {
|
|
16455
16465
|
constructor() {
|
|
16456
16466
|
this.closedByParent = false;
|
|
@@ -16474,7 +16484,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
16474
16484
|
return _TAG_DEFINITION;
|
|
16475
16485
|
}
|
|
16476
16486
|
|
|
16477
|
-
// bazel-out/
|
|
16487
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
16478
16488
|
var XmlParser = class extends Parser2 {
|
|
16479
16489
|
constructor() {
|
|
16480
16490
|
super(getXmlTagDefinition);
|
|
@@ -16484,7 +16494,7 @@ var XmlParser = class extends Parser2 {
|
|
|
16484
16494
|
}
|
|
16485
16495
|
};
|
|
16486
16496
|
|
|
16487
|
-
// bazel-out/
|
|
16497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
16488
16498
|
var _VERSION = "1.2";
|
|
16489
16499
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
16490
16500
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -16724,7 +16734,7 @@ function getCtypeForTag(tag) {
|
|
|
16724
16734
|
}
|
|
16725
16735
|
}
|
|
16726
16736
|
|
|
16727
|
-
// bazel-out/
|
|
16737
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
16728
16738
|
var _VERSION2 = "2.0";
|
|
16729
16739
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
16730
16740
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -17012,7 +17022,7 @@ function getTypeForTag(tag) {
|
|
|
17012
17022
|
}
|
|
17013
17023
|
}
|
|
17014
17024
|
|
|
17015
|
-
// bazel-out/
|
|
17025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
17016
17026
|
var MessageBundle = class {
|
|
17017
17027
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
17018
17028
|
this._htmlParser = _htmlParser;
|
|
@@ -17079,7 +17089,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
17079
17089
|
}
|
|
17080
17090
|
};
|
|
17081
17091
|
|
|
17082
|
-
// bazel-out/
|
|
17092
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
17083
17093
|
var FactoryTarget2;
|
|
17084
17094
|
(function(FactoryTarget3) {
|
|
17085
17095
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -17089,7 +17099,7 @@ var FactoryTarget2;
|
|
|
17089
17099
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
17090
17100
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
17091
17101
|
|
|
17092
|
-
// bazel-out/
|
|
17102
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
17093
17103
|
var R3TargetBinder = class {
|
|
17094
17104
|
constructor(directiveMatcher) {
|
|
17095
17105
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -17441,7 +17451,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
17441
17451
|
return templateEntities;
|
|
17442
17452
|
}
|
|
17443
17453
|
|
|
17444
|
-
// bazel-out/
|
|
17454
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
17445
17455
|
function compileClassMetadata(metadata) {
|
|
17446
17456
|
var _a, _b;
|
|
17447
17457
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -17454,12 +17464,12 @@ function compileClassMetadata(metadata) {
|
|
|
17454
17464
|
return iife.callFn([]);
|
|
17455
17465
|
}
|
|
17456
17466
|
|
|
17457
|
-
// bazel-out/
|
|
17467
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
17458
17468
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
17459
17469
|
function compileDeclareClassMetadata(metadata) {
|
|
17460
17470
|
const definitionMap = new DefinitionMap();
|
|
17461
17471
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
17462
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17472
|
+
definitionMap.set("version", literal("16.0.0-next.4"));
|
|
17463
17473
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17464
17474
|
definitionMap.set("type", metadata.type);
|
|
17465
17475
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -17468,7 +17478,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
17468
17478
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
17469
17479
|
}
|
|
17470
17480
|
|
|
17471
|
-
// bazel-out/
|
|
17481
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
17472
17482
|
function toOptionalLiteralArray(values, mapper) {
|
|
17473
17483
|
if (values === null || values.length === 0) {
|
|
17474
17484
|
return null;
|
|
@@ -17516,7 +17526,7 @@ function compileDependency(dep) {
|
|
|
17516
17526
|
return depMeta.toLiteralMap();
|
|
17517
17527
|
}
|
|
17518
17528
|
|
|
17519
|
-
// bazel-out/
|
|
17529
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
17520
17530
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
17521
17531
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
17522
17532
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -17528,7 +17538,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
17528
17538
|
var _a;
|
|
17529
17539
|
const definitionMap = new DefinitionMap();
|
|
17530
17540
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
17531
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17541
|
+
definitionMap.set("version", literal("16.0.0-next.4"));
|
|
17532
17542
|
definitionMap.set("type", meta.internalType);
|
|
17533
17543
|
if (meta.isStandalone) {
|
|
17534
17544
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -17618,7 +17628,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
17618
17628
|
return literalArr(expressions);
|
|
17619
17629
|
}
|
|
17620
17630
|
|
|
17621
|
-
// bazel-out/
|
|
17631
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
17622
17632
|
function compileDeclareComponentFromMetadata(meta, template, additionalTemplateInfo) {
|
|
17623
17633
|
const definitionMap = createComponentDefinitionMap(meta, template, additionalTemplateInfo);
|
|
17624
17634
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -17705,12 +17715,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
17705
17715
|
});
|
|
17706
17716
|
}
|
|
17707
17717
|
|
|
17708
|
-
// bazel-out/
|
|
17718
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
17709
17719
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
17710
17720
|
function compileDeclareFactoryFunction(meta) {
|
|
17711
17721
|
const definitionMap = new DefinitionMap();
|
|
17712
17722
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
17713
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17723
|
+
definitionMap.set("version", literal("16.0.0-next.4"));
|
|
17714
17724
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17715
17725
|
definitionMap.set("type", meta.internalType);
|
|
17716
17726
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -17722,7 +17732,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
17722
17732
|
};
|
|
17723
17733
|
}
|
|
17724
17734
|
|
|
17725
|
-
// bazel-out/
|
|
17735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
17726
17736
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
17727
17737
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
17728
17738
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -17733,7 +17743,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
17733
17743
|
function createInjectableDefinitionMap(meta) {
|
|
17734
17744
|
const definitionMap = new DefinitionMap();
|
|
17735
17745
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
17736
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17746
|
+
definitionMap.set("version", literal("16.0.0-next.4"));
|
|
17737
17747
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17738
17748
|
definitionMap.set("type", meta.internalType);
|
|
17739
17749
|
if (meta.providedIn !== void 0) {
|
|
@@ -17760,7 +17770,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
17760
17770
|
return definitionMap;
|
|
17761
17771
|
}
|
|
17762
17772
|
|
|
17763
|
-
// bazel-out/
|
|
17773
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
17764
17774
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
17765
17775
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
17766
17776
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -17771,7 +17781,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
17771
17781
|
function createInjectorDefinitionMap(meta) {
|
|
17772
17782
|
const definitionMap = new DefinitionMap();
|
|
17773
17783
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
17774
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17784
|
+
definitionMap.set("version", literal("16.0.0-next.4"));
|
|
17775
17785
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17776
17786
|
definitionMap.set("type", meta.internalType);
|
|
17777
17787
|
definitionMap.set("providers", meta.providers);
|
|
@@ -17781,7 +17791,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
17781
17791
|
return definitionMap;
|
|
17782
17792
|
}
|
|
17783
17793
|
|
|
17784
|
-
// bazel-out/
|
|
17794
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
17785
17795
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
17786
17796
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
17787
17797
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -17792,7 +17802,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
17792
17802
|
function createNgModuleDefinitionMap(meta) {
|
|
17793
17803
|
const definitionMap = new DefinitionMap();
|
|
17794
17804
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
17795
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17805
|
+
definitionMap.set("version", literal("16.0.0-next.4"));
|
|
17796
17806
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17797
17807
|
definitionMap.set("type", meta.internalType);
|
|
17798
17808
|
if (meta.bootstrap.length > 0) {
|
|
@@ -17816,7 +17826,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
17816
17826
|
return definitionMap;
|
|
17817
17827
|
}
|
|
17818
17828
|
|
|
17819
|
-
// bazel-out/
|
|
17829
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
17820
17830
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
17821
17831
|
function compileDeclarePipeFromMetadata(meta) {
|
|
17822
17832
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -17827,7 +17837,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
17827
17837
|
function createPipeDefinitionMap(meta) {
|
|
17828
17838
|
const definitionMap = new DefinitionMap();
|
|
17829
17839
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
17830
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17840
|
+
definitionMap.set("version", literal("16.0.0-next.4"));
|
|
17831
17841
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17832
17842
|
definitionMap.set("type", meta.internalType);
|
|
17833
17843
|
if (meta.isStandalone) {
|
|
@@ -17840,13 +17850,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
17840
17850
|
return definitionMap;
|
|
17841
17851
|
}
|
|
17842
17852
|
|
|
17843
|
-
// bazel-out/
|
|
17853
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
17844
17854
|
publishFacade(_global);
|
|
17845
17855
|
|
|
17846
|
-
// bazel-out/
|
|
17847
|
-
var VERSION3 = new Version("16.0.0-next.
|
|
17856
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
17857
|
+
var VERSION3 = new Version("16.0.0-next.4");
|
|
17848
17858
|
|
|
17849
|
-
// bazel-out/
|
|
17859
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
17850
17860
|
var EmitFlags;
|
|
17851
17861
|
(function(EmitFlags2) {
|
|
17852
17862
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -17858,13 +17868,13 @@ var EmitFlags;
|
|
|
17858
17868
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
17859
17869
|
})(EmitFlags || (EmitFlags = {}));
|
|
17860
17870
|
|
|
17861
|
-
// bazel-out/
|
|
17871
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
17862
17872
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
17863
17873
|
|
|
17864
|
-
// bazel-out/
|
|
17874
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
17865
17875
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
17866
17876
|
|
|
17867
|
-
// bazel-out/
|
|
17877
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
17868
17878
|
var path = __toESM(require("path"), 1);
|
|
17869
17879
|
function i18nGetExtension(formatName) {
|
|
17870
17880
|
const format = formatName.toLowerCase();
|
|
@@ -17914,10 +17924,10 @@ function getPathNormalizer(basePath) {
|
|
|
17914
17924
|
};
|
|
17915
17925
|
}
|
|
17916
17926
|
|
|
17917
|
-
// bazel-out/
|
|
17927
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17918
17928
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
17919
17929
|
|
|
17920
|
-
// bazel-out/
|
|
17930
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
17921
17931
|
function toNumbers(value) {
|
|
17922
17932
|
const suffixIndex = value.lastIndexOf("-");
|
|
17923
17933
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -17952,7 +17962,7 @@ function compareVersions(v1, v2) {
|
|
|
17952
17962
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
17953
17963
|
}
|
|
17954
17964
|
|
|
17955
|
-
// bazel-out/
|
|
17965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17956
17966
|
var MIN_TS_VERSION = "4.9.3";
|
|
17957
17967
|
var MAX_TS_VERSION = "5.1.0";
|
|
17958
17968
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -17965,13 +17975,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
17965
17975
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
17966
17976
|
}
|
|
17967
17977
|
|
|
17968
|
-
// bazel-out/
|
|
17978
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
17969
17979
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
17970
17980
|
|
|
17971
|
-
// bazel-out/
|
|
17981
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
17972
17982
|
var import_typescript19 = __toESM(require("typescript"), 1);
|
|
17973
17983
|
|
|
17974
|
-
// bazel-out/
|
|
17984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
17975
17985
|
var ErrorCode;
|
|
17976
17986
|
(function(ErrorCode2) {
|
|
17977
17987
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -17999,6 +18009,7 @@ var ErrorCode;
|
|
|
17999
18009
|
ErrorCode2[ErrorCode2["INJECTABLE_INHERITS_INVALID_CONSTRUCTOR"] = 2016] = "INJECTABLE_INHERITS_INVALID_CONSTRUCTOR";
|
|
18000
18010
|
ErrorCode2[ErrorCode2["HOST_DIRECTIVE_UNDEFINED_BINDING"] = 2017] = "HOST_DIRECTIVE_UNDEFINED_BINDING";
|
|
18001
18011
|
ErrorCode2[ErrorCode2["HOST_DIRECTIVE_CONFLICTING_ALIAS"] = 2018] = "HOST_DIRECTIVE_CONFLICTING_ALIAS";
|
|
18012
|
+
ErrorCode2[ErrorCode2["HOST_DIRECTIVE_MISSING_REQUIRED_BINDING"] = 2019] = "HOST_DIRECTIVE_MISSING_REQUIRED_BINDING";
|
|
18002
18013
|
ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
|
|
18003
18014
|
ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
|
|
18004
18015
|
ErrorCode2[ErrorCode2["IMPORT_GENERATION_FAILURE"] = 3004] = "IMPORT_GENERATION_FAILURE";
|
|
@@ -18027,6 +18038,7 @@ var ErrorCode;
|
|
|
18027
18038
|
ErrorCode2[ErrorCode2["WRITE_TO_READ_ONLY_VARIABLE"] = 8005] = "WRITE_TO_READ_ONLY_VARIABLE";
|
|
18028
18039
|
ErrorCode2[ErrorCode2["DUPLICATE_VARIABLE_DECLARATION"] = 8006] = "DUPLICATE_VARIABLE_DECLARATION";
|
|
18029
18040
|
ErrorCode2[ErrorCode2["SPLIT_TWO_WAY_BINDING"] = 8007] = "SPLIT_TWO_WAY_BINDING";
|
|
18041
|
+
ErrorCode2[ErrorCode2["MISSING_REQUIRED_INPUTS"] = 8008] = "MISSING_REQUIRED_INPUTS";
|
|
18030
18042
|
ErrorCode2[ErrorCode2["INVALID_BANANA_IN_BOX"] = 8101] = "INVALID_BANANA_IN_BOX";
|
|
18031
18043
|
ErrorCode2[ErrorCode2["NULLISH_COALESCING_NOT_NULLABLE"] = 8102] = "NULLISH_COALESCING_NOT_NULLABLE";
|
|
18032
18044
|
ErrorCode2[ErrorCode2["MISSING_CONTROL_FLOW_DIRECTIVE"] = 8103] = "MISSING_CONTROL_FLOW_DIRECTIVE";
|
|
@@ -18041,7 +18053,7 @@ var ErrorCode;
|
|
|
18041
18053
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
18042
18054
|
})(ErrorCode || (ErrorCode = {}));
|
|
18043
18055
|
|
|
18044
|
-
// bazel-out/
|
|
18056
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
18045
18057
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
18046
18058
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
18047
18059
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -18053,15 +18065,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
18053
18065
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
18054
18066
|
]);
|
|
18055
18067
|
|
|
18056
|
-
// bazel-out/
|
|
18068
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18057
18069
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
18058
18070
|
|
|
18059
|
-
// bazel-out/
|
|
18071
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
18060
18072
|
function ngErrorCode(code) {
|
|
18061
18073
|
return parseInt("-99" + code);
|
|
18062
18074
|
}
|
|
18063
18075
|
|
|
18064
|
-
// bazel-out/
|
|
18076
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18065
18077
|
var FatalDiagnosticError = class {
|
|
18066
18078
|
constructor(code, node, message, relatedInformation) {
|
|
18067
18079
|
this.code = code;
|
|
@@ -18117,10 +18129,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
18117
18129
|
return messageText;
|
|
18118
18130
|
}
|
|
18119
18131
|
|
|
18120
|
-
// bazel-out/
|
|
18132
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
18121
18133
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
18122
18134
|
|
|
18123
|
-
// bazel-out/
|
|
18135
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
18124
18136
|
var ExtendedTemplateDiagnosticName;
|
|
18125
18137
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
18126
18138
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -18132,7 +18144,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
18132
18144
|
ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
|
|
18133
18145
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
18134
18146
|
|
|
18135
|
-
// bazel-out/
|
|
18147
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
18136
18148
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
18137
18149
|
var Decorator = {
|
|
18138
18150
|
nodeForError: (decorator) => {
|
|
@@ -18167,7 +18179,7 @@ function isConcreteDeclaration(decl) {
|
|
|
18167
18179
|
return decl.kind === 0;
|
|
18168
18180
|
}
|
|
18169
18181
|
|
|
18170
|
-
// bazel-out/
|
|
18182
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
18171
18183
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
18172
18184
|
function typeToValue(typeNode, checker) {
|
|
18173
18185
|
if (typeNode === null) {
|
|
@@ -18333,10 +18345,10 @@ function extractModuleName(node) {
|
|
|
18333
18345
|
return node.moduleSpecifier.text;
|
|
18334
18346
|
}
|
|
18335
18347
|
|
|
18336
|
-
// bazel-out/
|
|
18348
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18337
18349
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
18338
18350
|
|
|
18339
|
-
// bazel-out/
|
|
18351
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
18340
18352
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
18341
18353
|
function isNamedClassDeclaration(node) {
|
|
18342
18354
|
return import_typescript7.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -18345,7 +18357,7 @@ function isIdentifier(node) {
|
|
|
18345
18357
|
return node !== void 0 && import_typescript7.default.isIdentifier(node);
|
|
18346
18358
|
}
|
|
18347
18359
|
|
|
18348
|
-
// bazel-out/
|
|
18360
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18349
18361
|
var TypeScriptReflectionHost = class {
|
|
18350
18362
|
constructor(checker) {
|
|
18351
18363
|
this.checker = checker;
|
|
@@ -18781,13 +18793,13 @@ function getExportedName(decl, originalId) {
|
|
|
18781
18793
|
}
|
|
18782
18794
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
18783
18795
|
|
|
18784
|
-
// bazel-out/
|
|
18796
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
18785
18797
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
18786
18798
|
|
|
18787
|
-
// bazel-out/
|
|
18799
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18788
18800
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
18789
18801
|
|
|
18790
|
-
// bazel-out/
|
|
18802
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
18791
18803
|
var import_typescript10 = __toESM(require("typescript"), 1);
|
|
18792
18804
|
var TS = /\.tsx?$/i;
|
|
18793
18805
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -18888,7 +18900,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
18888
18900
|
return redirectInfo.unredirected;
|
|
18889
18901
|
}
|
|
18890
18902
|
|
|
18891
|
-
// bazel-out/
|
|
18903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
18892
18904
|
function findExportedNameOfNode(target, file, reflector) {
|
|
18893
18905
|
const exports = reflector.getExportsOfModule(file);
|
|
18894
18906
|
if (exports === null) {
|
|
@@ -18908,7 +18920,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
18908
18920
|
return foundExportName;
|
|
18909
18921
|
}
|
|
18910
18922
|
|
|
18911
|
-
// bazel-out/
|
|
18923
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18912
18924
|
var ImportFlags;
|
|
18913
18925
|
(function(ImportFlags2) {
|
|
18914
18926
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -19124,7 +19136,7 @@ var UnifiedModulesStrategy = class {
|
|
|
19124
19136
|
}
|
|
19125
19137
|
};
|
|
19126
19138
|
|
|
19127
|
-
// bazel-out/
|
|
19139
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
19128
19140
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
19129
19141
|
var UnifiedModulesAliasingHost = class {
|
|
19130
19142
|
constructor(unifiedModulesHost) {
|
|
@@ -19191,7 +19203,7 @@ var AliasStrategy = class {
|
|
|
19191
19203
|
}
|
|
19192
19204
|
};
|
|
19193
19205
|
|
|
19194
|
-
// bazel-out/
|
|
19206
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
19195
19207
|
function relativePathBetween(from, to) {
|
|
19196
19208
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
19197
19209
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -19200,7 +19212,7 @@ function normalizeSeparators2(path3) {
|
|
|
19200
19212
|
return path3.replace(/\\/g, "/");
|
|
19201
19213
|
}
|
|
19202
19214
|
|
|
19203
|
-
// bazel-out/
|
|
19215
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
19204
19216
|
var NoopImportRewriter = class {
|
|
19205
19217
|
shouldImportSymbol(symbol, specifier) {
|
|
19206
19218
|
return true;
|
|
@@ -19258,7 +19270,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
19258
19270
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
19259
19271
|
}
|
|
19260
19272
|
|
|
19261
|
-
// bazel-out/
|
|
19273
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
19262
19274
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
19263
19275
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
19264
19276
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -19293,7 +19305,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
19293
19305
|
throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
|
|
19294
19306
|
}
|
|
19295
19307
|
|
|
19296
|
-
// bazel-out/
|
|
19308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
19297
19309
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
19298
19310
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
19299
19311
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -19334,7 +19346,7 @@ var DefaultImportTracker = class {
|
|
|
19334
19346
|
}
|
|
19335
19347
|
};
|
|
19336
19348
|
|
|
19337
|
-
// bazel-out/
|
|
19349
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
19338
19350
|
var Reference2 = class {
|
|
19339
19351
|
constructor(node, bestGuessOwningModule = null) {
|
|
19340
19352
|
this.node = node;
|
|
@@ -19397,7 +19409,7 @@ var Reference2 = class {
|
|
|
19397
19409
|
}
|
|
19398
19410
|
};
|
|
19399
19411
|
|
|
19400
|
-
// bazel-out/
|
|
19412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
19401
19413
|
var ModuleResolver = class {
|
|
19402
19414
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
19403
19415
|
this.program = program;
|
|
@@ -19414,7 +19426,7 @@ var ModuleResolver = class {
|
|
|
19414
19426
|
}
|
|
19415
19427
|
};
|
|
19416
19428
|
|
|
19417
|
-
// bazel-out/
|
|
19429
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
19418
19430
|
function valueReferenceToExpression(valueRef) {
|
|
19419
19431
|
if (valueRef.kind === 2) {
|
|
19420
19432
|
return null;
|
|
@@ -19651,7 +19663,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
19651
19663
|
return import_typescript18.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword) : false;
|
|
19652
19664
|
}
|
|
19653
19665
|
|
|
19654
|
-
// bazel-out/
|
|
19666
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
19655
19667
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
19656
19668
|
const deps = [];
|
|
19657
19669
|
const errors = [];
|
|
@@ -19793,10 +19805,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
19793
19805
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
19794
19806
|
}
|
|
19795
19807
|
|
|
19796
|
-
// bazel-out/
|
|
19808
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
19797
19809
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
19798
19810
|
|
|
19799
|
-
// bazel-out/
|
|
19811
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
19800
19812
|
var MetaKind;
|
|
19801
19813
|
(function(MetaKind2) {
|
|
19802
19814
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -19809,10 +19821,10 @@ var MatchSource;
|
|
|
19809
19821
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
19810
19822
|
})(MatchSource || (MatchSource = {}));
|
|
19811
19823
|
|
|
19812
|
-
// bazel-out/
|
|
19824
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
19813
19825
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
19814
19826
|
|
|
19815
|
-
// bazel-out/
|
|
19827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
19816
19828
|
var ClassPropertyMapping = class {
|
|
19817
19829
|
constructor(forwardMap) {
|
|
19818
19830
|
this.forwardMap = forwardMap;
|
|
@@ -19890,7 +19902,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
19890
19902
|
return reverseMap;
|
|
19891
19903
|
}
|
|
19892
19904
|
|
|
19893
|
-
// bazel-out/
|
|
19905
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
19894
19906
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
19895
19907
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
19896
19908
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -20072,7 +20084,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
20072
20084
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
20073
20085
|
}
|
|
20074
20086
|
|
|
20075
|
-
// bazel-out/
|
|
20087
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
20076
20088
|
var DtsMetadataReader = class {
|
|
20077
20089
|
constructor(checker, reflector) {
|
|
20078
20090
|
this.checker = checker;
|
|
@@ -20179,6 +20191,16 @@ function readInputsType(type) {
|
|
|
20179
20191
|
classPropertyName: member.name.text,
|
|
20180
20192
|
required: false
|
|
20181
20193
|
};
|
|
20194
|
+
} else {
|
|
20195
|
+
const config = readMapType(member.type, (innerValue) => {
|
|
20196
|
+
var _a;
|
|
20197
|
+
return (_a = readStringType(innerValue)) != null ? _a : readBooleanType(innerValue);
|
|
20198
|
+
});
|
|
20199
|
+
inputsMap[member.name.text] = {
|
|
20200
|
+
classPropertyName: member.name.text,
|
|
20201
|
+
bindingPropertyName: config.alias,
|
|
20202
|
+
required: config.required
|
|
20203
|
+
};
|
|
20182
20204
|
}
|
|
20183
20205
|
}
|
|
20184
20206
|
}
|
|
@@ -20230,7 +20252,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
20230
20252
|
return result.length > 0 ? result : null;
|
|
20231
20253
|
}
|
|
20232
20254
|
|
|
20233
|
-
// bazel-out/
|
|
20255
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
20234
20256
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
20235
20257
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
20236
20258
|
if (topMeta === null) {
|
|
@@ -20287,7 +20309,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
20287
20309
|
});
|
|
20288
20310
|
}
|
|
20289
20311
|
|
|
20290
|
-
// bazel-out/
|
|
20312
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
20291
20313
|
var LocalMetadataRegistry = class {
|
|
20292
20314
|
constructor() {
|
|
20293
20315
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -20344,7 +20366,7 @@ var CompoundMetadataRegistry = class {
|
|
|
20344
20366
|
}
|
|
20345
20367
|
};
|
|
20346
20368
|
|
|
20347
|
-
// bazel-out/
|
|
20369
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
20348
20370
|
var ResourceRegistry = class {
|
|
20349
20371
|
constructor() {
|
|
20350
20372
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -20409,7 +20431,7 @@ var ResourceRegistry = class {
|
|
|
20409
20431
|
}
|
|
20410
20432
|
};
|
|
20411
20433
|
|
|
20412
|
-
// bazel-out/
|
|
20434
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
20413
20435
|
var EMPTY_ARRAY = [];
|
|
20414
20436
|
var HostDirectivesResolver = class {
|
|
20415
20437
|
constructor(metaReader) {
|
|
@@ -20449,7 +20471,7 @@ var HostDirectivesResolver = class {
|
|
|
20449
20471
|
const bindings = source.getByBindingPropertyName(publicName);
|
|
20450
20472
|
if (bindings !== null) {
|
|
20451
20473
|
for (const binding of bindings) {
|
|
20452
|
-
result[binding.classPropertyName] = valueResolver(allowedProperties[publicName], binding
|
|
20474
|
+
result[binding.classPropertyName] = valueResolver(allowedProperties[publicName], binding);
|
|
20453
20475
|
}
|
|
20454
20476
|
}
|
|
20455
20477
|
}
|
|
@@ -20458,17 +20480,21 @@ var HostDirectivesResolver = class {
|
|
|
20458
20480
|
return result;
|
|
20459
20481
|
}
|
|
20460
20482
|
};
|
|
20461
|
-
function resolveInput(bindingName,
|
|
20462
|
-
return {
|
|
20483
|
+
function resolveInput(bindingName, binding) {
|
|
20484
|
+
return {
|
|
20485
|
+
bindingPropertyName: bindingName,
|
|
20486
|
+
classPropertyName: binding.classPropertyName,
|
|
20487
|
+
required: binding.required
|
|
20488
|
+
};
|
|
20463
20489
|
}
|
|
20464
20490
|
function resolveOutput(bindingName) {
|
|
20465
20491
|
return bindingName;
|
|
20466
20492
|
}
|
|
20467
20493
|
|
|
20468
|
-
// bazel-out/
|
|
20494
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20469
20495
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
20470
20496
|
|
|
20471
|
-
// bazel-out/
|
|
20497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
20472
20498
|
var DynamicValue = class {
|
|
20473
20499
|
constructor(node, reason, code) {
|
|
20474
20500
|
this.node = node;
|
|
@@ -20558,7 +20584,7 @@ var DynamicValue = class {
|
|
|
20558
20584
|
}
|
|
20559
20585
|
};
|
|
20560
20586
|
|
|
20561
|
-
// bazel-out/
|
|
20587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
20562
20588
|
var ResolvedModule = class {
|
|
20563
20589
|
constructor(exports, evaluate) {
|
|
20564
20590
|
this.exports = exports;
|
|
@@ -20588,7 +20614,7 @@ var EnumValue = class {
|
|
|
20588
20614
|
var KnownFn = class {
|
|
20589
20615
|
};
|
|
20590
20616
|
|
|
20591
|
-
// bazel-out/
|
|
20617
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20592
20618
|
function describeResolvedType(value, maxDepth = 1) {
|
|
20593
20619
|
var _a, _b;
|
|
20594
20620
|
if (value === null) {
|
|
@@ -20717,10 +20743,10 @@ function getContainerNode(node) {
|
|
|
20717
20743
|
return node.getSourceFile();
|
|
20718
20744
|
}
|
|
20719
20745
|
|
|
20720
|
-
// bazel-out/
|
|
20746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20721
20747
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
20722
20748
|
|
|
20723
|
-
// bazel-out/
|
|
20749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
20724
20750
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
20725
20751
|
constructor(lhs) {
|
|
20726
20752
|
super();
|
|
@@ -20791,7 +20817,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
20791
20817
|
}
|
|
20792
20818
|
};
|
|
20793
20819
|
|
|
20794
|
-
// bazel-out/
|
|
20820
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
20795
20821
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
20796
20822
|
};
|
|
20797
20823
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -20844,7 +20870,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
20844
20870
|
}
|
|
20845
20871
|
};
|
|
20846
20872
|
|
|
20847
|
-
// bazel-out/
|
|
20873
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
20848
20874
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
20849
20875
|
var assignTsHelperFn = new AssignHelperFn();
|
|
20850
20876
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -20868,14 +20894,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
20868
20894
|
}
|
|
20869
20895
|
}
|
|
20870
20896
|
|
|
20871
|
-
// bazel-out/
|
|
20897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
20872
20898
|
var SyntheticValue = class {
|
|
20873
20899
|
constructor(value) {
|
|
20874
20900
|
this.value = value;
|
|
20875
20901
|
}
|
|
20876
20902
|
};
|
|
20877
20903
|
|
|
20878
|
-
// bazel-out/
|
|
20904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20879
20905
|
function literalBinaryOp(op) {
|
|
20880
20906
|
return { op, literal: true };
|
|
20881
20907
|
}
|
|
@@ -21473,7 +21499,7 @@ function owningModule(context, override = null) {
|
|
|
21473
21499
|
}
|
|
21474
21500
|
}
|
|
21475
21501
|
|
|
21476
|
-
// bazel-out/
|
|
21502
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
21477
21503
|
var PartialEvaluator = class {
|
|
21478
21504
|
constructor(host, checker, dependencyTracker) {
|
|
21479
21505
|
this.host = host;
|
|
@@ -21493,7 +21519,7 @@ var PartialEvaluator = class {
|
|
|
21493
21519
|
}
|
|
21494
21520
|
};
|
|
21495
21521
|
|
|
21496
|
-
// bazel-out/
|
|
21522
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21497
21523
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
21498
21524
|
const context = [];
|
|
21499
21525
|
for (const decl of data) {
|
|
@@ -21581,19 +21607,28 @@ function validateHostDirectives(origin, hostDirectives, metaReader) {
|
|
|
21581
21607
|
if (hostMeta.isComponent) {
|
|
21582
21608
|
diagnostics.push(makeDiagnostic(ErrorCode.HOST_DIRECTIVE_COMPONENT, current.directive.getOriginForDiagnostics(origin), `Host directive ${hostMeta.name} cannot be a component`));
|
|
21583
21609
|
}
|
|
21584
|
-
|
|
21585
|
-
validateHostDirectiveMappings("
|
|
21610
|
+
const requiredInputNames = Array.from(hostMeta.inputs).filter((input) => input.required).map((input) => input.classPropertyName);
|
|
21611
|
+
validateHostDirectiveMappings("input", current, hostMeta, origin, diagnostics, requiredInputNames.length > 0 ? new Set(requiredInputNames) : null);
|
|
21612
|
+
validateHostDirectiveMappings("output", current, hostMeta, origin, diagnostics, null);
|
|
21586
21613
|
}
|
|
21587
21614
|
return diagnostics;
|
|
21588
21615
|
}
|
|
21589
|
-
function validateHostDirectiveMappings(bindingType, hostDirectiveMeta, meta, origin, diagnostics) {
|
|
21616
|
+
function validateHostDirectiveMappings(bindingType, hostDirectiveMeta, meta, origin, diagnostics, requiredBindings) {
|
|
21590
21617
|
const className = meta.name;
|
|
21591
21618
|
const hostDirectiveMappings = bindingType === "input" ? hostDirectiveMeta.inputs : hostDirectiveMeta.outputs;
|
|
21592
21619
|
const existingBindings = bindingType === "input" ? meta.inputs : meta.outputs;
|
|
21620
|
+
const exposedRequiredBindings = /* @__PURE__ */ new Set();
|
|
21593
21621
|
for (const publicName in hostDirectiveMappings) {
|
|
21594
21622
|
if (hostDirectiveMappings.hasOwnProperty(publicName)) {
|
|
21595
|
-
|
|
21623
|
+
const bindings = existingBindings.getByBindingPropertyName(publicName);
|
|
21624
|
+
if (bindings === null) {
|
|
21596
21625
|
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}.`));
|
|
21626
|
+
} else if (requiredBindings !== null) {
|
|
21627
|
+
for (const field of bindings) {
|
|
21628
|
+
if (requiredBindings.has(field.classPropertyName)) {
|
|
21629
|
+
exposedRequiredBindings.add(field.classPropertyName);
|
|
21630
|
+
}
|
|
21631
|
+
}
|
|
21597
21632
|
}
|
|
21598
21633
|
const remappedPublicName = hostDirectiveMappings[publicName];
|
|
21599
21634
|
const bindingsForPublicName = existingBindings.getByBindingPropertyName(remappedPublicName);
|
|
@@ -21606,6 +21641,18 @@ function validateHostDirectiveMappings(bindingType, hostDirectiveMeta, meta, ori
|
|
|
21606
21641
|
}
|
|
21607
21642
|
}
|
|
21608
21643
|
}
|
|
21644
|
+
if (requiredBindings !== null && requiredBindings.size !== exposedRequiredBindings.size) {
|
|
21645
|
+
const missingBindings = [];
|
|
21646
|
+
for (const publicName of requiredBindings) {
|
|
21647
|
+
if (!exposedRequiredBindings.has(publicName)) {
|
|
21648
|
+
const name = existingBindings.getByClassPropertyName(publicName);
|
|
21649
|
+
if (name) {
|
|
21650
|
+
missingBindings.push(`'${name.bindingPropertyName}'`);
|
|
21651
|
+
}
|
|
21652
|
+
}
|
|
21653
|
+
}
|
|
21654
|
+
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.`));
|
|
21655
|
+
}
|
|
21609
21656
|
}
|
|
21610
21657
|
function getUndecoratedClassWithAngularFeaturesDiagnostic(node) {
|
|
21611
21658
|
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.`);
|
|
@@ -21668,7 +21715,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
21668
21715
|
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}.`);
|
|
21669
21716
|
}
|
|
21670
21717
|
|
|
21671
|
-
// bazel-out/
|
|
21718
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
21672
21719
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
21673
21720
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
21674
21721
|
let resolved = null;
|
|
@@ -21701,7 +21748,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
21701
21748
|
return meta;
|
|
21702
21749
|
}
|
|
21703
21750
|
|
|
21704
|
-
// bazel-out/
|
|
21751
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
21705
21752
|
function compileNgFactoryDefField(metadata) {
|
|
21706
21753
|
const res = compileFactoryFunction(metadata);
|
|
21707
21754
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -21711,7 +21758,7 @@ function compileDeclareFactory(metadata) {
|
|
|
21711
21758
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
21712
21759
|
}
|
|
21713
21760
|
|
|
21714
|
-
// bazel-out/
|
|
21761
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
21715
21762
|
var InjectableClassRegistry = class {
|
|
21716
21763
|
constructor(host, isCore) {
|
|
21717
21764
|
this.host = host;
|
|
@@ -21737,7 +21784,7 @@ var InjectableClassRegistry = class {
|
|
|
21737
21784
|
}
|
|
21738
21785
|
};
|
|
21739
21786
|
|
|
21740
|
-
// bazel-out/
|
|
21787
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
21741
21788
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
21742
21789
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
21743
21790
|
if (!reflection.isClass(clazz)) {
|
|
@@ -21823,13 +21870,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
21823
21870
|
return result.transformed[0];
|
|
21824
21871
|
}
|
|
21825
21872
|
|
|
21826
|
-
// bazel-out/
|
|
21873
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
21827
21874
|
var NoopReferencesRegistry = class {
|
|
21828
21875
|
add(source, ...references) {
|
|
21829
21876
|
}
|
|
21830
21877
|
};
|
|
21831
21878
|
|
|
21832
|
-
// bazel-out/
|
|
21879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
21833
21880
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
21834
21881
|
const schemas = [];
|
|
21835
21882
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -21858,10 +21905,10 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
21858
21905
|
return schemas;
|
|
21859
21906
|
}
|
|
21860
21907
|
|
|
21861
|
-
// bazel-out/
|
|
21908
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
21862
21909
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
21863
21910
|
|
|
21864
|
-
// bazel-out/
|
|
21911
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
21865
21912
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
21866
21913
|
var SemanticSymbol = class {
|
|
21867
21914
|
constructor(decl) {
|
|
@@ -21877,7 +21924,7 @@ function getSymbolIdentifier(decl) {
|
|
|
21877
21924
|
return decl.name.text;
|
|
21878
21925
|
}
|
|
21879
21926
|
|
|
21880
|
-
// bazel-out/
|
|
21927
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
21881
21928
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
21882
21929
|
isPublicApiAffected() {
|
|
21883
21930
|
return false;
|
|
@@ -22019,10 +22066,10 @@ function getImportPath(expr) {
|
|
|
22019
22066
|
}
|
|
22020
22067
|
}
|
|
22021
22068
|
|
|
22022
|
-
// bazel-out/
|
|
22069
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
22023
22070
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
22024
22071
|
|
|
22025
|
-
// bazel-out/
|
|
22072
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
22026
22073
|
function isSymbolEqual(a, b) {
|
|
22027
22074
|
if (a.decl === b.decl) {
|
|
22028
22075
|
return true;
|
|
@@ -22072,7 +22119,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
22072
22119
|
return true;
|
|
22073
22120
|
}
|
|
22074
22121
|
|
|
22075
|
-
// bazel-out/
|
|
22122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
22076
22123
|
function extractSemanticTypeParameters(node) {
|
|
22077
22124
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
22078
22125
|
return null;
|
|
@@ -22092,7 +22139,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
22092
22139
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
22093
22140
|
}
|
|
22094
22141
|
|
|
22095
|
-
// bazel-out/
|
|
22142
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
22096
22143
|
var PerfPhase;
|
|
22097
22144
|
(function(PerfPhase2) {
|
|
22098
22145
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -22159,7 +22206,7 @@ var PerfCheckpoint;
|
|
|
22159
22206
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
22160
22207
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
22161
22208
|
|
|
22162
|
-
// bazel-out/
|
|
22209
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
22163
22210
|
var NoopPerfRecorder = class {
|
|
22164
22211
|
eventCount() {
|
|
22165
22212
|
}
|
|
@@ -22176,7 +22223,7 @@ var NoopPerfRecorder = class {
|
|
|
22176
22223
|
};
|
|
22177
22224
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
22178
22225
|
|
|
22179
|
-
// bazel-out/
|
|
22226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
22180
22227
|
function mark() {
|
|
22181
22228
|
return process.hrtime();
|
|
22182
22229
|
}
|
|
@@ -22185,7 +22232,7 @@ function timeSinceInMicros(mark2) {
|
|
|
22185
22232
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
22186
22233
|
}
|
|
22187
22234
|
|
|
22188
|
-
// bazel-out/
|
|
22235
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
22189
22236
|
var ActivePerfRecorder = class {
|
|
22190
22237
|
static zeroedToNow() {
|
|
22191
22238
|
return new ActivePerfRecorder(mark());
|
|
@@ -22279,14 +22326,14 @@ var DelegatingPerfRecorder = class {
|
|
|
22279
22326
|
}
|
|
22280
22327
|
};
|
|
22281
22328
|
|
|
22282
|
-
// bazel-out/
|
|
22329
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
22283
22330
|
var ComponentScopeKind;
|
|
22284
22331
|
(function(ComponentScopeKind2) {
|
|
22285
22332
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
22286
22333
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
22287
22334
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
22288
22335
|
|
|
22289
|
-
// bazel-out/
|
|
22336
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
22290
22337
|
var CompoundComponentScopeReader = class {
|
|
22291
22338
|
constructor(readers) {
|
|
22292
22339
|
this.readers = readers;
|
|
@@ -22311,7 +22358,7 @@ var CompoundComponentScopeReader = class {
|
|
|
22311
22358
|
}
|
|
22312
22359
|
};
|
|
22313
22360
|
|
|
22314
|
-
// bazel-out/
|
|
22361
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
22315
22362
|
var MetadataDtsModuleScopeResolver = class {
|
|
22316
22363
|
constructor(dtsMetaReader, aliasingHost) {
|
|
22317
22364
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -22386,10 +22433,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
22386
22433
|
}
|
|
22387
22434
|
};
|
|
22388
22435
|
|
|
22389
|
-
// bazel-out/
|
|
22436
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22390
22437
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
22391
22438
|
|
|
22392
|
-
// bazel-out/
|
|
22439
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
22393
22440
|
function getDiagnosticNode(ref, rawExpr) {
|
|
22394
22441
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
22395
22442
|
}
|
|
@@ -22412,7 +22459,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
22412
22459
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
22413
22460
|
}
|
|
22414
22461
|
|
|
22415
|
-
// bazel-out/
|
|
22462
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22416
22463
|
var LocalModuleScopeRegistry = class {
|
|
22417
22464
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
22418
22465
|
this.localReader = localReader;
|
|
@@ -22751,7 +22798,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
22751
22798
|
]);
|
|
22752
22799
|
}
|
|
22753
22800
|
|
|
22754
|
-
// bazel-out/
|
|
22801
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
22755
22802
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
22756
22803
|
var TypeCheckScopeRegistry = class {
|
|
22757
22804
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -22819,7 +22866,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
22819
22866
|
}
|
|
22820
22867
|
};
|
|
22821
22868
|
|
|
22822
|
-
// bazel-out/
|
|
22869
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
22823
22870
|
var CompilationMode;
|
|
22824
22871
|
(function(CompilationMode2) {
|
|
22825
22872
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -22837,7 +22884,7 @@ var HandlerFlags;
|
|
|
22837
22884
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
22838
22885
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
22839
22886
|
|
|
22840
|
-
// bazel-out/
|
|
22887
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
22841
22888
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
22842
22889
|
function aliasTransformFactory(exportStatements) {
|
|
22843
22890
|
return () => {
|
|
@@ -22860,10 +22907,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
22860
22907
|
};
|
|
22861
22908
|
}
|
|
22862
22909
|
|
|
22863
|
-
// bazel-out/
|
|
22910
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22864
22911
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
22865
22912
|
|
|
22866
|
-
// bazel-out/
|
|
22913
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
22867
22914
|
var TraitState;
|
|
22868
22915
|
(function(TraitState2) {
|
|
22869
22916
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -22918,7 +22965,7 @@ var TraitImpl = class {
|
|
|
22918
22965
|
}
|
|
22919
22966
|
};
|
|
22920
22967
|
|
|
22921
|
-
// bazel-out/
|
|
22968
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22922
22969
|
var TraitCompiler = class {
|
|
22923
22970
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
22924
22971
|
this.handlers = handlers;
|
|
@@ -23362,10 +23409,10 @@ function containsErrors(diagnostics) {
|
|
|
23362
23409
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
23363
23410
|
}
|
|
23364
23411
|
|
|
23365
|
-
// bazel-out/
|
|
23412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23366
23413
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
23367
23414
|
|
|
23368
|
-
// bazel-out/
|
|
23415
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
23369
23416
|
var Context = class {
|
|
23370
23417
|
constructor(isStatement) {
|
|
23371
23418
|
this.isStatement = isStatement;
|
|
@@ -23378,7 +23425,7 @@ var Context = class {
|
|
|
23378
23425
|
}
|
|
23379
23426
|
};
|
|
23380
23427
|
|
|
23381
|
-
// bazel-out/
|
|
23428
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
23382
23429
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
23383
23430
|
var ImportManager = class {
|
|
23384
23431
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -23414,7 +23461,7 @@ var ImportManager = class {
|
|
|
23414
23461
|
}
|
|
23415
23462
|
};
|
|
23416
23463
|
|
|
23417
|
-
// bazel-out/
|
|
23464
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
23418
23465
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
23419
23466
|
[UnaryOperator.Minus, "-"],
|
|
23420
23467
|
[UnaryOperator.Plus, "+"]
|
|
@@ -23645,7 +23692,7 @@ function createRange(span) {
|
|
|
23645
23692
|
};
|
|
23646
23693
|
}
|
|
23647
23694
|
|
|
23648
|
-
// bazel-out/
|
|
23695
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23649
23696
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
23650
23697
|
function translateType(type, imports) {
|
|
23651
23698
|
return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
|
|
@@ -23820,7 +23867,7 @@ var TypeTranslatorVisitor = class {
|
|
|
23820
23867
|
}
|
|
23821
23868
|
};
|
|
23822
23869
|
|
|
23823
|
-
// bazel-out/
|
|
23870
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
23824
23871
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
23825
23872
|
var PureAnnotation;
|
|
23826
23873
|
(function(PureAnnotation2) {
|
|
@@ -24003,7 +24050,7 @@ function attachComments(statement, leadingComments) {
|
|
|
24003
24050
|
}
|
|
24004
24051
|
}
|
|
24005
24052
|
|
|
24006
|
-
// bazel-out/
|
|
24053
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
24007
24054
|
function translateExpression(expression, imports, options = {}) {
|
|
24008
24055
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
24009
24056
|
}
|
|
@@ -24011,7 +24058,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
24011
24058
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
24012
24059
|
}
|
|
24013
24060
|
|
|
24014
|
-
// bazel-out/
|
|
24061
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
24015
24062
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
24016
24063
|
function addImports(importManager, sf, extraStatements = []) {
|
|
24017
24064
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -24047,7 +24094,7 @@ function isImportStatement(stmt) {
|
|
|
24047
24094
|
return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
|
|
24048
24095
|
}
|
|
24049
24096
|
|
|
24050
|
-
// bazel-out/
|
|
24097
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
24051
24098
|
var DtsTransformRegistry = class {
|
|
24052
24099
|
constructor() {
|
|
24053
24100
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -24192,10 +24239,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
24192
24239
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
24193
24240
|
}
|
|
24194
24241
|
|
|
24195
|
-
// bazel-out/
|
|
24242
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24196
24243
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
24197
24244
|
|
|
24198
|
-
// bazel-out/
|
|
24245
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
24199
24246
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
24200
24247
|
function visit(node, visitor, context) {
|
|
24201
24248
|
return visitor._visit(node, context);
|
|
@@ -24256,7 +24303,7 @@ var Visitor = class {
|
|
|
24256
24303
|
}
|
|
24257
24304
|
};
|
|
24258
24305
|
|
|
24259
|
-
// bazel-out/
|
|
24306
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24260
24307
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
24261
24308
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
24262
24309
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -24464,7 +24511,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
24464
24511
|
return array;
|
|
24465
24512
|
}
|
|
24466
24513
|
|
|
24467
|
-
// bazel-out/
|
|
24514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
24468
24515
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
24469
24516
|
var EMPTY_OBJECT = {};
|
|
24470
24517
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -24802,14 +24849,27 @@ function parseInputsArray2(decoratorMetadata, evaluator) {
|
|
|
24802
24849
|
const inputs = {};
|
|
24803
24850
|
const inputsArray = evaluator.evaluate(inputsField);
|
|
24804
24851
|
if (!Array.isArray(inputsArray)) {
|
|
24805
|
-
throw createValueHasWrongTypeError(inputsField, inputsArray, `Failed to resolve @Directive.inputs to
|
|
24852
|
+
throw createValueHasWrongTypeError(inputsField, inputsArray, `Failed to resolve @Directive.inputs to an array`);
|
|
24806
24853
|
}
|
|
24807
|
-
for (
|
|
24854
|
+
for (let i = 0; i < inputsArray.length; i++) {
|
|
24855
|
+
const value = inputsArray[i];
|
|
24808
24856
|
if (typeof value === "string") {
|
|
24809
|
-
const [bindingPropertyName,
|
|
24810
|
-
inputs[
|
|
24857
|
+
const [bindingPropertyName, classPropertyName] = parseMappingString2(value);
|
|
24858
|
+
inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required: false };
|
|
24859
|
+
} else if (value instanceof Map) {
|
|
24860
|
+
const name = value.get("name");
|
|
24861
|
+
const alias = value.get("alias");
|
|
24862
|
+
const required = value.get("required");
|
|
24863
|
+
if (typeof name !== "string") {
|
|
24864
|
+
throw createValueHasWrongTypeError(inputsField, name, `Value at position ${i} of @Directive.inputs array must have a "name" property`);
|
|
24865
|
+
}
|
|
24866
|
+
inputs[name] = {
|
|
24867
|
+
classPropertyName: name,
|
|
24868
|
+
bindingPropertyName: typeof alias === "string" ? alias : name,
|
|
24869
|
+
required: required === true
|
|
24870
|
+
};
|
|
24811
24871
|
} else {
|
|
24812
|
-
throw createValueHasWrongTypeError(inputsField, value,
|
|
24872
|
+
throw createValueHasWrongTypeError(inputsField, value, `@Directive.inputs array can only contain strings or object literals`);
|
|
24813
24873
|
}
|
|
24814
24874
|
}
|
|
24815
24875
|
return inputs;
|
|
@@ -24818,14 +24878,19 @@ function parseInputFields(inputMembers, evaluator) {
|
|
|
24818
24878
|
const inputs = {};
|
|
24819
24879
|
parseDecoratedFields(inputMembers, evaluator, (classPropertyName, options, decorator) => {
|
|
24820
24880
|
let bindingPropertyName;
|
|
24881
|
+
let required = false;
|
|
24821
24882
|
if (options === null) {
|
|
24822
24883
|
bindingPropertyName = classPropertyName;
|
|
24823
24884
|
} else if (typeof options === "string") {
|
|
24824
24885
|
bindingPropertyName = options;
|
|
24886
|
+
} else if (options instanceof Map) {
|
|
24887
|
+
const aliasInConfig = options.get("alias");
|
|
24888
|
+
bindingPropertyName = typeof aliasInConfig === "string" ? aliasInConfig : classPropertyName;
|
|
24889
|
+
required = options.get("required") === true;
|
|
24825
24890
|
} else {
|
|
24826
|
-
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), options, `@${decorator.name} decorator argument must resolve to a string`);
|
|
24891
|
+
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
|
|
24827
24892
|
}
|
|
24828
|
-
inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required
|
|
24893
|
+
inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required };
|
|
24829
24894
|
});
|
|
24830
24895
|
return inputs;
|
|
24831
24896
|
}
|
|
@@ -24916,7 +24981,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
24916
24981
|
};
|
|
24917
24982
|
}
|
|
24918
24983
|
|
|
24919
|
-
// bazel-out/
|
|
24984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
24920
24985
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
24921
24986
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
24922
24987
|
super(decl);
|
|
@@ -24996,7 +25061,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
24996
25061
|
return isSymbolEqual(current, previous);
|
|
24997
25062
|
}
|
|
24998
25063
|
|
|
24999
|
-
// bazel-out/
|
|
25064
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
25000
25065
|
var FIELD_DECORATORS = [
|
|
25001
25066
|
"Input",
|
|
25002
25067
|
"Output",
|
|
@@ -25155,10 +25220,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
25155
25220
|
}
|
|
25156
25221
|
};
|
|
25157
25222
|
|
|
25158
|
-
// bazel-out/
|
|
25223
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25159
25224
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
25160
25225
|
|
|
25161
|
-
// bazel-out/
|
|
25226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
25162
25227
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
25163
25228
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
25164
25229
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -25225,7 +25290,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
25225
25290
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
25226
25291
|
}
|
|
25227
25292
|
|
|
25228
|
-
// bazel-out/
|
|
25293
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25229
25294
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
25230
25295
|
constructor() {
|
|
25231
25296
|
super(...arguments);
|
|
@@ -25721,7 +25786,7 @@ function isSyntheticReference(ref) {
|
|
|
25721
25786
|
return ref.synthetic;
|
|
25722
25787
|
}
|
|
25723
25788
|
|
|
25724
|
-
// bazel-out/
|
|
25789
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
25725
25790
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
25726
25791
|
const name = ref.debugName || "(unknown)";
|
|
25727
25792
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -25744,7 +25809,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
25744
25809
|
return null;
|
|
25745
25810
|
}
|
|
25746
25811
|
|
|
25747
|
-
// bazel-out/
|
|
25812
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
25748
25813
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
25749
25814
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
25750
25815
|
switch (declaration.isInline) {
|
|
@@ -26059,7 +26124,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
26059
26124
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
26060
26125
|
}
|
|
26061
26126
|
|
|
26062
|
-
// bazel-out/
|
|
26127
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
26063
26128
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
26064
26129
|
constructor() {
|
|
26065
26130
|
super(...arguments);
|
|
@@ -26094,7 +26159,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
26094
26159
|
}
|
|
26095
26160
|
};
|
|
26096
26161
|
|
|
26097
|
-
// bazel-out/
|
|
26162
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
26098
26163
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
26099
26164
|
if (value instanceof Map) {
|
|
26100
26165
|
const name = value.get("name");
|
|
@@ -26170,7 +26235,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
26170
26235
|
return false;
|
|
26171
26236
|
}
|
|
26172
26237
|
|
|
26173
|
-
// bazel-out/
|
|
26238
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
26174
26239
|
var EMPTY_ARRAY2 = [];
|
|
26175
26240
|
var ComponentDecoratorHandler = class {
|
|
26176
26241
|
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) {
|
|
@@ -26816,7 +26881,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
26816
26881
|
return diagnostics;
|
|
26817
26882
|
}
|
|
26818
26883
|
|
|
26819
|
-
// bazel-out/
|
|
26884
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
26820
26885
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
26821
26886
|
var InjectableDecoratorHandler = class {
|
|
26822
26887
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -27032,7 +27097,7 @@ function getDep(dep, reflector) {
|
|
|
27032
27097
|
return meta;
|
|
27033
27098
|
}
|
|
27034
27099
|
|
|
27035
|
-
// bazel-out/
|
|
27100
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
27036
27101
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
27037
27102
|
var PipeSymbol = class extends SemanticSymbol {
|
|
27038
27103
|
constructor(decl, name) {
|
|
@@ -27177,7 +27242,7 @@ var PipeDecoratorHandler = class {
|
|
|
27177
27242
|
}
|
|
27178
27243
|
};
|
|
27179
27244
|
|
|
27180
|
-
// bazel-out/
|
|
27245
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
27181
27246
|
var CycleAnalyzer = class {
|
|
27182
27247
|
constructor(importGraph) {
|
|
27183
27248
|
this.importGraph = importGraph;
|
|
@@ -27248,7 +27313,7 @@ var Cycle = class {
|
|
|
27248
27313
|
}
|
|
27249
27314
|
};
|
|
27250
27315
|
|
|
27251
|
-
// bazel-out/
|
|
27316
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
27252
27317
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
27253
27318
|
var ImportGraph = class {
|
|
27254
27319
|
constructor(checker, perf) {
|
|
@@ -27340,7 +27405,7 @@ var Found = class {
|
|
|
27340
27405
|
}
|
|
27341
27406
|
};
|
|
27342
27407
|
|
|
27343
|
-
// bazel-out/
|
|
27408
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
27344
27409
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
27345
27410
|
var FlatIndexGenerator = class {
|
|
27346
27411
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -27365,7 +27430,7 @@ export * from '${relativeEntryPoint}';
|
|
|
27365
27430
|
}
|
|
27366
27431
|
};
|
|
27367
27432
|
|
|
27368
|
-
// bazel-out/
|
|
27433
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
27369
27434
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
27370
27435
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
27371
27436
|
let resolvedEntryPoint = null;
|
|
@@ -27381,7 +27446,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
27381
27446
|
return resolvedEntryPoint;
|
|
27382
27447
|
}
|
|
27383
27448
|
|
|
27384
|
-
// bazel-out/
|
|
27449
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
27385
27450
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
27386
27451
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
27387
27452
|
const diagnostics = [];
|
|
@@ -27461,7 +27526,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
27461
27526
|
}
|
|
27462
27527
|
}
|
|
27463
27528
|
|
|
27464
|
-
// bazel-out/
|
|
27529
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
27465
27530
|
var ReferenceGraph = class {
|
|
27466
27531
|
constructor() {
|
|
27467
27532
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -27515,7 +27580,7 @@ var ReferenceGraph = class {
|
|
|
27515
27580
|
}
|
|
27516
27581
|
};
|
|
27517
27582
|
|
|
27518
|
-
// bazel-out/
|
|
27583
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
27519
27584
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
27520
27585
|
var UpdateMode;
|
|
27521
27586
|
(function(UpdateMode2) {
|
|
@@ -27523,13 +27588,13 @@ var UpdateMode;
|
|
|
27523
27588
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
27524
27589
|
})(UpdateMode || (UpdateMode = {}));
|
|
27525
27590
|
|
|
27526
|
-
// bazel-out/
|
|
27591
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27527
27592
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
27528
27593
|
|
|
27529
|
-
// bazel-out/
|
|
27594
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27530
27595
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
27531
27596
|
|
|
27532
|
-
// bazel-out/
|
|
27597
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
27533
27598
|
var NgExtension = Symbol("NgExtension");
|
|
27534
27599
|
function isExtended(sf) {
|
|
27535
27600
|
return sf[NgExtension] !== void 0;
|
|
@@ -27589,13 +27654,13 @@ function retagTsFile(sf) {
|
|
|
27589
27654
|
}
|
|
27590
27655
|
}
|
|
27591
27656
|
|
|
27592
|
-
// bazel-out/
|
|
27657
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
27593
27658
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
27594
27659
|
function makeShimFileName(fileName, suffix) {
|
|
27595
27660
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
27596
27661
|
}
|
|
27597
27662
|
|
|
27598
|
-
// bazel-out/
|
|
27663
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27599
27664
|
var ShimAdapter = class {
|
|
27600
27665
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
27601
27666
|
this.delegate = delegate;
|
|
@@ -27690,7 +27755,7 @@ var ShimAdapter = class {
|
|
|
27690
27755
|
}
|
|
27691
27756
|
};
|
|
27692
27757
|
|
|
27693
|
-
// bazel-out/
|
|
27758
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
27694
27759
|
var ShimReferenceTagger = class {
|
|
27695
27760
|
constructor(shimExtensions) {
|
|
27696
27761
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -27724,7 +27789,7 @@ var ShimReferenceTagger = class {
|
|
|
27724
27789
|
}
|
|
27725
27790
|
};
|
|
27726
27791
|
|
|
27727
|
-
// bazel-out/
|
|
27792
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27728
27793
|
var DelegatingCompilerHost = class {
|
|
27729
27794
|
constructor(delegate) {
|
|
27730
27795
|
this.delegate = delegate;
|
|
@@ -27837,7 +27902,7 @@ var TsCreateProgramDriver = class {
|
|
|
27837
27902
|
}
|
|
27838
27903
|
};
|
|
27839
27904
|
|
|
27840
|
-
// bazel-out/
|
|
27905
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
27841
27906
|
var FileDependencyGraph = class {
|
|
27842
27907
|
constructor() {
|
|
27843
27908
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -27904,7 +27969,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
27904
27969
|
return false;
|
|
27905
27970
|
}
|
|
27906
27971
|
|
|
27907
|
-
// bazel-out/
|
|
27972
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
27908
27973
|
var IncrementalStateKind;
|
|
27909
27974
|
(function(IncrementalStateKind2) {
|
|
27910
27975
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -27912,7 +27977,7 @@ var IncrementalStateKind;
|
|
|
27912
27977
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
27913
27978
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
27914
27979
|
|
|
27915
|
-
// bazel-out/
|
|
27980
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
27916
27981
|
var PhaseKind;
|
|
27917
27982
|
(function(PhaseKind2) {
|
|
27918
27983
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -28113,7 +28178,7 @@ function toOriginalSourceFile(sf) {
|
|
|
28113
28178
|
}
|
|
28114
28179
|
}
|
|
28115
28180
|
|
|
28116
|
-
// bazel-out/
|
|
28181
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
28117
28182
|
var TrackedIncrementalBuildStrategy = class {
|
|
28118
28183
|
constructor() {
|
|
28119
28184
|
this.state = null;
|
|
@@ -28134,7 +28199,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
28134
28199
|
};
|
|
28135
28200
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
28136
28201
|
|
|
28137
|
-
// bazel-out/
|
|
28202
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
28138
28203
|
var IdentifierKind;
|
|
28139
28204
|
(function(IdentifierKind2) {
|
|
28140
28205
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -28152,7 +28217,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
28152
28217
|
}
|
|
28153
28218
|
};
|
|
28154
28219
|
|
|
28155
|
-
// bazel-out/
|
|
28220
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
28156
28221
|
var IndexingContext = class {
|
|
28157
28222
|
constructor() {
|
|
28158
28223
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -28162,7 +28227,7 @@ var IndexingContext = class {
|
|
|
28162
28227
|
}
|
|
28163
28228
|
};
|
|
28164
28229
|
|
|
28165
|
-
// bazel-out/
|
|
28230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
28166
28231
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
28167
28232
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
28168
28233
|
super();
|
|
@@ -28398,7 +28463,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
28398
28463
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
28399
28464
|
}
|
|
28400
28465
|
|
|
28401
|
-
// bazel-out/
|
|
28466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
28402
28467
|
function generateAnalysis(context) {
|
|
28403
28468
|
const analysis = /* @__PURE__ */ new Map();
|
|
28404
28469
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -28434,7 +28499,7 @@ function generateAnalysis(context) {
|
|
|
28434
28499
|
return analysis;
|
|
28435
28500
|
}
|
|
28436
28501
|
|
|
28437
|
-
// bazel-out/
|
|
28502
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
28438
28503
|
var NgModuleIndexImpl = class {
|
|
28439
28504
|
constructor(metaReader, localReader) {
|
|
28440
28505
|
this.metaReader = metaReader;
|
|
@@ -28523,7 +28588,7 @@ var NgModuleIndexImpl = class {
|
|
|
28523
28588
|
}
|
|
28524
28589
|
};
|
|
28525
28590
|
|
|
28526
|
-
// bazel-out/
|
|
28591
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
28527
28592
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
28528
28593
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
28529
28594
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -28671,7 +28736,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
28671
28736
|
};
|
|
28672
28737
|
}
|
|
28673
28738
|
|
|
28674
|
-
// bazel-out/
|
|
28739
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
28675
28740
|
var StandaloneComponentScopeReader = class {
|
|
28676
28741
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
28677
28742
|
this.metaReader = metaReader;
|
|
@@ -28749,21 +28814,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
28749
28814
|
}
|
|
28750
28815
|
};
|
|
28751
28816
|
|
|
28752
|
-
// bazel-out/
|
|
28817
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
28753
28818
|
var OptimizeFor;
|
|
28754
28819
|
(function(OptimizeFor2) {
|
|
28755
28820
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
28756
28821
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
28757
28822
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
28758
28823
|
|
|
28759
|
-
// bazel-out/
|
|
28824
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
28760
28825
|
var CompletionKind;
|
|
28761
28826
|
(function(CompletionKind2) {
|
|
28762
28827
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
28763
28828
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
28764
28829
|
})(CompletionKind || (CompletionKind = {}));
|
|
28765
28830
|
|
|
28766
|
-
// bazel-out/
|
|
28831
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
28767
28832
|
var PotentialImportKind;
|
|
28768
28833
|
(function(PotentialImportKind2) {
|
|
28769
28834
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -28775,7 +28840,7 @@ var PotentialImportMode;
|
|
|
28775
28840
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
28776
28841
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
28777
28842
|
|
|
28778
|
-
// bazel-out/
|
|
28843
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
28779
28844
|
var SymbolKind;
|
|
28780
28845
|
(function(SymbolKind2) {
|
|
28781
28846
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -28791,7 +28856,7 @@ var SymbolKind;
|
|
|
28791
28856
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
28792
28857
|
})(SymbolKind || (SymbolKind = {}));
|
|
28793
28858
|
|
|
28794
|
-
// bazel-out/
|
|
28859
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
28795
28860
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
28796
28861
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
28797
28862
|
var _a;
|
|
@@ -28898,7 +28963,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
28898
28963
|
return import_typescript66.default.createSourceFile(fileName, template, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
|
|
28899
28964
|
}
|
|
28900
28965
|
|
|
28901
|
-
// bazel-out/
|
|
28966
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
28902
28967
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
28903
28968
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
28904
28969
|
function getTemplateId(clazz) {
|
|
@@ -28915,10 +28980,10 @@ function allocateTemplateId(sf) {
|
|
|
28915
28980
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
28916
28981
|
}
|
|
28917
28982
|
|
|
28918
|
-
// bazel-out/
|
|
28983
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
28919
28984
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
28920
28985
|
|
|
28921
|
-
// bazel-out/
|
|
28986
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
28922
28987
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
28923
28988
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
28924
28989
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -29047,7 +29112,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
29047
29112
|
}) || false;
|
|
29048
29113
|
}
|
|
29049
29114
|
|
|
29050
|
-
// bazel-out/
|
|
29115
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
29051
29116
|
var CompletionEngine = class {
|
|
29052
29117
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
29053
29118
|
this.tcb = tcb;
|
|
@@ -29204,10 +29269,10 @@ var CompletionEngine = class {
|
|
|
29204
29269
|
}
|
|
29205
29270
|
};
|
|
29206
29271
|
|
|
29207
|
-
// bazel-out/
|
|
29272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
29208
29273
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
29209
29274
|
|
|
29210
|
-
// bazel-out/
|
|
29275
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
29211
29276
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
29212
29277
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
29213
29278
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -29259,10 +29324,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
29259
29324
|
}
|
|
29260
29325
|
};
|
|
29261
29326
|
|
|
29262
|
-
// bazel-out/
|
|
29327
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29263
29328
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
29264
29329
|
|
|
29265
|
-
// bazel-out/
|
|
29330
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
29266
29331
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
29267
29332
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
29268
29333
|
import_typescript70.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -29336,16 +29401,16 @@ function isAccessExpression(node) {
|
|
|
29336
29401
|
return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
|
|
29337
29402
|
}
|
|
29338
29403
|
|
|
29339
|
-
// bazel-out/
|
|
29404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29340
29405
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
29341
29406
|
|
|
29342
|
-
// bazel-out/
|
|
29407
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29343
29408
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
29344
29409
|
|
|
29345
|
-
// bazel-out/
|
|
29410
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29346
29411
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
29347
29412
|
|
|
29348
|
-
// bazel-out/
|
|
29413
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
29349
29414
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
29350
29415
|
var INELIGIBLE = {};
|
|
29351
29416
|
function canEmitType(type, canEmit) {
|
|
@@ -29420,7 +29485,7 @@ var TypeEmitter = class {
|
|
|
29420
29485
|
}
|
|
29421
29486
|
};
|
|
29422
29487
|
|
|
29423
|
-
// bazel-out/
|
|
29488
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29424
29489
|
var TypeParameterEmitter = class {
|
|
29425
29490
|
constructor(typeParameters, reflector) {
|
|
29426
29491
|
this.typeParameters = typeParameters;
|
|
@@ -29497,7 +29562,7 @@ var TypeParameterEmitter = class {
|
|
|
29497
29562
|
}
|
|
29498
29563
|
};
|
|
29499
29564
|
|
|
29500
|
-
// bazel-out/
|
|
29565
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29501
29566
|
var TcbInliningRequirement;
|
|
29502
29567
|
(function(TcbInliningRequirement2) {
|
|
29503
29568
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -29577,7 +29642,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
29577
29642
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
29578
29643
|
}
|
|
29579
29644
|
|
|
29580
|
-
// bazel-out/
|
|
29645
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29581
29646
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
29582
29647
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
29583
29648
|
const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -29689,7 +29754,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
29689
29754
|
});
|
|
29690
29755
|
}
|
|
29691
29756
|
|
|
29692
|
-
// bazel-out/
|
|
29757
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29693
29758
|
var Environment = class {
|
|
29694
29759
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
29695
29760
|
this.config = config;
|
|
@@ -29781,7 +29846,7 @@ var Environment = class {
|
|
|
29781
29846
|
}
|
|
29782
29847
|
};
|
|
29783
29848
|
|
|
29784
|
-
// bazel-out/
|
|
29849
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
29785
29850
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
29786
29851
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
29787
29852
|
constructor(resolver) {
|
|
@@ -29904,6 +29969,10 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
|
|
|
29904
29969
|
}
|
|
29905
29970
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
|
|
29906
29971
|
}
|
|
29972
|
+
missingRequiredInputs(templateId, element, directiveName, isComponent, inputAliases) {
|
|
29973
|
+
const message = `Required input${inputAliases.length === 1 ? "" : "s"} ${inputAliases.map((n) => `'${n}'`).join(", ")} from ${isComponent ? "component" : "directive"} ${directiveName} must be specified.`;
|
|
29974
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), element.startSourceSpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REQUIRED_INPUTS), message));
|
|
29975
|
+
}
|
|
29907
29976
|
};
|
|
29908
29977
|
function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
|
|
29909
29978
|
return __spreadProps(__spreadValues({}, makeDiagnostic(code, node, messageText, relatedInformation)), {
|
|
@@ -29912,7 +29981,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
29912
29981
|
});
|
|
29913
29982
|
}
|
|
29914
29983
|
|
|
29915
|
-
// bazel-out/
|
|
29984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
29916
29985
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
29917
29986
|
var TypeCheckShimGenerator = class {
|
|
29918
29987
|
constructor() {
|
|
@@ -29930,10 +29999,10 @@ var TypeCheckShimGenerator = class {
|
|
|
29930
29999
|
}
|
|
29931
30000
|
};
|
|
29932
30001
|
|
|
29933
|
-
// bazel-out/
|
|
30002
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
29934
30003
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
29935
30004
|
|
|
29936
|
-
// bazel-out/
|
|
30005
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
29937
30006
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
29938
30007
|
function wrapForDiagnostics(expr) {
|
|
29939
30008
|
return import_typescript79.default.factory.createParenthesizedExpression(expr);
|
|
@@ -29978,7 +30047,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
29978
30047
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
29979
30048
|
}
|
|
29980
30049
|
|
|
29981
|
-
// bazel-out/
|
|
30050
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
29982
30051
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
29983
30052
|
var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
|
|
29984
30053
|
var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
|
|
@@ -30307,7 +30376,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
30307
30376
|
};
|
|
30308
30377
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
30309
30378
|
|
|
30310
|
-
// bazel-out/
|
|
30379
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
30311
30380
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
30312
30381
|
constructor(templateId, boundTarget, oob) {
|
|
30313
30382
|
super();
|
|
@@ -30330,7 +30399,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
|
30330
30399
|
}
|
|
30331
30400
|
};
|
|
30332
30401
|
|
|
30333
|
-
// bazel-out/
|
|
30402
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30334
30403
|
var TcbGenericContextBehavior;
|
|
30335
30404
|
(function(TcbGenericContextBehavior2) {
|
|
30336
30405
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -30634,22 +30703,17 @@ var TcbDirectiveCtorOp = class extends TcbOp {
|
|
|
30634
30703
|
addExpressionIdentifier(id, ExpressionIdentifier.DIRECTIVE);
|
|
30635
30704
|
addParseSpanInfo(id, this.node.startSourceSpan || this.node.sourceSpan);
|
|
30636
30705
|
const genericInputs = /* @__PURE__ */ new Map();
|
|
30637
|
-
const
|
|
30638
|
-
for (const
|
|
30639
|
-
if (!this.tcb.env.config.checkTypeOfAttributes &&
|
|
30706
|
+
const boundAttrs = getBoundAttributes(this.dir, this.node);
|
|
30707
|
+
for (const attr of boundAttrs) {
|
|
30708
|
+
if (!this.tcb.env.config.checkTypeOfAttributes && attr.attribute instanceof TextAttribute) {
|
|
30640
30709
|
continue;
|
|
30641
30710
|
}
|
|
30642
|
-
for (const fieldName of
|
|
30711
|
+
for (const { fieldName } of attr.inputs) {
|
|
30643
30712
|
if (genericInputs.has(fieldName)) {
|
|
30644
30713
|
continue;
|
|
30645
30714
|
}
|
|
30646
|
-
const expression = translateInput(
|
|
30647
|
-
genericInputs.set(fieldName, {
|
|
30648
|
-
type: "binding",
|
|
30649
|
-
field: fieldName,
|
|
30650
|
-
expression,
|
|
30651
|
-
sourceSpan: input.attribute.sourceSpan
|
|
30652
|
-
});
|
|
30715
|
+
const expression = translateInput(attr.attribute, this.tcb, this.scope);
|
|
30716
|
+
genericInputs.set(fieldName, { type: "binding", field: fieldName, expression, sourceSpan: attr.attribute.sourceSpan });
|
|
30653
30717
|
}
|
|
30654
30718
|
}
|
|
30655
30719
|
for (const { classPropertyName } of this.dir.inputs) {
|
|
@@ -30679,12 +30743,16 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
30679
30743
|
}
|
|
30680
30744
|
execute() {
|
|
30681
30745
|
let dirId = null;
|
|
30682
|
-
const
|
|
30683
|
-
|
|
30684
|
-
|
|
30746
|
+
const boundAttrs = getBoundAttributes(this.dir, this.node);
|
|
30747
|
+
const seenRequiredInputs = /* @__PURE__ */ new Set();
|
|
30748
|
+
for (const attr of boundAttrs) {
|
|
30749
|
+
const expr = widenBinding(translateInput(attr.attribute, this.tcb, this.scope), this.tcb);
|
|
30685
30750
|
let assignment = wrapForDiagnostics(expr);
|
|
30686
|
-
for (const fieldName of
|
|
30751
|
+
for (const { fieldName, required } of attr.inputs) {
|
|
30687
30752
|
let target;
|
|
30753
|
+
if (required) {
|
|
30754
|
+
seenRequiredInputs.add(fieldName);
|
|
30755
|
+
}
|
|
30688
30756
|
if (this.dir.coercedInputFields.has(fieldName)) {
|
|
30689
30757
|
const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
|
|
30690
30758
|
if (!import_typescript81.default.isTypeReferenceNode(dirTypeRef)) {
|
|
@@ -30715,19 +30783,31 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
30715
30783
|
}
|
|
30716
30784
|
target = this.dir.stringLiteralInputFields.has(fieldName) ? import_typescript81.default.factory.createElementAccessExpression(dirId, import_typescript81.default.factory.createStringLiteral(fieldName)) : import_typescript81.default.factory.createPropertyAccessExpression(dirId, import_typescript81.default.factory.createIdentifier(fieldName));
|
|
30717
30785
|
}
|
|
30718
|
-
if (
|
|
30719
|
-
addParseSpanInfo(target,
|
|
30786
|
+
if (attr.attribute.keySpan !== void 0) {
|
|
30787
|
+
addParseSpanInfo(target, attr.attribute.keySpan);
|
|
30720
30788
|
}
|
|
30721
30789
|
assignment = import_typescript81.default.factory.createBinaryExpression(target, import_typescript81.default.SyntaxKind.EqualsToken, assignment);
|
|
30722
30790
|
}
|
|
30723
|
-
addParseSpanInfo(assignment,
|
|
30724
|
-
if (!this.tcb.env.config.checkTypeOfAttributes &&
|
|
30791
|
+
addParseSpanInfo(assignment, attr.attribute.sourceSpan);
|
|
30792
|
+
if (!this.tcb.env.config.checkTypeOfAttributes && attr.attribute instanceof TextAttribute) {
|
|
30725
30793
|
markIgnoreDiagnostics(assignment);
|
|
30726
30794
|
}
|
|
30727
30795
|
this.scope.addStatement(import_typescript81.default.factory.createExpressionStatement(assignment));
|
|
30728
30796
|
}
|
|
30797
|
+
this.checkRequiredInputs(seenRequiredInputs);
|
|
30729
30798
|
return null;
|
|
30730
30799
|
}
|
|
30800
|
+
checkRequiredInputs(seenRequiredInputs) {
|
|
30801
|
+
const missing = [];
|
|
30802
|
+
for (const input of this.dir.inputs) {
|
|
30803
|
+
if (input.required && !seenRequiredInputs.has(input.classPropertyName)) {
|
|
30804
|
+
missing.push(input.bindingPropertyName);
|
|
30805
|
+
}
|
|
30806
|
+
}
|
|
30807
|
+
if (missing.length > 0) {
|
|
30808
|
+
this.tcb.oobRecorder.missingRequiredInputs(this.tcb.id, this.node, this.dir.name, this.dir.isComponent, missing);
|
|
30809
|
+
}
|
|
30810
|
+
}
|
|
30731
30811
|
};
|
|
30732
30812
|
var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
|
|
30733
30813
|
constructor(tcb, scope, node, dir) {
|
|
@@ -31326,18 +31406,19 @@ function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
|
31326
31406
|
[import_typescript81.default.factory.createObjectLiteralExpression(members)]
|
|
31327
31407
|
);
|
|
31328
31408
|
}
|
|
31329
|
-
function
|
|
31409
|
+
function getBoundAttributes(directive, node) {
|
|
31330
31410
|
const boundInputs = [];
|
|
31331
31411
|
const processAttribute = (attr) => {
|
|
31332
31412
|
if (attr instanceof BoundAttribute && attr.type !== 0) {
|
|
31333
31413
|
return;
|
|
31334
31414
|
}
|
|
31335
31415
|
const inputs = directive.inputs.getByBindingPropertyName(attr.name);
|
|
31336
|
-
if (inputs
|
|
31337
|
-
|
|
31416
|
+
if (inputs !== null) {
|
|
31417
|
+
boundInputs.push({
|
|
31418
|
+
attribute: attr,
|
|
31419
|
+
inputs: inputs.map((input) => ({ fieldName: input.classPropertyName, required: input.required }))
|
|
31420
|
+
});
|
|
31338
31421
|
}
|
|
31339
|
-
const fieldNames = inputs.map((input) => input.classPropertyName);
|
|
31340
|
-
boundInputs.push({ attribute: attr, fieldNames });
|
|
31341
31422
|
};
|
|
31342
31423
|
node.inputs.forEach(processAttribute);
|
|
31343
31424
|
node.attributes.forEach(processAttribute);
|
|
@@ -31433,7 +31514,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
31433
31514
|
}
|
|
31434
31515
|
};
|
|
31435
31516
|
|
|
31436
|
-
// bazel-out/
|
|
31517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
31437
31518
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
31438
31519
|
var TypeCheckFile = class extends Environment {
|
|
31439
31520
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -31469,7 +31550,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
31469
31550
|
}
|
|
31470
31551
|
};
|
|
31471
31552
|
|
|
31472
|
-
// bazel-out/
|
|
31553
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
31473
31554
|
var InliningMode;
|
|
31474
31555
|
(function(InliningMode2) {
|
|
31475
31556
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -31707,7 +31788,7 @@ function splitStringAtPoints(str, points) {
|
|
|
31707
31788
|
return splits;
|
|
31708
31789
|
}
|
|
31709
31790
|
|
|
31710
|
-
// bazel-out/
|
|
31791
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
31711
31792
|
var LF_CHAR = 10;
|
|
31712
31793
|
var CR_CHAR = 13;
|
|
31713
31794
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -31748,7 +31829,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
31748
31829
|
return low - 1;
|
|
31749
31830
|
}
|
|
31750
31831
|
|
|
31751
|
-
// bazel-out/
|
|
31832
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
31752
31833
|
var TemplateSource = class {
|
|
31753
31834
|
constructor(mapping, file) {
|
|
31754
31835
|
this.mapping = mapping;
|
|
@@ -31799,7 +31880,7 @@ var TemplateSourceManager = class {
|
|
|
31799
31880
|
}
|
|
31800
31881
|
};
|
|
31801
31882
|
|
|
31802
|
-
// bazel-out/
|
|
31883
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
31803
31884
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
31804
31885
|
var SymbolBuilder = class {
|
|
31805
31886
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -32276,7 +32357,7 @@ function sourceSpanEqual(a, b) {
|
|
|
32276
32357
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
32277
32358
|
}
|
|
32278
32359
|
|
|
32279
|
-
// bazel-out/
|
|
32360
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
32280
32361
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
32281
32362
|
var TemplateTypeCheckerImpl = class {
|
|
32282
32363
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -32969,7 +33050,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
32969
33050
|
}
|
|
32970
33051
|
};
|
|
32971
33052
|
|
|
32972
|
-
// bazel-out/
|
|
33053
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
32973
33054
|
var TemplateCheckWithVisitor = class {
|
|
32974
33055
|
run(ctx, component, template) {
|
|
32975
33056
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -33045,7 +33126,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor {
|
|
|
33045
33126
|
}
|
|
33046
33127
|
};
|
|
33047
33128
|
|
|
33048
|
-
// bazel-out/
|
|
33129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
33049
33130
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
33050
33131
|
constructor() {
|
|
33051
33132
|
super(...arguments);
|
|
@@ -33070,7 +33151,7 @@ var factory = {
|
|
|
33070
33151
|
create: () => new InvalidBananaInBoxCheck()
|
|
33071
33152
|
};
|
|
33072
33153
|
|
|
33073
|
-
// bazel-out/
|
|
33154
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
33074
33155
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
33075
33156
|
["ngIf", "NgIf"],
|
|
33076
33157
|
["ngFor", "NgFor"],
|
|
@@ -33114,7 +33195,7 @@ var factory2 = {
|
|
|
33114
33195
|
}
|
|
33115
33196
|
};
|
|
33116
33197
|
|
|
33117
|
-
// bazel-out/
|
|
33198
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
33118
33199
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
33119
33200
|
constructor() {
|
|
33120
33201
|
super(...arguments);
|
|
@@ -33146,7 +33227,7 @@ var factory3 = {
|
|
|
33146
33227
|
create: () => new MissingNgForOfLetCheck()
|
|
33147
33228
|
};
|
|
33148
33229
|
|
|
33149
|
-
// bazel-out/
|
|
33230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
33150
33231
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
33151
33232
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33152
33233
|
constructor() {
|
|
@@ -33190,7 +33271,7 @@ var factory4 = {
|
|
|
33190
33271
|
}
|
|
33191
33272
|
};
|
|
33192
33273
|
|
|
33193
|
-
// bazel-out/
|
|
33274
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
33194
33275
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
33195
33276
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33196
33277
|
constructor() {
|
|
@@ -33235,7 +33316,7 @@ var factory5 = {
|
|
|
33235
33316
|
}
|
|
33236
33317
|
};
|
|
33237
33318
|
|
|
33238
|
-
// bazel-out/
|
|
33319
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
33239
33320
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
33240
33321
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
33241
33322
|
constructor() {
|
|
@@ -33258,7 +33339,7 @@ var factory6 = {
|
|
|
33258
33339
|
create: () => new SuffixNotSupportedCheck()
|
|
33259
33340
|
};
|
|
33260
33341
|
|
|
33261
|
-
// bazel-out/
|
|
33342
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
33262
33343
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
33263
33344
|
constructor() {
|
|
33264
33345
|
super(...arguments);
|
|
@@ -33296,10 +33377,10 @@ var factory7 = {
|
|
|
33296
33377
|
create: () => new TextAttributeNotBindingSpec()
|
|
33297
33378
|
};
|
|
33298
33379
|
|
|
33299
|
-
// bazel-out/
|
|
33380
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33300
33381
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
33301
33382
|
|
|
33302
|
-
// bazel-out/
|
|
33383
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
33303
33384
|
var DiagnosticCategoryLabel;
|
|
33304
33385
|
(function(DiagnosticCategoryLabel2) {
|
|
33305
33386
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -33307,7 +33388,7 @@ var DiagnosticCategoryLabel;
|
|
|
33307
33388
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
33308
33389
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
33309
33390
|
|
|
33310
|
-
// bazel-out/
|
|
33391
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33311
33392
|
var ExtendedTemplateCheckerImpl = class {
|
|
33312
33393
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
33313
33394
|
var _a, _b, _c, _d, _e;
|
|
@@ -33359,7 +33440,7 @@ function assertNever(value) {
|
|
|
33359
33440
|
${value}`);
|
|
33360
33441
|
}
|
|
33361
33442
|
|
|
33362
|
-
// bazel-out/
|
|
33443
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
33363
33444
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
33364
33445
|
factory,
|
|
33365
33446
|
factory4,
|
|
@@ -33370,7 +33451,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
33370
33451
|
factory6
|
|
33371
33452
|
];
|
|
33372
33453
|
|
|
33373
|
-
// bazel-out/
|
|
33454
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
33374
33455
|
var CompilationTicketKind;
|
|
33375
33456
|
(function(CompilationTicketKind2) {
|
|
33376
33457
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -34057,7 +34138,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
34057
34138
|
return versions;
|
|
34058
34139
|
}
|
|
34059
34140
|
|
|
34060
|
-
// bazel-out/
|
|
34141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
34061
34142
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
34062
34143
|
var DelegatingCompilerHost2 = class {
|
|
34063
34144
|
constructor(delegate) {
|
|
@@ -34190,7 +34271,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
34190
34271
|
}
|
|
34191
34272
|
};
|
|
34192
34273
|
|
|
34193
|
-
// bazel-out/
|
|
34274
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
34194
34275
|
var NgtscProgram = class {
|
|
34195
34276
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
34196
34277
|
this.options = options;
|
|
@@ -34408,21 +34489,21 @@ function mergeEmitResults(emitResults) {
|
|
|
34408
34489
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
34409
34490
|
}
|
|
34410
34491
|
|
|
34411
|
-
// bazel-out/
|
|
34492
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
34412
34493
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
34413
34494
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
34414
34495
|
}
|
|
34415
34496
|
|
|
34416
|
-
// bazel-out/
|
|
34497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
34417
34498
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
34418
34499
|
|
|
34419
|
-
// bazel-out/
|
|
34500
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
34420
34501
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
34421
34502
|
|
|
34422
|
-
// bazel-out/
|
|
34503
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
34423
34504
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
34424
34505
|
|
|
34425
|
-
// bazel-out/
|
|
34506
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
34426
34507
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
34427
34508
|
ngDevMode: false,
|
|
34428
34509
|
ngI18nClosureMode: false
|
|
@@ -34431,7 +34512,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
34431
34512
|
ngJitMode: false
|
|
34432
34513
|
});
|
|
34433
34514
|
|
|
34434
|
-
// bazel-out/
|
|
34515
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
34435
34516
|
var LogLevel;
|
|
34436
34517
|
(function(LogLevel2) {
|
|
34437
34518
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -34440,7 +34521,7 @@ var LogLevel;
|
|
|
34440
34521
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
34441
34522
|
})(LogLevel || (LogLevel = {}));
|
|
34442
34523
|
|
|
34443
|
-
// bazel-out/
|
|
34524
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
34444
34525
|
var RESET = "\x1B[0m";
|
|
34445
34526
|
var RED = "\x1B[31m";
|
|
34446
34527
|
var YELLOW = "\x1B[33m";
|
|
@@ -34449,18 +34530,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
34449
34530
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
34450
34531
|
var ERROR = `${RED}Error:${RESET}`;
|
|
34451
34532
|
|
|
34452
|
-
// bazel-out/
|
|
34533
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
34453
34534
|
setFileSystem(new NodeJSFileSystem());
|
|
34454
34535
|
|
|
34455
|
-
// bazel-out/
|
|
34536
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
34456
34537
|
var import_fs2 = require("fs");
|
|
34457
34538
|
var import_path8 = require("path");
|
|
34458
34539
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
34459
34540
|
|
|
34460
|
-
// bazel-out/
|
|
34541
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
34461
34542
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
34462
34543
|
|
|
34463
|
-
// bazel-out/
|
|
34544
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34464
34545
|
var import_path4 = require("path");
|
|
34465
34546
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
34466
34547
|
var ImportManager2 = class {
|
|
@@ -34642,7 +34723,7 @@ ${text}`;
|
|
|
34642
34723
|
}
|
|
34643
34724
|
};
|
|
34644
34725
|
|
|
34645
|
-
// bazel-out/
|
|
34726
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
34646
34727
|
var ChangeTracker = class {
|
|
34647
34728
|
constructor(_printer, _importRemapper) {
|
|
34648
34729
|
this._printer = _printer;
|
|
@@ -34695,7 +34776,7 @@ function normalizePath(path3) {
|
|
|
34695
34776
|
return path3.replace(/\\/g, "/");
|
|
34696
34777
|
}
|
|
34697
34778
|
|
|
34698
|
-
// bazel-out/
|
|
34779
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34699
34780
|
var import_core13 = require("@angular-devkit/core");
|
|
34700
34781
|
function getProjectTsConfigPaths(tree) {
|
|
34701
34782
|
return __async(this, null, function* () {
|
|
@@ -34775,11 +34856,11 @@ function getWorkspace(tree) {
|
|
|
34775
34856
|
});
|
|
34776
34857
|
}
|
|
34777
34858
|
|
|
34778
|
-
// bazel-out/
|
|
34859
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34779
34860
|
var import_path5 = require("path");
|
|
34780
34861
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34781
34862
|
|
|
34782
|
-
// bazel-out/
|
|
34863
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
34783
34864
|
var path2 = __toESM(require("path"), 1);
|
|
34784
34865
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
34785
34866
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -34796,7 +34877,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
34796
34877
|
return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34797
34878
|
}
|
|
34798
34879
|
|
|
34799
|
-
// bazel-out/
|
|
34880
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34800
34881
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
34801
34882
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
34802
34883
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -34825,13 +34906,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
34825
34906
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
34826
34907
|
}
|
|
34827
34908
|
|
|
34828
|
-
// bazel-out/
|
|
34909
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34829
34910
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
34830
34911
|
|
|
34831
|
-
// bazel-out/
|
|
34912
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34832
34913
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
34833
34914
|
|
|
34834
|
-
// bazel-out/
|
|
34915
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
34835
34916
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
34836
34917
|
function getImportOfIdentifier(typeChecker, node) {
|
|
34837
34918
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -34875,7 +34956,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
34875
34956
|
});
|
|
34876
34957
|
}
|
|
34877
34958
|
|
|
34878
|
-
// bazel-out/
|
|
34959
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34879
34960
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
34880
34961
|
if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
|
|
34881
34962
|
return null;
|
|
@@ -34884,7 +34965,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
34884
34965
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
34885
34966
|
}
|
|
34886
34967
|
|
|
34887
|
-
// bazel-out/
|
|
34968
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
34888
34969
|
function getAngularDecorators(typeChecker, decorators) {
|
|
34889
34970
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
34890
34971
|
node,
|
|
@@ -34894,7 +34975,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
34894
34975
|
}));
|
|
34895
34976
|
}
|
|
34896
34977
|
|
|
34897
|
-
// bazel-out/
|
|
34978
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
34898
34979
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
34899
34980
|
function closestNode(node, predicate) {
|
|
34900
34981
|
let current = node.parent;
|
|
@@ -34907,7 +34988,7 @@ function closestNode(node, predicate) {
|
|
|
34907
34988
|
return null;
|
|
34908
34989
|
}
|
|
34909
34990
|
|
|
34910
|
-
// bazel-out/
|
|
34991
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34911
34992
|
var import_path6 = require("path");
|
|
34912
34993
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34913
34994
|
var UniqueItemTracker = class {
|
|
@@ -35077,7 +35158,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
35077
35158
|
}));
|
|
35078
35159
|
}
|
|
35079
35160
|
|
|
35080
|
-
// bazel-out/
|
|
35161
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
35081
35162
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
35082
35163
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
35083
35164
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -35165,7 +35246,7 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35165
35246
|
function removeArrayReferences(locations, tracker) {
|
|
35166
35247
|
for (const [array, toRemove] of locations.getEntries()) {
|
|
35167
35248
|
const newElements = filterRemovedElements(array.elements, toRemove);
|
|
35168
|
-
tracker.replaceNode(array, import_typescript106.default.factory.updateArrayLiteralExpression(array, newElements));
|
|
35249
|
+
tracker.replaceNode(array, import_typescript106.default.factory.updateArrayLiteralExpression(array, import_typescript106.default.factory.createNodeArray(newElements, array.elements.hasTrailingComma)));
|
|
35169
35250
|
}
|
|
35170
35251
|
}
|
|
35171
35252
|
function removeImportReferences(locations, tracker) {
|
|
@@ -35276,14 +35357,14 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
35276
35357
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
35277
35358
|
}
|
|
35278
35359
|
|
|
35279
|
-
// bazel-out/
|
|
35360
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35280
35361
|
var import_path7 = require("path");
|
|
35281
35362
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
35282
35363
|
|
|
35283
|
-
// bazel-out/
|
|
35364
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35284
35365
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
35285
35366
|
|
|
35286
|
-
// bazel-out/
|
|
35367
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
35287
35368
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
35288
35369
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
35289
35370
|
var _a, _b;
|
|
@@ -35292,7 +35373,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
35292
35373
|
return !!(((_a = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a[0]) && ((_b = importSymbol == null ? void 0 : importSymbol.declarations) == null ? void 0 : _b[0])) && nodeSymbol.declarations[0] === importSymbol.declarations[0];
|
|
35293
35374
|
}
|
|
35294
35375
|
|
|
35295
|
-
// bazel-out/
|
|
35376
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35296
35377
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
35297
35378
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35298
35379
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35323,13 +35404,18 @@ function toStandalone(sourceFiles, program, printer, fileImportRemapper, compone
|
|
|
35323
35404
|
return tracker.recordChanges();
|
|
35324
35405
|
}
|
|
35325
35406
|
function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker, typeChecker, importRemapper) {
|
|
35407
|
+
var _a;
|
|
35326
35408
|
const directiveMeta = typeChecker.getDirectiveMetadata(decl);
|
|
35327
35409
|
if (directiveMeta && directiveMeta.decorator && !directiveMeta.isStandalone) {
|
|
35328
35410
|
let decorator = addStandaloneToDecorator(directiveMeta.decorator);
|
|
35329
35411
|
if (directiveMeta.isComponent) {
|
|
35330
35412
|
const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper);
|
|
35331
35413
|
if (importsToAdd.length > 0) {
|
|
35332
|
-
|
|
35414
|
+
const hasTrailingComma = importsToAdd.length > 2 && !!((_a = extractMetadataLiteral(directiveMeta.decorator)) == null ? void 0 : _a.properties.hasTrailingComma);
|
|
35415
|
+
decorator = addPropertyToAngularDecorator(decorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(
|
|
35416
|
+
import_typescript108.default.factory.createNodeArray(importsToAdd, hasTrailingComma),
|
|
35417
|
+
hasTrailingComma
|
|
35418
|
+
)));
|
|
35333
35419
|
}
|
|
35334
35420
|
}
|
|
35335
35421
|
tracker.replaceNode(directiveMeta.decorator, decorator);
|
|
@@ -35388,6 +35474,7 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35388
35474
|
const declarationsToCopy = [];
|
|
35389
35475
|
const properties = [];
|
|
35390
35476
|
const importsProp = findLiteralProperty(literal3, "imports");
|
|
35477
|
+
const hasAnyArrayTrailingComma = literal3.properties.some((prop) => import_typescript108.default.isPropertyAssignment(prop) && import_typescript108.default.isArrayLiteralExpression(prop.initializer) && prop.initializer.elements.hasTrailingComma);
|
|
35391
35478
|
if (import_typescript108.default.isPropertyAssignment(declarationsProp)) {
|
|
35392
35479
|
if (import_typescript108.default.isArrayLiteralExpression(declarationsProp.initializer)) {
|
|
35393
35480
|
for (const el of declarationsProp.initializer.elements) {
|
|
@@ -35407,7 +35494,7 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35407
35494
|
}
|
|
35408
35495
|
}
|
|
35409
35496
|
if (!importsProp && declarationsToCopy.length > 0) {
|
|
35410
|
-
properties.push(import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(declarationsToCopy)));
|
|
35497
|
+
properties.push(import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(import_typescript108.default.factory.createNodeArray(declarationsToCopy, hasAnyArrayTrailingComma && declarationsToCopy.length > 2))));
|
|
35411
35498
|
}
|
|
35412
35499
|
for (const prop of literal3.properties) {
|
|
35413
35500
|
if (!isNamedPropertyAssignment(prop)) {
|
|
@@ -35416,23 +35503,27 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35416
35503
|
}
|
|
35417
35504
|
if (prop === declarationsProp) {
|
|
35418
35505
|
if (declarationsToPreserve.length > 0) {
|
|
35419
|
-
|
|
35506
|
+
const hasTrailingComma = import_typescript108.default.isArrayLiteralExpression(prop.initializer) ? prop.initializer.elements.hasTrailingComma : hasAnyArrayTrailingComma;
|
|
35507
|
+
properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript108.default.factory.createArrayLiteralExpression(import_typescript108.default.factory.createNodeArray(declarationsToPreserve, hasTrailingComma && declarationsToPreserve.length > 2))));
|
|
35420
35508
|
}
|
|
35421
35509
|
continue;
|
|
35422
35510
|
}
|
|
35423
35511
|
if (prop === importsProp && declarationsToCopy.length > 0) {
|
|
35424
35512
|
let initializer;
|
|
35425
35513
|
if (import_typescript108.default.isArrayLiteralExpression(prop.initializer)) {
|
|
35426
|
-
initializer = import_typescript108.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
|
|
35514
|
+
initializer = import_typescript108.default.factory.updateArrayLiteralExpression(prop.initializer, import_typescript108.default.factory.createNodeArray([...prop.initializer.elements, ...declarationsToCopy], prop.initializer.elements.hasTrailingComma));
|
|
35427
35515
|
} else {
|
|
35428
|
-
initializer = import_typescript108.default.factory.createArrayLiteralExpression(
|
|
35516
|
+
initializer = import_typescript108.default.factory.createArrayLiteralExpression(import_typescript108.default.factory.createNodeArray(
|
|
35517
|
+
[import_typescript108.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy],
|
|
35518
|
+
hasAnyArrayTrailingComma && declarationsToCopy.length > 1
|
|
35519
|
+
));
|
|
35429
35520
|
}
|
|
35430
35521
|
properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
35431
35522
|
continue;
|
|
35432
35523
|
}
|
|
35433
35524
|
properties.push(prop);
|
|
35434
35525
|
}
|
|
35435
|
-
tracker.replaceNode(literal3, import_typescript108.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript108.default.EmitHint.Expression);
|
|
35526
|
+
tracker.replaceNode(literal3, import_typescript108.default.factory.updateObjectLiteralExpression(literal3, import_typescript108.default.factory.createNodeArray(properties, literal3.properties.hasTrailingComma)), import_typescript108.default.EmitHint.Expression);
|
|
35436
35527
|
}
|
|
35437
35528
|
function addStandaloneToDecorator(node) {
|
|
35438
35529
|
return addPropertyToAngularDecorator(node, import_typescript108.default.factory.createPropertyAssignment("standalone", import_typescript108.default.factory.createToken(import_typescript108.default.SyntaxKind.TrueKeyword)));
|
|
@@ -35442,14 +35533,16 @@ function addPropertyToAngularDecorator(node, property) {
|
|
|
35442
35533
|
return node;
|
|
35443
35534
|
}
|
|
35444
35535
|
let literalProperties;
|
|
35536
|
+
let hasTrailingComma = false;
|
|
35445
35537
|
if (node.expression.arguments.length === 0) {
|
|
35446
35538
|
literalProperties = [property];
|
|
35447
35539
|
} else if (import_typescript108.default.isObjectLiteralExpression(node.expression.arguments[0])) {
|
|
35540
|
+
hasTrailingComma = node.expression.arguments[0].properties.hasTrailingComma;
|
|
35448
35541
|
literalProperties = [...node.expression.arguments[0].properties, property];
|
|
35449
35542
|
} else {
|
|
35450
35543
|
return node;
|
|
35451
35544
|
}
|
|
35452
|
-
return import_typescript108.default.factory.createDecorator(import_typescript108.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript108.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
|
|
35545
|
+
return import_typescript108.default.factory.createDecorator(import_typescript108.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript108.default.factory.createObjectLiteralExpression(import_typescript108.default.factory.createNodeArray(literalProperties, hasTrailingComma), literalProperties.length > 1)]));
|
|
35453
35546
|
}
|
|
35454
35547
|
function isNamedPropertyAssignment(node) {
|
|
35455
35548
|
return import_typescript108.default.isPropertyAssignment(node) && node.name && import_typescript108.default.isIdentifier(node.name);
|
|
@@ -35556,6 +35649,7 @@ function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
|
|
|
35556
35649
|
return metadata ? metadata.declarations.filter((decl) => import_typescript108.default.isClassDeclaration(decl.node)).map((decl) => decl.node) : [];
|
|
35557
35650
|
}
|
|
35558
35651
|
function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
|
|
35652
|
+
var _a;
|
|
35559
35653
|
const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
|
|
35560
35654
|
const allDeclarations = new Set(declarationsOutsideOfTestFiles);
|
|
35561
35655
|
for (const decorator of decorators) {
|
|
@@ -35572,7 +35666,9 @@ function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tr
|
|
|
35572
35666
|
allDeclarations.add(closestClass);
|
|
35573
35667
|
}
|
|
35574
35668
|
if (importsToAdd && importsToAdd.size > 0) {
|
|
35575
|
-
|
|
35669
|
+
const hasTrailingComma = importsToAdd.size > 2 && !!((_a = extractMetadataLiteral(decorator.node)) == null ? void 0 : _a.properties.hasTrailingComma);
|
|
35670
|
+
const importsArray = import_typescript108.default.factory.createNodeArray(Array.from(importsToAdd), hasTrailingComma);
|
|
35671
|
+
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(importsArray))));
|
|
35576
35672
|
} else {
|
|
35577
35673
|
tracker.replaceNode(decorator.node, newDecorator);
|
|
35578
35674
|
}
|
|
@@ -35640,7 +35736,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
35640
35736
|
return metadata != null && metadata.isStandalone;
|
|
35641
35737
|
}
|
|
35642
35738
|
|
|
35643
|
-
// bazel-out/
|
|
35739
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35644
35740
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
35645
35741
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
35646
35742
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35757,7 +35853,8 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
|
|
|
35757
35853
|
combinedProviders.push(import_typescript109.default.factory.createCallExpression(importProvidersExpression, [], modules));
|
|
35758
35854
|
}
|
|
35759
35855
|
combinedProviders.push(...providers);
|
|
35760
|
-
const
|
|
35856
|
+
const providersArray = import_typescript109.default.factory.createNodeArray(combinedProviders, analysis.metadata.properties.hasTrailingComma && combinedProviders.length > 2);
|
|
35857
|
+
const initializer = remapDynamicImports(sourceFile.fileName, import_typescript109.default.factory.createArrayLiteralExpression(providersArray, combinedProviders.length > 1));
|
|
35761
35858
|
args.push(import_typescript109.default.factory.createObjectLiteralExpression([import_typescript109.default.factory.createPropertyAssignment("providers", initializer)], true));
|
|
35762
35859
|
}
|
|
35763
35860
|
tracker.replaceNode(
|
|
@@ -36016,7 +36113,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
36016
36113
|
return false;
|
|
36017
36114
|
}
|
|
36018
36115
|
|
|
36019
|
-
// bazel-out/
|
|
36116
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
36020
36117
|
var MigrationMode;
|
|
36021
36118
|
(function(MigrationMode2) {
|
|
36022
36119
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|