treege 1.0.2 → 1.0.4
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/CHANGELOG.md +2 -2
- package/dist/main.js +736 -730
- package/dist/main.umd.cjs +30 -30
- package/dist/src/features/Treege/context/TreegeContext.d.ts +10 -0
- package/dist/src/utils/tree/getTree/getTree.d.ts +2 -1
- package/package.json +1 -1
|
@@ -24,6 +24,10 @@ export interface TreeDefaultValue {
|
|
|
24
24
|
currentHierarchyPointNode: null | HierarchyPointNode<TreeNode>;
|
|
25
25
|
/**
|
|
26
26
|
* This is the current tree information
|
|
27
|
+
* {
|
|
28
|
+
* "id": "treeId",
|
|
29
|
+
* "name": "Tree name"
|
|
30
|
+
* }
|
|
27
31
|
*/
|
|
28
32
|
currentTree: CurrentTree;
|
|
29
33
|
/**
|
|
@@ -36,6 +40,12 @@ export interface TreeDefaultValue {
|
|
|
36
40
|
treeModalOpen: boolean;
|
|
37
41
|
/**
|
|
38
42
|
* This is the tree path
|
|
43
|
+
* [
|
|
44
|
+
* {
|
|
45
|
+
* "label": "Tree name",
|
|
46
|
+
* "path": "uuid"
|
|
47
|
+
* }
|
|
48
|
+
* ]
|
|
39
49
|
*/
|
|
40
50
|
treePath: TreePath[] | [];
|
|
41
51
|
/**
|
|
@@ -2,8 +2,9 @@ import { TreeNode } from '../../../features/Treege/type/TreeNode';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Get a tree node by search path within the hierarchy
|
|
5
|
+
* If searchPath is not provided, return the current node
|
|
5
6
|
* @param node The starting element
|
|
6
7
|
* @param searchPath The path to search for
|
|
7
8
|
*/
|
|
8
|
-
declare const getTree: (node: TreeNode | undefined, searchPath?: string | null) => TreeNode | null;
|
|
9
|
+
declare const getTree: (node: TreeNode | null | undefined, searchPath?: string | null) => TreeNode | null;
|
|
9
10
|
export default getTree;
|