@angular-eslint/bundled-angular-compiler 22.5.1-alpha.2 → 22.5.1-alpha.20
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 +39 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -306,7 +306,7 @@ __export(index_exports, {
|
|
|
306
306
|
});
|
|
307
307
|
module.exports = __toCommonJS(index_exports);
|
|
308
308
|
|
|
309
|
-
// ../../node_modules/.pnpm/@angular+compiler@22.1.
|
|
309
|
+
// ../../node_modules/.pnpm/@angular+compiler@22.1.7/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
310
310
|
var _SELECTOR_REGEXP = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
311
311
|
var CssSelector = class _CssSelector {
|
|
312
312
|
static {
|
|
@@ -700,6 +700,12 @@ function checkSecurityContext(tagName, propName, namespace) {
|
|
|
700
700
|
context = defaultSchema[tagLower] ?? defaultSchema[MATCH_ALL_ELEMENTS];
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
+
if (context === void 0 && (!namespace || namespace === NO_NAMESPACE)) {
|
|
704
|
+
const svgSchema = attrSchema[SVG_NAMESPACE$1];
|
|
705
|
+
if (svgSchema) {
|
|
706
|
+
context = svgSchema[tagLower];
|
|
707
|
+
}
|
|
708
|
+
}
|
|
703
709
|
return context ?? SecurityContext.NONE;
|
|
704
710
|
}
|
|
705
711
|
__name(checkSecurityContext, "checkSecurityContext");
|
|
@@ -7330,13 +7336,13 @@ function compileInjectable(meta, resolveForwardRefs) {
|
|
|
7330
7336
|
const expression = importExpr(Identifiers.\u0275\u0275defineInjectable).callFn([injectableProps.toLiteralMap()], void 0, true);
|
|
7331
7337
|
return {
|
|
7332
7338
|
expression,
|
|
7333
|
-
type: createInjectableType(
|
|
7339
|
+
type: createInjectableType(),
|
|
7334
7340
|
statements: result.statements
|
|
7335
7341
|
};
|
|
7336
7342
|
}
|
|
7337
7343
|
__name(compileInjectable, "compileInjectable");
|
|
7338
7344
|
function createInjectableType(type, typeArgumentCount) {
|
|
7339
|
-
return new ExpressionType(importExpr(Identifiers.InjectableDeclaration, [
|
|
7345
|
+
return new ExpressionType(importExpr(Identifiers.InjectableDeclaration, [DYNAMIC_TYPE]));
|
|
7340
7346
|
}
|
|
7341
7347
|
__name(createInjectableType, "createInjectableType");
|
|
7342
7348
|
function delegateToFactory(type, useType, unwrapForwardRefs) {
|
|
@@ -8439,13 +8445,13 @@ var COLON_IN_PLACEHOLDER = "%COLON_IN_PLACEHOLDER%";
|
|
|
8439
8445
|
var _cssCommaInPlaceholderReGlobal = new RegExp(COMMA_IN_PLACEHOLDER, "g");
|
|
8440
8446
|
var _cssSemiInPlaceholderReGlobal = new RegExp(SEMI_IN_PLACEHOLDER, "g");
|
|
8441
8447
|
var _cssColonInPlaceholderReGlobal = new RegExp(COLON_IN_PLACEHOLDER, "g");
|
|
8442
|
-
var _cssVariableRe = /(var\(\s
|
|
8448
|
+
var _cssVariableRe = /(var\(\s*|@property\s+)?(--(?:[a-zA-Z0-9_-]|[^\x00-\x7F])+)(\s*:)?/g;
|
|
8443
8449
|
function namespaceCssVariables(cssText) {
|
|
8444
|
-
return cssText.replace(_cssVariableRe, (match,
|
|
8445
|
-
if (!
|
|
8450
|
+
return cssText.replace(_cssVariableRe, (match, prefix, varName, trailingColon) => {
|
|
8451
|
+
if (!prefix && !trailingColon) {
|
|
8446
8452
|
return match;
|
|
8447
8453
|
}
|
|
8448
|
-
return (
|
|
8454
|
+
return (prefix ?? "") + namespaceCssVariable(varName) + (trailingColon ?? "");
|
|
8449
8455
|
});
|
|
8450
8456
|
}
|
|
8451
8457
|
__name(namespaceCssVariables, "namespaceCssVariables");
|
|
@@ -22013,11 +22019,12 @@ function reifyCreateOperations(unit, ops) {
|
|
|
22013
22019
|
OpList.replace(op, unit.job.mode === TemplateCompilationMode.DomOnly ? domElement(op.handle.slot, op.tag, op.attributes, op.localRefs, op.wholeSourceSpan) : element(op.handle.slot, op.tag, op.attributes, op.localRefs, op.wholeSourceSpan));
|
|
22014
22020
|
break;
|
|
22015
22021
|
case OpKind.ForeignComponent:
|
|
22016
|
-
const
|
|
22022
|
+
const propsMap = op.props.size > 0 ? literalMap(Array.from(op.props.entries()).map(([key, value]) => ({
|
|
22017
22023
|
key,
|
|
22018
22024
|
value,
|
|
22019
22025
|
quoted: isUnsafeObjectKey(key)
|
|
22020
22026
|
}))) : null;
|
|
22027
|
+
const propsExpr = propsMap !== null ? arrowFn([], propsMap) : null;
|
|
22021
22028
|
OpList.replace(op, foreignComponent(op.handle.slot, literal(op.constIndex), propsExpr, op.sourceSpan));
|
|
22022
22029
|
break;
|
|
22023
22030
|
case OpKind.ElementEnd:
|
|
@@ -22666,7 +22673,16 @@ function resolveForeignContent(job) {
|
|
|
22666
22673
|
const templateOp = createTemplateOp(op.view, TemplateKind.NgTemplate, null, templateName, Namespace.HTML, void 0, op.startSourceSpan, op.sourceSpan);
|
|
22667
22674
|
OpList.replace(op, templateOp);
|
|
22668
22675
|
const foreignContent2 = new ForeignContentExpr(templateOp.xref, templateOp.handle, target.constIndex);
|
|
22669
|
-
|
|
22676
|
+
const varXref = job.allocateXrefId();
|
|
22677
|
+
const variable2 = {
|
|
22678
|
+
kind: SemanticVariableKind.Identifier,
|
|
22679
|
+
name: null,
|
|
22680
|
+
identifier: op.propertyName,
|
|
22681
|
+
local: true
|
|
22682
|
+
};
|
|
22683
|
+
const varOp = createVariableOp(varXref, variable2, foreignContent2, VariableFlags.None);
|
|
22684
|
+
OpList.insertBefore(varOp, target);
|
|
22685
|
+
target.props.set(op.propertyName, new ReadVariableExpr(varXref));
|
|
22670
22686
|
}
|
|
22671
22687
|
}
|
|
22672
22688
|
}
|
|
@@ -23218,7 +23234,6 @@ function addSaveRestoreViewOperation(unit, opList, restoreViewTarget) {
|
|
|
23218
23234
|
}
|
|
23219
23235
|
__name(addSaveRestoreViewOperation, "addSaveRestoreViewOperation");
|
|
23220
23236
|
function allocateSlots(job) {
|
|
23221
|
-
const slotMap = /* @__PURE__ */ new Map();
|
|
23222
23237
|
for (const unit of job.units) {
|
|
23223
23238
|
let slotCount = 0;
|
|
23224
23239
|
for (const op of unit.create) {
|
|
@@ -23226,7 +23241,6 @@ function allocateSlots(job) {
|
|
|
23226
23241
|
continue;
|
|
23227
23242
|
}
|
|
23228
23243
|
op.handle.slot = slotCount;
|
|
23229
|
-
slotMap.set(op.xref, op.handle.slot);
|
|
23230
23244
|
slotCount += op.numSlotsUsed;
|
|
23231
23245
|
}
|
|
23232
23246
|
unit.decls = slotCount;
|
|
@@ -23394,7 +23408,6 @@ function generateTemporaries(ops) {
|
|
|
23394
23408
|
});
|
|
23395
23409
|
let count = 0;
|
|
23396
23410
|
const assigned = /* @__PURE__ */ new Set();
|
|
23397
|
-
const released = /* @__PURE__ */ new Set();
|
|
23398
23411
|
const defs = /* @__PURE__ */ new Map();
|
|
23399
23412
|
visitExpressionsInOp(op, (expr, flag) => {
|
|
23400
23413
|
if (flag & VisitorContextFlag.InChildOperation) {
|
|
@@ -23408,7 +23421,6 @@ function generateTemporaries(ops) {
|
|
|
23408
23421
|
assignName(defs, expr);
|
|
23409
23422
|
} else if (expr instanceof ReadTemporaryExpr) {
|
|
23410
23423
|
if (finalReads.get(expr.xref) === expr) {
|
|
23411
|
-
released.add(expr.xref);
|
|
23412
23424
|
count--;
|
|
23413
23425
|
}
|
|
23414
23426
|
assignName(defs, expr);
|
|
@@ -29146,7 +29158,7 @@ function compileService(meta, resolveForwardRefs) {
|
|
|
29146
29158
|
const expression = importExpr(Identifiers.defineService).callFn([def.toLiteralMap()], void 0, true);
|
|
29147
29159
|
return {
|
|
29148
29160
|
expression,
|
|
29149
|
-
type: createInjectableType(
|
|
29161
|
+
type: createInjectableType(),
|
|
29150
29162
|
statements: []
|
|
29151
29163
|
};
|
|
29152
29164
|
}
|
|
@@ -29264,7 +29276,6 @@ var CompilerFacadeImpl = class {
|
|
|
29264
29276
|
statements
|
|
29265
29277
|
} = compileService({
|
|
29266
29278
|
type: wrapReference(facade.type),
|
|
29267
|
-
typeArgumentCount: facade.typeArgumentCount,
|
|
29268
29279
|
autoProvided: facade.autoProvided,
|
|
29269
29280
|
factory: facade.factory ? wrapExpression(facade, "factory") : void 0
|
|
29270
29281
|
}, true);
|
|
@@ -29276,7 +29287,6 @@ var CompilerFacadeImpl = class {
|
|
|
29276
29287
|
statements
|
|
29277
29288
|
} = compileService({
|
|
29278
29289
|
type: wrapReference(facade.type),
|
|
29279
|
-
typeArgumentCount: 0,
|
|
29280
29290
|
autoProvided: facade.autoProvided,
|
|
29281
29291
|
factory: facade.factory ? wrapExpression(facade, "factory") : void 0
|
|
29282
29292
|
}, true);
|
|
@@ -31512,7 +31522,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
31512
31522
|
function compileDeclareClassMetadata(metadata) {
|
|
31513
31523
|
const definitionMap = new DefinitionMap();
|
|
31514
31524
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
31515
|
-
definitionMap.set("version", literal("22.1.
|
|
31525
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
31516
31526
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31517
31527
|
definitionMap.set("type", metadata.type);
|
|
31518
31528
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -31531,7 +31541,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
31531
31541
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
31532
31542
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
31533
31543
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
31534
|
-
definitionMap.set("version", literal("22.1.
|
|
31544
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
31535
31545
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31536
31546
|
definitionMap.set("type", metadata.type);
|
|
31537
31547
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31608,7 +31618,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31608
31618
|
const definitionMap = new DefinitionMap();
|
|
31609
31619
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31610
31620
|
definitionMap.set("minVersion", literal(minVersion));
|
|
31611
|
-
definitionMap.set("version", literal("22.1.
|
|
31621
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
31612
31622
|
definitionMap.set("type", meta.type.value);
|
|
31613
31623
|
if (meta.isStandalone !== void 0) {
|
|
31614
31624
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -31964,7 +31974,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$5 = "12.0.0";
|
|
|
31964
31974
|
function compileDeclareFactoryFunction(meta) {
|
|
31965
31975
|
const definitionMap = new DefinitionMap();
|
|
31966
31976
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
31967
|
-
definitionMap.set("version", literal("22.1.
|
|
31977
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
31968
31978
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31969
31979
|
definitionMap.set("type", meta.type.value);
|
|
31970
31980
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -31980,7 +31990,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
31980
31990
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
31981
31991
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
31982
31992
|
const expression = importExpr(Identifiers.declareInjectable).callFn([definitionMap.toLiteralMap()]);
|
|
31983
|
-
const type = createInjectableType(
|
|
31993
|
+
const type = createInjectableType();
|
|
31984
31994
|
return {
|
|
31985
31995
|
expression,
|
|
31986
31996
|
type,
|
|
@@ -31991,7 +32001,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
31991
32001
|
function createInjectableDefinitionMap(meta) {
|
|
31992
32002
|
const definitionMap = new DefinitionMap();
|
|
31993
32003
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31994
|
-
definitionMap.set("version", literal("22.1.
|
|
32004
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
31995
32005
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31996
32006
|
definitionMap.set("type", meta.type.value);
|
|
31997
32007
|
if (meta.providedIn !== void 0) {
|
|
@@ -32022,7 +32032,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$3 = "22.0.0";
|
|
|
32022
32032
|
function compileDeclareServiceFromMetadata(meta) {
|
|
32023
32033
|
const definitionMap = createServiceDefinitionMap(meta);
|
|
32024
32034
|
const expression = importExpr(Identifiers.declareService).callFn([definitionMap.toLiteralMap()]);
|
|
32025
|
-
const type = createInjectableType(
|
|
32035
|
+
const type = createInjectableType();
|
|
32026
32036
|
return {
|
|
32027
32037
|
expression,
|
|
32028
32038
|
type,
|
|
@@ -32033,7 +32043,7 @@ __name(compileDeclareServiceFromMetadata, "compileDeclareServiceFromMetadata");
|
|
|
32033
32043
|
function createServiceDefinitionMap(meta) {
|
|
32034
32044
|
const definitionMap = new DefinitionMap();
|
|
32035
32045
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
32036
|
-
definitionMap.set("version", literal("22.1.
|
|
32046
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
32037
32047
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32038
32048
|
definitionMap.set("type", meta.type.value);
|
|
32039
32049
|
if (meta.autoProvided === false) {
|
|
@@ -32060,7 +32070,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
32060
32070
|
function createInjectorDefinitionMap(meta) {
|
|
32061
32071
|
const definitionMap = new DefinitionMap();
|
|
32062
32072
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
32063
|
-
definitionMap.set("version", literal("22.1.
|
|
32073
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
32064
32074
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32065
32075
|
definitionMap.set("type", meta.type.value);
|
|
32066
32076
|
definitionMap.set("providers", meta.providers);
|
|
@@ -32091,7 +32101,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
32091
32101
|
throw new Error("Invalid path! Isolated compilation mode should not get into the partial compilation path");
|
|
32092
32102
|
}
|
|
32093
32103
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
32094
|
-
definitionMap.set("version", literal("22.1.
|
|
32104
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
32095
32105
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32096
32106
|
definitionMap.set("type", meta.type.value);
|
|
32097
32107
|
if (meta.bootstrap.length > 0) {
|
|
@@ -32130,7 +32140,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
32130
32140
|
function createPipeDefinitionMap(meta) {
|
|
32131
32141
|
const definitionMap = new DefinitionMap();
|
|
32132
32142
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
32133
|
-
definitionMap.set("version", literal("22.1.
|
|
32143
|
+
definitionMap.set("version", literal("22.1.7"));
|
|
32134
32144
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32135
32145
|
definitionMap.set("type", meta.type.value);
|
|
32136
32146
|
if (meta.isStandalone !== void 0) {
|
|
@@ -32205,7 +32215,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
32205
32215
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
32206
32216
|
}
|
|
32207
32217
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
32208
|
-
var VERSION = new Version("22.1.
|
|
32218
|
+
var VERSION = new Version("22.1.7");
|
|
32209
32219
|
var HOST_BINDING_GUARD_COMMENT_TEXT = "hostBindingsBlockGuard";
|
|
32210
32220
|
function createHostElement(type, selector, nameSpan, hostObjectLiteralBindings, hostBindingDecorators, hostListenerDecorators) {
|
|
32211
32221
|
const bindings = [];
|
|
@@ -35574,7 +35584,7 @@ publishFacade(_global);
|
|
|
35574
35584
|
|
|
35575
35585
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
35576
35586
|
(**
|
|
35577
|
-
* @license Angular v22.1.
|
|
35587
|
+
* @license Angular v22.1.7
|
|
35578
35588
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
35579
35589
|
* License: MIT
|
|
35580
35590
|
*)
|