@angular/compiler 17.1.0 → 17.2.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_facade_interface.mjs +1 -1
- package/esm2022/src/config.mjs +1 -1
- package/esm2022/src/jit_compiler_facade.mjs +3 -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 +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 +3 -70
- 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/template/pipeline/src/phases/create_i18n_contexts.mjs +2 -2
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +1045 -955
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +16 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.
|
|
2
|
+
* @license Angular v17.2.0-next.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -757,8 +757,6 @@ export declare class CompilerConfig {
|
|
|
757
757
|
strictInjectionParameters: boolean;
|
|
758
758
|
constructor({ defaultEncapsulation, preserveWhitespaces, strictInjectionParameters }?: {
|
|
759
759
|
defaultEncapsulation?: ViewEncapsulation;
|
|
760
|
-
useJit?: boolean;
|
|
761
|
-
missingTranslation?: MissingTranslationStrategy | null;
|
|
762
760
|
preserveWhitespaces?: boolean;
|
|
763
761
|
strictInjectionParameters?: boolean;
|
|
764
762
|
});
|
|
@@ -3588,6 +3586,8 @@ export declare interface R3DeclareQueryMetadata {
|
|
|
3588
3586
|
* content hooks and ngAfterViewInit for view hooks).
|
|
3589
3587
|
*/
|
|
3590
3588
|
static?: boolean;
|
|
3589
|
+
/** Whether the query is signal-based. */
|
|
3590
|
+
isSignal: boolean;
|
|
3591
3591
|
}
|
|
3592
3592
|
|
|
3593
3593
|
export declare type R3DeclareTemplateDependencyMetadata = R3DeclareDirectiveDependencyMetadata | R3DeclarePipeDependencyMetadata | R3DeclareNgModuleDependencyMetadata;
|
|
@@ -4026,6 +4026,9 @@ export declare class R3Identifiers {
|
|
|
4026
4026
|
static viewQuery: outputAst.ExternalReference;
|
|
4027
4027
|
static loadQuery: outputAst.ExternalReference;
|
|
4028
4028
|
static contentQuery: outputAst.ExternalReference;
|
|
4029
|
+
static viewQuerySignal: outputAst.ExternalReference;
|
|
4030
|
+
static contentQuerySignal: outputAst.ExternalReference;
|
|
4031
|
+
static queryAdvance: outputAst.ExternalReference;
|
|
4029
4032
|
static NgOnChangesFeature: outputAst.ExternalReference;
|
|
4030
4033
|
static InheritDefinitionFeature: outputAst.ExternalReference;
|
|
4031
4034
|
static CopyDefinitionFeature: outputAst.ExternalReference;
|
|
@@ -4276,6 +4279,12 @@ export declare interface R3QueryMetadata {
|
|
|
4276
4279
|
/**
|
|
4277
4280
|
* Either an expression representing a type or `InjectionToken` for the query
|
|
4278
4281
|
* predicate, or a set of string selectors.
|
|
4282
|
+
*
|
|
4283
|
+
* Note: At compile time we split selectors as an optimization that avoids this
|
|
4284
|
+
* extra work at runtime creation phase.
|
|
4285
|
+
*
|
|
4286
|
+
* Notably, if the selector is not statically analyzable due to an expression,
|
|
4287
|
+
* the selectors may need to be split up at runtime.
|
|
4279
4288
|
*/
|
|
4280
4289
|
predicate: MaybeForwardRefExpression | string[];
|
|
4281
4290
|
/**
|
|
@@ -4305,8 +4314,12 @@ export declare interface R3QueryMetadata {
|
|
|
4305
4314
|
* runs. This means that the query results can contain nodes inside *ngIf or *ngFor views, but
|
|
4306
4315
|
* the results will not be available in the ngOnInit hook (only in the ngAfterContentInit for
|
|
4307
4316
|
* content hooks and ngAfterViewInit for view hooks).
|
|
4317
|
+
*
|
|
4318
|
+
* Note: For signal-based queries, this option does not have any effect.
|
|
4308
4319
|
*/
|
|
4309
4320
|
static: boolean;
|
|
4321
|
+
/** Whether the query is signal-based. */
|
|
4322
|
+
isSignal: boolean;
|
|
4310
4323
|
}
|
|
4311
4324
|
|
|
4312
4325
|
export declare interface R3Reference {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.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": "17.
|
|
14
|
+
"@angular/core": "17.2.0-next.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|