@angular/core 17.1.0 → 17.1.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/src/application/application_init.mjs +2 -2
- package/esm2022/src/application/application_ref.mjs +2 -2
- package/esm2022/src/application/application_tokens.mjs +9 -9
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +51 -18
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/defer/instructions.mjs +4 -2
- package/esm2022/src/di/forward_ref.mjs +1 -1
- package/esm2022/src/di/initializer_token.mjs +2 -2
- package/esm2022/src/di/injector.mjs +4 -4
- package/esm2022/src/di/injector_token.mjs +2 -2
- package/esm2022/src/di/internal_tokens.mjs +2 -2
- package/esm2022/src/di/scope.mjs +2 -2
- package/esm2022/src/hydration/error_handling.mjs +17 -6
- package/esm2022/src/hydration/utils.mjs +54 -8
- package/esm2022/src/i18n/tokens.mjs +5 -5
- package/esm2022/src/linker/compiler.mjs +2 -2
- package/esm2022/src/metadata/di.mjs +1 -1
- package/esm2022/src/platform/platform.mjs +2 -2
- package/esm2022/src/platform/platform_ref.mjs +2 -2
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/instructions/element.mjs +3 -3
- package/esm2022/src/render3/node_manipulation.mjs +2 -5
- package/esm2022/src/render3/util/global_utils.mjs +3 -1
- package/esm2022/src/util/ng_dev_mode.mjs +11 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +128 -93
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +11 -6
- package/esm2022/testing/src/test_bed_common.mjs +9 -2
- package/esm2022/testing/src/test_bed_compiler.mjs +5 -4
- package/esm2022/testing/src/testing.mjs +2 -2
- package/fesm2022/core.mjs +157 -62
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +143 -96
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +38 -10
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +230 -201
- package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +240 -211
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +536 -493
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +6 -17
|
@@ -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/block-template-entities/index.mjs
|
|
67
67
|
var block_template_entities_exports = {};
|
|
68
68
|
__export(block_template_entities_exports, {
|
|
69
69
|
default: () => block_template_entities_default
|
|
@@ -72,7 +72,7 @@ module.exports = __toCommonJS(block_template_entities_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/compiler/src/selector.mjs
|
|
210
210
|
var _SELECTOR_REGEXP = new RegExp(
|
|
211
211
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
212
212
|
"g"
|
|
@@ -514,7 +514,7 @@ var SelectorContext = class {
|
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
516
|
|
|
517
|
-
// bazel-out/
|
|
517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
518
518
|
var ViewEncapsulation;
|
|
519
519
|
(function(ViewEncapsulation2) {
|
|
520
520
|
ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
|
|
@@ -582,7 +582,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
582
582
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
// bazel-out/
|
|
585
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
586
586
|
var textEncoder;
|
|
587
587
|
function computeDigest(message) {
|
|
588
588
|
return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
|
|
@@ -822,7 +822,7 @@ function wordAt(bytes, index, endian) {
|
|
|
822
822
|
return word;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
// bazel-out/
|
|
825
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
826
826
|
var TypeModifier;
|
|
827
827
|
(function(TypeModifier2) {
|
|
828
828
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1781,7 +1781,7 @@ function serializeTags(tags) {
|
|
|
1781
1781
|
return out;
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
|
-
// bazel-out/
|
|
1784
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1785
1785
|
var CONSTANT_PREFIX = "_c";
|
|
1786
1786
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1787
1787
|
var KEY_CONTEXT = {};
|
|
@@ -1964,7 +1964,7 @@ function isLongStringLiteral(expr) {
|
|
|
1964
1964
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
1965
1965
|
}
|
|
1966
1966
|
|
|
1967
|
-
// bazel-out/
|
|
1967
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
1968
1968
|
var CORE = "@angular/core";
|
|
1969
1969
|
var _Identifiers = class {
|
|
1970
1970
|
};
|
|
@@ -2609,7 +2609,7 @@ var Identifiers = _Identifiers;
|
|
|
2609
2609
|
_Identifiers.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
|
|
2610
2610
|
})();
|
|
2611
2611
|
|
|
2612
|
-
// bazel-out/
|
|
2612
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2613
2613
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2614
2614
|
function dashCaseToCamelCase(input) {
|
|
2615
2615
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2697,7 +2697,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2697
2697
|
return [truthy, falsy];
|
|
2698
2698
|
}
|
|
2699
2699
|
|
|
2700
|
-
// bazel-out/
|
|
2700
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2701
2701
|
var VERSION = 3;
|
|
2702
2702
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2703
2703
|
var SourceMapGenerator = class {
|
|
@@ -2826,7 +2826,7 @@ function toBase64Digit(value) {
|
|
|
2826
2826
|
return B64_DIGITS[value];
|
|
2827
2827
|
}
|
|
2828
2828
|
|
|
2829
|
-
// bazel-out/
|
|
2829
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2830
2830
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2831
2831
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2832
2832
|
var _INDENT_WITH = " ";
|
|
@@ -3314,7 +3314,7 @@ function _createIndent(count) {
|
|
|
3314
3314
|
return res;
|
|
3315
3315
|
}
|
|
3316
3316
|
|
|
3317
|
-
// bazel-out/
|
|
3317
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3318
3318
|
function typeWithParameters(type, numParams) {
|
|
3319
3319
|
if (numParams === 0) {
|
|
3320
3320
|
return expressionType(type);
|
|
@@ -3379,7 +3379,7 @@ function generateForwardRef(expr) {
|
|
|
3379
3379
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3380
3380
|
}
|
|
3381
3381
|
|
|
3382
|
-
// bazel-out/
|
|
3382
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3383
3383
|
var R3FactoryDelegateType;
|
|
3384
3384
|
(function(R3FactoryDelegateType2) {
|
|
3385
3385
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3524,7 +3524,7 @@ function getInjectFn(target) {
|
|
|
3524
3524
|
}
|
|
3525
3525
|
}
|
|
3526
3526
|
|
|
3527
|
-
// bazel-out/
|
|
3527
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
3528
3528
|
var TagContentType;
|
|
3529
3529
|
(function(TagContentType2) {
|
|
3530
3530
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -3561,7 +3561,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
3561
3561
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
3562
3562
|
}
|
|
3563
3563
|
|
|
3564
|
-
// bazel-out/
|
|
3564
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3565
3565
|
var Comment = class {
|
|
3566
3566
|
constructor(value, sourceSpan) {
|
|
3567
3567
|
this.value = value;
|
|
@@ -3942,7 +3942,7 @@ function visitAll(visitor, nodes) {
|
|
|
3942
3942
|
return result;
|
|
3943
3943
|
}
|
|
3944
3944
|
|
|
3945
|
-
// bazel-out/
|
|
3945
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3946
3946
|
var Message = class {
|
|
3947
3947
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3948
3948
|
this.nodes = nodes;
|
|
@@ -4080,7 +4080,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4080
4080
|
}
|
|
4081
4081
|
};
|
|
4082
4082
|
|
|
4083
|
-
// bazel-out/
|
|
4083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4084
4084
|
var _Visitor = class {
|
|
4085
4085
|
visitTag(tag) {
|
|
4086
4086
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4108,12 +4108,12 @@ ${doctype.dtd}
|
|
|
4108
4108
|
};
|
|
4109
4109
|
var _visitor = new _Visitor();
|
|
4110
4110
|
|
|
4111
|
-
// bazel-out/
|
|
4111
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4112
4112
|
function toPublicName(internalName) {
|
|
4113
4113
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4114
4114
|
}
|
|
4115
4115
|
|
|
4116
|
-
// bazel-out/
|
|
4116
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4117
4117
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4118
4118
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4119
4119
|
var I18N_ATTR = "i18n";
|
|
@@ -4215,7 +4215,7 @@ function declareI18nVariable(variable2) {
|
|
|
4215
4215
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
|
-
// bazel-out/
|
|
4218
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4219
4219
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4220
4220
|
var TEMPORARY_NAME = "_t";
|
|
4221
4221
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4432,7 +4432,7 @@ function getAttrsForDirectiveMatching(elOrTpl) {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
});
|
|
4434
4434
|
elOrTpl.inputs.forEach((i) => {
|
|
4435
|
-
if (i.type === 0) {
|
|
4435
|
+
if (i.type === 0 || i.type === 5) {
|
|
4436
4436
|
attributesMap[i.name] = "";
|
|
4437
4437
|
}
|
|
4438
4438
|
});
|
|
@@ -4477,7 +4477,7 @@ function getInstructionStatements(instructions) {
|
|
|
4477
4477
|
return statements;
|
|
4478
4478
|
}
|
|
4479
4479
|
|
|
4480
|
-
// bazel-out/
|
|
4480
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4481
4481
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4482
4482
|
let result = null;
|
|
4483
4483
|
const factoryMeta = {
|
|
@@ -4562,7 +4562,7 @@ function createFactoryFunction(type) {
|
|
|
4562
4562
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
4563
4563
|
}
|
|
4564
4564
|
|
|
4565
|
-
// bazel-out/
|
|
4565
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4566
4566
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4567
4567
|
/^\s*$/,
|
|
4568
4568
|
/[<>]/,
|
|
@@ -4584,7 +4584,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
4586
|
|
|
4587
|
-
// bazel-out/
|
|
4587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
|
|
4588
4588
|
var InterpolationConfig = class {
|
|
4589
4589
|
static fromArray(markers) {
|
|
4590
4590
|
if (!markers) {
|
|
@@ -4601,7 +4601,7 @@ var InterpolationConfig = class {
|
|
|
4601
4601
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4602
4602
|
var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
|
|
4603
4603
|
|
|
4604
|
-
// bazel-out/
|
|
4604
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4605
4605
|
var $EOF = 0;
|
|
4606
4606
|
var $BSPACE = 8;
|
|
4607
4607
|
var $TAB = 9;
|
|
@@ -4683,7 +4683,7 @@ function isQuote(code) {
|
|
|
4683
4683
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4684
4684
|
}
|
|
4685
4685
|
|
|
4686
|
-
// bazel-out/
|
|
4686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4687
4687
|
var ParseLocation = class {
|
|
4688
4688
|
constructor(file, offset, line, col) {
|
|
4689
4689
|
this.file = file;
|
|
@@ -4830,7 +4830,7 @@ function sanitizeIdentifier(name) {
|
|
|
4830
4830
|
return name.replace(/\W/g, "_");
|
|
4831
4831
|
}
|
|
4832
4832
|
|
|
4833
|
-
// bazel-out/
|
|
4833
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4834
4834
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4835
4835
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4836
4836
|
constructor() {
|
|
@@ -4923,7 +4923,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4923
4923
|
}
|
|
4924
4924
|
};
|
|
4925
4925
|
|
|
4926
|
-
// bazel-out/
|
|
4926
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4927
4927
|
var policy;
|
|
4928
4928
|
function getPolicy() {
|
|
4929
4929
|
if (policy === void 0) {
|
|
@@ -4961,7 +4961,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4961
4961
|
return fn2.bind(_global);
|
|
4962
4962
|
}
|
|
4963
4963
|
|
|
4964
|
-
// bazel-out/
|
|
4964
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4965
4965
|
var JitEvaluator = class {
|
|
4966
4966
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4967
4967
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5052,7 +5052,7 @@ function isUseStrictStatement(statement) {
|
|
|
5052
5052
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5053
5053
|
}
|
|
5054
5054
|
|
|
5055
|
-
// bazel-out/
|
|
5055
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5056
5056
|
function compileInjector(meta) {
|
|
5057
5057
|
const definitionMap = new DefinitionMap();
|
|
5058
5058
|
if (meta.providers !== null) {
|
|
@@ -5069,7 +5069,7 @@ function createInjectorType(meta) {
|
|
|
5069
5069
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5070
5070
|
}
|
|
5071
5071
|
|
|
5072
|
-
// bazel-out/
|
|
5072
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5073
5073
|
var R3JitReflector = class {
|
|
5074
5074
|
constructor(context) {
|
|
5075
5075
|
this.context = context;
|
|
@@ -5085,7 +5085,7 @@ var R3JitReflector = class {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
};
|
|
5087
5087
|
|
|
5088
|
-
// bazel-out/
|
|
5088
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5089
5089
|
var R3SelectorScopeMode;
|
|
5090
5090
|
(function(R3SelectorScopeMode2) {
|
|
5091
5091
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5226,7 +5226,7 @@ function tupleOfTypes(types) {
|
|
|
5226
5226
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5227
5227
|
}
|
|
5228
5228
|
|
|
5229
|
-
// bazel-out/
|
|
5229
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5230
5230
|
function compilePipeFromMetadata(metadata) {
|
|
5231
5231
|
const definitionMapValues = [];
|
|
5232
5232
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5247,7 +5247,7 @@ function createPipeType(metadata) {
|
|
|
5247
5247
|
]));
|
|
5248
5248
|
}
|
|
5249
5249
|
|
|
5250
|
-
// bazel-out/
|
|
5250
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5251
5251
|
var R3TemplateDependencyKind;
|
|
5252
5252
|
(function(R3TemplateDependencyKind2) {
|
|
5253
5253
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5255,7 +5255,7 @@ var R3TemplateDependencyKind;
|
|
|
5255
5255
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5256
5256
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5257
5257
|
|
|
5258
|
-
// bazel-out/
|
|
5258
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5259
5259
|
var ParserError = class {
|
|
5260
5260
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5261
5261
|
this.input = input;
|
|
@@ -5887,6 +5887,7 @@ var ParsedPropertyType;
|
|
|
5887
5887
|
ParsedPropertyType2[ParsedPropertyType2["DEFAULT"] = 0] = "DEFAULT";
|
|
5888
5888
|
ParsedPropertyType2[ParsedPropertyType2["LITERAL_ATTR"] = 1] = "LITERAL_ATTR";
|
|
5889
5889
|
ParsedPropertyType2[ParsedPropertyType2["ANIMATION"] = 2] = "ANIMATION";
|
|
5890
|
+
ParsedPropertyType2[ParsedPropertyType2["TWO_WAY"] = 3] = "TWO_WAY";
|
|
5890
5891
|
})(ParsedPropertyType || (ParsedPropertyType = {}));
|
|
5891
5892
|
var ParsedEvent = class {
|
|
5892
5893
|
constructor(name, targetOrPhase, type, handler, sourceSpan, handlerSpan, keySpan) {
|
|
@@ -5921,7 +5922,7 @@ var BoundElementProperty = class {
|
|
|
5921
5922
|
}
|
|
5922
5923
|
};
|
|
5923
5924
|
|
|
5924
|
-
// bazel-out/
|
|
5925
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5925
5926
|
var _EventHandlerVars = class {
|
|
5926
5927
|
};
|
|
5927
5928
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6562,7 +6563,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6562
6563
|
}
|
|
6563
6564
|
};
|
|
6564
6565
|
|
|
6565
|
-
// bazel-out/
|
|
6566
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6566
6567
|
var _SECURITY_SCHEMA;
|
|
6567
6568
|
function SECURITY_SCHEMA() {
|
|
6568
6569
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6620,7 +6621,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6620
6621
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6621
6622
|
}
|
|
6622
6623
|
|
|
6623
|
-
// bazel-out/
|
|
6624
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6624
6625
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6625
6626
|
"inherit",
|
|
6626
6627
|
"initial",
|
|
@@ -7091,7 +7092,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7091
7092
|
}
|
|
7092
7093
|
}
|
|
7093
7094
|
|
|
7094
|
-
// bazel-out/
|
|
7095
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7095
7096
|
var OpKind;
|
|
7096
7097
|
(function(OpKind2) {
|
|
7097
7098
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7250,7 +7251,7 @@ var TemplateKind;
|
|
|
7250
7251
|
TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
|
|
7251
7252
|
})(TemplateKind || (TemplateKind = {}));
|
|
7252
7253
|
|
|
7253
|
-
// bazel-out/
|
|
7254
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7254
7255
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7255
7256
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7256
7257
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -7282,7 +7283,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
7282
7283
|
return expr[UsesVarOffset] === true;
|
|
7283
7284
|
}
|
|
7284
7285
|
|
|
7285
|
-
// bazel-out/
|
|
7286
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7286
7287
|
function createStatementOp(statement) {
|
|
7287
7288
|
return __spreadValues({
|
|
7288
7289
|
kind: OpKind.Statement,
|
|
@@ -7304,7 +7305,7 @@ var NEW_OP = {
|
|
|
7304
7305
|
next: null
|
|
7305
7306
|
};
|
|
7306
7307
|
|
|
7307
|
-
// bazel-out/
|
|
7308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
7308
7309
|
function createInterpolateTextOp(xref, interpolation, sourceSpan) {
|
|
7309
7310
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
7310
7311
|
kind: OpKind.InterpolateText,
|
|
@@ -7470,7 +7471,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
|
|
|
7470
7471
|
}, NEW_OP);
|
|
7471
7472
|
}
|
|
7472
7473
|
|
|
7473
|
-
// bazel-out/
|
|
7474
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7474
7475
|
var _a;
|
|
7475
7476
|
var _b;
|
|
7476
7477
|
var _c;
|
|
@@ -8302,7 +8303,7 @@ function isStringLiteral(expr) {
|
|
|
8302
8303
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
8303
8304
|
}
|
|
8304
8305
|
|
|
8305
|
-
// bazel-out/
|
|
8306
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8306
8307
|
var _OpList = class {
|
|
8307
8308
|
constructor() {
|
|
8308
8309
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8493,14 +8494,14 @@ var OpList = _OpList;
|
|
|
8493
8494
|
_OpList.nextListId = 0;
|
|
8494
8495
|
})();
|
|
8495
8496
|
|
|
8496
|
-
// bazel-out/
|
|
8497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
8497
8498
|
var SlotHandle = class {
|
|
8498
8499
|
constructor() {
|
|
8499
8500
|
this.slot = null;
|
|
8500
8501
|
}
|
|
8501
8502
|
};
|
|
8502
8503
|
|
|
8503
|
-
// bazel-out/
|
|
8504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8504
8505
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8505
8506
|
OpKind.Element,
|
|
8506
8507
|
OpKind.ElementStart,
|
|
@@ -8669,7 +8670,7 @@ function createExtractedAttributeOp(target, bindingKind, namespace, name, expres
|
|
|
8669
8670
|
trustedValueFn: null
|
|
8670
8671
|
}, NEW_OP);
|
|
8671
8672
|
}
|
|
8672
|
-
function createDeferOp(xref, main, mainSlot, metadata, sourceSpan) {
|
|
8673
|
+
function createDeferOp(xref, main, mainSlot, metadata, resolverFn, sourceSpan) {
|
|
8673
8674
|
return __spreadProps(__spreadValues(__spreadValues({
|
|
8674
8675
|
kind: OpKind.Defer,
|
|
8675
8676
|
xref,
|
|
@@ -8688,7 +8689,7 @@ function createDeferOp(xref, main, mainSlot, metadata, sourceSpan) {
|
|
|
8688
8689
|
errorView: null,
|
|
8689
8690
|
errorSlot: null,
|
|
8690
8691
|
metadata,
|
|
8691
|
-
resolverFn
|
|
8692
|
+
resolverFn,
|
|
8692
8693
|
sourceSpan
|
|
8693
8694
|
}, NEW_OP), TRAIT_CONSUMES_SLOT), {
|
|
8694
8695
|
numSlotsUsed: 2
|
|
@@ -8787,7 +8788,7 @@ function createI18nAttributesOp(xref, handle, target) {
|
|
|
8787
8788
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8788
8789
|
}
|
|
8789
8790
|
|
|
8790
|
-
// bazel-out/
|
|
8791
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
8791
8792
|
function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
|
|
8792
8793
|
return __spreadValues(__spreadValues({
|
|
8793
8794
|
kind: OpKind.HostProperty,
|
|
@@ -8801,10 +8802,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
|
|
|
8801
8802
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8802
8803
|
}
|
|
8803
8804
|
|
|
8804
|
-
// bazel-out/
|
|
8805
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
8805
8806
|
var CTX_REF = "CTX_REF_MARKER";
|
|
8806
8807
|
|
|
8807
|
-
// bazel-out/
|
|
8808
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8808
8809
|
var CompilationJobKind;
|
|
8809
8810
|
(function(CompilationJobKind2) {
|
|
8810
8811
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -8824,11 +8825,12 @@ var CompilationJob = class {
|
|
|
8824
8825
|
}
|
|
8825
8826
|
};
|
|
8826
8827
|
var ComponentCompilationJob = class extends CompilationJob {
|
|
8827
|
-
constructor(componentName, pool, compatibility, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
|
|
8828
|
+
constructor(componentName, pool, compatibility, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta, allDeferrableDepsFn) {
|
|
8828
8829
|
super(componentName, pool, compatibility);
|
|
8829
8830
|
this.relativeContextFilePath = relativeContextFilePath;
|
|
8830
8831
|
this.i18nUseExternalIds = i18nUseExternalIds;
|
|
8831
8832
|
this.deferBlocksMeta = deferBlocksMeta;
|
|
8833
|
+
this.allDeferrableDepsFn = allDeferrableDepsFn;
|
|
8832
8834
|
this.kind = CompilationJobKind.Tmpl;
|
|
8833
8835
|
this.fnSuffix = "Template";
|
|
8834
8836
|
this.views = /* @__PURE__ */ new Map();
|
|
@@ -8911,7 +8913,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
8911
8913
|
}
|
|
8912
8914
|
};
|
|
8913
8915
|
|
|
8914
|
-
// bazel-out/
|
|
8916
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
8915
8917
|
function deleteAnyCasts(job) {
|
|
8916
8918
|
for (const unit of job.units) {
|
|
8917
8919
|
for (const op of unit.ops()) {
|
|
@@ -8929,7 +8931,7 @@ function removeAnys(e) {
|
|
|
8929
8931
|
return e;
|
|
8930
8932
|
}
|
|
8931
8933
|
|
|
8932
|
-
// bazel-out/
|
|
8934
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
8933
8935
|
function applyI18nExpressions(job) {
|
|
8934
8936
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
8935
8937
|
for (const unit of job.units) {
|
|
@@ -8972,7 +8974,7 @@ function needsApplication(i18nContexts, op) {
|
|
|
8972
8974
|
return false;
|
|
8973
8975
|
}
|
|
8974
8976
|
|
|
8975
|
-
// bazel-out/
|
|
8977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
8976
8978
|
function assignI18nSlotDependencies(job) {
|
|
8977
8979
|
for (const unit of job.units) {
|
|
8978
8980
|
let updateOp = unit.update.head;
|
|
@@ -9017,7 +9019,7 @@ function assignI18nSlotDependencies(job) {
|
|
|
9017
9019
|
}
|
|
9018
9020
|
}
|
|
9019
9021
|
|
|
9020
|
-
// bazel-out/
|
|
9022
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
9021
9023
|
function createOpXrefMap(unit) {
|
|
9022
9024
|
const map = /* @__PURE__ */ new Map();
|
|
9023
9025
|
for (const op of unit.create) {
|
|
@@ -9032,7 +9034,7 @@ function createOpXrefMap(unit) {
|
|
|
9032
9034
|
return map;
|
|
9033
9035
|
}
|
|
9034
9036
|
|
|
9035
|
-
// bazel-out/
|
|
9037
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
9036
9038
|
function extractAttributes(job) {
|
|
9037
9039
|
for (const unit of job.units) {
|
|
9038
9040
|
const elements = createOpXrefMap(unit);
|
|
@@ -9134,7 +9136,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
9134
9136
|
}
|
|
9135
9137
|
}
|
|
9136
9138
|
|
|
9137
|
-
// bazel-out/
|
|
9139
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
9138
9140
|
function lookupElement2(elements, xref) {
|
|
9139
9141
|
const el = elements.get(xref);
|
|
9140
9142
|
if (el === void 0) {
|
|
@@ -9185,7 +9187,7 @@ function specializeBindings(job) {
|
|
|
9185
9187
|
}
|
|
9186
9188
|
}
|
|
9187
9189
|
|
|
9188
|
-
// bazel-out/
|
|
9190
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
9189
9191
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
9190
9192
|
Identifiers.attribute,
|
|
9191
9193
|
Identifiers.classProp,
|
|
@@ -9251,7 +9253,7 @@ function chainOperationsInList(opList) {
|
|
|
9251
9253
|
}
|
|
9252
9254
|
}
|
|
9253
9255
|
|
|
9254
|
-
// bazel-out/
|
|
9256
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9255
9257
|
function collapseSingletonInterpolations(job) {
|
|
9256
9258
|
for (const unit of job.units) {
|
|
9257
9259
|
for (const op of unit.update) {
|
|
@@ -9263,7 +9265,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
9263
9265
|
}
|
|
9264
9266
|
}
|
|
9265
9267
|
|
|
9266
|
-
// bazel-out/
|
|
9268
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9267
9269
|
function generateConditionalExpressions(job) {
|
|
9268
9270
|
for (const unit of job.units) {
|
|
9269
9271
|
for (const op of unit.ops()) {
|
|
@@ -9300,7 +9302,7 @@ function generateConditionalExpressions(job) {
|
|
|
9300
9302
|
}
|
|
9301
9303
|
}
|
|
9302
9304
|
|
|
9303
|
-
// bazel-out/
|
|
9305
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9304
9306
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9305
9307
|
["&&", BinaryOperator.And],
|
|
9306
9308
|
[">", BinaryOperator.Bigger],
|
|
@@ -9351,7 +9353,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9351
9353
|
return literal(value);
|
|
9352
9354
|
}
|
|
9353
9355
|
|
|
9354
|
-
// bazel-out/
|
|
9356
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9355
9357
|
function collectElementConsts(job) {
|
|
9356
9358
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9357
9359
|
for (const unit of job.units) {
|
|
@@ -9513,7 +9515,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
9513
9515
|
return literalArr(attrArray);
|
|
9514
9516
|
}
|
|
9515
9517
|
|
|
9516
|
-
// bazel-out/
|
|
9518
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
|
|
9517
9519
|
function convertI18nBindings(job) {
|
|
9518
9520
|
const i18nAttributesByElem = /* @__PURE__ */ new Map();
|
|
9519
9521
|
for (const unit of job.units) {
|
|
@@ -9554,14 +9556,18 @@ function convertI18nBindings(job) {
|
|
|
9554
9556
|
}
|
|
9555
9557
|
}
|
|
9556
9558
|
|
|
9557
|
-
// bazel-out/
|
|
9559
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
|
|
9558
9560
|
function createDeferDepsFns(job) {
|
|
9561
|
+
var _a2;
|
|
9559
9562
|
for (const unit of job.units) {
|
|
9560
9563
|
for (const op of unit.create) {
|
|
9561
9564
|
if (op.kind === OpKind.Defer) {
|
|
9562
9565
|
if (op.metadata.deps.length === 0) {
|
|
9563
9566
|
continue;
|
|
9564
9567
|
}
|
|
9568
|
+
if (op.resolverFn !== null) {
|
|
9569
|
+
continue;
|
|
9570
|
+
}
|
|
9565
9571
|
const dependencies = [];
|
|
9566
9572
|
for (const dep of op.metadata.deps) {
|
|
9567
9573
|
if (dep.isDeferrable) {
|
|
@@ -9576,9 +9582,10 @@ function createDeferDepsFns(job) {
|
|
|
9576
9582
|
if (op.handle.slot === null) {
|
|
9577
9583
|
throw new Error("AssertionError: slot must be assigned bfore extracting defer deps functions");
|
|
9578
9584
|
}
|
|
9585
|
+
const fullPathName = (_a2 = unit.fnName) == null ? void 0 : _a2.replace(`_Template`, ``);
|
|
9579
9586
|
op.resolverFn = job.pool.getSharedFunctionReference(
|
|
9580
9587
|
depsFnExpr,
|
|
9581
|
-
`${
|
|
9588
|
+
`${fullPathName}_Defer_${op.handle.slot}_DepsFn`,
|
|
9582
9589
|
false
|
|
9583
9590
|
);
|
|
9584
9591
|
}
|
|
@@ -9586,7 +9593,7 @@ function createDeferDepsFns(job) {
|
|
|
9586
9593
|
}
|
|
9587
9594
|
}
|
|
9588
9595
|
|
|
9589
|
-
// bazel-out/
|
|
9596
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
9590
9597
|
function createI18nContexts(job) {
|
|
9591
9598
|
const attrContextByMessage = /* @__PURE__ */ new Map();
|
|
9592
9599
|
for (const unit of job.units) {
|
|
@@ -9651,7 +9658,7 @@ function createI18nContexts(job) {
|
|
|
9651
9658
|
throw Error("AssertionError: Unexpected ICU outside of an i18n block.");
|
|
9652
9659
|
}
|
|
9653
9660
|
if (op.message.id !== currentI18nOp.message.id) {
|
|
9654
|
-
const contextOp = createI18nContextOp(I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.
|
|
9661
|
+
const contextOp = createI18nContextOp(I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.root, op.message, null);
|
|
9655
9662
|
unit.create.push(contextOp);
|
|
9656
9663
|
op.context = contextOp.xref;
|
|
9657
9664
|
} else {
|
|
@@ -9664,7 +9671,7 @@ function createI18nContexts(job) {
|
|
|
9664
9671
|
}
|
|
9665
9672
|
}
|
|
9666
9673
|
|
|
9667
|
-
// bazel-out/
|
|
9674
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
|
|
9668
9675
|
function deduplicateTextBindings(job) {
|
|
9669
9676
|
const seen = /* @__PURE__ */ new Map();
|
|
9670
9677
|
for (const unit of job.units) {
|
|
@@ -9686,7 +9693,7 @@ function deduplicateTextBindings(job) {
|
|
|
9686
9693
|
}
|
|
9687
9694
|
}
|
|
9688
9695
|
|
|
9689
|
-
// bazel-out/
|
|
9696
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
9690
9697
|
function configureDeferInstructions(job) {
|
|
9691
9698
|
for (const unit of job.units) {
|
|
9692
9699
|
for (const op of unit.create) {
|
|
@@ -9703,7 +9710,7 @@ function configureDeferInstructions(job) {
|
|
|
9703
9710
|
}
|
|
9704
9711
|
}
|
|
9705
9712
|
|
|
9706
|
-
// bazel-out/
|
|
9713
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
9707
9714
|
function resolveDeferTargetNames(job) {
|
|
9708
9715
|
const scopes = /* @__PURE__ */ new Map();
|
|
9709
9716
|
function getScopeForView2(view) {
|
|
@@ -9797,7 +9804,7 @@ var Scope = class {
|
|
|
9797
9804
|
}
|
|
9798
9805
|
};
|
|
9799
9806
|
|
|
9800
|
-
// bazel-out/
|
|
9807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
9801
9808
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
9802
9809
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
9803
9810
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -9824,7 +9831,7 @@ function collapseEmptyInstructions(job) {
|
|
|
9824
9831
|
}
|
|
9825
9832
|
}
|
|
9826
9833
|
|
|
9827
|
-
// bazel-out/
|
|
9834
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9828
9835
|
function expandSafeReads(job) {
|
|
9829
9836
|
for (const unit of job.units) {
|
|
9830
9837
|
for (const op of unit.ops()) {
|
|
@@ -9960,7 +9967,7 @@ function ternaryTransform(e) {
|
|
|
9960
9967
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9961
9968
|
}
|
|
9962
9969
|
|
|
9963
|
-
// bazel-out/
|
|
9970
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
9964
9971
|
var ESCAPE = "\uFFFD";
|
|
9965
9972
|
var ELEMENT_MARKER = "#";
|
|
9966
9973
|
var TEMPLATE_MARKER = "*";
|
|
@@ -10096,7 +10103,7 @@ function formatValue(value) {
|
|
|
10096
10103
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
10097
10104
|
}
|
|
10098
10105
|
|
|
10099
|
-
// bazel-out/
|
|
10106
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
10100
10107
|
function generateAdvance(job) {
|
|
10101
10108
|
for (const unit of job.units) {
|
|
10102
10109
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -10128,7 +10135,7 @@ function generateAdvance(job) {
|
|
|
10128
10135
|
}
|
|
10129
10136
|
}
|
|
10130
10137
|
|
|
10131
|
-
// bazel-out/
|
|
10138
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
10132
10139
|
function generateProjectionDefs(job) {
|
|
10133
10140
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
10134
10141
|
const selectors = [];
|
|
@@ -10152,7 +10159,7 @@ function generateProjectionDefs(job) {
|
|
|
10152
10159
|
}
|
|
10153
10160
|
}
|
|
10154
10161
|
|
|
10155
|
-
// bazel-out/
|
|
10162
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
10156
10163
|
function generateVariables(job) {
|
|
10157
10164
|
recursivelyProcessView(job.root, null);
|
|
10158
10165
|
}
|
|
@@ -10245,7 +10252,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
10245
10252
|
return newOps;
|
|
10246
10253
|
}
|
|
10247
10254
|
|
|
10248
|
-
// bazel-out/
|
|
10255
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
10249
10256
|
function collectConstExpressions(job) {
|
|
10250
10257
|
for (const unit of job.units) {
|
|
10251
10258
|
for (const op of unit.ops()) {
|
|
@@ -10259,7 +10266,7 @@ function collectConstExpressions(job) {
|
|
|
10259
10266
|
}
|
|
10260
10267
|
}
|
|
10261
10268
|
|
|
10262
|
-
// bazel-out/
|
|
10269
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
10263
10270
|
var STYLE_DOT = "style.";
|
|
10264
10271
|
var CLASS_DOT = "class.";
|
|
10265
10272
|
var STYLE_BANG = "style!";
|
|
@@ -10317,7 +10324,7 @@ function parseProperty(name) {
|
|
|
10317
10324
|
return { property: property2, suffix };
|
|
10318
10325
|
}
|
|
10319
10326
|
|
|
10320
|
-
// bazel-out/
|
|
10327
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
10321
10328
|
function mapLiteral(obj, quoted = false) {
|
|
10322
10329
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
10323
10330
|
key,
|
|
@@ -10326,7 +10333,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
10326
10333
|
})));
|
|
10327
10334
|
}
|
|
10328
10335
|
|
|
10329
|
-
// bazel-out/
|
|
10336
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
10330
10337
|
var IcuSerializerVisitor = class {
|
|
10331
10338
|
visitText(text2) {
|
|
10332
10339
|
return text2.value;
|
|
@@ -10360,7 +10367,7 @@ function serializeIcuNode(icu) {
|
|
|
10360
10367
|
return icu.visit(serializer);
|
|
10361
10368
|
}
|
|
10362
10369
|
|
|
10363
|
-
// bazel-out/
|
|
10370
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10364
10371
|
var TokenType;
|
|
10365
10372
|
(function(TokenType2) {
|
|
10366
10373
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10721,7 +10728,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10721
10728
|
return result;
|
|
10722
10729
|
}
|
|
10723
10730
|
|
|
10724
|
-
// bazel-out/
|
|
10731
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10725
10732
|
var SplitInterpolation = class {
|
|
10726
10733
|
constructor(strings, expressions, offsets) {
|
|
10727
10734
|
this.strings = strings;
|
|
@@ -11615,7 +11622,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11615
11622
|
return offsetMap;
|
|
11616
11623
|
}
|
|
11617
11624
|
|
|
11618
|
-
// bazel-out/
|
|
11625
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11619
11626
|
var NodeWithI18n = class {
|
|
11620
11627
|
constructor(sourceSpan, i18n2) {
|
|
11621
11628
|
this.sourceSpan = sourceSpan;
|
|
@@ -11767,11 +11774,11 @@ var RecursiveVisitor = class {
|
|
|
11767
11774
|
}
|
|
11768
11775
|
};
|
|
11769
11776
|
|
|
11770
|
-
// bazel-out/
|
|
11777
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11771
11778
|
var ElementSchemaRegistry = class {
|
|
11772
11779
|
};
|
|
11773
11780
|
|
|
11774
|
-
// bazel-out/
|
|
11781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11775
11782
|
var BOOLEAN = "boolean";
|
|
11776
11783
|
var NUMBER = "number";
|
|
11777
11784
|
var STRING = "string";
|
|
@@ -12124,7 +12131,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
12124
12131
|
}
|
|
12125
12132
|
}
|
|
12126
12133
|
|
|
12127
|
-
// bazel-out/
|
|
12134
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
12128
12135
|
var HtmlTagDefinition = class {
|
|
12129
12136
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
12130
12137
|
this.closedByChildren = {};
|
|
@@ -12242,7 +12249,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
12242
12249
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
12243
12250
|
}
|
|
12244
12251
|
|
|
12245
|
-
// bazel-out/
|
|
12252
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
12246
12253
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
12247
12254
|
"A": "LINK",
|
|
12248
12255
|
"B": "BOLD_TEXT",
|
|
@@ -12364,7 +12371,7 @@ var PlaceholderRegistry = class {
|
|
|
12364
12371
|
}
|
|
12365
12372
|
};
|
|
12366
12373
|
|
|
12367
|
-
// bazel-out/
|
|
12374
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
12368
12375
|
var _expParser = new Parser(new Lexer());
|
|
12369
12376
|
function createI18nMessageFactory(interpolationConfig, containerBlocks) {
|
|
12370
12377
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
|
|
@@ -12543,14 +12550,14 @@ function extractPlaceholderName(input) {
|
|
|
12543
12550
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12544
12551
|
}
|
|
12545
12552
|
|
|
12546
|
-
// bazel-out/
|
|
12553
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12547
12554
|
var I18nError = class extends ParseError {
|
|
12548
12555
|
constructor(span, msg) {
|
|
12549
12556
|
super(span, msg);
|
|
12550
12557
|
}
|
|
12551
12558
|
};
|
|
12552
12559
|
|
|
12553
|
-
// bazel-out/
|
|
12560
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12554
12561
|
var NAMED_ENTITIES = {
|
|
12555
12562
|
"AElig": "\xC6",
|
|
12556
12563
|
"AMP": "&",
|
|
@@ -14681,7 +14688,7 @@ var NAMED_ENTITIES = {
|
|
|
14681
14688
|
var NGSP_UNICODE = "\uE500";
|
|
14682
14689
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14683
14690
|
|
|
14684
|
-
// bazel-out/
|
|
14691
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14685
14692
|
var TokenError = class extends ParseError {
|
|
14686
14693
|
constructor(errorMsg, tokenType, span) {
|
|
14687
14694
|
super(span, errorMsg);
|
|
@@ -15602,7 +15609,7 @@ var CursorError = class {
|
|
|
15602
15609
|
}
|
|
15603
15610
|
};
|
|
15604
15611
|
|
|
15605
|
-
// bazel-out/
|
|
15612
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15606
15613
|
var TreeError = class extends ParseError {
|
|
15607
15614
|
static create(elementName, span, msg) {
|
|
15608
15615
|
return new TreeError(elementName, span, msg);
|
|
@@ -15986,7 +15993,7 @@ function decodeEntity(match, entity) {
|
|
|
15986
15993
|
return match;
|
|
15987
15994
|
}
|
|
15988
15995
|
|
|
15989
|
-
// bazel-out/
|
|
15996
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15990
15997
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15991
15998
|
"iframe|srcdoc",
|
|
15992
15999
|
"*|innerhtml",
|
|
@@ -16001,7 +16008,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
16001
16008
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
16002
16009
|
}
|
|
16003
16010
|
|
|
16004
|
-
// bazel-out/
|
|
16011
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
16005
16012
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
16006
16013
|
if (htmlNode instanceof NodeWithI18n) {
|
|
16007
16014
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16158,7 +16165,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16158
16165
|
return jsDocComment(tags);
|
|
16159
16166
|
}
|
|
16160
16167
|
|
|
16161
|
-
// bazel-out/
|
|
16168
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16162
16169
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16163
16170
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16164
16171
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16209,7 +16216,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16209
16216
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16210
16217
|
}
|
|
16211
16218
|
|
|
16212
|
-
// bazel-out/
|
|
16219
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16213
16220
|
function createLocalizeStatements(variable2, message, params) {
|
|
16214
16221
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16215
16222
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16298,7 +16305,7 @@ function createEmptyMessagePart(location) {
|
|
|
16298
16305
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16299
16306
|
}
|
|
16300
16307
|
|
|
16301
|
-
// bazel-out/
|
|
16308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
16302
16309
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
16303
16310
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
16304
16311
|
var I18N_ICU_MAPPING_PREFIX2 = "I18N_EXP_";
|
|
@@ -16459,7 +16466,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
16459
16466
|
return variable(name);
|
|
16460
16467
|
}
|
|
16461
16468
|
|
|
16462
|
-
// bazel-out/
|
|
16469
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16463
16470
|
function convertI18nText(job) {
|
|
16464
16471
|
var _a2, _b2, _c2;
|
|
16465
16472
|
for (const unit of job.units) {
|
|
@@ -16529,7 +16536,7 @@ function convertI18nText(job) {
|
|
|
16529
16536
|
}
|
|
16530
16537
|
}
|
|
16531
16538
|
|
|
16532
|
-
// bazel-out/
|
|
16539
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16533
16540
|
function liftLocalRefs(job) {
|
|
16534
16541
|
for (const unit of job.units) {
|
|
16535
16542
|
for (const op of unit.create) {
|
|
@@ -16559,7 +16566,7 @@ function serializeLocalRefs(refs) {
|
|
|
16559
16566
|
return literalArr(constRefs);
|
|
16560
16567
|
}
|
|
16561
16568
|
|
|
16562
|
-
// bazel-out/
|
|
16569
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16563
16570
|
function emitNamespaceChanges(job) {
|
|
16564
16571
|
for (const unit of job.units) {
|
|
16565
16572
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16575,7 +16582,7 @@ function emitNamespaceChanges(job) {
|
|
|
16575
16582
|
}
|
|
16576
16583
|
}
|
|
16577
16584
|
|
|
16578
|
-
// bazel-out/
|
|
16585
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16579
16586
|
function parse(value) {
|
|
16580
16587
|
const styles = [];
|
|
16581
16588
|
let i = 0;
|
|
@@ -16636,7 +16643,7 @@ function hyphenate2(value) {
|
|
|
16636
16643
|
}).toLowerCase();
|
|
16637
16644
|
}
|
|
16638
16645
|
|
|
16639
|
-
// bazel-out/
|
|
16646
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16640
16647
|
function nameFunctionsAndVariables(job) {
|
|
16641
16648
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16642
16649
|
}
|
|
@@ -16756,7 +16763,7 @@ function stripImportant(name) {
|
|
|
16756
16763
|
return name;
|
|
16757
16764
|
}
|
|
16758
16765
|
|
|
16759
|
-
// bazel-out/
|
|
16766
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16760
16767
|
function mergeNextContextExpressions(job) {
|
|
16761
16768
|
for (const unit of job.units) {
|
|
16762
16769
|
for (const op of unit.create) {
|
|
@@ -16802,7 +16809,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16802
16809
|
}
|
|
16803
16810
|
}
|
|
16804
16811
|
|
|
16805
|
-
// bazel-out/
|
|
16812
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16806
16813
|
var CONTAINER_TAG = "ng-container";
|
|
16807
16814
|
function generateNgContainerOps(job) {
|
|
16808
16815
|
for (const unit of job.units) {
|
|
@@ -16819,7 +16826,7 @@ function generateNgContainerOps(job) {
|
|
|
16819
16826
|
}
|
|
16820
16827
|
}
|
|
16821
16828
|
|
|
16822
|
-
// bazel-out/
|
|
16829
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16823
16830
|
function lookupElement3(elements, xref) {
|
|
16824
16831
|
const el = elements.get(xref);
|
|
16825
16832
|
if (el === void 0) {
|
|
@@ -16849,7 +16856,7 @@ function disableBindings(job) {
|
|
|
16849
16856
|
}
|
|
16850
16857
|
}
|
|
16851
16858
|
|
|
16852
|
-
// bazel-out/
|
|
16859
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16853
16860
|
function generateNullishCoalesceExpressions(job) {
|
|
16854
16861
|
for (const unit of job.units) {
|
|
16855
16862
|
for (const op of unit.ops()) {
|
|
@@ -16865,7 +16872,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
16865
16872
|
}
|
|
16866
16873
|
}
|
|
16867
16874
|
|
|
16868
|
-
// bazel-out/
|
|
16875
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16869
16876
|
function kindTest(kind) {
|
|
16870
16877
|
return (op) => op.kind === kind;
|
|
16871
16878
|
}
|
|
@@ -16947,7 +16954,7 @@ function keepLast(ops) {
|
|
|
16947
16954
|
return ops.slice(ops.length - 1);
|
|
16948
16955
|
}
|
|
16949
16956
|
|
|
16950
|
-
// bazel-out/
|
|
16957
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
16951
16958
|
function parseExtractedStyles(job) {
|
|
16952
16959
|
const elements = /* @__PURE__ */ new Map();
|
|
16953
16960
|
for (const unit of job.units) {
|
|
@@ -16982,7 +16989,7 @@ function parseExtractedStyles(job) {
|
|
|
16982
16989
|
}
|
|
16983
16990
|
}
|
|
16984
16991
|
|
|
16985
|
-
// bazel-out/
|
|
16992
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16986
16993
|
function removeContentSelectors(job) {
|
|
16987
16994
|
for (const unit of job.units) {
|
|
16988
16995
|
const elements = createOpXrefMap(unit);
|
|
@@ -17009,7 +17016,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
17009
17016
|
return el;
|
|
17010
17017
|
}
|
|
17011
17018
|
|
|
17012
|
-
// bazel-out/
|
|
17019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
17013
17020
|
function createPipes(job) {
|
|
17014
17021
|
for (const unit of job.units) {
|
|
17015
17022
|
processPipeBindingsInView(unit);
|
|
@@ -17057,7 +17064,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
17057
17064
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
17058
17065
|
}
|
|
17059
17066
|
|
|
17060
|
-
// bazel-out/
|
|
17067
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
17061
17068
|
function createVariadicPipes(job) {
|
|
17062
17069
|
for (const unit of job.units) {
|
|
17063
17070
|
for (const op of unit.update) {
|
|
@@ -17074,7 +17081,7 @@ function createVariadicPipes(job) {
|
|
|
17074
17081
|
}
|
|
17075
17082
|
}
|
|
17076
17083
|
|
|
17077
|
-
// bazel-out/
|
|
17084
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
17078
17085
|
function propagateI18nBlocks(job) {
|
|
17079
17086
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
17080
17087
|
}
|
|
@@ -17128,7 +17135,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
17128
17135
|
}
|
|
17129
17136
|
}
|
|
17130
17137
|
|
|
17131
|
-
// bazel-out/
|
|
17138
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
17132
17139
|
function extractPureFunctions(job) {
|
|
17133
17140
|
for (const view of job.units) {
|
|
17134
17141
|
for (const op of view.ops()) {
|
|
@@ -17170,7 +17177,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
17170
17177
|
}
|
|
17171
17178
|
};
|
|
17172
17179
|
|
|
17173
|
-
// bazel-out/
|
|
17180
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
17174
17181
|
function generatePureLiteralStructures(job) {
|
|
17175
17182
|
for (const unit of job.units) {
|
|
17176
17183
|
for (const op of unit.update) {
|
|
@@ -17217,7 +17224,7 @@ function transformLiteralMap(expr) {
|
|
|
17217
17224
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
17218
17225
|
}
|
|
17219
17226
|
|
|
17220
|
-
// bazel-out/
|
|
17227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
17221
17228
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
17222
17229
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
17223
17230
|
}
|
|
@@ -17739,7 +17746,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17739
17746
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17740
17747
|
}
|
|
17741
17748
|
|
|
17742
|
-
// bazel-out/
|
|
17749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17743
17750
|
var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
|
|
17744
17751
|
["window", Identifiers.resolveWindow],
|
|
17745
17752
|
["document", Identifiers.resolveDocument],
|
|
@@ -18072,7 +18079,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
18072
18079
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
18073
18080
|
}
|
|
18074
18081
|
|
|
18075
|
-
// bazel-out/
|
|
18082
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
18076
18083
|
function removeEmptyBindings(job) {
|
|
18077
18084
|
for (const unit of job.units) {
|
|
18078
18085
|
for (const op of unit.update) {
|
|
@@ -18093,7 +18100,7 @@ function removeEmptyBindings(job) {
|
|
|
18093
18100
|
}
|
|
18094
18101
|
}
|
|
18095
18102
|
|
|
18096
|
-
// bazel-out/
|
|
18103
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
18097
18104
|
function removeI18nContexts(job) {
|
|
18098
18105
|
for (const unit of job.units) {
|
|
18099
18106
|
for (const op of unit.create) {
|
|
@@ -18109,7 +18116,7 @@ function removeI18nContexts(job) {
|
|
|
18109
18116
|
}
|
|
18110
18117
|
}
|
|
18111
18118
|
|
|
18112
|
-
// bazel-out/
|
|
18119
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
|
|
18113
18120
|
function removeUnusedI18nAttributesOps(job) {
|
|
18114
18121
|
for (const unit of job.units) {
|
|
18115
18122
|
const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
|
|
@@ -18131,7 +18138,7 @@ function removeUnusedI18nAttributesOps(job) {
|
|
|
18131
18138
|
}
|
|
18132
18139
|
}
|
|
18133
18140
|
|
|
18134
|
-
// bazel-out/
|
|
18141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
18135
18142
|
function resolveContexts(job) {
|
|
18136
18143
|
for (const unit of job.units) {
|
|
18137
18144
|
processLexicalScope(unit, unit.create);
|
|
@@ -18172,7 +18179,7 @@ function processLexicalScope(view, ops) {
|
|
|
18172
18179
|
}
|
|
18173
18180
|
}
|
|
18174
18181
|
|
|
18175
|
-
// bazel-out/
|
|
18182
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
18176
18183
|
function resolveDollarEvent(job) {
|
|
18177
18184
|
for (const unit of job.units) {
|
|
18178
18185
|
transformDollarEvent(unit, unit.create);
|
|
@@ -18193,7 +18200,7 @@ function transformDollarEvent(unit, ops) {
|
|
|
18193
18200
|
}
|
|
18194
18201
|
}
|
|
18195
18202
|
|
|
18196
|
-
// bazel-out/
|
|
18203
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
18197
18204
|
function resolveI18nElementPlaceholders(job) {
|
|
18198
18205
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
18199
18206
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -18372,7 +18379,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
|
|
|
18372
18379
|
params.set(placeholder, values);
|
|
18373
18380
|
}
|
|
18374
18381
|
|
|
18375
|
-
// bazel-out/
|
|
18382
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
18376
18383
|
function resolveI18nExpressionPlaceholders(job) {
|
|
18377
18384
|
var _a2;
|
|
18378
18385
|
const subTemplateIndicies = /* @__PURE__ */ new Map();
|
|
@@ -18425,7 +18432,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
|
|
|
18425
18432
|
}
|
|
18426
18433
|
}
|
|
18427
18434
|
|
|
18428
|
-
// bazel-out/
|
|
18435
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
18429
18436
|
function resolveNames(job) {
|
|
18430
18437
|
for (const unit of job.units) {
|
|
18431
18438
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -18489,7 +18496,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18489
18496
|
}
|
|
18490
18497
|
}
|
|
18491
18498
|
|
|
18492
|
-
// bazel-out/
|
|
18499
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
18493
18500
|
var sanitizerFns = /* @__PURE__ */ new Map([
|
|
18494
18501
|
[SecurityContext.HTML, Identifiers.sanitizeHtml],
|
|
18495
18502
|
[SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
|
|
@@ -18559,7 +18566,7 @@ function getOnlySecurityContext(securityContext) {
|
|
|
18559
18566
|
return securityContext;
|
|
18560
18567
|
}
|
|
18561
18568
|
|
|
18562
|
-
// bazel-out/
|
|
18569
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18563
18570
|
function saveAndRestoreView(job) {
|
|
18564
18571
|
for (const unit of job.units) {
|
|
18565
18572
|
unit.create.prepend([
|
|
@@ -18604,7 +18611,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18604
18611
|
}
|
|
18605
18612
|
}
|
|
18606
18613
|
|
|
18607
|
-
// bazel-out/
|
|
18614
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18608
18615
|
function allocateSlots(job) {
|
|
18609
18616
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18610
18617
|
for (const unit of job.units) {
|
|
@@ -18629,7 +18636,7 @@ function allocateSlots(job) {
|
|
|
18629
18636
|
}
|
|
18630
18637
|
}
|
|
18631
18638
|
|
|
18632
|
-
// bazel-out/
|
|
18639
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18633
18640
|
function specializeStyleBindings(job) {
|
|
18634
18641
|
for (const unit of job.units) {
|
|
18635
18642
|
for (const op of unit.update) {
|
|
@@ -18659,7 +18666,7 @@ function specializeStyleBindings(job) {
|
|
|
18659
18666
|
}
|
|
18660
18667
|
}
|
|
18661
18668
|
|
|
18662
|
-
// bazel-out/
|
|
18669
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18663
18670
|
function generateTemporaryVariables(job) {
|
|
18664
18671
|
for (const unit of job.units) {
|
|
18665
18672
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18717,7 +18724,7 @@ function assignName(names, expr) {
|
|
|
18717
18724
|
expr.name = name;
|
|
18718
18725
|
}
|
|
18719
18726
|
|
|
18720
|
-
// bazel-out/
|
|
18727
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18721
18728
|
function generateTrackFns(job) {
|
|
18722
18729
|
for (const unit of job.units) {
|
|
18723
18730
|
for (const op of unit.create) {
|
|
@@ -18750,7 +18757,7 @@ function generateTrackFns(job) {
|
|
|
18750
18757
|
}
|
|
18751
18758
|
}
|
|
18752
18759
|
|
|
18753
|
-
// bazel-out/
|
|
18760
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18754
18761
|
function optimizeTrackFns(job) {
|
|
18755
18762
|
for (const unit of job.units) {
|
|
18756
18763
|
for (const op of unit.create) {
|
|
@@ -18797,7 +18804,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18797
18804
|
return true;
|
|
18798
18805
|
}
|
|
18799
18806
|
|
|
18800
|
-
// bazel-out/
|
|
18807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18801
18808
|
function generateTrackVariables(job) {
|
|
18802
18809
|
for (const unit of job.units) {
|
|
18803
18810
|
for (const op of unit.create) {
|
|
@@ -18818,7 +18825,7 @@ function generateTrackVariables(job) {
|
|
|
18818
18825
|
}
|
|
18819
18826
|
}
|
|
18820
18827
|
|
|
18821
|
-
// bazel-out/
|
|
18828
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18822
18829
|
function countVariables(job) {
|
|
18823
18830
|
for (const unit of job.units) {
|
|
18824
18831
|
let varCount = 0;
|
|
@@ -18926,7 +18933,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18926
18933
|
return true;
|
|
18927
18934
|
}
|
|
18928
18935
|
|
|
18929
|
-
// bazel-out/
|
|
18936
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18930
18937
|
function optimizeVariables(job) {
|
|
18931
18938
|
for (const unit of job.units) {
|
|
18932
18939
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -19176,7 +19183,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
19176
19183
|
}
|
|
19177
19184
|
}
|
|
19178
19185
|
|
|
19179
|
-
// bazel-out/
|
|
19186
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
19180
19187
|
function wrapI18nIcus(job) {
|
|
19181
19188
|
for (const unit of job.units) {
|
|
19182
19189
|
let currentI18nOp = null;
|
|
@@ -19206,7 +19213,7 @@ function wrapI18nIcus(job) {
|
|
|
19206
19213
|
}
|
|
19207
19214
|
}
|
|
19208
19215
|
|
|
19209
|
-
// bazel-out/
|
|
19216
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
19210
19217
|
var phases = [
|
|
19211
19218
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
19212
19219
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -19248,7 +19255,6 @@ var phases = [
|
|
|
19248
19255
|
{ kind: CompilationJobKind.Both, fn: expandSafeReads },
|
|
19249
19256
|
{ kind: CompilationJobKind.Both, fn: generateTemporaryVariables },
|
|
19250
19257
|
{ kind: CompilationJobKind.Tmpl, fn: allocateSlots },
|
|
19251
|
-
{ kind: CompilationJobKind.Tmpl, fn: createDeferDepsFns },
|
|
19252
19258
|
{ kind: CompilationJobKind.Tmpl, fn: resolveI18nElementPlaceholders },
|
|
19253
19259
|
{ kind: CompilationJobKind.Tmpl, fn: resolveI18nExpressionPlaceholders },
|
|
19254
19260
|
{ kind: CompilationJobKind.Tmpl, fn: extractI18nMessages },
|
|
@@ -19261,6 +19267,7 @@ var phases = [
|
|
|
19261
19267
|
{ kind: CompilationJobKind.Tmpl, fn: generateAdvance },
|
|
19262
19268
|
{ kind: CompilationJobKind.Both, fn: optimizeVariables },
|
|
19263
19269
|
{ kind: CompilationJobKind.Both, fn: nameFunctionsAndVariables },
|
|
19270
|
+
{ kind: CompilationJobKind.Tmpl, fn: createDeferDepsFns },
|
|
19264
19271
|
{ kind: CompilationJobKind.Tmpl, fn: mergeNextContextExpressions },
|
|
19265
19272
|
{ kind: CompilationJobKind.Tmpl, fn: generateNgContainerOps },
|
|
19266
19273
|
{ kind: CompilationJobKind.Tmpl, fn: collapseEmptyInstructions },
|
|
@@ -19371,12 +19378,12 @@ function emitHostBindingFunction(job) {
|
|
|
19371
19378
|
);
|
|
19372
19379
|
}
|
|
19373
19380
|
|
|
19374
|
-
// bazel-out/
|
|
19381
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
19375
19382
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
19376
19383
|
var domSchema = new DomElementSchemaRegistry();
|
|
19377
19384
|
var NG_TEMPLATE_TAG_NAME = "ng-template";
|
|
19378
|
-
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
|
|
19379
|
-
const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta);
|
|
19385
|
+
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta, allDeferrableDepsFn) {
|
|
19386
|
+
const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta, allDeferrableDepsFn);
|
|
19380
19387
|
ingestNodes(job.root, template2);
|
|
19381
19388
|
return job;
|
|
19382
19389
|
}
|
|
@@ -19431,7 +19438,7 @@ function ingestHostAttribute(job, name, value, securityContexts) {
|
|
|
19431
19438
|
job.root.update.push(attrBinding);
|
|
19432
19439
|
}
|
|
19433
19440
|
function ingestHostEvent(job, event) {
|
|
19434
|
-
const [phase, target] = event.type
|
|
19441
|
+
const [phase, target] = event.type !== 1 ? [null, event.targetOrPhase] : [event.targetOrPhase, null];
|
|
19435
19442
|
const eventBinding = createListenerOp(job.root.xref, new SlotHandle(), event.name, null, makeListenerHandlerOps(job.root, event.handler, event.handlerSpan), phase, target, true, event.sourceSpan);
|
|
19436
19443
|
job.root.create.push(eventBinding);
|
|
19437
19444
|
}
|
|
@@ -19640,7 +19647,7 @@ function ingestDeferBlock(unit, deferBlock) {
|
|
|
19640
19647
|
const placeholder = ingestDeferView(unit, "Placeholder", (_d2 = deferBlock.placeholder) == null ? void 0 : _d2.i18n, (_e2 = deferBlock.placeholder) == null ? void 0 : _e2.children, (_f2 = deferBlock.placeholder) == null ? void 0 : _f2.sourceSpan);
|
|
19641
19648
|
const error2 = ingestDeferView(unit, "Error", (_g = deferBlock.error) == null ? void 0 : _g.i18n, (_h = deferBlock.error) == null ? void 0 : _h.children, (_i = deferBlock.error) == null ? void 0 : _i.sourceSpan);
|
|
19642
19649
|
const deferXref = unit.job.allocateXrefId();
|
|
19643
|
-
const deferOp = createDeferOp(deferXref, main.xref, main.handle, blockMeta, deferBlock.sourceSpan);
|
|
19650
|
+
const deferOp = createDeferOp(deferXref, main.xref, main.handle, blockMeta, unit.job.allDeferrableDepsFn, deferBlock.sourceSpan);
|
|
19644
19651
|
deferOp.placeholderView = (_j = placeholder == null ? void 0 : placeholder.xref) != null ? _j : null;
|
|
19645
19652
|
deferOp.placeholderSlot = (_k = placeholder == null ? void 0 : placeholder.handle) != null ? _k : null;
|
|
19646
19653
|
deferOp.loadingSlot = (_l = loading == null ? void 0 : loading.handle) != null ? _l : null;
|
|
@@ -19898,6 +19905,7 @@ function convertAstWithInterpolation(job, value, i18nMeta, sourceSpan) {
|
|
|
19898
19905
|
}
|
|
19899
19906
|
var BINDING_KINDS = /* @__PURE__ */ new Map([
|
|
19900
19907
|
[0, BindingKind.Property],
|
|
19908
|
+
[5, BindingKind.Property],
|
|
19901
19909
|
[1, BindingKind.Attribute],
|
|
19902
19910
|
[2, BindingKind.ClassName],
|
|
19903
19911
|
[3, BindingKind.StyleProperty],
|
|
@@ -19976,7 +19984,7 @@ function ingestTemplateBindings(unit, op, template2, templateKind) {
|
|
|
19976
19984
|
function createTemplateBinding(view, xref, type, name, value, unit, securityContext, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan) {
|
|
19977
19985
|
const isTextBinding = typeof value === "string";
|
|
19978
19986
|
if (templateKind === TemplateKind.Structural) {
|
|
19979
|
-
if (!isStructuralTemplateAttribute && (type === 0 || type === 2 || type === 3)) {
|
|
19987
|
+
if (!isStructuralTemplateAttribute && (type === 0 || type === 5 || type === 2 || type === 3)) {
|
|
19980
19988
|
return createExtractedAttributeOp(xref, BindingKind.Property, null, name, null, null, i18nMessage, securityContext);
|
|
19981
19989
|
}
|
|
19982
19990
|
if (!isTextBinding && (type === 1 || type === 4)) {
|
|
@@ -20054,10 +20062,10 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
20054
20062
|
return null;
|
|
20055
20063
|
}
|
|
20056
20064
|
|
|
20057
|
-
// bazel-out/
|
|
20065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
20058
20066
|
var USE_TEMPLATE_PIPELINE = false;
|
|
20059
20067
|
|
|
20060
|
-
// bazel-out/
|
|
20068
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
20061
20069
|
var IMPORTANT_FLAG = "!important";
|
|
20062
20070
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
20063
20071
|
var StylingBuilder = class {
|
|
@@ -20390,7 +20398,7 @@ function isEmptyExpression(ast) {
|
|
|
20390
20398
|
return ast instanceof EmptyExpr;
|
|
20391
20399
|
}
|
|
20392
20400
|
|
|
20393
|
-
// bazel-out/
|
|
20401
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
20394
20402
|
var HtmlParser = class extends Parser2 {
|
|
20395
20403
|
constructor() {
|
|
20396
20404
|
super(getHtmlTagDefinition);
|
|
@@ -20400,7 +20408,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
20400
20408
|
}
|
|
20401
20409
|
};
|
|
20402
20410
|
|
|
20403
|
-
// bazel-out/
|
|
20411
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
20404
20412
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
20405
20413
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
20406
20414
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -20466,7 +20474,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
20466
20474
|
return result;
|
|
20467
20475
|
}
|
|
20468
20476
|
|
|
20469
|
-
// bazel-out/
|
|
20477
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
20470
20478
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
20471
20479
|
var ATTRIBUTE_PREFIX = "attr";
|
|
20472
20480
|
var CLASS_PREFIX = "class";
|
|
@@ -20492,6 +20500,7 @@ var BindingParser = class {
|
|
|
20492
20500
|
propName,
|
|
20493
20501
|
expression,
|
|
20494
20502
|
true,
|
|
20503
|
+
false,
|
|
20495
20504
|
sourceSpan,
|
|
20496
20505
|
sourceSpan.start.offset,
|
|
20497
20506
|
void 0,
|
|
@@ -20557,7 +20566,7 @@ var BindingParser = class {
|
|
|
20557
20566
|
} else if (binding.value) {
|
|
20558
20567
|
const srcSpan = isIvyAst ? bindingSpan : sourceSpan;
|
|
20559
20568
|
const valueSpan = moveParseSourceSpan(sourceSpan, binding.value.ast.sourceSpan);
|
|
20560
|
-
this._parsePropertyAst(key, binding.value, srcSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
20569
|
+
this._parsePropertyAst(key, binding.value, false, srcSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
20561
20570
|
} else {
|
|
20562
20571
|
targetMatchableAttrs.push([key, ""]);
|
|
20563
20572
|
this.parseLiteralAttr(key, null, keySpan, absoluteValueOffset, void 0, targetMatchableAttrs, targetProps, keySpan);
|
|
@@ -20592,7 +20601,7 @@ var BindingParser = class {
|
|
|
20592
20601
|
targetProps.push(new ParsedProperty(name, this._exprParser.wrapLiteralPrimitive(value, "", absoluteOffset), ParsedPropertyType.LITERAL_ATTR, sourceSpan, keySpan, valueSpan));
|
|
20593
20602
|
}
|
|
20594
20603
|
}
|
|
20595
|
-
parsePropertyBinding(name, expression, isHost, sourceSpan, absoluteOffset, valueSpan, targetMatchableAttrs, targetProps, keySpan) {
|
|
20604
|
+
parsePropertyBinding(name, expression, isHost, isPartOfAssignmentBinding, sourceSpan, absoluteOffset, valueSpan, targetMatchableAttrs, targetProps, keySpan) {
|
|
20596
20605
|
if (name.length === 0) {
|
|
20597
20606
|
this._reportError(`Property name is missing in binding`, sourceSpan);
|
|
20598
20607
|
}
|
|
@@ -20613,20 +20622,20 @@ var BindingParser = class {
|
|
|
20613
20622
|
if (isAnimationProp) {
|
|
20614
20623
|
this._parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
20615
20624
|
} else {
|
|
20616
|
-
this._parsePropertyAst(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
20625
|
+
this._parsePropertyAst(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
20617
20626
|
}
|
|
20618
20627
|
}
|
|
20619
20628
|
parsePropertyInterpolation(name, value, sourceSpan, valueSpan, targetMatchableAttrs, targetProps, keySpan, interpolatedTokens) {
|
|
20620
20629
|
const expr = this.parseInterpolation(value, valueSpan || sourceSpan, interpolatedTokens);
|
|
20621
20630
|
if (expr) {
|
|
20622
|
-
this._parsePropertyAst(name, expr, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
20631
|
+
this._parsePropertyAst(name, expr, false, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
20623
20632
|
return true;
|
|
20624
20633
|
}
|
|
20625
20634
|
return false;
|
|
20626
20635
|
}
|
|
20627
|
-
_parsePropertyAst(name, ast, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
|
|
20636
|
+
_parsePropertyAst(name, ast, isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
|
|
20628
20637
|
targetMatchableAttrs.push([name, ast.source]);
|
|
20629
|
-
targetProps.push(new ParsedProperty(name, ast, ParsedPropertyType.DEFAULT, sourceSpan, keySpan, valueSpan));
|
|
20638
|
+
targetProps.push(new ParsedProperty(name, ast, isPartOfAssignmentBinding ? ParsedPropertyType.TWO_WAY : ParsedPropertyType.DEFAULT, sourceSpan, keySpan, valueSpan));
|
|
20630
20639
|
}
|
|
20631
20640
|
_parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
|
|
20632
20641
|
if (name.length === 0) {
|
|
@@ -20686,7 +20695,7 @@ var BindingParser = class {
|
|
|
20686
20695
|
const mappedPropName = this._schemaRegistry.getMappedPropName(boundProp.name);
|
|
20687
20696
|
boundPropertyName = mapPropertyName ? mappedPropName : boundProp.name;
|
|
20688
20697
|
securityContexts = calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, mappedPropName, false);
|
|
20689
|
-
bindingType = 0;
|
|
20698
|
+
bindingType = boundProp.type === ParsedPropertyType.TWO_WAY ? 5 : 0;
|
|
20690
20699
|
if (!skipValidation) {
|
|
20691
20700
|
this._validatePropertyOrAttributeName(mappedPropName, boundProp.sourceSpan, false);
|
|
20692
20701
|
}
|
|
@@ -20732,7 +20741,7 @@ var BindingParser = class {
|
|
|
20732
20741
|
const [target, eventName] = splitAtColon(name, [null, name]);
|
|
20733
20742
|
const ast = this._parseAction(expression, isAssignmentEvent, handlerSpan);
|
|
20734
20743
|
targetMatchableAttrs.push([name, ast.source]);
|
|
20735
|
-
targetEvents.push(new ParsedEvent(eventName, target, 0, ast, sourceSpan, handlerSpan, keySpan));
|
|
20744
|
+
targetEvents.push(new ParsedEvent(eventName, target, isAssignmentEvent ? 2 : 0, ast, sourceSpan, handlerSpan, keySpan));
|
|
20736
20745
|
}
|
|
20737
20746
|
_parseAction(value, isAssignmentEvent, sourceSpan) {
|
|
20738
20747
|
const sourceInfo = (sourceSpan && sourceSpan.start || "(unknown").toString();
|
|
@@ -20786,7 +20795,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
20786
20795
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
20787
20796
|
}
|
|
20788
20797
|
|
|
20789
|
-
// bazel-out/
|
|
20798
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20790
20799
|
function isStyleUrlResolvable(url) {
|
|
20791
20800
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20792
20801
|
return false;
|
|
@@ -20795,7 +20804,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20795
20804
|
}
|
|
20796
20805
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20797
20806
|
|
|
20798
|
-
// bazel-out/
|
|
20807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20799
20808
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20800
20809
|
var LINK_ELEMENT = "link";
|
|
20801
20810
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20865,12 +20874,13 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20865
20874
|
return selectAttr;
|
|
20866
20875
|
}
|
|
20867
20876
|
|
|
20868
|
-
// bazel-out/
|
|
20877
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20869
20878
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20870
20879
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20871
|
-
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
20880
|
+
var CONDITIONAL_ALIAS_PATTERN = /^(as\s)+(.*)/;
|
|
20872
20881
|
var ELSE_IF_PATTERN = /^else[^\S\r\n]+if/;
|
|
20873
20882
|
var FOR_LOOP_LET_PATTERN = /^let\s+([\S\s]*)/;
|
|
20883
|
+
var CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN = /(\s*)(\S+)(\s*)/;
|
|
20874
20884
|
var ALLOWED_FOR_LOOP_LET_VARIABLES = /* @__PURE__ */ new Set(["$index", "$first", "$last", "$even", "$odd", "$count"]);
|
|
20875
20885
|
function isConnectedForLoopBlock(name) {
|
|
20876
20886
|
return name === "empty";
|
|
@@ -20982,8 +20992,10 @@ function parseForLoopParameters(block, errors, bindingParser) {
|
|
|
20982
20992
|
return null;
|
|
20983
20993
|
}
|
|
20984
20994
|
const [, itemName, rawExpression] = match;
|
|
20995
|
+
const variableName = expressionParam.expression.split(" ")[0];
|
|
20996
|
+
const variableSpan = new ParseSourceSpan(expressionParam.sourceSpan.start, expressionParam.sourceSpan.start.moveBy(variableName.length));
|
|
20985
20997
|
const result = {
|
|
20986
|
-
itemName: new Variable(itemName, "$implicit",
|
|
20998
|
+
itemName: new Variable(itemName, "$implicit", variableSpan, variableSpan),
|
|
20987
20999
|
trackBy: null,
|
|
20988
21000
|
expression: parseBlockParameterToBinding(expressionParam, bindingParser, rawExpression),
|
|
20989
21001
|
context: {}
|
|
@@ -20991,7 +21003,8 @@ function parseForLoopParameters(block, errors, bindingParser) {
|
|
|
20991
21003
|
for (const param of secondaryParams) {
|
|
20992
21004
|
const letMatch = param.expression.match(FOR_LOOP_LET_PATTERN);
|
|
20993
21005
|
if (letMatch !== null) {
|
|
20994
|
-
|
|
21006
|
+
const variablesSpan = new ParseSourceSpan(param.sourceSpan.start.moveBy(letMatch[0].length - letMatch[1].length), param.sourceSpan.end);
|
|
21007
|
+
parseLetParameter(param.sourceSpan, letMatch[1], variablesSpan, result.context, errors);
|
|
20995
21008
|
continue;
|
|
20996
21009
|
}
|
|
20997
21010
|
const trackMatch = param.expression.match(FOR_LOOP_TRACK_PATTERN);
|
|
@@ -21007,16 +21020,18 @@ function parseForLoopParameters(block, errors, bindingParser) {
|
|
|
21007
21020
|
}
|
|
21008
21021
|
errors.push(new ParseError(param.sourceSpan, `Unrecognized @for loop paramater "${param.expression}"`));
|
|
21009
21022
|
}
|
|
21010
|
-
for (const
|
|
21011
|
-
if (!result.context.hasOwnProperty(
|
|
21023
|
+
for (const variableName2 of ALLOWED_FOR_LOOP_LET_VARIABLES) {
|
|
21024
|
+
if (!result.context.hasOwnProperty(variableName2)) {
|
|
21012
21025
|
const emptySpanAfterForBlockStart = new ParseSourceSpan(block.startSourceSpan.end, block.startSourceSpan.end);
|
|
21013
|
-
result.context[
|
|
21026
|
+
result.context[variableName2] = new Variable(variableName2, variableName2, emptySpanAfterForBlockStart, emptySpanAfterForBlockStart);
|
|
21014
21027
|
}
|
|
21015
21028
|
}
|
|
21016
21029
|
return result;
|
|
21017
21030
|
}
|
|
21018
21031
|
function parseLetParameter(sourceSpan, expression, span, context, errors) {
|
|
21032
|
+
var _a2, _b2, _c2;
|
|
21019
21033
|
const parts = expression.split(",");
|
|
21034
|
+
let startSpan = span.start;
|
|
21020
21035
|
for (const part of parts) {
|
|
21021
21036
|
const expressionParts = part.split("=");
|
|
21022
21037
|
const name = expressionParts.length === 2 ? expressionParts[0].trim() : "";
|
|
@@ -21028,8 +21043,20 @@ function parseLetParameter(sourceSpan, expression, span, context, errors) {
|
|
|
21028
21043
|
} else if (context.hasOwnProperty(variableName)) {
|
|
21029
21044
|
errors.push(new ParseError(sourceSpan, `Duplicate "let" parameter variable "${variableName}"`));
|
|
21030
21045
|
} else {
|
|
21031
|
-
|
|
21046
|
+
const [, keyLeadingWhitespace, keyName] = (_a2 = expressionParts[0].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN)) != null ? _a2 : [];
|
|
21047
|
+
const keySpan = keyLeadingWhitespace !== void 0 && expressionParts.length === 2 ? new ParseSourceSpan(
|
|
21048
|
+
startSpan.moveBy(keyLeadingWhitespace.length),
|
|
21049
|
+
startSpan.moveBy(keyLeadingWhitespace.length + keyName.length)
|
|
21050
|
+
) : span;
|
|
21051
|
+
let valueSpan = void 0;
|
|
21052
|
+
if (expressionParts.length === 2) {
|
|
21053
|
+
const [, valueLeadingWhitespace, implicit] = (_b2 = expressionParts[1].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN)) != null ? _b2 : [];
|
|
21054
|
+
valueSpan = valueLeadingWhitespace !== void 0 ? new ParseSourceSpan(startSpan.moveBy(expressionParts[0].length + 1 + valueLeadingWhitespace.length), startSpan.moveBy(expressionParts[0].length + 1 + valueLeadingWhitespace.length + implicit.length)) : void 0;
|
|
21055
|
+
}
|
|
21056
|
+
const sourceSpan2 = new ParseSourceSpan(keySpan.start, (_c2 = valueSpan == null ? void 0 : valueSpan.end) != null ? _c2 : keySpan.end);
|
|
21057
|
+
context[variableName] = new Variable(name, variableName, sourceSpan2, keySpan, valueSpan);
|
|
21032
21058
|
}
|
|
21059
|
+
startSpan = startSpan.moveBy(part.length + 1);
|
|
21033
21060
|
}
|
|
21034
21061
|
}
|
|
21035
21062
|
function validateIfConnectedBlocks(connectedBlocks) {
|
|
@@ -21109,8 +21136,10 @@ function parseConditionalBlockParameters(block, errors, bindingParser) {
|
|
|
21109
21136
|
} else if (expressionAlias !== null) {
|
|
21110
21137
|
errors.push(new ParseError(param.sourceSpan, 'Conditional can only have one "as" expression'));
|
|
21111
21138
|
} else {
|
|
21112
|
-
const name = aliasMatch[
|
|
21113
|
-
|
|
21139
|
+
const name = aliasMatch[2].trim();
|
|
21140
|
+
const variableStart = param.sourceSpan.start.moveBy(aliasMatch[1].length);
|
|
21141
|
+
const variableSpan = new ParseSourceSpan(variableStart, variableStart.moveBy(name.length));
|
|
21142
|
+
expressionAlias = new Variable(name, name, variableSpan, variableSpan);
|
|
21114
21143
|
}
|
|
21115
21144
|
}
|
|
21116
21145
|
return { expression, expressionAlias };
|
|
@@ -21156,7 +21185,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
21156
21185
|
return expression.slice(start, end);
|
|
21157
21186
|
}
|
|
21158
21187
|
|
|
21159
|
-
// bazel-out/
|
|
21188
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
21160
21189
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
21161
21190
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
21162
21191
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -21420,7 +21449,7 @@ function parseDeferredTime(value) {
|
|
|
21420
21449
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
21421
21450
|
}
|
|
21422
21451
|
|
|
21423
|
-
// bazel-out/
|
|
21452
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
21424
21453
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
21425
21454
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
21426
21455
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -21555,7 +21584,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
21555
21584
|
return { triggers, prefetchTriggers };
|
|
21556
21585
|
}
|
|
21557
21586
|
|
|
21558
|
-
// bazel-out/
|
|
21587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
21559
21588
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
21560
21589
|
var KW_BIND_IDX = 1;
|
|
21561
21590
|
var KW_LET_IDX = 2;
|
|
@@ -21828,7 +21857,7 @@ var HtmlAstToIvyAst = class {
|
|
|
21828
21857
|
if (bindParts[KW_BIND_IDX] != null) {
|
|
21829
21858
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
21830
21859
|
const keySpan2 = createKeySpan(srcSpan, bindParts[KW_BIND_IDX], identifier);
|
|
21831
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21860
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21832
21861
|
} else if (bindParts[KW_LET_IDX]) {
|
|
21833
21862
|
if (isTemplateElement) {
|
|
21834
21863
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
@@ -21850,7 +21879,7 @@ var HtmlAstToIvyAst = class {
|
|
|
21850
21879
|
} else if (bindParts[KW_BINDON_IDX]) {
|
|
21851
21880
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
21852
21881
|
const keySpan2 = createKeySpan(srcSpan, bindParts[KW_BINDON_IDX], identifier);
|
|
21853
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21882
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, true, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21854
21883
|
this.parseAssignmentEvent(identifier, value, srcSpan, attribute2.valueSpan, matchableAttributes, boundEvents, keySpan2);
|
|
21855
21884
|
} else if (bindParts[KW_AT_IDX]) {
|
|
21856
21885
|
const keySpan2 = createKeySpan(srcSpan, "", name);
|
|
@@ -21870,10 +21899,10 @@ var HtmlAstToIvyAst = class {
|
|
|
21870
21899
|
const identifier = name.substring(delims.start.length, name.length - delims.end.length);
|
|
21871
21900
|
const keySpan2 = createKeySpan(srcSpan, delims.start, identifier);
|
|
21872
21901
|
if (delims.start === BINDING_DELIMS.BANANA_BOX.start) {
|
|
21873
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21902
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, true, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21874
21903
|
this.parseAssignmentEvent(identifier, value, srcSpan, attribute2.valueSpan, matchableAttributes, boundEvents, keySpan2);
|
|
21875
21904
|
} else if (delims.start === BINDING_DELIMS.PROPERTY.start) {
|
|
21876
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21905
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
21877
21906
|
} else {
|
|
21878
21907
|
const events = [];
|
|
21879
21908
|
this.bindingParser.parseEvent(identifier, value, false, srcSpan, attribute2.valueSpan || srcSpan, matchableAttributes, events, keySpan2);
|
|
@@ -21986,7 +22015,7 @@ function textContents(node) {
|
|
|
21986
22015
|
}
|
|
21987
22016
|
}
|
|
21988
22017
|
|
|
21989
|
-
// bazel-out/
|
|
22018
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21990
22019
|
var TagType;
|
|
21991
22020
|
(function(TagType2) {
|
|
21992
22021
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -22131,7 +22160,7 @@ function serializePlaceholderValue(value) {
|
|
|
22131
22160
|
}
|
|
22132
22161
|
}
|
|
22133
22162
|
|
|
22134
|
-
// bazel-out/
|
|
22163
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
22135
22164
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
22136
22165
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
22137
22166
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -22542,7 +22571,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
22542
22571
|
element2.inputs.forEach((input) => {
|
|
22543
22572
|
const stylingInputWasSet = stylingBuilder.registerBoundInput(input);
|
|
22544
22573
|
if (!stylingInputWasSet) {
|
|
22545
|
-
if (input.type === 0 && input.i18n) {
|
|
22574
|
+
if ((input.type === 0 || input.type === 5) && input.i18n) {
|
|
22546
22575
|
boundI18nAttrs.push(input);
|
|
22547
22576
|
} else {
|
|
22548
22577
|
allOtherInputs.push(input);
|
|
@@ -22628,7 +22657,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
22628
22657
|
}
|
|
22629
22658
|
}
|
|
22630
22659
|
this.allocateBindingSlots(value);
|
|
22631
|
-
if (inputType === 0) {
|
|
22660
|
+
if (inputType === 0 || inputType === 5) {
|
|
22632
22661
|
if (value instanceof Interpolation) {
|
|
22633
22662
|
this.interpolatedUpdateInstruction(getPropertyInterpolationExpression(value), elementIndex, attrName, input, value, params);
|
|
22634
22663
|
} else {
|
|
@@ -23818,7 +23847,7 @@ function createClosureModeGuard2() {
|
|
|
23818
23847
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
23819
23848
|
}
|
|
23820
23849
|
|
|
23821
|
-
// bazel-out/
|
|
23850
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
23822
23851
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
23823
23852
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
23824
23853
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -23922,12 +23951,12 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
23922
23951
|
}
|
|
23923
23952
|
const templateTypeName = meta.name;
|
|
23924
23953
|
const templateName = templateTypeName ? `${templateTypeName}_Template` : null;
|
|
23954
|
+
let allDeferrableDepsFn = null;
|
|
23955
|
+
if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 && meta.deferBlockDepsEmitMode === 1) {
|
|
23956
|
+
const fnName = `${templateTypeName}_DeferFn`;
|
|
23957
|
+
allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);
|
|
23958
|
+
}
|
|
23925
23959
|
if (!USE_TEMPLATE_PIPELINE) {
|
|
23926
|
-
let allDeferrableDepsFn = null;
|
|
23927
|
-
if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 && meta.deferBlockDepsEmitMode === 1) {
|
|
23928
|
-
const fnName = `${templateTypeName}_DeferFn`;
|
|
23929
|
-
allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);
|
|
23930
|
-
}
|
|
23931
23960
|
const template2 = meta.template;
|
|
23932
23961
|
const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map(), allDeferrableDepsFn);
|
|
23933
23962
|
const templateFunctionExpression = templateBuilder.buildTemplateFunction(template2.nodes, []);
|
|
@@ -23947,7 +23976,7 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
23947
23976
|
}
|
|
23948
23977
|
definitionMap.set("template", templateFunctionExpression);
|
|
23949
23978
|
} else {
|
|
23950
|
-
const tpl = ingestComponent(meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks);
|
|
23979
|
+
const tpl = ingestComponent(meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, allDeferrableDepsFn);
|
|
23951
23980
|
transform(tpl, CompilationJobKind.Tmpl);
|
|
23952
23981
|
const templateFn = emitTemplateFn(tpl, constantPool);
|
|
23953
23982
|
if (tpl.contentSelectors !== null) {
|
|
@@ -24449,7 +24478,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
24449
24478
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
24450
24479
|
}
|
|
24451
24480
|
|
|
24452
|
-
// bazel-out/
|
|
24481
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
24453
24482
|
var R3TargetBinder = class {
|
|
24454
24483
|
constructor(directiveMatcher) {
|
|
24455
24484
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -25066,11 +25095,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
25066
25095
|
return templateEntities;
|
|
25067
25096
|
}
|
|
25068
25097
|
|
|
25069
|
-
// bazel-out/
|
|
25098
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
25070
25099
|
var ResourceLoader = class {
|
|
25071
25100
|
};
|
|
25072
25101
|
|
|
25073
|
-
// bazel-out/
|
|
25102
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
25074
25103
|
var CompilerFacadeImpl = class {
|
|
25075
25104
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
25076
25105
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -25643,17 +25672,17 @@ function publishFacade(global) {
|
|
|
25643
25672
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
25644
25673
|
}
|
|
25645
25674
|
|
|
25646
|
-
// bazel-out/
|
|
25647
|
-
var VERSION2 = new Version("17.1.
|
|
25675
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25676
|
+
var VERSION2 = new Version("17.1.2");
|
|
25648
25677
|
|
|
25649
|
-
// bazel-out/
|
|
25678
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
25650
25679
|
var _VisitorMode;
|
|
25651
25680
|
(function(_VisitorMode2) {
|
|
25652
25681
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
25653
25682
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
25654
25683
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
25655
25684
|
|
|
25656
|
-
// bazel-out/
|
|
25685
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
25657
25686
|
var XmlTagDefinition = class {
|
|
25658
25687
|
constructor() {
|
|
25659
25688
|
this.closedByParent = false;
|
|
@@ -25675,7 +25704,7 @@ var XmlTagDefinition = class {
|
|
|
25675
25704
|
};
|
|
25676
25705
|
var _TAG_DEFINITION = new XmlTagDefinition();
|
|
25677
25706
|
|
|
25678
|
-
// bazel-out/
|
|
25707
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
25679
25708
|
var FactoryTarget2;
|
|
25680
25709
|
(function(FactoryTarget3) {
|
|
25681
25710
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -25685,10 +25714,10 @@ var FactoryTarget2;
|
|
|
25685
25714
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
25686
25715
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
25687
25716
|
|
|
25688
|
-
// bazel-out/
|
|
25717
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
25689
25718
|
publishFacade(_global);
|
|
25690
25719
|
|
|
25691
|
-
// bazel-out/
|
|
25720
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/util.mjs
|
|
25692
25721
|
var import_path2 = require("path");
|
|
25693
25722
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
25694
25723
|
var REPLACEMENTS2 = {
|
|
@@ -25796,7 +25825,7 @@ function forEachClass(sourceFile, callback) {
|
|
|
25796
25825
|
});
|
|
25797
25826
|
}
|
|
25798
25827
|
|
|
25799
|
-
// bazel-out/
|
|
25828
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
|
|
25800
25829
|
function block_template_entities_default() {
|
|
25801
25830
|
return (tree) => __async(this, null, function* () {
|
|
25802
25831
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|