@angular/compiler 13.2.3 → 14.0.0-next.3
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/esm2020/src/compiler_facade_interface.mjs +1 -1
- package/esm2020/src/compiler_util/expression_converter.mjs +1 -11
- package/esm2020/src/expression_parser/ast.mjs +1 -35
- package/esm2020/src/expression_parser/parser.mjs +3 -22
- package/esm2020/src/jit_compiler_facade.mjs +4 -1
- package/esm2020/src/render3/partial/api.mjs +1 -1
- package/esm2020/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2020/src/render3/partial/directive.mjs +1 -1
- package/esm2020/src/render3/partial/factory.mjs +1 -1
- package/esm2020/src/render3/partial/injectable.mjs +1 -1
- package/esm2020/src/render3/partial/injector.mjs +1 -1
- package/esm2020/src/render3/partial/ng_module.mjs +1 -1
- package/esm2020/src/render3/partial/pipe.mjs +1 -1
- package/esm2020/src/render3/r3_pipe_compiler.mjs +1 -1
- package/esm2020/src/render3/view/api.mjs +1 -1
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/compiler.mjs +15 -75
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +13 -73
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/package.json +1 -1
- package/src/compiler_facade_interface.d.ts +4 -0
- package/src/expression_parser/ast.d.ts +0 -25
- package/src/expression_parser/parser.d.ts +0 -1
- package/src/render3/partial/api.d.ts +10 -0
- package/src/render3/r3_pipe_compiler.d.ts +4 -0
- package/src/render3/view/api.d.ts +4 -0
package/fesm2020/testing.mjs
CHANGED
package/package.json
CHANGED
|
@@ -86,6 +86,7 @@ export interface R3PipeMetadataFacade {
|
|
|
86
86
|
type: Type;
|
|
87
87
|
pipeName: string;
|
|
88
88
|
pure: boolean;
|
|
89
|
+
isStandalone: boolean;
|
|
89
90
|
}
|
|
90
91
|
export interface R3InjectableMetadataFacade {
|
|
91
92
|
name: string;
|
|
@@ -136,6 +137,7 @@ export interface R3DirectiveMetadataFacade {
|
|
|
136
137
|
exportAs: string[] | null;
|
|
137
138
|
providers: Provider[] | null;
|
|
138
139
|
viewQueries: R3QueryMetadataFacade[];
|
|
140
|
+
isStandalone: boolean;
|
|
139
141
|
}
|
|
140
142
|
export interface R3ComponentMetadataFacade extends R3DirectiveMetadataFacade {
|
|
141
143
|
template: string;
|
|
@@ -177,6 +179,7 @@ export interface R3DeclareDirectiveFacade {
|
|
|
177
179
|
exportAs?: string[];
|
|
178
180
|
usesInheritance?: boolean;
|
|
179
181
|
usesOnChanges?: boolean;
|
|
182
|
+
isStandalone?: boolean;
|
|
180
183
|
}
|
|
181
184
|
export interface R3DeclareComponentFacade extends R3DeclareDirectiveFacade {
|
|
182
185
|
template: string;
|
|
@@ -271,6 +274,7 @@ export interface R3DeclarePipeFacade {
|
|
|
271
274
|
type: Type;
|
|
272
275
|
name: string;
|
|
273
276
|
pure?: boolean;
|
|
277
|
+
isStandalone?: boolean;
|
|
274
278
|
}
|
|
275
279
|
export interface ParseSourceSpan {
|
|
276
280
|
start: any;
|
|
@@ -38,27 +38,6 @@ export declare abstract class ASTWithName extends AST {
|
|
|
38
38
|
nameSpan: AbsoluteSourceSpan;
|
|
39
39
|
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, nameSpan: AbsoluteSourceSpan);
|
|
40
40
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Represents a quoted expression of the form:
|
|
43
|
-
*
|
|
44
|
-
* quote = prefix `:` uninterpretedExpression
|
|
45
|
-
* prefix = identifier
|
|
46
|
-
* uninterpretedExpression = arbitrary string
|
|
47
|
-
*
|
|
48
|
-
* A quoted expression is meant to be pre-processed by an AST transformer that
|
|
49
|
-
* converts it into another AST that no longer contains quoted expressions.
|
|
50
|
-
* It is meant to allow third-party developers to extend Angular template
|
|
51
|
-
* expression language. The `uninterpretedExpression` part of the quote is
|
|
52
|
-
* therefore not interpreted by the Angular's own expression parser.
|
|
53
|
-
*/
|
|
54
|
-
export declare class Quote extends AST {
|
|
55
|
-
prefix: string;
|
|
56
|
-
uninterpretedExpression: string;
|
|
57
|
-
location: any;
|
|
58
|
-
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, prefix: string, uninterpretedExpression: string, location: any);
|
|
59
|
-
visit(visitor: AstVisitor, context?: any): any;
|
|
60
|
-
toString(): string;
|
|
61
|
-
}
|
|
62
41
|
export declare class EmptyExpr extends AST {
|
|
63
42
|
visit(visitor: AstVisitor, context?: any): void;
|
|
64
43
|
}
|
|
@@ -314,7 +293,6 @@ export interface AstVisitor {
|
|
|
314
293
|
visitNonNullAssert(ast: NonNullAssert, context: any): any;
|
|
315
294
|
visitPropertyRead(ast: PropertyRead, context: any): any;
|
|
316
295
|
visitPropertyWrite(ast: PropertyWrite, context: any): any;
|
|
317
|
-
visitQuote(ast: Quote, context: any): any;
|
|
318
296
|
visitSafePropertyRead(ast: SafePropertyRead, context: any): any;
|
|
319
297
|
visitSafeKeyedRead(ast: SafeKeyedRead, context: any): any;
|
|
320
298
|
visitCall(ast: Call, context: any): any;
|
|
@@ -351,7 +329,6 @@ export declare class RecursiveAstVisitor implements AstVisitor {
|
|
|
351
329
|
visitSafeKeyedRead(ast: SafeKeyedRead, context: any): any;
|
|
352
330
|
visitCall(ast: Call, context: any): any;
|
|
353
331
|
visitSafeCall(ast: SafeCall, context: any): any;
|
|
354
|
-
visitQuote(ast: Quote, context: any): any;
|
|
355
332
|
visitAll(asts: AST[], context: any): any;
|
|
356
333
|
}
|
|
357
334
|
export declare class AstTransformer implements AstVisitor {
|
|
@@ -376,7 +353,6 @@ export declare class AstTransformer implements AstVisitor {
|
|
|
376
353
|
visitSafeCall(ast: SafeCall, context: any): AST;
|
|
377
354
|
visitAll(asts: any[]): any[];
|
|
378
355
|
visitChain(ast: Chain, context: any): AST;
|
|
379
|
-
visitQuote(ast: Quote, context: any): AST;
|
|
380
356
|
visitSafeKeyedRead(ast: SafeKeyedRead, context: any): AST;
|
|
381
357
|
}
|
|
382
358
|
export declare class AstMemoryEfficientTransformer implements AstVisitor {
|
|
@@ -401,7 +377,6 @@ export declare class AstMemoryEfficientTransformer implements AstVisitor {
|
|
|
401
377
|
visitChain(ast: Chain, context: any): AST;
|
|
402
378
|
visitCall(ast: Call, context: any): AST;
|
|
403
379
|
visitSafeCall(ast: SafeCall, context: any): AST;
|
|
404
|
-
visitQuote(ast: Quote, context: any): AST;
|
|
405
380
|
visitSafeKeyedRead(ast: SafeKeyedRead, context: any): AST;
|
|
406
381
|
}
|
|
407
382
|
export declare class ParsedProperty {
|
|
@@ -50,7 +50,6 @@ export declare class Parser {
|
|
|
50
50
|
parseSimpleBinding(input: string, location: string, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource;
|
|
51
51
|
private _reportError;
|
|
52
52
|
private _parseBindingAst;
|
|
53
|
-
private _parseQuote;
|
|
54
53
|
/**
|
|
55
54
|
* Parse microsyntax template expression and return a list of bindings or
|
|
56
55
|
* parsing errors in case the given expression is invalid.
|
|
@@ -105,6 +105,10 @@ export interface R3DeclareDirectiveMetadata extends R3PartialDeclaration {
|
|
|
105
105
|
* Whether the directive implements the `ngOnChanges` hook. Defaults to false.
|
|
106
106
|
*/
|
|
107
107
|
usesOnChanges?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the directive is standalone. Defaults to false.
|
|
110
|
+
*/
|
|
111
|
+
isStandalone?: boolean;
|
|
108
112
|
}
|
|
109
113
|
/**
|
|
110
114
|
* Describes the shape of the object that the `ɵɵngDeclareComponent()` function accepts.
|
|
@@ -298,6 +302,12 @@ export interface R3DeclarePipeMetadata extends R3PartialDeclaration {
|
|
|
298
302
|
* Default: true.
|
|
299
303
|
*/
|
|
300
304
|
pure?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Whether the pipe is standalone.
|
|
307
|
+
*
|
|
308
|
+
* Default: false.
|
|
309
|
+
*/
|
|
310
|
+
isStandalone?: boolean;
|
|
301
311
|
}
|
|
302
312
|
/**
|
|
303
313
|
* Describes the shape of the object that the `ɵɵngDeclareFactory()` function accepts.
|
|
@@ -41,6 +41,10 @@ export interface R3PipeMetadata {
|
|
|
41
41
|
* Whether the pipe is marked as pure.
|
|
42
42
|
*/
|
|
43
43
|
pure: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the pipe is standalone.
|
|
46
|
+
*/
|
|
47
|
+
isStandalone: boolean;
|
|
44
48
|
}
|
|
45
49
|
export declare function compilePipeFromMetadata(metadata: R3PipeMetadata): R3CompiledExpression;
|
|
46
50
|
export declare function createPipeType(metadata: R3PipeMetadata): o.Type;
|
|
@@ -102,6 +102,10 @@ export interface R3DirectiveMetadata {
|
|
|
102
102
|
* The list of providers defined in the directive.
|
|
103
103
|
*/
|
|
104
104
|
providers: o.Expression | null;
|
|
105
|
+
/**
|
|
106
|
+
* Whether or not the component or directive is standalone.
|
|
107
|
+
*/
|
|
108
|
+
isStandalone: boolean;
|
|
105
109
|
}
|
|
106
110
|
/**
|
|
107
111
|
* Specifies how a list of declaration type references should be emitted into the generated code.
|