@angular-eslint/bundled-angular-compiler 19.2.2-alpha.4 → 19.2.2-alpha.6
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 +243 -266
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
Chain: () => Chain,
|
|
44
44
|
ChangeDetectionStrategy: () => ChangeDetectionStrategy,
|
|
45
45
|
CommaExpr: () => CommaExpr,
|
|
46
|
-
Comment: () =>
|
|
46
|
+
Comment: () => Comment2,
|
|
47
47
|
CompilerConfig: () => CompilerConfig,
|
|
48
48
|
Conditional: () => Conditional,
|
|
49
49
|
ConditionalExpr: () => ConditionalExpr,
|
|
@@ -56,7 +56,7 @@ __export(index_exports, {
|
|
|
56
56
|
DomElementSchemaRegistry: () => DomElementSchemaRegistry,
|
|
57
57
|
DynamicImportExpr: () => DynamicImportExpr,
|
|
58
58
|
EOF: () => EOF,
|
|
59
|
-
Element: () =>
|
|
59
|
+
Element: () => Element2,
|
|
60
60
|
ElementSchemaRegistry: () => ElementSchemaRegistry,
|
|
61
61
|
EmitterVisitorContext: () => EmitterVisitorContext,
|
|
62
62
|
EmptyExpr: () => EmptyExpr$1,
|
|
@@ -84,7 +84,7 @@ __export(index_exports, {
|
|
|
84
84
|
KeyedRead: () => KeyedRead,
|
|
85
85
|
KeyedWrite: () => KeyedWrite,
|
|
86
86
|
LeadingComment: () => LeadingComment,
|
|
87
|
-
LetDeclaration: () =>
|
|
87
|
+
LetDeclaration: () => LetDeclaration2,
|
|
88
88
|
Lexer: () => Lexer,
|
|
89
89
|
LiteralArray: () => LiteralArray,
|
|
90
90
|
LiteralArrayExpr: () => LiteralArrayExpr,
|
|
@@ -112,7 +112,7 @@ __export(index_exports, {
|
|
|
112
112
|
ParsedProperty: () => ParsedProperty,
|
|
113
113
|
ParsedPropertyType: () => ParsedPropertyType,
|
|
114
114
|
ParsedVariable: () => ParsedVariable,
|
|
115
|
-
Parser: () =>
|
|
115
|
+
Parser: () => Parser2,
|
|
116
116
|
ParserError: () => ParserError,
|
|
117
117
|
PrefixNot: () => PrefixNot,
|
|
118
118
|
PropertyRead: () => PropertyRead,
|
|
@@ -126,8 +126,8 @@ __export(index_exports, {
|
|
|
126
126
|
ReadKeyExpr: () => ReadKeyExpr,
|
|
127
127
|
ReadPropExpr: () => ReadPropExpr,
|
|
128
128
|
ReadVarExpr: () => ReadVarExpr,
|
|
129
|
-
RecursiveAstVisitor: () =>
|
|
130
|
-
RecursiveVisitor: () =>
|
|
129
|
+
RecursiveAstVisitor: () => RecursiveAstVisitor2,
|
|
130
|
+
RecursiveVisitor: () => RecursiveVisitor2,
|
|
131
131
|
ResourceLoader: () => ResourceLoader,
|
|
132
132
|
ReturnStatement: () => ReturnStatement,
|
|
133
133
|
STRING_TYPE: () => STRING_TYPE,
|
|
@@ -150,7 +150,7 @@ __export(index_exports, {
|
|
|
150
150
|
TemplateLiteralElement: () => TemplateLiteralElement,
|
|
151
151
|
TemplateLiteralElementExpr: () => TemplateLiteralElementExpr,
|
|
152
152
|
TemplateLiteralExpr: () => TemplateLiteralExpr,
|
|
153
|
-
Text: () =>
|
|
153
|
+
Text: () => Text4,
|
|
154
154
|
ThisReceiver: () => ThisReceiver,
|
|
155
155
|
TmplAstBlockNode: () => BlockNode,
|
|
156
156
|
TmplAstBoundAttribute: () => BoundAttribute,
|
|
@@ -269,7 +269,7 @@ __export(index_exports, {
|
|
|
269
269
|
});
|
|
270
270
|
module.exports = __toCommonJS(index_exports);
|
|
271
271
|
|
|
272
|
-
// ../../node_modules/.pnpm/@angular+compiler@19.2.
|
|
272
|
+
// ../../node_modules/.pnpm/@angular+compiler@19.2.3/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
273
273
|
var _SELECTOR_REGEXP = new RegExp(
|
|
274
274
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
275
275
|
// 8: ","
|
|
@@ -730,25 +730,25 @@ function parseSelectorToR3Selector(selector) {
|
|
|
730
730
|
__name(parseSelectorToR3Selector, "parseSelectorToR3Selector");
|
|
731
731
|
var core = /* @__PURE__ */ Object.freeze({
|
|
732
732
|
__proto__: null,
|
|
733
|
-
|
|
734
|
-
get ViewEncapsulation() {
|
|
735
|
-
return ViewEncapsulation;
|
|
736
|
-
},
|
|
733
|
+
CUSTOM_ELEMENTS_SCHEMA,
|
|
737
734
|
get ChangeDetectionStrategy() {
|
|
738
735
|
return ChangeDetectionStrategy;
|
|
739
736
|
},
|
|
740
737
|
get InputFlags() {
|
|
741
738
|
return InputFlags;
|
|
742
739
|
},
|
|
743
|
-
|
|
740
|
+
get MissingTranslationStrategy() {
|
|
741
|
+
return MissingTranslationStrategy;
|
|
742
|
+
},
|
|
744
743
|
NO_ERRORS_SCHEMA,
|
|
745
|
-
Type: Type$1,
|
|
746
744
|
get SecurityContext() {
|
|
747
745
|
return SecurityContext;
|
|
748
746
|
},
|
|
749
|
-
|
|
750
|
-
|
|
747
|
+
Type: Type$1,
|
|
748
|
+
get ViewEncapsulation() {
|
|
749
|
+
return ViewEncapsulation;
|
|
751
750
|
},
|
|
751
|
+
emitDistinctChangesOnlyDefaultValue,
|
|
752
752
|
parseSelectorToR3Selector
|
|
753
753
|
});
|
|
754
754
|
var textEncoder;
|
|
@@ -2239,9 +2239,9 @@ var IfStmt = class _IfStmt extends Statement {
|
|
|
2239
2239
|
return visitor.visitIfStmt(this, context);
|
|
2240
2240
|
}
|
|
2241
2241
|
};
|
|
2242
|
-
var RecursiveAstVisitor$1 = class {
|
|
2242
|
+
var RecursiveAstVisitor$1 = class RecursiveAstVisitor {
|
|
2243
2243
|
static {
|
|
2244
|
-
__name(this, "RecursiveAstVisitor
|
|
2244
|
+
__name(this, "RecursiveAstVisitor");
|
|
2245
2245
|
}
|
|
2246
2246
|
visitType(ast, context) {
|
|
2247
2247
|
return ast;
|
|
@@ -2530,99 +2530,99 @@ function serializeTags(tags) {
|
|
|
2530
2530
|
__name(serializeTags, "serializeTags");
|
|
2531
2531
|
var output_ast = /* @__PURE__ */ Object.freeze({
|
|
2532
2532
|
__proto__: null,
|
|
2533
|
-
get TypeModifier() {
|
|
2534
|
-
return TypeModifier;
|
|
2535
|
-
},
|
|
2536
|
-
Type,
|
|
2537
|
-
get BuiltinTypeName() {
|
|
2538
|
-
return BuiltinTypeName;
|
|
2539
|
-
},
|
|
2540
|
-
BuiltinType,
|
|
2541
|
-
ExpressionType,
|
|
2542
2533
|
ArrayType,
|
|
2543
|
-
|
|
2544
|
-
TransplantedType,
|
|
2545
|
-
DYNAMIC_TYPE,
|
|
2546
|
-
INFERRED_TYPE,
|
|
2534
|
+
ArrowFunctionExpr,
|
|
2547
2535
|
BOOL_TYPE,
|
|
2548
|
-
INT_TYPE,
|
|
2549
|
-
NUMBER_TYPE,
|
|
2550
|
-
STRING_TYPE,
|
|
2551
|
-
FUNCTION_TYPE,
|
|
2552
|
-
NONE_TYPE,
|
|
2553
|
-
get UnaryOperator() {
|
|
2554
|
-
return UnaryOperator;
|
|
2555
|
-
},
|
|
2556
2536
|
get BinaryOperator() {
|
|
2557
2537
|
return BinaryOperator;
|
|
2558
2538
|
},
|
|
2559
|
-
|
|
2560
|
-
|
|
2539
|
+
BinaryOperatorExpr,
|
|
2540
|
+
BuiltinType,
|
|
2541
|
+
get BuiltinTypeName() {
|
|
2542
|
+
return BuiltinTypeName;
|
|
2543
|
+
},
|
|
2544
|
+
CommaExpr,
|
|
2545
|
+
ConditionalExpr,
|
|
2546
|
+
DYNAMIC_TYPE,
|
|
2547
|
+
DeclareFunctionStmt,
|
|
2548
|
+
DeclareVarStmt,
|
|
2549
|
+
DynamicImportExpr,
|
|
2561
2550
|
Expression,
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
WrappedNodeExpr,
|
|
2565
|
-
WriteVarExpr,
|
|
2566
|
-
WriteKeyExpr,
|
|
2567
|
-
WritePropExpr,
|
|
2568
|
-
InvokeFunctionExpr,
|
|
2569
|
-
TaggedTemplateLiteralExpr,
|
|
2570
|
-
InstantiateExpr,
|
|
2571
|
-
LiteralExpr,
|
|
2572
|
-
TemplateLiteralExpr,
|
|
2573
|
-
TemplateLiteralElementExpr,
|
|
2574
|
-
LiteralPiece,
|
|
2575
|
-
PlaceholderPiece,
|
|
2576
|
-
LocalizedString,
|
|
2551
|
+
ExpressionStatement,
|
|
2552
|
+
ExpressionType,
|
|
2577
2553
|
ExternalExpr,
|
|
2578
2554
|
ExternalReference,
|
|
2579
|
-
|
|
2580
|
-
DynamicImportExpr,
|
|
2581
|
-
NotExpr,
|
|
2555
|
+
FUNCTION_TYPE,
|
|
2582
2556
|
FnParam,
|
|
2583
2557
|
FunctionExpr,
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2558
|
+
INFERRED_TYPE,
|
|
2559
|
+
INT_TYPE,
|
|
2560
|
+
IfStmt,
|
|
2561
|
+
InstantiateExpr,
|
|
2562
|
+
InvokeFunctionExpr,
|
|
2563
|
+
JSDocComment,
|
|
2564
|
+
LeadingComment,
|
|
2589
2565
|
LiteralArrayExpr,
|
|
2566
|
+
LiteralExpr,
|
|
2590
2567
|
LiteralMapEntry,
|
|
2591
2568
|
LiteralMapExpr,
|
|
2592
|
-
|
|
2569
|
+
LiteralPiece,
|
|
2570
|
+
LocalizedString,
|
|
2571
|
+
MapType,
|
|
2572
|
+
NONE_TYPE,
|
|
2593
2573
|
NULL_EXPR,
|
|
2594
|
-
|
|
2574
|
+
NUMBER_TYPE,
|
|
2575
|
+
NotExpr,
|
|
2576
|
+
PlaceholderPiece,
|
|
2577
|
+
ReadKeyExpr,
|
|
2578
|
+
ReadPropExpr,
|
|
2579
|
+
ReadVarExpr,
|
|
2580
|
+
RecursiveAstVisitor: RecursiveAstVisitor$1,
|
|
2581
|
+
ReturnStatement,
|
|
2582
|
+
STRING_TYPE,
|
|
2583
|
+
Statement,
|
|
2595
2584
|
get StmtModifier() {
|
|
2596
2585
|
return StmtModifier;
|
|
2597
2586
|
},
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2587
|
+
TYPED_NULL_EXPR,
|
|
2588
|
+
TaggedTemplateLiteralExpr,
|
|
2589
|
+
TemplateLiteralElementExpr,
|
|
2590
|
+
TemplateLiteralExpr,
|
|
2591
|
+
TransplantedType,
|
|
2592
|
+
Type,
|
|
2593
|
+
get TypeModifier() {
|
|
2594
|
+
return TypeModifier;
|
|
2595
|
+
},
|
|
2596
|
+
TypeofExpr,
|
|
2597
|
+
get UnaryOperator() {
|
|
2598
|
+
return UnaryOperator;
|
|
2599
|
+
},
|
|
2600
|
+
UnaryOperatorExpr,
|
|
2601
|
+
WrappedNodeExpr,
|
|
2602
|
+
WriteKeyExpr,
|
|
2603
|
+
WritePropExpr,
|
|
2604
|
+
WriteVarExpr,
|
|
2605
|
+
areAllEquivalent,
|
|
2606
|
+
arrowFn,
|
|
2607
|
+
expressionType,
|
|
2608
|
+
fn,
|
|
2609
|
+
ifStmt,
|
|
2610
2610
|
importExpr,
|
|
2611
2611
|
importType,
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2612
|
+
isNull,
|
|
2613
|
+
jsDocComment,
|
|
2614
|
+
leadingComment,
|
|
2615
|
+
literal,
|
|
2615
2616
|
literalArr,
|
|
2616
2617
|
literalMap,
|
|
2617
|
-
|
|
2618
|
+
localizedString,
|
|
2618
2619
|
not,
|
|
2619
|
-
|
|
2620
|
-
arrowFn,
|
|
2621
|
-
ifStmt,
|
|
2620
|
+
nullSafeIsEquivalent,
|
|
2622
2621
|
taggedTemplate,
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2622
|
+
transplantedType,
|
|
2623
|
+
typeofExpr,
|
|
2624
|
+
unary,
|
|
2625
|
+
variable
|
|
2626
2626
|
});
|
|
2627
2627
|
var CONSTANT_PREFIX = "_c";
|
|
2628
2628
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
@@ -4382,9 +4382,9 @@ var ASTWithName = class extends AST {
|
|
|
4382
4382
|
this.nameSpan = nameSpan;
|
|
4383
4383
|
}
|
|
4384
4384
|
};
|
|
4385
|
-
var EmptyExpr$1 = class extends AST {
|
|
4385
|
+
var EmptyExpr$1 = class EmptyExpr extends AST {
|
|
4386
4386
|
static {
|
|
4387
|
-
__name(this, "EmptyExpr
|
|
4387
|
+
__name(this, "EmptyExpr");
|
|
4388
4388
|
}
|
|
4389
4389
|
visit(visitor, context = null) {
|
|
4390
4390
|
}
|
|
@@ -4587,9 +4587,9 @@ var LiteralMap = class extends AST {
|
|
|
4587
4587
|
return visitor.visitLiteralMap(this, context);
|
|
4588
4588
|
}
|
|
4589
4589
|
};
|
|
4590
|
-
var Interpolation$1 = class extends AST {
|
|
4590
|
+
var Interpolation$1 = class Interpolation extends AST {
|
|
4591
4591
|
static {
|
|
4592
|
-
__name(this, "Interpolation
|
|
4592
|
+
__name(this, "Interpolation");
|
|
4593
4593
|
}
|
|
4594
4594
|
strings;
|
|
4595
4595
|
expressions;
|
|
@@ -4836,7 +4836,7 @@ var ExpressionBinding = class {
|
|
|
4836
4836
|
this.value = value;
|
|
4837
4837
|
}
|
|
4838
4838
|
};
|
|
4839
|
-
var
|
|
4839
|
+
var RecursiveAstVisitor2 = class {
|
|
4840
4840
|
static {
|
|
4841
4841
|
__name(this, "RecursiveAstVisitor");
|
|
4842
4842
|
}
|
|
@@ -5082,9 +5082,9 @@ function mergeNsAndName(prefix, localName) {
|
|
|
5082
5082
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
5083
5083
|
}
|
|
5084
5084
|
__name(mergeNsAndName, "mergeNsAndName");
|
|
5085
|
-
var Comment$1 = class {
|
|
5085
|
+
var Comment$1 = class Comment {
|
|
5086
5086
|
static {
|
|
5087
|
-
__name(this, "Comment
|
|
5087
|
+
__name(this, "Comment");
|
|
5088
5088
|
}
|
|
5089
5089
|
value;
|
|
5090
5090
|
sourceSpan;
|
|
@@ -5096,9 +5096,9 @@ var Comment$1 = class {
|
|
|
5096
5096
|
throw new Error("visit() not implemented for Comment");
|
|
5097
5097
|
}
|
|
5098
5098
|
};
|
|
5099
|
-
var Text$3 = class {
|
|
5099
|
+
var Text$3 = class Text {
|
|
5100
5100
|
static {
|
|
5101
|
-
__name(this, "Text
|
|
5101
|
+
__name(this, "Text");
|
|
5102
5102
|
}
|
|
5103
5103
|
value;
|
|
5104
5104
|
sourceSpan;
|
|
@@ -5216,9 +5216,9 @@ var BoundEvent = class _BoundEvent {
|
|
|
5216
5216
|
return visitor.visitBoundEvent(this);
|
|
5217
5217
|
}
|
|
5218
5218
|
};
|
|
5219
|
-
var Element$1 = class {
|
|
5219
|
+
var Element$1 = class Element {
|
|
5220
5220
|
static {
|
|
5221
|
-
__name(this, "Element
|
|
5221
|
+
__name(this, "Element");
|
|
5222
5222
|
}
|
|
5223
5223
|
name;
|
|
5224
5224
|
attributes;
|
|
@@ -5576,9 +5576,9 @@ var UnknownBlock = class {
|
|
|
5576
5576
|
return visitor.visitUnknownBlock(this);
|
|
5577
5577
|
}
|
|
5578
5578
|
};
|
|
5579
|
-
var LetDeclaration$1 = class {
|
|
5579
|
+
var LetDeclaration$1 = class LetDeclaration {
|
|
5580
5580
|
static {
|
|
5581
|
-
__name(this, "LetDeclaration
|
|
5581
|
+
__name(this, "LetDeclaration");
|
|
5582
5582
|
}
|
|
5583
5583
|
name;
|
|
5584
5584
|
value;
|
|
@@ -5691,9 +5691,9 @@ var Reference = class {
|
|
|
5691
5691
|
return visitor.visitReference(this);
|
|
5692
5692
|
}
|
|
5693
5693
|
};
|
|
5694
|
-
var Icu$1 = class {
|
|
5694
|
+
var Icu$1 = class Icu {
|
|
5695
5695
|
static {
|
|
5696
|
-
__name(this, "Icu
|
|
5696
|
+
__name(this, "Icu");
|
|
5697
5697
|
}
|
|
5698
5698
|
vars;
|
|
5699
5699
|
placeholders;
|
|
@@ -5709,9 +5709,9 @@ var Icu$1 = class {
|
|
|
5709
5709
|
return visitor.visitIcu(this);
|
|
5710
5710
|
}
|
|
5711
5711
|
};
|
|
5712
|
-
var RecursiveVisitor$1 = class {
|
|
5712
|
+
var RecursiveVisitor$1 = class RecursiveVisitor {
|
|
5713
5713
|
static {
|
|
5714
|
-
__name(this, "RecursiveVisitor
|
|
5714
|
+
__name(this, "RecursiveVisitor");
|
|
5715
5715
|
}
|
|
5716
5716
|
visitElement(element2) {
|
|
5717
5717
|
visitAll$1(this, element2.attributes);
|
|
@@ -5852,9 +5852,9 @@ var Message = class {
|
|
|
5852
5852
|
}
|
|
5853
5853
|
}
|
|
5854
5854
|
};
|
|
5855
|
-
var Text$2 = class {
|
|
5855
|
+
var Text$2 = class Text2 {
|
|
5856
5856
|
static {
|
|
5857
|
-
__name(this, "Text
|
|
5857
|
+
__name(this, "Text");
|
|
5858
5858
|
}
|
|
5859
5859
|
value;
|
|
5860
5860
|
sourceSpan;
|
|
@@ -5880,7 +5880,7 @@ var Container = class {
|
|
|
5880
5880
|
return visitor.visitContainer(this, context);
|
|
5881
5881
|
}
|
|
5882
5882
|
};
|
|
5883
|
-
var
|
|
5883
|
+
var Icu2 = class {
|
|
5884
5884
|
static {
|
|
5885
5885
|
__name(this, "Icu");
|
|
5886
5886
|
}
|
|
@@ -6002,7 +6002,7 @@ var CloneVisitor = class {
|
|
|
6002
6002
|
visitIcu(icu, context) {
|
|
6003
6003
|
const cases = {};
|
|
6004
6004
|
Object.keys(icu.cases).forEach((key) => cases[key] = icu.cases[key].visit(this, context));
|
|
6005
|
-
const msg = new
|
|
6005
|
+
const msg = new Icu2(icu.expression, icu.type, cases, icu.sourceSpan, icu.expressionPlaceholder);
|
|
6006
6006
|
return msg;
|
|
6007
6007
|
}
|
|
6008
6008
|
visitTagPlaceholder(ph, context) {
|
|
@@ -6146,9 +6146,9 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
6146
6146
|
this.publicToInternal[publicName] = internalName;
|
|
6147
6147
|
}
|
|
6148
6148
|
};
|
|
6149
|
-
var _Visitor$2 = class {
|
|
6149
|
+
var _Visitor$2 = class _Visitor {
|
|
6150
6150
|
static {
|
|
6151
|
-
__name(this, "_Visitor
|
|
6151
|
+
__name(this, "_Visitor");
|
|
6152
6152
|
}
|
|
6153
6153
|
visitTag(tag) {
|
|
6154
6154
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -6225,9 +6225,9 @@ var Tag = class {
|
|
|
6225
6225
|
return visitor.visitTag(this);
|
|
6226
6226
|
}
|
|
6227
6227
|
};
|
|
6228
|
-
var Text$1 = class {
|
|
6228
|
+
var Text$1 = class Text3 {
|
|
6229
6229
|
static {
|
|
6230
|
-
__name(this, "Text
|
|
6230
|
+
__name(this, "Text");
|
|
6231
6231
|
}
|
|
6232
6232
|
value;
|
|
6233
6233
|
constructor(unescapedValue) {
|
|
@@ -6327,9 +6327,9 @@ var Xmb = class extends Serializer {
|
|
|
6327
6327
|
return new SimplePlaceholderMapper(message, toPublicName);
|
|
6328
6328
|
}
|
|
6329
6329
|
};
|
|
6330
|
-
var _Visitor$1 = class {
|
|
6330
|
+
var _Visitor$1 = class _Visitor2 {
|
|
6331
6331
|
static {
|
|
6332
|
-
__name(this, "_Visitor
|
|
6332
|
+
__name(this, "_Visitor");
|
|
6333
6333
|
}
|
|
6334
6334
|
visitText(text2, context) {
|
|
6335
6335
|
return [new Text$1(text2.value)];
|
|
@@ -7374,8 +7374,7 @@ function compileNgModule(meta) {
|
|
|
7374
7374
|
if (setNgModuleScopeCall !== null) {
|
|
7375
7375
|
statements.push(setNgModuleScopeCall);
|
|
7376
7376
|
}
|
|
7377
|
-
} else
|
|
7378
|
-
}
|
|
7377
|
+
} else ;
|
|
7379
7378
|
if (meta.schemas !== null && meta.schemas.length > 0) {
|
|
7380
7379
|
definitionMap.set("schemas", literalArr(meta.schemas.map((ref) => ref.value)));
|
|
7381
7380
|
}
|
|
@@ -8575,7 +8574,7 @@ function createInterpolateTextOp(xref, interpolation, sourceSpan) {
|
|
|
8575
8574
|
};
|
|
8576
8575
|
}
|
|
8577
8576
|
__name(createInterpolateTextOp, "createInterpolateTextOp");
|
|
8578
|
-
var
|
|
8577
|
+
var Interpolation2 = class {
|
|
8579
8578
|
static {
|
|
8580
8579
|
__name(this, "Interpolation");
|
|
8581
8580
|
}
|
|
@@ -9441,7 +9440,7 @@ var SafeTernaryExpr = class _SafeTernaryExpr extends ExpressionBase {
|
|
|
9441
9440
|
return new _SafeTernaryExpr(this.guard.clone(), this.expr.clone());
|
|
9442
9441
|
}
|
|
9443
9442
|
};
|
|
9444
|
-
var
|
|
9443
|
+
var EmptyExpr2 = class _EmptyExpr extends ExpressionBase {
|
|
9445
9444
|
static {
|
|
9446
9445
|
__name(this, "EmptyExpr");
|
|
9447
9446
|
}
|
|
@@ -9637,7 +9636,7 @@ function transformExpressionsInOp(op, transform2, flags) {
|
|
|
9637
9636
|
case OpKind.ClassProp:
|
|
9638
9637
|
case OpKind.ClassMap:
|
|
9639
9638
|
case OpKind.Binding:
|
|
9640
|
-
if (op.expression instanceof
|
|
9639
|
+
if (op.expression instanceof Interpolation2) {
|
|
9641
9640
|
transformExpressionsInInterpolation(op.expression, transform2, flags);
|
|
9642
9641
|
} else {
|
|
9643
9642
|
op.expression = transformExpressionsInExpression(op.expression, transform2, flags);
|
|
@@ -9646,7 +9645,7 @@ function transformExpressionsInOp(op, transform2, flags) {
|
|
|
9646
9645
|
case OpKind.Property:
|
|
9647
9646
|
case OpKind.HostProperty:
|
|
9648
9647
|
case OpKind.Attribute:
|
|
9649
|
-
if (op.expression instanceof
|
|
9648
|
+
if (op.expression instanceof Interpolation2) {
|
|
9650
9649
|
transformExpressionsInInterpolation(op.expression, transform2, flags);
|
|
9651
9650
|
} else {
|
|
9652
9651
|
op.expression = transformExpressionsInExpression(op.expression, transform2, flags);
|
|
@@ -9826,13 +9825,13 @@ function transformExpressionsInExpression(expr, transform2, flags) {
|
|
|
9826
9825
|
} else {
|
|
9827
9826
|
expr.body = transformExpressionsInExpression(expr.body, transform2, flags);
|
|
9828
9827
|
}
|
|
9829
|
-
} else if (expr instanceof WrappedNodeExpr)
|
|
9830
|
-
|
|
9828
|
+
} else if (expr instanceof WrappedNodeExpr) ;
|
|
9829
|
+
else if (expr instanceof TemplateLiteralExpr) {
|
|
9831
9830
|
for (let i = 0; i < expr.expressions.length; i++) {
|
|
9832
9831
|
expr.expressions[i] = transformExpressionsInExpression(expr.expressions[i], transform2, flags);
|
|
9833
9832
|
}
|
|
9834
|
-
} else if (expr instanceof ReadVarExpr || expr instanceof ExternalExpr || expr instanceof LiteralExpr)
|
|
9835
|
-
|
|
9833
|
+
} else if (expr instanceof ReadVarExpr || expr instanceof ExternalExpr || expr instanceof LiteralExpr) ;
|
|
9834
|
+
else {
|
|
9836
9835
|
throw new Error(`Unhandled expression kind: ${expr.constructor.name}`);
|
|
9837
9836
|
}
|
|
9838
9837
|
return transform2(expr, flags);
|
|
@@ -10881,7 +10880,7 @@ function extractAttributes(job) {
|
|
|
10881
10880
|
break;
|
|
10882
10881
|
case OpKind.StyleProp:
|
|
10883
10882
|
case OpKind.ClassProp:
|
|
10884
|
-
if (unit.job.compatibility === CompatibilityMode.TemplateDefinitionBuilder && op.expression instanceof
|
|
10883
|
+
if (unit.job.compatibility === CompatibilityMode.TemplateDefinitionBuilder && op.expression instanceof EmptyExpr2) {
|
|
10885
10884
|
OpList.insertBefore(createExtractedAttributeOp(
|
|
10886
10885
|
op.target,
|
|
10887
10886
|
BindingKind.Property,
|
|
@@ -10954,7 +10953,7 @@ function lookupElement$2(elements, xref) {
|
|
|
10954
10953
|
}
|
|
10955
10954
|
__name(lookupElement$2, "lookupElement$2");
|
|
10956
10955
|
function extractAttributeOp(unit, op, elements) {
|
|
10957
|
-
if (op.expression instanceof
|
|
10956
|
+
if (op.expression instanceof Interpolation2) {
|
|
10958
10957
|
return;
|
|
10959
10958
|
}
|
|
10960
10959
|
let extractable = op.isTextAttribute || op.expression.isConstant();
|
|
@@ -11106,7 +11105,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
11106
11105
|
for (const unit of job.units) {
|
|
11107
11106
|
for (const op of unit.update) {
|
|
11108
11107
|
const eligibleOpKind = op.kind === OpKind.Attribute;
|
|
11109
|
-
if (eligibleOpKind && op.expression instanceof
|
|
11108
|
+
if (eligibleOpKind && op.expression instanceof Interpolation2 && op.expression.strings.length === 2 && op.expression.strings.every((s) => s === "")) {
|
|
11110
11109
|
op.expression = op.expression.expressions[0];
|
|
11111
11110
|
}
|
|
11112
11111
|
}
|
|
@@ -11409,7 +11408,7 @@ function convertI18nBindings(job) {
|
|
|
11409
11408
|
if (op.i18nContext === null) {
|
|
11410
11409
|
continue;
|
|
11411
11410
|
}
|
|
11412
|
-
if (!(op.expression instanceof
|
|
11411
|
+
if (!(op.expression instanceof Interpolation2)) {
|
|
11413
11412
|
continue;
|
|
11414
11413
|
}
|
|
11415
11414
|
const i18nAttributesForElem = i18nAttributesByElem.get(op.target);
|
|
@@ -11546,7 +11545,6 @@ function deduplicateTextBindings(job) {
|
|
|
11546
11545
|
if (op.name === "style" || op.name === "class") {
|
|
11547
11546
|
OpList.remove(op);
|
|
11548
11547
|
}
|
|
11549
|
-
} else {
|
|
11550
11548
|
}
|
|
11551
11549
|
}
|
|
11552
11550
|
seenForElement.add(op.name);
|
|
@@ -11663,9 +11661,9 @@ function resolveDeferTargetNames(job) {
|
|
|
11663
11661
|
}
|
|
11664
11662
|
}
|
|
11665
11663
|
__name(resolveDeferTargetNames, "resolveDeferTargetNames");
|
|
11666
|
-
var Scope$1 = class {
|
|
11664
|
+
var Scope$1 = class Scope {
|
|
11667
11665
|
static {
|
|
11668
|
-
__name(this, "Scope
|
|
11666
|
+
__name(this, "Scope");
|
|
11669
11667
|
}
|
|
11670
11668
|
targets = /* @__PURE__ */ new Map();
|
|
11671
11669
|
};
|
|
@@ -11704,13 +11702,6 @@ function expandSafeReads(job) {
|
|
|
11704
11702
|
}
|
|
11705
11703
|
}
|
|
11706
11704
|
__name(expandSafeReads, "expandSafeReads");
|
|
11707
|
-
var requiresTemporary = [
|
|
11708
|
-
InvokeFunctionExpr,
|
|
11709
|
-
LiteralArrayExpr,
|
|
11710
|
-
LiteralMapExpr,
|
|
11711
|
-
SafeInvokeFunctionExpr,
|
|
11712
|
-
PipeBindingExpr
|
|
11713
|
-
].map((e) => e.constructor.name);
|
|
11714
11705
|
function needsTemporaryInSafeAccess(e) {
|
|
11715
11706
|
if (e instanceof UnaryOperatorExpr) {
|
|
11716
11707
|
return needsTemporaryInSafeAccess(e.expr);
|
|
@@ -11912,7 +11903,7 @@ function createI18nMessage(job, context, messagePlaceholder) {
|
|
|
11912
11903
|
let formattedParams = formatParams(context.params);
|
|
11913
11904
|
const formattedPostprocessingParams = formatParams(context.postprocessingParams);
|
|
11914
11905
|
let needsPostprocessing = [...context.params.values()].some((v) => v.length > 1);
|
|
11915
|
-
return createI18nMessageOp(job.allocateXrefId(), context.xref, context.i18nBlock, context.message,
|
|
11906
|
+
return createI18nMessageOp(job.allocateXrefId(), context.xref, context.i18nBlock, context.message, null, formattedParams, formattedPostprocessingParams, needsPostprocessing);
|
|
11916
11907
|
}
|
|
11917
11908
|
__name(createI18nMessage, "createI18nMessage");
|
|
11918
11909
|
function formatIcuPlaceholder(op) {
|
|
@@ -12309,7 +12300,7 @@ var NodeWithI18n = class {
|
|
|
12309
12300
|
this.i18n = i18n2;
|
|
12310
12301
|
}
|
|
12311
12302
|
};
|
|
12312
|
-
var
|
|
12303
|
+
var Text4 = class extends NodeWithI18n {
|
|
12313
12304
|
static {
|
|
12314
12305
|
__name(this, "Text");
|
|
12315
12306
|
}
|
|
@@ -12384,7 +12375,7 @@ var Attribute = class extends NodeWithI18n {
|
|
|
12384
12375
|
return visitor.visitAttribute(this, context);
|
|
12385
12376
|
}
|
|
12386
12377
|
};
|
|
12387
|
-
var
|
|
12378
|
+
var Element2 = class extends NodeWithI18n {
|
|
12388
12379
|
static {
|
|
12389
12380
|
__name(this, "Element");
|
|
12390
12381
|
}
|
|
@@ -12405,7 +12396,7 @@ var Element = class extends NodeWithI18n {
|
|
|
12405
12396
|
return visitor.visitElement(this, context);
|
|
12406
12397
|
}
|
|
12407
12398
|
};
|
|
12408
|
-
var
|
|
12399
|
+
var Comment2 = class {
|
|
12409
12400
|
static {
|
|
12410
12401
|
__name(this, "Comment");
|
|
12411
12402
|
}
|
|
@@ -12456,7 +12447,7 @@ var BlockParameter = class {
|
|
|
12456
12447
|
return visitor.visitBlockParameter(this, context);
|
|
12457
12448
|
}
|
|
12458
12449
|
};
|
|
12459
|
-
var
|
|
12450
|
+
var LetDeclaration2 = class {
|
|
12460
12451
|
static {
|
|
12461
12452
|
__name(this, "LetDeclaration");
|
|
12462
12453
|
}
|
|
@@ -12488,7 +12479,7 @@ function visitAll(visitor, nodes, context = null) {
|
|
|
12488
12479
|
return result;
|
|
12489
12480
|
}
|
|
12490
12481
|
__name(visitAll, "visitAll");
|
|
12491
|
-
var
|
|
12482
|
+
var RecursiveVisitor2 = class {
|
|
12492
12483
|
static {
|
|
12493
12484
|
__name(this, "RecursiveVisitor");
|
|
12494
12485
|
}
|
|
@@ -15841,9 +15832,9 @@ var ParseTreeResult = class {
|
|
|
15841
15832
|
this.errors = errors;
|
|
15842
15833
|
}
|
|
15843
15834
|
};
|
|
15844
|
-
var Parser$1 = class {
|
|
15835
|
+
var Parser$1 = class Parser {
|
|
15845
15836
|
static {
|
|
15846
|
-
__name(this, "Parser
|
|
15837
|
+
__name(this, "Parser");
|
|
15847
15838
|
}
|
|
15848
15839
|
getTagDefinition;
|
|
15849
15840
|
constructor(getTagDefinition) {
|
|
@@ -15947,7 +15938,7 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
15947
15938
|
);
|
|
15948
15939
|
const value = text2 != null ? text2.parts[0].trim() : null;
|
|
15949
15940
|
const sourceSpan = endToken == null ? token.sourceSpan : new ParseSourceSpan(token.sourceSpan.start, endToken.sourceSpan.end, token.sourceSpan.fullStart);
|
|
15950
|
-
this._addToParent(new
|
|
15941
|
+
this._addToParent(new Comment2(value, sourceSpan));
|
|
15951
15942
|
}
|
|
15952
15943
|
_consumeExpansion(token) {
|
|
15953
15944
|
const switchValue = this._advance();
|
|
@@ -16056,12 +16047,12 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
16056
16047
|
}
|
|
16057
16048
|
if (text2.length > 0) {
|
|
16058
16049
|
const endSpan = token.sourceSpan;
|
|
16059
|
-
this._addToParent(new
|
|
16050
|
+
this._addToParent(new Text4(text2, new ParseSourceSpan(startSpan.start, endSpan.end, startSpan.fullStart, startSpan.details), tokens));
|
|
16060
16051
|
}
|
|
16061
16052
|
}
|
|
16062
16053
|
_closeVoidElement() {
|
|
16063
16054
|
const el = this._getContainer();
|
|
16064
|
-
if (el instanceof
|
|
16055
|
+
if (el instanceof Element2 && this.getTagDefinition(el.name).isVoid) {
|
|
16065
16056
|
this._containerStack.pop();
|
|
16066
16057
|
}
|
|
16067
16058
|
}
|
|
@@ -16087,13 +16078,13 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
16087
16078
|
const end = this._peek.sourceSpan.fullStart;
|
|
16088
16079
|
const span = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);
|
|
16089
16080
|
const startSpan = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);
|
|
16090
|
-
const el = new
|
|
16081
|
+
const el = new Element2(fullName, attrs, [], span, startSpan, void 0);
|
|
16091
16082
|
const parentEl = this._getContainer();
|
|
16092
|
-
this._pushContainer(el, parentEl instanceof
|
|
16083
|
+
this._pushContainer(el, parentEl instanceof Element2 && this.getTagDefinition(parentEl.name).isClosedByChild(el.name));
|
|
16093
16084
|
if (selfClosing) {
|
|
16094
|
-
this._popContainer(fullName,
|
|
16085
|
+
this._popContainer(fullName, Element2, span);
|
|
16095
16086
|
} else if (startTagToken.type === 4) {
|
|
16096
|
-
this._popContainer(fullName,
|
|
16087
|
+
this._popContainer(fullName, Element2, null);
|
|
16097
16088
|
this.errors.push(TreeError.create(fullName, span, `Opening tag "${fullName}" not terminated.`));
|
|
16098
16089
|
}
|
|
16099
16090
|
}
|
|
@@ -16108,7 +16099,7 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
16108
16099
|
const fullName = this._getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getClosestParentElement());
|
|
16109
16100
|
if (this.getTagDefinition(fullName).isVoid) {
|
|
16110
16101
|
this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, `Void elements do not have end tags "${endTagToken.parts[1]}"`));
|
|
16111
|
-
} else if (!this._popContainer(fullName,
|
|
16102
|
+
} else if (!this._popContainer(fullName, Element2, endTagToken.sourceSpan)) {
|
|
16112
16103
|
const errMsg = `Unexpected closing tag "${fullName}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;
|
|
16113
16104
|
this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, errMsg));
|
|
16114
16105
|
}
|
|
@@ -16129,7 +16120,7 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
16129
16120
|
this._containerStack.splice(stackIndex, this._containerStack.length - stackIndex);
|
|
16130
16121
|
return !unexpectedCloseTagDetected;
|
|
16131
16122
|
}
|
|
16132
|
-
if (node instanceof Block || node instanceof
|
|
16123
|
+
if (node instanceof Block || node instanceof Element2 && !this.getTagDefinition(node.name).closedByParent) {
|
|
16133
16124
|
unexpectedCloseTagDetected = true;
|
|
16134
16125
|
}
|
|
16135
16126
|
}
|
|
@@ -16224,7 +16215,7 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
16224
16215
|
const startOffset = startToken.sourceSpan.toString().lastIndexOf(name);
|
|
16225
16216
|
const nameStart = startToken.sourceSpan.start.moveBy(startOffset);
|
|
16226
16217
|
const nameSpan = new ParseSourceSpan(nameStart, startToken.sourceSpan.end);
|
|
16227
|
-
const node = new
|
|
16218
|
+
const node = new LetDeclaration2(name, valueToken.parts[0], span, nameSpan, valueToken.sourceSpan);
|
|
16228
16219
|
this._addToParent(node);
|
|
16229
16220
|
}
|
|
16230
16221
|
_consumeIncompleteLet(token) {
|
|
@@ -16235,7 +16226,7 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
16235
16226
|
const nameStart = token.sourceSpan.start.moveBy(startOffset);
|
|
16236
16227
|
const nameSpan = new ParseSourceSpan(nameStart, token.sourceSpan.end);
|
|
16237
16228
|
const valueSpan = new ParseSourceSpan(token.sourceSpan.start, token.sourceSpan.start.moveBy(0));
|
|
16238
|
-
const node = new
|
|
16229
|
+
const node = new LetDeclaration2(name, "", token.sourceSpan, nameSpan, valueSpan);
|
|
16239
16230
|
this._addToParent(node);
|
|
16240
16231
|
}
|
|
16241
16232
|
this.errors.push(TreeError.create(token.parts[0], token.sourceSpan, `Incomplete @let declaration${nameString}. @let declarations must be written as \`@let <name> = <value>;\``));
|
|
@@ -16245,7 +16236,7 @@ var _TreeBuilder = class __TreeBuilder {
|
|
|
16245
16236
|
}
|
|
16246
16237
|
_getClosestParentElement() {
|
|
16247
16238
|
for (let i = this._containerStack.length - 1; i > -1; i--) {
|
|
16248
|
-
if (this._containerStack[i] instanceof
|
|
16239
|
+
if (this._containerStack[i] instanceof Element2) {
|
|
16249
16240
|
return this._containerStack[i];
|
|
16250
16241
|
}
|
|
16251
16242
|
}
|
|
@@ -16321,11 +16312,11 @@ var WhitespaceVisitor = class {
|
|
|
16321
16312
|
}
|
|
16322
16313
|
visitElement(element2, context) {
|
|
16323
16314
|
if (SKIP_WS_TRIM_TAGS.has(element2.name) || hasPreserveWhitespacesAttr(element2.attrs)) {
|
|
16324
|
-
const newElement2 = new
|
|
16315
|
+
const newElement2 = new Element2(element2.name, visitAllWithSiblings(this, element2.attrs), element2.children, element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
16325
16316
|
this.originalNodeMap?.set(newElement2, element2);
|
|
16326
16317
|
return newElement2;
|
|
16327
16318
|
}
|
|
16328
|
-
const newElement = new
|
|
16319
|
+
const newElement = new Element2(element2.name, element2.attrs, visitAllWithSiblings(this, element2.children), element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
16329
16320
|
this.originalNodeMap?.set(newElement, element2);
|
|
16330
16321
|
return newElement;
|
|
16331
16322
|
}
|
|
@@ -16348,7 +16339,7 @@ var WhitespaceVisitor = class {
|
|
|
16348
16339
|
}
|
|
16349
16340
|
const processed = processWhitespace(text2.value);
|
|
16350
16341
|
const value = this.preserveSignificantWhitespace ? processed : trimLeadingAndTrailingWhitespace(processed, context);
|
|
16351
|
-
const result = new
|
|
16342
|
+
const result = new Text4(value, text2.sourceSpan, tokens, text2.i18n);
|
|
16352
16343
|
this.originalNodeMap?.set(result, text2);
|
|
16353
16344
|
return result;
|
|
16354
16345
|
}
|
|
@@ -16788,8 +16779,8 @@ var _Scanner = class {
|
|
|
16788
16779
|
let hasSeparators = false;
|
|
16789
16780
|
this.advance();
|
|
16790
16781
|
while (true) {
|
|
16791
|
-
if (isDigit(this.peek))
|
|
16792
|
-
|
|
16782
|
+
if (isDigit(this.peek)) ;
|
|
16783
|
+
else if (this.peek === $_) {
|
|
16793
16784
|
if (!isDigit(this.input.charCodeAt(this.index - 1)) || !isDigit(this.input.charCodeAt(this.index + 1))) {
|
|
16794
16785
|
return this.error("Invalid numeric separator", 0);
|
|
16795
16786
|
}
|
|
@@ -16972,7 +16963,7 @@ var TemplateBindingParseResult = class {
|
|
|
16972
16963
|
this.errors = errors;
|
|
16973
16964
|
}
|
|
16974
16965
|
};
|
|
16975
|
-
var
|
|
16966
|
+
var Parser2 = class {
|
|
16976
16967
|
static {
|
|
16977
16968
|
__name(this, "Parser");
|
|
16978
16969
|
}
|
|
@@ -17670,7 +17661,7 @@ var _ParseAST = class {
|
|
|
17670
17661
|
this.advance();
|
|
17671
17662
|
return new LiteralPrimitive(this.span(start), this.sourceSpan(start), value);
|
|
17672
17663
|
} else if (this.next.isTemplateLiteralEnd()) {
|
|
17673
|
-
return this.parseNoInterpolationTemplateLiteral(
|
|
17664
|
+
return this.parseNoInterpolationTemplateLiteral();
|
|
17674
17665
|
} else if (this.next.isTemplateLiteralPart()) {
|
|
17675
17666
|
return this.parseTemplateLiteral();
|
|
17676
17667
|
} else if (this.next.isString() && this.next.kind === StringTokenKind.Plain) {
|
|
@@ -17962,8 +17953,9 @@ var _ParseAST = class {
|
|
|
17962
17953
|
const sourceSpan = new AbsoluteSourceSpan(spanStart, this.currentAbsoluteOffset);
|
|
17963
17954
|
return new VariableBinding(sourceSpan, key, value);
|
|
17964
17955
|
}
|
|
17965
|
-
parseNoInterpolationTemplateLiteral(
|
|
17956
|
+
parseNoInterpolationTemplateLiteral() {
|
|
17966
17957
|
const text2 = this.next.strValue;
|
|
17958
|
+
const start = this.inputIndex;
|
|
17967
17959
|
this.advance();
|
|
17968
17960
|
const span = this.span(start);
|
|
17969
17961
|
const sourceSpan = this.sourceSpan(start);
|
|
@@ -17976,8 +17968,9 @@ var _ParseAST = class {
|
|
|
17976
17968
|
while (this.next !== EOF) {
|
|
17977
17969
|
const token = this.next;
|
|
17978
17970
|
if (token.isTemplateLiteralPart() || token.isTemplateLiteralEnd()) {
|
|
17979
|
-
|
|
17971
|
+
const partStart = this.inputIndex;
|
|
17980
17972
|
this.advance();
|
|
17973
|
+
elements.push(new TemplateLiteralElement(this.span(partStart), this.sourceSpan(partStart), token.strValue));
|
|
17981
17974
|
if (token.isTemplateLiteralEnd()) {
|
|
17982
17975
|
break;
|
|
17983
17976
|
}
|
|
@@ -18061,7 +18054,7 @@ var _ParseAST = class {
|
|
|
18061
18054
|
}
|
|
18062
18055
|
}
|
|
18063
18056
|
};
|
|
18064
|
-
var SimpleExpressionChecker = class extends
|
|
18057
|
+
var SimpleExpressionChecker = class extends RecursiveAstVisitor2 {
|
|
18065
18058
|
static {
|
|
18066
18059
|
__name(this, "SimpleExpressionChecker");
|
|
18067
18060
|
}
|
|
@@ -18956,7 +18949,7 @@ var PlaceholderRegistry = class {
|
|
|
18956
18949
|
return `${base}_${id}`;
|
|
18957
18950
|
}
|
|
18958
18951
|
};
|
|
18959
|
-
var _expParser = new
|
|
18952
|
+
var _expParser = new Parser2(new Lexer());
|
|
18960
18953
|
function createI18nMessageFactory(interpolationConfig, containerBlocks, retainEmptyTokens, preserveExpressionWhitespace) {
|
|
18961
18954
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks, retainEmptyTokens, preserveExpressionWhitespace);
|
|
18962
18955
|
return (nodes, meaning, description, customId, visitNodeFn) => visitor.toI18nMessage(nodes, meaning, description, customId, visitNodeFn);
|
|
@@ -19031,7 +19024,7 @@ var _I18nVisitor = class {
|
|
|
19031
19024
|
visitExpansion(icu, context) {
|
|
19032
19025
|
context.icuDepth++;
|
|
19033
19026
|
const i18nIcuCases = {};
|
|
19034
|
-
const i18nIcu = new
|
|
19027
|
+
const i18nIcu = new Icu2(icu.switchValue, icu.type, i18nIcuCases, icu.sourceSpan);
|
|
19035
19028
|
icu.cases.forEach((caze) => {
|
|
19036
19029
|
i18nIcuCases[caze.value] = new Container(caze.expression.map((node2) => node2.visit(this, context)), caze.expSourceSpan);
|
|
19037
19030
|
});
|
|
@@ -20244,7 +20237,7 @@ function kindTest(kind) {
|
|
|
20244
20237
|
__name(kindTest, "kindTest");
|
|
20245
20238
|
function kindWithInterpolationTest(kind, interpolation) {
|
|
20246
20239
|
return (op) => {
|
|
20247
|
-
return op.kind === kind && interpolation === op.expression instanceof
|
|
20240
|
+
return op.kind === kind && interpolation === op.expression instanceof Interpolation2;
|
|
20248
20241
|
};
|
|
20249
20242
|
}
|
|
20250
20243
|
__name(kindWithInterpolationTest, "kindWithInterpolationTest");
|
|
@@ -20253,7 +20246,7 @@ function basicListenerKindTest(op) {
|
|
|
20253
20246
|
}
|
|
20254
20247
|
__name(basicListenerKindTest, "basicListenerKindTest");
|
|
20255
20248
|
function nonInterpolationPropertyKindTest(op) {
|
|
20256
|
-
return (op.kind === OpKind.Property || op.kind === OpKind.TwoWayProperty) && !(op.expression instanceof
|
|
20249
|
+
return (op.kind === OpKind.Property || op.kind === OpKind.TwoWayProperty) && !(op.expression instanceof Interpolation2);
|
|
20257
20250
|
}
|
|
20258
20251
|
__name(nonInterpolationPropertyKindTest, "nonInterpolationPropertyKindTest");
|
|
20259
20252
|
var CREATE_ORDERING = [
|
|
@@ -21509,7 +21502,7 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
21509
21502
|
OpList.replace(op, advance(op.delta, op.sourceSpan));
|
|
21510
21503
|
break;
|
|
21511
21504
|
case OpKind.Property:
|
|
21512
|
-
if (op.expression instanceof
|
|
21505
|
+
if (op.expression instanceof Interpolation2) {
|
|
21513
21506
|
OpList.replace(op, propertyInterpolate(op.name, op.expression.strings, op.expression.expressions, op.sanitizer, op.sourceSpan));
|
|
21514
21507
|
} else {
|
|
21515
21508
|
OpList.replace(op, property(op.name, op.expression, op.sanitizer, op.sourceSpan));
|
|
@@ -21519,7 +21512,7 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
21519
21512
|
OpList.replace(op, twoWayProperty(op.name, op.expression, op.sanitizer, op.sourceSpan));
|
|
21520
21513
|
break;
|
|
21521
21514
|
case OpKind.StyleProp:
|
|
21522
|
-
if (op.expression instanceof
|
|
21515
|
+
if (op.expression instanceof Interpolation2) {
|
|
21523
21516
|
OpList.replace(op, stylePropInterpolate(op.name, op.expression.strings, op.expression.expressions, op.unit, op.sourceSpan));
|
|
21524
21517
|
} else {
|
|
21525
21518
|
OpList.replace(op, styleProp(op.name, op.expression, op.unit, op.sourceSpan));
|
|
@@ -21529,14 +21522,14 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
21529
21522
|
OpList.replace(op, classProp(op.name, op.expression, op.sourceSpan));
|
|
21530
21523
|
break;
|
|
21531
21524
|
case OpKind.StyleMap:
|
|
21532
|
-
if (op.expression instanceof
|
|
21525
|
+
if (op.expression instanceof Interpolation2) {
|
|
21533
21526
|
OpList.replace(op, styleMapInterpolate(op.expression.strings, op.expression.expressions, op.sourceSpan));
|
|
21534
21527
|
} else {
|
|
21535
21528
|
OpList.replace(op, styleMap(op.expression, op.sourceSpan));
|
|
21536
21529
|
}
|
|
21537
21530
|
break;
|
|
21538
21531
|
case OpKind.ClassMap:
|
|
21539
|
-
if (op.expression instanceof
|
|
21532
|
+
if (op.expression instanceof Interpolation2) {
|
|
21540
21533
|
OpList.replace(op, classMapInterpolate(op.expression.strings, op.expression.expressions, op.sourceSpan));
|
|
21541
21534
|
} else {
|
|
21542
21535
|
OpList.replace(op, classMap(op.expression, op.sourceSpan));
|
|
@@ -21552,14 +21545,14 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
21552
21545
|
OpList.replace(op, textInterpolate(op.interpolation.strings, op.interpolation.expressions, op.sourceSpan));
|
|
21553
21546
|
break;
|
|
21554
21547
|
case OpKind.Attribute:
|
|
21555
|
-
if (op.expression instanceof
|
|
21548
|
+
if (op.expression instanceof Interpolation2) {
|
|
21556
21549
|
OpList.replace(op, attributeInterpolate(op.name, op.expression.strings, op.expression.expressions, op.sanitizer, op.sourceSpan));
|
|
21557
21550
|
} else {
|
|
21558
21551
|
OpList.replace(op, attribute(op.name, op.expression, op.sanitizer, op.namespace));
|
|
21559
21552
|
}
|
|
21560
21553
|
break;
|
|
21561
21554
|
case OpKind.HostProperty:
|
|
21562
|
-
if (op.expression instanceof
|
|
21555
|
+
if (op.expression instanceof Interpolation2) {
|
|
21563
21556
|
throw new Error("not yet handled");
|
|
21564
21557
|
} else {
|
|
21565
21558
|
if (op.isAnimationTrigger) {
|
|
@@ -21708,7 +21701,7 @@ function removeEmptyBindings(job) {
|
|
|
21708
21701
|
case OpKind.Property:
|
|
21709
21702
|
case OpKind.StyleProp:
|
|
21710
21703
|
case OpKind.StyleMap:
|
|
21711
|
-
if (op.expression instanceof
|
|
21704
|
+
if (op.expression instanceof EmptyExpr2) {
|
|
21712
21705
|
OpList.remove(op);
|
|
21713
21706
|
}
|
|
21714
21707
|
break;
|
|
@@ -22310,7 +22303,7 @@ function specializeStyleBindings(job) {
|
|
|
22310
22303
|
}
|
|
22311
22304
|
switch (op.bindingKind) {
|
|
22312
22305
|
case BindingKind.ClassName:
|
|
22313
|
-
if (op.expression instanceof
|
|
22306
|
+
if (op.expression instanceof Interpolation2) {
|
|
22314
22307
|
throw new Error(`Unexpected interpolation in ClassName binding`);
|
|
22315
22308
|
}
|
|
22316
22309
|
OpList.replace(op, createClassPropOp(op.target, op.name, op.expression, op.sourceSpan));
|
|
@@ -22528,7 +22521,7 @@ function varsUsedByOp(op) {
|
|
|
22528
22521
|
case OpKind.HostProperty:
|
|
22529
22522
|
case OpKind.Attribute:
|
|
22530
22523
|
slots = 1;
|
|
22531
|
-
if (op.expression instanceof
|
|
22524
|
+
if (op.expression instanceof Interpolation2 && !isSingletonInterpolation(op.expression)) {
|
|
22532
22525
|
slots += op.expression.expressions.length;
|
|
22533
22526
|
}
|
|
22534
22527
|
return slots;
|
|
@@ -22539,7 +22532,7 @@ function varsUsedByOp(op) {
|
|
|
22539
22532
|
case OpKind.StyleMap:
|
|
22540
22533
|
case OpKind.ClassMap:
|
|
22541
22534
|
slots = 2;
|
|
22542
|
-
if (op.expression instanceof
|
|
22535
|
+
if (op.expression instanceof Interpolation2) {
|
|
22543
22536
|
slots += op.expression.expressions.length;
|
|
22544
22537
|
}
|
|
22545
22538
|
return slots;
|
|
@@ -23122,7 +23115,7 @@ function isI18nRootNode(meta) {
|
|
|
23122
23115
|
}
|
|
23123
23116
|
__name(isI18nRootNode, "isI18nRootNode");
|
|
23124
23117
|
function isSingleI18nIcu(meta) {
|
|
23125
|
-
return isI18nRootNode(meta) && meta.nodes.length === 1 && meta.nodes[0] instanceof
|
|
23118
|
+
return isI18nRootNode(meta) && meta.nodes.length === 1 && meta.nodes[0] instanceof Icu2;
|
|
23126
23119
|
}
|
|
23127
23120
|
__name(isSingleI18nIcu, "isSingleI18nIcu");
|
|
23128
23121
|
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferMeta, allDeferrableDepsFn, relativeTemplatePath, enableDebugLocations) {
|
|
@@ -23159,7 +23152,7 @@ function ingestHostProperty(job, property2, bindingKind, securityContexts) {
|
|
|
23159
23152
|
let expression;
|
|
23160
23153
|
const ast = property2.expression.ast;
|
|
23161
23154
|
if (ast instanceof Interpolation$1) {
|
|
23162
|
-
expression = new
|
|
23155
|
+
expression = new Interpolation2(ast.strings, ast.expressions.map((expr) => convertAst(expr, job, property2.sourceSpan)), []);
|
|
23163
23156
|
} else {
|
|
23164
23157
|
expression = convertAst(ast, job, property2.sourceSpan);
|
|
23165
23158
|
}
|
|
@@ -23328,7 +23321,7 @@ function ingestBoundText(unit, text2, icuPlaceholder) {
|
|
|
23328
23321
|
const textXref = unit.job.allocateXrefId();
|
|
23329
23322
|
unit.create.push(createTextOp(textXref, "", icuPlaceholder, text2.sourceSpan));
|
|
23330
23323
|
const baseSourceSpan = unit.job.compatibility ? null : text2.sourceSpan;
|
|
23331
|
-
unit.update.push(createInterpolateTextOp(textXref, new
|
|
23324
|
+
unit.update.push(createInterpolateTextOp(textXref, new Interpolation2(value.strings, value.expressions.map((expr) => convertAst(expr, unit.job, baseSourceSpan)), i18nPlaceholders), text2.sourceSpan));
|
|
23332
23325
|
}
|
|
23333
23326
|
__name(ingestBoundText, "ingestBoundText");
|
|
23334
23327
|
function ingestIfBlock(unit, ifBlock) {
|
|
@@ -23684,7 +23677,7 @@ function convertAst(ast, job, baseSourceSpan) {
|
|
|
23684
23677
|
} else if (ast instanceof SafeCall) {
|
|
23685
23678
|
return new SafeInvokeFunctionExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.args.map((a) => convertAst(a, job, baseSourceSpan)));
|
|
23686
23679
|
} else if (ast instanceof EmptyExpr$1) {
|
|
23687
|
-
return new
|
|
23680
|
+
return new EmptyExpr2(convertSourceSpan(ast.span, baseSourceSpan));
|
|
23688
23681
|
} else if (ast instanceof PrefixNot) {
|
|
23689
23682
|
return not(convertAst(ast.expression, job, baseSourceSpan), convertSourceSpan(ast.span, baseSourceSpan));
|
|
23690
23683
|
} else if (ast instanceof TypeofExpression) {
|
|
@@ -23701,9 +23694,9 @@ __name(convertAst, "convertAst");
|
|
|
23701
23694
|
function convertAstWithInterpolation(job, value, i18nMeta, sourceSpan) {
|
|
23702
23695
|
let expression;
|
|
23703
23696
|
if (value instanceof Interpolation$1) {
|
|
23704
|
-
expression = new
|
|
23697
|
+
expression = new Interpolation2(value.strings, value.expressions.map((e) => convertAst(e, job, null)), Object.keys(asMessage(i18nMeta)?.placeholders ?? {}));
|
|
23705
23698
|
} else if (value instanceof AST) {
|
|
23706
|
-
expression = convertAst(value, job,
|
|
23699
|
+
expression = convertAst(value, job, null);
|
|
23707
23700
|
} else {
|
|
23708
23701
|
expression = literal(value);
|
|
23709
23702
|
}
|
|
@@ -24795,7 +24788,7 @@ function validateSwitchBlock(ast) {
|
|
|
24795
24788
|
return errors;
|
|
24796
24789
|
}
|
|
24797
24790
|
for (const node of ast.children) {
|
|
24798
|
-
if (node instanceof
|
|
24791
|
+
if (node instanceof Comment2 || node instanceof Text4 && node.value.trim().length === 0) {
|
|
24799
24792
|
continue;
|
|
24800
24793
|
}
|
|
24801
24794
|
if (!(node instanceof Block) || node.name !== "case" && node.name !== "default") {
|
|
@@ -25633,10 +25626,10 @@ var HtmlAstToIvyAst = class {
|
|
|
25633
25626
|
const relatedBlocks = [];
|
|
25634
25627
|
for (let i = primaryBlockIndex + 1; i < siblings.length; i++) {
|
|
25635
25628
|
const node = siblings[i];
|
|
25636
|
-
if (node instanceof
|
|
25629
|
+
if (node instanceof Comment2) {
|
|
25637
25630
|
continue;
|
|
25638
25631
|
}
|
|
25639
|
-
if (node instanceof
|
|
25632
|
+
if (node instanceof Text4 && node.value.trim().length === 0) {
|
|
25640
25633
|
this.processedNodes.add(node);
|
|
25641
25634
|
continue;
|
|
25642
25635
|
}
|
|
@@ -25879,7 +25872,7 @@ function addEvents(events, boundEvents) {
|
|
|
25879
25872
|
}
|
|
25880
25873
|
__name(addEvents, "addEvents");
|
|
25881
25874
|
function textContents(node) {
|
|
25882
|
-
if (node.children.length !== 1 || !(node.children[0] instanceof
|
|
25875
|
+
if (node.children.length !== 1 || !(node.children[0] instanceof Text4)) {
|
|
25883
25876
|
return null;
|
|
25884
25877
|
} else {
|
|
25885
25878
|
return node.children[0].value;
|
|
@@ -25985,7 +25978,7 @@ function parseTemplate(template2, templateUrl, options = {}) {
|
|
|
25985
25978
|
__name(parseTemplate, "parseTemplate");
|
|
25986
25979
|
var elementRegistry = new DomElementSchemaRegistry();
|
|
25987
25980
|
function makeBindingParser(interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {
|
|
25988
|
-
return new BindingParser(new
|
|
25981
|
+
return new BindingParser(new Parser2(new Lexer()), interpolationConfig, elementRegistry, []);
|
|
25989
25982
|
}
|
|
25990
25983
|
__name(makeBindingParser, "makeBindingParser");
|
|
25991
25984
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
@@ -26473,16 +26466,29 @@ var R3TargetBinder = class {
|
|
|
26473
26466
|
*/
|
|
26474
26467
|
bind(target) {
|
|
26475
26468
|
if (!target.template) {
|
|
26476
|
-
throw new Error("
|
|
26469
|
+
throw new Error("Empty bound targets are not supported");
|
|
26470
|
+
}
|
|
26471
|
+
const directives = /* @__PURE__ */ new Map();
|
|
26472
|
+
const eagerDirectives = [];
|
|
26473
|
+
const bindings = /* @__PURE__ */ new Map();
|
|
26474
|
+
const references = /* @__PURE__ */ new Map();
|
|
26475
|
+
const scopedNodeEntities = /* @__PURE__ */ new Map();
|
|
26476
|
+
const expressions = /* @__PURE__ */ new Map();
|
|
26477
|
+
const symbols = /* @__PURE__ */ new Map();
|
|
26478
|
+
const nestingLevel = /* @__PURE__ */ new Map();
|
|
26479
|
+
const usedPipes = /* @__PURE__ */ new Set();
|
|
26480
|
+
const eagerPipes = /* @__PURE__ */ new Set();
|
|
26481
|
+
const deferBlocks = [];
|
|
26482
|
+
if (target.template) {
|
|
26483
|
+
const scope = Scope2.apply(target.template);
|
|
26484
|
+
extractScopedNodeEntities(scope, scopedNodeEntities);
|
|
26485
|
+
DirectiveBinder.apply(target.template, this.directiveMatcher, directives, eagerDirectives, bindings, references);
|
|
26486
|
+
TemplateBinder.applyWithScope(target.template, scope, expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks);
|
|
26477
26487
|
}
|
|
26478
|
-
const scope = Scope.apply(target.template);
|
|
26479
|
-
const scopedNodeEntities = extractScopedNodeEntities(scope);
|
|
26480
|
-
const { directives, eagerDirectives, bindings, references } = DirectiveBinder.apply(target.template, this.directiveMatcher);
|
|
26481
|
-
const { expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks } = TemplateBinder.applyWithScope(target.template, scope);
|
|
26482
26488
|
return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);
|
|
26483
26489
|
}
|
|
26484
26490
|
};
|
|
26485
|
-
var
|
|
26491
|
+
var Scope2 = class _Scope {
|
|
26486
26492
|
static {
|
|
26487
26493
|
__name(this, "Scope");
|
|
26488
26494
|
}
|
|
@@ -26680,14 +26686,9 @@ var DirectiveBinder = class _DirectiveBinder {
|
|
|
26680
26686
|
* map which resolves #references (`Reference`s) within the template to the named directive or
|
|
26681
26687
|
* template node.
|
|
26682
26688
|
*/
|
|
26683
|
-
static apply(template2, selectorMatcher) {
|
|
26684
|
-
const directives = /* @__PURE__ */ new Map();
|
|
26685
|
-
const bindings = /* @__PURE__ */ new Map();
|
|
26686
|
-
const references = /* @__PURE__ */ new Map();
|
|
26687
|
-
const eagerDirectives = [];
|
|
26689
|
+
static apply(template2, selectorMatcher, directives, eagerDirectives, bindings, references) {
|
|
26688
26690
|
const matcher = new _DirectiveBinder(selectorMatcher, directives, eagerDirectives, bindings, references);
|
|
26689
26691
|
matcher.ingest(template2);
|
|
26690
|
-
return { directives, eagerDirectives, bindings, references };
|
|
26691
26692
|
}
|
|
26692
26693
|
ingest(template2) {
|
|
26693
26694
|
template2.forEach((node) => node.visit(this));
|
|
@@ -26806,7 +26807,7 @@ var DirectiveBinder = class _DirectiveBinder {
|
|
|
26806
26807
|
visitLetDeclaration(decl) {
|
|
26807
26808
|
}
|
|
26808
26809
|
};
|
|
26809
|
-
var TemplateBinder = class _TemplateBinder extends
|
|
26810
|
+
var TemplateBinder = class _TemplateBinder extends RecursiveAstVisitor2 {
|
|
26810
26811
|
static {
|
|
26811
26812
|
__name(this, "TemplateBinder");
|
|
26812
26813
|
}
|
|
@@ -26855,17 +26856,10 @@ var TemplateBinder = class _TemplateBinder extends RecursiveAstVisitor {
|
|
|
26855
26856
|
* nesting level (how many levels deep within the template structure the `Template` is), starting
|
|
26856
26857
|
* at 1.
|
|
26857
26858
|
*/
|
|
26858
|
-
static applyWithScope(nodes, scope) {
|
|
26859
|
-
const expressions = /* @__PURE__ */ new Map();
|
|
26860
|
-
const symbols = /* @__PURE__ */ new Map();
|
|
26861
|
-
const nestingLevel = /* @__PURE__ */ new Map();
|
|
26862
|
-
const usedPipes = /* @__PURE__ */ new Set();
|
|
26863
|
-
const eagerPipes = /* @__PURE__ */ new Set();
|
|
26859
|
+
static applyWithScope(nodes, scope, expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks) {
|
|
26864
26860
|
const template2 = nodes instanceof Template ? nodes : null;
|
|
26865
|
-
const deferBlocks = [];
|
|
26866
26861
|
const binder = new _TemplateBinder(expressions, symbols, usedPipes, eagerPipes, deferBlocks, nestingLevel, scope, template2, 0);
|
|
26867
26862
|
binder.ingest(nodes);
|
|
26868
|
-
return { expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks };
|
|
26869
26863
|
}
|
|
26870
26864
|
ingest(nodeOrNodes) {
|
|
26871
26865
|
if (nodeOrNodes instanceof Template) {
|
|
@@ -27183,7 +27177,7 @@ var R3BoundTarget = class {
|
|
|
27183
27177
|
return this.referenceTargetToElement(target.node);
|
|
27184
27178
|
}
|
|
27185
27179
|
};
|
|
27186
|
-
function extractScopedNodeEntities(rootScope) {
|
|
27180
|
+
function extractScopedNodeEntities(rootScope, templateEntities) {
|
|
27187
27181
|
const entityMap = /* @__PURE__ */ new Map();
|
|
27188
27182
|
function extractScopeEntities(scope) {
|
|
27189
27183
|
if (entityMap.has(scope.rootNode)) {
|
|
@@ -27208,11 +27202,9 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
27208
27202
|
}
|
|
27209
27203
|
extractScopeEntities(scope);
|
|
27210
27204
|
}
|
|
27211
|
-
const templateEntities = /* @__PURE__ */ new Map();
|
|
27212
27205
|
for (const [template2, entities] of entityMap) {
|
|
27213
27206
|
templateEntities.set(template2, new Set(entities.values()));
|
|
27214
27207
|
}
|
|
27215
|
-
return templateEntities;
|
|
27216
27208
|
}
|
|
27217
27209
|
__name(extractScopedNodeEntities, "extractScopedNodeEntities");
|
|
27218
27210
|
var ResourceLoader = class {
|
|
@@ -27233,10 +27225,8 @@ var CompilerFacadeImpl = class {
|
|
|
27233
27225
|
}
|
|
27234
27226
|
compilePipe(angularCoreEnv, sourceMapUrl, facade) {
|
|
27235
27227
|
const metadata = {
|
|
27236
|
-
name: facade.name,
|
|
27237
27228
|
type: wrapReference(facade.type),
|
|
27238
27229
|
typeArgumentCount: 0,
|
|
27239
|
-
deps: null,
|
|
27240
27230
|
pipeName: facade.pipeName,
|
|
27241
27231
|
pure: facade.pure,
|
|
27242
27232
|
isStandalone: facade.isStandalone
|
|
@@ -27287,7 +27277,6 @@ var CompilerFacadeImpl = class {
|
|
|
27287
27277
|
}
|
|
27288
27278
|
compileInjector(angularCoreEnv, sourceMapUrl, facade) {
|
|
27289
27279
|
const meta = {
|
|
27290
|
-
name: facade.name,
|
|
27291
27280
|
type: wrapReference(facade.type),
|
|
27292
27281
|
providers: facade.providers && facade.providers.length > 0 ? new WrappedNodeExpr(facade.providers) : null,
|
|
27293
27282
|
imports: facade.imports.map((i) => new WrappedNodeExpr(i))
|
|
@@ -27876,7 +27865,7 @@ function publishFacade(global) {
|
|
|
27876
27865
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
27877
27866
|
}
|
|
27878
27867
|
__name(publishFacade, "publishFacade");
|
|
27879
|
-
var VERSION = new Version("19.2.
|
|
27868
|
+
var VERSION = new Version("19.2.3");
|
|
27880
27869
|
var CompilerConfig = class {
|
|
27881
27870
|
static {
|
|
27882
27871
|
__name(this, "CompilerConfig");
|
|
@@ -27901,12 +27890,12 @@ var MEANING_SEPARATOR = "|";
|
|
|
27901
27890
|
var ID_SEPARATOR = "@@";
|
|
27902
27891
|
var i18nCommentsWarned = false;
|
|
27903
27892
|
function extractMessages(nodes, interpolationConfig, implicitTags, implicitAttrs, preserveSignificantWhitespace) {
|
|
27904
|
-
const visitor = new
|
|
27893
|
+
const visitor = new _Visitor3(implicitTags, implicitAttrs, preserveSignificantWhitespace);
|
|
27905
27894
|
return visitor.extract(nodes, interpolationConfig);
|
|
27906
27895
|
}
|
|
27907
27896
|
__name(extractMessages, "extractMessages");
|
|
27908
27897
|
function mergeTranslations(nodes, translations, interpolationConfig, implicitTags, implicitAttrs) {
|
|
27909
|
-
const visitor = new
|
|
27898
|
+
const visitor = new _Visitor3(implicitTags, implicitAttrs);
|
|
27910
27899
|
return visitor.merge(nodes, translations, interpolationConfig);
|
|
27911
27900
|
}
|
|
27912
27901
|
__name(mergeTranslations, "mergeTranslations");
|
|
@@ -27926,7 +27915,7 @@ var _VisitorMode;
|
|
|
27926
27915
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
27927
27916
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
27928
27917
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
27929
|
-
var
|
|
27918
|
+
var _Visitor3 = class {
|
|
27930
27919
|
static {
|
|
27931
27920
|
__name(this, "_Visitor");
|
|
27932
27921
|
}
|
|
@@ -27976,7 +27965,7 @@ var _Visitor = class {
|
|
|
27976
27965
|
merge(nodes, translations, interpolationConfig) {
|
|
27977
27966
|
this._init(_VisitorMode.Merge, interpolationConfig);
|
|
27978
27967
|
this._translations = translations;
|
|
27979
|
-
const wrapper = new
|
|
27968
|
+
const wrapper = new Element2("wrapper", [], nodes, void 0, void 0, void 0);
|
|
27980
27969
|
const translatedNode = wrapper.visit(this, null);
|
|
27981
27970
|
if (this._inI18nBlock) {
|
|
27982
27971
|
this._reportError(nodes[nodes.length - 1], "Unclosed block");
|
|
@@ -28101,7 +28090,7 @@ var _Visitor = class {
|
|
|
28101
28090
|
this._inImplicitNode = wasInImplicitNode;
|
|
28102
28091
|
if (this._mode === _VisitorMode.Merge) {
|
|
28103
28092
|
const translatedAttrs = this._translateAttributes(el);
|
|
28104
|
-
return new
|
|
28093
|
+
return new Element2(el.name, translatedAttrs, childNodes, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);
|
|
28105
28094
|
}
|
|
28106
28095
|
return null;
|
|
28107
28096
|
}
|
|
@@ -28240,7 +28229,7 @@ var _Visitor = class {
|
|
|
28240
28229
|
void 0
|
|
28241
28230
|
/* i18n */
|
|
28242
28231
|
));
|
|
28243
|
-
} else if (nodes[0] instanceof
|
|
28232
|
+
} else if (nodes[0] instanceof Text4) {
|
|
28244
28233
|
const value = nodes[0].value;
|
|
28245
28234
|
translatedAttributes.push(new Attribute(
|
|
28246
28235
|
attr.name,
|
|
@@ -28315,7 +28304,7 @@ var _Visitor = class {
|
|
|
28315
28304
|
return;
|
|
28316
28305
|
}
|
|
28317
28306
|
const startIndex = this._msgCountAtSectionStart;
|
|
28318
|
-
const significantChildren = directChildren.reduce((count, node2) => count + (node2 instanceof
|
|
28307
|
+
const significantChildren = directChildren.reduce((count, node2) => count + (node2 instanceof Comment2 ? 0 : 1), 0);
|
|
28319
28308
|
if (significantChildren == 1) {
|
|
28320
28309
|
for (let i = this._messages.length - 1; i >= startIndex; i--) {
|
|
28321
28310
|
const ast = this._messages[i].nodes;
|
|
@@ -28332,11 +28321,11 @@ var _Visitor = class {
|
|
|
28332
28321
|
}
|
|
28333
28322
|
};
|
|
28334
28323
|
function _isOpeningComment(n) {
|
|
28335
|
-
return !!(n instanceof
|
|
28324
|
+
return !!(n instanceof Comment2 && n.value && n.value.startsWith("i18n"));
|
|
28336
28325
|
}
|
|
28337
28326
|
__name(_isOpeningComment, "_isOpeningComment");
|
|
28338
28327
|
function _isClosingComment(n) {
|
|
28339
|
-
return !!(n instanceof
|
|
28328
|
+
return !!(n instanceof Comment2 && n.value && n.value === "/i18n");
|
|
28340
28329
|
}
|
|
28341
28330
|
__name(_isClosingComment, "_isClosingComment");
|
|
28342
28331
|
function _getI18nAttr(p) {
|
|
@@ -28354,7 +28343,7 @@ function _parseMessageMeta(i18n2) {
|
|
|
28354
28343
|
}
|
|
28355
28344
|
__name(_parseMessageMeta, "_parseMessageMeta");
|
|
28356
28345
|
function isTextNode(ast) {
|
|
28357
|
-
return ast.length === 1 && ast[0] instanceof
|
|
28346
|
+
return ast.length === 1 && ast[0] instanceof Text4;
|
|
28358
28347
|
}
|
|
28359
28348
|
__name(isTextNode, "isTextNode");
|
|
28360
28349
|
function isAttrNode(ast) {
|
|
@@ -28479,9 +28468,9 @@ ${errors.join("\n")}`);
|
|
|
28479
28468
|
return digest$1(message);
|
|
28480
28469
|
}
|
|
28481
28470
|
};
|
|
28482
|
-
var _WriteVisitor$1 = class {
|
|
28471
|
+
var _WriteVisitor$1 = class _WriteVisitor {
|
|
28483
28472
|
static {
|
|
28484
|
-
__name(this, "_WriteVisitor
|
|
28473
|
+
__name(this, "_WriteVisitor");
|
|
28485
28474
|
}
|
|
28486
28475
|
visitText(text2, context) {
|
|
28487
28476
|
return [new Text$1(text2.value)];
|
|
@@ -28624,9 +28613,9 @@ var XliffParser = class {
|
|
|
28624
28613
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
28625
28614
|
}
|
|
28626
28615
|
};
|
|
28627
|
-
var XmlToI18n$2 = class {
|
|
28616
|
+
var XmlToI18n$2 = class XmlToI18n {
|
|
28628
28617
|
static {
|
|
28629
|
-
__name(this, "XmlToI18n
|
|
28618
|
+
__name(this, "XmlToI18n");
|
|
28630
28619
|
}
|
|
28631
28620
|
// using non-null assertion because it's re(set) by convert()
|
|
28632
28621
|
_errors;
|
|
@@ -28662,7 +28651,7 @@ var XmlToI18n$2 = class {
|
|
|
28662
28651
|
visitAll(this, icu.cases).forEach((c) => {
|
|
28663
28652
|
caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);
|
|
28664
28653
|
});
|
|
28665
|
-
return new
|
|
28654
|
+
return new Icu2(icu.switchValue, icu.type, caseMap, icu.sourceSpan);
|
|
28666
28655
|
}
|
|
28667
28656
|
visitExpansionCase(icuCase, context) {
|
|
28668
28657
|
return {
|
|
@@ -28710,7 +28699,7 @@ var Xliff2 = class extends Serializer {
|
|
|
28710
28699
|
__name(this, "Xliff2");
|
|
28711
28700
|
}
|
|
28712
28701
|
write(messages, locale) {
|
|
28713
|
-
const visitor = new
|
|
28702
|
+
const visitor = new _WriteVisitor2();
|
|
28714
28703
|
const units = [];
|
|
28715
28704
|
messages.forEach((message) => {
|
|
28716
28705
|
const unit = new Tag(_UNIT_TAG, { id: message.id });
|
|
@@ -28767,7 +28756,7 @@ ${errors.join("\n")}`);
|
|
|
28767
28756
|
return decimalDigest(message);
|
|
28768
28757
|
}
|
|
28769
28758
|
};
|
|
28770
|
-
var
|
|
28759
|
+
var _WriteVisitor2 = class {
|
|
28771
28760
|
static {
|
|
28772
28761
|
__name(this, "_WriteVisitor");
|
|
28773
28762
|
}
|
|
@@ -28948,9 +28937,9 @@ var Xliff2Parser = class {
|
|
|
28948
28937
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
28949
28938
|
}
|
|
28950
28939
|
};
|
|
28951
|
-
var XmlToI18n$1 = class {
|
|
28940
|
+
var XmlToI18n$1 = class XmlToI18n2 {
|
|
28952
28941
|
static {
|
|
28953
|
-
__name(this, "XmlToI18n
|
|
28942
|
+
__name(this, "XmlToI18n");
|
|
28954
28943
|
}
|
|
28955
28944
|
// using non-null assertion because re(set) by convert()
|
|
28956
28945
|
_errors;
|
|
@@ -29001,7 +28990,7 @@ var XmlToI18n$1 = class {
|
|
|
29001
28990
|
visitAll(this, icu.cases).forEach((c) => {
|
|
29002
28991
|
caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);
|
|
29003
28992
|
});
|
|
29004
|
-
return new
|
|
28993
|
+
return new Icu2(icu.switchValue, icu.type, caseMap, icu.sourceSpan);
|
|
29005
28994
|
}
|
|
29006
28995
|
visitExpansionCase(icuCase, context) {
|
|
29007
28996
|
return {
|
|
@@ -29053,7 +29042,7 @@ var Xtb = class extends Serializer {
|
|
|
29053
29042
|
const xtbParser = new XtbParser();
|
|
29054
29043
|
const { locale, msgIdToHtml, errors } = xtbParser.parse(content, url);
|
|
29055
29044
|
const i18nNodesByMsgId = {};
|
|
29056
|
-
const converter = new
|
|
29045
|
+
const converter = new XmlToI18n3();
|
|
29057
29046
|
Object.keys(msgIdToHtml).forEach((msgId) => {
|
|
29058
29047
|
const valueFn = /* @__PURE__ */ __name(function() {
|
|
29059
29048
|
const { i18nNodes, errors: errors2 } = converter.convert(msgIdToHtml[msgId], url);
|
|
@@ -29169,7 +29158,7 @@ var XtbParser = class {
|
|
|
29169
29158
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
29170
29159
|
}
|
|
29171
29160
|
};
|
|
29172
|
-
var
|
|
29161
|
+
var XmlToI18n3 = class {
|
|
29173
29162
|
static {
|
|
29174
29163
|
__name(this, "XmlToI18n");
|
|
29175
29164
|
}
|
|
@@ -29192,7 +29181,7 @@ var XmlToI18n = class {
|
|
|
29192
29181
|
visitAll(this, icu.cases).forEach((c) => {
|
|
29193
29182
|
caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);
|
|
29194
29183
|
});
|
|
29195
|
-
return new
|
|
29184
|
+
return new Icu2(icu.switchValue, icu.type, caseMap, icu.sourceSpan);
|
|
29196
29185
|
}
|
|
29197
29186
|
visitExpansionCase(icuCase, context) {
|
|
29198
29187
|
return {
|
|
@@ -29654,7 +29643,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
29654
29643
|
function compileDeclareClassMetadata(metadata) {
|
|
29655
29644
|
const definitionMap = new DefinitionMap();
|
|
29656
29645
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
29657
|
-
definitionMap.set("version", literal("19.2.
|
|
29646
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
29658
29647
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29659
29648
|
definitionMap.set("type", metadata.type);
|
|
29660
29649
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -29673,7 +29662,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
29673
29662
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
29674
29663
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
29675
29664
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
29676
|
-
definitionMap.set("version", literal("19.2.
|
|
29665
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
29677
29666
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29678
29667
|
definitionMap.set("type", metadata.type);
|
|
29679
29668
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -29742,7 +29731,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
29742
29731
|
const definitionMap = new DefinitionMap();
|
|
29743
29732
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
29744
29733
|
definitionMap.set("minVersion", literal(minVersion));
|
|
29745
|
-
definitionMap.set("version", literal("19.2.
|
|
29734
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
29746
29735
|
definitionMap.set("type", meta.type.value);
|
|
29747
29736
|
if (meta.isStandalone !== void 0) {
|
|
29748
29737
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -29807,7 +29796,6 @@ function compileQuery(query) {
|
|
|
29807
29796
|
meta.set("predicate", Array.isArray(query.predicate) ? asLiteral(query.predicate) : convertFromMaybeForwardRefExpression(query.predicate));
|
|
29808
29797
|
if (!query.emitDistinctChangesOnly) {
|
|
29809
29798
|
meta.set("emitDistinctChangesOnly", literal(false));
|
|
29810
|
-
} else {
|
|
29811
29799
|
}
|
|
29812
29800
|
if (query.descendants) {
|
|
29813
29801
|
meta.set("descendants", literal(true));
|
|
@@ -30070,7 +30058,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
30070
30058
|
function compileDeclareFactoryFunction(meta) {
|
|
30071
30059
|
const definitionMap = new DefinitionMap();
|
|
30072
30060
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
30073
|
-
definitionMap.set("version", literal("19.2.
|
|
30061
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
30074
30062
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30075
30063
|
definitionMap.set("type", meta.type.value);
|
|
30076
30064
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -30093,7 +30081,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
30093
30081
|
function createInjectableDefinitionMap(meta) {
|
|
30094
30082
|
const definitionMap = new DefinitionMap();
|
|
30095
30083
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
30096
|
-
definitionMap.set("version", literal("19.2.
|
|
30084
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
30097
30085
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30098
30086
|
definitionMap.set("type", meta.type.value);
|
|
30099
30087
|
if (meta.providedIn !== void 0) {
|
|
@@ -30131,7 +30119,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
30131
30119
|
function createInjectorDefinitionMap(meta) {
|
|
30132
30120
|
const definitionMap = new DefinitionMap();
|
|
30133
30121
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
30134
|
-
definitionMap.set("version", literal("19.2.
|
|
30122
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
30135
30123
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30136
30124
|
definitionMap.set("type", meta.type.value);
|
|
30137
30125
|
definitionMap.set("providers", meta.providers);
|
|
@@ -30155,7 +30143,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
30155
30143
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
30156
30144
|
}
|
|
30157
30145
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
30158
|
-
definitionMap.set("version", literal("19.2.
|
|
30146
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
30159
30147
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30160
30148
|
definitionMap.set("type", meta.type.value);
|
|
30161
30149
|
if (meta.bootstrap.length > 0) {
|
|
@@ -30190,7 +30178,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
30190
30178
|
function createPipeDefinitionMap(meta) {
|
|
30191
30179
|
const definitionMap = new DefinitionMap();
|
|
30192
30180
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
30193
|
-
definitionMap.set("version", literal("19.2.
|
|
30181
|
+
definitionMap.set("version", literal("19.2.3"));
|
|
30194
30182
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30195
30183
|
definitionMap.set("type", meta.type.value);
|
|
30196
30184
|
if (meta.isStandalone !== void 0) {
|
|
@@ -30456,12 +30444,10 @@ publishFacade(_global);
|
|
|
30456
30444
|
|
|
30457
30445
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
30458
30446
|
(**
|
|
30459
|
-
* @license Angular v19.2.
|
|
30447
|
+
* @license Angular v19.2.3
|
|
30460
30448
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
30461
30449
|
* License: MIT
|
|
30462
30450
|
*)
|
|
30463
|
-
|
|
30464
|
-
@angular/compiler/fesm2022/compiler.mjs:
|
|
30465
30451
|
(*!
|
|
30466
30452
|
* @license
|
|
30467
30453
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -30477,13 +30463,4 @@ publishFacade(_global);
|
|
|
30477
30463
|
* Use of this source code is governed by an MIT-style license that can be
|
|
30478
30464
|
* found in the LICENSE file at https://angular.dev/license
|
|
30479
30465
|
*)
|
|
30480
|
-
|
|
30481
|
-
@angular/compiler/fesm2022/compiler.mjs:
|
|
30482
|
-
(*!
|
|
30483
|
-
* @license
|
|
30484
|
-
* Copyright Google LLC All Rights Reserved.
|
|
30485
|
-
*
|
|
30486
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
30487
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
30488
|
-
*)
|
|
30489
30466
|
*/
|