@angular/compiler 17.2.0-next.0 → 17.2.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/expression_parser/ast.mjs +2 -1
- package/esm2022/src/jit_compiler_facade.mjs +9 -2
- package/esm2022/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2022/src/render3/partial/directive.mjs +1 -1
- package/esm2022/src/render3/partial/factory.mjs +1 -1
- package/esm2022/src/render3/partial/injectable.mjs +1 -1
- package/esm2022/src/render3/partial/injector.mjs +1 -1
- package/esm2022/src/render3/partial/ng_module.mjs +1 -1
- package/esm2022/src/render3/partial/pipe.mjs +1 -1
- package/esm2022/src/render3/r3_control_flow.mjs +39 -7
- package/esm2022/src/render3/r3_template_transform.mjs +5 -5
- package/esm2022/src/render3/view/api.mjs +1 -1
- package/esm2022/src/render3/view/compiler.mjs +10 -10
- package/esm2022/src/render3/view/template.mjs +4 -3
- package/esm2022/src/render3/view/util.mjs +2 -2
- package/esm2022/src/template/pipeline/ir/src/ops/create.mjs +3 -3
- package/esm2022/src/template/pipeline/src/compilation.mjs +3 -2
- package/esm2022/src/template/pipeline/src/emit.mjs +2 -2
- package/esm2022/src/template/pipeline/src/ingest.mjs +9 -7
- package/esm2022/src/template/pipeline/src/phases/create_defer_deps_fns.mjs +6 -2
- package/esm2022/src/template_parser/binding_parser.mjs +11 -10
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +101 -52
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +10 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.2.0-next.
|
|
2
|
+
* @license Angular v17.2.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -401,7 +401,7 @@ declare class BindingParser {
|
|
|
401
401
|
*/
|
|
402
402
|
private _parseTemplateBindings;
|
|
403
403
|
parseLiteralAttr(name: string, value: string | null, sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan): void;
|
|
404
|
-
parsePropertyBinding(name: string, expression: string, isHost: boolean, sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan): void;
|
|
404
|
+
parsePropertyBinding(name: string, expression: string, isHost: boolean, isPartOfAssignmentBinding: boolean, sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan): void;
|
|
405
405
|
parsePropertyInterpolation(name: string, value: string, sourceSpan: ParseSourceSpan, valueSpan: ParseSourceSpan | undefined, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null): boolean;
|
|
406
406
|
private _parsePropertyAst;
|
|
407
407
|
private _parseAnimation;
|
|
@@ -435,7 +435,8 @@ export declare const enum BindingType {
|
|
|
435
435
|
Attribute = 1,
|
|
436
436
|
Class = 2,
|
|
437
437
|
Style = 3,
|
|
438
|
-
Animation = 4
|
|
438
|
+
Animation = 4,
|
|
439
|
+
TwoWay = 5
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
export declare class Block extends NodeWithI18n {
|
|
@@ -2434,7 +2435,8 @@ export declare class ParsedEvent {
|
|
|
2434
2435
|
|
|
2435
2436
|
export declare const enum ParsedEventType {
|
|
2436
2437
|
Regular = 0,
|
|
2437
|
-
Animation = 1
|
|
2438
|
+
Animation = 1,
|
|
2439
|
+
TwoWay = 2
|
|
2438
2440
|
}
|
|
2439
2441
|
|
|
2440
2442
|
export declare interface ParsedHostBindings {
|
|
@@ -2468,7 +2470,8 @@ export declare class ParsedProperty {
|
|
|
2468
2470
|
export declare enum ParsedPropertyType {
|
|
2469
2471
|
DEFAULT = 0,
|
|
2470
2472
|
LITERAL_ATTR = 1,
|
|
2471
|
-
ANIMATION = 2
|
|
2473
|
+
ANIMATION = 2,
|
|
2474
|
+
TWO_WAY = 3
|
|
2472
2475
|
}
|
|
2473
2476
|
|
|
2474
2477
|
/**
|
|
@@ -3090,6 +3093,7 @@ export declare interface R3ComponentMetadata<DeclarationT extends R3TemplateDepe
|
|
|
3090
3093
|
* not be set. If component has empty array imports then this field is not set.
|
|
3091
3094
|
*/
|
|
3092
3095
|
rawImports?: outputAst.Expression;
|
|
3096
|
+
useTemplatePipeline: boolean;
|
|
3093
3097
|
}
|
|
3094
3098
|
|
|
3095
3099
|
/**
|
|
@@ -3840,6 +3844,7 @@ export declare interface R3HostMetadata {
|
|
|
3840
3844
|
styleAttr?: string;
|
|
3841
3845
|
classAttr?: string;
|
|
3842
3846
|
};
|
|
3847
|
+
useTemplatePipeline: boolean;
|
|
3843
3848
|
}
|
|
3844
3849
|
|
|
3845
3850
|
export declare class R3Identifiers {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "17.2.0-next.
|
|
3
|
+
"version": "17.2.0-next.1",
|
|
4
4
|
"description": "Angular - the compiler library",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "17.2.0-next.
|
|
14
|
+
"@angular/core": "17.2.0-next.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|