@angular-eslint/bundled-angular-compiler 20.2.1-alpha.0 → 20.2.1-alpha.1
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 +21 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -279,7 +279,7 @@ __export(index_exports, {
|
|
|
279
279
|
});
|
|
280
280
|
module.exports = __toCommonJS(index_exports);
|
|
281
281
|
|
|
282
|
-
// ../../node_modules/.pnpm/@angular+compiler@20.
|
|
282
|
+
// ../../node_modules/.pnpm/@angular+compiler@20.3.0/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
283
283
|
var _SELECTOR_REGEXP = new RegExp(
|
|
284
284
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
285
285
|
// 8: ","
|
|
@@ -25241,7 +25241,7 @@ var BindingParser = class {
|
|
|
25241
25241
|
}
|
|
25242
25242
|
if (isLegacyAnimationProp) {
|
|
25243
25243
|
this._parseLegacyAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
25244
|
-
} else if (name.startsWith(ANIMATE_PREFIX)) {
|
|
25244
|
+
} else if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
|
|
25245
25245
|
this._parseAnimation(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
25246
25246
|
} else {
|
|
25247
25247
|
this._parsePropertyAst(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
@@ -25386,7 +25386,7 @@ var BindingParser = class {
|
|
|
25386
25386
|
if (isAssignmentEvent) {
|
|
25387
25387
|
eventType = ParsedEventType.TwoWay;
|
|
25388
25388
|
}
|
|
25389
|
-
if (name.startsWith(ANIMATE_PREFIX)) {
|
|
25389
|
+
if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
|
|
25390
25390
|
eventType = ParsedEventType.Animation;
|
|
25391
25391
|
}
|
|
25392
25392
|
targetEvents.push(new ParsedEvent(eventName, target, eventType, ast, sourceSpan, handlerSpan, keySpan));
|
|
@@ -26858,6 +26858,12 @@ var HtmlAstToIvyAst = class {
|
|
|
26858
26858
|
}
|
|
26859
26859
|
return directives;
|
|
26860
26860
|
}
|
|
26861
|
+
filterAnimationAttributes(attributes) {
|
|
26862
|
+
return attributes.filter((a) => !a.name.startsWith("animate."));
|
|
26863
|
+
}
|
|
26864
|
+
filterAnimationInputs(attributes) {
|
|
26865
|
+
return attributes.filter((a) => a.type !== BindingType.Animation);
|
|
26866
|
+
}
|
|
26861
26867
|
wrapInTemplate(node, templateProperties, templateVariables, i18nAttrsMeta, isTemplateElement, isI18nRootElement) {
|
|
26862
26868
|
const attrs = this.categorizePropertyAttributes("ng-template", templateProperties, i18nAttrsMeta);
|
|
26863
26869
|
const templateAttrs = [];
|
|
@@ -26869,8 +26875,8 @@ var HtmlAstToIvyAst = class {
|
|
|
26869
26875
|
outputs: []
|
|
26870
26876
|
};
|
|
26871
26877
|
if (node instanceof Element$1 || node instanceof Component$1) {
|
|
26872
|
-
hoistedAttrs.attributes.push(...node.attributes);
|
|
26873
|
-
hoistedAttrs.inputs.push(...node.inputs);
|
|
26878
|
+
hoistedAttrs.attributes.push(...this.filterAnimationAttributes(node.attributes));
|
|
26879
|
+
hoistedAttrs.inputs.push(...this.filterAnimationInputs(node.inputs));
|
|
26874
26880
|
hoistedAttrs.outputs.push(...node.outputs);
|
|
26875
26881
|
}
|
|
26876
26882
|
const i18n2 = isTemplateElement && isI18nRootElement ? void 0 : node.i18n;
|
|
@@ -30976,7 +30982,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
30976
30982
|
function compileDeclareClassMetadata(metadata) {
|
|
30977
30983
|
const definitionMap = new DefinitionMap();
|
|
30978
30984
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
30979
|
-
definitionMap.set("version", literal("20.
|
|
30985
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
30980
30986
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30981
30987
|
definitionMap.set("type", metadata.type);
|
|
30982
30988
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -30995,7 +31001,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
30995
31001
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
30996
31002
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
30997
31003
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
30998
|
-
definitionMap.set("version", literal("20.
|
|
31004
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
30999
31005
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31000
31006
|
definitionMap.set("type", metadata.type);
|
|
31001
31007
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31064,7 +31070,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31064
31070
|
const definitionMap = new DefinitionMap();
|
|
31065
31071
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31066
31072
|
definitionMap.set("minVersion", literal(minVersion));
|
|
31067
|
-
definitionMap.set("version", literal("20.
|
|
31073
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
31068
31074
|
definitionMap.set("type", meta.type.value);
|
|
31069
31075
|
if (meta.isStandalone !== void 0) {
|
|
31070
31076
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -31391,7 +31397,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
31391
31397
|
function compileDeclareFactoryFunction(meta) {
|
|
31392
31398
|
const definitionMap = new DefinitionMap();
|
|
31393
31399
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31394
|
-
definitionMap.set("version", literal("20.
|
|
31400
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
31395
31401
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31396
31402
|
definitionMap.set("type", meta.type.value);
|
|
31397
31403
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -31414,7 +31420,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
31414
31420
|
function createInjectableDefinitionMap(meta) {
|
|
31415
31421
|
const definitionMap = new DefinitionMap();
|
|
31416
31422
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
31417
|
-
definitionMap.set("version", literal("20.
|
|
31423
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
31418
31424
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31419
31425
|
definitionMap.set("type", meta.type.value);
|
|
31420
31426
|
if (meta.providedIn !== void 0) {
|
|
@@ -31452,7 +31458,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
31452
31458
|
function createInjectorDefinitionMap(meta) {
|
|
31453
31459
|
const definitionMap = new DefinitionMap();
|
|
31454
31460
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
31455
|
-
definitionMap.set("version", literal("20.
|
|
31461
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
31456
31462
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31457
31463
|
definitionMap.set("type", meta.type.value);
|
|
31458
31464
|
definitionMap.set("providers", meta.providers);
|
|
@@ -31476,7 +31482,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
31476
31482
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
31477
31483
|
}
|
|
31478
31484
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
31479
|
-
definitionMap.set("version", literal("20.
|
|
31485
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
31480
31486
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31481
31487
|
definitionMap.set("type", meta.type.value);
|
|
31482
31488
|
if (meta.bootstrap.length > 0) {
|
|
@@ -31511,7 +31517,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
31511
31517
|
function createPipeDefinitionMap(meta) {
|
|
31512
31518
|
const definitionMap = new DefinitionMap();
|
|
31513
31519
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
31514
|
-
definitionMap.set("version", literal("20.
|
|
31520
|
+
definitionMap.set("version", literal("20.3.0"));
|
|
31515
31521
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31516
31522
|
definitionMap.set("type", meta.type.value);
|
|
31517
31523
|
if (meta.isStandalone !== void 0) {
|
|
@@ -31608,7 +31614,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
31608
31614
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
31609
31615
|
}
|
|
31610
31616
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
31611
|
-
var VERSION = new Version("20.
|
|
31617
|
+
var VERSION = new Version("20.3.0");
|
|
31612
31618
|
publishFacade(_global);
|
|
31613
31619
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31614
31620
|
0 && (module.exports = {
|
|
@@ -31872,7 +31878,7 @@ publishFacade(_global);
|
|
|
31872
31878
|
|
|
31873
31879
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
31874
31880
|
(**
|
|
31875
|
-
* @license Angular v20.
|
|
31881
|
+
* @license Angular v20.3.0
|
|
31876
31882
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
31877
31883
|
* License: MIT
|
|
31878
31884
|
*)
|