@angular/core 17.0.0 → 17.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/application_ref.mjs +1 -1
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/core_render3_private_export.mjs +2 -2
- package/esm2022/src/defer/instructions.mjs +3 -3
- package/esm2022/src/hydration/api.mjs +3 -3
- package/esm2022/src/image_performance_warning.mjs +4 -4
- package/esm2022/src/linker/component_factory.mjs +1 -3
- package/esm2022/src/linker/view_ref.mjs +1 -1
- package/esm2022/src/render3/after_render_hooks.mjs +4 -4
- package/esm2022/src/render3/component_ref.mjs +3 -3
- package/esm2022/src/render3/features/standalone_feature.mjs +3 -6
- package/esm2022/src/render3/instructions/change_detection.mjs +22 -19
- package/esm2022/src/render3/instructions/control_flow.mjs +4 -7
- package/esm2022/src/render3/list_reconciliation.mjs +5 -4
- package/esm2022/src/render3/metadata.mjs +20 -20
- package/esm2022/src/render3/view_ref.mjs +5 -28
- package/esm2022/src/util/performance.mjs +9 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +3 -3
- package/esm2022/testing/src/test_bed_compiler.mjs +7 -7
- package/fesm2022/core.mjs +70 -92
- 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 +8 -8
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +12 -17
- 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 +160 -160
- package/schematics/migrations/block-template-entities/bundle.js.map +1 -1
- 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 +494 -370
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +506 -446
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
|
|
67
67
|
var control_flow_migration_exports = {};
|
|
68
68
|
__export(control_flow_migration_exports, {
|
|
69
69
|
default: () => control_flow_migration_default
|
|
@@ -72,18 +72,18 @@ module.exports = __toCommonJS(control_flow_migration_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/change_tracker.mjs
|
|
76
76
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
77
77
|
|
|
78
|
-
// bazel-out/
|
|
78
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
79
79
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
80
80
|
|
|
81
|
-
// bazel-out/
|
|
81
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
82
82
|
function normalizePath(path2) {
|
|
83
83
|
return path2.replace(/\\/g, "/");
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
// bazel-out/
|
|
86
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
87
87
|
var import_core = require("@angular-devkit/core");
|
|
88
88
|
function getProjectTsConfigPaths(tree) {
|
|
89
89
|
return __async(this, null, function* () {
|
|
@@ -163,11 +163,11 @@ function getWorkspace(tree) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
// bazel-out/
|
|
166
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
167
167
|
var import_path = require("path");
|
|
168
168
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
169
169
|
|
|
170
|
-
// bazel-out/
|
|
170
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
171
171
|
var path = __toESM(require("path"), 1);
|
|
172
172
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
173
173
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -184,7 +184,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
184
184
|
return import_typescript3.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
// bazel-out/
|
|
187
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
188
188
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
189
189
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
190
190
|
return import_typescript4.default.createProgram(rootNames, options, host);
|
|
@@ -217,7 +217,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
217
217
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
// bazel-out/
|
|
220
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
221
221
|
var _SELECTOR_REGEXP = new RegExp(
|
|
222
222
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
223
223
|
"g"
|
|
@@ -525,7 +525,7 @@ var SelectorContext = class {
|
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
527
|
|
|
528
|
-
// bazel-out/
|
|
528
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
529
529
|
var ViewEncapsulation;
|
|
530
530
|
(function(ViewEncapsulation2) {
|
|
531
531
|
ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
|
|
@@ -587,7 +587,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
587
587
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
// bazel-out/
|
|
590
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
591
591
|
var textEncoder;
|
|
592
592
|
function computeDigest(message) {
|
|
593
593
|
return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
|
|
@@ -824,7 +824,7 @@ function wordAt(bytes, index, endian) {
|
|
|
824
824
|
return word;
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
-
// bazel-out/
|
|
827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
828
828
|
var TypeModifier;
|
|
829
829
|
(function(TypeModifier2) {
|
|
830
830
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1779,7 +1779,7 @@ function serializeTags(tags) {
|
|
|
1779
1779
|
return out;
|
|
1780
1780
|
}
|
|
1781
1781
|
|
|
1782
|
-
// bazel-out/
|
|
1782
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1783
1783
|
var CONSTANT_PREFIX = "_c";
|
|
1784
1784
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1785
1785
|
var KEY_CONTEXT = {};
|
|
@@ -1962,7 +1962,7 @@ function isLongStringLiteral(expr) {
|
|
|
1962
1962
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
1963
1963
|
}
|
|
1964
1964
|
|
|
1965
|
-
// bazel-out/
|
|
1965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
1966
1966
|
var CORE = "@angular/core";
|
|
1967
1967
|
var _Identifiers = class {
|
|
1968
1968
|
};
|
|
@@ -2595,7 +2595,7 @@ var Identifiers = _Identifiers;
|
|
|
2595
2595
|
_Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
2596
2596
|
})();
|
|
2597
2597
|
|
|
2598
|
-
// bazel-out/
|
|
2598
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2599
2599
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2600
2600
|
function dashCaseToCamelCase(input) {
|
|
2601
2601
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2683,7 +2683,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2683
2683
|
return [truthy, falsy];
|
|
2684
2684
|
}
|
|
2685
2685
|
|
|
2686
|
-
// bazel-out/
|
|
2686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2687
2687
|
var VERSION = 3;
|
|
2688
2688
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2689
2689
|
var SourceMapGenerator = class {
|
|
@@ -2812,7 +2812,7 @@ function toBase64Digit(value) {
|
|
|
2812
2812
|
return B64_DIGITS[value];
|
|
2813
2813
|
}
|
|
2814
2814
|
|
|
2815
|
-
// bazel-out/
|
|
2815
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2816
2816
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2817
2817
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2818
2818
|
var _INDENT_WITH = " ";
|
|
@@ -3297,7 +3297,7 @@ function _createIndent(count) {
|
|
|
3297
3297
|
return res;
|
|
3298
3298
|
}
|
|
3299
3299
|
|
|
3300
|
-
// bazel-out/
|
|
3300
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3301
3301
|
function typeWithParameters(type, numParams) {
|
|
3302
3302
|
if (numParams === 0) {
|
|
3303
3303
|
return expressionType(type);
|
|
@@ -3362,7 +3362,7 @@ function generateForwardRef(expr) {
|
|
|
3362
3362
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3363
3363
|
}
|
|
3364
3364
|
|
|
3365
|
-
// bazel-out/
|
|
3365
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3366
3366
|
var R3FactoryDelegateType;
|
|
3367
3367
|
(function(R3FactoryDelegateType2) {
|
|
3368
3368
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3507,7 +3507,7 @@ function getInjectFn(target) {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
3509
3509
|
|
|
3510
|
-
// bazel-out/
|
|
3510
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3511
3511
|
var Comment = class {
|
|
3512
3512
|
constructor(value, sourceSpan) {
|
|
3513
3513
|
this.value = value;
|
|
@@ -3880,7 +3880,7 @@ function visitAll(visitor, nodes) {
|
|
|
3880
3880
|
return result;
|
|
3881
3881
|
}
|
|
3882
3882
|
|
|
3883
|
-
// bazel-out/
|
|
3883
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3884
3884
|
var Message = class {
|
|
3885
3885
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3886
3886
|
this.nodes = nodes;
|
|
@@ -3999,7 +3999,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
3999
3999
|
}
|
|
4000
4000
|
};
|
|
4001
4001
|
|
|
4002
|
-
// bazel-out/
|
|
4002
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4003
4003
|
var _Visitor = class {
|
|
4004
4004
|
visitTag(tag) {
|
|
4005
4005
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4027,12 +4027,12 @@ ${doctype.dtd}
|
|
|
4027
4027
|
};
|
|
4028
4028
|
var _visitor = new _Visitor();
|
|
4029
4029
|
|
|
4030
|
-
// bazel-out/
|
|
4030
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4031
4031
|
function toPublicName(internalName) {
|
|
4032
4032
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4033
4033
|
}
|
|
4034
4034
|
|
|
4035
|
-
// bazel-out/
|
|
4035
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4036
4036
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4037
4037
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4038
4038
|
var I18N_ATTR = "i18n";
|
|
@@ -4134,7 +4134,7 @@ function declareI18nVariable(variable2) {
|
|
|
4134
4134
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4135
4135
|
}
|
|
4136
4136
|
|
|
4137
|
-
// bazel-out/
|
|
4137
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4138
4138
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4139
4139
|
var TEMPORARY_NAME = "_t";
|
|
4140
4140
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4357,7 +4357,7 @@ function getInstructionStatements(instructions) {
|
|
|
4357
4357
|
return statements;
|
|
4358
4358
|
}
|
|
4359
4359
|
|
|
4360
|
-
// bazel-out/
|
|
4360
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4361
4361
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4362
4362
|
let result = null;
|
|
4363
4363
|
const factoryMeta = {
|
|
@@ -4442,7 +4442,7 @@ function createFactoryFunction(type) {
|
|
|
4442
4442
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
4443
4443
|
}
|
|
4444
4444
|
|
|
4445
|
-
// bazel-out/
|
|
4445
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4446
4446
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4447
4447
|
/^\s*$/,
|
|
4448
4448
|
/[<>]/,
|
|
@@ -4464,7 +4464,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4464
4464
|
}
|
|
4465
4465
|
}
|
|
4466
4466
|
|
|
4467
|
-
// bazel-out/
|
|
4467
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
4468
4468
|
var InterpolationConfig = class {
|
|
4469
4469
|
static fromArray(markers) {
|
|
4470
4470
|
if (!markers) {
|
|
@@ -4480,7 +4480,7 @@ var InterpolationConfig = class {
|
|
|
4480
4480
|
};
|
|
4481
4481
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4482
4482
|
|
|
4483
|
-
// bazel-out/
|
|
4483
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4484
4484
|
var $EOF = 0;
|
|
4485
4485
|
var $BSPACE = 8;
|
|
4486
4486
|
var $TAB = 9;
|
|
@@ -4562,7 +4562,7 @@ function isQuote(code) {
|
|
|
4562
4562
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4563
4563
|
}
|
|
4564
4564
|
|
|
4565
|
-
// bazel-out/
|
|
4565
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4566
4566
|
var ParseLocation = class {
|
|
4567
4567
|
constructor(file, offset, line, col) {
|
|
4568
4568
|
this.file = file;
|
|
@@ -4709,7 +4709,7 @@ function sanitizeIdentifier(name) {
|
|
|
4709
4709
|
return name.replace(/\W/g, "_");
|
|
4710
4710
|
}
|
|
4711
4711
|
|
|
4712
|
-
// bazel-out/
|
|
4712
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4713
4713
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4714
4714
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4715
4715
|
constructor() {
|
|
@@ -4802,7 +4802,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4802
4802
|
}
|
|
4803
4803
|
};
|
|
4804
4804
|
|
|
4805
|
-
// bazel-out/
|
|
4805
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4806
4806
|
var policy;
|
|
4807
4807
|
function getPolicy() {
|
|
4808
4808
|
if (policy === void 0) {
|
|
@@ -4840,7 +4840,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4840
4840
|
return fn2.bind(_global);
|
|
4841
4841
|
}
|
|
4842
4842
|
|
|
4843
|
-
// bazel-out/
|
|
4843
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4844
4844
|
var JitEvaluator = class {
|
|
4845
4845
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4846
4846
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -4931,7 +4931,7 @@ function isUseStrictStatement(statement) {
|
|
|
4931
4931
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
4932
4932
|
}
|
|
4933
4933
|
|
|
4934
|
-
// bazel-out/
|
|
4934
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
4935
4935
|
function compileInjector(meta) {
|
|
4936
4936
|
const definitionMap = new DefinitionMap();
|
|
4937
4937
|
if (meta.providers !== null) {
|
|
@@ -4948,7 +4948,7 @@ function createInjectorType(meta) {
|
|
|
4948
4948
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
4949
4949
|
}
|
|
4950
4950
|
|
|
4951
|
-
// bazel-out/
|
|
4951
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
4952
4952
|
var R3JitReflector = class {
|
|
4953
4953
|
constructor(context) {
|
|
4954
4954
|
this.context = context;
|
|
@@ -4964,7 +4964,7 @@ var R3JitReflector = class {
|
|
|
4964
4964
|
}
|
|
4965
4965
|
};
|
|
4966
4966
|
|
|
4967
|
-
// bazel-out/
|
|
4967
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
4968
4968
|
var R3SelectorScopeMode;
|
|
4969
4969
|
(function(R3SelectorScopeMode2) {
|
|
4970
4970
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5105,7 +5105,7 @@ function tupleOfTypes(types) {
|
|
|
5105
5105
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5106
5106
|
}
|
|
5107
5107
|
|
|
5108
|
-
// bazel-out/
|
|
5108
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5109
5109
|
function compilePipeFromMetadata(metadata) {
|
|
5110
5110
|
const definitionMapValues = [];
|
|
5111
5111
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5126,7 +5126,7 @@ function createPipeType(metadata) {
|
|
|
5126
5126
|
]));
|
|
5127
5127
|
}
|
|
5128
5128
|
|
|
5129
|
-
// bazel-out/
|
|
5129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5130
5130
|
var R3TemplateDependencyKind;
|
|
5131
5131
|
(function(R3TemplateDependencyKind2) {
|
|
5132
5132
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5134,7 +5134,7 @@ var R3TemplateDependencyKind;
|
|
|
5134
5134
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5135
5135
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5136
5136
|
|
|
5137
|
-
// bazel-out/
|
|
5137
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5138
5138
|
var ParserError = class {
|
|
5139
5139
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5140
5140
|
this.input = input;
|
|
@@ -5800,7 +5800,7 @@ var BoundElementProperty = class {
|
|
|
5800
5800
|
}
|
|
5801
5801
|
};
|
|
5802
5802
|
|
|
5803
|
-
// bazel-out/
|
|
5803
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5804
5804
|
var _EventHandlerVars = class {
|
|
5805
5805
|
};
|
|
5806
5806
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6441,7 +6441,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6441
6441
|
}
|
|
6442
6442
|
};
|
|
6443
6443
|
|
|
6444
|
-
// bazel-out/
|
|
6444
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6445
6445
|
var _SECURITY_SCHEMA;
|
|
6446
6446
|
function SECURITY_SCHEMA() {
|
|
6447
6447
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6499,7 +6499,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6499
6499
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6500
6500
|
}
|
|
6501
6501
|
|
|
6502
|
-
// bazel-out/
|
|
6502
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6503
6503
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6504
6504
|
"inherit",
|
|
6505
6505
|
"initial",
|
|
@@ -6970,7 +6970,7 @@ function repeatGroups(groups, multiples) {
|
|
|
6970
6970
|
}
|
|
6971
6971
|
}
|
|
6972
6972
|
|
|
6973
|
-
// bazel-out/
|
|
6973
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
6974
6974
|
var OpKind;
|
|
6975
6975
|
(function(OpKind2) {
|
|
6976
6976
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7124,7 +7124,7 @@ var DerivedRepeaterVarIdentity;
|
|
|
7124
7124
|
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Odd"] = 3] = "Odd";
|
|
7125
7125
|
})(DerivedRepeaterVarIdentity || (DerivedRepeaterVarIdentity = {}));
|
|
7126
7126
|
|
|
7127
|
-
// bazel-out/
|
|
7127
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7128
7128
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7129
7129
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7130
7130
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -7156,7 +7156,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
7156
7156
|
return expr[UsesVarOffset] === true;
|
|
7157
7157
|
}
|
|
7158
7158
|
|
|
7159
|
-
// bazel-out/
|
|
7159
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7160
7160
|
function createStatementOp(statement) {
|
|
7161
7161
|
return __spreadValues({
|
|
7162
7162
|
kind: OpKind.Statement,
|
|
@@ -7178,7 +7178,7 @@ var NEW_OP = {
|
|
|
7178
7178
|
next: null
|
|
7179
7179
|
};
|
|
7180
7180
|
|
|
7181
|
-
// bazel-out/
|
|
7181
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
7182
7182
|
function createInterpolateTextOp(xref, interpolation, i18nPlaceholders, sourceSpan) {
|
|
7183
7183
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
7184
7184
|
kind: OpKind.InterpolateText,
|
|
@@ -7334,7 +7334,7 @@ function createIcuUpdateOp(xref, sourceSpan) {
|
|
|
7334
7334
|
}, NEW_OP);
|
|
7335
7335
|
}
|
|
7336
7336
|
|
|
7337
|
-
// bazel-out/
|
|
7337
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7338
7338
|
var _a;
|
|
7339
7339
|
var _b;
|
|
7340
7340
|
var _c;
|
|
@@ -8185,7 +8185,7 @@ function isStringLiteral(expr) {
|
|
|
8185
8185
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
8186
8186
|
}
|
|
8187
8187
|
|
|
8188
|
-
// bazel-out/
|
|
8188
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8189
8189
|
var _OpList = class {
|
|
8190
8190
|
constructor() {
|
|
8191
8191
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8376,14 +8376,14 @@ var OpList = _OpList;
|
|
|
8376
8376
|
_OpList.nextListId = 0;
|
|
8377
8377
|
})();
|
|
8378
8378
|
|
|
8379
|
-
// bazel-out/
|
|
8379
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
8380
8380
|
var SlotHandle = class {
|
|
8381
8381
|
constructor() {
|
|
8382
8382
|
this.slot = null;
|
|
8383
8383
|
}
|
|
8384
8384
|
};
|
|
8385
8385
|
|
|
8386
|
-
// bazel-out/
|
|
8386
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8387
8387
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8388
8388
|
OpKind.Element,
|
|
8389
8389
|
OpKind.ElementStart,
|
|
@@ -8622,7 +8622,7 @@ function createI18nContextOp(xref, i18nBlock, message, sourceSpan) {
|
|
|
8622
8622
|
}, NEW_OP);
|
|
8623
8623
|
}
|
|
8624
8624
|
|
|
8625
|
-
// bazel-out/
|
|
8625
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
8626
8626
|
function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan) {
|
|
8627
8627
|
return __spreadValues(__spreadValues({
|
|
8628
8628
|
kind: OpKind.HostProperty,
|
|
@@ -8633,10 +8633,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan)
|
|
|
8633
8633
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8634
8634
|
}
|
|
8635
8635
|
|
|
8636
|
-
// bazel-out/
|
|
8636
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
8637
8637
|
var CTX_REF = "CTX_REF_MARKER";
|
|
8638
8638
|
|
|
8639
|
-
// bazel-out/
|
|
8639
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8640
8640
|
var CompilationJobKind;
|
|
8641
8641
|
(function(CompilationJobKind2) {
|
|
8642
8642
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -8743,7 +8743,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
8743
8743
|
}
|
|
8744
8744
|
};
|
|
8745
8745
|
|
|
8746
|
-
// bazel-out/
|
|
8746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
8747
8747
|
function deleteAnyCasts(job) {
|
|
8748
8748
|
for (const unit of job.units) {
|
|
8749
8749
|
for (const op of unit.ops()) {
|
|
@@ -8761,7 +8761,7 @@ function removeAnys(e) {
|
|
|
8761
8761
|
return e;
|
|
8762
8762
|
}
|
|
8763
8763
|
|
|
8764
|
-
// bazel-out/
|
|
8764
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
8765
8765
|
function applyI18nExpressions(job) {
|
|
8766
8766
|
for (const unit of job.units) {
|
|
8767
8767
|
for (const op of unit.update) {
|
|
@@ -8782,7 +8782,7 @@ function needsApplication(op) {
|
|
|
8782
8782
|
return false;
|
|
8783
8783
|
}
|
|
8784
8784
|
|
|
8785
|
-
// bazel-out/
|
|
8785
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
8786
8786
|
function assignI18nSlotDependencies(job) {
|
|
8787
8787
|
const i18nLastSlotConsumers = /* @__PURE__ */ new Map();
|
|
8788
8788
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
@@ -8815,7 +8815,7 @@ function assignI18nSlotDependencies(job) {
|
|
|
8815
8815
|
}
|
|
8816
8816
|
}
|
|
8817
8817
|
|
|
8818
|
-
// bazel-out/
|
|
8818
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
8819
8819
|
function createOpXrefMap(unit) {
|
|
8820
8820
|
const map = /* @__PURE__ */ new Map();
|
|
8821
8821
|
for (const op of unit.create) {
|
|
@@ -8827,7 +8827,7 @@ function createOpXrefMap(unit) {
|
|
|
8827
8827
|
return map;
|
|
8828
8828
|
}
|
|
8829
8829
|
|
|
8830
|
-
// bazel-out/
|
|
8830
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
8831
8831
|
function extractAttributes(job) {
|
|
8832
8832
|
for (const unit of job.units) {
|
|
8833
8833
|
const elements = createOpXrefMap(unit);
|
|
@@ -8894,7 +8894,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
8894
8894
|
}
|
|
8895
8895
|
}
|
|
8896
8896
|
|
|
8897
|
-
// bazel-out/
|
|
8897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
8898
8898
|
function lookupElement2(elements, xref) {
|
|
8899
8899
|
const el = elements.get(xref);
|
|
8900
8900
|
if (el === void 0) {
|
|
@@ -8944,7 +8944,7 @@ function specializeBindings(job) {
|
|
|
8944
8944
|
}
|
|
8945
8945
|
}
|
|
8946
8946
|
|
|
8947
|
-
// bazel-out/
|
|
8947
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
8948
8948
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
8949
8949
|
Identifiers.attribute,
|
|
8950
8950
|
Identifiers.classProp,
|
|
@@ -9010,7 +9010,7 @@ function chainOperationsInList(opList) {
|
|
|
9010
9010
|
}
|
|
9011
9011
|
}
|
|
9012
9012
|
|
|
9013
|
-
// bazel-out/
|
|
9013
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9014
9014
|
function collapseSingletonInterpolations(job) {
|
|
9015
9015
|
for (const unit of job.units) {
|
|
9016
9016
|
for (const op of unit.update) {
|
|
@@ -9022,7 +9022,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
9022
9022
|
}
|
|
9023
9023
|
}
|
|
9024
9024
|
|
|
9025
|
-
// bazel-out/
|
|
9025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9026
9026
|
function generateConditionalExpressions(job) {
|
|
9027
9027
|
for (const unit of job.units) {
|
|
9028
9028
|
for (const op of unit.ops()) {
|
|
@@ -9059,7 +9059,7 @@ function generateConditionalExpressions(job) {
|
|
|
9059
9059
|
}
|
|
9060
9060
|
}
|
|
9061
9061
|
|
|
9062
|
-
// bazel-out/
|
|
9062
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
9063
9063
|
var TagContentType;
|
|
9064
9064
|
(function(TagContentType2) {
|
|
9065
9065
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -9092,7 +9092,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
9092
9092
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
9093
9093
|
}
|
|
9094
9094
|
|
|
9095
|
-
// bazel-out/
|
|
9095
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9096
9096
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9097
9097
|
["&&", BinaryOperator.And],
|
|
9098
9098
|
[">", BinaryOperator.Bigger],
|
|
@@ -9142,7 +9142,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9142
9142
|
return literal(value);
|
|
9143
9143
|
}
|
|
9144
9144
|
|
|
9145
|
-
// bazel-out/
|
|
9145
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9146
9146
|
function collectElementConsts(job) {
|
|
9147
9147
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9148
9148
|
for (const unit of job.units) {
|
|
@@ -9276,7 +9276,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
9276
9276
|
return literalArr(attrArray);
|
|
9277
9277
|
}
|
|
9278
9278
|
|
|
9279
|
-
// bazel-out/
|
|
9279
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
|
|
9280
9280
|
function createDeferDepsFns(job) {
|
|
9281
9281
|
for (const unit of job.units) {
|
|
9282
9282
|
for (const op of unit.create) {
|
|
@@ -9304,7 +9304,7 @@ function createDeferDepsFns(job) {
|
|
|
9304
9304
|
}
|
|
9305
9305
|
}
|
|
9306
9306
|
|
|
9307
|
-
// bazel-out/
|
|
9307
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
9308
9308
|
function createI18nContexts(job) {
|
|
9309
9309
|
let currentI18nOp = null;
|
|
9310
9310
|
let xref;
|
|
@@ -9337,7 +9337,7 @@ function createI18nContexts(job) {
|
|
|
9337
9337
|
}
|
|
9338
9338
|
}
|
|
9339
9339
|
|
|
9340
|
-
// bazel-out/
|
|
9340
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_icu_expressions.mjs
|
|
9341
9341
|
function createI18nIcuExpressions(job) {
|
|
9342
9342
|
const icus = /* @__PURE__ */ new Map();
|
|
9343
9343
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
@@ -9383,7 +9383,7 @@ function createI18nIcuExpressions(job) {
|
|
|
9383
9383
|
}
|
|
9384
9384
|
}
|
|
9385
9385
|
|
|
9386
|
-
// bazel-out/
|
|
9386
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
9387
9387
|
function configureDeferInstructions(job) {
|
|
9388
9388
|
for (const unit of job.units) {
|
|
9389
9389
|
for (const op of unit.create) {
|
|
@@ -9400,7 +9400,7 @@ function configureDeferInstructions(job) {
|
|
|
9400
9400
|
}
|
|
9401
9401
|
}
|
|
9402
9402
|
|
|
9403
|
-
// bazel-out/
|
|
9403
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
9404
9404
|
function resolveDeferTargetNames(job) {
|
|
9405
9405
|
const scopes = /* @__PURE__ */ new Map();
|
|
9406
9406
|
function getScopeForView2(view) {
|
|
@@ -9494,7 +9494,7 @@ var Scope = class {
|
|
|
9494
9494
|
}
|
|
9495
9495
|
};
|
|
9496
9496
|
|
|
9497
|
-
// bazel-out/
|
|
9497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
9498
9498
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
9499
9499
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
9500
9500
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -9521,7 +9521,7 @@ function collapseEmptyInstructions(job) {
|
|
|
9521
9521
|
}
|
|
9522
9522
|
}
|
|
9523
9523
|
|
|
9524
|
-
// bazel-out/
|
|
9524
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9525
9525
|
function expandSafeReads(job) {
|
|
9526
9526
|
for (const unit of job.units) {
|
|
9527
9527
|
for (const op of unit.ops()) {
|
|
@@ -9657,7 +9657,7 @@ function ternaryTransform(e) {
|
|
|
9657
9657
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9658
9658
|
}
|
|
9659
9659
|
|
|
9660
|
-
// bazel-out/
|
|
9660
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
9661
9661
|
var ESCAPE = "\uFFFD";
|
|
9662
9662
|
var ELEMENT_MARKER = "#";
|
|
9663
9663
|
var TEMPLATE_MARKER = "*";
|
|
@@ -9756,7 +9756,7 @@ function formatValue(value) {
|
|
|
9756
9756
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
9757
9757
|
}
|
|
9758
9758
|
|
|
9759
|
-
// bazel-out/
|
|
9759
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
9760
9760
|
function generateAdvance(job) {
|
|
9761
9761
|
for (const unit of job.units) {
|
|
9762
9762
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -9788,7 +9788,7 @@ function generateAdvance(job) {
|
|
|
9788
9788
|
}
|
|
9789
9789
|
}
|
|
9790
9790
|
|
|
9791
|
-
// bazel-out/
|
|
9791
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
9792
9792
|
function generateProjectionDefs(job) {
|
|
9793
9793
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
9794
9794
|
const selectors = [];
|
|
@@ -9812,7 +9812,7 @@ function generateProjectionDefs(job) {
|
|
|
9812
9812
|
}
|
|
9813
9813
|
}
|
|
9814
9814
|
|
|
9815
|
-
// bazel-out/
|
|
9815
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
9816
9816
|
function generateVariables(job) {
|
|
9817
9817
|
recursivelyProcessView(job.root, null);
|
|
9818
9818
|
}
|
|
@@ -9900,7 +9900,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
9900
9900
|
return newOps;
|
|
9901
9901
|
}
|
|
9902
9902
|
|
|
9903
|
-
// bazel-out/
|
|
9903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
9904
9904
|
function collectConstExpressions(job) {
|
|
9905
9905
|
for (const unit of job.units) {
|
|
9906
9906
|
for (const op of unit.ops()) {
|
|
@@ -9914,7 +9914,7 @@ function collectConstExpressions(job) {
|
|
|
9914
9914
|
}
|
|
9915
9915
|
}
|
|
9916
9916
|
|
|
9917
|
-
// bazel-out/
|
|
9917
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
9918
9918
|
var STYLE_DOT = "style.";
|
|
9919
9919
|
var CLASS_DOT = "class.";
|
|
9920
9920
|
var STYLE_BANG = "style!";
|
|
@@ -9972,7 +9972,7 @@ function parseProperty(name) {
|
|
|
9972
9972
|
return { property: property2, suffix };
|
|
9973
9973
|
}
|
|
9974
9974
|
|
|
9975
|
-
// bazel-out/
|
|
9975
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
9976
9976
|
function mapLiteral(obj, quoted = false) {
|
|
9977
9977
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
9978
9978
|
key,
|
|
@@ -9981,7 +9981,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
9981
9981
|
})));
|
|
9982
9982
|
}
|
|
9983
9983
|
|
|
9984
|
-
// bazel-out/
|
|
9984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
9985
9985
|
var IcuSerializerVisitor = class {
|
|
9986
9986
|
visitText(text2) {
|
|
9987
9987
|
return text2.value;
|
|
@@ -10012,7 +10012,7 @@ function serializeIcuNode(icu) {
|
|
|
10012
10012
|
return icu.visit(serializer);
|
|
10013
10013
|
}
|
|
10014
10014
|
|
|
10015
|
-
// bazel-out/
|
|
10015
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10016
10016
|
var TokenType;
|
|
10017
10017
|
(function(TokenType2) {
|
|
10018
10018
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10373,7 +10373,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10373
10373
|
return result;
|
|
10374
10374
|
}
|
|
10375
10375
|
|
|
10376
|
-
// bazel-out/
|
|
10376
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10377
10377
|
var SplitInterpolation = class {
|
|
10378
10378
|
constructor(strings, expressions, offsets) {
|
|
10379
10379
|
this.strings = strings;
|
|
@@ -11267,7 +11267,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11267
11267
|
return offsetMap;
|
|
11268
11268
|
}
|
|
11269
11269
|
|
|
11270
|
-
// bazel-out/
|
|
11270
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11271
11271
|
var NodeWithI18n = class {
|
|
11272
11272
|
constructor(sourceSpan, i18n2) {
|
|
11273
11273
|
this.sourceSpan = sourceSpan;
|
|
@@ -11419,11 +11419,11 @@ var RecursiveVisitor = class {
|
|
|
11419
11419
|
}
|
|
11420
11420
|
};
|
|
11421
11421
|
|
|
11422
|
-
// bazel-out/
|
|
11422
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11423
11423
|
var ElementSchemaRegistry = class {
|
|
11424
11424
|
};
|
|
11425
11425
|
|
|
11426
|
-
// bazel-out/
|
|
11426
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11427
11427
|
var BOOLEAN = "boolean";
|
|
11428
11428
|
var NUMBER = "number";
|
|
11429
11429
|
var STRING = "string";
|
|
@@ -11776,7 +11776,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
11776
11776
|
}
|
|
11777
11777
|
}
|
|
11778
11778
|
|
|
11779
|
-
// bazel-out/
|
|
11779
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
11780
11780
|
var HtmlTagDefinition = class {
|
|
11781
11781
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
11782
11782
|
this.closedByChildren = {};
|
|
@@ -11894,7 +11894,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
11894
11894
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
11895
11895
|
}
|
|
11896
11896
|
|
|
11897
|
-
// bazel-out/
|
|
11897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
11898
11898
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
11899
11899
|
"A": "LINK",
|
|
11900
11900
|
"B": "BOLD_TEXT",
|
|
@@ -11988,7 +11988,7 @@ var PlaceholderRegistry = class {
|
|
|
11988
11988
|
}
|
|
11989
11989
|
};
|
|
11990
11990
|
|
|
11991
|
-
// bazel-out/
|
|
11991
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
11992
11992
|
var _expParser = new Parser(new Lexer());
|
|
11993
11993
|
function createI18nMessageFactory(interpolationConfig) {
|
|
11994
11994
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -12150,14 +12150,14 @@ function extractPlaceholderName(input) {
|
|
|
12150
12150
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12151
12151
|
}
|
|
12152
12152
|
|
|
12153
|
-
// bazel-out/
|
|
12153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12154
12154
|
var I18nError = class extends ParseError {
|
|
12155
12155
|
constructor(span, msg) {
|
|
12156
12156
|
super(span, msg);
|
|
12157
12157
|
}
|
|
12158
12158
|
};
|
|
12159
12159
|
|
|
12160
|
-
// bazel-out/
|
|
12160
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12161
12161
|
var NAMED_ENTITIES = {
|
|
12162
12162
|
"AElig": "\xC6",
|
|
12163
12163
|
"AMP": "&",
|
|
@@ -14288,7 +14288,7 @@ var NAMED_ENTITIES = {
|
|
|
14288
14288
|
var NGSP_UNICODE = "\uE500";
|
|
14289
14289
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14290
14290
|
|
|
14291
|
-
// bazel-out/
|
|
14291
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14292
14292
|
var TokenError = class extends ParseError {
|
|
14293
14293
|
constructor(errorMsg, tokenType, span) {
|
|
14294
14294
|
super(span, errorMsg);
|
|
@@ -15209,7 +15209,7 @@ var CursorError = class {
|
|
|
15209
15209
|
}
|
|
15210
15210
|
};
|
|
15211
15211
|
|
|
15212
|
-
// bazel-out/
|
|
15212
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15213
15213
|
var TreeError = class extends ParseError {
|
|
15214
15214
|
static create(elementName, span, msg) {
|
|
15215
15215
|
return new TreeError(elementName, span, msg);
|
|
@@ -15593,7 +15593,7 @@ function decodeEntity(match, entity) {
|
|
|
15593
15593
|
return match;
|
|
15594
15594
|
}
|
|
15595
15595
|
|
|
15596
|
-
// bazel-out/
|
|
15596
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15597
15597
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15598
15598
|
"iframe|srcdoc",
|
|
15599
15599
|
"*|innerhtml",
|
|
@@ -15608,7 +15608,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
15608
15608
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
15609
15609
|
}
|
|
15610
15610
|
|
|
15611
|
-
// bazel-out/
|
|
15611
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
15612
15612
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
15613
15613
|
if (htmlNode instanceof NodeWithI18n) {
|
|
15614
15614
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -15764,7 +15764,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
15764
15764
|
return jsDocComment(tags);
|
|
15765
15765
|
}
|
|
15766
15766
|
|
|
15767
|
-
// bazel-out/
|
|
15767
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
15768
15768
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
15769
15769
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
15770
15770
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -15812,7 +15812,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
15812
15812
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
15813
15813
|
}
|
|
15814
15814
|
|
|
15815
|
-
// bazel-out/
|
|
15815
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
15816
15816
|
function createLocalizeStatements(variable2, message, params) {
|
|
15817
15817
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
15818
15818
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -15895,7 +15895,7 @@ function createEmptyMessagePart(location) {
|
|
|
15895
15895
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
15896
15896
|
}
|
|
15897
15897
|
|
|
15898
|
-
// bazel-out/
|
|
15898
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
15899
15899
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
15900
15900
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
15901
15901
|
function collectI18nConsts(job) {
|
|
@@ -15986,7 +15986,7 @@ function assertAllParamsResolved(op) {
|
|
|
15986
15986
|
}
|
|
15987
15987
|
}
|
|
15988
15988
|
|
|
15989
|
-
// bazel-out/
|
|
15989
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
15990
15990
|
function extractI18nText(job) {
|
|
15991
15991
|
var _a2;
|
|
15992
15992
|
for (const unit of job.units) {
|
|
@@ -16031,7 +16031,7 @@ function extractI18nText(job) {
|
|
|
16031
16031
|
}
|
|
16032
16032
|
}
|
|
16033
16033
|
|
|
16034
|
-
// bazel-out/
|
|
16034
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16035
16035
|
function liftLocalRefs(job) {
|
|
16036
16036
|
for (const unit of job.units) {
|
|
16037
16037
|
for (const op of unit.create) {
|
|
@@ -16061,7 +16061,7 @@ function serializeLocalRefs(refs) {
|
|
|
16061
16061
|
return literalArr(constRefs);
|
|
16062
16062
|
}
|
|
16063
16063
|
|
|
16064
|
-
// bazel-out/
|
|
16064
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/merge_i18n_contexts.mjs
|
|
16065
16065
|
function mergeI18nContexts(job) {
|
|
16066
16066
|
const i18nOps = /* @__PURE__ */ new Map();
|
|
16067
16067
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
@@ -16102,7 +16102,7 @@ function mergeParams(to, from) {
|
|
|
16102
16102
|
}
|
|
16103
16103
|
}
|
|
16104
16104
|
|
|
16105
|
-
// bazel-out/
|
|
16105
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16106
16106
|
function emitNamespaceChanges(job) {
|
|
16107
16107
|
for (const unit of job.units) {
|
|
16108
16108
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16118,7 +16118,7 @@ function emitNamespaceChanges(job) {
|
|
|
16118
16118
|
}
|
|
16119
16119
|
}
|
|
16120
16120
|
|
|
16121
|
-
// bazel-out/
|
|
16121
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16122
16122
|
function parse(value) {
|
|
16123
16123
|
const styles = [];
|
|
16124
16124
|
let i = 0;
|
|
@@ -16179,7 +16179,7 @@ function hyphenate2(value) {
|
|
|
16179
16179
|
}).toLowerCase();
|
|
16180
16180
|
}
|
|
16181
16181
|
|
|
16182
|
-
// bazel-out/
|
|
16182
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16183
16183
|
function nameFunctionsAndVariables(job) {
|
|
16184
16184
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16185
16185
|
}
|
|
@@ -16294,7 +16294,7 @@ function stripImportant(name) {
|
|
|
16294
16294
|
return name;
|
|
16295
16295
|
}
|
|
16296
16296
|
|
|
16297
|
-
// bazel-out/
|
|
16297
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16298
16298
|
function mergeNextContextExpressions(job) {
|
|
16299
16299
|
for (const unit of job.units) {
|
|
16300
16300
|
for (const op of unit.create) {
|
|
@@ -16340,7 +16340,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16340
16340
|
}
|
|
16341
16341
|
}
|
|
16342
16342
|
|
|
16343
|
-
// bazel-out/
|
|
16343
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16344
16344
|
var CONTAINER_TAG = "ng-container";
|
|
16345
16345
|
function generateNgContainerOps(job) {
|
|
16346
16346
|
for (const unit of job.units) {
|
|
@@ -16357,7 +16357,7 @@ function generateNgContainerOps(job) {
|
|
|
16357
16357
|
}
|
|
16358
16358
|
}
|
|
16359
16359
|
|
|
16360
|
-
// bazel-out/
|
|
16360
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16361
16361
|
function lookupElement3(elements, xref) {
|
|
16362
16362
|
const el = elements.get(xref);
|
|
16363
16363
|
if (el === void 0) {
|
|
@@ -16387,7 +16387,7 @@ function disableBindings(job) {
|
|
|
16387
16387
|
}
|
|
16388
16388
|
}
|
|
16389
16389
|
|
|
16390
|
-
// bazel-out/
|
|
16390
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16391
16391
|
function generateNullishCoalesceExpressions(job) {
|
|
16392
16392
|
for (const unit of job.units) {
|
|
16393
16393
|
for (const op of unit.ops()) {
|
|
@@ -16403,7 +16403,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
16403
16403
|
}
|
|
16404
16404
|
}
|
|
16405
16405
|
|
|
16406
|
-
// bazel-out/
|
|
16406
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16407
16407
|
function kindTest(kind) {
|
|
16408
16408
|
return (op) => op.kind === kind;
|
|
16409
16409
|
}
|
|
@@ -16477,7 +16477,7 @@ function keepLast(ops) {
|
|
|
16477
16477
|
return ops.slice(ops.length - 1);
|
|
16478
16478
|
}
|
|
16479
16479
|
|
|
16480
|
-
// bazel-out/
|
|
16480
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
16481
16481
|
function parseExtractedStyles(job) {
|
|
16482
16482
|
for (const unit of job.units) {
|
|
16483
16483
|
for (const op of unit.create) {
|
|
@@ -16500,7 +16500,7 @@ function parseExtractedStyles(job) {
|
|
|
16500
16500
|
}
|
|
16501
16501
|
}
|
|
16502
16502
|
|
|
16503
|
-
// bazel-out/
|
|
16503
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16504
16504
|
function removeContentSelectors(job) {
|
|
16505
16505
|
for (const unit of job.units) {
|
|
16506
16506
|
const elements = createOpXrefMap(unit);
|
|
@@ -16524,7 +16524,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
16524
16524
|
return el;
|
|
16525
16525
|
}
|
|
16526
16526
|
|
|
16527
|
-
// bazel-out/
|
|
16527
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
16528
16528
|
function createPipes(job) {
|
|
16529
16529
|
for (const unit of job.units) {
|
|
16530
16530
|
processPipeBindingsInView(unit);
|
|
@@ -16572,7 +16572,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
16572
16572
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
16573
16573
|
}
|
|
16574
16574
|
|
|
16575
|
-
// bazel-out/
|
|
16575
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
16576
16576
|
function createVariadicPipes(job) {
|
|
16577
16577
|
for (const unit of job.units) {
|
|
16578
16578
|
for (const op of unit.update) {
|
|
@@ -16589,7 +16589,7 @@ function createVariadicPipes(job) {
|
|
|
16589
16589
|
}
|
|
16590
16590
|
}
|
|
16591
16591
|
|
|
16592
|
-
// bazel-out/
|
|
16592
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
16593
16593
|
function propagateI18nBlocks(job) {
|
|
16594
16594
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
16595
16595
|
}
|
|
@@ -16626,7 +16626,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
16626
16626
|
}
|
|
16627
16627
|
}
|
|
16628
16628
|
|
|
16629
|
-
// bazel-out/
|
|
16629
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
16630
16630
|
function extractPureFunctions(job) {
|
|
16631
16631
|
for (const view of job.units) {
|
|
16632
16632
|
for (const op of view.ops()) {
|
|
@@ -16668,7 +16668,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
16668
16668
|
}
|
|
16669
16669
|
};
|
|
16670
16670
|
|
|
16671
|
-
// bazel-out/
|
|
16671
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
16672
16672
|
function generatePureLiteralStructures(job) {
|
|
16673
16673
|
for (const unit of job.units) {
|
|
16674
16674
|
for (const op of unit.update) {
|
|
@@ -16715,7 +16715,7 @@ function transformLiteralMap(expr) {
|
|
|
16715
16715
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
16716
16716
|
}
|
|
16717
16717
|
|
|
16718
|
-
// bazel-out/
|
|
16718
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
16719
16719
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
16720
16720
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
16721
16721
|
}
|
|
@@ -17226,7 +17226,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17226
17226
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17227
17227
|
}
|
|
17228
17228
|
|
|
17229
|
-
// bazel-out/
|
|
17229
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17230
17230
|
var sanitizerIdentifierMap = /* @__PURE__ */ new Map([
|
|
17231
17231
|
[SanitizerFn.Html, Identifiers.sanitizeHtml],
|
|
17232
17232
|
[SanitizerFn.IframeAttribute, Identifiers.validateIframeAttribute],
|
|
@@ -17555,7 +17555,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
17555
17555
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
17556
17556
|
}
|
|
17557
17557
|
|
|
17558
|
-
// bazel-out/
|
|
17558
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
17559
17559
|
function removeEmptyBindings(job) {
|
|
17560
17560
|
for (const unit of job.units) {
|
|
17561
17561
|
for (const op of unit.update) {
|
|
@@ -17576,7 +17576,7 @@ function removeEmptyBindings(job) {
|
|
|
17576
17576
|
}
|
|
17577
17577
|
}
|
|
17578
17578
|
|
|
17579
|
-
// bazel-out/
|
|
17579
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
17580
17580
|
function removeI18nContexts(job) {
|
|
17581
17581
|
for (const unit of job.units) {
|
|
17582
17582
|
for (const op of unit.create) {
|
|
@@ -17592,7 +17592,7 @@ function removeI18nContexts(job) {
|
|
|
17592
17592
|
}
|
|
17593
17593
|
}
|
|
17594
17594
|
|
|
17595
|
-
// bazel-out/
|
|
17595
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/repeater_derived_vars.mjs
|
|
17596
17596
|
function generateRepeaterDerivedVars(job) {
|
|
17597
17597
|
const repeaters = /* @__PURE__ */ new Map();
|
|
17598
17598
|
for (const unit of job.units) {
|
|
@@ -17624,7 +17624,7 @@ function generateRepeaterDerivedVars(job) {
|
|
|
17624
17624
|
}
|
|
17625
17625
|
}
|
|
17626
17626
|
|
|
17627
|
-
// bazel-out/
|
|
17627
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
17628
17628
|
function resolveContexts(job) {
|
|
17629
17629
|
for (const unit of job.units) {
|
|
17630
17630
|
processLexicalScope(unit, unit.create);
|
|
@@ -17665,7 +17665,7 @@ function processLexicalScope(view, ops) {
|
|
|
17665
17665
|
}
|
|
17666
17666
|
}
|
|
17667
17667
|
|
|
17668
|
-
// bazel-out/
|
|
17668
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
17669
17669
|
function resolveDollarEvent(job) {
|
|
17670
17670
|
for (const unit of job.units) {
|
|
17671
17671
|
transformDollarEvent(unit, unit.create);
|
|
@@ -17686,7 +17686,7 @@ function transformDollarEvent(unit, ops) {
|
|
|
17686
17686
|
}
|
|
17687
17687
|
}
|
|
17688
17688
|
|
|
17689
|
-
// bazel-out/
|
|
17689
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
17690
17690
|
function resolveI18nElementPlaceholders(job) {
|
|
17691
17691
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
17692
17692
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -17769,7 +17769,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags = I18nPara
|
|
|
17769
17769
|
params.set(placeholder, values);
|
|
17770
17770
|
}
|
|
17771
17771
|
|
|
17772
|
-
// bazel-out/
|
|
17772
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
17773
17773
|
function resolveI18nExpressionPlaceholders(job) {
|
|
17774
17774
|
const subTemplateIndicies = /* @__PURE__ */ new Map();
|
|
17775
17775
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
@@ -17802,7 +17802,7 @@ function resolveI18nExpressionPlaceholders(job) {
|
|
|
17802
17802
|
}
|
|
17803
17803
|
}
|
|
17804
17804
|
|
|
17805
|
-
// bazel-out/
|
|
17805
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
17806
17806
|
function resolveNames(job) {
|
|
17807
17807
|
for (const unit of job.units) {
|
|
17808
17808
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -17866,7 +17866,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
17866
17866
|
}
|
|
17867
17867
|
}
|
|
17868
17868
|
|
|
17869
|
-
// bazel-out/
|
|
17869
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
17870
17870
|
var sanitizers = /* @__PURE__ */ new Map([
|
|
17871
17871
|
[SecurityContext.HTML, SanitizerFn.Html],
|
|
17872
17872
|
[SecurityContext.SCRIPT, SanitizerFn.Script],
|
|
@@ -17903,7 +17903,7 @@ function isIframeElement(op) {
|
|
|
17903
17903
|
return op.kind === OpKind.ElementStart && ((_a2 = op.tag) == null ? void 0 : _a2.toLowerCase()) === "iframe";
|
|
17904
17904
|
}
|
|
17905
17905
|
|
|
17906
|
-
// bazel-out/
|
|
17906
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
17907
17907
|
function saveAndRestoreView(job) {
|
|
17908
17908
|
for (const unit of job.units) {
|
|
17909
17909
|
unit.create.prepend([
|
|
@@ -17948,7 +17948,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
17948
17948
|
}
|
|
17949
17949
|
}
|
|
17950
17950
|
|
|
17951
|
-
// bazel-out/
|
|
17951
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
17952
17952
|
function allocateSlots(job) {
|
|
17953
17953
|
const slotMap = /* @__PURE__ */ new Map();
|
|
17954
17954
|
for (const unit of job.units) {
|
|
@@ -17973,7 +17973,7 @@ function allocateSlots(job) {
|
|
|
17973
17973
|
}
|
|
17974
17974
|
}
|
|
17975
17975
|
|
|
17976
|
-
// bazel-out/
|
|
17976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
17977
17977
|
function specializeStyleBindings(job) {
|
|
17978
17978
|
for (const unit of job.units) {
|
|
17979
17979
|
for (const op of unit.update) {
|
|
@@ -18003,7 +18003,7 @@ function specializeStyleBindings(job) {
|
|
|
18003
18003
|
}
|
|
18004
18004
|
}
|
|
18005
18005
|
|
|
18006
|
-
// bazel-out/
|
|
18006
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18007
18007
|
function generateTemporaryVariables(job) {
|
|
18008
18008
|
for (const unit of job.units) {
|
|
18009
18009
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18061,7 +18061,7 @@ function assignName(names, expr) {
|
|
|
18061
18061
|
expr.name = name;
|
|
18062
18062
|
}
|
|
18063
18063
|
|
|
18064
|
-
// bazel-out/
|
|
18064
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18065
18065
|
function generateTrackFns(job) {
|
|
18066
18066
|
for (const unit of job.units) {
|
|
18067
18067
|
for (const op of unit.create) {
|
|
@@ -18091,7 +18091,7 @@ function generateTrackFns(job) {
|
|
|
18091
18091
|
}
|
|
18092
18092
|
}
|
|
18093
18093
|
|
|
18094
|
-
// bazel-out/
|
|
18094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18095
18095
|
function optimizeTrackFns(job) {
|
|
18096
18096
|
for (const unit of job.units) {
|
|
18097
18097
|
for (const op of unit.create) {
|
|
@@ -18138,7 +18138,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18138
18138
|
return true;
|
|
18139
18139
|
}
|
|
18140
18140
|
|
|
18141
|
-
// bazel-out/
|
|
18141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18142
18142
|
function generateTrackVariables(job) {
|
|
18143
18143
|
for (const unit of job.units) {
|
|
18144
18144
|
for (const op of unit.create) {
|
|
@@ -18159,7 +18159,7 @@ function generateTrackVariables(job) {
|
|
|
18159
18159
|
}
|
|
18160
18160
|
}
|
|
18161
18161
|
|
|
18162
|
-
// bazel-out/
|
|
18162
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18163
18163
|
function countVariables(job) {
|
|
18164
18164
|
for (const unit of job.units) {
|
|
18165
18165
|
let varCount = 0;
|
|
@@ -18264,7 +18264,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18264
18264
|
return true;
|
|
18265
18265
|
}
|
|
18266
18266
|
|
|
18267
|
-
// bazel-out/
|
|
18267
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18268
18268
|
function optimizeVariables(job) {
|
|
18269
18269
|
for (const unit of job.units) {
|
|
18270
18270
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -18514,7 +18514,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
18514
18514
|
}
|
|
18515
18515
|
}
|
|
18516
18516
|
|
|
18517
|
-
// bazel-out/
|
|
18517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
18518
18518
|
function wrapI18nIcus(job) {
|
|
18519
18519
|
for (const unit of job.units) {
|
|
18520
18520
|
let currentI18nOp = null;
|
|
@@ -18538,7 +18538,7 @@ function wrapI18nIcus(job) {
|
|
|
18538
18538
|
}
|
|
18539
18539
|
}
|
|
18540
18540
|
|
|
18541
|
-
// bazel-out/
|
|
18541
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
18542
18542
|
var phases = [
|
|
18543
18543
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
18544
18544
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -18703,7 +18703,7 @@ function emitHostBindingFunction(job) {
|
|
|
18703
18703
|
);
|
|
18704
18704
|
}
|
|
18705
18705
|
|
|
18706
|
-
// bazel-out/
|
|
18706
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
18707
18707
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
18708
18708
|
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
|
|
18709
18709
|
const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta);
|
|
@@ -19266,10 +19266,10 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
19266
19266
|
return null;
|
|
19267
19267
|
}
|
|
19268
19268
|
|
|
19269
|
-
// bazel-out/
|
|
19269
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
19270
19270
|
var USE_TEMPLATE_PIPELINE = false;
|
|
19271
19271
|
|
|
19272
|
-
// bazel-out/
|
|
19272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
19273
19273
|
var IMPORTANT_FLAG = "!important";
|
|
19274
19274
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
19275
19275
|
var StylingBuilder = class {
|
|
@@ -19602,7 +19602,7 @@ function isEmptyExpression(ast) {
|
|
|
19602
19602
|
return ast instanceof EmptyExpr;
|
|
19603
19603
|
}
|
|
19604
19604
|
|
|
19605
|
-
// bazel-out/
|
|
19605
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
19606
19606
|
var HtmlParser = class extends Parser2 {
|
|
19607
19607
|
constructor() {
|
|
19608
19608
|
super(getHtmlTagDefinition);
|
|
@@ -19612,7 +19612,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
19612
19612
|
}
|
|
19613
19613
|
};
|
|
19614
19614
|
|
|
19615
|
-
// bazel-out/
|
|
19615
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
19616
19616
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
19617
19617
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
19618
19618
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -19678,7 +19678,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
19678
19678
|
return result;
|
|
19679
19679
|
}
|
|
19680
19680
|
|
|
19681
|
-
// bazel-out/
|
|
19681
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
19682
19682
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
19683
19683
|
var ATTRIBUTE_PREFIX = "attr";
|
|
19684
19684
|
var CLASS_PREFIX = "class";
|
|
@@ -19998,7 +19998,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
19998
19998
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
19999
19999
|
}
|
|
20000
20000
|
|
|
20001
|
-
// bazel-out/
|
|
20001
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20002
20002
|
function isStyleUrlResolvable(url) {
|
|
20003
20003
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20004
20004
|
return false;
|
|
@@ -20007,7 +20007,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20007
20007
|
}
|
|
20008
20008
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20009
20009
|
|
|
20010
|
-
// bazel-out/
|
|
20010
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20011
20011
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20012
20012
|
var LINK_ELEMENT = "link";
|
|
20013
20013
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20077,7 +20077,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20077
20077
|
return selectAttr;
|
|
20078
20078
|
}
|
|
20079
20079
|
|
|
20080
|
-
// bazel-out/
|
|
20080
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20081
20081
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20082
20082
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20083
20083
|
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
@@ -20368,7 +20368,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
20368
20368
|
return expression.slice(start, end);
|
|
20369
20369
|
}
|
|
20370
20370
|
|
|
20371
|
-
// bazel-out/
|
|
20371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
20372
20372
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
20373
20373
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
20374
20374
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -20632,7 +20632,7 @@ function parseDeferredTime(value) {
|
|
|
20632
20632
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
20633
20633
|
}
|
|
20634
20634
|
|
|
20635
|
-
// bazel-out/
|
|
20635
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
20636
20636
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
20637
20637
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
20638
20638
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -20767,7 +20767,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
20767
20767
|
return { triggers, prefetchTriggers };
|
|
20768
20768
|
}
|
|
20769
20769
|
|
|
20770
|
-
// bazel-out/
|
|
20770
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
20771
20771
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
20772
20772
|
var KW_BIND_IDX = 1;
|
|
20773
20773
|
var KW_LET_IDX = 2;
|
|
@@ -21198,7 +21198,7 @@ function textContents(node) {
|
|
|
21198
21198
|
}
|
|
21199
21199
|
}
|
|
21200
21200
|
|
|
21201
|
-
// bazel-out/
|
|
21201
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21202
21202
|
var TagType;
|
|
21203
21203
|
(function(TagType2) {
|
|
21204
21204
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -21333,7 +21333,7 @@ function serializePlaceholderValue(value) {
|
|
|
21333
21333
|
}
|
|
21334
21334
|
}
|
|
21335
21335
|
|
|
21336
|
-
// bazel-out/
|
|
21336
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
21337
21337
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
21338
21338
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
21339
21339
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -22997,7 +22997,7 @@ function createClosureModeGuard2() {
|
|
|
22997
22997
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
22998
22998
|
}
|
|
22999
22999
|
|
|
23000
|
-
// bazel-out/
|
|
23000
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
23001
23001
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
23002
23002
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
23003
23003
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -23599,7 +23599,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
23599
23599
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
23600
23600
|
}
|
|
23601
23601
|
|
|
23602
|
-
// bazel-out/
|
|
23602
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
23603
23603
|
var R3TargetBinder = class {
|
|
23604
23604
|
constructor(directiveMatcher) {
|
|
23605
23605
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -24204,11 +24204,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
24204
24204
|
return templateEntities;
|
|
24205
24205
|
}
|
|
24206
24206
|
|
|
24207
|
-
// bazel-out/
|
|
24207
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
24208
24208
|
var ResourceLoader = class {
|
|
24209
24209
|
};
|
|
24210
24210
|
|
|
24211
|
-
// bazel-out/
|
|
24211
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
24212
24212
|
var CompilerFacadeImpl = class {
|
|
24213
24213
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
24214
24214
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -24760,17 +24760,17 @@ function publishFacade(global) {
|
|
|
24760
24760
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
24761
24761
|
}
|
|
24762
24762
|
|
|
24763
|
-
// bazel-out/
|
|
24764
|
-
var VERSION2 = new Version("17.0.
|
|
24763
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
24764
|
+
var VERSION2 = new Version("17.0.2");
|
|
24765
24765
|
|
|
24766
|
-
// bazel-out/
|
|
24766
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
24767
24767
|
var _VisitorMode;
|
|
24768
24768
|
(function(_VisitorMode2) {
|
|
24769
24769
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
24770
24770
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
24771
24771
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
24772
24772
|
|
|
24773
|
-
// bazel-out/
|
|
24773
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
24774
24774
|
var XmlTagDefinition = class {
|
|
24775
24775
|
constructor() {
|
|
24776
24776
|
this.closedByParent = false;
|
|
@@ -24792,7 +24792,7 @@ var XmlTagDefinition = class {
|
|
|
24792
24792
|
};
|
|
24793
24793
|
var _TAG_DEFINITION = new XmlTagDefinition();
|
|
24794
24794
|
|
|
24795
|
-
// bazel-out/
|
|
24795
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
24796
24796
|
var FactoryTarget2;
|
|
24797
24797
|
(function(FactoryTarget3) {
|
|
24798
24798
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -24802,45 +24802,11 @@ var FactoryTarget2;
|
|
|
24802
24802
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
24803
24803
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
24804
24804
|
|
|
24805
|
-
// bazel-out/
|
|
24805
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
24806
24806
|
publishFacade(_global);
|
|
24807
24807
|
|
|
24808
|
-
// bazel-out/
|
|
24809
|
-
var
|
|
24810
|
-
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
24811
|
-
|
|
24812
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/types.mjs
|
|
24813
|
-
var ngif = "*ngIf";
|
|
24814
|
-
var boundngif = "[ngIf]";
|
|
24815
|
-
var nakedngif = "ngIf";
|
|
24816
|
-
var ngfor = "*ngFor";
|
|
24817
|
-
var ngswitch = "[ngSwitch]";
|
|
24818
|
-
var boundcase = "[ngSwitchCase]";
|
|
24819
|
-
var switchcase = "*ngSwitchCase";
|
|
24820
|
-
var nakedcase = "ngSwitchCase";
|
|
24821
|
-
var switchdefault = "*ngSwitchDefault";
|
|
24822
|
-
var nakeddefault = "ngSwitchDefault";
|
|
24823
|
-
var commaSeparatedSyntax = /* @__PURE__ */ new Map([
|
|
24824
|
-
["(", ")"],
|
|
24825
|
-
["{", "}"],
|
|
24826
|
-
["[", "]"]
|
|
24827
|
-
]);
|
|
24828
|
-
var stringPairs = /* @__PURE__ */ new Map([
|
|
24829
|
-
[`"`, `"`],
|
|
24830
|
-
[`'`, `'`]
|
|
24831
|
-
]);
|
|
24832
|
-
var attributesToMigrate = [
|
|
24833
|
-
ngif,
|
|
24834
|
-
nakedngif,
|
|
24835
|
-
boundngif,
|
|
24836
|
-
ngfor,
|
|
24837
|
-
ngswitch,
|
|
24838
|
-
boundcase,
|
|
24839
|
-
switchcase,
|
|
24840
|
-
nakedcase,
|
|
24841
|
-
switchdefault,
|
|
24842
|
-
nakeddefault
|
|
24843
|
-
];
|
|
24808
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/types.mjs
|
|
24809
|
+
var ngtemplate = "ng-template";
|
|
24844
24810
|
var ElementToMigrate = class {
|
|
24845
24811
|
constructor(el, attr) {
|
|
24846
24812
|
__publicField(this, "el");
|
|
@@ -24876,13 +24842,14 @@ var ElementToMigrate = class {
|
|
|
24876
24842
|
}
|
|
24877
24843
|
};
|
|
24878
24844
|
var Template2 = class {
|
|
24879
|
-
constructor(el) {
|
|
24845
|
+
constructor(el, i18n2) {
|
|
24880
24846
|
__publicField(this, "el");
|
|
24881
24847
|
__publicField(this, "count", 0);
|
|
24882
24848
|
__publicField(this, "contents", "");
|
|
24883
24849
|
__publicField(this, "children", "");
|
|
24884
|
-
__publicField(this, "
|
|
24850
|
+
__publicField(this, "i18n", null);
|
|
24885
24851
|
this.el = el;
|
|
24852
|
+
this.i18n = i18n2;
|
|
24886
24853
|
}
|
|
24887
24854
|
generateContents(tmpl) {
|
|
24888
24855
|
this.contents = tmpl.slice(this.el.sourceSpan.start.offset, this.el.sourceSpan.end.offset + 1);
|
|
@@ -24912,32 +24879,53 @@ var AnalyzedFile = class {
|
|
|
24912
24879
|
}
|
|
24913
24880
|
};
|
|
24914
24881
|
var ElementCollector = class extends RecursiveVisitor {
|
|
24915
|
-
constructor() {
|
|
24916
|
-
super(
|
|
24882
|
+
constructor(_attributes = []) {
|
|
24883
|
+
super();
|
|
24884
|
+
__publicField(this, "_attributes");
|
|
24917
24885
|
__publicField(this, "elements", []);
|
|
24918
|
-
|
|
24886
|
+
this._attributes = _attributes;
|
|
24919
24887
|
}
|
|
24920
24888
|
visitElement(el) {
|
|
24921
24889
|
if (el.attrs.length > 0) {
|
|
24922
24890
|
for (const attr of el.attrs) {
|
|
24923
|
-
if (
|
|
24891
|
+
if (this._attributes.includes(attr.name)) {
|
|
24924
24892
|
this.elements.push(new ElementToMigrate(el, attr));
|
|
24925
24893
|
}
|
|
24926
24894
|
}
|
|
24927
24895
|
}
|
|
24928
|
-
|
|
24896
|
+
super.visitElement(el, null);
|
|
24897
|
+
}
|
|
24898
|
+
};
|
|
24899
|
+
var TemplateCollector = class extends RecursiveVisitor {
|
|
24900
|
+
constructor() {
|
|
24901
|
+
super(...arguments);
|
|
24902
|
+
__publicField(this, "elements", []);
|
|
24903
|
+
__publicField(this, "templates", /* @__PURE__ */ new Map());
|
|
24904
|
+
}
|
|
24905
|
+
visitElement(el) {
|
|
24906
|
+
if (el.name === ngtemplate) {
|
|
24907
|
+
let i18n2 = null;
|
|
24908
|
+
let templateAttr = null;
|
|
24929
24909
|
for (const attr of el.attrs) {
|
|
24910
|
+
if (attr.name === "i18n") {
|
|
24911
|
+
i18n2 = attr;
|
|
24912
|
+
}
|
|
24930
24913
|
if (attr.name.startsWith("#")) {
|
|
24931
|
-
|
|
24932
|
-
this.templates.set(attr.name, new Template2(el));
|
|
24914
|
+
templateAttr = attr;
|
|
24933
24915
|
}
|
|
24934
24916
|
}
|
|
24917
|
+
if (templateAttr !== null) {
|
|
24918
|
+
this.elements.push(new ElementToMigrate(el, templateAttr));
|
|
24919
|
+
this.templates.set(templateAttr.name, new Template2(el, i18n2));
|
|
24920
|
+
}
|
|
24935
24921
|
}
|
|
24936
24922
|
super.visitElement(el, null);
|
|
24937
24923
|
}
|
|
24938
24924
|
};
|
|
24939
24925
|
|
|
24940
|
-
// bazel-out/
|
|
24926
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/util.mjs
|
|
24927
|
+
var import_path2 = require("path");
|
|
24928
|
+
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
24941
24929
|
function analyze(sourceFile, analyzedFiles) {
|
|
24942
24930
|
forEachClass(sourceFile, (node) => {
|
|
24943
24931
|
var _a2;
|
|
@@ -24976,11 +24964,8 @@ function getNestedCount(etm, aggregator) {
|
|
|
24976
24964
|
return getNestedCount(etm, aggregator);
|
|
24977
24965
|
}
|
|
24978
24966
|
}
|
|
24979
|
-
|
|
24980
|
-
function migrateTemplate(template2) {
|
|
24981
|
-
var _a2, _b2;
|
|
24967
|
+
function parseTemplate2(template2) {
|
|
24982
24968
|
let parsed;
|
|
24983
|
-
let errors = [];
|
|
24984
24969
|
try {
|
|
24985
24970
|
parsed = new HtmlParser().parse(template2, "", {
|
|
24986
24971
|
tokenizeExpansionForms: true,
|
|
@@ -24988,159 +24973,175 @@ function migrateTemplate(template2) {
|
|
|
24988
24973
|
preserveLineEndings: true
|
|
24989
24974
|
});
|
|
24990
24975
|
if (parsed.errors && parsed.errors.length > 0) {
|
|
24991
|
-
return
|
|
24976
|
+
return null;
|
|
24992
24977
|
}
|
|
24993
24978
|
} catch (e) {
|
|
24994
|
-
return
|
|
24995
|
-
}
|
|
24996
|
-
let result = template2;
|
|
24997
|
-
const lineBreaks = template2.match(/\r|\n/g);
|
|
24998
|
-
const hasLineBreaks = lineBreaks !== null;
|
|
24999
|
-
const visitor = new ElementCollector();
|
|
25000
|
-
visitAll2(visitor, parsed.rootNodes);
|
|
25001
|
-
for (let [key, tmpl] of visitor.templates) {
|
|
25002
|
-
const regex = new RegExp(`[^a-zA-Z0-9-<]+${key.slice(1)}\\W`, "gm");
|
|
25003
|
-
const matches = template2.match(regex);
|
|
25004
|
-
tmpl.count = (_a2 = matches == null ? void 0 : matches.length) != null ? _a2 : 0;
|
|
25005
|
-
tmpl.generateContents(template2);
|
|
24979
|
+
return null;
|
|
25006
24980
|
}
|
|
24981
|
+
return parsed;
|
|
24982
|
+
}
|
|
24983
|
+
function calculateNesting(visitor, hasLineBreaks2) {
|
|
25007
24984
|
let nestedQueue = [];
|
|
25008
24985
|
for (let i = 0; i < visitor.elements.length; i++) {
|
|
25009
24986
|
let currEl = visitor.elements[i];
|
|
25010
24987
|
if (i === 0) {
|
|
25011
24988
|
nestedQueue.push(currEl.el.sourceSpan.end.offset);
|
|
25012
|
-
currEl.hasLineBreaks =
|
|
24989
|
+
currEl.hasLineBreaks = hasLineBreaks2;
|
|
25013
24990
|
continue;
|
|
25014
24991
|
}
|
|
25015
|
-
currEl.hasLineBreaks =
|
|
24992
|
+
currEl.hasLineBreaks = hasLineBreaks2;
|
|
25016
24993
|
currEl.nestCount = getNestedCount(currEl, nestedQueue);
|
|
25017
24994
|
if (currEl.el.sourceSpan.end.offset !== nestedQueue[nestedQueue.length - 1]) {
|
|
25018
24995
|
nestedQueue.push(currEl.el.sourceSpan.end.offset);
|
|
25019
24996
|
}
|
|
25020
24997
|
}
|
|
24998
|
+
}
|
|
24999
|
+
function escapeRegExp(val) {
|
|
25000
|
+
return val.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
25001
|
+
}
|
|
25002
|
+
function hasLineBreaks(template2) {
|
|
25003
|
+
return /\r|\n/.test(template2);
|
|
25004
|
+
}
|
|
25005
|
+
function reduceNestingOffset(el, nestLevel, offset, postOffsets) {
|
|
25006
|
+
var _a2;
|
|
25007
|
+
if (el.nestCount <= nestLevel) {
|
|
25008
|
+
const count = nestLevel - el.nestCount;
|
|
25009
|
+
for (let i = 0; i <= count; i++) {
|
|
25010
|
+
offset += (_a2 = postOffsets.pop()) != null ? _a2 : 0;
|
|
25011
|
+
}
|
|
25012
|
+
}
|
|
25013
|
+
return offset;
|
|
25014
|
+
}
|
|
25015
|
+
function countTemplateUsage(template2) {
|
|
25016
|
+
var _a2;
|
|
25017
|
+
const parsed = parseTemplate2(template2);
|
|
25018
|
+
if (parsed !== null) {
|
|
25019
|
+
const visitor = new TemplateCollector();
|
|
25020
|
+
visitAll2(visitor, parsed.rootNodes);
|
|
25021
|
+
for (let [key, tmpl] of visitor.templates) {
|
|
25022
|
+
const escapeKey = escapeRegExp(key.slice(1));
|
|
25023
|
+
const regex = new RegExp(`[^a-zA-Z0-9-<]${escapeKey}\\W`, "gm");
|
|
25024
|
+
const matches = template2.match(regex);
|
|
25025
|
+
tmpl.count = (_a2 = matches == null ? void 0 : matches.length) != null ? _a2 : 0;
|
|
25026
|
+
tmpl.generateContents(template2);
|
|
25027
|
+
}
|
|
25028
|
+
return visitor.templates;
|
|
25029
|
+
}
|
|
25030
|
+
return /* @__PURE__ */ new Map();
|
|
25031
|
+
}
|
|
25032
|
+
function wrapIntoI18nContainer(i18nAttr, content) {
|
|
25033
|
+
const i18n2 = i18nAttr.value === "" ? "i18n" : `i18n="${i18nAttr.value}"`;
|
|
25034
|
+
return `<ng-container ${i18n2}>${content}</ng-container>`;
|
|
25035
|
+
}
|
|
25036
|
+
function processNgTemplates(template2) {
|
|
25037
|
+
const templates = countTemplateUsage(template2);
|
|
25038
|
+
for (const [name, t] of templates) {
|
|
25039
|
+
const placeholder = `${name}|`;
|
|
25040
|
+
if (template2.indexOf(placeholder) > -1) {
|
|
25041
|
+
if (t.i18n !== null) {
|
|
25042
|
+
const container = wrapIntoI18nContainer(t.i18n, t.children);
|
|
25043
|
+
template2 = template2.replace(placeholder, container);
|
|
25044
|
+
} else {
|
|
25045
|
+
template2 = template2.replace(placeholder, t.children);
|
|
25046
|
+
}
|
|
25047
|
+
if (t.count <= 2) {
|
|
25048
|
+
template2 = template2.replace(t.contents, "");
|
|
25049
|
+
}
|
|
25050
|
+
}
|
|
25051
|
+
}
|
|
25052
|
+
return template2;
|
|
25053
|
+
}
|
|
25054
|
+
function getOriginals(etm, tmpl, offset) {
|
|
25055
|
+
if (etm.el.children.length > 0) {
|
|
25056
|
+
const start2 = tmpl.slice(etm.el.sourceSpan.start.offset - offset, etm.el.children[0].sourceSpan.start.offset - offset);
|
|
25057
|
+
const end = tmpl.slice(etm.el.children[etm.el.children.length - 1].sourceSpan.end.offset - offset, etm.el.sourceSpan.end.offset - offset);
|
|
25058
|
+
return { start: start2, end };
|
|
25059
|
+
}
|
|
25060
|
+
const start = tmpl.slice(etm.el.sourceSpan.start.offset - offset, etm.el.sourceSpan.end.offset - offset);
|
|
25061
|
+
return { start, end: "" };
|
|
25062
|
+
}
|
|
25063
|
+
function getMainBlock(etm, tmpl, offset) {
|
|
25064
|
+
const i18nAttr = etm.el.attrs.find((x) => x.name === "i18n");
|
|
25065
|
+
if ((etm.el.name === "ng-container" || etm.el.name === "ng-template") && etm.el.attrs.length === 1) {
|
|
25066
|
+
const childStart2 = etm.el.children[0].sourceSpan.start.offset - offset;
|
|
25067
|
+
const childEnd2 = etm.el.children[etm.el.children.length - 1].sourceSpan.end.offset - offset;
|
|
25068
|
+
const middle2 = tmpl.slice(childStart2, childEnd2);
|
|
25069
|
+
return { start: "", middle: middle2, end: "" };
|
|
25070
|
+
} else if (etm.el.name === "ng-template" && etm.el.attrs.length === 2 && i18nAttr !== void 0) {
|
|
25071
|
+
const childStart2 = etm.el.children[0].sourceSpan.start.offset - offset;
|
|
25072
|
+
const childEnd2 = etm.el.children[etm.el.children.length - 1].sourceSpan.end.offset - offset;
|
|
25073
|
+
const middle2 = wrapIntoI18nContainer(i18nAttr, tmpl.slice(childStart2, childEnd2));
|
|
25074
|
+
return { start: "", middle: middle2, end: "" };
|
|
25075
|
+
}
|
|
25076
|
+
const attrStart = etm.attr.keySpan.start.offset - 1 - offset;
|
|
25077
|
+
const valEnd = (etm.attr.valueSpan ? etm.attr.valueSpan.end.offset + 1 : etm.attr.keySpan.end.offset) - offset;
|
|
25078
|
+
let childStart = valEnd;
|
|
25079
|
+
let childEnd = valEnd;
|
|
25080
|
+
if (etm.el.children.length > 0) {
|
|
25081
|
+
childStart = etm.el.children[0].sourceSpan.start.offset - offset;
|
|
25082
|
+
childEnd = etm.el.children[etm.el.children.length - 1].sourceSpan.end.offset - offset;
|
|
25083
|
+
}
|
|
25084
|
+
let start = tmpl.slice(etm.start(offset), attrStart);
|
|
25085
|
+
start += tmpl.slice(valEnd, childStart);
|
|
25086
|
+
const middle = tmpl.slice(childStart, childEnd);
|
|
25087
|
+
const end = tmpl.slice(childEnd, etm.end(offset));
|
|
25088
|
+
return { start, middle, end };
|
|
25089
|
+
}
|
|
25090
|
+
function forEachClass(sourceFile, callback) {
|
|
25091
|
+
sourceFile.forEachChild(function walk(node) {
|
|
25092
|
+
if (import_typescript5.default.isClassDeclaration(node)) {
|
|
25093
|
+
callback(node);
|
|
25094
|
+
}
|
|
25095
|
+
node.forEachChild(walk);
|
|
25096
|
+
});
|
|
25097
|
+
}
|
|
25098
|
+
|
|
25099
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/fors.mjs
|
|
25100
|
+
var ngfor = "*ngFor";
|
|
25101
|
+
var commaSeparatedSyntax = /* @__PURE__ */ new Map([
|
|
25102
|
+
["(", ")"],
|
|
25103
|
+
["{", "}"],
|
|
25104
|
+
["[", "]"]
|
|
25105
|
+
]);
|
|
25106
|
+
var stringPairs = /* @__PURE__ */ new Map([
|
|
25107
|
+
[`"`, `"`],
|
|
25108
|
+
[`'`, `'`]
|
|
25109
|
+
]);
|
|
25110
|
+
function migrateFor(template2) {
|
|
25111
|
+
let errors = [];
|
|
25112
|
+
let parsed = parseTemplate2(template2);
|
|
25113
|
+
if (parsed === null) {
|
|
25114
|
+
return { migrated: template2, errors };
|
|
25115
|
+
}
|
|
25116
|
+
let result = template2;
|
|
25117
|
+
const visitor = new ElementCollector([ngfor]);
|
|
25118
|
+
visitAll2(visitor, parsed.rootNodes);
|
|
25119
|
+
calculateNesting(visitor, hasLineBreaks(template2));
|
|
25021
25120
|
let offset = 0;
|
|
25022
25121
|
let nestLevel = -1;
|
|
25023
25122
|
let postOffsets = [];
|
|
25024
25123
|
for (const el of visitor.elements) {
|
|
25025
25124
|
let migrateResult = { tmpl: result, offsets: { pre: 0, post: 0 } };
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
}
|
|
25031
|
-
}
|
|
25032
|
-
if (el.attr.name === ngif || el.attr.name === nakedngif || el.attr.name === boundngif) {
|
|
25033
|
-
try {
|
|
25034
|
-
migrateResult = migrateNgIf(el, visitor.templates, result, offset);
|
|
25035
|
-
} catch (error2) {
|
|
25036
|
-
errors.push({ type: ngif, error: error2 });
|
|
25037
|
-
}
|
|
25038
|
-
} else if (el.attr.name === ngfor) {
|
|
25039
|
-
try {
|
|
25040
|
-
migrateResult = migrateNgFor(el, result, offset);
|
|
25041
|
-
} catch (error2) {
|
|
25042
|
-
errors.push({ type: ngfor, error: error2 });
|
|
25043
|
-
}
|
|
25044
|
-
} else if (el.attr.name === ngswitch) {
|
|
25045
|
-
try {
|
|
25046
|
-
migrateResult = migrateNgSwitch(el, result, offset);
|
|
25047
|
-
} catch (error2) {
|
|
25048
|
-
errors.push({ type: ngswitch, error: error2 });
|
|
25049
|
-
}
|
|
25050
|
-
} else if (el.attr.name === switchcase || el.attr.name === nakedcase || el.attr.name === boundcase) {
|
|
25051
|
-
try {
|
|
25052
|
-
migrateResult = migrateNgSwitchCase(el, result, offset);
|
|
25053
|
-
} catch (error2) {
|
|
25054
|
-
errors.push({ type: ngswitch, error: error2 });
|
|
25055
|
-
}
|
|
25056
|
-
} else if (el.attr.name === switchdefault || el.attr.name === nakeddefault) {
|
|
25057
|
-
try {
|
|
25058
|
-
migrateResult = migrateNgSwitchDefault(el, result, offset);
|
|
25059
|
-
} catch (error2) {
|
|
25060
|
-
errors.push({ type: ngswitch, error: error2 });
|
|
25061
|
-
}
|
|
25125
|
+
offset = reduceNestingOffset(el, nestLevel, offset, postOffsets);
|
|
25126
|
+
try {
|
|
25127
|
+
migrateResult = migrateNgFor(el, result, offset);
|
|
25128
|
+
} catch (error2) {
|
|
25129
|
+
errors.push({ type: ngfor, error: error2 });
|
|
25062
25130
|
}
|
|
25063
25131
|
result = migrateResult.tmpl;
|
|
25064
25132
|
offset += migrateResult.offsets.pre;
|
|
25065
25133
|
postOffsets.push(migrateResult.offsets.post);
|
|
25066
25134
|
nestLevel = el.nestCount;
|
|
25067
25135
|
}
|
|
25068
|
-
for (const [_, t] of visitor.templates) {
|
|
25069
|
-
if (t.count < 2 && t.used) {
|
|
25070
|
-
result = result.replace(t.contents, "");
|
|
25071
|
-
}
|
|
25072
|
-
}
|
|
25073
25136
|
return { migrated: result, errors };
|
|
25074
25137
|
}
|
|
25075
|
-
function migrateNgIf(etm, ngTemplates, tmpl, offset) {
|
|
25076
|
-
const matchThen = etm.attr.value.match(/;\s*then/gm);
|
|
25077
|
-
const matchElse = etm.attr.value.match(/;\s*else/gm);
|
|
25078
|
-
if (matchThen && matchThen.length > 0) {
|
|
25079
|
-
return buildIfThenElseBlock(etm, ngTemplates, tmpl, matchThen[0], matchElse[0], offset);
|
|
25080
|
-
} else if (matchElse && matchElse.length > 0) {
|
|
25081
|
-
return buildIfElseBlock(etm, ngTemplates, tmpl, matchElse[0], offset);
|
|
25082
|
-
}
|
|
25083
|
-
return buildIfBlock(etm, tmpl, offset);
|
|
25084
|
-
}
|
|
25085
|
-
function buildIfBlock(etm, tmpl, offset) {
|
|
25086
|
-
const lbString = etm.hasLineBreaks ? lb : "";
|
|
25087
|
-
const condition = etm.attr.value.replace(" as ", "; as ");
|
|
25088
|
-
const originals = getOriginals(etm, tmpl, offset);
|
|
25089
|
-
const { start, middle, end } = getMainBlock(etm, tmpl, offset);
|
|
25090
|
-
const startBlock = `@if (${condition}) {${lbString}${start}`;
|
|
25091
|
-
const endBlock = `${end}${lbString}}`;
|
|
25092
|
-
const ifBlock = startBlock + middle + endBlock;
|
|
25093
|
-
const updatedTmpl = tmpl.slice(0, etm.start(offset)) + ifBlock + tmpl.slice(etm.end(offset));
|
|
25094
|
-
const pre = originals.start.length - startBlock.length;
|
|
25095
|
-
const post = originals.end.length - endBlock.length;
|
|
25096
|
-
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25097
|
-
}
|
|
25098
|
-
function buildIfElseBlock(etm, ngTemplates, tmpl, elseString, offset) {
|
|
25099
|
-
const lbString = etm.hasLineBreaks ? lb : "";
|
|
25100
|
-
const condition = etm.getCondition(elseString).replace(" as ", "; as ");
|
|
25101
|
-
const originals = getOriginals(etm, tmpl, offset);
|
|
25102
|
-
const elseTmpl = ngTemplates.get(`#${etm.getTemplateName(elseString)}`);
|
|
25103
|
-
const { start, middle, end } = getMainBlock(etm, tmpl, offset);
|
|
25104
|
-
const startBlock = `@if (${condition}) {${lbString}${start}`;
|
|
25105
|
-
const elseBlock = `${end}${lbString}} @else {${lbString}`;
|
|
25106
|
-
const postBlock = elseBlock + elseTmpl.children + `${lbString}}`;
|
|
25107
|
-
const ifElseBlock = startBlock + middle + postBlock;
|
|
25108
|
-
const tmplStart = tmpl.slice(0, etm.start(offset));
|
|
25109
|
-
const tmplEnd = tmpl.slice(etm.end(offset));
|
|
25110
|
-
const updatedTmpl = tmplStart + ifElseBlock + tmplEnd;
|
|
25111
|
-
elseTmpl.count--;
|
|
25112
|
-
elseTmpl.used = true;
|
|
25113
|
-
const pre = originals.start.length - startBlock.length;
|
|
25114
|
-
const post = originals.end.length - postBlock.length;
|
|
25115
|
-
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25116
|
-
}
|
|
25117
|
-
function buildIfThenElseBlock(etm, ngTemplates, tmpl, thenString, elseString, offset) {
|
|
25118
|
-
const condition = etm.getCondition(thenString).replace(" as ", "; as ");
|
|
25119
|
-
const lbString = etm.hasLineBreaks ? lb : "";
|
|
25120
|
-
const originals = getOriginals(etm, tmpl, offset);
|
|
25121
|
-
const startBlock = `@if (${condition}) {${lbString}`;
|
|
25122
|
-
const elseBlock = `${lbString}} @else {${lbString}`;
|
|
25123
|
-
const thenTmpl = ngTemplates.get(`#${etm.getTemplateName(thenString, elseString)}`);
|
|
25124
|
-
const elseTmpl = ngTemplates.get(`#${etm.getTemplateName(elseString)}`);
|
|
25125
|
-
const postBlock = thenTmpl.children + elseBlock + elseTmpl.children + `${lbString}}`;
|
|
25126
|
-
const ifThenElseBlock = startBlock + postBlock;
|
|
25127
|
-
const tmplStart = tmpl.slice(0, etm.start(offset));
|
|
25128
|
-
const tmplEnd = tmpl.slice(etm.end(offset));
|
|
25129
|
-
const updatedTmpl = tmplStart + ifThenElseBlock + tmplEnd;
|
|
25130
|
-
thenTmpl.count--;
|
|
25131
|
-
thenTmpl.used = true;
|
|
25132
|
-
elseTmpl.count--;
|
|
25133
|
-
elseTmpl.used = true;
|
|
25134
|
-
const pre = originals.start.length - startBlock.length;
|
|
25135
|
-
const post = originals.end.length - postBlock.length;
|
|
25136
|
-
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25137
|
-
}
|
|
25138
25138
|
function migrateNgFor(etm, tmpl, offset) {
|
|
25139
25139
|
const aliasWithEqualRegexp = /=\s*(count|index|first|last|even|odd)/gm;
|
|
25140
25140
|
const aliasWithAsRegexp = /(count|index|first|last|even|odd)\s+as/gm;
|
|
25141
25141
|
const aliases = [];
|
|
25142
|
-
const lbString = etm.hasLineBreaks ?
|
|
25143
|
-
const lbSpaces = etm.hasLineBreaks ?
|
|
25142
|
+
const lbString = etm.hasLineBreaks ? "\n" : "";
|
|
25143
|
+
const lbSpaces = etm.hasLineBreaks ? `
|
|
25144
|
+
` : "";
|
|
25144
25145
|
const parts = getNgForParts(etm.attr.value);
|
|
25145
25146
|
const originals = getOriginals(etm, tmpl, offset);
|
|
25146
25147
|
const condition = parts[0].replace("let ", "");
|
|
@@ -25212,38 +25213,161 @@ function getNgForParts(expression) {
|
|
|
25212
25213
|
}
|
|
25213
25214
|
return parts;
|
|
25214
25215
|
}
|
|
25215
|
-
|
|
25216
|
-
|
|
25217
|
-
|
|
25218
|
-
|
|
25219
|
-
|
|
25216
|
+
|
|
25217
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/ifs.mjs
|
|
25218
|
+
var ngif = "*ngIf";
|
|
25219
|
+
var boundngif = "[ngIf]";
|
|
25220
|
+
var nakedngif = "ngIf";
|
|
25221
|
+
var ifs = [
|
|
25222
|
+
ngif,
|
|
25223
|
+
nakedngif,
|
|
25224
|
+
boundngif
|
|
25225
|
+
];
|
|
25226
|
+
function migrateIf(template2) {
|
|
25227
|
+
let errors = [];
|
|
25228
|
+
let parsed = parseTemplate2(template2);
|
|
25229
|
+
if (parsed === null) {
|
|
25230
|
+
return { migrated: template2, errors };
|
|
25220
25231
|
}
|
|
25221
|
-
|
|
25222
|
-
|
|
25232
|
+
let result = template2;
|
|
25233
|
+
const visitor = new ElementCollector(ifs);
|
|
25234
|
+
visitAll2(visitor, parsed.rootNodes);
|
|
25235
|
+
calculateNesting(visitor, hasLineBreaks(template2));
|
|
25236
|
+
let offset = 0;
|
|
25237
|
+
let nestLevel = -1;
|
|
25238
|
+
let postOffsets = [];
|
|
25239
|
+
for (const el of visitor.elements) {
|
|
25240
|
+
let migrateResult = { tmpl: result, offsets: { pre: 0, post: 0 } };
|
|
25241
|
+
offset = reduceNestingOffset(el, nestLevel, offset, postOffsets);
|
|
25242
|
+
try {
|
|
25243
|
+
migrateResult = migrateNgIf(el, result, offset);
|
|
25244
|
+
} catch (error2) {
|
|
25245
|
+
errors.push({ type: ngif, error: error2 });
|
|
25246
|
+
}
|
|
25247
|
+
result = migrateResult.tmpl;
|
|
25248
|
+
offset += migrateResult.offsets.pre;
|
|
25249
|
+
postOffsets.push(migrateResult.offsets.post);
|
|
25250
|
+
nestLevel = el.nestCount;
|
|
25251
|
+
}
|
|
25252
|
+
return { migrated: result, errors };
|
|
25223
25253
|
}
|
|
25224
|
-
function
|
|
25225
|
-
|
|
25226
|
-
|
|
25227
|
-
|
|
25228
|
-
|
|
25229
|
-
|
|
25254
|
+
function migrateNgIf(etm, tmpl, offset) {
|
|
25255
|
+
const matchThen = etm.attr.value.match(/;\s*then/gm);
|
|
25256
|
+
const matchElse = etm.attr.value.match(/;\s*else/gm);
|
|
25257
|
+
if (matchThen && matchThen.length > 0) {
|
|
25258
|
+
return buildIfThenElseBlock(etm, tmpl, matchThen[0], matchElse[0], offset);
|
|
25259
|
+
} else if (matchElse && matchElse.length > 0) {
|
|
25260
|
+
return buildIfElseBlock(etm, tmpl, matchElse[0], offset);
|
|
25230
25261
|
}
|
|
25231
|
-
|
|
25232
|
-
|
|
25233
|
-
|
|
25234
|
-
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
|
|
25262
|
+
return buildIfBlock(etm, tmpl, offset);
|
|
25263
|
+
}
|
|
25264
|
+
function buildIfBlock(etm, tmpl, offset) {
|
|
25265
|
+
const lbString = etm.hasLineBreaks ? "\n" : "";
|
|
25266
|
+
const condition = etm.attr.value.replace(" as ", "; as ");
|
|
25267
|
+
const originals = getOriginals(etm, tmpl, offset);
|
|
25268
|
+
const { start, middle, end } = getMainBlock(etm, tmpl, offset);
|
|
25269
|
+
const startBlock = `@if (${condition}) {${lbString}${start}`;
|
|
25270
|
+
const endBlock = `${end}${lbString}}`;
|
|
25271
|
+
const ifBlock = startBlock + middle + endBlock;
|
|
25272
|
+
const updatedTmpl = tmpl.slice(0, etm.start(offset)) + ifBlock + tmpl.slice(etm.end(offset));
|
|
25273
|
+
const pre = originals.start.length - startBlock.length;
|
|
25274
|
+
const post = originals.end.length - endBlock.length;
|
|
25275
|
+
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25276
|
+
}
|
|
25277
|
+
function buildIfElseBlock(etm, tmpl, elseString, offset) {
|
|
25278
|
+
const lbString = etm.hasLineBreaks ? "\n" : "";
|
|
25279
|
+
const condition = etm.getCondition(elseString).replace(" as ", "; as ");
|
|
25280
|
+
const originals = getOriginals(etm, tmpl, offset);
|
|
25281
|
+
const elsePlaceholder = `#${etm.getTemplateName(elseString)}|`;
|
|
25282
|
+
const { start, middle, end } = getMainBlock(etm, tmpl, offset);
|
|
25283
|
+
const startBlock = `@if (${condition}) {${lbString}${start}`;
|
|
25284
|
+
const elseBlock = `${end}${lbString}} @else {${lbString}`;
|
|
25285
|
+
const postBlock = elseBlock + elsePlaceholder + `${lbString}}`;
|
|
25286
|
+
const ifElseBlock = startBlock + middle + postBlock;
|
|
25287
|
+
const tmplStart = tmpl.slice(0, etm.start(offset));
|
|
25288
|
+
const tmplEnd = tmpl.slice(etm.end(offset));
|
|
25289
|
+
const updatedTmpl = tmplStart + ifElseBlock + tmplEnd;
|
|
25290
|
+
const pre = originals.start.length - startBlock.length;
|
|
25291
|
+
const post = originals.end.length - postBlock.length;
|
|
25292
|
+
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25293
|
+
}
|
|
25294
|
+
function buildIfThenElseBlock(etm, tmpl, thenString, elseString, offset) {
|
|
25295
|
+
const condition = etm.getCondition(thenString).replace(" as ", "; as ");
|
|
25296
|
+
const lbString = etm.hasLineBreaks ? "\n" : "";
|
|
25297
|
+
const originals = getOriginals(etm, tmpl, offset);
|
|
25298
|
+
const startBlock = `@if (${condition}) {${lbString}`;
|
|
25299
|
+
const elseBlock = `${lbString}} @else {${lbString}`;
|
|
25300
|
+
const thenPlaceholder = `#${etm.getTemplateName(thenString, elseString)}|`;
|
|
25301
|
+
const elsePlaceholder = `#${etm.getTemplateName(elseString)}|`;
|
|
25302
|
+
const postBlock = thenPlaceholder + elseBlock + elsePlaceholder + `${lbString}}`;
|
|
25303
|
+
const ifThenElseBlock = startBlock + postBlock;
|
|
25304
|
+
const tmplStart = tmpl.slice(0, etm.start(offset));
|
|
25305
|
+
const tmplEnd = tmpl.slice(etm.end(offset));
|
|
25306
|
+
const updatedTmpl = tmplStart + ifThenElseBlock + tmplEnd;
|
|
25307
|
+
const pre = originals.start.length - startBlock.length;
|
|
25308
|
+
const post = originals.end.length - postBlock.length;
|
|
25309
|
+
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25310
|
+
}
|
|
25311
|
+
|
|
25312
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/switches.mjs
|
|
25313
|
+
var ngswitch = "[ngSwitch]";
|
|
25314
|
+
var boundcase = "[ngSwitchCase]";
|
|
25315
|
+
var switchcase = "*ngSwitchCase";
|
|
25316
|
+
var nakedcase = "ngSwitchCase";
|
|
25317
|
+
var switchdefault = "*ngSwitchDefault";
|
|
25318
|
+
var nakeddefault = "ngSwitchDefault";
|
|
25319
|
+
var switches = [
|
|
25320
|
+
ngswitch,
|
|
25321
|
+
boundcase,
|
|
25322
|
+
switchcase,
|
|
25323
|
+
nakedcase,
|
|
25324
|
+
switchdefault,
|
|
25325
|
+
nakeddefault
|
|
25326
|
+
];
|
|
25327
|
+
function migrateSwitch(template2) {
|
|
25328
|
+
let errors = [];
|
|
25329
|
+
let parsed = parseTemplate2(template2);
|
|
25330
|
+
if (parsed === null) {
|
|
25331
|
+
return { migrated: template2, errors };
|
|
25238
25332
|
}
|
|
25239
|
-
let
|
|
25240
|
-
|
|
25241
|
-
|
|
25242
|
-
|
|
25243
|
-
|
|
25333
|
+
let result = template2;
|
|
25334
|
+
const visitor = new ElementCollector(switches);
|
|
25335
|
+
visitAll2(visitor, parsed.rootNodes);
|
|
25336
|
+
calculateNesting(visitor, hasLineBreaks(template2));
|
|
25337
|
+
let offset = 0;
|
|
25338
|
+
let nestLevel = -1;
|
|
25339
|
+
let postOffsets = [];
|
|
25340
|
+
for (const el of visitor.elements) {
|
|
25341
|
+
let migrateResult = { tmpl: result, offsets: { pre: 0, post: 0 } };
|
|
25342
|
+
offset = reduceNestingOffset(el, nestLevel, offset, postOffsets);
|
|
25343
|
+
if (el.attr.name === ngswitch) {
|
|
25344
|
+
try {
|
|
25345
|
+
migrateResult = migrateNgSwitch(el, result, offset);
|
|
25346
|
+
} catch (error2) {
|
|
25347
|
+
errors.push({ type: ngswitch, error: error2 });
|
|
25348
|
+
}
|
|
25349
|
+
} else if (el.attr.name === switchcase || el.attr.name === nakedcase || el.attr.name === boundcase) {
|
|
25350
|
+
try {
|
|
25351
|
+
migrateResult = migrateNgSwitchCase(el, result, offset);
|
|
25352
|
+
} catch (error2) {
|
|
25353
|
+
errors.push({ type: ngswitch, error: error2 });
|
|
25354
|
+
}
|
|
25355
|
+
} else if (el.attr.name === switchdefault || el.attr.name === nakeddefault) {
|
|
25356
|
+
try {
|
|
25357
|
+
migrateResult = migrateNgSwitchDefault(el, result, offset);
|
|
25358
|
+
} catch (error2) {
|
|
25359
|
+
errors.push({ type: ngswitch, error: error2 });
|
|
25360
|
+
}
|
|
25361
|
+
}
|
|
25362
|
+
result = migrateResult.tmpl;
|
|
25363
|
+
offset += migrateResult.offsets.pre;
|
|
25364
|
+
postOffsets.push(migrateResult.offsets.post);
|
|
25365
|
+
nestLevel = el.nestCount;
|
|
25366
|
+
}
|
|
25367
|
+
return { migrated: result, errors };
|
|
25244
25368
|
}
|
|
25245
25369
|
function migrateNgSwitch(etm, tmpl, offset) {
|
|
25246
|
-
const lbString = etm.hasLineBreaks ?
|
|
25370
|
+
const lbString = etm.hasLineBreaks ? "\n" : "";
|
|
25247
25371
|
const condition = etm.attr.value;
|
|
25248
25372
|
const originals = getOriginals(etm, tmpl, offset);
|
|
25249
25373
|
const { start, middle, end } = getMainBlock(etm, tmpl, offset);
|
|
@@ -25256,7 +25380,7 @@ function migrateNgSwitch(etm, tmpl, offset) {
|
|
|
25256
25380
|
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25257
25381
|
}
|
|
25258
25382
|
function migrateNgSwitchCase(etm, tmpl, offset) {
|
|
25259
|
-
const lbString = etm.hasLineBreaks ?
|
|
25383
|
+
const lbString = etm.hasLineBreaks ? "\n" : "";
|
|
25260
25384
|
const lbSpaces = etm.hasLineBreaks ? " " : "";
|
|
25261
25385
|
const leadingSpace = etm.hasLineBreaks ? "" : " ";
|
|
25262
25386
|
const condition = etm.attr.value;
|
|
@@ -25271,7 +25395,7 @@ function migrateNgSwitchCase(etm, tmpl, offset) {
|
|
|
25271
25395
|
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25272
25396
|
}
|
|
25273
25397
|
function migrateNgSwitchDefault(etm, tmpl, offset) {
|
|
25274
|
-
const lbString = etm.hasLineBreaks ?
|
|
25398
|
+
const lbString = etm.hasLineBreaks ? "\n" : "";
|
|
25275
25399
|
const lbSpaces = etm.hasLineBreaks ? " " : "";
|
|
25276
25400
|
const leadingSpace = etm.hasLineBreaks ? "" : " ";
|
|
25277
25401
|
const originals = getOriginals(etm, tmpl, offset);
|
|
@@ -25284,16 +25408,8 @@ function migrateNgSwitchDefault(etm, tmpl, offset) {
|
|
|
25284
25408
|
const post = originals.end.length - endBlock.length;
|
|
25285
25409
|
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
25286
25410
|
}
|
|
25287
|
-
function forEachClass(sourceFile, callback) {
|
|
25288
|
-
sourceFile.forEachChild(function walk(node) {
|
|
25289
|
-
if (import_typescript5.default.isClassDeclaration(node)) {
|
|
25290
|
-
callback(node);
|
|
25291
|
-
}
|
|
25292
|
-
node.forEachChild(walk);
|
|
25293
|
-
});
|
|
25294
|
-
}
|
|
25295
25411
|
|
|
25296
|
-
// bazel-out/
|
|
25412
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
|
|
25297
25413
|
function control_flow_migration_default(options) {
|
|
25298
25414
|
return (tree, context) => __async(this, null, function* () {
|
|
25299
25415
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|
|
@@ -25340,7 +25456,15 @@ function runControlFlowMigration(tree, tsconfigPath, basePath, pathToMigrate, sc
|
|
|
25340
25456
|
for (const [start, end] of ranges) {
|
|
25341
25457
|
const template2 = content.slice(start, end);
|
|
25342
25458
|
const length = (end != null ? end : content.length) - start;
|
|
25343
|
-
const
|
|
25459
|
+
const ifResult = migrateIf(template2);
|
|
25460
|
+
const forResult = migrateFor(ifResult.migrated);
|
|
25461
|
+
const switchResult = migrateSwitch(forResult.migrated);
|
|
25462
|
+
const errors = [
|
|
25463
|
+
...ifResult.errors,
|
|
25464
|
+
...forResult.errors,
|
|
25465
|
+
...switchResult.errors
|
|
25466
|
+
];
|
|
25467
|
+
const migrated = processNgTemplates(switchResult.migrated);
|
|
25344
25468
|
if (migrated !== null) {
|
|
25345
25469
|
update.remove(start, length);
|
|
25346
25470
|
update.insertLeft(start, migrated);
|