@mozaic-ds/angular 2.0.51 → 2.0.53
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
|
@@ -4680,6 +4680,12 @@ declare class TreeStateService<T = unknown> {
|
|
|
4680
4680
|
readonly loadingIds: _angular_core.WritableSignal<Set<string | number>>;
|
|
4681
4681
|
readonly internalNodes: _angular_core.WritableSignal<TreeNode<T>[]>;
|
|
4682
4682
|
readonly loadChildrenFn: _angular_core.WritableSignal<LoadChildrenFn<T> | null>;
|
|
4683
|
+
/**
|
|
4684
|
+
* Parent IDs for which children have been patched in (via lazy-load).
|
|
4685
|
+
* Grows monotonically — consumers diff against their own "processed" set.
|
|
4686
|
+
* Not emitted for statically-populated children present at init.
|
|
4687
|
+
*/
|
|
4688
|
+
readonly loadedParentIds: _angular_core.WritableSignal<ReadonlySet<string | number>>;
|
|
4683
4689
|
readonly flatVisibleNodes: _angular_core.Signal<FlatNode<T>[]>;
|
|
4684
4690
|
private _flatten;
|
|
4685
4691
|
setExpanded(ids: Set<string | number>): void;
|
|
@@ -4705,10 +4711,19 @@ declare class TreeSelectionService<T = unknown> {
|
|
|
4705
4711
|
setMode(mode: TreeSelectionMode): void;
|
|
4706
4712
|
setRootNodes(nodes: TreeNode<T>[]): void;
|
|
4707
4713
|
isSelected(id: string | number): boolean;
|
|
4708
|
-
isDisabled(node: TreeNode<T>, ancestors: TreeNode<T>[]): boolean;
|
|
4709
4714
|
/**
|
|
4710
|
-
* A node is
|
|
4711
|
-
*
|
|
4715
|
+
* A node is considered disabled only by its own `disabled` flag — a disabled
|
|
4716
|
+
* parent does not propagate the state to its descendants. Children of a
|
|
4717
|
+
* disabled parent remain individually interactable; the parent itself just
|
|
4718
|
+
* has its bulk "toggle all" action locked. This mirrors the combobox's
|
|
4719
|
+
* disabled-section semantics.
|
|
4720
|
+
*/
|
|
4721
|
+
isDisabled(node: TreeNode<T>): boolean;
|
|
4722
|
+
/**
|
|
4723
|
+
* A node is indeterminate when it has loaded children AND at least one
|
|
4724
|
+
* descendant is selected without the node being fully checked. Disabled
|
|
4725
|
+
* descendants count so a pre-selected disabled leaf still surfaces on the
|
|
4726
|
+
* parent (useful when the parent itself is also disabled).
|
|
4712
4727
|
*/
|
|
4713
4728
|
isIndeterminate(node: TreeNode<T>): boolean;
|
|
4714
4729
|
/**
|
|
@@ -4737,6 +4752,9 @@ declare class TreeSelectionService<T = unknown> {
|
|
|
4737
4752
|
/**
|
|
4738
4753
|
* Collect leaf-level IDs (terminal nodes that have no loaded children).
|
|
4739
4754
|
* Returns empty array if the node itself is a leaf.
|
|
4755
|
+
* When `includeDisabled` is true, disabled descendants are also collected —
|
|
4756
|
+
* used by the indeterminate computation so pre-selected disabled leaves
|
|
4757
|
+
* count toward a parent's state.
|
|
4740
4758
|
*/
|
|
4741
4759
|
private _collectLeafIds;
|
|
4742
4760
|
/**
|