@angular/core 18.0.1 → 18.0.2
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/esm2022/primitives/event-dispatch/index.mjs +2 -1
- package/esm2022/primitives/event-dispatch/src/dispatcher.mjs +4 -3
- package/esm2022/primitives/event-dispatch/src/event_dispatcher.mjs +4 -6
- package/esm2022/primitives/event-dispatch/src/event_type.mjs +2 -2
- package/esm2022/primitives/signals/src/graph.mjs +6 -5
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +2 -4
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/event_delegation_utils.mjs +68 -0
- package/esm2022/src/hydration/annotate.mjs +18 -7
- package/esm2022/src/hydration/api.mjs +2 -2
- package/esm2022/src/hydration/event_replay.mjs +46 -69
- package/esm2022/src/hydration/tokens.mjs +6 -1
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/instructions/listener.mjs +5 -5
- package/esm2022/src/render3/instructions/shared.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +133 -86
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +9 -10
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +6 -5
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +7 -1
- package/package.json +2 -2
- package/primitives/event-dispatch/index.d.ts +66 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/http-providers/bundle.js +25 -17
- package/schematics/migrations/http-providers/bundle.js.map +2 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +334 -165
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
- package/schematics/ng-generate/control-flow-migration/bundle.js +357 -181
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +807 -494
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/invalid-two-way-bindings/index.mjs
|
|
67
67
|
var invalid_two_way_bindings_exports = {};
|
|
68
68
|
__export(invalid_two_way_bindings_exports, {
|
|
69
69
|
default: () => invalid_two_way_bindings_default
|
|
@@ -72,7 +72,7 @@ module.exports = __toCommonJS(invalid_two_way_bindings_exports);
|
|
|
72
72
|
var import_schematics = require("@angular-devkit/schematics");
|
|
73
73
|
var import_path3 = require("path");
|
|
74
74
|
|
|
75
|
-
// bazel-out/
|
|
75
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
76
76
|
var import_core = require("@angular-devkit/core");
|
|
77
77
|
function getProjectTsConfigPaths(tree) {
|
|
78
78
|
return __async(this, null, function* () {
|
|
@@ -152,11 +152,11 @@ function getWorkspace(tree) {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
// bazel-out/
|
|
155
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
156
156
|
var import_path = require("path");
|
|
157
157
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
158
158
|
|
|
159
|
-
// bazel-out/
|
|
159
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
160
160
|
var path = __toESM(require("path"), 1);
|
|
161
161
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
162
162
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -173,7 +173,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
173
173
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
// bazel-out/
|
|
176
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
177
177
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
178
178
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
179
179
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -206,7 +206,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
206
206
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/invalid-two-way-bindings/analysis.mjs
|
|
210
210
|
var import_path2 = require("path");
|
|
211
211
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
212
212
|
var AnalyzedFile = class {
|
|
@@ -266,7 +266,7 @@ function forEachClass(sourceFile, callback) {
|
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
// bazel-out/
|
|
269
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
270
270
|
var _SELECTOR_REGEXP = new RegExp(
|
|
271
271
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
272
272
|
"g"
|
|
@@ -574,7 +574,7 @@ var SelectorContext = class {
|
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
576
|
|
|
577
|
-
// bazel-out/
|
|
577
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
578
578
|
var ViewEncapsulation;
|
|
579
579
|
(function(ViewEncapsulation2) {
|
|
580
580
|
ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
|
|
@@ -642,7 +642,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
642
642
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
643
643
|
}
|
|
644
644
|
|
|
645
|
-
// bazel-out/
|
|
645
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
646
646
|
var textEncoder;
|
|
647
647
|
function computeDigest(message) {
|
|
648
648
|
return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
|
|
@@ -882,7 +882,7 @@ function wordAt(bytes, index, endian) {
|
|
|
882
882
|
return word;
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
// bazel-out/
|
|
885
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
886
886
|
var TypeModifier;
|
|
887
887
|
(function(TypeModifier2) {
|
|
888
888
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1820,7 +1820,7 @@ function serializeTags(tags) {
|
|
|
1820
1820
|
return out;
|
|
1821
1821
|
}
|
|
1822
1822
|
|
|
1823
|
-
// bazel-out/
|
|
1823
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1824
1824
|
var CONSTANT_PREFIX = "_c";
|
|
1825
1825
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1826
1826
|
var KEY_CONTEXT = {};
|
|
@@ -2008,7 +2008,7 @@ function isLongStringLiteral(expr) {
|
|
|
2008
2008
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2009
2009
|
}
|
|
2010
2010
|
|
|
2011
|
-
// bazel-out/
|
|
2011
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2012
2012
|
var CORE = "@angular/core";
|
|
2013
2013
|
var _Identifiers = class {
|
|
2014
2014
|
};
|
|
@@ -2896,7 +2896,7 @@ var Identifiers = _Identifiers;
|
|
|
2896
2896
|
_Identifiers.unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: CORE };
|
|
2897
2897
|
})();
|
|
2898
2898
|
|
|
2899
|
-
// bazel-out/
|
|
2899
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2900
2900
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2901
2901
|
function dashCaseToCamelCase(input) {
|
|
2902
2902
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2973,7 +2973,7 @@ var Version = class {
|
|
|
2973
2973
|
};
|
|
2974
2974
|
var _global = globalThis;
|
|
2975
2975
|
|
|
2976
|
-
// bazel-out/
|
|
2976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2977
2977
|
var VERSION = 3;
|
|
2978
2978
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2979
2979
|
var SourceMapGenerator = class {
|
|
@@ -3102,7 +3102,7 @@ function toBase64Digit(value) {
|
|
|
3102
3102
|
return B64_DIGITS[value];
|
|
3103
3103
|
}
|
|
3104
3104
|
|
|
3105
|
-
// bazel-out/
|
|
3105
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
3106
3106
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
3107
3107
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
3108
3108
|
var _INDENT_WITH = " ";
|
|
@@ -3590,7 +3590,7 @@ function _createIndent(count) {
|
|
|
3590
3590
|
return res;
|
|
3591
3591
|
}
|
|
3592
3592
|
|
|
3593
|
-
// bazel-out/
|
|
3593
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3594
3594
|
function typeWithParameters(type, numParams) {
|
|
3595
3595
|
if (numParams === 0) {
|
|
3596
3596
|
return expressionType(type);
|
|
@@ -3645,7 +3645,7 @@ function generateForwardRef(expr) {
|
|
|
3645
3645
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3646
3646
|
}
|
|
3647
3647
|
|
|
3648
|
-
// bazel-out/
|
|
3648
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3649
3649
|
var R3FactoryDelegateType;
|
|
3650
3650
|
(function(R3FactoryDelegateType2) {
|
|
3651
3651
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3790,7 +3790,7 @@ function getInjectFn(target) {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
3792
|
|
|
3793
|
-
// bazel-out/
|
|
3793
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
3794
3794
|
var ParserError = class {
|
|
3795
3795
|
constructor(message, input, errLocation, ctxLocation) {
|
|
3796
3796
|
this.input = input;
|
|
@@ -4228,7 +4228,7 @@ var BoundElementProperty = class {
|
|
|
4228
4228
|
}
|
|
4229
4229
|
};
|
|
4230
4230
|
|
|
4231
|
-
// bazel-out/
|
|
4231
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
4232
4232
|
var TagContentType;
|
|
4233
4233
|
(function(TagContentType2) {
|
|
4234
4234
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -4265,7 +4265,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
4265
4265
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
4266
4266
|
}
|
|
4267
4267
|
|
|
4268
|
-
// bazel-out/
|
|
4268
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
4269
4269
|
var Comment = class {
|
|
4270
4270
|
constructor(value, sourceSpan) {
|
|
4271
4271
|
this.value = value;
|
|
@@ -4563,6 +4563,18 @@ var UnknownBlock = class {
|
|
|
4563
4563
|
return visitor.visitUnknownBlock(this);
|
|
4564
4564
|
}
|
|
4565
4565
|
};
|
|
4566
|
+
var LetDeclaration = class {
|
|
4567
|
+
constructor(name, value, sourceSpan, nameSpan, valueSpan) {
|
|
4568
|
+
this.name = name;
|
|
4569
|
+
this.value = value;
|
|
4570
|
+
this.sourceSpan = sourceSpan;
|
|
4571
|
+
this.nameSpan = nameSpan;
|
|
4572
|
+
this.valueSpan = valueSpan;
|
|
4573
|
+
}
|
|
4574
|
+
visit(visitor) {
|
|
4575
|
+
return visitor.visitLetDeclaration(this);
|
|
4576
|
+
}
|
|
4577
|
+
};
|
|
4566
4578
|
var Template = class {
|
|
4567
4579
|
constructor(tagName, attributes, inputs, outputs, templateAttrs, children, references, variables, sourceSpan, startSourceSpan, endSourceSpan, i18n2) {
|
|
4568
4580
|
this.tagName = tagName;
|
|
@@ -4703,6 +4715,8 @@ var RecursiveVisitor = class {
|
|
|
4703
4715
|
}
|
|
4704
4716
|
visitUnknownBlock(block) {
|
|
4705
4717
|
}
|
|
4718
|
+
visitLetDeclaration(decl) {
|
|
4719
|
+
}
|
|
4706
4720
|
};
|
|
4707
4721
|
function visitAll(visitor, nodes) {
|
|
4708
4722
|
const result = [];
|
|
@@ -4721,7 +4735,7 @@ function visitAll(visitor, nodes) {
|
|
|
4721
4735
|
return result;
|
|
4722
4736
|
}
|
|
4723
4737
|
|
|
4724
|
-
// bazel-out/
|
|
4738
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
4725
4739
|
var Message = class {
|
|
4726
4740
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
4727
4741
|
this.nodes = nodes;
|
|
@@ -4861,7 +4875,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4861
4875
|
}
|
|
4862
4876
|
};
|
|
4863
4877
|
|
|
4864
|
-
// bazel-out/
|
|
4878
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4865
4879
|
var _Visitor = class {
|
|
4866
4880
|
visitTag(tag) {
|
|
4867
4881
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4889,12 +4903,12 @@ ${doctype.dtd}
|
|
|
4889
4903
|
};
|
|
4890
4904
|
var _visitor = new _Visitor();
|
|
4891
4905
|
|
|
4892
|
-
// bazel-out/
|
|
4906
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4893
4907
|
function toPublicName(internalName) {
|
|
4894
4908
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4895
4909
|
}
|
|
4896
4910
|
|
|
4897
|
-
// bazel-out/
|
|
4911
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4898
4912
|
var I18N_ATTR = "i18n";
|
|
4899
4913
|
var I18N_ATTR_PREFIX = "i18n-";
|
|
4900
4914
|
var I18N_ICU_VAR_PREFIX = "VAR_";
|
|
@@ -4934,7 +4948,7 @@ function formatI18nPlaceholderName(name, useCamelCase = true) {
|
|
|
4934
4948
|
return postfix ? `${raw}_${postfix}` : raw;
|
|
4935
4949
|
}
|
|
4936
4950
|
|
|
4937
|
-
// bazel-out/
|
|
4951
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4938
4952
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4939
4953
|
var TEMPORARY_NAME = "_t";
|
|
4940
4954
|
var CONTEXT_NAME = "ctx";
|
|
@@ -5061,7 +5075,7 @@ function getAttrsForDirectiveMatching(elOrTpl) {
|
|
|
5061
5075
|
return attributesMap;
|
|
5062
5076
|
}
|
|
5063
5077
|
|
|
5064
|
-
// bazel-out/
|
|
5078
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
5065
5079
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
5066
5080
|
let result = null;
|
|
5067
5081
|
const factoryMeta = {
|
|
@@ -5148,7 +5162,7 @@ function createFactoryFunction(type) {
|
|
|
5148
5162
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
5149
5163
|
}
|
|
5150
5164
|
|
|
5151
|
-
// bazel-out/
|
|
5165
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
5152
5166
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
5153
5167
|
/@/,
|
|
5154
5168
|
/^\s*$/,
|
|
@@ -5171,7 +5185,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
5171
5185
|
}
|
|
5172
5186
|
}
|
|
5173
5187
|
|
|
5174
|
-
// bazel-out/
|
|
5188
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
|
|
5175
5189
|
var InterpolationConfig = class {
|
|
5176
5190
|
static fromArray(markers) {
|
|
5177
5191
|
if (!markers) {
|
|
@@ -5188,7 +5202,7 @@ var InterpolationConfig = class {
|
|
|
5188
5202
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
5189
5203
|
var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
|
|
5190
5204
|
|
|
5191
|
-
// bazel-out/
|
|
5205
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
5192
5206
|
var $EOF = 0;
|
|
5193
5207
|
var $BSPACE = 8;
|
|
5194
5208
|
var $TAB = 9;
|
|
@@ -5270,7 +5284,7 @@ function isQuote(code) {
|
|
|
5270
5284
|
return code === $SQ || code === $DQ || code === $BT;
|
|
5271
5285
|
}
|
|
5272
5286
|
|
|
5273
|
-
// bazel-out/
|
|
5287
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
5274
5288
|
var ParseLocation = class {
|
|
5275
5289
|
constructor(file, offset, line, col) {
|
|
5276
5290
|
this.file = file;
|
|
@@ -5417,7 +5431,7 @@ function sanitizeIdentifier(name) {
|
|
|
5417
5431
|
return name.replace(/\W/g, "_");
|
|
5418
5432
|
}
|
|
5419
5433
|
|
|
5420
|
-
// bazel-out/
|
|
5434
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
5421
5435
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
5422
5436
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
5423
5437
|
constructor() {
|
|
@@ -5510,7 +5524,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
5510
5524
|
}
|
|
5511
5525
|
};
|
|
5512
5526
|
|
|
5513
|
-
// bazel-out/
|
|
5527
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
5514
5528
|
var policy;
|
|
5515
5529
|
function getPolicy() {
|
|
5516
5530
|
if (policy === void 0) {
|
|
@@ -5548,7 +5562,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
5548
5562
|
return fn2.bind(_global);
|
|
5549
5563
|
}
|
|
5550
5564
|
|
|
5551
|
-
// bazel-out/
|
|
5565
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
5552
5566
|
var JitEvaluator = class {
|
|
5553
5567
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
5554
5568
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5636,7 +5650,7 @@ function isUseStrictStatement(statement) {
|
|
|
5636
5650
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5637
5651
|
}
|
|
5638
5652
|
|
|
5639
|
-
// bazel-out/
|
|
5653
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5640
5654
|
function compileInjector(meta) {
|
|
5641
5655
|
const definitionMap = new DefinitionMap();
|
|
5642
5656
|
if (meta.providers !== null) {
|
|
@@ -5653,7 +5667,7 @@ function createInjectorType(meta) {
|
|
|
5653
5667
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5654
5668
|
}
|
|
5655
5669
|
|
|
5656
|
-
// bazel-out/
|
|
5670
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5657
5671
|
var R3JitReflector = class {
|
|
5658
5672
|
constructor(context) {
|
|
5659
5673
|
this.context = context;
|
|
@@ -5669,7 +5683,7 @@ var R3JitReflector = class {
|
|
|
5669
5683
|
}
|
|
5670
5684
|
};
|
|
5671
5685
|
|
|
5672
|
-
// bazel-out/
|
|
5686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5673
5687
|
var R3SelectorScopeMode;
|
|
5674
5688
|
(function(R3SelectorScopeMode2) {
|
|
5675
5689
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5804,7 +5818,7 @@ function tupleOfTypes(types) {
|
|
|
5804
5818
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5805
5819
|
}
|
|
5806
5820
|
|
|
5807
|
-
// bazel-out/
|
|
5821
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5808
5822
|
function compilePipeFromMetadata(metadata) {
|
|
5809
5823
|
const definitionMapValues = [];
|
|
5810
5824
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5825,7 +5839,7 @@ function createPipeType(metadata) {
|
|
|
5825
5839
|
]));
|
|
5826
5840
|
}
|
|
5827
5841
|
|
|
5828
|
-
// bazel-out/
|
|
5842
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5829
5843
|
var R3TemplateDependencyKind;
|
|
5830
5844
|
(function(R3TemplateDependencyKind2) {
|
|
5831
5845
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5833,7 +5847,7 @@ var R3TemplateDependencyKind;
|
|
|
5833
5847
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5834
5848
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5835
5849
|
|
|
5836
|
-
// bazel-out/
|
|
5850
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
5837
5851
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
5838
5852
|
"inherit",
|
|
5839
5853
|
"initial",
|
|
@@ -6313,7 +6327,7 @@ function repeatGroups(groups, multiples) {
|
|
|
6313
6327
|
}
|
|
6314
6328
|
}
|
|
6315
6329
|
|
|
6316
|
-
// bazel-out/
|
|
6330
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
6317
6331
|
var OpKind;
|
|
6318
6332
|
(function(OpKind2) {
|
|
6319
6333
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -6467,7 +6481,7 @@ var TemplateKind;
|
|
|
6467
6481
|
TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
|
|
6468
6482
|
})(TemplateKind || (TemplateKind = {}));
|
|
6469
6483
|
|
|
6470
|
-
// bazel-out/
|
|
6484
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
6471
6485
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
6472
6486
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
6473
6487
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -6495,7 +6509,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
6495
6509
|
return expr[UsesVarOffset] === true;
|
|
6496
6510
|
}
|
|
6497
6511
|
|
|
6498
|
-
// bazel-out/
|
|
6512
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
6499
6513
|
function createStatementOp(statement) {
|
|
6500
6514
|
return __spreadValues({
|
|
6501
6515
|
kind: OpKind.Statement,
|
|
@@ -6517,7 +6531,7 @@ var NEW_OP = {
|
|
|
6517
6531
|
next: null
|
|
6518
6532
|
};
|
|
6519
6533
|
|
|
6520
|
-
// bazel-out/
|
|
6534
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
6521
6535
|
function createInterpolateTextOp(xref, interpolation, sourceSpan) {
|
|
6522
6536
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
6523
6537
|
kind: OpKind.InterpolateText,
|
|
@@ -6697,7 +6711,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
|
|
|
6697
6711
|
}, NEW_OP);
|
|
6698
6712
|
}
|
|
6699
6713
|
|
|
6700
|
-
// bazel-out/
|
|
6714
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
6701
6715
|
var _a;
|
|
6702
6716
|
var _b;
|
|
6703
6717
|
var _c;
|
|
@@ -7559,7 +7573,7 @@ function isStringLiteral(expr) {
|
|
|
7559
7573
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
7560
7574
|
}
|
|
7561
7575
|
|
|
7562
|
-
// bazel-out/
|
|
7576
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
7563
7577
|
var _OpList = class {
|
|
7564
7578
|
constructor() {
|
|
7565
7579
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -7750,14 +7764,14 @@ var OpList = _OpList;
|
|
|
7750
7764
|
_OpList.nextListId = 0;
|
|
7751
7765
|
})();
|
|
7752
7766
|
|
|
7753
|
-
// bazel-out/
|
|
7767
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
7754
7768
|
var SlotHandle = class {
|
|
7755
7769
|
constructor() {
|
|
7756
7770
|
this.slot = null;
|
|
7757
7771
|
}
|
|
7758
7772
|
};
|
|
7759
7773
|
|
|
7760
|
-
// bazel-out/
|
|
7774
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
7761
7775
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
7762
7776
|
OpKind.Element,
|
|
7763
7777
|
OpKind.ElementStart,
|
|
@@ -8061,7 +8075,7 @@ function createI18nAttributesOp(xref, handle, target) {
|
|
|
8061
8075
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8062
8076
|
}
|
|
8063
8077
|
|
|
8064
|
-
// bazel-out/
|
|
8078
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
8065
8079
|
function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
|
|
8066
8080
|
return __spreadValues(__spreadValues({
|
|
8067
8081
|
kind: OpKind.HostProperty,
|
|
@@ -8075,10 +8089,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
|
|
|
8075
8089
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8076
8090
|
}
|
|
8077
8091
|
|
|
8078
|
-
// bazel-out/
|
|
8092
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
8079
8093
|
var CTX_REF = "CTX_REF_MARKER";
|
|
8080
8094
|
|
|
8081
|
-
// bazel-out/
|
|
8095
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8082
8096
|
var CompilationJobKind;
|
|
8083
8097
|
(function(CompilationJobKind2) {
|
|
8084
8098
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -8186,7 +8200,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
8186
8200
|
}
|
|
8187
8201
|
};
|
|
8188
8202
|
|
|
8189
|
-
// bazel-out/
|
|
8203
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
8190
8204
|
function deleteAnyCasts(job) {
|
|
8191
8205
|
for (const unit of job.units) {
|
|
8192
8206
|
for (const op of unit.ops()) {
|
|
@@ -8204,7 +8218,7 @@ function removeAnys(e) {
|
|
|
8204
8218
|
return e;
|
|
8205
8219
|
}
|
|
8206
8220
|
|
|
8207
|
-
// bazel-out/
|
|
8221
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
8208
8222
|
function applyI18nExpressions(job) {
|
|
8209
8223
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
8210
8224
|
for (const unit of job.units) {
|
|
@@ -8247,7 +8261,7 @@ function needsApplication(i18nContexts, op) {
|
|
|
8247
8261
|
return false;
|
|
8248
8262
|
}
|
|
8249
8263
|
|
|
8250
|
-
// bazel-out/
|
|
8264
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
8251
8265
|
function assignI18nSlotDependencies(job) {
|
|
8252
8266
|
for (const unit of job.units) {
|
|
8253
8267
|
let updateOp = unit.update.head;
|
|
@@ -8292,7 +8306,7 @@ function assignI18nSlotDependencies(job) {
|
|
|
8292
8306
|
}
|
|
8293
8307
|
}
|
|
8294
8308
|
|
|
8295
|
-
// bazel-out/
|
|
8309
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
8296
8310
|
function createOpXrefMap(unit) {
|
|
8297
8311
|
const map = /* @__PURE__ */ new Map();
|
|
8298
8312
|
for (const op of unit.create) {
|
|
@@ -8307,7 +8321,7 @@ function createOpXrefMap(unit) {
|
|
|
8307
8321
|
return map;
|
|
8308
8322
|
}
|
|
8309
8323
|
|
|
8310
|
-
// bazel-out/
|
|
8324
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
8311
8325
|
function extractAttributes(job) {
|
|
8312
8326
|
for (const unit of job.units) {
|
|
8313
8327
|
const elements = createOpXrefMap(unit);
|
|
@@ -8436,7 +8450,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
8436
8450
|
}
|
|
8437
8451
|
}
|
|
8438
8452
|
|
|
8439
|
-
// bazel-out/
|
|
8453
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
8440
8454
|
function lookupElement2(elements, xref) {
|
|
8441
8455
|
const el = elements.get(xref);
|
|
8442
8456
|
if (el === void 0) {
|
|
@@ -8493,7 +8507,7 @@ function specializeBindings(job) {
|
|
|
8493
8507
|
}
|
|
8494
8508
|
}
|
|
8495
8509
|
|
|
8496
|
-
// bazel-out/
|
|
8510
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
8497
8511
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
8498
8512
|
Identifiers.attribute,
|
|
8499
8513
|
Identifiers.classProp,
|
|
@@ -8561,7 +8575,7 @@ function chainOperationsInList(opList) {
|
|
|
8561
8575
|
}
|
|
8562
8576
|
}
|
|
8563
8577
|
|
|
8564
|
-
// bazel-out/
|
|
8578
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
8565
8579
|
function collapseSingletonInterpolations(job) {
|
|
8566
8580
|
for (const unit of job.units) {
|
|
8567
8581
|
for (const op of unit.update) {
|
|
@@ -8573,7 +8587,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
8573
8587
|
}
|
|
8574
8588
|
}
|
|
8575
8589
|
|
|
8576
|
-
// bazel-out/
|
|
8590
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
8577
8591
|
function generateConditionalExpressions(job) {
|
|
8578
8592
|
for (const unit of job.units) {
|
|
8579
8593
|
for (const op of unit.ops()) {
|
|
@@ -8610,7 +8624,7 @@ function generateConditionalExpressions(job) {
|
|
|
8610
8624
|
}
|
|
8611
8625
|
}
|
|
8612
8626
|
|
|
8613
|
-
// bazel-out/
|
|
8627
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
8614
8628
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
8615
8629
|
["&&", BinaryOperator.And],
|
|
8616
8630
|
[">", BinaryOperator.Bigger],
|
|
@@ -8667,7 +8681,7 @@ function literalOrArrayLiteral(value) {
|
|
|
8667
8681
|
return literal(value);
|
|
8668
8682
|
}
|
|
8669
8683
|
|
|
8670
|
-
// bazel-out/
|
|
8684
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
8671
8685
|
function collectElementConsts(job) {
|
|
8672
8686
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
8673
8687
|
for (const unit of job.units) {
|
|
@@ -8836,7 +8850,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
8836
8850
|
return literalArr(attrArray);
|
|
8837
8851
|
}
|
|
8838
8852
|
|
|
8839
|
-
// bazel-out/
|
|
8853
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
|
|
8840
8854
|
function convertI18nBindings(job) {
|
|
8841
8855
|
const i18nAttributesByElem = /* @__PURE__ */ new Map();
|
|
8842
8856
|
for (const unit of job.units) {
|
|
@@ -8877,7 +8891,7 @@ function convertI18nBindings(job) {
|
|
|
8877
8891
|
}
|
|
8878
8892
|
}
|
|
8879
8893
|
|
|
8880
|
-
// bazel-out/
|
|
8894
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_defer_deps_fns.mjs
|
|
8881
8895
|
function resolveDeferDepsFns(job) {
|
|
8882
8896
|
var _a2;
|
|
8883
8897
|
for (const unit of job.units) {
|
|
@@ -8902,7 +8916,7 @@ function resolveDeferDepsFns(job) {
|
|
|
8902
8916
|
}
|
|
8903
8917
|
}
|
|
8904
8918
|
|
|
8905
|
-
// bazel-out/
|
|
8919
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
8906
8920
|
function createI18nContexts(job) {
|
|
8907
8921
|
const attrContextByMessage = /* @__PURE__ */ new Map();
|
|
8908
8922
|
for (const unit of job.units) {
|
|
@@ -8980,7 +8994,7 @@ function createI18nContexts(job) {
|
|
|
8980
8994
|
}
|
|
8981
8995
|
}
|
|
8982
8996
|
|
|
8983
|
-
// bazel-out/
|
|
8997
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
|
|
8984
8998
|
function deduplicateTextBindings(job) {
|
|
8985
8999
|
const seen = /* @__PURE__ */ new Map();
|
|
8986
9000
|
for (const unit of job.units) {
|
|
@@ -9002,7 +9016,7 @@ function deduplicateTextBindings(job) {
|
|
|
9002
9016
|
}
|
|
9003
9017
|
}
|
|
9004
9018
|
|
|
9005
|
-
// bazel-out/
|
|
9019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
9006
9020
|
function configureDeferInstructions(job) {
|
|
9007
9021
|
for (const unit of job.units) {
|
|
9008
9022
|
for (const op of unit.create) {
|
|
@@ -9019,7 +9033,7 @@ function configureDeferInstructions(job) {
|
|
|
9019
9033
|
}
|
|
9020
9034
|
}
|
|
9021
9035
|
|
|
9022
|
-
// bazel-out/
|
|
9036
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
9023
9037
|
function resolveDeferTargetNames(job) {
|
|
9024
9038
|
const scopes = /* @__PURE__ */ new Map();
|
|
9025
9039
|
function getScopeForView2(view) {
|
|
@@ -9113,7 +9127,7 @@ var Scope = class {
|
|
|
9113
9127
|
}
|
|
9114
9128
|
};
|
|
9115
9129
|
|
|
9116
|
-
// bazel-out/
|
|
9130
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
9117
9131
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
9118
9132
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
9119
9133
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -9140,7 +9154,7 @@ function collapseEmptyInstructions(job) {
|
|
|
9140
9154
|
}
|
|
9141
9155
|
}
|
|
9142
9156
|
|
|
9143
|
-
// bazel-out/
|
|
9157
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9144
9158
|
function expandSafeReads(job) {
|
|
9145
9159
|
for (const unit of job.units) {
|
|
9146
9160
|
for (const op of unit.ops()) {
|
|
@@ -9276,7 +9290,7 @@ function ternaryTransform(e) {
|
|
|
9276
9290
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9277
9291
|
}
|
|
9278
9292
|
|
|
9279
|
-
// bazel-out/
|
|
9293
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
9280
9294
|
var ESCAPE = "\uFFFD";
|
|
9281
9295
|
var ELEMENT_MARKER = "#";
|
|
9282
9296
|
var TEMPLATE_MARKER = "*";
|
|
@@ -9412,7 +9426,7 @@ function formatValue(value) {
|
|
|
9412
9426
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
9413
9427
|
}
|
|
9414
9428
|
|
|
9415
|
-
// bazel-out/
|
|
9429
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
9416
9430
|
function generateAdvance(job) {
|
|
9417
9431
|
for (const unit of job.units) {
|
|
9418
9432
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -9444,7 +9458,7 @@ function generateAdvance(job) {
|
|
|
9444
9458
|
}
|
|
9445
9459
|
}
|
|
9446
9460
|
|
|
9447
|
-
// bazel-out/
|
|
9461
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
9448
9462
|
function generateProjectionDefs(job) {
|
|
9449
9463
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
9450
9464
|
const selectors = [];
|
|
@@ -9468,7 +9482,7 @@ function generateProjectionDefs(job) {
|
|
|
9468
9482
|
}
|
|
9469
9483
|
}
|
|
9470
9484
|
|
|
9471
|
-
// bazel-out/
|
|
9485
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
9472
9486
|
function generateVariables(job) {
|
|
9473
9487
|
recursivelyProcessView(job.root, null);
|
|
9474
9488
|
}
|
|
@@ -9567,7 +9581,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
9567
9581
|
return newOps;
|
|
9568
9582
|
}
|
|
9569
9583
|
|
|
9570
|
-
// bazel-out/
|
|
9584
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
9571
9585
|
function collectConstExpressions(job) {
|
|
9572
9586
|
for (const unit of job.units) {
|
|
9573
9587
|
for (const op of unit.ops()) {
|
|
@@ -9581,7 +9595,7 @@ function collectConstExpressions(job) {
|
|
|
9581
9595
|
}
|
|
9582
9596
|
}
|
|
9583
9597
|
|
|
9584
|
-
// bazel-out/
|
|
9598
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
9585
9599
|
var STYLE_DOT = "style.";
|
|
9586
9600
|
var CLASS_DOT = "class.";
|
|
9587
9601
|
var STYLE_BANG = "style!";
|
|
@@ -9639,7 +9653,7 @@ function parseProperty(name) {
|
|
|
9639
9653
|
return { property: property2, suffix };
|
|
9640
9654
|
}
|
|
9641
9655
|
|
|
9642
|
-
// bazel-out/
|
|
9656
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
9643
9657
|
function mapLiteral(obj, quoted = false) {
|
|
9644
9658
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
9645
9659
|
key,
|
|
@@ -9648,7 +9662,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
9648
9662
|
})));
|
|
9649
9663
|
}
|
|
9650
9664
|
|
|
9651
|
-
// bazel-out/
|
|
9665
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
9652
9666
|
var IcuSerializerVisitor = class {
|
|
9653
9667
|
visitText(text2) {
|
|
9654
9668
|
return text2.value;
|
|
@@ -9682,7 +9696,7 @@ function serializeIcuNode(icu) {
|
|
|
9682
9696
|
return icu.visit(serializer);
|
|
9683
9697
|
}
|
|
9684
9698
|
|
|
9685
|
-
// bazel-out/
|
|
9699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
9686
9700
|
var TokenType;
|
|
9687
9701
|
(function(TokenType2) {
|
|
9688
9702
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10043,7 +10057,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10043
10057
|
return result;
|
|
10044
10058
|
}
|
|
10045
10059
|
|
|
10046
|
-
// bazel-out/
|
|
10060
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10047
10061
|
var SplitInterpolation = class {
|
|
10048
10062
|
constructor(strings, expressions, offsets) {
|
|
10049
10063
|
this.strings = strings;
|
|
@@ -10925,7 +10939,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
10925
10939
|
return offsetMap;
|
|
10926
10940
|
}
|
|
10927
10941
|
|
|
10928
|
-
// bazel-out/
|
|
10942
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
10929
10943
|
var NodeWithI18n = class {
|
|
10930
10944
|
constructor(sourceSpan, i18n2) {
|
|
10931
10945
|
this.sourceSpan = sourceSpan;
|
|
@@ -11024,6 +11038,18 @@ var BlockParameter = class {
|
|
|
11024
11038
|
return visitor.visitBlockParameter(this, context);
|
|
11025
11039
|
}
|
|
11026
11040
|
};
|
|
11041
|
+
var LetDeclaration2 = class {
|
|
11042
|
+
constructor(name, value, sourceSpan, nameSpan, valueSpan) {
|
|
11043
|
+
this.name = name;
|
|
11044
|
+
this.value = value;
|
|
11045
|
+
this.sourceSpan = sourceSpan;
|
|
11046
|
+
this.nameSpan = nameSpan;
|
|
11047
|
+
this.valueSpan = valueSpan;
|
|
11048
|
+
}
|
|
11049
|
+
visit(visitor, context) {
|
|
11050
|
+
return visitor.visitLetDeclaration(this, context);
|
|
11051
|
+
}
|
|
11052
|
+
};
|
|
11027
11053
|
function visitAll2(visitor, nodes, context = null) {
|
|
11028
11054
|
const result = [];
|
|
11029
11055
|
const visit = visitor.visit ? (ast) => visitor.visit(ast, context) || ast.visit(visitor, context) : (ast) => ast.visit(visitor, context);
|
|
@@ -11036,7 +11062,7 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
11036
11062
|
return result;
|
|
11037
11063
|
}
|
|
11038
11064
|
|
|
11039
|
-
// bazel-out/
|
|
11065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
11040
11066
|
var _SECURITY_SCHEMA;
|
|
11041
11067
|
function SECURITY_SCHEMA() {
|
|
11042
11068
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -11097,11 +11123,11 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
11097
11123
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
11098
11124
|
}
|
|
11099
11125
|
|
|
11100
|
-
// bazel-out/
|
|
11126
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11101
11127
|
var ElementSchemaRegistry = class {
|
|
11102
11128
|
};
|
|
11103
11129
|
|
|
11104
|
-
// bazel-out/
|
|
11130
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11105
11131
|
var BOOLEAN = "boolean";
|
|
11106
11132
|
var NUMBER = "number";
|
|
11107
11133
|
var STRING = "string";
|
|
@@ -11484,7 +11510,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
11484
11510
|
}
|
|
11485
11511
|
}
|
|
11486
11512
|
|
|
11487
|
-
// bazel-out/
|
|
11513
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
11488
11514
|
var HtmlTagDefinition = class {
|
|
11489
11515
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
11490
11516
|
this.closedByChildren = {};
|
|
@@ -11620,7 +11646,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
11620
11646
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
11621
11647
|
}
|
|
11622
11648
|
|
|
11623
|
-
// bazel-out/
|
|
11649
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
11624
11650
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
11625
11651
|
"A": "LINK",
|
|
11626
11652
|
"B": "BOLD_TEXT",
|
|
@@ -11742,7 +11768,7 @@ var PlaceholderRegistry = class {
|
|
|
11742
11768
|
}
|
|
11743
11769
|
};
|
|
11744
11770
|
|
|
11745
|
-
// bazel-out/
|
|
11771
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
11746
11772
|
var _expParser = new Parser(new Lexer());
|
|
11747
11773
|
function createI18nMessageFactory(interpolationConfig, containerBlocks) {
|
|
11748
11774
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
|
|
@@ -11852,6 +11878,9 @@ var _I18nVisitor = class {
|
|
|
11852
11878
|
visitBlockParameter(_parameter, _context) {
|
|
11853
11879
|
throw new Error("Unreachable code");
|
|
11854
11880
|
}
|
|
11881
|
+
visitLetDeclaration(decl, context) {
|
|
11882
|
+
return null;
|
|
11883
|
+
}
|
|
11855
11884
|
_visitTextWithInterpolation(tokens, sourceSpan, context, previousI18n) {
|
|
11856
11885
|
const nodes = [];
|
|
11857
11886
|
let hasInterpolation = false;
|
|
@@ -11921,14 +11950,14 @@ function extractPlaceholderName(input) {
|
|
|
11921
11950
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
11922
11951
|
}
|
|
11923
11952
|
|
|
11924
|
-
// bazel-out/
|
|
11953
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
11925
11954
|
var I18nError = class extends ParseError {
|
|
11926
11955
|
constructor(span, msg) {
|
|
11927
11956
|
super(span, msg);
|
|
11928
11957
|
}
|
|
11929
11958
|
};
|
|
11930
11959
|
|
|
11931
|
-
// bazel-out/
|
|
11960
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
11932
11961
|
var NAMED_ENTITIES = {
|
|
11933
11962
|
"AElig": "\xC6",
|
|
11934
11963
|
"AMP": "&",
|
|
@@ -14059,7 +14088,7 @@ var NAMED_ENTITIES = {
|
|
|
14059
14088
|
var NGSP_UNICODE = "\uE500";
|
|
14060
14089
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14061
14090
|
|
|
14062
|
-
// bazel-out/
|
|
14091
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14063
14092
|
var TokenError = class extends ParseError {
|
|
14064
14093
|
constructor(errorMsg, tokenType, span) {
|
|
14065
14094
|
super(span, errorMsg);
|
|
@@ -14123,6 +14152,7 @@ var _Tokenizer = class {
|
|
|
14123
14152
|
this._preserveLineEndings = options.preserveLineEndings || false;
|
|
14124
14153
|
this._i18nNormalizeLineEndingsInICUs = options.i18nNormalizeLineEndingsInICUs || false;
|
|
14125
14154
|
this._tokenizeBlocks = (_a2 = options.tokenizeBlocks) != null ? _a2 : true;
|
|
14155
|
+
this._tokenizeLet = options.tokenizeLet || false;
|
|
14126
14156
|
try {
|
|
14127
14157
|
this._cursor.init();
|
|
14128
14158
|
} catch (e) {
|
|
@@ -14153,6 +14183,8 @@ var _Tokenizer = class {
|
|
|
14153
14183
|
} else {
|
|
14154
14184
|
this._consumeTagOpen(start);
|
|
14155
14185
|
}
|
|
14186
|
+
} else if (this._tokenizeLet && this._cursor.peek() === $AT && !this._inInterpolation && this._attemptStr("@let")) {
|
|
14187
|
+
this._consumeLetDeclaration(start);
|
|
14156
14188
|
} else if (this._tokenizeBlocks && this._attemptCharCode($AT)) {
|
|
14157
14189
|
this._consumeBlockStart(start);
|
|
14158
14190
|
} else if (this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansionCase() && !this._isInExpansionForm() && this._attemptCharCode($RBRACE)) {
|
|
@@ -14164,7 +14196,7 @@ var _Tokenizer = class {
|
|
|
14164
14196
|
this.handleError(e);
|
|
14165
14197
|
}
|
|
14166
14198
|
}
|
|
14167
|
-
this._beginToken(
|
|
14199
|
+
this._beginToken(33);
|
|
14168
14200
|
this._endToken([]);
|
|
14169
14201
|
}
|
|
14170
14202
|
_getBlockName() {
|
|
@@ -14237,6 +14269,67 @@ var _Tokenizer = class {
|
|
|
14237
14269
|
this._attemptCharCodeUntilFn(isBlockParameterChar);
|
|
14238
14270
|
}
|
|
14239
14271
|
}
|
|
14272
|
+
_consumeLetDeclaration(start) {
|
|
14273
|
+
this._beginToken(29, start);
|
|
14274
|
+
if (isWhitespace(this._cursor.peek())) {
|
|
14275
|
+
this._attemptCharCodeUntilFn(isNotWhitespace);
|
|
14276
|
+
} else {
|
|
14277
|
+
const token = this._endToken([this._cursor.getChars(start)]);
|
|
14278
|
+
token.type = 32;
|
|
14279
|
+
return;
|
|
14280
|
+
}
|
|
14281
|
+
const startToken = this._endToken([this._getLetDeclarationName()]);
|
|
14282
|
+
this._attemptCharCodeUntilFn(isNotWhitespace);
|
|
14283
|
+
if (!this._attemptCharCode($EQ)) {
|
|
14284
|
+
startToken.type = 32;
|
|
14285
|
+
return;
|
|
14286
|
+
}
|
|
14287
|
+
this._attemptCharCodeUntilFn((code) => isNotWhitespace(code) && !isNewLine(code));
|
|
14288
|
+
this._consumeLetDeclarationValue();
|
|
14289
|
+
const endChar = this._cursor.peek();
|
|
14290
|
+
if (endChar === $SEMICOLON) {
|
|
14291
|
+
this._beginToken(31);
|
|
14292
|
+
this._endToken([]);
|
|
14293
|
+
this._cursor.advance();
|
|
14294
|
+
} else {
|
|
14295
|
+
startToken.type = 32;
|
|
14296
|
+
startToken.sourceSpan = this._cursor.getSpan(start);
|
|
14297
|
+
}
|
|
14298
|
+
}
|
|
14299
|
+
_getLetDeclarationName() {
|
|
14300
|
+
const nameCursor = this._cursor.clone();
|
|
14301
|
+
let allowDigit = false;
|
|
14302
|
+
this._attemptCharCodeUntilFn((code) => {
|
|
14303
|
+
if (isAsciiLetter(code) || code === $_ || allowDigit && isDigit(code)) {
|
|
14304
|
+
allowDigit = true;
|
|
14305
|
+
return false;
|
|
14306
|
+
}
|
|
14307
|
+
return true;
|
|
14308
|
+
});
|
|
14309
|
+
return this._cursor.getChars(nameCursor).trim();
|
|
14310
|
+
}
|
|
14311
|
+
_consumeLetDeclarationValue() {
|
|
14312
|
+
const start = this._cursor.clone();
|
|
14313
|
+
this._beginToken(30, start);
|
|
14314
|
+
while (this._cursor.peek() !== $EOF) {
|
|
14315
|
+
const char = this._cursor.peek();
|
|
14316
|
+
if (char === $SEMICOLON) {
|
|
14317
|
+
break;
|
|
14318
|
+
}
|
|
14319
|
+
if (isQuote(char)) {
|
|
14320
|
+
this._cursor.advance();
|
|
14321
|
+
this._attemptCharCodeUntilFn((inner) => {
|
|
14322
|
+
if (inner === $BACKSLASH) {
|
|
14323
|
+
this._cursor.advance();
|
|
14324
|
+
return false;
|
|
14325
|
+
}
|
|
14326
|
+
return inner === char;
|
|
14327
|
+
});
|
|
14328
|
+
}
|
|
14329
|
+
this._cursor.advance();
|
|
14330
|
+
}
|
|
14331
|
+
this._endToken([this._cursor.getChars(start)]);
|
|
14332
|
+
}
|
|
14240
14333
|
_tokenizeExpansionForm() {
|
|
14241
14334
|
if (this.isExpansionFormStart()) {
|
|
14242
14335
|
this._consumeExpansionFormStart();
|
|
@@ -14985,7 +15078,7 @@ var CursorError = class {
|
|
|
14985
15078
|
}
|
|
14986
15079
|
};
|
|
14987
15080
|
|
|
14988
|
-
// bazel-out/
|
|
15081
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
14989
15082
|
var TreeError = class extends ParseError {
|
|
14990
15083
|
static create(elementName, span, msg) {
|
|
14991
15084
|
return new TreeError(elementName, span, msg);
|
|
@@ -15023,7 +15116,7 @@ var _TreeBuilder = class {
|
|
|
15023
15116
|
this._advance();
|
|
15024
15117
|
}
|
|
15025
15118
|
build() {
|
|
15026
|
-
while (this._peek.type !==
|
|
15119
|
+
while (this._peek.type !== 33) {
|
|
15027
15120
|
if (this._peek.type === 0 || this._peek.type === 4) {
|
|
15028
15121
|
this._consumeStartTag(this._advance());
|
|
15029
15122
|
} else if (this._peek.type === 3) {
|
|
@@ -15048,6 +15141,12 @@ var _TreeBuilder = class {
|
|
|
15048
15141
|
} else if (this._peek.type === 28) {
|
|
15049
15142
|
this._closeVoidElement();
|
|
15050
15143
|
this._consumeIncompleteBlock(this._advance());
|
|
15144
|
+
} else if (this._peek.type === 29) {
|
|
15145
|
+
this._closeVoidElement();
|
|
15146
|
+
this._consumeLet(this._advance());
|
|
15147
|
+
} else if (this._peek.type === 32) {
|
|
15148
|
+
this._closeVoidElement();
|
|
15149
|
+
this._consumeIncompleteLet(this._advance());
|
|
15051
15150
|
} else {
|
|
15052
15151
|
this._advance();
|
|
15053
15152
|
}
|
|
@@ -15112,7 +15211,7 @@ var _TreeBuilder = class {
|
|
|
15112
15211
|
if (!exp)
|
|
15113
15212
|
return null;
|
|
15114
15213
|
const end = this._advance();
|
|
15115
|
-
exp.push({ type:
|
|
15214
|
+
exp.push({ type: 33, parts: [], sourceSpan: end.sourceSpan });
|
|
15116
15215
|
const expansionCaseParser = new _TreeBuilder(exp, this.getTagDefinition);
|
|
15117
15216
|
expansionCaseParser.build();
|
|
15118
15217
|
if (expansionCaseParser.errors.length > 0) {
|
|
@@ -15148,7 +15247,7 @@ var _TreeBuilder = class {
|
|
|
15148
15247
|
return null;
|
|
15149
15248
|
}
|
|
15150
15249
|
}
|
|
15151
|
-
if (this._peek.type ===
|
|
15250
|
+
if (this._peek.type === 33) {
|
|
15152
15251
|
this.errors.push(TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));
|
|
15153
15252
|
return null;
|
|
15154
15253
|
}
|
|
@@ -15320,6 +15419,44 @@ var _TreeBuilder = class {
|
|
|
15320
15419
|
this._popContainer(null, Block, null);
|
|
15321
15420
|
this.errors.push(TreeError.create(token.parts[0], span, `Incomplete block "${token.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`));
|
|
15322
15421
|
}
|
|
15422
|
+
_consumeLet(startToken) {
|
|
15423
|
+
const name = startToken.parts[0];
|
|
15424
|
+
let valueToken;
|
|
15425
|
+
let endToken;
|
|
15426
|
+
if (this._peek.type !== 30) {
|
|
15427
|
+
this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Invalid @let declaration "${name}". Declaration must have a value.`));
|
|
15428
|
+
return;
|
|
15429
|
+
} else {
|
|
15430
|
+
valueToken = this._advance();
|
|
15431
|
+
}
|
|
15432
|
+
if (this._peek.type !== 31) {
|
|
15433
|
+
this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Unterminated @let declaration "${name}". Declaration must be terminated with a semicolon.`));
|
|
15434
|
+
return;
|
|
15435
|
+
} else {
|
|
15436
|
+
endToken = this._advance();
|
|
15437
|
+
}
|
|
15438
|
+
const end = endToken.sourceSpan.fullStart;
|
|
15439
|
+
const span = new ParseSourceSpan(startToken.sourceSpan.start, end, startToken.sourceSpan.fullStart);
|
|
15440
|
+
const startOffset = startToken.sourceSpan.toString().lastIndexOf(name);
|
|
15441
|
+
const nameStart = startToken.sourceSpan.start.moveBy(startOffset);
|
|
15442
|
+
const nameSpan = new ParseSourceSpan(nameStart, startToken.sourceSpan.end);
|
|
15443
|
+
const node = new LetDeclaration2(name, valueToken.parts[0], span, nameSpan, valueToken.sourceSpan);
|
|
15444
|
+
this._addToParent(node);
|
|
15445
|
+
}
|
|
15446
|
+
_consumeIncompleteLet(token) {
|
|
15447
|
+
var _a2;
|
|
15448
|
+
const name = (_a2 = token.parts[0]) != null ? _a2 : "";
|
|
15449
|
+
const nameString = name ? ` "${name}"` : "";
|
|
15450
|
+
if (name.length > 0) {
|
|
15451
|
+
const startOffset = token.sourceSpan.toString().lastIndexOf(name);
|
|
15452
|
+
const nameStart = token.sourceSpan.start.moveBy(startOffset);
|
|
15453
|
+
const nameSpan = new ParseSourceSpan(nameStart, token.sourceSpan.end);
|
|
15454
|
+
const valueSpan = new ParseSourceSpan(token.sourceSpan.start, token.sourceSpan.start.moveBy(0));
|
|
15455
|
+
const node = new LetDeclaration2(name, "", token.sourceSpan, nameSpan, valueSpan);
|
|
15456
|
+
this._addToParent(node);
|
|
15457
|
+
}
|
|
15458
|
+
this.errors.push(TreeError.create(token.parts[0], token.sourceSpan, `Incomplete @let declaration${nameString}. @let declarations must be written as \`@let <name> = <value>;\``));
|
|
15459
|
+
}
|
|
15323
15460
|
_getContainer() {
|
|
15324
15461
|
return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
|
|
15325
15462
|
}
|
|
@@ -15369,7 +15506,7 @@ function decodeEntity(match, entity) {
|
|
|
15369
15506
|
return match;
|
|
15370
15507
|
}
|
|
15371
15508
|
|
|
15372
|
-
// bazel-out/
|
|
15509
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15373
15510
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15374
15511
|
"iframe|srcdoc",
|
|
15375
15512
|
"*|innerhtml",
|
|
@@ -15384,7 +15521,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
15384
15521
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
15385
15522
|
}
|
|
15386
15523
|
|
|
15387
|
-
// bazel-out/
|
|
15524
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
15388
15525
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
15389
15526
|
if (htmlNode instanceof NodeWithI18n) {
|
|
15390
15527
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -15492,6 +15629,9 @@ var I18nMetaVisitor = class {
|
|
|
15492
15629
|
visitBlockParameter(parameter, context) {
|
|
15493
15630
|
return parameter;
|
|
15494
15631
|
}
|
|
15632
|
+
visitLetDeclaration(decl, context) {
|
|
15633
|
+
return decl;
|
|
15634
|
+
}
|
|
15495
15635
|
_parseMetadata(meta) {
|
|
15496
15636
|
return typeof meta === "string" ? parseI18nMeta(meta) : meta instanceof Message ? meta : {};
|
|
15497
15637
|
}
|
|
@@ -15541,7 +15681,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
15541
15681
|
return jsDocComment(tags);
|
|
15542
15682
|
}
|
|
15543
15683
|
|
|
15544
|
-
// bazel-out/
|
|
15684
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
15545
15685
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
15546
15686
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
15547
15687
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -15592,7 +15732,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
15592
15732
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
15593
15733
|
}
|
|
15594
15734
|
|
|
15595
|
-
// bazel-out/
|
|
15735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
15596
15736
|
function createLocalizeStatements(variable2, message, params) {
|
|
15597
15737
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
15598
15738
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -15681,7 +15821,7 @@ function createEmptyMessagePart(location) {
|
|
|
15681
15821
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
15682
15822
|
}
|
|
15683
15823
|
|
|
15684
|
-
// bazel-out/
|
|
15824
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
15685
15825
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
15686
15826
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
15687
15827
|
var I18N_ICU_MAPPING_PREFIX = "I18N_EXP_";
|
|
@@ -15852,7 +15992,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
15852
15992
|
return variable(name);
|
|
15853
15993
|
}
|
|
15854
15994
|
|
|
15855
|
-
// bazel-out/
|
|
15995
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
15856
15996
|
function convertI18nText(job) {
|
|
15857
15997
|
var _a2, _b2, _c2;
|
|
15858
15998
|
for (const unit of job.units) {
|
|
@@ -15922,7 +16062,7 @@ function convertI18nText(job) {
|
|
|
15922
16062
|
}
|
|
15923
16063
|
}
|
|
15924
16064
|
|
|
15925
|
-
// bazel-out/
|
|
16065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
15926
16066
|
function liftLocalRefs(job) {
|
|
15927
16067
|
for (const unit of job.units) {
|
|
15928
16068
|
for (const op of unit.create) {
|
|
@@ -15952,7 +16092,7 @@ function serializeLocalRefs(refs) {
|
|
|
15952
16092
|
return literalArr(constRefs);
|
|
15953
16093
|
}
|
|
15954
16094
|
|
|
15955
|
-
// bazel-out/
|
|
16095
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
15956
16096
|
function emitNamespaceChanges(job) {
|
|
15957
16097
|
for (const unit of job.units) {
|
|
15958
16098
|
let activeNamespace = Namespace.HTML;
|
|
@@ -15968,7 +16108,7 @@ function emitNamespaceChanges(job) {
|
|
|
15968
16108
|
}
|
|
15969
16109
|
}
|
|
15970
16110
|
|
|
15971
|
-
// bazel-out/
|
|
16111
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
15972
16112
|
function parse(value) {
|
|
15973
16113
|
const styles = [];
|
|
15974
16114
|
let i = 0;
|
|
@@ -16062,7 +16202,7 @@ function parseExtractedStyles(job) {
|
|
|
16062
16202
|
}
|
|
16063
16203
|
}
|
|
16064
16204
|
|
|
16065
|
-
// bazel-out/
|
|
16205
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16066
16206
|
function nameFunctionsAndVariables(job) {
|
|
16067
16207
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16068
16208
|
}
|
|
@@ -16206,7 +16346,7 @@ function stripImportant(name) {
|
|
|
16206
16346
|
return name;
|
|
16207
16347
|
}
|
|
16208
16348
|
|
|
16209
|
-
// bazel-out/
|
|
16349
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16210
16350
|
function mergeNextContextExpressions(job) {
|
|
16211
16351
|
for (const unit of job.units) {
|
|
16212
16352
|
for (const op of unit.create) {
|
|
@@ -16252,7 +16392,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16252
16392
|
}
|
|
16253
16393
|
}
|
|
16254
16394
|
|
|
16255
|
-
// bazel-out/
|
|
16395
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16256
16396
|
var CONTAINER_TAG = "ng-container";
|
|
16257
16397
|
function generateNgContainerOps(job) {
|
|
16258
16398
|
for (const unit of job.units) {
|
|
@@ -16269,7 +16409,7 @@ function generateNgContainerOps(job) {
|
|
|
16269
16409
|
}
|
|
16270
16410
|
}
|
|
16271
16411
|
|
|
16272
|
-
// bazel-out/
|
|
16412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16273
16413
|
function lookupElement3(elements, xref) {
|
|
16274
16414
|
const el = elements.get(xref);
|
|
16275
16415
|
if (el === void 0) {
|
|
@@ -16299,7 +16439,7 @@ function disableBindings(job) {
|
|
|
16299
16439
|
}
|
|
16300
16440
|
}
|
|
16301
16441
|
|
|
16302
|
-
// bazel-out/
|
|
16442
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16303
16443
|
function generateNullishCoalesceExpressions(job) {
|
|
16304
16444
|
for (const unit of job.units) {
|
|
16305
16445
|
for (const op of unit.ops()) {
|
|
@@ -16315,7 +16455,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
16315
16455
|
}
|
|
16316
16456
|
}
|
|
16317
16457
|
|
|
16318
|
-
// bazel-out/
|
|
16458
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16319
16459
|
function kindTest(kind) {
|
|
16320
16460
|
return (op) => op.kind === kind;
|
|
16321
16461
|
}
|
|
@@ -16405,7 +16545,7 @@ function keepLast(ops) {
|
|
|
16405
16545
|
return ops.slice(ops.length - 1);
|
|
16406
16546
|
}
|
|
16407
16547
|
|
|
16408
|
-
// bazel-out/
|
|
16548
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16409
16549
|
function removeContentSelectors(job) {
|
|
16410
16550
|
for (const unit of job.units) {
|
|
16411
16551
|
const elements = createOpXrefMap(unit);
|
|
@@ -16432,7 +16572,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
16432
16572
|
return el;
|
|
16433
16573
|
}
|
|
16434
16574
|
|
|
16435
|
-
// bazel-out/
|
|
16575
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
16436
16576
|
function createPipes(job) {
|
|
16437
16577
|
for (const unit of job.units) {
|
|
16438
16578
|
processPipeBindingsInView(unit);
|
|
@@ -16480,7 +16620,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
16480
16620
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
16481
16621
|
}
|
|
16482
16622
|
|
|
16483
|
-
// bazel-out/
|
|
16623
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
16484
16624
|
function createVariadicPipes(job) {
|
|
16485
16625
|
for (const unit of job.units) {
|
|
16486
16626
|
for (const op of unit.update) {
|
|
@@ -16497,7 +16637,7 @@ function createVariadicPipes(job) {
|
|
|
16497
16637
|
}
|
|
16498
16638
|
}
|
|
16499
16639
|
|
|
16500
|
-
// bazel-out/
|
|
16640
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
16501
16641
|
function propagateI18nBlocks(job) {
|
|
16502
16642
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
16503
16643
|
}
|
|
@@ -16551,7 +16691,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
16551
16691
|
}
|
|
16552
16692
|
}
|
|
16553
16693
|
|
|
16554
|
-
// bazel-out/
|
|
16694
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
16555
16695
|
function extractPureFunctions(job) {
|
|
16556
16696
|
for (const view of job.units) {
|
|
16557
16697
|
for (const op of view.ops()) {
|
|
@@ -16593,7 +16733,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
16593
16733
|
}
|
|
16594
16734
|
};
|
|
16595
16735
|
|
|
16596
|
-
// bazel-out/
|
|
16736
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
16597
16737
|
function generatePureLiteralStructures(job) {
|
|
16598
16738
|
for (const unit of job.units) {
|
|
16599
16739
|
for (const op of unit.update) {
|
|
@@ -16640,7 +16780,7 @@ function transformLiteralMap(expr) {
|
|
|
16640
16780
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
16641
16781
|
}
|
|
16642
16782
|
|
|
16643
|
-
// bazel-out/
|
|
16783
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
16644
16784
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
16645
16785
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
16646
16786
|
}
|
|
@@ -17163,7 +17303,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17163
17303
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17164
17304
|
}
|
|
17165
17305
|
|
|
17166
|
-
// bazel-out/
|
|
17306
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17167
17307
|
var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
|
|
17168
17308
|
["window", Identifiers.resolveWindow],
|
|
17169
17309
|
["document", Identifiers.resolveDocument],
|
|
@@ -17519,7 +17659,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
17519
17659
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
17520
17660
|
}
|
|
17521
17661
|
|
|
17522
|
-
// bazel-out/
|
|
17662
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
17523
17663
|
function removeEmptyBindings(job) {
|
|
17524
17664
|
for (const unit of job.units) {
|
|
17525
17665
|
for (const op of unit.update) {
|
|
@@ -17540,7 +17680,7 @@ function removeEmptyBindings(job) {
|
|
|
17540
17680
|
}
|
|
17541
17681
|
}
|
|
17542
17682
|
|
|
17543
|
-
// bazel-out/
|
|
17683
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
17544
17684
|
function removeI18nContexts(job) {
|
|
17545
17685
|
for (const unit of job.units) {
|
|
17546
17686
|
for (const op of unit.create) {
|
|
@@ -17556,7 +17696,7 @@ function removeI18nContexts(job) {
|
|
|
17556
17696
|
}
|
|
17557
17697
|
}
|
|
17558
17698
|
|
|
17559
|
-
// bazel-out/
|
|
17699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
|
|
17560
17700
|
function removeUnusedI18nAttributesOps(job) {
|
|
17561
17701
|
for (const unit of job.units) {
|
|
17562
17702
|
const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
|
|
@@ -17578,7 +17718,7 @@ function removeUnusedI18nAttributesOps(job) {
|
|
|
17578
17718
|
}
|
|
17579
17719
|
}
|
|
17580
17720
|
|
|
17581
|
-
// bazel-out/
|
|
17721
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
17582
17722
|
function resolveContexts(job) {
|
|
17583
17723
|
for (const unit of job.units) {
|
|
17584
17724
|
processLexicalScope(unit, unit.create);
|
|
@@ -17620,7 +17760,7 @@ function processLexicalScope(view, ops) {
|
|
|
17620
17760
|
}
|
|
17621
17761
|
}
|
|
17622
17762
|
|
|
17623
|
-
// bazel-out/
|
|
17763
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
17624
17764
|
function resolveDollarEvent(job) {
|
|
17625
17765
|
for (const unit of job.units) {
|
|
17626
17766
|
transformDollarEvent(unit.create);
|
|
@@ -17643,7 +17783,7 @@ function transformDollarEvent(ops) {
|
|
|
17643
17783
|
}
|
|
17644
17784
|
}
|
|
17645
17785
|
|
|
17646
|
-
// bazel-out/
|
|
17786
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
17647
17787
|
function resolveI18nElementPlaceholders(job) {
|
|
17648
17788
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
17649
17789
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -17822,7 +17962,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
|
|
|
17822
17962
|
params.set(placeholder, values);
|
|
17823
17963
|
}
|
|
17824
17964
|
|
|
17825
|
-
// bazel-out/
|
|
17965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
17826
17966
|
function resolveI18nExpressionPlaceholders(job) {
|
|
17827
17967
|
var _a2;
|
|
17828
17968
|
const subTemplateIndices = /* @__PURE__ */ new Map();
|
|
@@ -17875,7 +18015,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
|
|
|
17875
18015
|
}
|
|
17876
18016
|
}
|
|
17877
18017
|
|
|
17878
|
-
// bazel-out/
|
|
18018
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
17879
18019
|
function resolveNames(job) {
|
|
17880
18020
|
for (const unit of job.units) {
|
|
17881
18021
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -17940,7 +18080,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
17940
18080
|
}
|
|
17941
18081
|
}
|
|
17942
18082
|
|
|
17943
|
-
// bazel-out/
|
|
18083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
17944
18084
|
var sanitizerFns = /* @__PURE__ */ new Map([
|
|
17945
18085
|
[SecurityContext.HTML, Identifiers.sanitizeHtml],
|
|
17946
18086
|
[SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
|
|
@@ -18010,7 +18150,7 @@ function getOnlySecurityContext(securityContext) {
|
|
|
18010
18150
|
return securityContext;
|
|
18011
18151
|
}
|
|
18012
18152
|
|
|
18013
|
-
// bazel-out/
|
|
18153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/transform_two_way_binding_set.mjs
|
|
18014
18154
|
function transformTwoWayBindingSet(job) {
|
|
18015
18155
|
for (const unit of job.units) {
|
|
18016
18156
|
for (const op of unit.create) {
|
|
@@ -18033,7 +18173,7 @@ function transformTwoWayBindingSet(job) {
|
|
|
18033
18173
|
}
|
|
18034
18174
|
}
|
|
18035
18175
|
|
|
18036
|
-
// bazel-out/
|
|
18176
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18037
18177
|
function saveAndRestoreView(job) {
|
|
18038
18178
|
for (const unit of job.units) {
|
|
18039
18179
|
unit.create.prepend([
|
|
@@ -18078,7 +18218,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18078
18218
|
}
|
|
18079
18219
|
}
|
|
18080
18220
|
|
|
18081
|
-
// bazel-out/
|
|
18221
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18082
18222
|
function allocateSlots(job) {
|
|
18083
18223
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18084
18224
|
for (const unit of job.units) {
|
|
@@ -18103,7 +18243,7 @@ function allocateSlots(job) {
|
|
|
18103
18243
|
}
|
|
18104
18244
|
}
|
|
18105
18245
|
|
|
18106
|
-
// bazel-out/
|
|
18246
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18107
18247
|
function specializeStyleBindings(job) {
|
|
18108
18248
|
for (const unit of job.units) {
|
|
18109
18249
|
for (const op of unit.update) {
|
|
@@ -18133,7 +18273,7 @@ function specializeStyleBindings(job) {
|
|
|
18133
18273
|
}
|
|
18134
18274
|
}
|
|
18135
18275
|
|
|
18136
|
-
// bazel-out/
|
|
18276
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18137
18277
|
function generateTemporaryVariables(job) {
|
|
18138
18278
|
for (const unit of job.units) {
|
|
18139
18279
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18191,7 +18331,7 @@ function assignName(names, expr) {
|
|
|
18191
18331
|
expr.name = name;
|
|
18192
18332
|
}
|
|
18193
18333
|
|
|
18194
|
-
// bazel-out/
|
|
18334
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18195
18335
|
function generateTrackFns(job) {
|
|
18196
18336
|
for (const unit of job.units) {
|
|
18197
18337
|
for (const op of unit.create) {
|
|
@@ -18224,7 +18364,7 @@ function generateTrackFns(job) {
|
|
|
18224
18364
|
}
|
|
18225
18365
|
}
|
|
18226
18366
|
|
|
18227
|
-
// bazel-out/
|
|
18367
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18228
18368
|
function optimizeTrackFns(job) {
|
|
18229
18369
|
for (const unit of job.units) {
|
|
18230
18370
|
for (const op of unit.create) {
|
|
@@ -18274,7 +18414,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18274
18414
|
return true;
|
|
18275
18415
|
}
|
|
18276
18416
|
|
|
18277
|
-
// bazel-out/
|
|
18417
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18278
18418
|
function generateTrackVariables(job) {
|
|
18279
18419
|
for (const unit of job.units) {
|
|
18280
18420
|
for (const op of unit.create) {
|
|
@@ -18295,7 +18435,7 @@ function generateTrackVariables(job) {
|
|
|
18295
18435
|
}
|
|
18296
18436
|
}
|
|
18297
18437
|
|
|
18298
|
-
// bazel-out/
|
|
18438
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18299
18439
|
function countVariables(job) {
|
|
18300
18440
|
for (const unit of job.units) {
|
|
18301
18441
|
let varCount = 0;
|
|
@@ -18405,7 +18545,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18405
18545
|
return true;
|
|
18406
18546
|
}
|
|
18407
18547
|
|
|
18408
|
-
// bazel-out/
|
|
18548
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18409
18549
|
function optimizeVariables(job) {
|
|
18410
18550
|
for (const unit of job.units) {
|
|
18411
18551
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -18654,7 +18794,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
18654
18794
|
}
|
|
18655
18795
|
}
|
|
18656
18796
|
|
|
18657
|
-
// bazel-out/
|
|
18797
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
18658
18798
|
function wrapI18nIcus(job) {
|
|
18659
18799
|
for (const unit of job.units) {
|
|
18660
18800
|
let currentI18nOp = null;
|
|
@@ -18684,7 +18824,7 @@ function wrapI18nIcus(job) {
|
|
|
18684
18824
|
}
|
|
18685
18825
|
}
|
|
18686
18826
|
|
|
18687
|
-
// bazel-out/
|
|
18827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
18688
18828
|
var phases = [
|
|
18689
18829
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
18690
18830
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -18838,7 +18978,7 @@ function emitHostBindingFunction(job) {
|
|
|
18838
18978
|
);
|
|
18839
18979
|
}
|
|
18840
18980
|
|
|
18841
|
-
// bazel-out/
|
|
18981
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
18842
18982
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
18843
18983
|
var domSchema = new DomElementSchemaRegistry();
|
|
18844
18984
|
var NG_TEMPLATE_TAG_NAME = "ng-template";
|
|
@@ -18942,6 +19082,7 @@ function ingestNodes(unit, template2) {
|
|
|
18942
19082
|
ingestIcu(unit, node);
|
|
18943
19083
|
} else if (node instanceof ForLoopBlock) {
|
|
18944
19084
|
ingestForBlock(unit, node);
|
|
19085
|
+
} else if (node instanceof LetDeclaration) {
|
|
18945
19086
|
} else {
|
|
18946
19087
|
throw new Error(`Unsupported template node: ${node.constructor.name}`);
|
|
18947
19088
|
}
|
|
@@ -19589,7 +19730,7 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
19589
19730
|
return null;
|
|
19590
19731
|
}
|
|
19591
19732
|
|
|
19592
|
-
// bazel-out/
|
|
19733
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
|
|
19593
19734
|
function renderFlagCheckIfStmt(flags, statements) {
|
|
19594
19735
|
return ifStmt(variable(RENDER_FLAGS).bitwiseAnd(literal(flags), null, false), statements);
|
|
19595
19736
|
}
|
|
@@ -19709,7 +19850,7 @@ function createContentQueriesFunction(queries, constantPool, name) {
|
|
|
19709
19850
|
], INFERRED_TYPE, null, contentQueriesFnName);
|
|
19710
19851
|
}
|
|
19711
19852
|
|
|
19712
|
-
// bazel-out/
|
|
19853
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
19713
19854
|
var HtmlParser = class extends Parser2 {
|
|
19714
19855
|
constructor() {
|
|
19715
19856
|
super(getHtmlTagDefinition);
|
|
@@ -19719,7 +19860,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
19719
19860
|
}
|
|
19720
19861
|
};
|
|
19721
19862
|
|
|
19722
|
-
// bazel-out/
|
|
19863
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
19723
19864
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
19724
19865
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
19725
19866
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -19766,6 +19907,9 @@ var WhitespaceVisitor = class {
|
|
|
19766
19907
|
visitBlockParameter(parameter, context) {
|
|
19767
19908
|
return parameter;
|
|
19768
19909
|
}
|
|
19910
|
+
visitLetDeclaration(decl, context) {
|
|
19911
|
+
return decl;
|
|
19912
|
+
}
|
|
19769
19913
|
};
|
|
19770
19914
|
function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
|
|
19771
19915
|
return { type, parts: [processWhitespace(parts[0])], sourceSpan };
|
|
@@ -19785,7 +19929,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
19785
19929
|
return result;
|
|
19786
19930
|
}
|
|
19787
19931
|
|
|
19788
|
-
// bazel-out/
|
|
19932
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
19789
19933
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
19790
19934
|
var ATTRIBUTE_PREFIX = "attr";
|
|
19791
19935
|
var CLASS_PREFIX = "class";
|
|
@@ -20139,7 +20283,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
20139
20283
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
20140
20284
|
}
|
|
20141
20285
|
|
|
20142
|
-
// bazel-out/
|
|
20286
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20143
20287
|
function isStyleUrlResolvable(url) {
|
|
20144
20288
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20145
20289
|
return false;
|
|
@@ -20148,7 +20292,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20148
20292
|
}
|
|
20149
20293
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20150
20294
|
|
|
20151
|
-
// bazel-out/
|
|
20295
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20152
20296
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20153
20297
|
var LINK_ELEMENT = "link";
|
|
20154
20298
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20218,7 +20362,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20218
20362
|
return selectAttr;
|
|
20219
20363
|
}
|
|
20220
20364
|
|
|
20221
|
-
// bazel-out/
|
|
20365
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20222
20366
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20223
20367
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20224
20368
|
var CONDITIONAL_ALIAS_PATTERN = /^(as\s)+(.*)/;
|
|
@@ -20541,7 +20685,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
20541
20685
|
return expression.slice(start, end);
|
|
20542
20686
|
}
|
|
20543
20687
|
|
|
20544
|
-
// bazel-out/
|
|
20688
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
20545
20689
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
20546
20690
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
20547
20691
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -20805,7 +20949,7 @@ function parseDeferredTime(value) {
|
|
|
20805
20949
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
20806
20950
|
}
|
|
20807
20951
|
|
|
20808
|
-
// bazel-out/
|
|
20952
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
20809
20953
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
20810
20954
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
20811
20955
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -20940,7 +21084,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
20940
21084
|
return { triggers, prefetchTriggers };
|
|
20941
21085
|
}
|
|
20942
21086
|
|
|
20943
|
-
// bazel-out/
|
|
21087
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
20944
21088
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
20945
21089
|
var KW_BIND_IDX = 1;
|
|
20946
21090
|
var KW_LET_IDX = 2;
|
|
@@ -21115,6 +21259,13 @@ var HtmlAstToIvyAst = class {
|
|
|
21115
21259
|
}
|
|
21116
21260
|
return null;
|
|
21117
21261
|
}
|
|
21262
|
+
visitLetDeclaration(decl, context) {
|
|
21263
|
+
const value = this.bindingParser.parseBinding(decl.value, false, decl.valueSpan, decl.valueSpan.start.offset);
|
|
21264
|
+
if (value.errors.length === 0 && value.ast instanceof EmptyExpr) {
|
|
21265
|
+
this.reportError("@let declaration value cannot be empty", decl.valueSpan);
|
|
21266
|
+
}
|
|
21267
|
+
return new LetDeclaration(decl.name, value, decl.sourceSpan, decl.nameSpan, decl.valueSpan);
|
|
21268
|
+
}
|
|
21118
21269
|
visitBlockParameter() {
|
|
21119
21270
|
return null;
|
|
21120
21271
|
}
|
|
@@ -21381,6 +21532,9 @@ var NonBindableVisitor = class {
|
|
|
21381
21532
|
visitBlockParameter(parameter, context) {
|
|
21382
21533
|
return null;
|
|
21383
21534
|
}
|
|
21535
|
+
visitLetDeclaration(decl, context) {
|
|
21536
|
+
return new Text(`@let ${decl.name} = ${decl.value};`, decl.sourceSpan);
|
|
21537
|
+
}
|
|
21384
21538
|
};
|
|
21385
21539
|
var NON_BINDABLE_VISITOR = new NonBindableVisitor();
|
|
21386
21540
|
function normalizeAttributeName(attrName) {
|
|
@@ -21397,10 +21551,10 @@ function textContents(node) {
|
|
|
21397
21551
|
}
|
|
21398
21552
|
}
|
|
21399
21553
|
|
|
21400
|
-
// bazel-out/
|
|
21554
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
21401
21555
|
var LEADING_TRIVIA_CHARS = [" ", "\n", "\r", " "];
|
|
21402
21556
|
function parseTemplate(template2, templateUrl, options = {}) {
|
|
21403
|
-
var _a2;
|
|
21557
|
+
var _a2, _b2;
|
|
21404
21558
|
const { interpolationConfig, preserveWhitespaces, enableI18nLegacyMessageIdFormat, allowInvalidAssignmentEvents } = options;
|
|
21405
21559
|
const bindingParser = makeBindingParser(interpolationConfig, allowInvalidAssignmentEvents);
|
|
21406
21560
|
const htmlParser = new HtmlParser();
|
|
@@ -21408,7 +21562,8 @@ function parseTemplate(template2, templateUrl, options = {}) {
|
|
|
21408
21562
|
leadingTriviaChars: LEADING_TRIVIA_CHARS
|
|
21409
21563
|
}, options), {
|
|
21410
21564
|
tokenizeExpansionForms: true,
|
|
21411
|
-
tokenizeBlocks: (_a2 = options.enableBlockSyntax) != null ? _a2 : true
|
|
21565
|
+
tokenizeBlocks: (_a2 = options.enableBlockSyntax) != null ? _a2 : true,
|
|
21566
|
+
tokenizeLet: (_b2 = options.enableLetSyntax) != null ? _b2 : false
|
|
21412
21567
|
}));
|
|
21413
21568
|
if (!options.alwaysAttemptHtmlToR3AstConversion && parseResult.errors && parseResult.errors.length > 0) {
|
|
21414
21569
|
const parsedTemplate2 = {
|
|
@@ -21475,7 +21630,7 @@ function makeBindingParser(interpolationConfig = DEFAULT_INTERPOLATION_CONFIG, a
|
|
|
21475
21630
|
return new BindingParser(new Parser(new Lexer()), interpolationConfig, elementRegistry, [], allowInvalidAssignmentEvents);
|
|
21476
21631
|
}
|
|
21477
21632
|
|
|
21478
|
-
// bazel-out/
|
|
21633
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
21479
21634
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
21480
21635
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
21481
21636
|
var CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
|
|
@@ -21842,7 +21997,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
21842
21997
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
21843
21998
|
}
|
|
21844
21999
|
|
|
21845
|
-
// bazel-out/
|
|
22000
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
21846
22001
|
var R3TargetBinder = class {
|
|
21847
22002
|
constructor(directiveMatcher) {
|
|
21848
22003
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -21948,6 +22103,9 @@ var Scope2 = class {
|
|
|
21948
22103
|
visitContent(content) {
|
|
21949
22104
|
this.ingestScopedNode(content);
|
|
21950
22105
|
}
|
|
22106
|
+
visitLetDeclaration(decl) {
|
|
22107
|
+
this.maybeDeclare(decl);
|
|
22108
|
+
}
|
|
21951
22109
|
visitBoundAttribute(attr) {
|
|
21952
22110
|
}
|
|
21953
22111
|
visitBoundEvent(event) {
|
|
@@ -22125,6 +22283,8 @@ var DirectiveBinder = class {
|
|
|
22125
22283
|
}
|
|
22126
22284
|
visitUnknownBlock(block) {
|
|
22127
22285
|
}
|
|
22286
|
+
visitLetDeclaration(decl) {
|
|
22287
|
+
}
|
|
22128
22288
|
};
|
|
22129
22289
|
var TemplateBinder = class extends RecursiveAstVisitor {
|
|
22130
22290
|
constructor(bindings, symbols, usedPipes, eagerPipes, deferBlocks, nestingLevel, scope, rootNode, level) {
|
|
@@ -22281,6 +22441,12 @@ var TemplateBinder = class extends RecursiveAstVisitor {
|
|
|
22281
22441
|
visitBoundText(text2) {
|
|
22282
22442
|
text2.value.visit(this);
|
|
22283
22443
|
}
|
|
22444
|
+
visitLetDeclaration(decl) {
|
|
22445
|
+
decl.value.visit(this);
|
|
22446
|
+
if (this.rootNode !== null) {
|
|
22447
|
+
this.symbols.set(decl, this.rootNode);
|
|
22448
|
+
}
|
|
22449
|
+
}
|
|
22284
22450
|
visitPipe(ast, context) {
|
|
22285
22451
|
this.usedPipes.add(ast.name);
|
|
22286
22452
|
if (!this.scope.isDeferred) {
|
|
@@ -22309,7 +22475,10 @@ var TemplateBinder = class extends RecursiveAstVisitor {
|
|
|
22309
22475
|
if (!(ast.receiver instanceof ImplicitReceiver)) {
|
|
22310
22476
|
return;
|
|
22311
22477
|
}
|
|
22312
|
-
|
|
22478
|
+
const target = this.scope.lookup(name);
|
|
22479
|
+
if (target instanceof LetDeclaration && ast.receiver instanceof ThisReceiver) {
|
|
22480
|
+
return;
|
|
22481
|
+
}
|
|
22313
22482
|
if (target !== null) {
|
|
22314
22483
|
this.bindings.set(ast, target);
|
|
22315
22484
|
}
|
|
@@ -22475,11 +22644,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
22475
22644
|
return templateEntities;
|
|
22476
22645
|
}
|
|
22477
22646
|
|
|
22478
|
-
// bazel-out/
|
|
22647
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
22479
22648
|
var ResourceLoader = class {
|
|
22480
22649
|
};
|
|
22481
22650
|
|
|
22482
|
-
// bazel-out/
|
|
22651
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
22483
22652
|
var CompilerFacadeImpl = class {
|
|
22484
22653
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
22485
22654
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -23045,17 +23214,17 @@ function publishFacade(global) {
|
|
|
23045
23214
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
23046
23215
|
}
|
|
23047
23216
|
|
|
23048
|
-
// bazel-out/
|
|
23049
|
-
var VERSION2 = new Version("18.0.
|
|
23217
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23218
|
+
var VERSION2 = new Version("18.0.2");
|
|
23050
23219
|
|
|
23051
|
-
// bazel-out/
|
|
23220
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23052
23221
|
var _VisitorMode;
|
|
23053
23222
|
(function(_VisitorMode2) {
|
|
23054
23223
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
23055
23224
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
23056
23225
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
23057
23226
|
|
|
23058
|
-
// bazel-out/
|
|
23227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
23059
23228
|
var XmlTagDefinition = class {
|
|
23060
23229
|
constructor() {
|
|
23061
23230
|
this.closedByParent = false;
|
|
@@ -23077,7 +23246,7 @@ var XmlTagDefinition = class {
|
|
|
23077
23246
|
};
|
|
23078
23247
|
var _TAG_DEFINITION = new XmlTagDefinition();
|
|
23079
23248
|
|
|
23080
|
-
// bazel-out/
|
|
23249
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
23081
23250
|
var FactoryTarget2;
|
|
23082
23251
|
(function(FactoryTarget3) {
|
|
23083
23252
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -23087,10 +23256,10 @@ var FactoryTarget2;
|
|
|
23087
23256
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
23088
23257
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
23089
23258
|
|
|
23090
|
-
// bazel-out/
|
|
23259
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
23091
23260
|
publishFacade(_global);
|
|
23092
23261
|
|
|
23093
|
-
// bazel-out/
|
|
23262
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/invalid-two-way-bindings/migration.mjs
|
|
23094
23263
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
23095
23264
|
function migrateTemplate(template2) {
|
|
23096
23265
|
if (!template2.includes(")]=")) {
|
|
@@ -23215,7 +23384,7 @@ var InvalidTwoWayBindingCollector = class extends RecursiveVisitor {
|
|
|
23215
23384
|
}
|
|
23216
23385
|
};
|
|
23217
23386
|
|
|
23218
|
-
// bazel-out/
|
|
23387
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/invalid-two-way-bindings/index.mjs
|
|
23219
23388
|
function invalid_two_way_bindings_default() {
|
|
23220
23389
|
return (tree) => __async(this, null, function* () {
|
|
23221
23390
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|