treege 1.2.0 → 1.3.0
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/README.md +4 -25
- package/dist/{src/components → components}/DataDisplay/Tree/Tree.d.ts +4 -2
- package/dist/{src/components → components}/DataDisplay/TreeCard/TreeCard.d.ts +2 -3
- package/dist/{src/components → components}/FeedBack/MainModal/MainModal.d.ts +0 -1
- package/dist/{src/components → components}/FeedBack/TreeModal/TreeModal.d.ts +2 -3
- package/dist/{src/components → components}/Layouts/Action/Action.d.ts +0 -1
- package/dist/{src/components → components}/Layouts/Header/Header.d.ts +0 -1
- package/dist/{src/components → components}/Layouts/Main/Main.d.ts +0 -1
- package/dist/{src/components → components}/Layouts/MosaicLayout/MosaicLayout.d.ts +0 -1
- package/dist/{src/components → components}/Layouts/Sidebar/Sidebar.d.ts +0 -1
- package/dist/{src/components → components}/Theme/DarkTheme/DarkTheme.d.ts +0 -1
- package/dist/{src/config → config}/i18n.config.d.ts +0 -1
- package/dist/{src/config → config}/query.config.d.ts +0 -1
- package/dist/config/test.config.d.ts +0 -0
- package/dist/{src/config → config}/theme.config.d.ts +0 -1
- package/dist/{src/context → context}/Auth/AuthContext.d.ts +0 -1
- package/dist/{src/context → context}/Auth/AuthProvider.d.ts +0 -1
- package/dist/{src/context → context}/Snackbar/SnackbarContext.d.ts +0 -1
- package/dist/{src/context → context}/Snackbar/SnackbarProvider.d.ts +0 -1
- package/dist/{src/context → context}/Snackbar/snackbarReducer.d.ts +3 -4
- package/dist/{src/features → features}/Treege/Treege.d.ts +1 -2
- package/dist/{src/features → features}/Treege/components/Feedback/DynamicSelectWarning/index.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/Feedback/EndPointWarning/index.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/Forms/FormTreeCardDelete/useFormTreeCardDelete.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/Forms/FormTreeCardMutation/ExtraField.d.ts +1 -2
- package/dist/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +112 -0
- package/dist/{src/features → features}/Treege/components/Inputs/AutocompleteSelectType/AutocompleteSelectType.d.ts +3 -4
- package/dist/{src/features → features}/Treege/components/Inputs/AutocompleteSelectType/index.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/Inputs/DynamicSelectFieldFromTree/DynamicSelectFieldFromTree.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/Inputs/DynamicSelectFieldFromTree/index.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/Inputs/FieldSelectAutocompleteCreatable/FieldSelectAutocompleteCreatable.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/Inputs/FieldSelectAutocompleteCreatable/index.d.ts +0 -1
- package/dist/features/Treege/components/TreeCardContainer/TreeCardContainer.d.ts +8 -0
- package/dist/{src/features → features}/Treege/components/TreeCardContainer/useTreeCardContainer.d.ts +1 -2
- package/dist/{src/features → features}/Treege/components/TreeNameTextField/index.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/TreeNameTextField/useTreeNameTextField.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/TreeSelect/TreeSelect.d.ts +0 -1
- package/dist/{src/features → features}/Treege/components/TreeSelect/index.d.ts +0 -1
- package/dist/features/Treege/components/TreeSelect/useTreeSelect.d.ts +16 -0
- package/dist/{src/features → features}/Treege/context/TreegeContext.d.ts +3 -15
- package/dist/{src/features → features}/Treege/context/TreegeProvider.d.ts +2 -3
- package/dist/{src/features → features}/Treege/index.d.ts +0 -1
- package/dist/{src/features → features}/Treege/reducer/treeReducer.d.ts +1 -2
- package/dist/{src/hooks → hooks}/useSnackbar/index.d.ts +0 -1
- package/dist/{src/hooks → hooks}/useSnackbar/useSnackbar.d.ts +1 -2
- package/dist/{src/hooks → hooks}/useTreegeContext/index.d.ts +0 -1
- package/dist/hooks/useTreegeContext/useTreegeContext.d.ts +2 -0
- package/dist/{src/locales → locales}/en/form-en.d.ts +10 -0
- package/dist/{src/locales → locales}/fr/form-fr.d.ts +10 -0
- package/dist/main.d.ts +4 -1
- package/dist/main.js +3564 -3931
- package/dist/main.umd.cjs +39 -50
- package/dist/services/workflows/mutation/usePatchWorkflowsMutation.d.ts +12 -0
- package/dist/services/workflows/mutation/usePostWorkflowMutation.d.ts +11 -0
- package/dist/services/workflows/query/useWorkflowQuery.d.ts +10 -0
- package/dist/services/workflows/query/useWorkflowsQuery.d.ts +10 -0
- package/dist/utils/tree/appendNode/appendNode.d.ts +76 -0
- package/dist/{src/utils → utils}/tree/appendNode/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/findNodeByUUIDInTree/findNodeByUUIDInTree.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/findNodeByUUIDInTree/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/findParentNodeByUUIDInTree/findParentNodeByUUIDInTree.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/findParentNodeByUUIDInTree/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getAllAncestorNamesFromTree/getAllAncestorNamesFromTree.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getAllAncestorNamesFromTree/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getAllNamesFromTree/getAllNamesFromTree.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getAllNamesFromTree/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getNode/getNode.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getNode/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getTree/getTree.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getTree/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getUniqueTagsInTree/getUniqueTagsInTree.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/getUniqueTagsInTree/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/index.d.ts +8 -9
- package/dist/{src/utils → utils}/tree/removeNode/removeNode.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/removeNode/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/updateNodeInTree/test/mock.d.ts +1 -2
- package/dist/{src/utils → utils}/tree/updateNodeInTree/updateNodeInTree.d.ts +1 -2
- package/package.json +13 -12
- package/dist/src/config/test.config.d.ts +0 -1
- package/dist/src/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +0 -82
- package/dist/src/features/Treege/components/TreeCardContainer/TreeCardContainer.d.ts +0 -4
- package/dist/src/features/Treege/components/TreeSelect/useTreeSelect.d.ts +0 -21
- package/dist/src/features/Treege/type/TreeNode.d.ts +0 -111
- package/dist/src/hooks/useTreegeContext/useTreegeContext.d.ts +0 -2
- package/dist/src/main.d.ts +0 -5
- package/dist/src/services/workflows/mutation/usePatchWorkflowsMutation.d.ts +0 -14
- package/dist/src/services/workflows/mutation/usePostWorkflowMutation.d.ts +0 -13
- package/dist/src/services/workflows/query/useWorkflowQuery.d.ts +0 -11
- package/dist/src/services/workflows/query/useWorkflowsQuery.d.ts +0 -11
- package/dist/src/utils/tree/appendNode/appendNode.d.ts +0 -73
- /package/dist/{src/components → components}/DataDisplay/Icons/TreePlusIcon.d.ts +0 -0
- /package/dist/{src/components → components}/DataDisplay/Logo/Logo.d.ts +0 -0
- /package/dist/{src/components → components}/DataDisplay/Tree/useTree.d.ts +0 -0
- /package/dist/{src/components → components}/DataDisplay/ViewerJSON/ViewerJSON.d.ts +0 -0
- /package/dist/{src/components → components}/DataDisplay/ViewerJSON/useViewerJSON.d.ts +0 -0
- /package/dist/{src/components → components}/DataDisplay/ViewerJSONAction/ViewerJSONAction.d.ts +0 -0
- /package/dist/{src/components → components}/DataDisplay/ViewerJSONAction/useViewerJSONAction.d.ts +0 -0
- /package/dist/{src/constants → constants}/colors.d.ts +0 -0
- /package/dist/{src/constants → constants}/fields.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/Feedback/DynamicSelectWarning/DynamicSelectWarning.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/Feedback/EndPointWarning/EndPointWarning.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/Forms/FormTreeCardDelete/FormTreeCardDelete.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/Forms/FormTreeCardMutation/FormTreeCardMutation.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/Inputs/AutocompleteSelectType/useAutocompleteSelectType.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/Inputs/ButtonCreateTree/ButtonCreateTree.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/Inputs/ButtonCreateTree/useButtonCreateTree.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/TreeGrid/TreeGrid.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/TreeGrid/useTreeGrid.d.ts +0 -0
- /package/dist/{src/features → features}/Treege/components/TreeNameTextField/TreeNameTextField.d.ts +0 -0
- /package/dist/{src/locales → locales}/en/button-en.d.ts +0 -0
- /package/dist/{src/locales → locales}/en/modal-en.d.ts +0 -0
- /package/dist/{src/locales → locales}/en/snackMessage-en.d.ts +0 -0
- /package/dist/{src/locales → locales}/en/translation-en.d.ts +0 -0
- /package/dist/{src/locales → locales}/fr/button-fr.d.ts +0 -0
- /package/dist/{src/locales → locales}/fr/modal-fr.d.ts +0 -0
- /package/dist/{src/locales → locales}/fr/snackMessage-fr.d.ts +0 -0
- /package/dist/{src/locales → locales}/fr/translation-fr.d.ts +0 -0
- /package/dist/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/tree/getUniqueTagsInTree/test/getUniqueTagsInTree.d.ts +0 -0
- /package/dist/{src/utils → utils}/uuid/getUUID.d.ts +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TreeNode } from '../../../features/Treege/type/TreeNode';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
|
|
4
|
-
export interface WorkflowsResponse {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
version: string;
|
|
8
|
-
workflow: TreeNode;
|
|
9
|
-
}
|
|
10
|
-
declare const useWorkflowsQuery: (options?: UseQueryOptions<WorkflowsResponse[]>) => import('@tanstack/react-query').UseQueryResult<WorkflowsResponse[], unknown>;
|
|
11
|
-
export default useWorkflowsQuery;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { TreeNode } from '../../../features/Treege/type/TreeNode';
|
|
2
|
-
|
|
3
|
-
interface AppendChildParams {
|
|
4
|
-
tree: TreeNode | null;
|
|
5
|
-
path: string | null;
|
|
6
|
-
uuid: string;
|
|
7
|
-
child: TreeNode;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Append child to tree
|
|
11
|
-
* @param tree
|
|
12
|
-
* @param path
|
|
13
|
-
* @param uuid
|
|
14
|
-
* @param child
|
|
15
|
-
*/
|
|
16
|
-
declare const appendNode: ({ tree, path, uuid, child }: AppendChildParams) => TreeNode | {
|
|
17
|
-
attributes: {
|
|
18
|
-
isLeaf: boolean;
|
|
19
|
-
isRoot: boolean;
|
|
20
|
-
depth: number;
|
|
21
|
-
tag?: string | undefined;
|
|
22
|
-
helperText?: string | undefined;
|
|
23
|
-
isDecision?: boolean | undefined;
|
|
24
|
-
label?: string | undefined;
|
|
25
|
-
name: string;
|
|
26
|
-
required?: boolean | undefined;
|
|
27
|
-
step?: string | undefined;
|
|
28
|
-
type: "number" | "text" | "address" | "select" | "time" | "title" | "switch" | "hidden" | "email" | "file" | "password" | "tel" | "url" | "date" | "dateRange" | "timeRange" | "checkbox" | "tree" | "radio" | "autocomplete" | "dynamicSelect";
|
|
29
|
-
value?: undefined;
|
|
30
|
-
values?: import('../../../features/Treege/type/TreeNode').TreeValues[] | undefined;
|
|
31
|
-
message?: undefined;
|
|
32
|
-
tree?: TreeNode | undefined;
|
|
33
|
-
treePath?: string | undefined;
|
|
34
|
-
repeatable?: boolean | undefined;
|
|
35
|
-
hiddenValue?: string | undefined;
|
|
36
|
-
isDisabledPast?: boolean | undefined;
|
|
37
|
-
route?: import('../../../features/Treege/type/TreeNode').Route | undefined;
|
|
38
|
-
parentRef?: string | undefined;
|
|
39
|
-
initialQuery?: boolean | undefined;
|
|
40
|
-
messages?: {
|
|
41
|
-
on?: string | undefined;
|
|
42
|
-
off?: string | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
} | {
|
|
45
|
-
isLeaf: boolean;
|
|
46
|
-
isRoot: boolean;
|
|
47
|
-
depth: number;
|
|
48
|
-
tag?: string | undefined;
|
|
49
|
-
helperText?: string | undefined;
|
|
50
|
-
messages?: undefined;
|
|
51
|
-
isDecision?: undefined;
|
|
52
|
-
label?: string | undefined;
|
|
53
|
-
name: string;
|
|
54
|
-
required?: undefined;
|
|
55
|
-
step?: undefined;
|
|
56
|
-
type?: undefined;
|
|
57
|
-
value: string;
|
|
58
|
-
values?: undefined;
|
|
59
|
-
message?: string | undefined;
|
|
60
|
-
tree?: undefined;
|
|
61
|
-
treePath?: undefined;
|
|
62
|
-
repeatable?: undefined;
|
|
63
|
-
hiddenValue?: undefined;
|
|
64
|
-
isDisabledPast?: boolean | undefined;
|
|
65
|
-
route?: import('../../../features/Treege/type/TreeNode').Route | undefined;
|
|
66
|
-
parentRef?: string | undefined;
|
|
67
|
-
initialQuery?: boolean | undefined;
|
|
68
|
-
};
|
|
69
|
-
uuid: string;
|
|
70
|
-
children: TreeNode[];
|
|
71
|
-
treeId?: string | undefined;
|
|
72
|
-
};
|
|
73
|
-
export default appendNode;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/components → components}/DataDisplay/ViewerJSONAction/ViewerJSONAction.d.ts
RENAMED
|
File without changes
|
/package/dist/{src/components → components}/DataDisplay/ViewerJSONAction/useViewerJSONAction.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/features → features}/Treege/components/TreeNameTextField/TreeNameTextField.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|