@kwantis-id3/frontend-library 1.0.0-rc.24 → 1.0.0-rc.26
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.
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import { TTreeViewItem } from "./TreeViewInterfaces";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param items searchable nodes
|
|
5
|
+
* @returns all the root items
|
|
6
|
+
*/
|
|
2
7
|
export declare const getRootItems: (items: TTreeViewItem[]) => TTreeViewItem[];
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param items searchable nodes
|
|
11
|
+
* @param parentId the id of the parent node
|
|
12
|
+
* @returns all the children of the parent node
|
|
13
|
+
*/
|
|
3
14
|
export declare const getChildrenItems: (items: TTreeViewItem[], parentId: string) => TTreeViewItem[];
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param items searchable nodes
|
|
18
|
+
* @param searchTerm search term
|
|
19
|
+
* @returns all the matching nodes and their ancestors
|
|
20
|
+
*/
|
|
21
|
+
export declare function searchWithAncestors(items: TTreeViewItem[], searchTerm: string): TTreeViewItem[];
|
|
@@ -47,6 +47,8 @@ type TTreeViewProps = TTreeItemFunctions & {
|
|
|
47
47
|
};
|
|
48
48
|
export type TUncontrolledTreeViewProps = TTreeViewProps & {
|
|
49
49
|
items: TTreeViewItem[];
|
|
50
|
+
/** A search string used to filter the items. */
|
|
51
|
+
searchString?: string;
|
|
50
52
|
};
|
|
51
53
|
export type TControlledTreeViewProps = TTreeViewProps & {
|
|
52
54
|
/** The current state of the Tree View. */
|
package/dist/index.d.ts
CHANGED
|
@@ -541,6 +541,8 @@ type TTreeViewProps = TTreeItemFunctions & {
|
|
|
541
541
|
};
|
|
542
542
|
type TUncontrolledTreeViewProps = TTreeViewProps & {
|
|
543
543
|
items: TTreeViewItem[];
|
|
544
|
+
/** A search string used to filter the items. */
|
|
545
|
+
searchString?: string;
|
|
544
546
|
};
|
|
545
547
|
type TControlledTreeViewProps = TTreeViewProps & {
|
|
546
548
|
/** The current state of the Tree View. */
|