treege 0.16.0 → 0.18.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/dist/main.js +2030 -2010
- package/dist/main.umd.cjs +35 -35
- package/dist/src/constants/fields.d.ts +2 -0
- package/dist/src/features/Treege/components/FieldSelect/useFieldSelect.d.ts +2 -0
- package/dist/src/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +2 -0
- package/dist/src/features/Treege/type/TreeNode.d.ts +2 -0
- package/dist/src/locales/en/translation-en.d.ts +1 -0
- package/dist/src/locales/fr/translation-fr.d.ts +1 -0
- package/dist/src/utils/tree/appendNode/appendNode.d.ts +2 -0
- package/package.json +1 -1
|
@@ -102,6 +102,7 @@ declare const fields: readonly [{
|
|
|
102
102
|
readonly isRequiredDisabled: false;
|
|
103
103
|
readonly type: "select";
|
|
104
104
|
}, {
|
|
105
|
+
readonly initialQueryEnable: true;
|
|
105
106
|
readonly isBooleanField: false;
|
|
106
107
|
readonly isDecisionField: false;
|
|
107
108
|
readonly isRepeatableDisabled: true;
|
|
@@ -110,6 +111,7 @@ declare const fields: readonly [{
|
|
|
110
111
|
}, {
|
|
111
112
|
readonly isBooleanField: false;
|
|
112
113
|
readonly isDecisionField: false;
|
|
114
|
+
readonly isMultiple: false;
|
|
113
115
|
readonly isRepeatableDisabled: false;
|
|
114
116
|
readonly isRequiredDisabled: false;
|
|
115
117
|
readonly type: "dynamicSelect";
|
|
@@ -103,6 +103,7 @@ declare const useFieldSelect: () => {
|
|
|
103
103
|
readonly isRequiredDisabled: false;
|
|
104
104
|
readonly type: "select";
|
|
105
105
|
} | {
|
|
106
|
+
readonly initialQueryEnable: true;
|
|
106
107
|
readonly isBooleanField: false;
|
|
107
108
|
readonly isDecisionField: false;
|
|
108
109
|
readonly isRepeatableDisabled: true;
|
|
@@ -111,6 +112,7 @@ declare const useFieldSelect: () => {
|
|
|
111
112
|
} | {
|
|
112
113
|
readonly isBooleanField: false;
|
|
113
114
|
readonly isDecisionField: false;
|
|
115
|
+
readonly isMultiple: false;
|
|
114
116
|
readonly isRepeatableDisabled: false;
|
|
115
117
|
readonly isRequiredDisabled: false;
|
|
116
118
|
readonly type: "dynamicSelect";
|
package/dist/src/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare const useFormTreeCardMutation: () => {
|
|
|
7
7
|
handleAddValue: () => void;
|
|
8
8
|
handleChangeHelperText: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
9
9
|
handleChangeHiddenValue: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
handleChangeInitialQuery: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
10
11
|
handleChangeIsDecisionField: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
11
12
|
handleChangeLabel: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
12
13
|
handleChangeMessage: (nameMessage: "on" | "off") => (event: ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -35,6 +36,7 @@ declare const useFormTreeCardMutation: () => {
|
|
|
35
36
|
handleSubmit: (e: FormEvent) => Promise<void>;
|
|
36
37
|
helperText: string;
|
|
37
38
|
hiddenValue: string;
|
|
39
|
+
initialQuery: boolean;
|
|
38
40
|
isAutocomplete: boolean;
|
|
39
41
|
isBooleanField: boolean;
|
|
40
42
|
isDecision: boolean;
|
|
@@ -51,6 +51,7 @@ export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children">
|
|
|
51
51
|
hiddenValue?: string;
|
|
52
52
|
route?: Route;
|
|
53
53
|
parentRef?: string;
|
|
54
|
+
initialQuery?: boolean;
|
|
54
55
|
} | {
|
|
55
56
|
depth: number;
|
|
56
57
|
tag?: string;
|
|
@@ -72,6 +73,7 @@ export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children">
|
|
|
72
73
|
hiddenValue?: never;
|
|
73
74
|
route?: Route;
|
|
74
75
|
parentRef?: string;
|
|
76
|
+
initialQuery?: boolean;
|
|
75
77
|
};
|
|
76
78
|
children: TreeNode[];
|
|
77
79
|
treeId?: string;
|
|
@@ -3,6 +3,7 @@ declare const TRANSLATION_EN: {
|
|
|
3
3
|
readonly cancel: "Cancel";
|
|
4
4
|
readonly disabled: "Disabled";
|
|
5
5
|
readonly edit: "Edit";
|
|
6
|
+
readonly initialQueryEnable: "Enable initial API call";
|
|
6
7
|
readonly isABranch: "Is a branch";
|
|
7
8
|
readonly isAHidden: "Is a hidden field";
|
|
8
9
|
readonly isALeaf: "Is a leaf";
|
|
@@ -3,6 +3,7 @@ declare const TRANSLATION_FR: {
|
|
|
3
3
|
readonly cancel: "Annuler";
|
|
4
4
|
readonly disabled: "Désactivé";
|
|
5
5
|
readonly edit: "Éditer";
|
|
6
|
+
readonly initialQueryEnable: "Activer un appel API intiale";
|
|
6
7
|
readonly isABranch: "Est une branche";
|
|
7
8
|
readonly isAHidden: "Est un champs caché";
|
|
8
9
|
readonly isALeaf: "Est une feuille";
|
|
@@ -37,6 +37,7 @@ declare const appendNode: ({ tree, path, name, child }: AppendChildParams) => Tr
|
|
|
37
37
|
hiddenValue?: string | undefined;
|
|
38
38
|
route?: import('../../../features/Treege/type/TreeNode').Route | undefined;
|
|
39
39
|
parentRef?: string | undefined;
|
|
40
|
+
initialQuery?: boolean | undefined;
|
|
40
41
|
} | {
|
|
41
42
|
isLeaf: boolean;
|
|
42
43
|
isRoot: boolean;
|
|
@@ -58,6 +59,7 @@ declare const appendNode: ({ tree, path, name, child }: AppendChildParams) => Tr
|
|
|
58
59
|
hiddenValue?: undefined;
|
|
59
60
|
route?: import('../../../features/Treege/type/TreeNode').Route | undefined;
|
|
60
61
|
parentRef?: string | undefined;
|
|
62
|
+
initialQuery?: boolean | undefined;
|
|
61
63
|
};
|
|
62
64
|
name: string;
|
|
63
65
|
children: TreeNode[];
|