treege 1.1.0 → 1.2.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 +1438 -1382
- package/dist/main.umd.cjs +34 -34
- package/dist/src/constants/fields.d.ts +6 -0
- package/dist/src/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +4 -3
- package/dist/src/features/Treege/components/Inputs/AutocompleteSelectType/AutocompleteSelectType.d.ts +13 -0
- package/dist/src/features/Treege/components/Inputs/AutocompleteSelectType/index.d.ts +4 -0
- package/dist/src/features/Treege/components/Inputs/AutocompleteSelectType/useAutocompleteSelectType.d.ts +263 -0
- package/dist/src/locales/en/form-en.d.ts +1 -0
- package/dist/src/locales/fr/form-fr.d.ts +1 -0
- package/dist/src/utils/tree/appendNode/appendNode.d.ts +1 -1
- package/package.json +6 -3
- package/dist/src/features/Treege/components/Inputs/FieldSelect/FieldSelect.d.ts +0 -10
- package/dist/src/features/Treege/components/Inputs/FieldSelect/index.d.ts +0 -4
- package/dist/src/features/Treege/components/Inputs/FieldSelect/useFieldSelect.d.ts +0 -127
|
@@ -121,5 +121,11 @@ declare const fields: readonly [{
|
|
|
121
121
|
readonly isRepeatableDisabled: false;
|
|
122
122
|
readonly isRequiredDisabled: false;
|
|
123
123
|
readonly type: "dynamicSelect";
|
|
124
|
+
}, {
|
|
125
|
+
readonly isBooleanField: false;
|
|
126
|
+
readonly isDecisionField: false;
|
|
127
|
+
readonly isRepeatableDisabled: true;
|
|
128
|
+
readonly isRequiredDisabled: true;
|
|
129
|
+
readonly type: "title";
|
|
124
130
|
}];
|
|
125
131
|
export default fields;
|
package/dist/src/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Params, Route
|
|
1
|
+
import { Params, Route } from '../../../type/TreeNode';
|
|
2
|
+
import { default as fields } from '../../../../../constants/fields';
|
|
2
3
|
import { ChangeEvent, FormEvent, MouseEvent, SyntheticEvent } from 'react';
|
|
3
4
|
import { SelectChangeEvent } from '@tracktor/design-system';
|
|
4
5
|
|
|
@@ -36,7 +37,7 @@ declare const useFormTreeCardMutation: () => {
|
|
|
36
37
|
label: string;
|
|
37
38
|
} | null) => void;
|
|
38
39
|
handleChangeTreeSelect: (event: SelectChangeEvent) => void;
|
|
39
|
-
handleChangeType: (
|
|
40
|
+
handleChangeType: (_: SyntheticEvent, value: (typeof fields)[number]) => void;
|
|
40
41
|
handleChangeUrl: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
41
42
|
handleChangeUrlSelect: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
42
43
|
handleDeleteParam: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -74,7 +75,7 @@ declare const useFormTreeCardMutation: () => {
|
|
|
74
75
|
step: string;
|
|
75
76
|
tag: string | null;
|
|
76
77
|
treeSelected: string;
|
|
77
|
-
type: "number" | "text" | "address" | "select" | "time" | "switch" | "hidden" | "email" | "file" | "password" | "tel" | "url" | "date" | "dateRange" | "timeRange" | "checkbox" | "tree" | "radio" | "autocomplete" | "dynamicSelect";
|
|
78
|
+
type: "number" | "text" | "address" | "select" | "time" | "title" | "switch" | "hidden" | "email" | "file" | "password" | "tel" | "url" | "date" | "dateRange" | "timeRange" | "checkbox" | "tree" | "radio" | "autocomplete" | "dynamicSelect";
|
|
78
79
|
uuid: string;
|
|
79
80
|
values: Values[];
|
|
80
81
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TreeNodeField } from '../../../type/TreeNode';
|
|
2
|
+
import { default as fields } from '../../../../../constants/fields';
|
|
3
|
+
import { SyntheticEvent } from 'react';
|
|
4
|
+
import { SxProps } from '@tracktor/design-system';
|
|
5
|
+
|
|
6
|
+
export interface FieldsSelectProps {
|
|
7
|
+
id: string;
|
|
8
|
+
value: TreeNodeField["type"];
|
|
9
|
+
onChange?: (event: SyntheticEvent, value: (typeof fields)[number]) => void;
|
|
10
|
+
sx?: SxProps;
|
|
11
|
+
}
|
|
12
|
+
declare const AutocompleteSelectType: ({ id, onChange, value, sx }: FieldsSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default AutocompleteSelectType;
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
declare const useAutocompleteSelectType: (value: any) => {
|
|
2
|
+
currentValue: {
|
|
3
|
+
readonly isBooleanField: false;
|
|
4
|
+
readonly isDecisionField: false;
|
|
5
|
+
readonly isRepeatableDisabled: false;
|
|
6
|
+
readonly isRequiredDisabled: false;
|
|
7
|
+
readonly type: "text";
|
|
8
|
+
} | {
|
|
9
|
+
readonly isBooleanField: false;
|
|
10
|
+
readonly isDecisionField: false;
|
|
11
|
+
readonly isRepeatableDisabled: false;
|
|
12
|
+
readonly isRequiredDisabled: false;
|
|
13
|
+
readonly type: "number";
|
|
14
|
+
} | {
|
|
15
|
+
readonly isBooleanField: false;
|
|
16
|
+
readonly isDecisionField: false;
|
|
17
|
+
readonly isRepeatableDisabled: false;
|
|
18
|
+
readonly isRequiredDisabled: false;
|
|
19
|
+
readonly type: "email";
|
|
20
|
+
} | {
|
|
21
|
+
readonly isBooleanField: false;
|
|
22
|
+
readonly isDecisionField: false;
|
|
23
|
+
readonly isMultiple: false;
|
|
24
|
+
readonly isRepeatableDisabled: false;
|
|
25
|
+
readonly isRequiredDisabled: false;
|
|
26
|
+
readonly type: "file";
|
|
27
|
+
} | {
|
|
28
|
+
readonly isBooleanField: false;
|
|
29
|
+
readonly isDecisionField: false;
|
|
30
|
+
readonly isRepeatableDisabled: false;
|
|
31
|
+
readonly isRequiredDisabled: false;
|
|
32
|
+
readonly type: "password";
|
|
33
|
+
} | {
|
|
34
|
+
readonly isBooleanField: false;
|
|
35
|
+
readonly isDecisionField: false;
|
|
36
|
+
readonly isRepeatableDisabled: false;
|
|
37
|
+
readonly isRequiredDisabled: false;
|
|
38
|
+
readonly type: "tel";
|
|
39
|
+
} | {
|
|
40
|
+
readonly isBooleanField: false;
|
|
41
|
+
readonly isDecisionField: false;
|
|
42
|
+
readonly isRepeatableDisabled: false;
|
|
43
|
+
readonly isRequiredDisabled: false;
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
} | {
|
|
46
|
+
readonly isBooleanField: false;
|
|
47
|
+
readonly isDecisionField: false;
|
|
48
|
+
readonly isRepeatableDisabled: false;
|
|
49
|
+
readonly isRequiredDisabled: false;
|
|
50
|
+
readonly type: "url";
|
|
51
|
+
} | {
|
|
52
|
+
readonly isBooleanField: false;
|
|
53
|
+
readonly isDecisionField: false;
|
|
54
|
+
readonly isRepeatableDisabled: false;
|
|
55
|
+
readonly isRequiredDisabled: false;
|
|
56
|
+
readonly type: "date";
|
|
57
|
+
} | {
|
|
58
|
+
readonly isBooleanField: false;
|
|
59
|
+
readonly isDecisionField: false;
|
|
60
|
+
readonly isRepeatableDisabled: false;
|
|
61
|
+
readonly isRequiredDisabled: false;
|
|
62
|
+
readonly type: "dateRange";
|
|
63
|
+
} | {
|
|
64
|
+
readonly isBooleanField: false;
|
|
65
|
+
readonly isDecisionField: false;
|
|
66
|
+
readonly isRepeatableDisabled: false;
|
|
67
|
+
readonly isRequiredDisabled: false;
|
|
68
|
+
readonly type: "time";
|
|
69
|
+
} | {
|
|
70
|
+
readonly isBooleanField: false;
|
|
71
|
+
readonly isDecisionField: false;
|
|
72
|
+
readonly isRepeatableDisabled: false;
|
|
73
|
+
readonly isRequiredDisabled: false;
|
|
74
|
+
readonly type: "timeRange";
|
|
75
|
+
} | {
|
|
76
|
+
readonly isBooleanField: true;
|
|
77
|
+
readonly isDecisionField: false;
|
|
78
|
+
readonly isRepeatableDisabled: true;
|
|
79
|
+
readonly isRequiredDisabled: true;
|
|
80
|
+
readonly type: "switch";
|
|
81
|
+
} | {
|
|
82
|
+
readonly isBooleanField: true;
|
|
83
|
+
readonly isDecisionField: false;
|
|
84
|
+
readonly isRepeatableDisabled: true;
|
|
85
|
+
readonly isRequiredDisabled: true;
|
|
86
|
+
readonly type: "checkbox";
|
|
87
|
+
} | {
|
|
88
|
+
readonly isBooleanField: false;
|
|
89
|
+
readonly isDecisionField: false;
|
|
90
|
+
readonly isRepeatableDisabled: true;
|
|
91
|
+
readonly isRequiredDisabled: true;
|
|
92
|
+
readonly type: "hidden";
|
|
93
|
+
} | {
|
|
94
|
+
readonly isBooleanField: false;
|
|
95
|
+
readonly isDecisionField: false;
|
|
96
|
+
readonly isRepeatableDisabled: true;
|
|
97
|
+
readonly isRequiredDisabled: true;
|
|
98
|
+
readonly type: "tree";
|
|
99
|
+
} | {
|
|
100
|
+
readonly isBooleanField: false;
|
|
101
|
+
readonly isDecisionField: true;
|
|
102
|
+
readonly isRepeatableDisabled: true;
|
|
103
|
+
readonly isRequiredDisabled: false;
|
|
104
|
+
readonly type: "radio";
|
|
105
|
+
} | {
|
|
106
|
+
readonly isBooleanField: false;
|
|
107
|
+
readonly isDecisionField: true;
|
|
108
|
+
readonly isRepeatableDisabled: true;
|
|
109
|
+
readonly isRequiredDisabled: false;
|
|
110
|
+
readonly type: "select";
|
|
111
|
+
} | {
|
|
112
|
+
readonly initialQueryEnable: true;
|
|
113
|
+
readonly isBooleanField: false;
|
|
114
|
+
readonly isDecisionField: false;
|
|
115
|
+
readonly isRepeatableDisabled: true;
|
|
116
|
+
readonly isRequiredDisabled: false;
|
|
117
|
+
readonly type: "autocomplete";
|
|
118
|
+
} | {
|
|
119
|
+
readonly isBooleanField: false;
|
|
120
|
+
readonly isDecisionField: false;
|
|
121
|
+
readonly isMultiple: false;
|
|
122
|
+
readonly isRepeatableDisabled: false;
|
|
123
|
+
readonly isRequiredDisabled: false;
|
|
124
|
+
readonly type: "dynamicSelect";
|
|
125
|
+
} | {
|
|
126
|
+
readonly isBooleanField: false;
|
|
127
|
+
readonly isDecisionField: false;
|
|
128
|
+
readonly isRepeatableDisabled: true;
|
|
129
|
+
readonly isRequiredDisabled: true;
|
|
130
|
+
readonly type: "title";
|
|
131
|
+
};
|
|
132
|
+
options: ({
|
|
133
|
+
readonly isBooleanField: false;
|
|
134
|
+
readonly isDecisionField: false;
|
|
135
|
+
readonly isRepeatableDisabled: false;
|
|
136
|
+
readonly isRequiredDisabled: false;
|
|
137
|
+
readonly type: "text";
|
|
138
|
+
} | {
|
|
139
|
+
readonly isBooleanField: false;
|
|
140
|
+
readonly isDecisionField: false;
|
|
141
|
+
readonly isRepeatableDisabled: false;
|
|
142
|
+
readonly isRequiredDisabled: false;
|
|
143
|
+
readonly type: "number";
|
|
144
|
+
} | {
|
|
145
|
+
readonly isBooleanField: false;
|
|
146
|
+
readonly isDecisionField: false;
|
|
147
|
+
readonly isRepeatableDisabled: false;
|
|
148
|
+
readonly isRequiredDisabled: false;
|
|
149
|
+
readonly type: "email";
|
|
150
|
+
} | {
|
|
151
|
+
readonly isBooleanField: false;
|
|
152
|
+
readonly isDecisionField: false;
|
|
153
|
+
readonly isMultiple: false;
|
|
154
|
+
readonly isRepeatableDisabled: false;
|
|
155
|
+
readonly isRequiredDisabled: false;
|
|
156
|
+
readonly type: "file";
|
|
157
|
+
} | {
|
|
158
|
+
readonly isBooleanField: false;
|
|
159
|
+
readonly isDecisionField: false;
|
|
160
|
+
readonly isRepeatableDisabled: false;
|
|
161
|
+
readonly isRequiredDisabled: false;
|
|
162
|
+
readonly type: "password";
|
|
163
|
+
} | {
|
|
164
|
+
readonly isBooleanField: false;
|
|
165
|
+
readonly isDecisionField: false;
|
|
166
|
+
readonly isRepeatableDisabled: false;
|
|
167
|
+
readonly isRequiredDisabled: false;
|
|
168
|
+
readonly type: "tel";
|
|
169
|
+
} | {
|
|
170
|
+
readonly isBooleanField: false;
|
|
171
|
+
readonly isDecisionField: false;
|
|
172
|
+
readonly isRepeatableDisabled: false;
|
|
173
|
+
readonly isRequiredDisabled: false;
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
} | {
|
|
176
|
+
readonly isBooleanField: false;
|
|
177
|
+
readonly isDecisionField: false;
|
|
178
|
+
readonly isRepeatableDisabled: false;
|
|
179
|
+
readonly isRequiredDisabled: false;
|
|
180
|
+
readonly type: "url";
|
|
181
|
+
} | {
|
|
182
|
+
readonly isBooleanField: false;
|
|
183
|
+
readonly isDecisionField: false;
|
|
184
|
+
readonly isRepeatableDisabled: false;
|
|
185
|
+
readonly isRequiredDisabled: false;
|
|
186
|
+
readonly type: "date";
|
|
187
|
+
} | {
|
|
188
|
+
readonly isBooleanField: false;
|
|
189
|
+
readonly isDecisionField: false;
|
|
190
|
+
readonly isRepeatableDisabled: false;
|
|
191
|
+
readonly isRequiredDisabled: false;
|
|
192
|
+
readonly type: "dateRange";
|
|
193
|
+
} | {
|
|
194
|
+
readonly isBooleanField: false;
|
|
195
|
+
readonly isDecisionField: false;
|
|
196
|
+
readonly isRepeatableDisabled: false;
|
|
197
|
+
readonly isRequiredDisabled: false;
|
|
198
|
+
readonly type: "time";
|
|
199
|
+
} | {
|
|
200
|
+
readonly isBooleanField: false;
|
|
201
|
+
readonly isDecisionField: false;
|
|
202
|
+
readonly isRepeatableDisabled: false;
|
|
203
|
+
readonly isRequiredDisabled: false;
|
|
204
|
+
readonly type: "timeRange";
|
|
205
|
+
} | {
|
|
206
|
+
readonly isBooleanField: true;
|
|
207
|
+
readonly isDecisionField: false;
|
|
208
|
+
readonly isRepeatableDisabled: true;
|
|
209
|
+
readonly isRequiredDisabled: true;
|
|
210
|
+
readonly type: "switch";
|
|
211
|
+
} | {
|
|
212
|
+
readonly isBooleanField: true;
|
|
213
|
+
readonly isDecisionField: false;
|
|
214
|
+
readonly isRepeatableDisabled: true;
|
|
215
|
+
readonly isRequiredDisabled: true;
|
|
216
|
+
readonly type: "checkbox";
|
|
217
|
+
} | {
|
|
218
|
+
readonly isBooleanField: false;
|
|
219
|
+
readonly isDecisionField: false;
|
|
220
|
+
readonly isRepeatableDisabled: true;
|
|
221
|
+
readonly isRequiredDisabled: true;
|
|
222
|
+
readonly type: "hidden";
|
|
223
|
+
} | {
|
|
224
|
+
readonly isBooleanField: false;
|
|
225
|
+
readonly isDecisionField: false;
|
|
226
|
+
readonly isRepeatableDisabled: true;
|
|
227
|
+
readonly isRequiredDisabled: true;
|
|
228
|
+
readonly type: "tree";
|
|
229
|
+
} | {
|
|
230
|
+
readonly isBooleanField: false;
|
|
231
|
+
readonly isDecisionField: true;
|
|
232
|
+
readonly isRepeatableDisabled: true;
|
|
233
|
+
readonly isRequiredDisabled: false;
|
|
234
|
+
readonly type: "radio";
|
|
235
|
+
} | {
|
|
236
|
+
readonly isBooleanField: false;
|
|
237
|
+
readonly isDecisionField: true;
|
|
238
|
+
readonly isRepeatableDisabled: true;
|
|
239
|
+
readonly isRequiredDisabled: false;
|
|
240
|
+
readonly type: "select";
|
|
241
|
+
} | {
|
|
242
|
+
readonly initialQueryEnable: true;
|
|
243
|
+
readonly isBooleanField: false;
|
|
244
|
+
readonly isDecisionField: false;
|
|
245
|
+
readonly isRepeatableDisabled: true;
|
|
246
|
+
readonly isRequiredDisabled: false;
|
|
247
|
+
readonly type: "autocomplete";
|
|
248
|
+
} | {
|
|
249
|
+
readonly isBooleanField: false;
|
|
250
|
+
readonly isDecisionField: false;
|
|
251
|
+
readonly isMultiple: false;
|
|
252
|
+
readonly isRepeatableDisabled: false;
|
|
253
|
+
readonly isRequiredDisabled: false;
|
|
254
|
+
readonly type: "dynamicSelect";
|
|
255
|
+
} | {
|
|
256
|
+
readonly isBooleanField: false;
|
|
257
|
+
readonly isDecisionField: false;
|
|
258
|
+
readonly isRepeatableDisabled: true;
|
|
259
|
+
readonly isRequiredDisabled: true;
|
|
260
|
+
readonly type: "title";
|
|
261
|
+
})[];
|
|
262
|
+
};
|
|
263
|
+
export default useAutocompleteSelectType;
|
|
@@ -25,7 +25,7 @@ declare const appendNode: ({ tree, path, uuid, child }: AppendChildParams) => Tr
|
|
|
25
25
|
name: string;
|
|
26
26
|
required?: boolean | undefined;
|
|
27
27
|
step?: string | undefined;
|
|
28
|
-
type: "number" | "text" | "address" | "select" | "time" | "switch" | "hidden" | "email" | "file" | "password" | "tel" | "url" | "date" | "dateRange" | "timeRange" | "checkbox" | "tree" | "radio" | "autocomplete" | "dynamicSelect";
|
|
28
|
+
type: "number" | "text" | "address" | "select" | "time" | "title" | "switch" | "hidden" | "email" | "file" | "password" | "tel" | "url" | "date" | "dateRange" | "timeRange" | "checkbox" | "tree" | "radio" | "autocomplete" | "dynamicSelect";
|
|
29
29
|
value?: undefined;
|
|
30
30
|
values?: import('../../../features/Treege/type/TreeNode').TreeValues[] | undefined;
|
|
31
31
|
message?: undefined;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "treege",
|
|
3
3
|
"description": "Form decision tree generator",
|
|
4
4
|
"license": "ISC",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/main.d.ts",
|
|
8
8
|
"main": "./dist/main.umd.cjs",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@codemirror/lang-json": "^6.0.1",
|
|
37
|
-
"@mui/icons-material": "^5.
|
|
37
|
+
"@mui/icons-material": "^5.16.7",
|
|
38
38
|
"@tanstack/react-query": "^4.36.1",
|
|
39
|
-
"@tracktor/design-system": "^2.3.
|
|
39
|
+
"@tracktor/design-system": "^2.3.19",
|
|
40
40
|
"@uiw/codemirror-theme-dracula": "^4.21.19",
|
|
41
41
|
"@uiw/react-codemirror": "^4.21.19",
|
|
42
42
|
"axios": "^1.7.7",
|
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
"vitest": "^1.4.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
+
"@mui/icons-material": ">=5",
|
|
69
|
+
"@tracktor/design-system": ">=2",
|
|
70
|
+
"i18next": ">=23",
|
|
68
71
|
"react": ">=18.0.0",
|
|
69
72
|
"react-dom": ">=18.0.0"
|
|
70
73
|
},
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TreeNodeField } from '../../../type/TreeNode';
|
|
2
|
-
import { SelectChangeEvent } from '@tracktor/design-system';
|
|
3
|
-
|
|
4
|
-
interface FieldsSelectProps {
|
|
5
|
-
id: string;
|
|
6
|
-
value: TreeNodeField["type"];
|
|
7
|
-
onChange?: (event: SelectChangeEvent<TreeNodeField["type"]>) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const FieldSelect: ({ id, onChange, value }: FieldsSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default FieldSelect;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
declare const useFieldSelect: () => {
|
|
2
|
-
fields: ({
|
|
3
|
-
readonly isBooleanField: false;
|
|
4
|
-
readonly isDecisionField: false;
|
|
5
|
-
readonly isRepeatableDisabled: false;
|
|
6
|
-
readonly isRequiredDisabled: false;
|
|
7
|
-
readonly type: "text";
|
|
8
|
-
} | {
|
|
9
|
-
readonly isBooleanField: false;
|
|
10
|
-
readonly isDecisionField: false;
|
|
11
|
-
readonly isRepeatableDisabled: false;
|
|
12
|
-
readonly isRequiredDisabled: false;
|
|
13
|
-
readonly type: "number";
|
|
14
|
-
} | {
|
|
15
|
-
readonly isBooleanField: false;
|
|
16
|
-
readonly isDecisionField: false;
|
|
17
|
-
readonly isRepeatableDisabled: false;
|
|
18
|
-
readonly isRequiredDisabled: false;
|
|
19
|
-
readonly type: "email";
|
|
20
|
-
} | {
|
|
21
|
-
readonly isBooleanField: false;
|
|
22
|
-
readonly isDecisionField: false;
|
|
23
|
-
readonly isMultiple: false;
|
|
24
|
-
readonly isRepeatableDisabled: false;
|
|
25
|
-
readonly isRequiredDisabled: false;
|
|
26
|
-
readonly type: "file";
|
|
27
|
-
} | {
|
|
28
|
-
readonly isBooleanField: false;
|
|
29
|
-
readonly isDecisionField: false;
|
|
30
|
-
readonly isRepeatableDisabled: false;
|
|
31
|
-
readonly isRequiredDisabled: false;
|
|
32
|
-
readonly type: "password";
|
|
33
|
-
} | {
|
|
34
|
-
readonly isBooleanField: false;
|
|
35
|
-
readonly isDecisionField: false;
|
|
36
|
-
readonly isRepeatableDisabled: false;
|
|
37
|
-
readonly isRequiredDisabled: false;
|
|
38
|
-
readonly type: "tel";
|
|
39
|
-
} | {
|
|
40
|
-
readonly isBooleanField: false;
|
|
41
|
-
readonly isDecisionField: false;
|
|
42
|
-
readonly isRepeatableDisabled: false;
|
|
43
|
-
readonly isRequiredDisabled: false;
|
|
44
|
-
readonly type: "address";
|
|
45
|
-
} | {
|
|
46
|
-
readonly isBooleanField: false;
|
|
47
|
-
readonly isDecisionField: false;
|
|
48
|
-
readonly isRepeatableDisabled: false;
|
|
49
|
-
readonly isRequiredDisabled: false;
|
|
50
|
-
readonly type: "url";
|
|
51
|
-
} | {
|
|
52
|
-
readonly isBooleanField: false;
|
|
53
|
-
readonly isDecisionField: false;
|
|
54
|
-
readonly isRepeatableDisabled: false;
|
|
55
|
-
readonly isRequiredDisabled: false;
|
|
56
|
-
readonly type: "date";
|
|
57
|
-
} | {
|
|
58
|
-
readonly isBooleanField: false;
|
|
59
|
-
readonly isDecisionField: false;
|
|
60
|
-
readonly isRepeatableDisabled: false;
|
|
61
|
-
readonly isRequiredDisabled: false;
|
|
62
|
-
readonly type: "dateRange";
|
|
63
|
-
} | {
|
|
64
|
-
readonly isBooleanField: false;
|
|
65
|
-
readonly isDecisionField: false;
|
|
66
|
-
readonly isRepeatableDisabled: false;
|
|
67
|
-
readonly isRequiredDisabled: false;
|
|
68
|
-
readonly type: "time";
|
|
69
|
-
} | {
|
|
70
|
-
readonly isBooleanField: false;
|
|
71
|
-
readonly isDecisionField: false;
|
|
72
|
-
readonly isRepeatableDisabled: false;
|
|
73
|
-
readonly isRequiredDisabled: false;
|
|
74
|
-
readonly type: "timeRange";
|
|
75
|
-
} | {
|
|
76
|
-
readonly isBooleanField: true;
|
|
77
|
-
readonly isDecisionField: false;
|
|
78
|
-
readonly isRepeatableDisabled: true;
|
|
79
|
-
readonly isRequiredDisabled: true;
|
|
80
|
-
readonly type: "switch";
|
|
81
|
-
} | {
|
|
82
|
-
readonly isBooleanField: true;
|
|
83
|
-
readonly isDecisionField: false;
|
|
84
|
-
readonly isRepeatableDisabled: true;
|
|
85
|
-
readonly isRequiredDisabled: true;
|
|
86
|
-
readonly type: "checkbox";
|
|
87
|
-
} | {
|
|
88
|
-
readonly isBooleanField: false;
|
|
89
|
-
readonly isDecisionField: false;
|
|
90
|
-
readonly isRepeatableDisabled: true;
|
|
91
|
-
readonly isRequiredDisabled: true;
|
|
92
|
-
readonly type: "hidden";
|
|
93
|
-
} | {
|
|
94
|
-
readonly isBooleanField: false;
|
|
95
|
-
readonly isDecisionField: false;
|
|
96
|
-
readonly isRepeatableDisabled: true;
|
|
97
|
-
readonly isRequiredDisabled: true;
|
|
98
|
-
readonly type: "tree";
|
|
99
|
-
} | {
|
|
100
|
-
readonly isBooleanField: false;
|
|
101
|
-
readonly isDecisionField: true;
|
|
102
|
-
readonly isRepeatableDisabled: true;
|
|
103
|
-
readonly isRequiredDisabled: false;
|
|
104
|
-
readonly type: "radio";
|
|
105
|
-
} | {
|
|
106
|
-
readonly isBooleanField: false;
|
|
107
|
-
readonly isDecisionField: true;
|
|
108
|
-
readonly isRepeatableDisabled: true;
|
|
109
|
-
readonly isRequiredDisabled: false;
|
|
110
|
-
readonly type: "select";
|
|
111
|
-
} | {
|
|
112
|
-
readonly initialQueryEnable: true;
|
|
113
|
-
readonly isBooleanField: false;
|
|
114
|
-
readonly isDecisionField: false;
|
|
115
|
-
readonly isRepeatableDisabled: true;
|
|
116
|
-
readonly isRequiredDisabled: false;
|
|
117
|
-
readonly type: "autocomplete";
|
|
118
|
-
} | {
|
|
119
|
-
readonly isBooleanField: false;
|
|
120
|
-
readonly isDecisionField: false;
|
|
121
|
-
readonly isMultiple: false;
|
|
122
|
-
readonly isRepeatableDisabled: false;
|
|
123
|
-
readonly isRequiredDisabled: false;
|
|
124
|
-
readonly type: "dynamicSelect";
|
|
125
|
-
})[];
|
|
126
|
-
};
|
|
127
|
-
export default useFieldSelect;
|