@epam/statgpt-conversation-view 0.4.0-rc.37 → 0.4.0-rc.39
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/components/AdvancedView/TableSettings/AgGridColumnPanel/helpers/draggableListUtils.d.ts
CHANGED
|
@@ -7,6 +7,22 @@ import { DraggableListItemNode, DraggableListNode } from '../../../../../../../u
|
|
|
7
7
|
* @returns The item node found at the given path, or `undefined` if any segment is missing or the final node is not an item.
|
|
8
8
|
*/
|
|
9
9
|
export declare function getItemNodeByPath(nodes: DraggableListNode[], path: readonly string[]): DraggableListItemNode | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Ensures the last visible leaf item inside every named group of an enriched
|
|
12
|
+
* draggable list item cannot be unchecked, preventing a column group from
|
|
13
|
+
* becoming completely empty.
|
|
14
|
+
*
|
|
15
|
+
* A leaf is considered visible when `isChecked` is not explicitly `false`.
|
|
16
|
+
* When exactly one visible leaf remains in a group, that leaf is returned
|
|
17
|
+
* with `checkable: false`. Groups with zero or two or more visible leaves
|
|
18
|
+
* are left unchanged.
|
|
19
|
+
*
|
|
20
|
+
* @param item - A top-level draggable list item node, potentially containing
|
|
21
|
+
* named group sub-nodes with leaf items.
|
|
22
|
+
* @returns A new item node with the last-visible-leaf protection applied, or
|
|
23
|
+
* the original node if no protection is needed.
|
|
24
|
+
*/
|
|
25
|
+
export declare function protectLastVisibleLeafInGroups(item: DraggableListItemNode): DraggableListItemNode;
|
|
10
26
|
/**
|
|
11
27
|
* Recursively collects IDs of all leaf item nodes from a draggable list tree.
|
|
12
28
|
*
|