@kwantis-id3/frontend-library 1.0.0-rc.33 → 1.0.0-rc.35
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.
|
@@ -19,3 +19,4 @@ export declare const getChildrenItems: (items: TTreeViewItem[], parentId: string
|
|
|
19
19
|
* @returns all the matching nodes and their ancestors
|
|
20
20
|
*/
|
|
21
21
|
export declare function searchWithAncestors(items: TTreeViewItem[], searchTerm: string): TTreeViewItem[];
|
|
22
|
+
export declare const isRootItem: (items: TTreeViewItem[], item: TTreeViewItem) => boolean;
|
|
@@ -49,6 +49,10 @@ export type TUncontrolledTreeViewProps = TTreeViewProps & {
|
|
|
49
49
|
items: TTreeViewItem[];
|
|
50
50
|
/** A search string used to filter the items. */
|
|
51
51
|
searchString?: string;
|
|
52
|
+
/** The ids of the items that should be expanded by default */
|
|
53
|
+
defaultExpandedItems?: string[];
|
|
54
|
+
/** Only allow one root item to be expanded at a time */
|
|
55
|
+
singleRootExpand?: boolean;
|
|
52
56
|
};
|
|
53
57
|
export type TControlledTreeViewProps = TTreeViewProps & {
|
|
54
58
|
/** The current state of the Tree View. */
|
package/dist/index.d.ts
CHANGED
|
@@ -552,6 +552,10 @@ type TUncontrolledTreeViewProps = TTreeViewProps & {
|
|
|
552
552
|
items: TTreeViewItem[];
|
|
553
553
|
/** A search string used to filter the items. */
|
|
554
554
|
searchString?: string;
|
|
555
|
+
/** The ids of the items that should be expanded by default */
|
|
556
|
+
defaultExpandedItems?: string[];
|
|
557
|
+
/** Only allow one root item to be expanded at a time */
|
|
558
|
+
singleRootExpand?: boolean;
|
|
555
559
|
};
|
|
556
560
|
type TControlledTreeViewProps = TTreeViewProps & {
|
|
557
561
|
/** The current state of the Tree View. */
|