@angular/compiler 20.0.0-next.4 → 20.0.0-next.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/fesm2022/compiler.mjs +1052 -341
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +102 -17
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -254,7 +254,8 @@ declare const core_d_ViewEncapsulation: typeof ViewEncapsulation;
|
|
|
254
254
|
declare const core_d_emitDistinctChangesOnlyDefaultValue: typeof emitDistinctChangesOnlyDefaultValue;
|
|
255
255
|
declare const core_d_parseSelectorToR3Selector: typeof parseSelectorToR3Selector;
|
|
256
256
|
declare namespace core_d {
|
|
257
|
-
export { core_d_AttributeMarker as AttributeMarker, core_d_CUSTOM_ELEMENTS_SCHEMA as CUSTOM_ELEMENTS_SCHEMA, core_d_ChangeDetectionStrategy as ChangeDetectionStrategy,
|
|
257
|
+
export { core_d_AttributeMarker as AttributeMarker, core_d_CUSTOM_ELEMENTS_SCHEMA as CUSTOM_ELEMENTS_SCHEMA, core_d_ChangeDetectionStrategy as ChangeDetectionStrategy, core_d_InjectFlags as InjectFlags, core_d_InputFlags as InputFlags, core_d_MissingTranslationStrategy as MissingTranslationStrategy, core_d_NO_ERRORS_SCHEMA as NO_ERRORS_SCHEMA, core_d_RenderFlags as RenderFlags, core_d_SecurityContext as SecurityContext, core_d_SelectorFlags as SelectorFlags, Type$1 as Type, core_d_ViewEncapsulation as ViewEncapsulation, core_d_emitDistinctChangesOnlyDefaultValue as emitDistinctChangesOnlyDefaultValue, core_d_parseSelectorToR3Selector as parseSelectorToR3Selector };
|
|
258
|
+
export type { core_d_HostBinding as HostBinding, core_d_HostListener as HostListener, core_d_Input as Input, core_d_Output as Output, core_d_R3CssSelector as R3CssSelector, core_d_R3CssSelectorList as R3CssSelectorList, core_d_SchemaMetadata as SchemaMetadata };
|
|
258
259
|
}
|
|
259
260
|
|
|
260
261
|
declare class ParseLocation {
|
|
@@ -524,7 +525,15 @@ declare const enum TokenType$1 {
|
|
|
524
525
|
LET_VALUE = 30,
|
|
525
526
|
LET_END = 31,
|
|
526
527
|
INCOMPLETE_LET = 32,
|
|
527
|
-
|
|
528
|
+
COMPONENT_OPEN_START = 33,
|
|
529
|
+
COMPONENT_OPEN_END = 34,
|
|
530
|
+
COMPONENT_OPEN_END_VOID = 35,
|
|
531
|
+
COMPONENT_CLOSE = 36,
|
|
532
|
+
INCOMPLETE_COMPONENT_OPEN = 37,
|
|
533
|
+
DIRECTIVE_NAME = 38,
|
|
534
|
+
DIRECTIVE_OPEN = 39,
|
|
535
|
+
DIRECTIVE_CLOSE = 40,
|
|
536
|
+
EOF = 41
|
|
528
537
|
}
|
|
529
538
|
type InterpolatedTextToken = TextToken | InterpolationToken | EncodedEntityToken;
|
|
530
539
|
type InterpolatedAttributeToken = AttributeValueTextToken | AttributeValueInterpolationToken | EncodedEntityToken;
|
|
@@ -558,7 +567,7 @@ interface BaseNode {
|
|
|
558
567
|
sourceSpan: ParseSourceSpan;
|
|
559
568
|
visit(visitor: Visitor$1, context: any): any;
|
|
560
569
|
}
|
|
561
|
-
type Node$1 = Attribute | Comment$1 | Element$1 | Expansion | ExpansionCase | Text$1 | Block | BlockParameter;
|
|
570
|
+
type Node$1 = Attribute | Comment$1 | Element$1 | Expansion | ExpansionCase | Text$1 | Block | BlockParameter | Component$1 | Directive$1;
|
|
562
571
|
declare abstract class NodeWithI18n implements BaseNode {
|
|
563
572
|
sourceSpan: ParseSourceSpan;
|
|
564
573
|
i18n?: I18nMeta$1 | undefined;
|
|
@@ -600,10 +609,11 @@ declare class Attribute extends NodeWithI18n {
|
|
|
600
609
|
declare class Element$1 extends NodeWithI18n {
|
|
601
610
|
name: string;
|
|
602
611
|
attrs: Attribute[];
|
|
612
|
+
readonly directives: Directive$1[];
|
|
603
613
|
children: Node$1[];
|
|
604
614
|
startSourceSpan: ParseSourceSpan;
|
|
605
615
|
endSourceSpan: ParseSourceSpan | null;
|
|
606
|
-
constructor(name: string, attrs: Attribute[], children: Node$1[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan?: ParseSourceSpan | null, i18n?: I18nMeta$1);
|
|
616
|
+
constructor(name: string, attrs: Attribute[], directives: Directive$1[], children: Node$1[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan?: ParseSourceSpan | null, i18n?: I18nMeta$1);
|
|
607
617
|
visit(visitor: Visitor$1, context: any): any;
|
|
608
618
|
}
|
|
609
619
|
declare class Comment$1 implements BaseNode {
|
|
@@ -622,6 +632,27 @@ declare class Block extends NodeWithI18n {
|
|
|
622
632
|
constructor(name: string, parameters: BlockParameter[], children: Node$1[], sourceSpan: ParseSourceSpan, nameSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan?: ParseSourceSpan | null, i18n?: I18nMeta$1);
|
|
623
633
|
visit(visitor: Visitor$1, context: any): any;
|
|
624
634
|
}
|
|
635
|
+
declare class Component$1 extends NodeWithI18n {
|
|
636
|
+
readonly componentName: string;
|
|
637
|
+
readonly tagName: string | null;
|
|
638
|
+
readonly fullName: string;
|
|
639
|
+
attrs: Attribute[];
|
|
640
|
+
readonly directives: Directive$1[];
|
|
641
|
+
readonly children: Node$1[];
|
|
642
|
+
readonly startSourceSpan: ParseSourceSpan;
|
|
643
|
+
endSourceSpan: ParseSourceSpan | null;
|
|
644
|
+
constructor(componentName: string, tagName: string | null, fullName: string, attrs: Attribute[], directives: Directive$1[], children: Node$1[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan?: ParseSourceSpan | null, i18n?: I18nMeta$1);
|
|
645
|
+
visit(visitor: Visitor$1, context: any): any;
|
|
646
|
+
}
|
|
647
|
+
declare class Directive$1 implements BaseNode {
|
|
648
|
+
readonly name: string;
|
|
649
|
+
readonly attrs: Attribute[];
|
|
650
|
+
readonly sourceSpan: ParseSourceSpan;
|
|
651
|
+
readonly startSourceSpan: ParseSourceSpan;
|
|
652
|
+
readonly endSourceSpan: ParseSourceSpan | null;
|
|
653
|
+
constructor(name: string, attrs: Attribute[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan?: ParseSourceSpan | null);
|
|
654
|
+
visit(visitor: Visitor$1, context: any): any;
|
|
655
|
+
}
|
|
625
656
|
declare class BlockParameter implements BaseNode {
|
|
626
657
|
expression: string;
|
|
627
658
|
sourceSpan: ParseSourceSpan;
|
|
@@ -648,6 +679,8 @@ interface Visitor$1 {
|
|
|
648
679
|
visitBlock(block: Block, context: any): any;
|
|
649
680
|
visitBlockParameter(parameter: BlockParameter, context: any): any;
|
|
650
681
|
visitLetDeclaration(decl: LetDeclaration$1, context: any): any;
|
|
682
|
+
visitComponent(component: Component$1, context: any): any;
|
|
683
|
+
visitDirective(directive: Directive$1, context: any): any;
|
|
651
684
|
}
|
|
652
685
|
declare function visitAll$1(visitor: Visitor$1, nodes: Node$1[], context?: any): any[];
|
|
653
686
|
declare class RecursiveVisitor$1 implements Visitor$1 {
|
|
@@ -661,6 +694,8 @@ declare class RecursiveVisitor$1 implements Visitor$1 {
|
|
|
661
694
|
visitBlock(block: Block, context: any): any;
|
|
662
695
|
visitBlockParameter(ast: BlockParameter, context: any): any;
|
|
663
696
|
visitLetDeclaration(decl: LetDeclaration$1, context: any): void;
|
|
697
|
+
visitComponent(component: Component$1, context: any): void;
|
|
698
|
+
visitDirective(directive: Directive$1, context: any): void;
|
|
664
699
|
private visitChildren;
|
|
665
700
|
}
|
|
666
701
|
|
|
@@ -767,6 +802,8 @@ interface TokenizeOptions {
|
|
|
767
802
|
* text or an incomplete block, depending on whether `tokenizeBlocks` is enabled.
|
|
768
803
|
*/
|
|
769
804
|
tokenizeLet?: boolean;
|
|
805
|
+
/** Whether the selectorless syntax is enabled. */
|
|
806
|
+
selectorlessEnabled?: boolean;
|
|
770
807
|
}
|
|
771
808
|
|
|
772
809
|
declare class TreeError extends ParseError {
|
|
@@ -1038,8 +1075,8 @@ declare class TemplateLiteralExpr extends Expression {
|
|
|
1038
1075
|
clone(): TemplateLiteralExpr;
|
|
1039
1076
|
}
|
|
1040
1077
|
declare class TemplateLiteralElementExpr extends Expression {
|
|
1041
|
-
text: string;
|
|
1042
|
-
rawText: string;
|
|
1078
|
+
readonly text: string;
|
|
1079
|
+
readonly rawText: string;
|
|
1043
1080
|
constructor(text: string, sourceSpan?: ParseSourceSpan | null, rawText?: string);
|
|
1044
1081
|
visitExpression(visitor: ExpressionVisitor, context: any): any;
|
|
1045
1082
|
isEquivalent(e: Expression): boolean;
|
|
@@ -1597,7 +1634,8 @@ declare const output_ast_d_typeofExpr: typeof typeofExpr;
|
|
|
1597
1634
|
declare const output_ast_d_unary: typeof unary;
|
|
1598
1635
|
declare const output_ast_d_variable: typeof variable;
|
|
1599
1636
|
declare namespace output_ast_d {
|
|
1600
|
-
export { output_ast_d_ArrayType as ArrayType, output_ast_d_ArrowFunctionExpr as ArrowFunctionExpr, output_ast_d_BOOL_TYPE as BOOL_TYPE, output_ast_d_BinaryOperator as BinaryOperator, output_ast_d_BinaryOperatorExpr as BinaryOperatorExpr, output_ast_d_BuiltinType as BuiltinType, output_ast_d_BuiltinTypeName as BuiltinTypeName, output_ast_d_CommaExpr as CommaExpr, output_ast_d_ConditionalExpr as ConditionalExpr,
|
|
1637
|
+
export { output_ast_d_ArrayType as ArrayType, output_ast_d_ArrowFunctionExpr as ArrowFunctionExpr, output_ast_d_BOOL_TYPE as BOOL_TYPE, output_ast_d_BinaryOperator as BinaryOperator, output_ast_d_BinaryOperatorExpr as BinaryOperatorExpr, output_ast_d_BuiltinType as BuiltinType, output_ast_d_BuiltinTypeName as BuiltinTypeName, output_ast_d_CommaExpr as CommaExpr, output_ast_d_ConditionalExpr as ConditionalExpr, output_ast_d_DYNAMIC_TYPE as DYNAMIC_TYPE, output_ast_d_DeclareFunctionStmt as DeclareFunctionStmt, output_ast_d_DeclareVarStmt as DeclareVarStmt, output_ast_d_DynamicImportExpr as DynamicImportExpr, output_ast_d_Expression as Expression, output_ast_d_ExpressionStatement as ExpressionStatement, output_ast_d_ExpressionType as ExpressionType, output_ast_d_ExternalExpr as ExternalExpr, output_ast_d_ExternalReference as ExternalReference, output_ast_d_FUNCTION_TYPE as FUNCTION_TYPE, output_ast_d_FnParam as FnParam, output_ast_d_FunctionExpr as FunctionExpr, output_ast_d_INFERRED_TYPE as INFERRED_TYPE, output_ast_d_INT_TYPE as INT_TYPE, output_ast_d_IfStmt as IfStmt, output_ast_d_InstantiateExpr as InstantiateExpr, output_ast_d_InvokeFunctionExpr as InvokeFunctionExpr, output_ast_d_JSDocComment as JSDocComment, output_ast_d_JSDocTagName as JSDocTagName, output_ast_d_LeadingComment as LeadingComment, output_ast_d_LiteralArrayExpr as LiteralArrayExpr, output_ast_d_LiteralExpr as LiteralExpr, output_ast_d_LiteralMapEntry as LiteralMapEntry, output_ast_d_LiteralMapExpr as LiteralMapExpr, output_ast_d_LiteralPiece as LiteralPiece, output_ast_d_LocalizedString as LocalizedString, output_ast_d_MapType as MapType, output_ast_d_NONE_TYPE as NONE_TYPE, output_ast_d_NULL_EXPR as NULL_EXPR, output_ast_d_NUMBER_TYPE as NUMBER_TYPE, output_ast_d_NotExpr as NotExpr, output_ast_d_ParenthesizedExpr as ParenthesizedExpr, output_ast_d_PlaceholderPiece as PlaceholderPiece, output_ast_d_ReadKeyExpr as ReadKeyExpr, output_ast_d_ReadPropExpr as ReadPropExpr, output_ast_d_ReadVarExpr as ReadVarExpr, RecursiveAstVisitor$1 as RecursiveAstVisitor, output_ast_d_ReturnStatement as ReturnStatement, output_ast_d_STRING_TYPE as STRING_TYPE, output_ast_d_Statement as Statement, output_ast_d_StmtModifier as StmtModifier, output_ast_d_TYPED_NULL_EXPR as TYPED_NULL_EXPR, output_ast_d_TaggedTemplateLiteralExpr as TaggedTemplateLiteralExpr, output_ast_d_TemplateLiteralElementExpr as TemplateLiteralElementExpr, output_ast_d_TemplateLiteralExpr as TemplateLiteralExpr, output_ast_d_TransplantedType as TransplantedType, output_ast_d_Type as Type, output_ast_d_TypeModifier as TypeModifier, output_ast_d_TypeofExpr as TypeofExpr, output_ast_d_UnaryOperator as UnaryOperator, output_ast_d_UnaryOperatorExpr as UnaryOperatorExpr, output_ast_d_VoidExpr as VoidExpr, output_ast_d_WrappedNodeExpr as WrappedNodeExpr, output_ast_d_WriteKeyExpr as WriteKeyExpr, output_ast_d_WritePropExpr as WritePropExpr, output_ast_d_WriteVarExpr as WriteVarExpr, output_ast_d_areAllEquivalent as areAllEquivalent, output_ast_d_arrowFn as arrowFn, output_ast_d_expressionType as expressionType, output_ast_d_fn as fn, output_ast_d_ifStmt as ifStmt, output_ast_d_importExpr as importExpr, output_ast_d_importType as importType, output_ast_d_isNull as isNull, output_ast_d_jsDocComment as jsDocComment, output_ast_d_leadingComment as leadingComment, output_ast_d_literal as literal, output_ast_d_literalArr as literalArr, output_ast_d_literalMap as literalMap, output_ast_d_localizedString as localizedString, output_ast_d_not as not, output_ast_d_nullSafeIsEquivalent as nullSafeIsEquivalent, output_ast_d_taggedTemplate as taggedTemplate, output_ast_d_transplantedType as transplantedType, output_ast_d_typeofExpr as typeofExpr, output_ast_d_unary as unary, output_ast_d_variable as variable };
|
|
1638
|
+
export type { output_ast_d_CookedRawString as CookedRawString, output_ast_d_ExpressionVisitor as ExpressionVisitor, output_ast_d_JSDocTag as JSDocTag, output_ast_d_MessagePiece as MessagePiece, output_ast_d_StatementVisitor as StatementVisitor, output_ast_d_TypeVisitor as TypeVisitor };
|
|
1601
1639
|
}
|
|
1602
1640
|
|
|
1603
1641
|
declare class CompilerConfig {
|
|
@@ -2050,14 +2088,14 @@ declare enum ParsedEventType {
|
|
|
2050
2088
|
}
|
|
2051
2089
|
declare class ParsedEvent {
|
|
2052
2090
|
name: string;
|
|
2053
|
-
targetOrPhase: string;
|
|
2091
|
+
targetOrPhase: string | null;
|
|
2054
2092
|
type: ParsedEventType;
|
|
2055
2093
|
handler: ASTWithSource;
|
|
2056
2094
|
sourceSpan: ParseSourceSpan;
|
|
2057
2095
|
handlerSpan: ParseSourceSpan;
|
|
2058
2096
|
readonly keySpan: ParseSourceSpan;
|
|
2059
|
-
constructor(name: string, targetOrPhase: string, type: ParsedEventType.TwoWay, handler: ASTWithSource<NonNullAssert | PropertyRead | KeyedRead>, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan, keySpan: ParseSourceSpan);
|
|
2060
|
-
constructor(name: string, targetOrPhase: string, type: ParsedEventType, handler: ASTWithSource, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan, keySpan: ParseSourceSpan);
|
|
2097
|
+
constructor(name: string, targetOrPhase: string | null, type: ParsedEventType.TwoWay, handler: ASTWithSource<NonNullAssert | PropertyRead | KeyedRead>, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan, keySpan: ParseSourceSpan);
|
|
2098
|
+
constructor(name: string, targetOrPhase: string | null, type: ParsedEventType, handler: ASTWithSource, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan, keySpan: ParseSourceSpan);
|
|
2061
2099
|
}
|
|
2062
2100
|
/**
|
|
2063
2101
|
* ParsedVariable represents a variable declaration in a microsyntax expression.
|
|
@@ -3221,13 +3259,14 @@ declare class Element implements Node {
|
|
|
3221
3259
|
attributes: TextAttribute[];
|
|
3222
3260
|
inputs: BoundAttribute[];
|
|
3223
3261
|
outputs: BoundEvent[];
|
|
3262
|
+
directives: Directive[];
|
|
3224
3263
|
children: Node[];
|
|
3225
3264
|
references: Reference[];
|
|
3226
3265
|
sourceSpan: ParseSourceSpan;
|
|
3227
3266
|
startSourceSpan: ParseSourceSpan;
|
|
3228
3267
|
endSourceSpan: ParseSourceSpan | null;
|
|
3229
3268
|
i18n?: I18nMeta$1 | undefined;
|
|
3230
|
-
constructor(name: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], children: Node[], references: Reference[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan | null, i18n?: I18nMeta$1 | undefined);
|
|
3269
|
+
constructor(name: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], directives: Directive[], children: Node[], references: Reference[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan | null, i18n?: I18nMeta$1 | undefined);
|
|
3231
3270
|
visit<Result>(visitor: Visitor<Result>): Result;
|
|
3232
3271
|
}
|
|
3233
3272
|
declare abstract class DeferredTrigger implements Node {
|
|
@@ -3392,11 +3431,42 @@ declare class LetDeclaration implements Node {
|
|
|
3392
3431
|
constructor(name: string, value: AST, sourceSpan: ParseSourceSpan, nameSpan: ParseSourceSpan, valueSpan: ParseSourceSpan);
|
|
3393
3432
|
visit<Result>(visitor: Visitor<Result>): Result;
|
|
3394
3433
|
}
|
|
3434
|
+
declare class Component implements Node {
|
|
3435
|
+
componentName: string;
|
|
3436
|
+
tagName: string | null;
|
|
3437
|
+
fullName: string;
|
|
3438
|
+
attributes: TextAttribute[];
|
|
3439
|
+
inputs: BoundAttribute[];
|
|
3440
|
+
outputs: BoundEvent[];
|
|
3441
|
+
directives: Directive[];
|
|
3442
|
+
children: Node[];
|
|
3443
|
+
references: Reference[];
|
|
3444
|
+
sourceSpan: ParseSourceSpan;
|
|
3445
|
+
startSourceSpan: ParseSourceSpan;
|
|
3446
|
+
endSourceSpan: ParseSourceSpan | null;
|
|
3447
|
+
i18n?: I18nMeta$1 | undefined;
|
|
3448
|
+
constructor(componentName: string, tagName: string | null, fullName: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], directives: Directive[], children: Node[], references: Reference[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan | null, i18n?: I18nMeta$1 | undefined);
|
|
3449
|
+
visit<Result>(visitor: Visitor<Result>): Result;
|
|
3450
|
+
}
|
|
3451
|
+
declare class Directive implements Node {
|
|
3452
|
+
name: string;
|
|
3453
|
+
attributes: TextAttribute[];
|
|
3454
|
+
inputs: BoundAttribute[];
|
|
3455
|
+
outputs: BoundEvent[];
|
|
3456
|
+
references: Reference[];
|
|
3457
|
+
sourceSpan: ParseSourceSpan;
|
|
3458
|
+
startSourceSpan: ParseSourceSpan;
|
|
3459
|
+
endSourceSpan: ParseSourceSpan | null;
|
|
3460
|
+
i18n?: I18nMeta$1 | undefined;
|
|
3461
|
+
constructor(name: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], references: Reference[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan | null, i18n?: I18nMeta$1 | undefined);
|
|
3462
|
+
visit<Result>(visitor: Visitor<Result>): Result;
|
|
3463
|
+
}
|
|
3395
3464
|
declare class Template implements Node {
|
|
3396
3465
|
tagName: string | null;
|
|
3397
3466
|
attributes: TextAttribute[];
|
|
3398
3467
|
inputs: BoundAttribute[];
|
|
3399
3468
|
outputs: BoundEvent[];
|
|
3469
|
+
directives: Directive[];
|
|
3400
3470
|
templateAttrs: (BoundAttribute | TextAttribute)[];
|
|
3401
3471
|
children: Node[];
|
|
3402
3472
|
references: Reference[];
|
|
@@ -3405,7 +3475,7 @@ declare class Template implements Node {
|
|
|
3405
3475
|
startSourceSpan: ParseSourceSpan;
|
|
3406
3476
|
endSourceSpan: ParseSourceSpan | null;
|
|
3407
3477
|
i18n?: I18nMeta$1 | undefined;
|
|
3408
|
-
constructor(tagName: string | null, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], templateAttrs: (BoundAttribute | TextAttribute)[], children: Node[], references: Reference[], variables: Variable[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan | null, i18n?: I18nMeta$1 | undefined);
|
|
3478
|
+
constructor(tagName: string | null, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], directives: Directive[], templateAttrs: (BoundAttribute | TextAttribute)[], children: Node[], references: Reference[], variables: Variable[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan | null, i18n?: I18nMeta$1 | undefined);
|
|
3409
3479
|
visit<Result>(visitor: Visitor<Result>): Result;
|
|
3410
3480
|
}
|
|
3411
3481
|
declare class Content implements Node {
|
|
@@ -3413,9 +3483,11 @@ declare class Content implements Node {
|
|
|
3413
3483
|
attributes: TextAttribute[];
|
|
3414
3484
|
children: Node[];
|
|
3415
3485
|
sourceSpan: ParseSourceSpan;
|
|
3486
|
+
startSourceSpan: ParseSourceSpan;
|
|
3487
|
+
endSourceSpan: ParseSourceSpan | null;
|
|
3416
3488
|
i18n?: I18nMeta$1 | undefined;
|
|
3417
3489
|
readonly name = "ng-content";
|
|
3418
|
-
constructor(selector: string, attributes: TextAttribute[], children: Node[], sourceSpan: ParseSourceSpan, i18n?: I18nMeta$1 | undefined);
|
|
3490
|
+
constructor(selector: string, attributes: TextAttribute[], children: Node[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan | null, i18n?: I18nMeta$1 | undefined);
|
|
3419
3491
|
visit<Result>(visitor: Visitor<Result>): Result;
|
|
3420
3492
|
}
|
|
3421
3493
|
declare class Variable implements Node {
|
|
@@ -3490,6 +3562,8 @@ interface Visitor<Result = any> {
|
|
|
3490
3562
|
visitIfBlockBranch(block: IfBlockBranch): Result;
|
|
3491
3563
|
visitUnknownBlock(block: UnknownBlock): Result;
|
|
3492
3564
|
visitLetDeclaration(decl: LetDeclaration): Result;
|
|
3565
|
+
visitComponent(component: Component): Result;
|
|
3566
|
+
visitDirective(directive: Directive): Result;
|
|
3493
3567
|
}
|
|
3494
3568
|
declare class RecursiveVisitor implements Visitor<void> {
|
|
3495
3569
|
visitElement(element: Element): void;
|
|
@@ -3505,6 +3579,8 @@ declare class RecursiveVisitor implements Visitor<void> {
|
|
|
3505
3579
|
visitIfBlock(block: IfBlock): void;
|
|
3506
3580
|
visitIfBlockBranch(block: IfBlockBranch): void;
|
|
3507
3581
|
visitContent(content: Content): void;
|
|
3582
|
+
visitComponent(component: Component): void;
|
|
3583
|
+
visitDirective(directive: Directive): void;
|
|
3508
3584
|
visitVariable(variable: Variable): void;
|
|
3509
3585
|
visitReference(reference: Reference): void;
|
|
3510
3586
|
visitTextAttribute(attribute: TextAttribute): void;
|
|
@@ -4139,9 +4215,17 @@ declare class BindingParser {
|
|
|
4139
4215
|
private _parsePropertyAst;
|
|
4140
4216
|
private _parseAnimation;
|
|
4141
4217
|
parseBinding(value: string, isHostBinding: boolean, sourceSpan: ParseSourceSpan, absoluteOffset: number): ASTWithSource;
|
|
4142
|
-
createBoundElementProperty(elementSelector: string, boundProp: ParsedProperty, skipValidation?: boolean, mapPropertyName?: boolean): BoundElementProperty;
|
|
4218
|
+
createBoundElementProperty(elementSelector: string | null, boundProp: ParsedProperty, skipValidation?: boolean, mapPropertyName?: boolean): BoundElementProperty;
|
|
4143
4219
|
parseEvent(name: string, expression: string, isAssignmentEvent: boolean, sourceSpan: ParseSourceSpan, handlerSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetEvents: ParsedEvent[], keySpan: ParseSourceSpan): void;
|
|
4144
4220
|
calcPossibleSecurityContexts(selector: string, propName: string, isAttribute: boolean): SecurityContext[];
|
|
4221
|
+
parseEventListenerName(rawName: string): {
|
|
4222
|
+
eventName: string;
|
|
4223
|
+
target: string | null;
|
|
4224
|
+
};
|
|
4225
|
+
parseAnimationEventName(rawName: string): {
|
|
4226
|
+
eventName: string;
|
|
4227
|
+
phase: string | null;
|
|
4228
|
+
};
|
|
4145
4229
|
private _parseAnimationEvent;
|
|
4146
4230
|
private _parseRegularEvent;
|
|
4147
4231
|
private _parseAction;
|
|
@@ -4859,7 +4943,7 @@ declare class Identifiers {
|
|
|
4859
4943
|
static pipeBind3: ExternalReference;
|
|
4860
4944
|
static pipeBind4: ExternalReference;
|
|
4861
4945
|
static pipeBindV: ExternalReference;
|
|
4862
|
-
static
|
|
4946
|
+
static domProperty: ExternalReference;
|
|
4863
4947
|
static property: ExternalReference;
|
|
4864
4948
|
static propertyInterpolate: ExternalReference;
|
|
4865
4949
|
static propertyInterpolate1: ExternalReference;
|
|
@@ -5294,4 +5378,5 @@ declare class DomElementSchemaRegistry extends ElementSchemaRegistry {
|
|
|
5294
5378
|
|
|
5295
5379
|
declare const VERSION: Version;
|
|
5296
5380
|
|
|
5297
|
-
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan,
|
|
5381
|
+
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingParser, BindingPipe, BindingType, Block, BlockParameter, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy, CommaExpr, Comment$1 as Comment, CompilerConfig, Component$1 as Component, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclarationListEmitMode, DeclareFunctionStmt, DeclareVarStmt, DeferBlockDepsEmitMode, Directive$1 as Directive, DomElementSchemaRegistry, DynamicImportExpr, EOF, Element$1 as Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget$1 as FactoryTarget, ForwardRefHandling, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation, InterpolationConfig, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, KeyedWrite, LeadingComment, LetDeclaration$1 as LetDeclaration, Lexer, TokenType$1 as LexerTokenType, LiteralArray, LiteralArrayExpr, LiteralExpr, LiteralMap, LiteralMapExpr, LiteralPrimitive, LocalizedString, MapType, MessageBundle, NONE_TYPE, NO_ERRORS_SCHEMA, NodeWithI18n, NonNullAssert, NotExpr, ParenthesizedExpr, ParenthesizedExpression, ParseError, ParseErrorLevel, ParseFlags, ParseLocation, ParseSourceFile, ParseSourceSpan, ParseSpan, ParseTreeResult, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser, ParserError, PrefixNot, PropertyRead, PropertyWrite, Identifiers as R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, R3TargetBinder, R3TemplateDependencyKind, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor$1 as RecursiveVisitor, ResourceLoader, ReturnStatement, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, Serializer, SplitInterpolation, Statement, StmtModifier, StringToken, StringTokenKind, TagContentType, TaggedTemplateLiteral, TaggedTemplateLiteralExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, TemplateLiteralElementExpr, TemplateLiteralExpr, Text$1 as Text, ThisReceiver, BlockNode as TmplAstBlockNode, BoundAttribute as TmplAstBoundAttribute, BoundDeferredTrigger as TmplAstBoundDeferredTrigger, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Component as TmplAstComponent, Content as TmplAstContent, DeferredBlock as TmplAstDeferredBlock, DeferredBlockError as TmplAstDeferredBlockError, DeferredBlockLoading as TmplAstDeferredBlockLoading, DeferredBlockPlaceholder as TmplAstDeferredBlockPlaceholder, DeferredTrigger as TmplAstDeferredTrigger, Directive as TmplAstDirective, Element as TmplAstElement, ForLoopBlock as TmplAstForLoopBlock, ForLoopBlockEmpty as TmplAstForLoopBlockEmpty, HostElement as TmplAstHostElement, HoverDeferredTrigger as TmplAstHoverDeferredTrigger, Icu as TmplAstIcu, IdleDeferredTrigger as TmplAstIdleDeferredTrigger, IfBlock as TmplAstIfBlock, IfBlockBranch as TmplAstIfBlockBranch, ImmediateDeferredTrigger as TmplAstImmediateDeferredTrigger, InteractionDeferredTrigger as TmplAstInteractionDeferredTrigger, LetDeclaration as TmplAstLetDeclaration, NeverDeferredTrigger as TmplAstNeverDeferredTrigger, RecursiveVisitor as TmplAstRecursiveVisitor, Reference as TmplAstReference, SwitchBlock as TmplAstSwitchBlock, SwitchBlockCase as TmplAstSwitchBlockCase, Template as TmplAstTemplate, Text as TmplAstText, TextAttribute as TmplAstTextAttribute, TimerDeferredTrigger as TmplAstTimerDeferredTrigger, UnknownBlock as TmplAstUnknownBlock, Variable as TmplAstVariable, ViewportDeferredTrigger as TmplAstViewportDeferredTrigger, Token, TokenType, TransplantedType, TreeError, Type, TypeModifier, TypeofExpr, TypeofExpression, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation, VoidExpr, VoidExpression, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, compileClassDebugInfo, compileClassMetadata, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDeferResolverFunction, compileDirectiveFromMetadata, compileFactoryFunction, compileHmrInitializer, compileHmrUpdateCallback, compileInjectable, compileInjector, compileNgModule, compileOpaqueAsyncClassMetadata, compilePipeFromMetadata, computeMsgId, core_d as core, createCssSelectorFromNode, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, encapsulateStyle, findMatchingDirectivesAndPipes, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literal, literalMap, makeBindingParser, mergeNsAndName, output_ast_d as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, splitNsName, visitAll as tmplAstVisitAll, verifyHostBindings, visitAll$1 as visitAll };
|
|
5382
|
+
export type { AnimationTriggerNames, AstVisitor, BoundTarget, CompileClassMetadataFn, CompileIdentifierMetadata, DeclareComponentTemplateInfo, DirectiveMeta, ExpressionVisitor, InputOutputPropertySet, InterpolationPiece, LegacyInputPartialMapping, LexerRange, LiteralMapKey, MaybeForwardRefExpression, Node$1 as Node, ParseTemplateOptions, ParsedHostBindings, ParsedTemplate, R3ClassDebugInfo, R3ClassMetadata, R3CompiledExpression, R3ComponentDeferMetadata, R3ComponentMetadata, R3DeclareClassMetadata, R3DeclareClassMetadataAsync, R3DeclareComponentMetadata, R3DeclareDependencyMetadata, R3DeclareDirectiveDependencyMetadata, R3DeclareDirectiveMetadata, R3DeclareFactoryMetadata, R3DeclareHostDirectiveMetadata, R3DeclareInjectableMetadata, R3DeclareInjectorMetadata, R3DeclareNgModuleDependencyMetadata, R3DeclareNgModuleMetadata, R3DeclarePipeDependencyMetadata, R3DeclarePipeMetadata, R3DeclareQueryMetadata, R3DeclareTemplateDependencyMetadata, R3DeferPerBlockDependency, R3DeferPerComponentDependency, R3DeferResolverFunctionMetadata, R3DependencyMetadata, R3DirectiveDependencyMetadata, R3DirectiveMetadata, R3FactoryMetadata, R3HmrMetadata, R3HmrNamespaceDependency, R3HostDirectiveMetadata, R3HostMetadata, R3InjectableMetadata, R3InjectorMetadata, R3InputMetadata, R3NgModuleDependencyMetadata, R3NgModuleMetadata, R3NgModuleMetadataGlobal, R3PartialDeclaration, R3PipeDependencyMetadata, R3PipeMetadata, R3QueryMetadata, R3Reference, R3TemplateDependency, R3TemplateDependencyMetadata, ReferenceTarget, SchemaMetadata, ScopedNode, SourceMap, StatementVisitor, TagDefinition, Target, TargetBinder, TemplateBinding, TemplateBindingIdentifier, TemplateEntity, DeferredBlockTriggers as TmplAstDeferredBlockTriggers, Node as TmplAstNode, Visitor as TmplAstVisitor, TypeVisitor, Visitor$1 as Visitor };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "20.0.0-next.
|
|
3
|
+
"version": "20.0.0-next.6",
|
|
4
4
|
"description": "Angular - the compiler library",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^20.11.1 || >=22.11.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.3.0"
|