@angular/compiler 20.2.0-next.3 → 20.2.0-next.5
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/fesm2022/compiler.mjs +16 -12
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +15 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-next.
|
|
2
|
+
* @license Angular v20.2.0-next.5
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8,7 +8,8 @@ declare const emitDistinctChangesOnlyDefaultValue = true;
|
|
|
8
8
|
declare enum ViewEncapsulation$1 {
|
|
9
9
|
Emulated = 0,
|
|
10
10
|
None = 2,
|
|
11
|
-
ShadowDom = 3
|
|
11
|
+
ShadowDom = 3,
|
|
12
|
+
IsolatedShadowDom = 4
|
|
12
13
|
}
|
|
13
14
|
declare enum ChangeDetectionStrategy$1 {
|
|
14
15
|
OnPush = 0,
|
|
@@ -2603,7 +2604,8 @@ interface R3DeclareInjectableFacade {
|
|
|
2603
2604
|
declare enum ViewEncapsulation {
|
|
2604
2605
|
Emulated = 0,
|
|
2605
2606
|
None = 2,
|
|
2606
|
-
ShadowDom = 3
|
|
2607
|
+
ShadowDom = 3,
|
|
2608
|
+
IsolatedShadowDom = 4
|
|
2607
2609
|
}
|
|
2608
2610
|
type ChangeDetectionStrategy = number;
|
|
2609
2611
|
interface R3QueryMetadataFacade {
|
|
@@ -5392,18 +5394,21 @@ type ScopedNode = Template | SwitchBlockCase | IfBlockBranch | ForLoopBlock | Fo
|
|
|
5392
5394
|
/** Possible values that a reference can be resolved to. */
|
|
5393
5395
|
type ReferenceTarget<DirectiveT> = {
|
|
5394
5396
|
directive: DirectiveT;
|
|
5395
|
-
node: DirectiveOwner
|
|
5397
|
+
node: Exclude<DirectiveOwner, HostElement>;
|
|
5396
5398
|
} | Element | Template;
|
|
5397
5399
|
/** Entity that is local to the template and defined within the template. */
|
|
5398
5400
|
type TemplateEntity = Reference | Variable | LetDeclaration;
|
|
5399
5401
|
/** Nodes that can have directives applied to them. */
|
|
5400
|
-
type DirectiveOwner = Element | Template | Component | Directive;
|
|
5402
|
+
type DirectiveOwner = Element | Template | Component | Directive | HostElement;
|
|
5401
5403
|
/**
|
|
5402
5404
|
* A logical target for analysis, which could contain a template or other types of bindings.
|
|
5403
5405
|
*/
|
|
5404
|
-
interface Target {
|
|
5406
|
+
interface Target<DirectiveT> {
|
|
5405
5407
|
template?: Node[];
|
|
5406
|
-
host?:
|
|
5408
|
+
host?: {
|
|
5409
|
+
node: HostElement;
|
|
5410
|
+
directives: DirectiveT[];
|
|
5411
|
+
};
|
|
5407
5412
|
}
|
|
5408
5413
|
/**
|
|
5409
5414
|
* A data structure which can indicate whether a given property name is present or not.
|
|
@@ -5480,7 +5485,7 @@ interface DirectiveMeta {
|
|
|
5480
5485
|
* The returned `BoundTarget` has an API for extracting information about the processed target.
|
|
5481
5486
|
*/
|
|
5482
5487
|
interface TargetBinder<D extends DirectiveMeta> {
|
|
5483
|
-
bind(target: Target): BoundTarget<D>;
|
|
5488
|
+
bind(target: Target<D>): BoundTarget<D>;
|
|
5484
5489
|
}
|
|
5485
5490
|
/**
|
|
5486
5491
|
* Result of performing the binding operation against a `Target`.
|
|
@@ -5494,7 +5499,7 @@ interface BoundTarget<DirectiveT extends DirectiveMeta> {
|
|
|
5494
5499
|
/**
|
|
5495
5500
|
* Get the original `Target` that was bound.
|
|
5496
5501
|
*/
|
|
5497
|
-
readonly target: Target
|
|
5502
|
+
readonly target: Target<DirectiveT>;
|
|
5498
5503
|
/**
|
|
5499
5504
|
* For a given template node (either an `Element` or a `Template`), get the set of directives
|
|
5500
5505
|
* which matched the node, if any.
|
|
@@ -5619,7 +5624,7 @@ declare class R3TargetBinder<DirectiveT extends DirectiveMeta> implements Target
|
|
|
5619
5624
|
* Perform a binding operation on the given `Target` and return a `BoundTarget` which contains
|
|
5620
5625
|
* metadata about the types referenced in the template.
|
|
5621
5626
|
*/
|
|
5622
|
-
bind(target: Target): BoundTarget<DirectiveT>;
|
|
5627
|
+
bind(target: Target<DirectiveT>): BoundTarget<DirectiveT>;
|
|
5623
5628
|
}
|
|
5624
5629
|
|
|
5625
5630
|
/*!
|