@angular/core 17.1.0-rc.0 → 17.1.0
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/core_reactivity_export_internal.mjs +2 -2
- package/esm2022/src/defer/interfaces.mjs +3 -2
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/index.mjs +2 -3
- package/esm2022/src/render3/instructions/all.mjs +3 -2
- package/esm2022/src/render3/instructions/queries.mjs +98 -0
- package/esm2022/src/render3/interfaces/view.mjs +1 -1
- package/esm2022/src/render3/query.mjs +11 -98
- package/esm2022/src/render3/reactivity/effect.mjs +15 -37
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +5 -5
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +7 -6
- package/fesm2022/core.mjs +8009 -8029
- 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 +10 -9
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +8 -33
- 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 +200 -166
- package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +209 -175
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +895 -600
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
|
|
67
67
|
var block_template_entities_exports = {};
|
|
68
68
|
__export(block_template_entities_exports, {
|
|
69
69
|
default: () => block_template_entities_default
|
|
@@ -72,7 +72,7 @@ module.exports = __toCommonJS(block_template_entities_exports);
|
|
|
72
72
|
var import_schematics = require("@angular-devkit/schematics");
|
|
73
73
|
var import_path3 = require("path");
|
|
74
74
|
|
|
75
|
-
// bazel-out/
|
|
75
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
76
76
|
var import_core = require("@angular-devkit/core");
|
|
77
77
|
function getProjectTsConfigPaths(tree) {
|
|
78
78
|
return __async(this, null, function* () {
|
|
@@ -152,11 +152,11 @@ function getWorkspace(tree) {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
// bazel-out/
|
|
155
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
156
156
|
var import_path = require("path");
|
|
157
157
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
158
158
|
|
|
159
|
-
// bazel-out/
|
|
159
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
160
160
|
var path = __toESM(require("path"), 1);
|
|
161
161
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
162
162
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -173,7 +173,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
173
173
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
// bazel-out/
|
|
176
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
177
177
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
178
178
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
179
179
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -206,7 +206,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
206
206
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
210
210
|
var _SELECTOR_REGEXP = new RegExp(
|
|
211
211
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
212
212
|
"g"
|
|
@@ -514,7 +514,7 @@ var SelectorContext = class {
|
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
516
|
|
|
517
|
-
// bazel-out/
|
|
517
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/core.mjs
|
|
518
518
|
var ViewEncapsulation;
|
|
519
519
|
(function(ViewEncapsulation2) {
|
|
520
520
|
ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
|
|
@@ -582,7 +582,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
582
582
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
// bazel-out/
|
|
585
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
586
586
|
var textEncoder;
|
|
587
587
|
function computeDigest(message) {
|
|
588
588
|
return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
|
|
@@ -822,7 +822,7 @@ function wordAt(bytes, index, endian) {
|
|
|
822
822
|
return word;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
// bazel-out/
|
|
825
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
826
826
|
var TypeModifier;
|
|
827
827
|
(function(TypeModifier2) {
|
|
828
828
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1781,7 +1781,7 @@ function serializeTags(tags) {
|
|
|
1781
1781
|
return out;
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
|
-
// bazel-out/
|
|
1784
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1785
1785
|
var CONSTANT_PREFIX = "_c";
|
|
1786
1786
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1787
1787
|
var KEY_CONTEXT = {};
|
|
@@ -1964,7 +1964,7 @@ function isLongStringLiteral(expr) {
|
|
|
1964
1964
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
1965
1965
|
}
|
|
1966
1966
|
|
|
1967
|
-
// bazel-out/
|
|
1967
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
1968
1968
|
var CORE = "@angular/core";
|
|
1969
1969
|
var _Identifiers = class {
|
|
1970
1970
|
};
|
|
@@ -2609,7 +2609,7 @@ var Identifiers = _Identifiers;
|
|
|
2609
2609
|
_Identifiers.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
|
|
2610
2610
|
})();
|
|
2611
2611
|
|
|
2612
|
-
// bazel-out/
|
|
2612
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2613
2613
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2614
2614
|
function dashCaseToCamelCase(input) {
|
|
2615
2615
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2697,7 +2697,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2697
2697
|
return [truthy, falsy];
|
|
2698
2698
|
}
|
|
2699
2699
|
|
|
2700
|
-
// bazel-out/
|
|
2700
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2701
2701
|
var VERSION = 3;
|
|
2702
2702
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2703
2703
|
var SourceMapGenerator = class {
|
|
@@ -2826,7 +2826,7 @@ function toBase64Digit(value) {
|
|
|
2826
2826
|
return B64_DIGITS[value];
|
|
2827
2827
|
}
|
|
2828
2828
|
|
|
2829
|
-
// bazel-out/
|
|
2829
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2830
2830
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2831
2831
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2832
2832
|
var _INDENT_WITH = " ";
|
|
@@ -3314,7 +3314,7 @@ function _createIndent(count) {
|
|
|
3314
3314
|
return res;
|
|
3315
3315
|
}
|
|
3316
3316
|
|
|
3317
|
-
// bazel-out/
|
|
3317
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3318
3318
|
function typeWithParameters(type, numParams) {
|
|
3319
3319
|
if (numParams === 0) {
|
|
3320
3320
|
return expressionType(type);
|
|
@@ -3379,7 +3379,7 @@ function generateForwardRef(expr) {
|
|
|
3379
3379
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3380
3380
|
}
|
|
3381
3381
|
|
|
3382
|
-
// bazel-out/
|
|
3382
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3383
3383
|
var R3FactoryDelegateType;
|
|
3384
3384
|
(function(R3FactoryDelegateType2) {
|
|
3385
3385
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3524,7 +3524,7 @@ function getInjectFn(target) {
|
|
|
3524
3524
|
}
|
|
3525
3525
|
}
|
|
3526
3526
|
|
|
3527
|
-
// bazel-out/
|
|
3527
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
3528
3528
|
var TagContentType;
|
|
3529
3529
|
(function(TagContentType2) {
|
|
3530
3530
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -3561,7 +3561,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
3561
3561
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
3562
3562
|
}
|
|
3563
3563
|
|
|
3564
|
-
// bazel-out/
|
|
3564
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3565
3565
|
var Comment = class {
|
|
3566
3566
|
constructor(value, sourceSpan) {
|
|
3567
3567
|
this.value = value;
|
|
@@ -3942,7 +3942,7 @@ function visitAll(visitor, nodes) {
|
|
|
3942
3942
|
return result;
|
|
3943
3943
|
}
|
|
3944
3944
|
|
|
3945
|
-
// bazel-out/
|
|
3945
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3946
3946
|
var Message = class {
|
|
3947
3947
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3948
3948
|
this.nodes = nodes;
|
|
@@ -4080,7 +4080,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4080
4080
|
}
|
|
4081
4081
|
};
|
|
4082
4082
|
|
|
4083
|
-
// bazel-out/
|
|
4083
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4084
4084
|
var _Visitor = class {
|
|
4085
4085
|
visitTag(tag) {
|
|
4086
4086
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4108,12 +4108,12 @@ ${doctype.dtd}
|
|
|
4108
4108
|
};
|
|
4109
4109
|
var _visitor = new _Visitor();
|
|
4110
4110
|
|
|
4111
|
-
// bazel-out/
|
|
4111
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4112
4112
|
function toPublicName(internalName) {
|
|
4113
4113
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4114
4114
|
}
|
|
4115
4115
|
|
|
4116
|
-
// bazel-out/
|
|
4116
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4117
4117
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4118
4118
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4119
4119
|
var I18N_ATTR = "i18n";
|
|
@@ -4215,7 +4215,7 @@ function declareI18nVariable(variable2) {
|
|
|
4215
4215
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
|
-
// bazel-out/
|
|
4218
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4219
4219
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4220
4220
|
var TEMPORARY_NAME = "_t";
|
|
4221
4221
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4477,7 +4477,7 @@ function getInstructionStatements(instructions) {
|
|
|
4477
4477
|
return statements;
|
|
4478
4478
|
}
|
|
4479
4479
|
|
|
4480
|
-
// bazel-out/
|
|
4480
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4481
4481
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4482
4482
|
let result = null;
|
|
4483
4483
|
const factoryMeta = {
|
|
@@ -4562,7 +4562,7 @@ function createFactoryFunction(type) {
|
|
|
4562
4562
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
4563
4563
|
}
|
|
4564
4564
|
|
|
4565
|
-
// bazel-out/
|
|
4565
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4566
4566
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4567
4567
|
/^\s*$/,
|
|
4568
4568
|
/[<>]/,
|
|
@@ -4584,7 +4584,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
4586
|
|
|
4587
|
-
// bazel-out/
|
|
4587
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
|
|
4588
4588
|
var InterpolationConfig = class {
|
|
4589
4589
|
static fromArray(markers) {
|
|
4590
4590
|
if (!markers) {
|
|
@@ -4601,7 +4601,7 @@ var InterpolationConfig = class {
|
|
|
4601
4601
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4602
4602
|
var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
|
|
4603
4603
|
|
|
4604
|
-
// bazel-out/
|
|
4604
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4605
4605
|
var $EOF = 0;
|
|
4606
4606
|
var $BSPACE = 8;
|
|
4607
4607
|
var $TAB = 9;
|
|
@@ -4683,7 +4683,7 @@ function isQuote(code) {
|
|
|
4683
4683
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4684
4684
|
}
|
|
4685
4685
|
|
|
4686
|
-
// bazel-out/
|
|
4686
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4687
4687
|
var ParseLocation = class {
|
|
4688
4688
|
constructor(file, offset, line, col) {
|
|
4689
4689
|
this.file = file;
|
|
@@ -4830,7 +4830,7 @@ function sanitizeIdentifier(name) {
|
|
|
4830
4830
|
return name.replace(/\W/g, "_");
|
|
4831
4831
|
}
|
|
4832
4832
|
|
|
4833
|
-
// bazel-out/
|
|
4833
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4834
4834
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4835
4835
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4836
4836
|
constructor() {
|
|
@@ -4923,7 +4923,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4923
4923
|
}
|
|
4924
4924
|
};
|
|
4925
4925
|
|
|
4926
|
-
// bazel-out/
|
|
4926
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4927
4927
|
var policy;
|
|
4928
4928
|
function getPolicy() {
|
|
4929
4929
|
if (policy === void 0) {
|
|
@@ -4961,7 +4961,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4961
4961
|
return fn2.bind(_global);
|
|
4962
4962
|
}
|
|
4963
4963
|
|
|
4964
|
-
// bazel-out/
|
|
4964
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4965
4965
|
var JitEvaluator = class {
|
|
4966
4966
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4967
4967
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5052,7 +5052,7 @@ function isUseStrictStatement(statement) {
|
|
|
5052
5052
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5053
5053
|
}
|
|
5054
5054
|
|
|
5055
|
-
// bazel-out/
|
|
5055
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5056
5056
|
function compileInjector(meta) {
|
|
5057
5057
|
const definitionMap = new DefinitionMap();
|
|
5058
5058
|
if (meta.providers !== null) {
|
|
@@ -5069,7 +5069,7 @@ function createInjectorType(meta) {
|
|
|
5069
5069
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5070
5070
|
}
|
|
5071
5071
|
|
|
5072
|
-
// bazel-out/
|
|
5072
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5073
5073
|
var R3JitReflector = class {
|
|
5074
5074
|
constructor(context) {
|
|
5075
5075
|
this.context = context;
|
|
@@ -5085,7 +5085,7 @@ var R3JitReflector = class {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
};
|
|
5087
5087
|
|
|
5088
|
-
// bazel-out/
|
|
5088
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5089
5089
|
var R3SelectorScopeMode;
|
|
5090
5090
|
(function(R3SelectorScopeMode2) {
|
|
5091
5091
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5226,7 +5226,7 @@ function tupleOfTypes(types) {
|
|
|
5226
5226
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5227
5227
|
}
|
|
5228
5228
|
|
|
5229
|
-
// bazel-out/
|
|
5229
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5230
5230
|
function compilePipeFromMetadata(metadata) {
|
|
5231
5231
|
const definitionMapValues = [];
|
|
5232
5232
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5247,7 +5247,7 @@ function createPipeType(metadata) {
|
|
|
5247
5247
|
]));
|
|
5248
5248
|
}
|
|
5249
5249
|
|
|
5250
|
-
// bazel-out/
|
|
5250
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5251
5251
|
var R3TemplateDependencyKind;
|
|
5252
5252
|
(function(R3TemplateDependencyKind2) {
|
|
5253
5253
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5255,7 +5255,7 @@ var R3TemplateDependencyKind;
|
|
|
5255
5255
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5256
5256
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5257
5257
|
|
|
5258
|
-
// bazel-out/
|
|
5258
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5259
5259
|
var ParserError = class {
|
|
5260
5260
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5261
5261
|
this.input = input;
|
|
@@ -5921,7 +5921,7 @@ var BoundElementProperty = class {
|
|
|
5921
5921
|
}
|
|
5922
5922
|
};
|
|
5923
5923
|
|
|
5924
|
-
// bazel-out/
|
|
5924
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5925
5925
|
var _EventHandlerVars = class {
|
|
5926
5926
|
};
|
|
5927
5927
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6562,7 +6562,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6562
6562
|
}
|
|
6563
6563
|
};
|
|
6564
6564
|
|
|
6565
|
-
// bazel-out/
|
|
6565
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6566
6566
|
var _SECURITY_SCHEMA;
|
|
6567
6567
|
function SECURITY_SCHEMA() {
|
|
6568
6568
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6620,7 +6620,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6620
6620
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6621
6621
|
}
|
|
6622
6622
|
|
|
6623
|
-
// bazel-out/
|
|
6623
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6624
6624
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6625
6625
|
"inherit",
|
|
6626
6626
|
"initial",
|
|
@@ -7091,7 +7091,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7091
7091
|
}
|
|
7092
7092
|
}
|
|
7093
7093
|
|
|
7094
|
-
// bazel-out/
|
|
7094
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7095
7095
|
var OpKind;
|
|
7096
7096
|
(function(OpKind2) {
|
|
7097
7097
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7250,7 +7250,7 @@ var TemplateKind;
|
|
|
7250
7250
|
TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
|
|
7251
7251
|
})(TemplateKind || (TemplateKind = {}));
|
|
7252
7252
|
|
|
7253
|
-
// bazel-out/
|
|
7253
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7254
7254
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7255
7255
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7256
7256
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -7282,7 +7282,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
7282
7282
|
return expr[UsesVarOffset] === true;
|
|
7283
7283
|
}
|
|
7284
7284
|
|
|
7285
|
-
// bazel-out/
|
|
7285
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7286
7286
|
function createStatementOp(statement) {
|
|
7287
7287
|
return __spreadValues({
|
|
7288
7288
|
kind: OpKind.Statement,
|
|
@@ -7304,7 +7304,7 @@ var NEW_OP = {
|
|
|
7304
7304
|
next: null
|
|
7305
7305
|
};
|
|
7306
7306
|
|
|
7307
|
-
// bazel-out/
|
|
7307
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
7308
7308
|
function createInterpolateTextOp(xref, interpolation, sourceSpan) {
|
|
7309
7309
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
7310
7310
|
kind: OpKind.InterpolateText,
|
|
@@ -7470,7 +7470,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
|
|
|
7470
7470
|
}, NEW_OP);
|
|
7471
7471
|
}
|
|
7472
7472
|
|
|
7473
|
-
// bazel-out/
|
|
7473
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7474
7474
|
var _a;
|
|
7475
7475
|
var _b;
|
|
7476
7476
|
var _c;
|
|
@@ -8302,7 +8302,7 @@ function isStringLiteral(expr) {
|
|
|
8302
8302
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
8303
8303
|
}
|
|
8304
8304
|
|
|
8305
|
-
// bazel-out/
|
|
8305
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8306
8306
|
var _OpList = class {
|
|
8307
8307
|
constructor() {
|
|
8308
8308
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8493,14 +8493,14 @@ var OpList = _OpList;
|
|
|
8493
8493
|
_OpList.nextListId = 0;
|
|
8494
8494
|
})();
|
|
8495
8495
|
|
|
8496
|
-
// bazel-out/
|
|
8496
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
8497
8497
|
var SlotHandle = class {
|
|
8498
8498
|
constructor() {
|
|
8499
8499
|
this.slot = null;
|
|
8500
8500
|
}
|
|
8501
8501
|
};
|
|
8502
8502
|
|
|
8503
|
-
// bazel-out/
|
|
8503
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8504
8504
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8505
8505
|
OpKind.Element,
|
|
8506
8506
|
OpKind.ElementStart,
|
|
@@ -8787,7 +8787,7 @@ function createI18nAttributesOp(xref, handle, target) {
|
|
|
8787
8787
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8788
8788
|
}
|
|
8789
8789
|
|
|
8790
|
-
// bazel-out/
|
|
8790
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
8791
8791
|
function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
|
|
8792
8792
|
return __spreadValues(__spreadValues({
|
|
8793
8793
|
kind: OpKind.HostProperty,
|
|
@@ -8801,10 +8801,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
|
|
|
8801
8801
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8802
8802
|
}
|
|
8803
8803
|
|
|
8804
|
-
// bazel-out/
|
|
8804
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
8805
8805
|
var CTX_REF = "CTX_REF_MARKER";
|
|
8806
8806
|
|
|
8807
|
-
// bazel-out/
|
|
8807
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8808
8808
|
var CompilationJobKind;
|
|
8809
8809
|
(function(CompilationJobKind2) {
|
|
8810
8810
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -8911,7 +8911,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
8911
8911
|
}
|
|
8912
8912
|
};
|
|
8913
8913
|
|
|
8914
|
-
// bazel-out/
|
|
8914
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
8915
8915
|
function deleteAnyCasts(job) {
|
|
8916
8916
|
for (const unit of job.units) {
|
|
8917
8917
|
for (const op of unit.ops()) {
|
|
@@ -8929,7 +8929,7 @@ function removeAnys(e) {
|
|
|
8929
8929
|
return e;
|
|
8930
8930
|
}
|
|
8931
8931
|
|
|
8932
|
-
// bazel-out/
|
|
8932
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
8933
8933
|
function applyI18nExpressions(job) {
|
|
8934
8934
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
8935
8935
|
for (const unit of job.units) {
|
|
@@ -8972,7 +8972,7 @@ function needsApplication(i18nContexts, op) {
|
|
|
8972
8972
|
return false;
|
|
8973
8973
|
}
|
|
8974
8974
|
|
|
8975
|
-
// bazel-out/
|
|
8975
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
8976
8976
|
function assignI18nSlotDependencies(job) {
|
|
8977
8977
|
for (const unit of job.units) {
|
|
8978
8978
|
let updateOp = unit.update.head;
|
|
@@ -9017,7 +9017,7 @@ function assignI18nSlotDependencies(job) {
|
|
|
9017
9017
|
}
|
|
9018
9018
|
}
|
|
9019
9019
|
|
|
9020
|
-
// bazel-out/
|
|
9020
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
9021
9021
|
function createOpXrefMap(unit) {
|
|
9022
9022
|
const map = /* @__PURE__ */ new Map();
|
|
9023
9023
|
for (const op of unit.create) {
|
|
@@ -9032,7 +9032,7 @@ function createOpXrefMap(unit) {
|
|
|
9032
9032
|
return map;
|
|
9033
9033
|
}
|
|
9034
9034
|
|
|
9035
|
-
// bazel-out/
|
|
9035
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
9036
9036
|
function extractAttributes(job) {
|
|
9037
9037
|
for (const unit of job.units) {
|
|
9038
9038
|
const elements = createOpXrefMap(unit);
|
|
@@ -9134,7 +9134,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
9134
9134
|
}
|
|
9135
9135
|
}
|
|
9136
9136
|
|
|
9137
|
-
// bazel-out/
|
|
9137
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
9138
9138
|
function lookupElement2(elements, xref) {
|
|
9139
9139
|
const el = elements.get(xref);
|
|
9140
9140
|
if (el === void 0) {
|
|
@@ -9185,7 +9185,7 @@ function specializeBindings(job) {
|
|
|
9185
9185
|
}
|
|
9186
9186
|
}
|
|
9187
9187
|
|
|
9188
|
-
// bazel-out/
|
|
9188
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
9189
9189
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
9190
9190
|
Identifiers.attribute,
|
|
9191
9191
|
Identifiers.classProp,
|
|
@@ -9251,7 +9251,7 @@ function chainOperationsInList(opList) {
|
|
|
9251
9251
|
}
|
|
9252
9252
|
}
|
|
9253
9253
|
|
|
9254
|
-
// bazel-out/
|
|
9254
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9255
9255
|
function collapseSingletonInterpolations(job) {
|
|
9256
9256
|
for (const unit of job.units) {
|
|
9257
9257
|
for (const op of unit.update) {
|
|
@@ -9263,7 +9263,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
9263
9263
|
}
|
|
9264
9264
|
}
|
|
9265
9265
|
|
|
9266
|
-
// bazel-out/
|
|
9266
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9267
9267
|
function generateConditionalExpressions(job) {
|
|
9268
9268
|
for (const unit of job.units) {
|
|
9269
9269
|
for (const op of unit.ops()) {
|
|
@@ -9300,7 +9300,7 @@ function generateConditionalExpressions(job) {
|
|
|
9300
9300
|
}
|
|
9301
9301
|
}
|
|
9302
9302
|
|
|
9303
|
-
// bazel-out/
|
|
9303
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9304
9304
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9305
9305
|
["&&", BinaryOperator.And],
|
|
9306
9306
|
[">", BinaryOperator.Bigger],
|
|
@@ -9351,7 +9351,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9351
9351
|
return literal(value);
|
|
9352
9352
|
}
|
|
9353
9353
|
|
|
9354
|
-
// bazel-out/
|
|
9354
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9355
9355
|
function collectElementConsts(job) {
|
|
9356
9356
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9357
9357
|
for (const unit of job.units) {
|
|
@@ -9513,7 +9513,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
9513
9513
|
return literalArr(attrArray);
|
|
9514
9514
|
}
|
|
9515
9515
|
|
|
9516
|
-
// bazel-out/
|
|
9516
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
|
|
9517
9517
|
function convertI18nBindings(job) {
|
|
9518
9518
|
const i18nAttributesByElem = /* @__PURE__ */ new Map();
|
|
9519
9519
|
for (const unit of job.units) {
|
|
@@ -9554,7 +9554,7 @@ function convertI18nBindings(job) {
|
|
|
9554
9554
|
}
|
|
9555
9555
|
}
|
|
9556
9556
|
|
|
9557
|
-
// bazel-out/
|
|
9557
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
|
|
9558
9558
|
function createDeferDepsFns(job) {
|
|
9559
9559
|
for (const unit of job.units) {
|
|
9560
9560
|
for (const op of unit.create) {
|
|
@@ -9586,7 +9586,7 @@ function createDeferDepsFns(job) {
|
|
|
9586
9586
|
}
|
|
9587
9587
|
}
|
|
9588
9588
|
|
|
9589
|
-
// bazel-out/
|
|
9589
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
9590
9590
|
function createI18nContexts(job) {
|
|
9591
9591
|
const attrContextByMessage = /* @__PURE__ */ new Map();
|
|
9592
9592
|
for (const unit of job.units) {
|
|
@@ -9664,7 +9664,7 @@ function createI18nContexts(job) {
|
|
|
9664
9664
|
}
|
|
9665
9665
|
}
|
|
9666
9666
|
|
|
9667
|
-
// bazel-out/
|
|
9667
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
|
|
9668
9668
|
function deduplicateTextBindings(job) {
|
|
9669
9669
|
const seen = /* @__PURE__ */ new Map();
|
|
9670
9670
|
for (const unit of job.units) {
|
|
@@ -9686,7 +9686,7 @@ function deduplicateTextBindings(job) {
|
|
|
9686
9686
|
}
|
|
9687
9687
|
}
|
|
9688
9688
|
|
|
9689
|
-
// bazel-out/
|
|
9689
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
9690
9690
|
function configureDeferInstructions(job) {
|
|
9691
9691
|
for (const unit of job.units) {
|
|
9692
9692
|
for (const op of unit.create) {
|
|
@@ -9703,7 +9703,7 @@ function configureDeferInstructions(job) {
|
|
|
9703
9703
|
}
|
|
9704
9704
|
}
|
|
9705
9705
|
|
|
9706
|
-
// bazel-out/
|
|
9706
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
9707
9707
|
function resolveDeferTargetNames(job) {
|
|
9708
9708
|
const scopes = /* @__PURE__ */ new Map();
|
|
9709
9709
|
function getScopeForView2(view) {
|
|
@@ -9797,7 +9797,7 @@ var Scope = class {
|
|
|
9797
9797
|
}
|
|
9798
9798
|
};
|
|
9799
9799
|
|
|
9800
|
-
// bazel-out/
|
|
9800
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
9801
9801
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
9802
9802
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
9803
9803
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -9824,7 +9824,7 @@ function collapseEmptyInstructions(job) {
|
|
|
9824
9824
|
}
|
|
9825
9825
|
}
|
|
9826
9826
|
|
|
9827
|
-
// bazel-out/
|
|
9827
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9828
9828
|
function expandSafeReads(job) {
|
|
9829
9829
|
for (const unit of job.units) {
|
|
9830
9830
|
for (const op of unit.ops()) {
|
|
@@ -9960,7 +9960,7 @@ function ternaryTransform(e) {
|
|
|
9960
9960
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9961
9961
|
}
|
|
9962
9962
|
|
|
9963
|
-
// bazel-out/
|
|
9963
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
9964
9964
|
var ESCAPE = "\uFFFD";
|
|
9965
9965
|
var ELEMENT_MARKER = "#";
|
|
9966
9966
|
var TEMPLATE_MARKER = "*";
|
|
@@ -10096,7 +10096,7 @@ function formatValue(value) {
|
|
|
10096
10096
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
10097
10097
|
}
|
|
10098
10098
|
|
|
10099
|
-
// bazel-out/
|
|
10099
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
10100
10100
|
function generateAdvance(job) {
|
|
10101
10101
|
for (const unit of job.units) {
|
|
10102
10102
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -10128,7 +10128,7 @@ function generateAdvance(job) {
|
|
|
10128
10128
|
}
|
|
10129
10129
|
}
|
|
10130
10130
|
|
|
10131
|
-
// bazel-out/
|
|
10131
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
10132
10132
|
function generateProjectionDefs(job) {
|
|
10133
10133
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
10134
10134
|
const selectors = [];
|
|
@@ -10152,7 +10152,7 @@ function generateProjectionDefs(job) {
|
|
|
10152
10152
|
}
|
|
10153
10153
|
}
|
|
10154
10154
|
|
|
10155
|
-
// bazel-out/
|
|
10155
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
10156
10156
|
function generateVariables(job) {
|
|
10157
10157
|
recursivelyProcessView(job.root, null);
|
|
10158
10158
|
}
|
|
@@ -10245,7 +10245,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
10245
10245
|
return newOps;
|
|
10246
10246
|
}
|
|
10247
10247
|
|
|
10248
|
-
// bazel-out/
|
|
10248
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
10249
10249
|
function collectConstExpressions(job) {
|
|
10250
10250
|
for (const unit of job.units) {
|
|
10251
10251
|
for (const op of unit.ops()) {
|
|
@@ -10259,7 +10259,7 @@ function collectConstExpressions(job) {
|
|
|
10259
10259
|
}
|
|
10260
10260
|
}
|
|
10261
10261
|
|
|
10262
|
-
// bazel-out/
|
|
10262
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
10263
10263
|
var STYLE_DOT = "style.";
|
|
10264
10264
|
var CLASS_DOT = "class.";
|
|
10265
10265
|
var STYLE_BANG = "style!";
|
|
@@ -10317,7 +10317,7 @@ function parseProperty(name) {
|
|
|
10317
10317
|
return { property: property2, suffix };
|
|
10318
10318
|
}
|
|
10319
10319
|
|
|
10320
|
-
// bazel-out/
|
|
10320
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
10321
10321
|
function mapLiteral(obj, quoted = false) {
|
|
10322
10322
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
10323
10323
|
key,
|
|
@@ -10326,7 +10326,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
10326
10326
|
})));
|
|
10327
10327
|
}
|
|
10328
10328
|
|
|
10329
|
-
// bazel-out/
|
|
10329
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
10330
10330
|
var IcuSerializerVisitor = class {
|
|
10331
10331
|
visitText(text2) {
|
|
10332
10332
|
return text2.value;
|
|
@@ -10360,7 +10360,7 @@ function serializeIcuNode(icu) {
|
|
|
10360
10360
|
return icu.visit(serializer);
|
|
10361
10361
|
}
|
|
10362
10362
|
|
|
10363
|
-
// bazel-out/
|
|
10363
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10364
10364
|
var TokenType;
|
|
10365
10365
|
(function(TokenType2) {
|
|
10366
10366
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10721,7 +10721,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10721
10721
|
return result;
|
|
10722
10722
|
}
|
|
10723
10723
|
|
|
10724
|
-
// bazel-out/
|
|
10724
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10725
10725
|
var SplitInterpolation = class {
|
|
10726
10726
|
constructor(strings, expressions, offsets) {
|
|
10727
10727
|
this.strings = strings;
|
|
@@ -11615,7 +11615,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11615
11615
|
return offsetMap;
|
|
11616
11616
|
}
|
|
11617
11617
|
|
|
11618
|
-
// bazel-out/
|
|
11618
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11619
11619
|
var NodeWithI18n = class {
|
|
11620
11620
|
constructor(sourceSpan, i18n2) {
|
|
11621
11621
|
this.sourceSpan = sourceSpan;
|
|
@@ -11767,11 +11767,11 @@ var RecursiveVisitor = class {
|
|
|
11767
11767
|
}
|
|
11768
11768
|
};
|
|
11769
11769
|
|
|
11770
|
-
// bazel-out/
|
|
11770
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11771
11771
|
var ElementSchemaRegistry = class {
|
|
11772
11772
|
};
|
|
11773
11773
|
|
|
11774
|
-
// bazel-out/
|
|
11774
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11775
11775
|
var BOOLEAN = "boolean";
|
|
11776
11776
|
var NUMBER = "number";
|
|
11777
11777
|
var STRING = "string";
|
|
@@ -12124,7 +12124,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
12124
12124
|
}
|
|
12125
12125
|
}
|
|
12126
12126
|
|
|
12127
|
-
// bazel-out/
|
|
12127
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
12128
12128
|
var HtmlTagDefinition = class {
|
|
12129
12129
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
12130
12130
|
this.closedByChildren = {};
|
|
@@ -12242,7 +12242,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
12242
12242
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
12243
12243
|
}
|
|
12244
12244
|
|
|
12245
|
-
// bazel-out/
|
|
12245
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
12246
12246
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
12247
12247
|
"A": "LINK",
|
|
12248
12248
|
"B": "BOLD_TEXT",
|
|
@@ -12364,7 +12364,7 @@ var PlaceholderRegistry = class {
|
|
|
12364
12364
|
}
|
|
12365
12365
|
};
|
|
12366
12366
|
|
|
12367
|
-
// bazel-out/
|
|
12367
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
12368
12368
|
var _expParser = new Parser(new Lexer());
|
|
12369
12369
|
function createI18nMessageFactory(interpolationConfig, containerBlocks) {
|
|
12370
12370
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
|
|
@@ -12543,14 +12543,14 @@ function extractPlaceholderName(input) {
|
|
|
12543
12543
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12544
12544
|
}
|
|
12545
12545
|
|
|
12546
|
-
// bazel-out/
|
|
12546
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12547
12547
|
var I18nError = class extends ParseError {
|
|
12548
12548
|
constructor(span, msg) {
|
|
12549
12549
|
super(span, msg);
|
|
12550
12550
|
}
|
|
12551
12551
|
};
|
|
12552
12552
|
|
|
12553
|
-
// bazel-out/
|
|
12553
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12554
12554
|
var NAMED_ENTITIES = {
|
|
12555
12555
|
"AElig": "\xC6",
|
|
12556
12556
|
"AMP": "&",
|
|
@@ -14681,7 +14681,7 @@ var NAMED_ENTITIES = {
|
|
|
14681
14681
|
var NGSP_UNICODE = "\uE500";
|
|
14682
14682
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14683
14683
|
|
|
14684
|
-
// bazel-out/
|
|
14684
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14685
14685
|
var TokenError = class extends ParseError {
|
|
14686
14686
|
constructor(errorMsg, tokenType, span) {
|
|
14687
14687
|
super(span, errorMsg);
|
|
@@ -15602,7 +15602,7 @@ var CursorError = class {
|
|
|
15602
15602
|
}
|
|
15603
15603
|
};
|
|
15604
15604
|
|
|
15605
|
-
// bazel-out/
|
|
15605
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15606
15606
|
var TreeError = class extends ParseError {
|
|
15607
15607
|
static create(elementName, span, msg) {
|
|
15608
15608
|
return new TreeError(elementName, span, msg);
|
|
@@ -15986,7 +15986,7 @@ function decodeEntity(match, entity) {
|
|
|
15986
15986
|
return match;
|
|
15987
15987
|
}
|
|
15988
15988
|
|
|
15989
|
-
// bazel-out/
|
|
15989
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15990
15990
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15991
15991
|
"iframe|srcdoc",
|
|
15992
15992
|
"*|innerhtml",
|
|
@@ -16001,7 +16001,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
16001
16001
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
16002
16002
|
}
|
|
16003
16003
|
|
|
16004
|
-
// bazel-out/
|
|
16004
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
16005
16005
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
16006
16006
|
if (htmlNode instanceof NodeWithI18n) {
|
|
16007
16007
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16158,7 +16158,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16158
16158
|
return jsDocComment(tags);
|
|
16159
16159
|
}
|
|
16160
16160
|
|
|
16161
|
-
// bazel-out/
|
|
16161
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16162
16162
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16163
16163
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16164
16164
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16209,7 +16209,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16209
16209
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16210
16210
|
}
|
|
16211
16211
|
|
|
16212
|
-
// bazel-out/
|
|
16212
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16213
16213
|
function createLocalizeStatements(variable2, message, params) {
|
|
16214
16214
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16215
16215
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16298,7 +16298,7 @@ function createEmptyMessagePart(location) {
|
|
|
16298
16298
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16299
16299
|
}
|
|
16300
16300
|
|
|
16301
|
-
// bazel-out/
|
|
16301
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
16302
16302
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
16303
16303
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
16304
16304
|
var I18N_ICU_MAPPING_PREFIX2 = "I18N_EXP_";
|
|
@@ -16459,7 +16459,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
16459
16459
|
return variable(name);
|
|
16460
16460
|
}
|
|
16461
16461
|
|
|
16462
|
-
// bazel-out/
|
|
16462
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16463
16463
|
function convertI18nText(job) {
|
|
16464
16464
|
var _a2, _b2, _c2;
|
|
16465
16465
|
for (const unit of job.units) {
|
|
@@ -16529,7 +16529,7 @@ function convertI18nText(job) {
|
|
|
16529
16529
|
}
|
|
16530
16530
|
}
|
|
16531
16531
|
|
|
16532
|
-
// bazel-out/
|
|
16532
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16533
16533
|
function liftLocalRefs(job) {
|
|
16534
16534
|
for (const unit of job.units) {
|
|
16535
16535
|
for (const op of unit.create) {
|
|
@@ -16559,7 +16559,7 @@ function serializeLocalRefs(refs) {
|
|
|
16559
16559
|
return literalArr(constRefs);
|
|
16560
16560
|
}
|
|
16561
16561
|
|
|
16562
|
-
// bazel-out/
|
|
16562
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16563
16563
|
function emitNamespaceChanges(job) {
|
|
16564
16564
|
for (const unit of job.units) {
|
|
16565
16565
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16575,7 +16575,7 @@ function emitNamespaceChanges(job) {
|
|
|
16575
16575
|
}
|
|
16576
16576
|
}
|
|
16577
16577
|
|
|
16578
|
-
// bazel-out/
|
|
16578
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16579
16579
|
function parse(value) {
|
|
16580
16580
|
const styles = [];
|
|
16581
16581
|
let i = 0;
|
|
@@ -16636,7 +16636,7 @@ function hyphenate2(value) {
|
|
|
16636
16636
|
}).toLowerCase();
|
|
16637
16637
|
}
|
|
16638
16638
|
|
|
16639
|
-
// bazel-out/
|
|
16639
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16640
16640
|
function nameFunctionsAndVariables(job) {
|
|
16641
16641
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16642
16642
|
}
|
|
@@ -16756,7 +16756,7 @@ function stripImportant(name) {
|
|
|
16756
16756
|
return name;
|
|
16757
16757
|
}
|
|
16758
16758
|
|
|
16759
|
-
// bazel-out/
|
|
16759
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16760
16760
|
function mergeNextContextExpressions(job) {
|
|
16761
16761
|
for (const unit of job.units) {
|
|
16762
16762
|
for (const op of unit.create) {
|
|
@@ -16802,7 +16802,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16802
16802
|
}
|
|
16803
16803
|
}
|
|
16804
16804
|
|
|
16805
|
-
// bazel-out/
|
|
16805
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16806
16806
|
var CONTAINER_TAG = "ng-container";
|
|
16807
16807
|
function generateNgContainerOps(job) {
|
|
16808
16808
|
for (const unit of job.units) {
|
|
@@ -16819,7 +16819,7 @@ function generateNgContainerOps(job) {
|
|
|
16819
16819
|
}
|
|
16820
16820
|
}
|
|
16821
16821
|
|
|
16822
|
-
// bazel-out/
|
|
16822
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16823
16823
|
function lookupElement3(elements, xref) {
|
|
16824
16824
|
const el = elements.get(xref);
|
|
16825
16825
|
if (el === void 0) {
|
|
@@ -16849,7 +16849,7 @@ function disableBindings(job) {
|
|
|
16849
16849
|
}
|
|
16850
16850
|
}
|
|
16851
16851
|
|
|
16852
|
-
// bazel-out/
|
|
16852
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16853
16853
|
function generateNullishCoalesceExpressions(job) {
|
|
16854
16854
|
for (const unit of job.units) {
|
|
16855
16855
|
for (const op of unit.ops()) {
|
|
@@ -16865,7 +16865,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
16865
16865
|
}
|
|
16866
16866
|
}
|
|
16867
16867
|
|
|
16868
|
-
// bazel-out/
|
|
16868
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16869
16869
|
function kindTest(kind) {
|
|
16870
16870
|
return (op) => op.kind === kind;
|
|
16871
16871
|
}
|
|
@@ -16947,7 +16947,7 @@ function keepLast(ops) {
|
|
|
16947
16947
|
return ops.slice(ops.length - 1);
|
|
16948
16948
|
}
|
|
16949
16949
|
|
|
16950
|
-
// bazel-out/
|
|
16950
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
16951
16951
|
function parseExtractedStyles(job) {
|
|
16952
16952
|
const elements = /* @__PURE__ */ new Map();
|
|
16953
16953
|
for (const unit of job.units) {
|
|
@@ -16982,7 +16982,7 @@ function parseExtractedStyles(job) {
|
|
|
16982
16982
|
}
|
|
16983
16983
|
}
|
|
16984
16984
|
|
|
16985
|
-
// bazel-out/
|
|
16985
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16986
16986
|
function removeContentSelectors(job) {
|
|
16987
16987
|
for (const unit of job.units) {
|
|
16988
16988
|
const elements = createOpXrefMap(unit);
|
|
@@ -17009,7 +17009,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
17009
17009
|
return el;
|
|
17010
17010
|
}
|
|
17011
17011
|
|
|
17012
|
-
// bazel-out/
|
|
17012
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
17013
17013
|
function createPipes(job) {
|
|
17014
17014
|
for (const unit of job.units) {
|
|
17015
17015
|
processPipeBindingsInView(unit);
|
|
@@ -17057,7 +17057,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
17057
17057
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
17058
17058
|
}
|
|
17059
17059
|
|
|
17060
|
-
// bazel-out/
|
|
17060
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
17061
17061
|
function createVariadicPipes(job) {
|
|
17062
17062
|
for (const unit of job.units) {
|
|
17063
17063
|
for (const op of unit.update) {
|
|
@@ -17074,7 +17074,7 @@ function createVariadicPipes(job) {
|
|
|
17074
17074
|
}
|
|
17075
17075
|
}
|
|
17076
17076
|
|
|
17077
|
-
// bazel-out/
|
|
17077
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
17078
17078
|
function propagateI18nBlocks(job) {
|
|
17079
17079
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
17080
17080
|
}
|
|
@@ -17128,7 +17128,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
17128
17128
|
}
|
|
17129
17129
|
}
|
|
17130
17130
|
|
|
17131
|
-
// bazel-out/
|
|
17131
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
17132
17132
|
function extractPureFunctions(job) {
|
|
17133
17133
|
for (const view of job.units) {
|
|
17134
17134
|
for (const op of view.ops()) {
|
|
@@ -17170,7 +17170,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
17170
17170
|
}
|
|
17171
17171
|
};
|
|
17172
17172
|
|
|
17173
|
-
// bazel-out/
|
|
17173
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
17174
17174
|
function generatePureLiteralStructures(job) {
|
|
17175
17175
|
for (const unit of job.units) {
|
|
17176
17176
|
for (const op of unit.update) {
|
|
@@ -17217,7 +17217,7 @@ function transformLiteralMap(expr) {
|
|
|
17217
17217
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
17218
17218
|
}
|
|
17219
17219
|
|
|
17220
|
-
// bazel-out/
|
|
17220
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
17221
17221
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
17222
17222
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
17223
17223
|
}
|
|
@@ -17739,7 +17739,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17739
17739
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17740
17740
|
}
|
|
17741
17741
|
|
|
17742
|
-
// bazel-out/
|
|
17742
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17743
17743
|
var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
|
|
17744
17744
|
["window", Identifiers.resolveWindow],
|
|
17745
17745
|
["document", Identifiers.resolveDocument],
|
|
@@ -18072,7 +18072,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
18072
18072
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
18073
18073
|
}
|
|
18074
18074
|
|
|
18075
|
-
// bazel-out/
|
|
18075
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
18076
18076
|
function removeEmptyBindings(job) {
|
|
18077
18077
|
for (const unit of job.units) {
|
|
18078
18078
|
for (const op of unit.update) {
|
|
@@ -18093,7 +18093,7 @@ function removeEmptyBindings(job) {
|
|
|
18093
18093
|
}
|
|
18094
18094
|
}
|
|
18095
18095
|
|
|
18096
|
-
// bazel-out/
|
|
18096
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
18097
18097
|
function removeI18nContexts(job) {
|
|
18098
18098
|
for (const unit of job.units) {
|
|
18099
18099
|
for (const op of unit.create) {
|
|
@@ -18109,7 +18109,7 @@ function removeI18nContexts(job) {
|
|
|
18109
18109
|
}
|
|
18110
18110
|
}
|
|
18111
18111
|
|
|
18112
|
-
// bazel-out/
|
|
18112
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
|
|
18113
18113
|
function removeUnusedI18nAttributesOps(job) {
|
|
18114
18114
|
for (const unit of job.units) {
|
|
18115
18115
|
const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
|
|
@@ -18131,7 +18131,7 @@ function removeUnusedI18nAttributesOps(job) {
|
|
|
18131
18131
|
}
|
|
18132
18132
|
}
|
|
18133
18133
|
|
|
18134
|
-
// bazel-out/
|
|
18134
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
18135
18135
|
function resolveContexts(job) {
|
|
18136
18136
|
for (const unit of job.units) {
|
|
18137
18137
|
processLexicalScope(unit, unit.create);
|
|
@@ -18172,7 +18172,7 @@ function processLexicalScope(view, ops) {
|
|
|
18172
18172
|
}
|
|
18173
18173
|
}
|
|
18174
18174
|
|
|
18175
|
-
// bazel-out/
|
|
18175
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
18176
18176
|
function resolveDollarEvent(job) {
|
|
18177
18177
|
for (const unit of job.units) {
|
|
18178
18178
|
transformDollarEvent(unit, unit.create);
|
|
@@ -18193,7 +18193,7 @@ function transformDollarEvent(unit, ops) {
|
|
|
18193
18193
|
}
|
|
18194
18194
|
}
|
|
18195
18195
|
|
|
18196
|
-
// bazel-out/
|
|
18196
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
18197
18197
|
function resolveI18nElementPlaceholders(job) {
|
|
18198
18198
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
18199
18199
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -18372,7 +18372,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
|
|
|
18372
18372
|
params.set(placeholder, values);
|
|
18373
18373
|
}
|
|
18374
18374
|
|
|
18375
|
-
// bazel-out/
|
|
18375
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
18376
18376
|
function resolveI18nExpressionPlaceholders(job) {
|
|
18377
18377
|
var _a2;
|
|
18378
18378
|
const subTemplateIndicies = /* @__PURE__ */ new Map();
|
|
@@ -18425,7 +18425,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
|
|
|
18425
18425
|
}
|
|
18426
18426
|
}
|
|
18427
18427
|
|
|
18428
|
-
// bazel-out/
|
|
18428
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
18429
18429
|
function resolveNames(job) {
|
|
18430
18430
|
for (const unit of job.units) {
|
|
18431
18431
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -18489,7 +18489,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18489
18489
|
}
|
|
18490
18490
|
}
|
|
18491
18491
|
|
|
18492
|
-
// bazel-out/
|
|
18492
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
18493
18493
|
var sanitizerFns = /* @__PURE__ */ new Map([
|
|
18494
18494
|
[SecurityContext.HTML, Identifiers.sanitizeHtml],
|
|
18495
18495
|
[SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
|
|
@@ -18559,7 +18559,7 @@ function getOnlySecurityContext(securityContext) {
|
|
|
18559
18559
|
return securityContext;
|
|
18560
18560
|
}
|
|
18561
18561
|
|
|
18562
|
-
// bazel-out/
|
|
18562
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18563
18563
|
function saveAndRestoreView(job) {
|
|
18564
18564
|
for (const unit of job.units) {
|
|
18565
18565
|
unit.create.prepend([
|
|
@@ -18604,7 +18604,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18604
18604
|
}
|
|
18605
18605
|
}
|
|
18606
18606
|
|
|
18607
|
-
// bazel-out/
|
|
18607
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18608
18608
|
function allocateSlots(job) {
|
|
18609
18609
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18610
18610
|
for (const unit of job.units) {
|
|
@@ -18629,7 +18629,7 @@ function allocateSlots(job) {
|
|
|
18629
18629
|
}
|
|
18630
18630
|
}
|
|
18631
18631
|
|
|
18632
|
-
// bazel-out/
|
|
18632
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18633
18633
|
function specializeStyleBindings(job) {
|
|
18634
18634
|
for (const unit of job.units) {
|
|
18635
18635
|
for (const op of unit.update) {
|
|
@@ -18659,7 +18659,7 @@ function specializeStyleBindings(job) {
|
|
|
18659
18659
|
}
|
|
18660
18660
|
}
|
|
18661
18661
|
|
|
18662
|
-
// bazel-out/
|
|
18662
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18663
18663
|
function generateTemporaryVariables(job) {
|
|
18664
18664
|
for (const unit of job.units) {
|
|
18665
18665
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18717,7 +18717,7 @@ function assignName(names, expr) {
|
|
|
18717
18717
|
expr.name = name;
|
|
18718
18718
|
}
|
|
18719
18719
|
|
|
18720
|
-
// bazel-out/
|
|
18720
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18721
18721
|
function generateTrackFns(job) {
|
|
18722
18722
|
for (const unit of job.units) {
|
|
18723
18723
|
for (const op of unit.create) {
|
|
@@ -18750,7 +18750,7 @@ function generateTrackFns(job) {
|
|
|
18750
18750
|
}
|
|
18751
18751
|
}
|
|
18752
18752
|
|
|
18753
|
-
// bazel-out/
|
|
18753
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18754
18754
|
function optimizeTrackFns(job) {
|
|
18755
18755
|
for (const unit of job.units) {
|
|
18756
18756
|
for (const op of unit.create) {
|
|
@@ -18797,7 +18797,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18797
18797
|
return true;
|
|
18798
18798
|
}
|
|
18799
18799
|
|
|
18800
|
-
// bazel-out/
|
|
18800
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18801
18801
|
function generateTrackVariables(job) {
|
|
18802
18802
|
for (const unit of job.units) {
|
|
18803
18803
|
for (const op of unit.create) {
|
|
@@ -18818,7 +18818,7 @@ function generateTrackVariables(job) {
|
|
|
18818
18818
|
}
|
|
18819
18819
|
}
|
|
18820
18820
|
|
|
18821
|
-
// bazel-out/
|
|
18821
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18822
18822
|
function countVariables(job) {
|
|
18823
18823
|
for (const unit of job.units) {
|
|
18824
18824
|
let varCount = 0;
|
|
@@ -18926,7 +18926,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18926
18926
|
return true;
|
|
18927
18927
|
}
|
|
18928
18928
|
|
|
18929
|
-
// bazel-out/
|
|
18929
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18930
18930
|
function optimizeVariables(job) {
|
|
18931
18931
|
for (const unit of job.units) {
|
|
18932
18932
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -19176,7 +19176,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
19176
19176
|
}
|
|
19177
19177
|
}
|
|
19178
19178
|
|
|
19179
|
-
// bazel-out/
|
|
19179
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
19180
19180
|
function wrapI18nIcus(job) {
|
|
19181
19181
|
for (const unit of job.units) {
|
|
19182
19182
|
let currentI18nOp = null;
|
|
@@ -19206,7 +19206,7 @@ function wrapI18nIcus(job) {
|
|
|
19206
19206
|
}
|
|
19207
19207
|
}
|
|
19208
19208
|
|
|
19209
|
-
// bazel-out/
|
|
19209
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
19210
19210
|
var phases = [
|
|
19211
19211
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
19212
19212
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -19371,7 +19371,7 @@ function emitHostBindingFunction(job) {
|
|
|
19371
19371
|
);
|
|
19372
19372
|
}
|
|
19373
19373
|
|
|
19374
|
-
// bazel-out/
|
|
19374
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
19375
19375
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
19376
19376
|
var domSchema = new DomElementSchemaRegistry();
|
|
19377
19377
|
var NG_TEMPLATE_TAG_NAME = "ng-template";
|
|
@@ -20054,10 +20054,10 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
20054
20054
|
return null;
|
|
20055
20055
|
}
|
|
20056
20056
|
|
|
20057
|
-
// bazel-out/
|
|
20057
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
20058
20058
|
var USE_TEMPLATE_PIPELINE = false;
|
|
20059
20059
|
|
|
20060
|
-
// bazel-out/
|
|
20060
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
20061
20061
|
var IMPORTANT_FLAG = "!important";
|
|
20062
20062
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
20063
20063
|
var StylingBuilder = class {
|
|
@@ -20390,7 +20390,7 @@ function isEmptyExpression(ast) {
|
|
|
20390
20390
|
return ast instanceof EmptyExpr;
|
|
20391
20391
|
}
|
|
20392
20392
|
|
|
20393
|
-
// bazel-out/
|
|
20393
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
20394
20394
|
var HtmlParser = class extends Parser2 {
|
|
20395
20395
|
constructor() {
|
|
20396
20396
|
super(getHtmlTagDefinition);
|
|
@@ -20400,7 +20400,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
20400
20400
|
}
|
|
20401
20401
|
};
|
|
20402
20402
|
|
|
20403
|
-
// bazel-out/
|
|
20403
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
20404
20404
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
20405
20405
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
20406
20406
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -20466,7 +20466,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
20466
20466
|
return result;
|
|
20467
20467
|
}
|
|
20468
20468
|
|
|
20469
|
-
// bazel-out/
|
|
20469
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
20470
20470
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
20471
20471
|
var ATTRIBUTE_PREFIX = "attr";
|
|
20472
20472
|
var CLASS_PREFIX = "class";
|
|
@@ -20786,7 +20786,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
20786
20786
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
20787
20787
|
}
|
|
20788
20788
|
|
|
20789
|
-
// bazel-out/
|
|
20789
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20790
20790
|
function isStyleUrlResolvable(url) {
|
|
20791
20791
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20792
20792
|
return false;
|
|
@@ -20795,7 +20795,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20795
20795
|
}
|
|
20796
20796
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20797
20797
|
|
|
20798
|
-
// bazel-out/
|
|
20798
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20799
20799
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20800
20800
|
var LINK_ELEMENT = "link";
|
|
20801
20801
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20865,7 +20865,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20865
20865
|
return selectAttr;
|
|
20866
20866
|
}
|
|
20867
20867
|
|
|
20868
|
-
// bazel-out/
|
|
20868
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20869
20869
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20870
20870
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20871
20871
|
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
@@ -21156,7 +21156,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
21156
21156
|
return expression.slice(start, end);
|
|
21157
21157
|
}
|
|
21158
21158
|
|
|
21159
|
-
// bazel-out/
|
|
21159
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
21160
21160
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
21161
21161
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
21162
21162
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -21420,7 +21420,7 @@ function parseDeferredTime(value) {
|
|
|
21420
21420
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
21421
21421
|
}
|
|
21422
21422
|
|
|
21423
|
-
// bazel-out/
|
|
21423
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
21424
21424
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
21425
21425
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
21426
21426
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -21555,7 +21555,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
21555
21555
|
return { triggers, prefetchTriggers };
|
|
21556
21556
|
}
|
|
21557
21557
|
|
|
21558
|
-
// bazel-out/
|
|
21558
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
21559
21559
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
21560
21560
|
var KW_BIND_IDX = 1;
|
|
21561
21561
|
var KW_LET_IDX = 2;
|
|
@@ -21986,7 +21986,7 @@ function textContents(node) {
|
|
|
21986
21986
|
}
|
|
21987
21987
|
}
|
|
21988
21988
|
|
|
21989
|
-
// bazel-out/
|
|
21989
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21990
21990
|
var TagType;
|
|
21991
21991
|
(function(TagType2) {
|
|
21992
21992
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -22131,7 +22131,7 @@ function serializePlaceholderValue(value) {
|
|
|
22131
22131
|
}
|
|
22132
22132
|
}
|
|
22133
22133
|
|
|
22134
|
-
// bazel-out/
|
|
22134
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
22135
22135
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
22136
22136
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
22137
22137
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -22205,7 +22205,7 @@ var TemplateData = class {
|
|
|
22205
22205
|
}
|
|
22206
22206
|
};
|
|
22207
22207
|
var TemplateDefinitionBuilder = class {
|
|
22208
|
-
constructor(constantPool, parentBindingScope, level = 0, contextName, i18nContext, templateIndex, templateName, _namespace, relativeContextFilePath, i18nUseExternalIds, deferBlocks, elementLocations, _constants = createComponentDefConsts()) {
|
|
22208
|
+
constructor(constantPool, parentBindingScope, level = 0, contextName, i18nContext, templateIndex, templateName, _namespace, relativeContextFilePath, i18nUseExternalIds, deferBlocks, elementLocations, allDeferrableDepsFn, _constants = createComponentDefConsts()) {
|
|
22209
22209
|
this.constantPool = constantPool;
|
|
22210
22210
|
this.level = level;
|
|
22211
22211
|
this.contextName = contextName;
|
|
@@ -22216,6 +22216,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
22216
22216
|
this.i18nUseExternalIds = i18nUseExternalIds;
|
|
22217
22217
|
this.deferBlocks = deferBlocks;
|
|
22218
22218
|
this.elementLocations = elementLocations;
|
|
22219
|
+
this.allDeferrableDepsFn = allDeferrableDepsFn;
|
|
22219
22220
|
this._constants = _constants;
|
|
22220
22221
|
this._dataIndex = 0;
|
|
22221
22222
|
this._bindingContext = 0;
|
|
@@ -22691,7 +22692,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
22691
22692
|
}
|
|
22692
22693
|
const contextName = `${this.contextName}${contextNameSuffix}_${index}`;
|
|
22693
22694
|
const name = `${contextName}_Template`;
|
|
22694
|
-
const visitor = new TemplateDefinitionBuilder(this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, index, name, this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this.deferBlocks, this.elementLocations, this._constants);
|
|
22695
|
+
const visitor = new TemplateDefinitionBuilder(this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, index, name, this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this.deferBlocks, this.elementLocations, this.allDeferrableDepsFn, this._constants);
|
|
22695
22696
|
this._nestedTemplateFns.push(() => {
|
|
22696
22697
|
const templateFunctionExpr = visitor.buildTemplateFunction(children, variables, this._ngContentReservedSlots.length + this._ngContentSelectorsOffset, i18nMeta, variableAliases);
|
|
22697
22698
|
this.constantPool.statements.push(templateFunctionExpr.toDeclStmt(name));
|
|
@@ -22863,6 +22864,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
22863
22864
|
});
|
|
22864
22865
|
}
|
|
22865
22866
|
visitDeferredBlock(deferred) {
|
|
22867
|
+
var _a2;
|
|
22866
22868
|
const { loading, placeholder, error: error2, triggers, prefetchTriggers } = deferred;
|
|
22867
22869
|
const metadata = this.deferBlocks.get(deferred);
|
|
22868
22870
|
if (!metadata) {
|
|
@@ -22879,7 +22881,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
22879
22881
|
this.creationInstruction(deferred.sourceSpan, Identifiers.defer, trimTrailingNulls([
|
|
22880
22882
|
literal(deferredIndex),
|
|
22881
22883
|
literal(primaryTemplateIndex),
|
|
22882
|
-
this.createDeferredDepsFunction(depsFnName, metadata),
|
|
22884
|
+
(_a2 = this.allDeferrableDepsFn) != null ? _a2 : this.createDeferredDepsFunction(depsFnName, metadata),
|
|
22883
22885
|
literal(loadingIndex),
|
|
22884
22886
|
literal(placeholderIndex),
|
|
22885
22887
|
literal(errorIndex),
|
|
@@ -23816,7 +23818,7 @@ function createClosureModeGuard2() {
|
|
|
23816
23818
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
23817
23819
|
}
|
|
23818
23820
|
|
|
23819
|
-
// bazel-out/
|
|
23821
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
23820
23822
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
23821
23823
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
23822
23824
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -23893,6 +23895,17 @@ function compileDirectiveFromMetadata(meta, constantPool, bindingParser) {
|
|
|
23893
23895
|
const type = createDirectiveType(meta);
|
|
23894
23896
|
return { expression, type, statements: [] };
|
|
23895
23897
|
}
|
|
23898
|
+
function createDeferredDepsFunction(constantPool, name, deps) {
|
|
23899
|
+
const dependencyExp = [];
|
|
23900
|
+
for (const [symbolName, importPath] of deps) {
|
|
23901
|
+
const innerFn = arrowFn([new FnParam("m", DYNAMIC_TYPE)], variable("m").prop(symbolName));
|
|
23902
|
+
const importExpr2 = new DynamicImportExpr(importPath).prop("then").callFn([innerFn]);
|
|
23903
|
+
dependencyExp.push(importExpr2);
|
|
23904
|
+
}
|
|
23905
|
+
const depsFnExpr = arrowFn([], literalArr(dependencyExp));
|
|
23906
|
+
constantPool.statements.push(depsFnExpr.toDeclStmt(name, StmtModifier.Final));
|
|
23907
|
+
return variable(name);
|
|
23908
|
+
}
|
|
23896
23909
|
function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
23897
23910
|
const definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);
|
|
23898
23911
|
addFeatures(definitionMap, meta);
|
|
@@ -23910,8 +23923,13 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
23910
23923
|
const templateTypeName = meta.name;
|
|
23911
23924
|
const templateName = templateTypeName ? `${templateTypeName}_Template` : null;
|
|
23912
23925
|
if (!USE_TEMPLATE_PIPELINE) {
|
|
23926
|
+
let allDeferrableDepsFn = null;
|
|
23927
|
+
if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 && meta.deferBlockDepsEmitMode === 1) {
|
|
23928
|
+
const fnName = `${templateTypeName}_DeferFn`;
|
|
23929
|
+
allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);
|
|
23930
|
+
}
|
|
23913
23931
|
const template2 = meta.template;
|
|
23914
|
-
const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map());
|
|
23932
|
+
const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map(), allDeferrableDepsFn);
|
|
23915
23933
|
const templateFunctionExpression = templateBuilder.buildTemplateFunction(template2.nodes, []);
|
|
23916
23934
|
const ngContentSelectors = templateBuilder.getNgContentSelectors();
|
|
23917
23935
|
if (ngContentSelectors) {
|
|
@@ -24431,7 +24449,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
24431
24449
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
24432
24450
|
}
|
|
24433
24451
|
|
|
24434
|
-
// bazel-out/
|
|
24452
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
24435
24453
|
var R3TargetBinder = class {
|
|
24436
24454
|
constructor(directiveMatcher) {
|
|
24437
24455
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -24444,7 +24462,7 @@ var R3TargetBinder = class {
|
|
|
24444
24462
|
const scopedNodeEntities = extractScopedNodeEntities(scope);
|
|
24445
24463
|
const { directives, eagerDirectives, bindings, references } = DirectiveBinder.apply(target.template, this.directiveMatcher);
|
|
24446
24464
|
const { expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks } = TemplateBinder.applyWithScope(target.template, scope);
|
|
24447
|
-
return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);
|
|
24465
|
+
return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks, scope);
|
|
24448
24466
|
}
|
|
24449
24467
|
};
|
|
24450
24468
|
var Scope2 = class {
|
|
@@ -24452,6 +24470,7 @@ var Scope2 = class {
|
|
|
24452
24470
|
this.parentScope = parentScope;
|
|
24453
24471
|
this.rootNode = rootNode;
|
|
24454
24472
|
this.namedEntities = /* @__PURE__ */ new Map();
|
|
24473
|
+
this.elementsInScope = /* @__PURE__ */ new Set();
|
|
24455
24474
|
this.childScopes = /* @__PURE__ */ new Map();
|
|
24456
24475
|
this.isDeferred = parentScope !== null && parentScope.isDeferred ? true : rootNode instanceof DeferredBlock;
|
|
24457
24476
|
}
|
|
@@ -24485,6 +24504,7 @@ var Scope2 = class {
|
|
|
24485
24504
|
visitElement(element2) {
|
|
24486
24505
|
element2.references.forEach((node) => this.visitReference(node));
|
|
24487
24506
|
element2.children.forEach((node) => node.visit(this));
|
|
24507
|
+
this.elementsInScope.add(element2);
|
|
24488
24508
|
}
|
|
24489
24509
|
visitTemplate(template2) {
|
|
24490
24510
|
template2.references.forEach((node) => this.visitReference(node));
|
|
@@ -24894,7 +24914,7 @@ var TemplateBinder = class extends RecursiveAstVisitor {
|
|
|
24894
24914
|
}
|
|
24895
24915
|
};
|
|
24896
24916
|
var R3BoundTarget = class {
|
|
24897
|
-
constructor(target, directives, eagerDirectives, bindings, references, exprTargets, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferredBlocks) {
|
|
24917
|
+
constructor(target, directives, eagerDirectives, bindings, references, exprTargets, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferredBlocks, rootScope) {
|
|
24898
24918
|
this.target = target;
|
|
24899
24919
|
this.directives = directives;
|
|
24900
24920
|
this.eagerDirectives = eagerDirectives;
|
|
@@ -24907,6 +24927,7 @@ var R3BoundTarget = class {
|
|
|
24907
24927
|
this.usedPipes = usedPipes;
|
|
24908
24928
|
this.eagerPipes = eagerPipes;
|
|
24909
24929
|
this.deferredBlocks = deferredBlocks;
|
|
24930
|
+
this.rootScope = rootScope;
|
|
24910
24931
|
}
|
|
24911
24932
|
getEntitiesInScope(node) {
|
|
24912
24933
|
var _a2;
|
|
@@ -24986,6 +25007,15 @@ var R3BoundTarget = class {
|
|
|
24986
25007
|
}
|
|
24987
25008
|
return null;
|
|
24988
25009
|
}
|
|
25010
|
+
isDeferred(element2) {
|
|
25011
|
+
for (const deferBlock of this.deferredBlocks) {
|
|
25012
|
+
const scope = this.rootScope.childScopes.get(deferBlock);
|
|
25013
|
+
if (scope && scope.elementsInScope.has(element2)) {
|
|
25014
|
+
return true;
|
|
25015
|
+
}
|
|
25016
|
+
}
|
|
25017
|
+
return false;
|
|
25018
|
+
}
|
|
24989
25019
|
findEntityInScope(rootNode, name) {
|
|
24990
25020
|
const entities = this.getEntitiesInScope(rootNode);
|
|
24991
25021
|
for (const entitity of entities) {
|
|
@@ -25036,11 +25066,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
25036
25066
|
return templateEntities;
|
|
25037
25067
|
}
|
|
25038
25068
|
|
|
25039
|
-
// bazel-out/
|
|
25069
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
25040
25070
|
var ResourceLoader = class {
|
|
25041
25071
|
};
|
|
25042
25072
|
|
|
25043
|
-
// bazel-out/
|
|
25073
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
25044
25074
|
var CompilerFacadeImpl = class {
|
|
25045
25075
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
25046
25076
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -25163,7 +25193,9 @@ var CompilerFacadeImpl = class {
|
|
|
25163
25193
|
declarations: facade.declarations.map(convertDeclarationFacadeToMetadata),
|
|
25164
25194
|
declarationListEmitMode: 0,
|
|
25165
25195
|
deferBlocks,
|
|
25196
|
+
deferrableTypes: /* @__PURE__ */ new Map(),
|
|
25166
25197
|
deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
|
|
25198
|
+
deferBlockDepsEmitMode: 0,
|
|
25167
25199
|
styles: [...facade.styles, ...template2.styles],
|
|
25168
25200
|
encapsulation: facade.encapsulation,
|
|
25169
25201
|
interpolation,
|
|
@@ -25370,7 +25402,9 @@ function convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMap
|
|
|
25370
25402
|
viewProviders: decl.viewProviders !== void 0 ? new WrappedNodeExpr(decl.viewProviders) : null,
|
|
25371
25403
|
animations: decl.animations !== void 0 ? new WrappedNodeExpr(decl.animations) : null,
|
|
25372
25404
|
deferBlocks,
|
|
25405
|
+
deferrableTypes: /* @__PURE__ */ new Map(),
|
|
25373
25406
|
deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
|
|
25407
|
+
deferBlockDepsEmitMode: 0,
|
|
25374
25408
|
changeDetection: (_c2 = decl.changeDetection) != null ? _c2 : ChangeDetectionStrategy.Default,
|
|
25375
25409
|
encapsulation: (_d2 = decl.encapsulation) != null ? _d2 : ViewEncapsulation.Emulated,
|
|
25376
25410
|
interpolation,
|
|
@@ -25609,17 +25643,17 @@ function publishFacade(global) {
|
|
|
25609
25643
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
25610
25644
|
}
|
|
25611
25645
|
|
|
25612
|
-
// bazel-out/
|
|
25613
|
-
var VERSION2 = new Version("17.1.0
|
|
25646
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25647
|
+
var VERSION2 = new Version("17.1.0");
|
|
25614
25648
|
|
|
25615
|
-
// bazel-out/
|
|
25649
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
25616
25650
|
var _VisitorMode;
|
|
25617
25651
|
(function(_VisitorMode2) {
|
|
25618
25652
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
25619
25653
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
25620
25654
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
25621
25655
|
|
|
25622
|
-
// bazel-out/
|
|
25656
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
25623
25657
|
var XmlTagDefinition = class {
|
|
25624
25658
|
constructor() {
|
|
25625
25659
|
this.closedByParent = false;
|
|
@@ -25641,7 +25675,7 @@ var XmlTagDefinition = class {
|
|
|
25641
25675
|
};
|
|
25642
25676
|
var _TAG_DEFINITION = new XmlTagDefinition();
|
|
25643
25677
|
|
|
25644
|
-
// bazel-out/
|
|
25678
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
25645
25679
|
var FactoryTarget2;
|
|
25646
25680
|
(function(FactoryTarget3) {
|
|
25647
25681
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -25651,10 +25685,10 @@ var FactoryTarget2;
|
|
|
25651
25685
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
25652
25686
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
25653
25687
|
|
|
25654
|
-
// bazel-out/
|
|
25688
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
25655
25689
|
publishFacade(_global);
|
|
25656
25690
|
|
|
25657
|
-
// bazel-out/
|
|
25691
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/util.mjs
|
|
25658
25692
|
var import_path2 = require("path");
|
|
25659
25693
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
25660
25694
|
var REPLACEMENTS2 = {
|
|
@@ -25762,7 +25796,7 @@ function forEachClass(sourceFile, callback) {
|
|
|
25762
25796
|
});
|
|
25763
25797
|
}
|
|
25764
25798
|
|
|
25765
|
-
// bazel-out/
|
|
25799
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
|
|
25766
25800
|
function block_template_entities_default() {
|
|
25767
25801
|
return (tree) => __async(this, null, function* () {
|
|
25768
25802
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|