@angular-eslint/bundled-angular-compiler 21.1.1-alpha.1 → 21.1.1-alpha.10
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/dist/index.js +52 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -281,7 +281,7 @@ __export(index_exports, {
|
|
|
281
281
|
});
|
|
282
282
|
module.exports = __toCommonJS(index_exports);
|
|
283
283
|
|
|
284
|
-
// ../../node_modules/.pnpm/@angular+compiler@21.0.
|
|
284
|
+
// ../../node_modules/.pnpm/@angular+compiler@21.0.6/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
285
285
|
var _SELECTOR_REGEXP = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
286
286
|
var CssSelector = class _CssSelector {
|
|
287
287
|
static {
|
|
@@ -18381,8 +18381,8 @@ function SECURITY_SCHEMA() {
|
|
|
18381
18381
|
_SECURITY_SCHEMA = {};
|
|
18382
18382
|
registerContext(SecurityContext.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]);
|
|
18383
18383
|
registerContext(SecurityContext.STYLE, ["*|style"]);
|
|
18384
|
-
registerContext(SecurityContext.URL, ["*|formAction", "area|href", "
|
|
18385
|
-
registerContext(SecurityContext.RESOURCE_URL, ["
|
|
18384
|
+
registerContext(SecurityContext.URL, ["*|formAction", "area|href", "a|href", "a|xlink:href", "form|action", "annotation|href", "annotation|xlink:href", "annotation-xml|href", "annotation-xml|xlink:href", "maction|href", "maction|xlink:href", "malignmark|href", "malignmark|xlink:href", "math|href", "math|xlink:href", "mroot|href", "mroot|xlink:href", "msqrt|href", "msqrt|xlink:href", "merror|href", "merror|xlink:href", "mfrac|href", "mfrac|xlink:href", "mglyph|href", "mglyph|xlink:href", "msub|href", "msub|xlink:href", "msup|href", "msup|xlink:href", "msubsup|href", "msubsup|xlink:href", "mmultiscripts|href", "mmultiscripts|xlink:href", "mprescripts|href", "mprescripts|xlink:href", "mi|href", "mi|xlink:href", "mn|href", "mn|xlink:href", "mo|href", "mo|xlink:href", "mpadded|href", "mpadded|xlink:href", "mphantom|href", "mphantom|xlink:href", "mrow|href", "mrow|xlink:href", "ms|href", "ms|xlink:href", "mspace|href", "mspace|xlink:href", "mstyle|href", "mstyle|xlink:href", "mtable|href", "mtable|xlink:href", "mtd|href", "mtd|xlink:href", "mtr|href", "mtr|xlink:href", "mtext|href", "mtext|xlink:href", "mover|href", "mover|xlink:href", "munder|href", "munder|xlink:href", "munderover|href", "munderover|xlink:href", "semantics|href", "semantics|xlink:href", "none|href", "none|xlink:href", "img|src", "video|src"]);
|
|
18385
|
+
registerContext(SecurityContext.RESOURCE_URL, ["base|href", "embed|src", "frame|src", "iframe|src", "link|href", "object|codebase", "object|data", "script|src"]);
|
|
18386
18386
|
registerContext(SecurityContext.ATTRIBUTE_NO_BINDING, ["animate|attributeName", "set|attributeName", "animateMotion|attributeName", "animateTransform|attributeName", "unknown|attributeName", "iframe|sandbox", "iframe|allow", "iframe|allowFullscreen", "iframe|referrerPolicy", "iframe|csp", "iframe|fetchPriority", "unknown|sandbox", "unknown|allow", "unknown|allowFullscreen", "unknown|referrerPolicy", "unknown|csp", "unknown|fetchPriority"]);
|
|
18387
18387
|
}
|
|
18388
18388
|
return _SECURITY_SCHEMA;
|
|
@@ -23336,6 +23336,10 @@ function ingestElement(unit, element2) {
|
|
|
23336
23336
|
ingestNodes(unit, element2.children);
|
|
23337
23337
|
const endOp = createElementEndOp(id, element2.endSourceSpan ?? element2.startSourceSpan);
|
|
23338
23338
|
unit.create.push(endOp);
|
|
23339
|
+
const fieldInput = element2.inputs.find((input) => input.name === "field" && input.type === BindingType.Property);
|
|
23340
|
+
if (fieldInput) {
|
|
23341
|
+
unit.create.push(createControlCreateOp(fieldInput.sourceSpan));
|
|
23342
|
+
}
|
|
23339
23343
|
if (i18nBlockId !== null) {
|
|
23340
23344
|
OpList.insertBefore(createI18nEndOp(i18nBlockId, element2.endSourceSpan ?? element2.startSourceSpan), endOp);
|
|
23341
23345
|
}
|
|
@@ -23832,9 +23836,6 @@ function ingestElementBindings(unit, op, element2) {
|
|
|
23832
23836
|
console.error(`On component ${unit.job.componentName}, the binding ${input.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`);
|
|
23833
23837
|
}
|
|
23834
23838
|
bindings.push(createBindingOp(op.xref, BINDING_KINDS.get(input.type), input.name, convertAstWithInterpolation(unit.job, astOf(input.value), input.i18n), input.unit, input.securityContext, false, false, null, asMessage(input.i18n) ?? null, input.sourceSpan));
|
|
23835
|
-
if (input.type === BindingType.Property && input.name === "field") {
|
|
23836
|
-
unit.create.push(createControlCreateOp(input.sourceSpan));
|
|
23837
|
-
}
|
|
23838
23839
|
}
|
|
23839
23840
|
unit.create.push(bindings.filter((b) => b?.kind === OpKind.ExtractedAttribute));
|
|
23840
23841
|
unit.update.push(bindings.filter((b) => b?.kind === OpKind.Binding));
|
|
@@ -24056,7 +24057,7 @@ function getQueryPredicate(query, constantPool) {
|
|
|
24056
24057
|
}
|
|
24057
24058
|
}
|
|
24058
24059
|
__name(getQueryPredicate, "getQueryPredicate");
|
|
24059
|
-
function
|
|
24060
|
+
function getQueryCreateParameters(query, constantPool, prependParams) {
|
|
24060
24061
|
const parameters = [];
|
|
24061
24062
|
if (prependParams !== void 0) {
|
|
24062
24063
|
parameters.push(...prependParams);
|
|
@@ -24068,10 +24069,9 @@ function createQueryCreateCall(query, constantPool, queryTypeFns, prependParams)
|
|
|
24068
24069
|
if (query.read) {
|
|
24069
24070
|
parameters.push(query.read);
|
|
24070
24071
|
}
|
|
24071
|
-
|
|
24072
|
-
return importExpr(queryCreateFn).callFn(parameters);
|
|
24072
|
+
return parameters;
|
|
24073
24073
|
}
|
|
24074
|
-
__name(
|
|
24074
|
+
__name(getQueryCreateParameters, "getQueryCreateParameters");
|
|
24075
24075
|
var queryAdvancePlaceholder = Symbol("queryAdvancePlaceholder");
|
|
24076
24076
|
function collapseAdvanceStatements(statements) {
|
|
24077
24077
|
const result = [];
|
|
@@ -24099,12 +24099,17 @@ function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
|
24099
24099
|
const createStatements = [];
|
|
24100
24100
|
const updateStatements = [];
|
|
24101
24101
|
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
24102
|
+
let viewQuerySignalCall = null;
|
|
24103
|
+
let viewQueryCall = null;
|
|
24102
24104
|
viewQueries.forEach((query) => {
|
|
24103
|
-
const
|
|
24104
|
-
|
|
24105
|
-
|
|
24106
|
-
|
|
24107
|
-
|
|
24105
|
+
const params = getQueryCreateParameters(query, constantPool);
|
|
24106
|
+
if (query.isSignal) {
|
|
24107
|
+
viewQuerySignalCall ??= importExpr(Identifiers.viewQuerySignal);
|
|
24108
|
+
viewQuerySignalCall = viewQuerySignalCall.callFn(params);
|
|
24109
|
+
} else {
|
|
24110
|
+
viewQueryCall ??= importExpr(Identifiers.viewQuery);
|
|
24111
|
+
viewQueryCall = viewQueryCall.callFn(params);
|
|
24112
|
+
}
|
|
24108
24113
|
if (query.isSignal) {
|
|
24109
24114
|
updateStatements.push(queryAdvancePlaceholder);
|
|
24110
24115
|
return;
|
|
@@ -24115,6 +24120,12 @@ function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
|
24115
24120
|
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
24116
24121
|
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
24117
24122
|
});
|
|
24123
|
+
if (viewQuerySignalCall !== null) {
|
|
24124
|
+
createStatements.push(new ExpressionStatement(viewQuerySignalCall));
|
|
24125
|
+
}
|
|
24126
|
+
if (viewQueryCall !== null) {
|
|
24127
|
+
createStatements.push(new ExpressionStatement(viewQueryCall));
|
|
24128
|
+
}
|
|
24118
24129
|
const viewQueryFnName = name ? `${name}_Query` : null;
|
|
24119
24130
|
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [renderFlagCheckIfStmt(1, createStatements), renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))], INFERRED_TYPE, null, viewQueryFnName);
|
|
24120
24131
|
}
|
|
@@ -24123,11 +24134,17 @@ function createContentQueriesFunction(queries, constantPool, name) {
|
|
|
24123
24134
|
const createStatements = [];
|
|
24124
24135
|
const updateStatements = [];
|
|
24125
24136
|
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
24137
|
+
let contentQuerySignalCall = null;
|
|
24138
|
+
let contentQueryCall = null;
|
|
24126
24139
|
for (const query of queries) {
|
|
24127
|
-
|
|
24128
|
-
|
|
24129
|
-
|
|
24130
|
-
|
|
24140
|
+
const params = getQueryCreateParameters(query, constantPool, [variable("dirIndex")]);
|
|
24141
|
+
if (query.isSignal) {
|
|
24142
|
+
contentQuerySignalCall ??= importExpr(Identifiers.contentQuerySignal);
|
|
24143
|
+
contentQuerySignalCall = contentQuerySignalCall.callFn(params);
|
|
24144
|
+
} else {
|
|
24145
|
+
contentQueryCall ??= importExpr(Identifiers.contentQuery);
|
|
24146
|
+
contentQueryCall = contentQueryCall.callFn(params);
|
|
24147
|
+
}
|
|
24131
24148
|
if (query.isSignal) {
|
|
24132
24149
|
updateStatements.push(queryAdvancePlaceholder);
|
|
24133
24150
|
continue;
|
|
@@ -24138,6 +24155,12 @@ function createContentQueriesFunction(queries, constantPool, name) {
|
|
|
24138
24155
|
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
24139
24156
|
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
24140
24157
|
}
|
|
24158
|
+
if (contentQuerySignalCall !== null) {
|
|
24159
|
+
createStatements.push(new ExpressionStatement(contentQuerySignalCall));
|
|
24160
|
+
}
|
|
24161
|
+
if (contentQueryCall !== null) {
|
|
24162
|
+
createStatements.push(new ExpressionStatement(contentQueryCall));
|
|
24163
|
+
}
|
|
24141
24164
|
const contentQueriesFnName = name ? `${name}_ContentQueries` : null;
|
|
24142
24165
|
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null), new FnParam("dirIndex", null)], [renderFlagCheckIfStmt(1, createStatements), renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))], INFERRED_TYPE, null, contentQueriesFnName);
|
|
24143
24166
|
}
|
|
@@ -29886,7 +29909,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
29886
29909
|
function compileDeclareClassMetadata(metadata) {
|
|
29887
29910
|
const definitionMap = new DefinitionMap();
|
|
29888
29911
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
29889
|
-
definitionMap.set("version", literal("21.0.
|
|
29912
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
29890
29913
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29891
29914
|
definitionMap.set("type", metadata.type);
|
|
29892
29915
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -29905,7 +29928,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
29905
29928
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
29906
29929
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
29907
29930
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
29908
|
-
definitionMap.set("version", literal("21.0.
|
|
29931
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
29909
29932
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29910
29933
|
definitionMap.set("type", metadata.type);
|
|
29911
29934
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -29982,7 +30005,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
29982
30005
|
const definitionMap = new DefinitionMap();
|
|
29983
30006
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
29984
30007
|
definitionMap.set("minVersion", literal(minVersion));
|
|
29985
|
-
definitionMap.set("version", literal("21.0.
|
|
30008
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
29986
30009
|
definitionMap.set("type", meta.type.value);
|
|
29987
30010
|
if (meta.isStandalone !== void 0) {
|
|
29988
30011
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -30328,7 +30351,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
30328
30351
|
function compileDeclareFactoryFunction(meta) {
|
|
30329
30352
|
const definitionMap = new DefinitionMap();
|
|
30330
30353
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
30331
|
-
definitionMap.set("version", literal("21.0.
|
|
30354
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30332
30355
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30333
30356
|
definitionMap.set("type", meta.type.value);
|
|
30334
30357
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -30355,7 +30378,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
30355
30378
|
function createInjectableDefinitionMap(meta) {
|
|
30356
30379
|
const definitionMap = new DefinitionMap();
|
|
30357
30380
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
30358
|
-
definitionMap.set("version", literal("21.0.
|
|
30381
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30359
30382
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30360
30383
|
definitionMap.set("type", meta.type.value);
|
|
30361
30384
|
if (meta.providedIn !== void 0) {
|
|
@@ -30397,7 +30420,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
30397
30420
|
function createInjectorDefinitionMap(meta) {
|
|
30398
30421
|
const definitionMap = new DefinitionMap();
|
|
30399
30422
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
30400
|
-
definitionMap.set("version", literal("21.0.
|
|
30423
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30401
30424
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30402
30425
|
definitionMap.set("type", meta.type.value);
|
|
30403
30426
|
definitionMap.set("providers", meta.providers);
|
|
@@ -30425,7 +30448,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
30425
30448
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
30426
30449
|
}
|
|
30427
30450
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
30428
|
-
definitionMap.set("version", literal("21.0.
|
|
30451
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30429
30452
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30430
30453
|
definitionMap.set("type", meta.type.value);
|
|
30431
30454
|
if (meta.bootstrap.length > 0) {
|
|
@@ -30464,7 +30487,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
30464
30487
|
function createPipeDefinitionMap(meta) {
|
|
30465
30488
|
const definitionMap = new DefinitionMap();
|
|
30466
30489
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
30467
|
-
definitionMap.set("version", literal("21.0.
|
|
30490
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30468
30491
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30469
30492
|
definitionMap.set("type", meta.type.value);
|
|
30470
30493
|
if (meta.isStandalone !== void 0) {
|
|
@@ -30539,7 +30562,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
30539
30562
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
30540
30563
|
}
|
|
30541
30564
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
30542
|
-
var VERSION = new Version("21.0.
|
|
30565
|
+
var VERSION = new Version("21.0.6");
|
|
30543
30566
|
publishFacade(_global);
|
|
30544
30567
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30545
30568
|
0 && (module.exports = {
|
|
@@ -30805,7 +30828,7 @@ publishFacade(_global);
|
|
|
30805
30828
|
|
|
30806
30829
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
30807
30830
|
(**
|
|
30808
|
-
* @license Angular v21.0.
|
|
30831
|
+
* @license Angular v21.0.6
|
|
30809
30832
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
30810
30833
|
* License: MIT
|
|
30811
30834
|
*)
|