@mozaic-ds/angular 2.0.51 → 2.0.52
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/package.json
CHANGED
|
@@ -4705,10 +4705,19 @@ declare class TreeSelectionService<T = unknown> {
|
|
|
4705
4705
|
setMode(mode: TreeSelectionMode): void;
|
|
4706
4706
|
setRootNodes(nodes: TreeNode<T>[]): void;
|
|
4707
4707
|
isSelected(id: string | number): boolean;
|
|
4708
|
-
isDisabled(node: TreeNode<T>, ancestors: TreeNode<T>[]): boolean;
|
|
4709
4708
|
/**
|
|
4710
|
-
* A node is
|
|
4711
|
-
*
|
|
4709
|
+
* A node is considered disabled only by its own `disabled` flag — a disabled
|
|
4710
|
+
* parent does not propagate the state to its descendants. Children of a
|
|
4711
|
+
* disabled parent remain individually interactable; the parent itself just
|
|
4712
|
+
* has its bulk "toggle all" action locked. This mirrors the combobox's
|
|
4713
|
+
* disabled-section semantics.
|
|
4714
|
+
*/
|
|
4715
|
+
isDisabled(node: TreeNode<T>): boolean;
|
|
4716
|
+
/**
|
|
4717
|
+
* A node is indeterminate when it has loaded children AND at least one
|
|
4718
|
+
* descendant is selected without the node being fully checked. Disabled
|
|
4719
|
+
* descendants count so a pre-selected disabled leaf still surfaces on the
|
|
4720
|
+
* parent (useful when the parent itself is also disabled).
|
|
4712
4721
|
*/
|
|
4713
4722
|
isIndeterminate(node: TreeNode<T>): boolean;
|
|
4714
4723
|
/**
|
|
@@ -4737,6 +4746,9 @@ declare class TreeSelectionService<T = unknown> {
|
|
|
4737
4746
|
/**
|
|
4738
4747
|
* Collect leaf-level IDs (terminal nodes that have no loaded children).
|
|
4739
4748
|
* Returns empty array if the node itself is a leaf.
|
|
4749
|
+
* When `includeDisabled` is true, disabled descendants are also collected —
|
|
4750
|
+
* used by the indeterminate computation so pre-selected disabled leaves
|
|
4751
|
+
* count toward a parent's state.
|
|
4740
4752
|
*/
|
|
4741
4753
|
private _collectLeafIds;
|
|
4742
4754
|
/**
|