@angular/compiler 17.1.2 → 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/compiler_facade_interface.mjs +1 -1
- package/esm2022/src/jit_compiler_facade.mjs +11 -2
- 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 +10 -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_identifiers.mjs +5 -1
- package/esm2022/src/render3/view/api.mjs +1 -1
- package/esm2022/src/render3/view/compiler.mjs +5 -72
- package/esm2022/src/render3/view/query_generation.mjs +176 -0
- package/esm2022/src/render3/view/util.mjs +3 -26
- package/esm2022/src/shadow_css.mjs +6 -4
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +1054 -957
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +18 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.1
|
|
2
|
+
* @license Angular v17.2.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3093,6 +3093,7 @@ export declare interface R3ComponentMetadata<DeclarationT extends R3TemplateDepe
|
|
|
3093
3093
|
* not be set. If component has empty array imports then this field is not set.
|
|
3094
3094
|
*/
|
|
3095
3095
|
rawImports?: outputAst.Expression;
|
|
3096
|
+
useTemplatePipeline: boolean;
|
|
3096
3097
|
}
|
|
3097
3098
|
|
|
3098
3099
|
/**
|
|
@@ -3589,6 +3590,8 @@ export declare interface R3DeclareQueryMetadata {
|
|
|
3589
3590
|
* content hooks and ngAfterViewInit for view hooks).
|
|
3590
3591
|
*/
|
|
3591
3592
|
static?: boolean;
|
|
3593
|
+
/** Whether the query is signal-based. */
|
|
3594
|
+
isSignal: boolean;
|
|
3592
3595
|
}
|
|
3593
3596
|
|
|
3594
3597
|
export declare type R3DeclareTemplateDependencyMetadata = R3DeclareDirectiveDependencyMetadata | R3DeclarePipeDependencyMetadata | R3DeclareNgModuleDependencyMetadata;
|
|
@@ -3841,6 +3844,7 @@ export declare interface R3HostMetadata {
|
|
|
3841
3844
|
styleAttr?: string;
|
|
3842
3845
|
classAttr?: string;
|
|
3843
3846
|
};
|
|
3847
|
+
useTemplatePipeline: boolean;
|
|
3844
3848
|
}
|
|
3845
3849
|
|
|
3846
3850
|
export declare class R3Identifiers {
|
|
@@ -4027,6 +4031,9 @@ export declare class R3Identifiers {
|
|
|
4027
4031
|
static viewQuery: outputAst.ExternalReference;
|
|
4028
4032
|
static loadQuery: outputAst.ExternalReference;
|
|
4029
4033
|
static contentQuery: outputAst.ExternalReference;
|
|
4034
|
+
static viewQuerySignal: outputAst.ExternalReference;
|
|
4035
|
+
static contentQuerySignal: outputAst.ExternalReference;
|
|
4036
|
+
static queryAdvance: outputAst.ExternalReference;
|
|
4030
4037
|
static NgOnChangesFeature: outputAst.ExternalReference;
|
|
4031
4038
|
static InheritDefinitionFeature: outputAst.ExternalReference;
|
|
4032
4039
|
static CopyDefinitionFeature: outputAst.ExternalReference;
|
|
@@ -4277,6 +4284,12 @@ export declare interface R3QueryMetadata {
|
|
|
4277
4284
|
/**
|
|
4278
4285
|
* Either an expression representing a type or `InjectionToken` for the query
|
|
4279
4286
|
* predicate, or a set of string selectors.
|
|
4287
|
+
*
|
|
4288
|
+
* Note: At compile time we split selectors as an optimization that avoids this
|
|
4289
|
+
* extra work at runtime creation phase.
|
|
4290
|
+
*
|
|
4291
|
+
* Notably, if the selector is not statically analyzable due to an expression,
|
|
4292
|
+
* the selectors may need to be split up at runtime.
|
|
4280
4293
|
*/
|
|
4281
4294
|
predicate: MaybeForwardRefExpression | string[];
|
|
4282
4295
|
/**
|
|
@@ -4306,8 +4319,12 @@ export declare interface R3QueryMetadata {
|
|
|
4306
4319
|
* runs. This means that the query results can contain nodes inside *ngIf or *ngFor views, but
|
|
4307
4320
|
* the results will not be available in the ngOnInit hook (only in the ngAfterContentInit for
|
|
4308
4321
|
* content hooks and ngAfterViewInit for view hooks).
|
|
4322
|
+
*
|
|
4323
|
+
* Note: For signal-based queries, this option does not have any effect.
|
|
4309
4324
|
*/
|
|
4310
4325
|
static: boolean;
|
|
4326
|
+
/** Whether the query is signal-based. */
|
|
4327
|
+
isSignal: boolean;
|
|
4311
4328
|
}
|
|
4312
4329
|
|
|
4313
4330
|
export declare interface R3Reference {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "17.1
|
|
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.1
|
|
14
|
+
"@angular/core": "17.2.0-next.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|