@angular/compiler 20.2.0-next.0 → 20.2.0-next.2
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 +730 -196
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +23 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-next.
|
|
2
|
+
* @license Angular v20.2.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -610,7 +610,8 @@ declare class Element$1 extends NodeWithI18n {
|
|
|
610
610
|
readonly isSelfClosing: boolean;
|
|
611
611
|
startSourceSpan: ParseSourceSpan$1;
|
|
612
612
|
endSourceSpan: ParseSourceSpan$1 | null;
|
|
613
|
-
|
|
613
|
+
readonly isVoid: boolean;
|
|
614
|
+
constructor(name: string, attrs: Attribute[], directives: Directive$1[], children: Node$1[], isSelfClosing: boolean, sourceSpan: ParseSourceSpan$1, startSourceSpan: ParseSourceSpan$1, endSourceSpan: (ParseSourceSpan$1 | null) | undefined, isVoid: boolean, i18n?: I18nMeta$1);
|
|
614
615
|
visit(visitor: Visitor$1, context: any): any;
|
|
615
616
|
}
|
|
616
617
|
declare class Comment$1 implements BaseNode {
|
|
@@ -2032,18 +2033,21 @@ declare class ParsedProperty {
|
|
|
2032
2033
|
valueSpan: ParseSourceSpan$1 | undefined;
|
|
2033
2034
|
readonly isLiteral: boolean;
|
|
2034
2035
|
readonly isLegacyAnimation: boolean;
|
|
2036
|
+
readonly isAnimation: boolean;
|
|
2035
2037
|
constructor(name: string, expression: ASTWithSource, type: ParsedPropertyType, sourceSpan: ParseSourceSpan$1, keySpan: ParseSourceSpan$1, valueSpan: ParseSourceSpan$1 | undefined);
|
|
2036
2038
|
}
|
|
2037
2039
|
declare enum ParsedPropertyType {
|
|
2038
2040
|
DEFAULT = 0,
|
|
2039
2041
|
LITERAL_ATTR = 1,
|
|
2040
2042
|
LEGACY_ANIMATION = 2,
|
|
2041
|
-
TWO_WAY = 3
|
|
2043
|
+
TWO_WAY = 3,
|
|
2044
|
+
ANIMATION = 4
|
|
2042
2045
|
}
|
|
2043
2046
|
declare enum ParsedEventType {
|
|
2044
2047
|
Regular = 0,
|
|
2045
2048
|
LegacyAnimation = 1,
|
|
2046
|
-
TwoWay = 2
|
|
2049
|
+
TwoWay = 2,
|
|
2050
|
+
Animation = 3
|
|
2047
2051
|
}
|
|
2048
2052
|
declare class ParsedEvent {
|
|
2049
2053
|
name: string;
|
|
@@ -2073,7 +2077,8 @@ declare enum BindingType {
|
|
|
2073
2077
|
Class = 2,
|
|
2074
2078
|
Style = 3,
|
|
2075
2079
|
LegacyAnimation = 4,
|
|
2076
|
-
TwoWay = 5
|
|
2080
|
+
TwoWay = 5,
|
|
2081
|
+
Animation = 6
|
|
2077
2082
|
}
|
|
2078
2083
|
declare class BoundElementProperty {
|
|
2079
2084
|
name: string;
|
|
@@ -3542,8 +3547,9 @@ declare class Element implements Node {
|
|
|
3542
3547
|
sourceSpan: ParseSourceSpan$1;
|
|
3543
3548
|
startSourceSpan: ParseSourceSpan$1;
|
|
3544
3549
|
endSourceSpan: ParseSourceSpan$1 | null;
|
|
3550
|
+
readonly isVoid: boolean;
|
|
3545
3551
|
i18n?: I18nMeta$1 | undefined;
|
|
3546
|
-
constructor(name: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], directives: Directive[], children: Node[], references: Reference[], isSelfClosing: boolean, sourceSpan: ParseSourceSpan$1, startSourceSpan: ParseSourceSpan$1, endSourceSpan: ParseSourceSpan$1 | null, i18n?: I18nMeta$1 | undefined);
|
|
3552
|
+
constructor(name: string, attributes: TextAttribute[], inputs: BoundAttribute[], outputs: BoundEvent[], directives: Directive[], children: Node[], references: Reference[], isSelfClosing: boolean, sourceSpan: ParseSourceSpan$1, startSourceSpan: ParseSourceSpan$1, endSourceSpan: ParseSourceSpan$1 | null, isVoid: boolean, i18n?: I18nMeta$1 | undefined);
|
|
3547
3553
|
visit<Result>(visitor: Visitor<Result>): Result;
|
|
3548
3554
|
}
|
|
3549
3555
|
declare abstract class DeferredTrigger implements Node {
|
|
@@ -4497,6 +4503,7 @@ declare class BindingParser {
|
|
|
4497
4503
|
parsePropertyBinding(name: string, expression: string, isHost: boolean, isPartOfAssignmentBinding: boolean, sourceSpan: ParseSourceSpan$1, absoluteOffset: number, valueSpan: ParseSourceSpan$1 | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan$1): void;
|
|
4498
4504
|
parsePropertyInterpolation(name: string, value: string, sourceSpan: ParseSourceSpan$1, valueSpan: ParseSourceSpan$1 | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan$1, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null): boolean;
|
|
4499
4505
|
private _parsePropertyAst;
|
|
4506
|
+
private _parseAnimation;
|
|
4500
4507
|
private _parseLegacyAnimation;
|
|
4501
4508
|
parseBinding(value: string, isHostBinding: boolean, sourceSpan: ParseSourceSpan$1, absoluteOffset: number): ASTWithSource;
|
|
4502
4509
|
createBoundElementProperty(elementSelector: string | null, boundProp: ParsedProperty, skipValidation?: boolean, mapPropertyName?: boolean): BoundElementProperty;
|
|
@@ -5216,7 +5223,12 @@ declare class Identifiers {
|
|
|
5216
5223
|
static pipeBind4: ExternalReference;
|
|
5217
5224
|
static pipeBindV: ExternalReference;
|
|
5218
5225
|
static domProperty: ExternalReference;
|
|
5226
|
+
static ariaProperty: ExternalReference;
|
|
5219
5227
|
static property: ExternalReference;
|
|
5228
|
+
static animationEnterListener: ExternalReference;
|
|
5229
|
+
static animationLeaveListener: ExternalReference;
|
|
5230
|
+
static animationEnter: ExternalReference;
|
|
5231
|
+
static animationLeave: ExternalReference;
|
|
5220
5232
|
static i18n: ExternalReference;
|
|
5221
5233
|
static i18nAttributes: ExternalReference;
|
|
5222
5234
|
static i18nExp: ExternalReference;
|
|
@@ -5295,6 +5307,7 @@ declare class Identifiers {
|
|
|
5295
5307
|
static ProvidersFeature: ExternalReference;
|
|
5296
5308
|
static HostDirectivesFeature: ExternalReference;
|
|
5297
5309
|
static ExternalStylesFeature: ExternalReference;
|
|
5310
|
+
static AnimationsFeature: ExternalReference;
|
|
5298
5311
|
static listener: ExternalReference;
|
|
5299
5312
|
static getInheritedFactory: ExternalReference;
|
|
5300
5313
|
static sanitizeHtml: ExternalReference;
|
|
@@ -5318,6 +5331,10 @@ declare class Identifiers {
|
|
|
5318
5331
|
name: string;
|
|
5319
5332
|
moduleName: string;
|
|
5320
5333
|
};
|
|
5334
|
+
static assertType: {
|
|
5335
|
+
name: string;
|
|
5336
|
+
moduleName: string;
|
|
5337
|
+
};
|
|
5321
5338
|
}
|
|
5322
5339
|
|
|
5323
5340
|
/**
|