@angular-eslint/bundled-angular-compiler 20.0.0-alpha.0 → 20.0.0-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 +57 -323
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -282,7 +282,7 @@ __export(index_exports, {
|
|
|
282
282
|
});
|
|
283
283
|
module.exports = __toCommonJS(index_exports);
|
|
284
284
|
|
|
285
|
-
// ../../node_modules/.pnpm/@angular+compiler@20.0.0
|
|
285
|
+
// ../../node_modules/.pnpm/@angular+compiler@20.0.0/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
286
286
|
var _SELECTOR_REGEXP = new RegExp(
|
|
287
287
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
288
288
|
// 8: ","
|
|
@@ -2977,116 +2977,8 @@ var Identifiers = class {
|
|
|
2977
2977
|
};
|
|
2978
2978
|
static elementContainer = { name: "\u0275\u0275elementContainer", moduleName: CORE };
|
|
2979
2979
|
static styleMap = { name: "\u0275\u0275styleMap", moduleName: CORE };
|
|
2980
|
-
static styleMapInterpolate1 = {
|
|
2981
|
-
name: "\u0275\u0275styleMapInterpolate1",
|
|
2982
|
-
moduleName: CORE
|
|
2983
|
-
};
|
|
2984
|
-
static styleMapInterpolate2 = {
|
|
2985
|
-
name: "\u0275\u0275styleMapInterpolate2",
|
|
2986
|
-
moduleName: CORE
|
|
2987
|
-
};
|
|
2988
|
-
static styleMapInterpolate3 = {
|
|
2989
|
-
name: "\u0275\u0275styleMapInterpolate3",
|
|
2990
|
-
moduleName: CORE
|
|
2991
|
-
};
|
|
2992
|
-
static styleMapInterpolate4 = {
|
|
2993
|
-
name: "\u0275\u0275styleMapInterpolate4",
|
|
2994
|
-
moduleName: CORE
|
|
2995
|
-
};
|
|
2996
|
-
static styleMapInterpolate5 = {
|
|
2997
|
-
name: "\u0275\u0275styleMapInterpolate5",
|
|
2998
|
-
moduleName: CORE
|
|
2999
|
-
};
|
|
3000
|
-
static styleMapInterpolate6 = {
|
|
3001
|
-
name: "\u0275\u0275styleMapInterpolate6",
|
|
3002
|
-
moduleName: CORE
|
|
3003
|
-
};
|
|
3004
|
-
static styleMapInterpolate7 = {
|
|
3005
|
-
name: "\u0275\u0275styleMapInterpolate7",
|
|
3006
|
-
moduleName: CORE
|
|
3007
|
-
};
|
|
3008
|
-
static styleMapInterpolate8 = {
|
|
3009
|
-
name: "\u0275\u0275styleMapInterpolate8",
|
|
3010
|
-
moduleName: CORE
|
|
3011
|
-
};
|
|
3012
|
-
static styleMapInterpolateV = {
|
|
3013
|
-
name: "\u0275\u0275styleMapInterpolateV",
|
|
3014
|
-
moduleName: CORE
|
|
3015
|
-
};
|
|
3016
2980
|
static classMap = { name: "\u0275\u0275classMap", moduleName: CORE };
|
|
3017
|
-
static classMapInterpolate1 = {
|
|
3018
|
-
name: "\u0275\u0275classMapInterpolate1",
|
|
3019
|
-
moduleName: CORE
|
|
3020
|
-
};
|
|
3021
|
-
static classMapInterpolate2 = {
|
|
3022
|
-
name: "\u0275\u0275classMapInterpolate2",
|
|
3023
|
-
moduleName: CORE
|
|
3024
|
-
};
|
|
3025
|
-
static classMapInterpolate3 = {
|
|
3026
|
-
name: "\u0275\u0275classMapInterpolate3",
|
|
3027
|
-
moduleName: CORE
|
|
3028
|
-
};
|
|
3029
|
-
static classMapInterpolate4 = {
|
|
3030
|
-
name: "\u0275\u0275classMapInterpolate4",
|
|
3031
|
-
moduleName: CORE
|
|
3032
|
-
};
|
|
3033
|
-
static classMapInterpolate5 = {
|
|
3034
|
-
name: "\u0275\u0275classMapInterpolate5",
|
|
3035
|
-
moduleName: CORE
|
|
3036
|
-
};
|
|
3037
|
-
static classMapInterpolate6 = {
|
|
3038
|
-
name: "\u0275\u0275classMapInterpolate6",
|
|
3039
|
-
moduleName: CORE
|
|
3040
|
-
};
|
|
3041
|
-
static classMapInterpolate7 = {
|
|
3042
|
-
name: "\u0275\u0275classMapInterpolate7",
|
|
3043
|
-
moduleName: CORE
|
|
3044
|
-
};
|
|
3045
|
-
static classMapInterpolate8 = {
|
|
3046
|
-
name: "\u0275\u0275classMapInterpolate8",
|
|
3047
|
-
moduleName: CORE
|
|
3048
|
-
};
|
|
3049
|
-
static classMapInterpolateV = {
|
|
3050
|
-
name: "\u0275\u0275classMapInterpolateV",
|
|
3051
|
-
moduleName: CORE
|
|
3052
|
-
};
|
|
3053
2981
|
static styleProp = { name: "\u0275\u0275styleProp", moduleName: CORE };
|
|
3054
|
-
static stylePropInterpolate1 = {
|
|
3055
|
-
name: "\u0275\u0275stylePropInterpolate1",
|
|
3056
|
-
moduleName: CORE
|
|
3057
|
-
};
|
|
3058
|
-
static stylePropInterpolate2 = {
|
|
3059
|
-
name: "\u0275\u0275stylePropInterpolate2",
|
|
3060
|
-
moduleName: CORE
|
|
3061
|
-
};
|
|
3062
|
-
static stylePropInterpolate3 = {
|
|
3063
|
-
name: "\u0275\u0275stylePropInterpolate3",
|
|
3064
|
-
moduleName: CORE
|
|
3065
|
-
};
|
|
3066
|
-
static stylePropInterpolate4 = {
|
|
3067
|
-
name: "\u0275\u0275stylePropInterpolate4",
|
|
3068
|
-
moduleName: CORE
|
|
3069
|
-
};
|
|
3070
|
-
static stylePropInterpolate5 = {
|
|
3071
|
-
name: "\u0275\u0275stylePropInterpolate5",
|
|
3072
|
-
moduleName: CORE
|
|
3073
|
-
};
|
|
3074
|
-
static stylePropInterpolate6 = {
|
|
3075
|
-
name: "\u0275\u0275stylePropInterpolate6",
|
|
3076
|
-
moduleName: CORE
|
|
3077
|
-
};
|
|
3078
|
-
static stylePropInterpolate7 = {
|
|
3079
|
-
name: "\u0275\u0275stylePropInterpolate7",
|
|
3080
|
-
moduleName: CORE
|
|
3081
|
-
};
|
|
3082
|
-
static stylePropInterpolate8 = {
|
|
3083
|
-
name: "\u0275\u0275stylePropInterpolate8",
|
|
3084
|
-
moduleName: CORE
|
|
3085
|
-
};
|
|
3086
|
-
static stylePropInterpolateV = {
|
|
3087
|
-
name: "\u0275\u0275stylePropInterpolateV",
|
|
3088
|
-
moduleName: CORE
|
|
3089
|
-
};
|
|
3090
2982
|
static interpolate = {
|
|
3091
2983
|
name: "\u0275\u0275interpolate",
|
|
3092
2984
|
moduleName: CORE
|
|
@@ -3242,46 +3134,6 @@ var Identifiers = class {
|
|
|
3242
3134
|
static pipeBindV = { name: "\u0275\u0275pipeBindV", moduleName: CORE };
|
|
3243
3135
|
static domProperty = { name: "\u0275\u0275domProperty", moduleName: CORE };
|
|
3244
3136
|
static property = { name: "\u0275\u0275property", moduleName: CORE };
|
|
3245
|
-
static propertyInterpolate = {
|
|
3246
|
-
name: "\u0275\u0275propertyInterpolate",
|
|
3247
|
-
moduleName: CORE
|
|
3248
|
-
};
|
|
3249
|
-
static propertyInterpolate1 = {
|
|
3250
|
-
name: "\u0275\u0275propertyInterpolate1",
|
|
3251
|
-
moduleName: CORE
|
|
3252
|
-
};
|
|
3253
|
-
static propertyInterpolate2 = {
|
|
3254
|
-
name: "\u0275\u0275propertyInterpolate2",
|
|
3255
|
-
moduleName: CORE
|
|
3256
|
-
};
|
|
3257
|
-
static propertyInterpolate3 = {
|
|
3258
|
-
name: "\u0275\u0275propertyInterpolate3",
|
|
3259
|
-
moduleName: CORE
|
|
3260
|
-
};
|
|
3261
|
-
static propertyInterpolate4 = {
|
|
3262
|
-
name: "\u0275\u0275propertyInterpolate4",
|
|
3263
|
-
moduleName: CORE
|
|
3264
|
-
};
|
|
3265
|
-
static propertyInterpolate5 = {
|
|
3266
|
-
name: "\u0275\u0275propertyInterpolate5",
|
|
3267
|
-
moduleName: CORE
|
|
3268
|
-
};
|
|
3269
|
-
static propertyInterpolate6 = {
|
|
3270
|
-
name: "\u0275\u0275propertyInterpolate6",
|
|
3271
|
-
moduleName: CORE
|
|
3272
|
-
};
|
|
3273
|
-
static propertyInterpolate7 = {
|
|
3274
|
-
name: "\u0275\u0275propertyInterpolate7",
|
|
3275
|
-
moduleName: CORE
|
|
3276
|
-
};
|
|
3277
|
-
static propertyInterpolate8 = {
|
|
3278
|
-
name: "\u0275\u0275propertyInterpolate8",
|
|
3279
|
-
moduleName: CORE
|
|
3280
|
-
};
|
|
3281
|
-
static propertyInterpolateV = {
|
|
3282
|
-
name: "\u0275\u0275propertyInterpolateV",
|
|
3283
|
-
moduleName: CORE
|
|
3284
|
-
};
|
|
3285
3137
|
static i18n = { name: "\u0275\u0275i18n", moduleName: CORE };
|
|
3286
3138
|
static i18nAttributes = { name: "\u0275\u0275i18nAttributes", moduleName: CORE };
|
|
3287
3139
|
static i18nExp = { name: "\u0275\u0275i18nExp", moduleName: CORE };
|
|
@@ -11421,15 +11273,6 @@ var CHAIN_COMPATIBILITY = /* @__PURE__ */ new Map([
|
|
|
11421
11273
|
[Identifiers.listener, Identifiers.listener],
|
|
11422
11274
|
[Identifiers.property, Identifiers.property],
|
|
11423
11275
|
[Identifiers.styleProp, Identifiers.styleProp],
|
|
11424
|
-
[Identifiers.stylePropInterpolate1, Identifiers.stylePropInterpolate1],
|
|
11425
|
-
[Identifiers.stylePropInterpolate2, Identifiers.stylePropInterpolate2],
|
|
11426
|
-
[Identifiers.stylePropInterpolate3, Identifiers.stylePropInterpolate3],
|
|
11427
|
-
[Identifiers.stylePropInterpolate4, Identifiers.stylePropInterpolate4],
|
|
11428
|
-
[Identifiers.stylePropInterpolate5, Identifiers.stylePropInterpolate5],
|
|
11429
|
-
[Identifiers.stylePropInterpolate6, Identifiers.stylePropInterpolate6],
|
|
11430
|
-
[Identifiers.stylePropInterpolate7, Identifiers.stylePropInterpolate7],
|
|
11431
|
-
[Identifiers.stylePropInterpolate8, Identifiers.stylePropInterpolate8],
|
|
11432
|
-
[Identifiers.stylePropInterpolateV, Identifiers.stylePropInterpolateV],
|
|
11433
11276
|
[Identifiers.syntheticHostListener, Identifiers.syntheticHostListener],
|
|
11434
11277
|
[Identifiers.syntheticHostProperty, Identifiers.syntheticHostProperty],
|
|
11435
11278
|
[Identifiers.templateCreate, Identifiers.templateCreate],
|
|
@@ -11483,7 +11326,7 @@ __name(chainOperationsInList, "chainOperationsInList");
|
|
|
11483
11326
|
function collapseSingletonInterpolations(job) {
|
|
11484
11327
|
for (const unit of job.units) {
|
|
11485
11328
|
for (const op of unit.update) {
|
|
11486
|
-
const eligibleOpKind = op.kind === OpKind.Attribute;
|
|
11329
|
+
const eligibleOpKind = op.kind === OpKind.Attribute || op.kind === OpKind.StyleProp || op.kind == OpKind.StyleMap || op.kind === OpKind.ClassMap;
|
|
11487
11330
|
if (eligibleOpKind && op.expression instanceof Interpolation2 && op.expression.strings.length === 2 && op.expression.strings.every((s) => s === "")) {
|
|
11488
11331
|
op.expression = op.expression.expressions[0];
|
|
11489
11332
|
}
|
|
@@ -17336,8 +17179,7 @@ var _Scanner = class {
|
|
|
17336
17179
|
length;
|
|
17337
17180
|
peek = 0;
|
|
17338
17181
|
index = -1;
|
|
17339
|
-
|
|
17340
|
-
braceDepth = 0;
|
|
17182
|
+
braceStack = [];
|
|
17341
17183
|
constructor(input) {
|
|
17342
17184
|
this.input = input;
|
|
17343
17185
|
this.length = input.length;
|
|
@@ -17440,18 +17282,17 @@ var _Scanner = class {
|
|
|
17440
17282
|
return newOperatorToken(start, this.index, str);
|
|
17441
17283
|
}
|
|
17442
17284
|
scanOpenBrace(start, code) {
|
|
17443
|
-
this.
|
|
17285
|
+
this.braceStack.push("expression");
|
|
17444
17286
|
this.advance();
|
|
17445
17287
|
return newCharacterToken(start, this.index, code);
|
|
17446
17288
|
}
|
|
17447
17289
|
scanCloseBrace(start, code) {
|
|
17448
17290
|
this.advance();
|
|
17449
|
-
|
|
17450
|
-
|
|
17291
|
+
const currentBrace = this.braceStack.pop();
|
|
17292
|
+
if (currentBrace === "interpolation") {
|
|
17451
17293
|
this.tokens.push(newOperatorToken(start, this.index, "}"));
|
|
17452
17294
|
return this.scanTemplateLiteralPart(this.index);
|
|
17453
17295
|
}
|
|
17454
|
-
this.braceDepth--;
|
|
17455
17296
|
return newCharacterToken(start, this.index, code);
|
|
17456
17297
|
}
|
|
17457
17298
|
/**
|
|
@@ -17578,7 +17419,7 @@ var _Scanner = class {
|
|
|
17578
17419
|
const dollar = this.index;
|
|
17579
17420
|
this.advance();
|
|
17580
17421
|
if (this.peek === $LBRACE) {
|
|
17581
|
-
this.
|
|
17422
|
+
this.braceStack.push("interpolation");
|
|
17582
17423
|
this.tokens.push(new StringToken(start, dollar, buffer + this.input.substring(marker, dollar), StringTokenKind.TemplateLiteralPart));
|
|
17583
17424
|
this.advance();
|
|
17584
17425
|
return newOperatorToken(dollar, this.index, this.input.substring(dollar, this.index));
|
|
@@ -21796,7 +21637,12 @@ function i18nAttributes(slot, i18nAttributesConfig) {
|
|
|
21796
21637
|
}
|
|
21797
21638
|
__name(i18nAttributes, "i18nAttributes");
|
|
21798
21639
|
function property(name, expression, sanitizer, sourceSpan) {
|
|
21799
|
-
const args = [literal(name)
|
|
21640
|
+
const args = [literal(name)];
|
|
21641
|
+
if (expression instanceof Interpolation2) {
|
|
21642
|
+
args.push(interpolationToExpression(expression, sourceSpan));
|
|
21643
|
+
} else {
|
|
21644
|
+
args.push(expression);
|
|
21645
|
+
}
|
|
21800
21646
|
if (sanitizer !== null) {
|
|
21801
21647
|
args.push(sanitizer);
|
|
21802
21648
|
}
|
|
@@ -21811,8 +21657,13 @@ function twoWayProperty(name, expression, sanitizer, sourceSpan) {
|
|
|
21811
21657
|
return call(Identifiers.twoWayProperty, args, sourceSpan);
|
|
21812
21658
|
}
|
|
21813
21659
|
__name(twoWayProperty, "twoWayProperty");
|
|
21814
|
-
function attribute(name, expression, sanitizer, namespace) {
|
|
21815
|
-
const args = [literal(name)
|
|
21660
|
+
function attribute(name, expression, sanitizer, namespace, sourceSpan) {
|
|
21661
|
+
const args = [literal(name)];
|
|
21662
|
+
if (expression instanceof Interpolation2) {
|
|
21663
|
+
args.push(interpolationToExpression(expression, sourceSpan));
|
|
21664
|
+
} else {
|
|
21665
|
+
args.push(expression);
|
|
21666
|
+
}
|
|
21816
21667
|
if (sanitizer !== null || namespace !== null) {
|
|
21817
21668
|
args.push(sanitizer ?? literal(null));
|
|
21818
21669
|
}
|
|
@@ -21823,7 +21674,12 @@ function attribute(name, expression, sanitizer, namespace) {
|
|
|
21823
21674
|
}
|
|
21824
21675
|
__name(attribute, "attribute");
|
|
21825
21676
|
function styleProp(name, expression, unit, sourceSpan) {
|
|
21826
|
-
const args = [literal(name)
|
|
21677
|
+
const args = [literal(name)];
|
|
21678
|
+
if (expression instanceof Interpolation2) {
|
|
21679
|
+
args.push(interpolationToExpression(expression, sourceSpan));
|
|
21680
|
+
} else {
|
|
21681
|
+
args.push(expression);
|
|
21682
|
+
}
|
|
21827
21683
|
if (unit !== null) {
|
|
21828
21684
|
args.push(literal(unit));
|
|
21829
21685
|
}
|
|
@@ -21835,11 +21691,13 @@ function classProp(name, expression, sourceSpan) {
|
|
|
21835
21691
|
}
|
|
21836
21692
|
__name(classProp, "classProp");
|
|
21837
21693
|
function styleMap(expression, sourceSpan) {
|
|
21838
|
-
|
|
21694
|
+
const value = expression instanceof Interpolation2 ? interpolationToExpression(expression, sourceSpan) : expression;
|
|
21695
|
+
return call(Identifiers.styleMap, [value], sourceSpan);
|
|
21839
21696
|
}
|
|
21840
21697
|
__name(styleMap, "styleMap");
|
|
21841
21698
|
function classMap(expression, sourceSpan) {
|
|
21842
|
-
|
|
21699
|
+
const value = expression instanceof Interpolation2 ? interpolationToExpression(expression, sourceSpan) : expression;
|
|
21700
|
+
return call(Identifiers.classMap, [value], sourceSpan);
|
|
21843
21701
|
}
|
|
21844
21702
|
__name(classMap, "classMap");
|
|
21845
21703
|
var PIPE_BINDINGS = [
|
|
@@ -21873,40 +21731,6 @@ function i18nApply(slot, sourceSpan) {
|
|
|
21873
21731
|
return call(Identifiers.i18nApply, [literal(slot)], sourceSpan);
|
|
21874
21732
|
}
|
|
21875
21733
|
__name(i18nApply, "i18nApply");
|
|
21876
|
-
function propertyInterpolate(name, strings, expressions, sanitizer, sourceSpan) {
|
|
21877
|
-
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
21878
|
-
const extraArgs = [];
|
|
21879
|
-
if (sanitizer !== null) {
|
|
21880
|
-
extraArgs.push(sanitizer);
|
|
21881
|
-
}
|
|
21882
|
-
return callVariadicInstruction(PROPERTY_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs, extraArgs, sourceSpan);
|
|
21883
|
-
}
|
|
21884
|
-
__name(propertyInterpolate, "propertyInterpolate");
|
|
21885
|
-
function attributeInterpolate(name, strings, expressions, sanitizer, namespace, sourceSpan) {
|
|
21886
|
-
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
21887
|
-
const value = callVariadicInstructionExpr(VALUE_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);
|
|
21888
|
-
return attribute(name, value, sanitizer, namespace);
|
|
21889
|
-
}
|
|
21890
|
-
__name(attributeInterpolate, "attributeInterpolate");
|
|
21891
|
-
function stylePropInterpolate(name, strings, expressions, unit, sourceSpan) {
|
|
21892
|
-
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
21893
|
-
const extraArgs = [];
|
|
21894
|
-
if (unit !== null) {
|
|
21895
|
-
extraArgs.push(literal(unit));
|
|
21896
|
-
}
|
|
21897
|
-
return callVariadicInstruction(STYLE_PROP_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs, extraArgs, sourceSpan);
|
|
21898
|
-
}
|
|
21899
|
-
__name(stylePropInterpolate, "stylePropInterpolate");
|
|
21900
|
-
function styleMapInterpolate(strings, expressions, sourceSpan) {
|
|
21901
|
-
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
21902
|
-
return callVariadicInstruction(STYLE_MAP_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);
|
|
21903
|
-
}
|
|
21904
|
-
__name(styleMapInterpolate, "styleMapInterpolate");
|
|
21905
|
-
function classMapInterpolate(strings, expressions, sourceSpan) {
|
|
21906
|
-
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
21907
|
-
return callVariadicInstruction(CLASS_MAP_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);
|
|
21908
|
-
}
|
|
21909
|
-
__name(classMapInterpolate, "classMapInterpolate");
|
|
21910
21734
|
function domProperty(name, expression, sanitizer, sourceSpan) {
|
|
21911
21735
|
const args = [literal(name), expression];
|
|
21912
21736
|
if (sanitizer !== null) {
|
|
@@ -21944,6 +21768,11 @@ function collateInterpolationArgs(strings, expressions) {
|
|
|
21944
21768
|
return interpolationArgs;
|
|
21945
21769
|
}
|
|
21946
21770
|
__name(collateInterpolationArgs, "collateInterpolationArgs");
|
|
21771
|
+
function interpolationToExpression(interpolation, sourceSpan) {
|
|
21772
|
+
const interpolationArgs = collateInterpolationArgs(interpolation.strings, interpolation.expressions);
|
|
21773
|
+
return callVariadicInstructionExpr(VALUE_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);
|
|
21774
|
+
}
|
|
21775
|
+
__name(interpolationToExpression, "interpolationToExpression");
|
|
21947
21776
|
function call(instruction, args, sourceSpan) {
|
|
21948
21777
|
const expr = importExpr(instruction).callFn(args, sourceSpan);
|
|
21949
21778
|
return createStatementOp(new ExpressionStatement(expr, sourceSpan));
|
|
@@ -21977,26 +21806,6 @@ var TEXT_INTERPOLATE_CONFIG = {
|
|
|
21977
21806
|
return (n - 1) / 2;
|
|
21978
21807
|
}, "mapping")
|
|
21979
21808
|
};
|
|
21980
|
-
var PROPERTY_INTERPOLATE_CONFIG = {
|
|
21981
|
-
constant: [
|
|
21982
|
-
Identifiers.propertyInterpolate,
|
|
21983
|
-
Identifiers.propertyInterpolate1,
|
|
21984
|
-
Identifiers.propertyInterpolate2,
|
|
21985
|
-
Identifiers.propertyInterpolate3,
|
|
21986
|
-
Identifiers.propertyInterpolate4,
|
|
21987
|
-
Identifiers.propertyInterpolate5,
|
|
21988
|
-
Identifiers.propertyInterpolate6,
|
|
21989
|
-
Identifiers.propertyInterpolate7,
|
|
21990
|
-
Identifiers.propertyInterpolate8
|
|
21991
|
-
],
|
|
21992
|
-
variable: Identifiers.propertyInterpolateV,
|
|
21993
|
-
mapping: /* @__PURE__ */ __name((n) => {
|
|
21994
|
-
if (n % 2 === 0) {
|
|
21995
|
-
throw new Error(`Expected odd number of arguments`);
|
|
21996
|
-
}
|
|
21997
|
-
return (n - 1) / 2;
|
|
21998
|
-
}, "mapping")
|
|
21999
|
-
};
|
|
22000
21809
|
var VALUE_INTERPOLATE_CONFIG = {
|
|
22001
21810
|
constant: [
|
|
22002
21811
|
Identifiers.interpolate,
|
|
@@ -22017,66 +21826,6 @@ var VALUE_INTERPOLATE_CONFIG = {
|
|
|
22017
21826
|
return (n - 1) / 2;
|
|
22018
21827
|
}, "mapping")
|
|
22019
21828
|
};
|
|
22020
|
-
var STYLE_PROP_INTERPOLATE_CONFIG = {
|
|
22021
|
-
constant: [
|
|
22022
|
-
Identifiers.styleProp,
|
|
22023
|
-
Identifiers.stylePropInterpolate1,
|
|
22024
|
-
Identifiers.stylePropInterpolate2,
|
|
22025
|
-
Identifiers.stylePropInterpolate3,
|
|
22026
|
-
Identifiers.stylePropInterpolate4,
|
|
22027
|
-
Identifiers.stylePropInterpolate5,
|
|
22028
|
-
Identifiers.stylePropInterpolate6,
|
|
22029
|
-
Identifiers.stylePropInterpolate7,
|
|
22030
|
-
Identifiers.stylePropInterpolate8
|
|
22031
|
-
],
|
|
22032
|
-
variable: Identifiers.stylePropInterpolateV,
|
|
22033
|
-
mapping: /* @__PURE__ */ __name((n) => {
|
|
22034
|
-
if (n % 2 === 0) {
|
|
22035
|
-
throw new Error(`Expected odd number of arguments`);
|
|
22036
|
-
}
|
|
22037
|
-
return (n - 1) / 2;
|
|
22038
|
-
}, "mapping")
|
|
22039
|
-
};
|
|
22040
|
-
var STYLE_MAP_INTERPOLATE_CONFIG = {
|
|
22041
|
-
constant: [
|
|
22042
|
-
Identifiers.styleMap,
|
|
22043
|
-
Identifiers.styleMapInterpolate1,
|
|
22044
|
-
Identifiers.styleMapInterpolate2,
|
|
22045
|
-
Identifiers.styleMapInterpolate3,
|
|
22046
|
-
Identifiers.styleMapInterpolate4,
|
|
22047
|
-
Identifiers.styleMapInterpolate5,
|
|
22048
|
-
Identifiers.styleMapInterpolate6,
|
|
22049
|
-
Identifiers.styleMapInterpolate7,
|
|
22050
|
-
Identifiers.styleMapInterpolate8
|
|
22051
|
-
],
|
|
22052
|
-
variable: Identifiers.styleMapInterpolateV,
|
|
22053
|
-
mapping: /* @__PURE__ */ __name((n) => {
|
|
22054
|
-
if (n % 2 === 0) {
|
|
22055
|
-
throw new Error(`Expected odd number of arguments`);
|
|
22056
|
-
}
|
|
22057
|
-
return (n - 1) / 2;
|
|
22058
|
-
}, "mapping")
|
|
22059
|
-
};
|
|
22060
|
-
var CLASS_MAP_INTERPOLATE_CONFIG = {
|
|
22061
|
-
constant: [
|
|
22062
|
-
Identifiers.classMap,
|
|
22063
|
-
Identifiers.classMapInterpolate1,
|
|
22064
|
-
Identifiers.classMapInterpolate2,
|
|
22065
|
-
Identifiers.classMapInterpolate3,
|
|
22066
|
-
Identifiers.classMapInterpolate4,
|
|
22067
|
-
Identifiers.classMapInterpolate5,
|
|
22068
|
-
Identifiers.classMapInterpolate6,
|
|
22069
|
-
Identifiers.classMapInterpolate7,
|
|
22070
|
-
Identifiers.classMapInterpolate8
|
|
22071
|
-
],
|
|
22072
|
-
variable: Identifiers.classMapInterpolateV,
|
|
22073
|
-
mapping: /* @__PURE__ */ __name((n) => {
|
|
22074
|
-
if (n % 2 === 0) {
|
|
22075
|
-
throw new Error(`Expected odd number of arguments`);
|
|
22076
|
-
}
|
|
22077
|
-
return (n - 1) / 2;
|
|
22078
|
-
}, "mapping")
|
|
22079
|
-
};
|
|
22080
21829
|
var PURE_FUNCTION_CONFIG = {
|
|
22081
21830
|
constant: [
|
|
22082
21831
|
Identifiers.pureFunction0,
|
|
@@ -22354,38 +22103,22 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
22354
22103
|
OpList.replace(op, advance(op.delta, op.sourceSpan));
|
|
22355
22104
|
break;
|
|
22356
22105
|
case OpKind.Property:
|
|
22357
|
-
|
|
22358
|
-
OpList.replace(op, propertyInterpolate(op.name, op.expression.strings, op.expression.expressions, op.sanitizer, op.sourceSpan));
|
|
22359
|
-
} else {
|
|
22360
|
-
OpList.replace(op, property(op.name, op.expression, op.sanitizer, op.sourceSpan));
|
|
22361
|
-
}
|
|
22106
|
+
OpList.replace(op, property(op.name, op.expression, op.sanitizer, op.sourceSpan));
|
|
22362
22107
|
break;
|
|
22363
22108
|
case OpKind.TwoWayProperty:
|
|
22364
22109
|
OpList.replace(op, twoWayProperty(op.name, op.expression, op.sanitizer, op.sourceSpan));
|
|
22365
22110
|
break;
|
|
22366
22111
|
case OpKind.StyleProp:
|
|
22367
|
-
|
|
22368
|
-
OpList.replace(op, stylePropInterpolate(op.name, op.expression.strings, op.expression.expressions, op.unit, op.sourceSpan));
|
|
22369
|
-
} else {
|
|
22370
|
-
OpList.replace(op, styleProp(op.name, op.expression, op.unit, op.sourceSpan));
|
|
22371
|
-
}
|
|
22112
|
+
OpList.replace(op, styleProp(op.name, op.expression, op.unit, op.sourceSpan));
|
|
22372
22113
|
break;
|
|
22373
22114
|
case OpKind.ClassProp:
|
|
22374
22115
|
OpList.replace(op, classProp(op.name, op.expression, op.sourceSpan));
|
|
22375
22116
|
break;
|
|
22376
22117
|
case OpKind.StyleMap:
|
|
22377
|
-
|
|
22378
|
-
OpList.replace(op, styleMapInterpolate(op.expression.strings, op.expression.expressions, op.sourceSpan));
|
|
22379
|
-
} else {
|
|
22380
|
-
OpList.replace(op, styleMap(op.expression, op.sourceSpan));
|
|
22381
|
-
}
|
|
22118
|
+
OpList.replace(op, styleMap(op.expression, op.sourceSpan));
|
|
22382
22119
|
break;
|
|
22383
22120
|
case OpKind.ClassMap:
|
|
22384
|
-
|
|
22385
|
-
OpList.replace(op, classMapInterpolate(op.expression.strings, op.expression.expressions, op.sourceSpan));
|
|
22386
|
-
} else {
|
|
22387
|
-
OpList.replace(op, classMap(op.expression, op.sourceSpan));
|
|
22388
|
-
}
|
|
22121
|
+
OpList.replace(op, classMap(op.expression, op.sourceSpan));
|
|
22389
22122
|
break;
|
|
22390
22123
|
case OpKind.I18nExpression:
|
|
22391
22124
|
OpList.replace(op, i18nExp(op.expression, op.sourceSpan));
|
|
@@ -22397,11 +22130,7 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
22397
22130
|
OpList.replace(op, textInterpolate(op.interpolation.strings, op.interpolation.expressions, op.sourceSpan));
|
|
22398
22131
|
break;
|
|
22399
22132
|
case OpKind.Attribute:
|
|
22400
|
-
|
|
22401
|
-
OpList.replace(op, attributeInterpolate(op.name, op.expression.strings, op.expression.expressions, op.sanitizer, op.namespace, op.sourceSpan));
|
|
22402
|
-
} else {
|
|
22403
|
-
OpList.replace(op, attribute(op.name, op.expression, op.sanitizer, op.namespace));
|
|
22404
|
-
}
|
|
22133
|
+
OpList.replace(op, attribute(op.name, op.expression, op.sanitizer, op.namespace, op.sourceSpan));
|
|
22405
22134
|
break;
|
|
22406
22135
|
case OpKind.DomProperty:
|
|
22407
22136
|
if (op.expression instanceof Interpolation2) {
|
|
@@ -23501,14 +23230,19 @@ __name(countVariables, "countVariables");
|
|
|
23501
23230
|
function varsUsedByOp(op) {
|
|
23502
23231
|
let slots;
|
|
23503
23232
|
switch (op.kind) {
|
|
23504
|
-
case OpKind.Property:
|
|
23505
|
-
case OpKind.DomProperty:
|
|
23506
23233
|
case OpKind.Attribute:
|
|
23507
23234
|
slots = 1;
|
|
23508
23235
|
if (op.expression instanceof Interpolation2 && !isSingletonInterpolation(op.expression)) {
|
|
23509
23236
|
slots += op.expression.expressions.length;
|
|
23510
23237
|
}
|
|
23511
23238
|
return slots;
|
|
23239
|
+
case OpKind.Property:
|
|
23240
|
+
case OpKind.DomProperty:
|
|
23241
|
+
slots = 1;
|
|
23242
|
+
if (op.expression instanceof Interpolation2) {
|
|
23243
|
+
slots += op.expression.expressions.length;
|
|
23244
|
+
}
|
|
23245
|
+
return slots;
|
|
23512
23246
|
case OpKind.TwoWayProperty:
|
|
23513
23247
|
return 1;
|
|
23514
23248
|
case OpKind.StyleProp:
|
|
@@ -30789,7 +30523,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
30789
30523
|
function compileDeclareClassMetadata(metadata) {
|
|
30790
30524
|
const definitionMap = new DefinitionMap();
|
|
30791
30525
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
30792
|
-
definitionMap.set("version", literal("20.0.0
|
|
30526
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
30793
30527
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30794
30528
|
definitionMap.set("type", metadata.type);
|
|
30795
30529
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -30808,7 +30542,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
30808
30542
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
30809
30543
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
30810
30544
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
30811
|
-
definitionMap.set("version", literal("20.0.0
|
|
30545
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
30812
30546
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30813
30547
|
definitionMap.set("type", metadata.type);
|
|
30814
30548
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -30877,7 +30611,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
30877
30611
|
const definitionMap = new DefinitionMap();
|
|
30878
30612
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
30879
30613
|
definitionMap.set("minVersion", literal(minVersion));
|
|
30880
|
-
definitionMap.set("version", literal("20.0.0
|
|
30614
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
30881
30615
|
definitionMap.set("type", meta.type.value);
|
|
30882
30616
|
if (meta.isStandalone !== void 0) {
|
|
30883
30617
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -31204,7 +30938,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
31204
30938
|
function compileDeclareFactoryFunction(meta) {
|
|
31205
30939
|
const definitionMap = new DefinitionMap();
|
|
31206
30940
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31207
|
-
definitionMap.set("version", literal("20.0.0
|
|
30941
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
31208
30942
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31209
30943
|
definitionMap.set("type", meta.type.value);
|
|
31210
30944
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -31227,7 +30961,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
31227
30961
|
function createInjectableDefinitionMap(meta) {
|
|
31228
30962
|
const definitionMap = new DefinitionMap();
|
|
31229
30963
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
31230
|
-
definitionMap.set("version", literal("20.0.0
|
|
30964
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
31231
30965
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31232
30966
|
definitionMap.set("type", meta.type.value);
|
|
31233
30967
|
if (meta.providedIn !== void 0) {
|
|
@@ -31265,7 +30999,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
31265
30999
|
function createInjectorDefinitionMap(meta) {
|
|
31266
31000
|
const definitionMap = new DefinitionMap();
|
|
31267
31001
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
31268
|
-
definitionMap.set("version", literal("20.0.0
|
|
31002
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
31269
31003
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31270
31004
|
definitionMap.set("type", meta.type.value);
|
|
31271
31005
|
definitionMap.set("providers", meta.providers);
|
|
@@ -31289,7 +31023,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
31289
31023
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
31290
31024
|
}
|
|
31291
31025
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
31292
|
-
definitionMap.set("version", literal("20.0.0
|
|
31026
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
31293
31027
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31294
31028
|
definitionMap.set("type", meta.type.value);
|
|
31295
31029
|
if (meta.bootstrap.length > 0) {
|
|
@@ -31324,7 +31058,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
31324
31058
|
function createPipeDefinitionMap(meta) {
|
|
31325
31059
|
const definitionMap = new DefinitionMap();
|
|
31326
31060
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
31327
|
-
definitionMap.set("version", literal("20.0.0
|
|
31061
|
+
definitionMap.set("version", literal("20.0.0"));
|
|
31328
31062
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31329
31063
|
definitionMap.set("type", meta.type.value);
|
|
31330
31064
|
if (meta.isStandalone !== void 0) {
|
|
@@ -31421,7 +31155,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
31421
31155
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
31422
31156
|
}
|
|
31423
31157
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
31424
|
-
var VERSION = new Version("20.0.0
|
|
31158
|
+
var VERSION = new Version("20.0.0");
|
|
31425
31159
|
publishFacade(_global);
|
|
31426
31160
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31427
31161
|
0 && (module.exports = {
|
|
@@ -31688,7 +31422,7 @@ publishFacade(_global);
|
|
|
31688
31422
|
|
|
31689
31423
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
31690
31424
|
(**
|
|
31691
|
-
* @license Angular v20.0.0
|
|
31425
|
+
* @license Angular v20.0.0
|
|
31692
31426
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
31693
31427
|
* License: MIT
|
|
31694
31428
|
*)
|