@angular/compiler 16.0.0 → 16.1.0-next.0
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/compiler.mjs +2 -2
- package/esm2022/src/compiler_facade_interface.mjs +1 -1
- package/esm2022/src/jit_compiler_facade.mjs +2 -1
- package/esm2022/src/output/output_ast.mjs +16 -1
- package/esm2022/src/render3/partial/api.mjs +1 -1
- package/esm2022/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2022/src/render3/partial/directive.mjs +5 -2
- 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_ast.mjs +2 -85
- package/esm2022/src/render3/view/api.mjs +1 -1
- package/esm2022/src/render3/view/compiler.mjs +6 -1
- package/esm2022/src/template/pipeline/ir/src/enums.mjs +18 -6
- package/esm2022/src/template/pipeline/ir/src/expression.mjs +8 -1
- package/esm2022/src/template/pipeline/ir/src/ops/create.mjs +1 -1
- package/esm2022/src/template/pipeline/src/conversion.mjs +28 -0
- package/esm2022/src/template/pipeline/src/emit.mjs +6 -2
- package/esm2022/src/template/pipeline/src/ingest.mjs +45 -8
- package/esm2022/src/template/pipeline/src/instruction.mjs +17 -8
- package/esm2022/src/template/pipeline/src/phases/chaining.mjs +4 -1
- package/esm2022/src/template/pipeline/src/phases/empty_elements.mjs +16 -8
- package/esm2022/src/template/pipeline/src/phases/generate_variables.mjs +8 -27
- package/esm2022/src/template/pipeline/src/phases/ng_container.mjs +29 -0
- package/esm2022/src/template/pipeline/src/phases/reify.mjs +10 -1
- package/esm2022/src/template/pipeline/src/phases/save_restore_view.mjs +46 -0
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +235 -147
- package/fesm2022/compiler.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +20 -33
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0
|
|
2
|
+
* @license Angular v16.1.0-next.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1878,20 +1878,6 @@ declare function nullSafeIsEquivalent<T extends {
|
|
|
1878
1878
|
isEquivalent(other: T): boolean;
|
|
1879
1879
|
}>(base: T | null, other: T | null): boolean;
|
|
1880
1880
|
|
|
1881
|
-
declare class NullVisitor implements Visitor_3<void> {
|
|
1882
|
-
visitElement(element: TmplAstElement): void;
|
|
1883
|
-
visitTemplate(template: TmplAstTemplate): void;
|
|
1884
|
-
visitContent(content: TmplAstContent): void;
|
|
1885
|
-
visitVariable(variable: TmplAstVariable): void;
|
|
1886
|
-
visitReference(reference: TmplAstReference): void;
|
|
1887
|
-
visitTextAttribute(attribute: TmplAstTextAttribute): void;
|
|
1888
|
-
visitBoundAttribute(attribute: TmplAstBoundAttribute): void;
|
|
1889
|
-
visitBoundEvent(attribute: TmplAstBoundEvent): void;
|
|
1890
|
-
visitText(text: TmplAstText): void;
|
|
1891
|
-
visitBoundText(text: TmplAstBoundText): void;
|
|
1892
|
-
visitIcu(icu: TmplAstIcu): void;
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
1881
|
declare const NUMBER_TYPE: BuiltinType;
|
|
1896
1882
|
|
|
1897
1883
|
declare interface Output {
|
|
@@ -1908,6 +1894,7 @@ declare namespace outputAst {
|
|
|
1908
1894
|
importExpr,
|
|
1909
1895
|
importType,
|
|
1910
1896
|
expressionType,
|
|
1897
|
+
transplantedType,
|
|
1911
1898
|
typeofExpr,
|
|
1912
1899
|
literalArr,
|
|
1913
1900
|
literalMap,
|
|
@@ -1926,6 +1913,7 @@ declare namespace outputAst {
|
|
|
1926
1913
|
ExpressionType,
|
|
1927
1914
|
ArrayType,
|
|
1928
1915
|
MapType,
|
|
1916
|
+
TransplantedType,
|
|
1929
1917
|
DYNAMIC_TYPE,
|
|
1930
1918
|
INFERRED_TYPE,
|
|
1931
1919
|
BOOL_TYPE,
|
|
@@ -3059,6 +3047,10 @@ export declare interface R3DeclareDirectiveMetadata extends R3PartialDeclaration
|
|
|
3059
3047
|
* Whether the directive is standalone. Defaults to false.
|
|
3060
3048
|
*/
|
|
3061
3049
|
isStandalone?: boolean;
|
|
3050
|
+
/**
|
|
3051
|
+
* Whether the directive is a signal-based directive. Defaults to false.
|
|
3052
|
+
*/
|
|
3053
|
+
isSignal?: boolean;
|
|
3062
3054
|
/**
|
|
3063
3055
|
* Additional directives applied to the directive host.
|
|
3064
3056
|
*/
|
|
@@ -3419,6 +3411,10 @@ export declare interface R3DirectiveMetadata {
|
|
|
3419
3411
|
* Whether or not the component or directive is standalone.
|
|
3420
3412
|
*/
|
|
3421
3413
|
isStandalone: boolean;
|
|
3414
|
+
/**
|
|
3415
|
+
* Whether or not the component or directive is signal-based.
|
|
3416
|
+
*/
|
|
3417
|
+
isSignal: boolean;
|
|
3422
3418
|
/**
|
|
3423
3419
|
* Additional directives applied to the directive host.
|
|
3424
3420
|
*/
|
|
@@ -3999,6 +3995,7 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
|
|
|
3999
3995
|
visitExpressionType(type: ExpressionType, context: any): any;
|
|
4000
3996
|
visitArrayType(type: ArrayType, context: any): any;
|
|
4001
3997
|
visitMapType(type: MapType, context: any): any;
|
|
3998
|
+
visitTransplantedType(type: TransplantedType<unknown>, context: any): any;
|
|
4002
3999
|
visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any;
|
|
4003
4000
|
visitTypeofExpr(ast: TypeofExpr, context: any): any;
|
|
4004
4001
|
visitReadVarExpr(ast: ReadVarExpr, context: any): any;
|
|
@@ -4253,7 +4250,6 @@ export declare const STRING_TYPE: BuiltinType;
|
|
|
4253
4250
|
declare namespace t {
|
|
4254
4251
|
export {
|
|
4255
4252
|
visitAll_2 as visitAll,
|
|
4256
|
-
transformAll,
|
|
4257
4253
|
TmplAstNode as Node,
|
|
4258
4254
|
Comment_3 as Comment,
|
|
4259
4255
|
TmplAstText as Text,
|
|
@@ -4268,9 +4264,7 @@ declare namespace t {
|
|
|
4268
4264
|
TmplAstReference as Reference,
|
|
4269
4265
|
TmplAstIcu as Icu,
|
|
4270
4266
|
Visitor_3 as Visitor,
|
|
4271
|
-
|
|
4272
|
-
TmplAstRecursiveVisitor as RecursiveVisitor,
|
|
4273
|
-
TransformVisitor
|
|
4267
|
+
TmplAstRecursiveVisitor as RecursiveVisitor
|
|
4274
4268
|
}
|
|
4275
4269
|
}
|
|
4276
4270
|
|
|
@@ -4705,22 +4699,14 @@ declare const enum TokenType_2 {
|
|
|
4705
4699
|
EOF = 24
|
|
4706
4700
|
}
|
|
4707
4701
|
|
|
4708
|
-
declare
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
visitTemplate(template: TmplAstTemplate): TmplAstNode;
|
|
4713
|
-
visitContent(content: TmplAstContent): TmplAstNode;
|
|
4714
|
-
visitVariable(variable: TmplAstVariable): TmplAstNode;
|
|
4715
|
-
visitReference(reference: TmplAstReference): TmplAstNode;
|
|
4716
|
-
visitTextAttribute(attribute: TmplAstTextAttribute): TmplAstNode;
|
|
4717
|
-
visitBoundAttribute(attribute: TmplAstBoundAttribute): TmplAstNode;
|
|
4718
|
-
visitBoundEvent(attribute: TmplAstBoundEvent): TmplAstNode;
|
|
4719
|
-
visitText(text: TmplAstText): TmplAstNode;
|
|
4720
|
-
visitBoundText(text: TmplAstBoundText): TmplAstNode;
|
|
4721
|
-
visitIcu(icu: TmplAstIcu): TmplAstNode;
|
|
4702
|
+
export declare class TransplantedType<T> extends Type {
|
|
4703
|
+
readonly type: T;
|
|
4704
|
+
constructor(type: T, modifiers?: TypeModifier);
|
|
4705
|
+
visitType(visitor: TypeVisitor, context: any): any;
|
|
4722
4706
|
}
|
|
4723
4707
|
|
|
4708
|
+
declare function transplantedType<T>(type: T, typeModifiers?: TypeModifier): TransplantedType<T>;
|
|
4709
|
+
|
|
4724
4710
|
export declare class TreeError extends ParseError {
|
|
4725
4711
|
elementName: string | null;
|
|
4726
4712
|
static create(elementName: string | null, span: ParseSourceSpan, msg: string): TreeError;
|
|
@@ -4762,6 +4748,7 @@ export declare interface TypeVisitor {
|
|
|
4762
4748
|
visitExpressionType(type: ExpressionType, context: any): any;
|
|
4763
4749
|
visitArrayType(type: ArrayType, context: any): any;
|
|
4764
4750
|
visitMapType(type: MapType, context: any): any;
|
|
4751
|
+
visitTransplantedType(type: TransplantedType<unknown>, context: any): any;
|
|
4765
4752
|
}
|
|
4766
4753
|
|
|
4767
4754
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "16.0.0",
|
|
3
|
+
"version": "16.1.0-next.0",
|
|
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": "16.0.0"
|
|
14
|
+
"@angular/core": "16.1.0-next.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|
package/testing/index.d.ts
CHANGED