@layers-app/shared 0.2.8 → 0.3.1
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/dist/api/giphy/slice.d.ts +1 -1
- package/dist/api/giphy/slice.d.ts.map +1 -1
- package/dist/api/unsplash/slice.d.ts +1 -1
- package/dist/api/unsplash/slice.d.ts.map +1 -1
- package/dist/assets/default-workspace-avatar.jpg.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +2 -3
- package/dist/assets/layers-logo-full.svg2.js +5 -0
- package/dist/assets/layers-logo-icon.svg.js +2 -3
- package/dist/assets/layers-logo-icon.svg2.js +5 -0
- package/dist/assets/projects/figureA.svg.js +4 -0
- package/dist/assets/projects/figureB.svg.js +4 -0
- package/dist/assets/qwebchannel.d.ts +15 -0
- package/dist/assets/qwebchannel.d.ts.map +1 -0
- package/dist/assets/taskPriorities/high.svg.js +5 -0
- package/dist/assets/taskPriorities/low.svg.js +5 -0
- package/dist/assets/taskPriorities/none.svg.js +5 -0
- package/dist/assets/taskPriorities/normal.svg.js +5 -0
- package/dist/assets/taskPriorities/urgent.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
- package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
- package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +37 -36
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +120 -120
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
- package/dist/components/AppContainer/types.d.ts +3 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +115 -111
- package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/index.js +47 -46
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +8 -7
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
- package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +47 -45
- package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
- package/dist/components/EntityIcon.d.ts +3 -3
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +59 -35
- package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +34 -34
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +144 -152
- package/dist/components/FilePicker/FilePicker.module.css.js +10 -10
- package/dist/components/FilePicker/FilePickerGallery.js +13 -13
- package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +46 -48
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +16 -16
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +49 -51
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +44 -42
- package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
- package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/giphyApi.js +11 -14
- package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
- package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/unsplashApi.js +14 -19
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
- package/dist/components/FormViewer/helpers/conditions.d.ts +84 -84
- package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/steps.js +22 -21
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts +357 -357
- package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
- package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
- package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
- package/dist/components/Logotype.d.ts +6 -4
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +62 -30
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/OnBoarding/OnBoardingPage.js +35 -35
- package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
- package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
- package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
- package/dist/components/TreeIndent/TreeIndent.js +15 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
- package/dist/components/TreeIndent/index.d.ts +2 -0
- package/dist/components/TreeIndent/index.d.ts.map +1 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +6 -6
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/config/brand.d.ts +49 -0
- package/dist/config/brand.d.ts.map +1 -0
- package/dist/config/brand.js +77 -0
- package/dist/config/envConfig.d.ts +110 -0
- package/dist/config/envConfig.d.ts.map +1 -0
- package/dist/config/envConfig.js +48 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +19 -7
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +34 -29
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +3 -3
- package/dist/helpers/hotjar.d.ts.map +1 -1
- package/dist/helpers/hotjar.js +11 -7
- package/dist/helpers/platform.js +4 -4
- package/dist/helpers/showNotifications.d.ts +3 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +79 -44
- package/dist/hooks/useDateFnsLocale.d.ts +2 -0
- package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
- package/dist/hooks/useDateFnsLocale.js +9 -8
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -19
- package/dist/hooks/useDisableWindowScroll.js +3 -3
- package/dist/hooks/useFormatDistance.d.ts.map +1 -1
- package/dist/hooks/useFormatDistance.js +6 -6
- package/dist/hooks/useNumberQueryParam.d.ts +1 -1
- package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +505 -487
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +5 -5
- package/dist/lang/locales/ui_ru.json.js +5 -5
- package/dist/utils/formatStorage.d.ts +9 -0
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +14 -10
- package/package.json +3 -6
- package/dist/assets/svg/default_icon.svg.js +0 -4
- package/dist/assets/svg/layers-logo-full.svg.js +0 -4
|
@@ -57,16 +57,6 @@ export declare const createFormStore: () => {
|
|
|
57
57
|
scrollToControl: (controlId: string) => void;
|
|
58
58
|
getConfig: () => Required<{
|
|
59
59
|
theme?: {
|
|
60
|
-
background?: {
|
|
61
|
-
brightness?: number | undefined;
|
|
62
|
-
image?: string | undefined;
|
|
63
|
-
color?: string | undefined;
|
|
64
|
-
blur?: number | undefined;
|
|
65
|
-
opacity?: number | undefined;
|
|
66
|
-
fit?: string | undefined;
|
|
67
|
-
blendMode?: string | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
70
60
|
title?: {
|
|
71
61
|
color?: string | undefined;
|
|
72
62
|
fontSize?: number | undefined;
|
|
@@ -79,6 +69,16 @@ export declare const createFormStore: () => {
|
|
|
79
69
|
fontWeight?: number | undefined;
|
|
80
70
|
fontFamily?: string | undefined;
|
|
81
71
|
} | undefined;
|
|
72
|
+
background?: {
|
|
73
|
+
image?: string | undefined;
|
|
74
|
+
brightness?: number | undefined;
|
|
75
|
+
color?: string | undefined;
|
|
76
|
+
blur?: number | undefined;
|
|
77
|
+
opacity?: number | undefined;
|
|
78
|
+
fit?: string | undefined;
|
|
79
|
+
blendMode?: string | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
82
82
|
align?: "start" | "center" | "end" | undefined;
|
|
83
83
|
listStyle?: string | undefined;
|
|
84
84
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
@@ -104,7 +104,6 @@ export declare const createFormStore: () => {
|
|
|
104
104
|
customCSS?: string | undefined;
|
|
105
105
|
} | undefined;
|
|
106
106
|
steps?: {
|
|
107
|
-
trigger: string;
|
|
108
107
|
id: string;
|
|
109
108
|
controls: ({
|
|
110
109
|
id: string;
|
|
@@ -117,33 +116,6 @@ export declare const createFormStore: () => {
|
|
|
117
116
|
minLength?: number | undefined;
|
|
118
117
|
maxLength?: number | undefined;
|
|
119
118
|
variableName?: string | undefined;
|
|
120
|
-
} | {
|
|
121
|
-
id: string;
|
|
122
|
-
controlType: "longText";
|
|
123
|
-
title?: string | undefined;
|
|
124
|
-
description?: string | undefined;
|
|
125
|
-
icon?: string | undefined;
|
|
126
|
-
required?: boolean | undefined;
|
|
127
|
-
placeholder?: string | undefined;
|
|
128
|
-
minLength?: number | undefined;
|
|
129
|
-
maxLength?: number | undefined;
|
|
130
|
-
variableName?: string | undefined;
|
|
131
|
-
} | {
|
|
132
|
-
id: string;
|
|
133
|
-
controlType: "button";
|
|
134
|
-
title?: string | undefined;
|
|
135
|
-
description?: string | undefined;
|
|
136
|
-
required?: boolean | undefined;
|
|
137
|
-
label?: string | undefined;
|
|
138
|
-
link?: string | undefined;
|
|
139
|
-
showIconButton?: boolean | undefined;
|
|
140
|
-
buttonIcon?: string | undefined;
|
|
141
|
-
alignButton?: "start" | "center" | "end" | undefined;
|
|
142
|
-
buttons?: any[] | undefined;
|
|
143
|
-
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
144
|
-
width?: number | undefined;
|
|
145
|
-
enableTooltip?: boolean | undefined;
|
|
146
|
-
fullWidthMobile?: boolean | undefined;
|
|
147
119
|
} | {
|
|
148
120
|
id: string;
|
|
149
121
|
controlType: "date";
|
|
@@ -157,72 +129,74 @@ export declare const createFormStore: () => {
|
|
|
157
129
|
maxDate?: string | undefined;
|
|
158
130
|
} | {
|
|
159
131
|
id: string;
|
|
160
|
-
controlType: "
|
|
132
|
+
controlType: "number";
|
|
161
133
|
title?: string | undefined;
|
|
162
134
|
description?: string | undefined;
|
|
163
135
|
icon?: string | undefined;
|
|
164
136
|
required?: boolean | undefined;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
137
|
+
placeholder?: string | undefined;
|
|
138
|
+
variableName?: string | undefined;
|
|
139
|
+
min?: number | undefined;
|
|
140
|
+
max?: number | undefined;
|
|
169
141
|
} | {
|
|
170
142
|
id: string;
|
|
171
|
-
|
|
143
|
+
options: {
|
|
144
|
+
id: string;
|
|
145
|
+
label: string;
|
|
146
|
+
}[];
|
|
147
|
+
controlType: "multipleChoice";
|
|
172
148
|
title?: string | undefined;
|
|
173
149
|
description?: string | undefined;
|
|
150
|
+
icon?: string | undefined;
|
|
174
151
|
required?: boolean | undefined;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
152
|
+
variableName?: string | undefined;
|
|
153
|
+
minOptions?: number | undefined;
|
|
154
|
+
maxOptions?: number | undefined;
|
|
155
|
+
showInput?: boolean | undefined;
|
|
156
|
+
otherOption?: boolean | undefined;
|
|
179
157
|
} | {
|
|
180
158
|
id: string;
|
|
181
|
-
controlType: "
|
|
159
|
+
controlType: "slider";
|
|
182
160
|
title?: string | undefined;
|
|
183
161
|
description?: string | undefined;
|
|
184
162
|
icon?: string | undefined;
|
|
185
163
|
required?: boolean | undefined;
|
|
186
|
-
placeholder?: string | undefined;
|
|
187
164
|
variableName?: string | undefined;
|
|
188
165
|
min?: number | undefined;
|
|
189
166
|
max?: number | undefined;
|
|
190
167
|
} | {
|
|
168
|
+
id: string;
|
|
191
169
|
options: {
|
|
192
170
|
id: string;
|
|
193
171
|
label: string;
|
|
194
172
|
}[];
|
|
195
|
-
|
|
196
|
-
controlType: "choice";
|
|
173
|
+
controlType: "dropdown";
|
|
197
174
|
title?: string | undefined;
|
|
198
175
|
description?: string | undefined;
|
|
176
|
+
icon?: string | undefined;
|
|
199
177
|
required?: boolean | undefined;
|
|
178
|
+
placeholder?: string | undefined;
|
|
200
179
|
variableName?: string | undefined;
|
|
201
|
-
showInput?: boolean | undefined;
|
|
202
|
-
otherOption?: boolean | undefined;
|
|
203
180
|
} | {
|
|
181
|
+
id: string;
|
|
204
182
|
options: {
|
|
205
183
|
id: string;
|
|
206
184
|
label: string;
|
|
207
185
|
}[];
|
|
208
|
-
|
|
209
|
-
controlType: "multipleChoice";
|
|
186
|
+
controlType: "choice";
|
|
210
187
|
title?: string | undefined;
|
|
211
188
|
description?: string | undefined;
|
|
212
|
-
icon?: string | undefined;
|
|
213
189
|
required?: boolean | undefined;
|
|
214
190
|
variableName?: string | undefined;
|
|
215
191
|
showInput?: boolean | undefined;
|
|
216
192
|
otherOption?: boolean | undefined;
|
|
217
|
-
minOptions?: number | undefined;
|
|
218
|
-
maxOptions?: number | undefined;
|
|
219
193
|
} | {
|
|
194
|
+
id: string;
|
|
220
195
|
options: {
|
|
221
196
|
id: string;
|
|
222
197
|
label: string;
|
|
223
198
|
image?: string | undefined;
|
|
224
199
|
}[];
|
|
225
|
-
id: string;
|
|
226
200
|
controlType: "pictureChoice";
|
|
227
201
|
title?: string | undefined;
|
|
228
202
|
description?: string | undefined;
|
|
@@ -231,21 +205,21 @@ export declare const createFormStore: () => {
|
|
|
231
205
|
variableName?: string | undefined;
|
|
232
206
|
showInput?: boolean | undefined;
|
|
233
207
|
} | {
|
|
234
|
-
options: {
|
|
235
|
-
id: string;
|
|
236
|
-
label: string;
|
|
237
|
-
}[];
|
|
238
208
|
id: string;
|
|
239
|
-
controlType: "
|
|
209
|
+
controlType: "upload";
|
|
240
210
|
title?: string | undefined;
|
|
241
211
|
description?: string | undefined;
|
|
242
212
|
icon?: string | undefined;
|
|
243
213
|
required?: boolean | undefined;
|
|
244
|
-
placeholder?: string | undefined;
|
|
245
214
|
variableName?: string | undefined;
|
|
215
|
+
multiple?: boolean | undefined;
|
|
216
|
+
maxFiles?: number | undefined;
|
|
217
|
+
minFiles?: number | undefined;
|
|
218
|
+
accept?: string[] | undefined;
|
|
219
|
+
maxSize?: number | undefined;
|
|
246
220
|
} | {
|
|
247
221
|
id: string;
|
|
248
|
-
controlType: "
|
|
222
|
+
controlType: "location";
|
|
249
223
|
title?: string | undefined;
|
|
250
224
|
description?: string | undefined;
|
|
251
225
|
icon?: string | undefined;
|
|
@@ -254,7 +228,7 @@ export declare const createFormStore: () => {
|
|
|
254
228
|
variableName?: string | undefined;
|
|
255
229
|
} | {
|
|
256
230
|
id: string;
|
|
257
|
-
controlType: "
|
|
231
|
+
controlType: "phone";
|
|
258
232
|
title?: string | undefined;
|
|
259
233
|
description?: string | undefined;
|
|
260
234
|
icon?: string | undefined;
|
|
@@ -263,7 +237,7 @@ export declare const createFormStore: () => {
|
|
|
263
237
|
variableName?: string | undefined;
|
|
264
238
|
} | {
|
|
265
239
|
id: string;
|
|
266
|
-
controlType: "
|
|
240
|
+
controlType: "email";
|
|
267
241
|
title?: string | undefined;
|
|
268
242
|
description?: string | undefined;
|
|
269
243
|
icon?: string | undefined;
|
|
@@ -272,37 +246,62 @@ export declare const createFormStore: () => {
|
|
|
272
246
|
variableName?: string | undefined;
|
|
273
247
|
} | {
|
|
274
248
|
id: string;
|
|
275
|
-
controlType: "
|
|
249
|
+
controlType: "yesNo";
|
|
276
250
|
title?: string | undefined;
|
|
277
251
|
description?: string | undefined;
|
|
278
252
|
icon?: string | undefined;
|
|
279
253
|
required?: boolean | undefined;
|
|
280
254
|
variableName?: string | undefined;
|
|
281
|
-
|
|
282
|
-
|
|
255
|
+
yesLabel?: string | undefined;
|
|
256
|
+
noLabel?: string | undefined;
|
|
283
257
|
} | {
|
|
284
258
|
id: string;
|
|
285
|
-
controlType: "
|
|
259
|
+
controlType: "longText";
|
|
286
260
|
title?: string | undefined;
|
|
287
261
|
description?: string | undefined;
|
|
288
262
|
icon?: string | undefined;
|
|
289
263
|
required?: boolean | undefined;
|
|
264
|
+
placeholder?: string | undefined;
|
|
265
|
+
minLength?: number | undefined;
|
|
266
|
+
maxLength?: number | undefined;
|
|
290
267
|
variableName?: string | undefined;
|
|
291
|
-
multiple?: boolean | undefined;
|
|
292
|
-
maxFiles?: number | undefined;
|
|
293
|
-
minFiles?: number | undefined;
|
|
294
|
-
accept?: string[] | undefined;
|
|
295
|
-
maxSize?: number | undefined;
|
|
296
268
|
} | {
|
|
297
269
|
id: string;
|
|
298
|
-
controlType: "
|
|
270
|
+
controlType: "start";
|
|
299
271
|
title?: string | undefined;
|
|
300
272
|
description?: string | undefined;
|
|
301
273
|
icon?: string | undefined;
|
|
302
274
|
required?: boolean | undefined;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
275
|
+
label?: string | undefined;
|
|
276
|
+
showButton?: boolean | undefined;
|
|
277
|
+
buttonIcon?: string | undefined;
|
|
278
|
+
showIconButton?: boolean | undefined;
|
|
279
|
+
} | {
|
|
280
|
+
id: string;
|
|
281
|
+
controlType: "confirm";
|
|
282
|
+
title?: string | undefined;
|
|
283
|
+
description?: string | undefined;
|
|
284
|
+
required?: boolean | undefined;
|
|
285
|
+
label?: string | undefined;
|
|
286
|
+
showButton?: boolean | undefined;
|
|
287
|
+
buttonIcon?: string | undefined;
|
|
288
|
+
link?: string | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
id: string;
|
|
291
|
+
controlType: "button";
|
|
292
|
+
title?: string | undefined;
|
|
293
|
+
description?: string | undefined;
|
|
294
|
+
required?: boolean | undefined;
|
|
295
|
+
label?: string | undefined;
|
|
296
|
+
buttonIcon?: string | undefined;
|
|
297
|
+
showIconButton?: boolean | undefined;
|
|
298
|
+
link?: string | undefined;
|
|
299
|
+
alignButton?: "start" | "center" | "end" | undefined;
|
|
300
|
+
buttons?: any[] | undefined;
|
|
301
|
+
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
302
|
+
width?: number | undefined;
|
|
303
|
+
enableTooltip?: boolean | undefined;
|
|
304
|
+
fullWidthMobile?: boolean | undefined;
|
|
306
305
|
} | {
|
|
307
306
|
id: string;
|
|
308
307
|
controlType: "rating";
|
|
@@ -312,14 +311,15 @@ export declare const createFormStore: () => {
|
|
|
312
311
|
variableName?: string | undefined;
|
|
313
312
|
count?: number | undefined;
|
|
314
313
|
})[];
|
|
314
|
+
trigger: string;
|
|
315
315
|
isStart?: boolean | undefined;
|
|
316
316
|
isEnd?: boolean | undefined;
|
|
317
317
|
autoSubmit?: boolean | undefined;
|
|
318
318
|
confirmLabel?: string | undefined;
|
|
319
319
|
media?: {
|
|
320
|
+
image?: string | undefined;
|
|
320
321
|
layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
|
|
321
322
|
brightness?: number | undefined;
|
|
322
|
-
image?: string | undefined;
|
|
323
323
|
video?: string | undefined;
|
|
324
324
|
videoThumb?: string | undefined;
|
|
325
325
|
color?: string | undefined;
|
|
@@ -327,22 +327,12 @@ export declare const createFormStore: () => {
|
|
|
327
327
|
blur?: number | undefined;
|
|
328
328
|
} | undefined;
|
|
329
329
|
conditions?: {
|
|
330
|
+
trigger: string;
|
|
330
331
|
controlId: string;
|
|
331
332
|
operator: string;
|
|
332
|
-
trigger: string;
|
|
333
333
|
compareValue?: string | undefined;
|
|
334
334
|
}[] | undefined;
|
|
335
335
|
theme?: {
|
|
336
|
-
background?: {
|
|
337
|
-
brightness?: number | undefined;
|
|
338
|
-
image?: string | undefined;
|
|
339
|
-
color?: string | undefined;
|
|
340
|
-
blur?: number | undefined;
|
|
341
|
-
opacity?: number | undefined;
|
|
342
|
-
fit?: string | undefined;
|
|
343
|
-
blendMode?: string | undefined;
|
|
344
|
-
} | undefined;
|
|
345
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
346
336
|
title?: {
|
|
347
337
|
color?: string | undefined;
|
|
348
338
|
fontSize?: number | undefined;
|
|
@@ -355,6 +345,16 @@ export declare const createFormStore: () => {
|
|
|
355
345
|
fontWeight?: number | undefined;
|
|
356
346
|
fontFamily?: string | undefined;
|
|
357
347
|
} | undefined;
|
|
348
|
+
background?: {
|
|
349
|
+
image?: string | undefined;
|
|
350
|
+
brightness?: number | undefined;
|
|
351
|
+
color?: string | undefined;
|
|
352
|
+
blur?: number | undefined;
|
|
353
|
+
opacity?: number | undefined;
|
|
354
|
+
fit?: string | undefined;
|
|
355
|
+
blendMode?: string | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
358
358
|
align?: "start" | "center" | "end" | undefined;
|
|
359
359
|
listStyle?: string | undefined;
|
|
360
360
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
@@ -385,7 +385,6 @@ export declare const createFormStore: () => {
|
|
|
385
385
|
} | undefined;
|
|
386
386
|
}[] | undefined;
|
|
387
387
|
listStep?: {
|
|
388
|
-
trigger: string;
|
|
389
388
|
id: string;
|
|
390
389
|
controls: ({
|
|
391
390
|
id: string;
|
|
@@ -400,80 +399,71 @@ export declare const createFormStore: () => {
|
|
|
400
399
|
variableName?: string | undefined;
|
|
401
400
|
} | {
|
|
402
401
|
id: string;
|
|
403
|
-
controlType: "
|
|
402
|
+
controlType: "date";
|
|
404
403
|
title?: string | undefined;
|
|
405
404
|
description?: string | undefined;
|
|
406
405
|
icon?: string | undefined;
|
|
407
406
|
required?: boolean | undefined;
|
|
408
407
|
placeholder?: string | undefined;
|
|
409
|
-
minLength?: number | undefined;
|
|
410
|
-
maxLength?: number | undefined;
|
|
411
408
|
variableName?: string | undefined;
|
|
409
|
+
minDate?: string | undefined;
|
|
410
|
+
maxDate?: string | undefined;
|
|
412
411
|
} | {
|
|
413
412
|
id: string;
|
|
414
|
-
controlType: "
|
|
415
|
-
title?: string | undefined;
|
|
416
|
-
description?: string | undefined;
|
|
417
|
-
required?: boolean | undefined;
|
|
418
|
-
label?: string | undefined;
|
|
419
|
-
link?: string | undefined;
|
|
420
|
-
showIconButton?: boolean | undefined;
|
|
421
|
-
buttonIcon?: string | undefined;
|
|
422
|
-
alignButton?: "start" | "center" | "end" | undefined;
|
|
423
|
-
buttons?: any[] | undefined;
|
|
424
|
-
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
425
|
-
width?: number | undefined;
|
|
426
|
-
enableTooltip?: boolean | undefined;
|
|
427
|
-
fullWidthMobile?: boolean | undefined;
|
|
428
|
-
} | {
|
|
429
|
-
id: string;
|
|
430
|
-
controlType: "date";
|
|
413
|
+
controlType: "number";
|
|
431
414
|
title?: string | undefined;
|
|
432
415
|
description?: string | undefined;
|
|
433
416
|
icon?: string | undefined;
|
|
434
417
|
required?: boolean | undefined;
|
|
435
418
|
placeholder?: string | undefined;
|
|
436
419
|
variableName?: string | undefined;
|
|
437
|
-
|
|
438
|
-
|
|
420
|
+
min?: number | undefined;
|
|
421
|
+
max?: number | undefined;
|
|
439
422
|
} | {
|
|
440
423
|
id: string;
|
|
441
|
-
|
|
424
|
+
options: {
|
|
425
|
+
id: string;
|
|
426
|
+
label: string;
|
|
427
|
+
}[];
|
|
428
|
+
controlType: "multipleChoice";
|
|
442
429
|
title?: string | undefined;
|
|
443
430
|
description?: string | undefined;
|
|
444
431
|
icon?: string | undefined;
|
|
445
432
|
required?: boolean | undefined;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
433
|
+
variableName?: string | undefined;
|
|
434
|
+
minOptions?: number | undefined;
|
|
435
|
+
maxOptions?: number | undefined;
|
|
436
|
+
showInput?: boolean | undefined;
|
|
437
|
+
otherOption?: boolean | undefined;
|
|
450
438
|
} | {
|
|
451
439
|
id: string;
|
|
452
|
-
controlType: "
|
|
440
|
+
controlType: "slider";
|
|
453
441
|
title?: string | undefined;
|
|
454
442
|
description?: string | undefined;
|
|
443
|
+
icon?: string | undefined;
|
|
455
444
|
required?: boolean | undefined;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
showButton?: boolean | undefined;
|
|
445
|
+
variableName?: string | undefined;
|
|
446
|
+
min?: number | undefined;
|
|
447
|
+
max?: number | undefined;
|
|
460
448
|
} | {
|
|
461
449
|
id: string;
|
|
462
|
-
|
|
450
|
+
options: {
|
|
451
|
+
id: string;
|
|
452
|
+
label: string;
|
|
453
|
+
}[];
|
|
454
|
+
controlType: "dropdown";
|
|
463
455
|
title?: string | undefined;
|
|
464
456
|
description?: string | undefined;
|
|
465
457
|
icon?: string | undefined;
|
|
466
458
|
required?: boolean | undefined;
|
|
467
459
|
placeholder?: string | undefined;
|
|
468
460
|
variableName?: string | undefined;
|
|
469
|
-
min?: number | undefined;
|
|
470
|
-
max?: number | undefined;
|
|
471
461
|
} | {
|
|
462
|
+
id: string;
|
|
472
463
|
options: {
|
|
473
464
|
id: string;
|
|
474
465
|
label: string;
|
|
475
466
|
}[];
|
|
476
|
-
id: string;
|
|
477
467
|
controlType: "choice";
|
|
478
468
|
title?: string | undefined;
|
|
479
469
|
description?: string | undefined;
|
|
@@ -482,42 +472,35 @@ export declare const createFormStore: () => {
|
|
|
482
472
|
showInput?: boolean | undefined;
|
|
483
473
|
otherOption?: boolean | undefined;
|
|
484
474
|
} | {
|
|
475
|
+
id: string;
|
|
485
476
|
options: {
|
|
486
477
|
id: string;
|
|
487
478
|
label: string;
|
|
479
|
+
image?: string | undefined;
|
|
488
480
|
}[];
|
|
489
|
-
|
|
490
|
-
controlType: "multipleChoice";
|
|
481
|
+
controlType: "pictureChoice";
|
|
491
482
|
title?: string | undefined;
|
|
492
483
|
description?: string | undefined;
|
|
493
484
|
icon?: string | undefined;
|
|
494
485
|
required?: boolean | undefined;
|
|
495
486
|
variableName?: string | undefined;
|
|
496
487
|
showInput?: boolean | undefined;
|
|
497
|
-
otherOption?: boolean | undefined;
|
|
498
|
-
minOptions?: number | undefined;
|
|
499
|
-
maxOptions?: number | undefined;
|
|
500
488
|
} | {
|
|
501
|
-
options: {
|
|
502
|
-
id: string;
|
|
503
|
-
label: string;
|
|
504
|
-
image?: string | undefined;
|
|
505
|
-
}[];
|
|
506
489
|
id: string;
|
|
507
|
-
controlType: "
|
|
490
|
+
controlType: "upload";
|
|
508
491
|
title?: string | undefined;
|
|
509
492
|
description?: string | undefined;
|
|
510
493
|
icon?: string | undefined;
|
|
511
494
|
required?: boolean | undefined;
|
|
512
495
|
variableName?: string | undefined;
|
|
513
|
-
|
|
496
|
+
multiple?: boolean | undefined;
|
|
497
|
+
maxFiles?: number | undefined;
|
|
498
|
+
minFiles?: number | undefined;
|
|
499
|
+
accept?: string[] | undefined;
|
|
500
|
+
maxSize?: number | undefined;
|
|
514
501
|
} | {
|
|
515
|
-
options: {
|
|
516
|
-
id: string;
|
|
517
|
-
label: string;
|
|
518
|
-
}[];
|
|
519
502
|
id: string;
|
|
520
|
-
controlType: "
|
|
503
|
+
controlType: "location";
|
|
521
504
|
title?: string | undefined;
|
|
522
505
|
description?: string | undefined;
|
|
523
506
|
icon?: string | undefined;
|
|
@@ -526,7 +509,7 @@ export declare const createFormStore: () => {
|
|
|
526
509
|
variableName?: string | undefined;
|
|
527
510
|
} | {
|
|
528
511
|
id: string;
|
|
529
|
-
controlType: "
|
|
512
|
+
controlType: "phone";
|
|
530
513
|
title?: string | undefined;
|
|
531
514
|
description?: string | undefined;
|
|
532
515
|
icon?: string | undefined;
|
|
@@ -535,7 +518,7 @@ export declare const createFormStore: () => {
|
|
|
535
518
|
variableName?: string | undefined;
|
|
536
519
|
} | {
|
|
537
520
|
id: string;
|
|
538
|
-
controlType: "
|
|
521
|
+
controlType: "email";
|
|
539
522
|
title?: string | undefined;
|
|
540
523
|
description?: string | undefined;
|
|
541
524
|
icon?: string | undefined;
|
|
@@ -544,46 +527,62 @@ export declare const createFormStore: () => {
|
|
|
544
527
|
variableName?: string | undefined;
|
|
545
528
|
} | {
|
|
546
529
|
id: string;
|
|
547
|
-
controlType: "
|
|
530
|
+
controlType: "yesNo";
|
|
548
531
|
title?: string | undefined;
|
|
549
532
|
description?: string | undefined;
|
|
550
533
|
icon?: string | undefined;
|
|
551
534
|
required?: boolean | undefined;
|
|
552
|
-
placeholder?: string | undefined;
|
|
553
535
|
variableName?: string | undefined;
|
|
536
|
+
yesLabel?: string | undefined;
|
|
537
|
+
noLabel?: string | undefined;
|
|
554
538
|
} | {
|
|
555
539
|
id: string;
|
|
556
|
-
controlType: "
|
|
540
|
+
controlType: "longText";
|
|
557
541
|
title?: string | undefined;
|
|
558
542
|
description?: string | undefined;
|
|
559
543
|
icon?: string | undefined;
|
|
560
544
|
required?: boolean | undefined;
|
|
545
|
+
placeholder?: string | undefined;
|
|
546
|
+
minLength?: number | undefined;
|
|
547
|
+
maxLength?: number | undefined;
|
|
561
548
|
variableName?: string | undefined;
|
|
562
|
-
min?: number | undefined;
|
|
563
|
-
max?: number | undefined;
|
|
564
549
|
} | {
|
|
565
550
|
id: string;
|
|
566
|
-
controlType: "
|
|
551
|
+
controlType: "start";
|
|
567
552
|
title?: string | undefined;
|
|
568
553
|
description?: string | undefined;
|
|
569
554
|
icon?: string | undefined;
|
|
570
555
|
required?: boolean | undefined;
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
accept?: string[] | undefined;
|
|
576
|
-
maxSize?: number | undefined;
|
|
556
|
+
label?: string | undefined;
|
|
557
|
+
showButton?: boolean | undefined;
|
|
558
|
+
buttonIcon?: string | undefined;
|
|
559
|
+
showIconButton?: boolean | undefined;
|
|
577
560
|
} | {
|
|
578
561
|
id: string;
|
|
579
|
-
controlType: "
|
|
562
|
+
controlType: "confirm";
|
|
580
563
|
title?: string | undefined;
|
|
581
564
|
description?: string | undefined;
|
|
582
|
-
icon?: string | undefined;
|
|
583
565
|
required?: boolean | undefined;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
566
|
+
label?: string | undefined;
|
|
567
|
+
showButton?: boolean | undefined;
|
|
568
|
+
buttonIcon?: string | undefined;
|
|
569
|
+
link?: string | undefined;
|
|
570
|
+
} | {
|
|
571
|
+
id: string;
|
|
572
|
+
controlType: "button";
|
|
573
|
+
title?: string | undefined;
|
|
574
|
+
description?: string | undefined;
|
|
575
|
+
required?: boolean | undefined;
|
|
576
|
+
label?: string | undefined;
|
|
577
|
+
buttonIcon?: string | undefined;
|
|
578
|
+
showIconButton?: boolean | undefined;
|
|
579
|
+
link?: string | undefined;
|
|
580
|
+
alignButton?: "start" | "center" | "end" | undefined;
|
|
581
|
+
buttons?: any[] | undefined;
|
|
582
|
+
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
583
|
+
width?: number | undefined;
|
|
584
|
+
enableTooltip?: boolean | undefined;
|
|
585
|
+
fullWidthMobile?: boolean | undefined;
|
|
587
586
|
} | {
|
|
588
587
|
id: string;
|
|
589
588
|
controlType: "rating";
|
|
@@ -593,14 +592,15 @@ export declare const createFormStore: () => {
|
|
|
593
592
|
variableName?: string | undefined;
|
|
594
593
|
count?: number | undefined;
|
|
595
594
|
})[];
|
|
595
|
+
trigger: string;
|
|
596
596
|
isStart?: boolean | undefined;
|
|
597
597
|
isEnd?: boolean | undefined;
|
|
598
598
|
autoSubmit?: boolean | undefined;
|
|
599
599
|
confirmLabel?: string | undefined;
|
|
600
600
|
media?: {
|
|
601
|
+
image?: string | undefined;
|
|
601
602
|
layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
|
|
602
603
|
brightness?: number | undefined;
|
|
603
|
-
image?: string | undefined;
|
|
604
604
|
video?: string | undefined;
|
|
605
605
|
videoThumb?: string | undefined;
|
|
606
606
|
color?: string | undefined;
|
|
@@ -608,22 +608,12 @@ export declare const createFormStore: () => {
|
|
|
608
608
|
blur?: number | undefined;
|
|
609
609
|
} | undefined;
|
|
610
610
|
conditions?: {
|
|
611
|
+
trigger: string;
|
|
611
612
|
controlId: string;
|
|
612
613
|
operator: string;
|
|
613
|
-
trigger: string;
|
|
614
614
|
compareValue?: string | undefined;
|
|
615
615
|
}[] | undefined;
|
|
616
616
|
theme?: {
|
|
617
|
-
background?: {
|
|
618
|
-
brightness?: number | undefined;
|
|
619
|
-
image?: string | undefined;
|
|
620
|
-
color?: string | undefined;
|
|
621
|
-
blur?: number | undefined;
|
|
622
|
-
opacity?: number | undefined;
|
|
623
|
-
fit?: string | undefined;
|
|
624
|
-
blendMode?: string | undefined;
|
|
625
|
-
} | undefined;
|
|
626
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
627
617
|
title?: {
|
|
628
618
|
color?: string | undefined;
|
|
629
619
|
fontSize?: number | undefined;
|
|
@@ -636,6 +626,16 @@ export declare const createFormStore: () => {
|
|
|
636
626
|
fontWeight?: number | undefined;
|
|
637
627
|
fontFamily?: string | undefined;
|
|
638
628
|
} | undefined;
|
|
629
|
+
background?: {
|
|
630
|
+
image?: string | undefined;
|
|
631
|
+
brightness?: number | undefined;
|
|
632
|
+
color?: string | undefined;
|
|
633
|
+
blur?: number | undefined;
|
|
634
|
+
opacity?: number | undefined;
|
|
635
|
+
fit?: string | undefined;
|
|
636
|
+
blendMode?: string | undefined;
|
|
637
|
+
} | undefined;
|
|
638
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
639
639
|
align?: "start" | "center" | "end" | undefined;
|
|
640
640
|
listStyle?: string | undefined;
|
|
641
641
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
@@ -735,16 +735,6 @@ export declare const useFormViewerStore: () => {
|
|
|
735
735
|
scrollToControl: (controlId: string) => void;
|
|
736
736
|
getConfig: () => Required<{
|
|
737
737
|
theme?: {
|
|
738
|
-
background?: {
|
|
739
|
-
brightness?: number | undefined;
|
|
740
|
-
image?: string | undefined;
|
|
741
|
-
color?: string | undefined;
|
|
742
|
-
blur?: number | undefined;
|
|
743
|
-
opacity?: number | undefined;
|
|
744
|
-
fit?: string | undefined;
|
|
745
|
-
blendMode?: string | undefined;
|
|
746
|
-
} | undefined;
|
|
747
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
748
738
|
title?: {
|
|
749
739
|
color?: string | undefined;
|
|
750
740
|
fontSize?: number | undefined;
|
|
@@ -757,6 +747,16 @@ export declare const useFormViewerStore: () => {
|
|
|
757
747
|
fontWeight?: number | undefined;
|
|
758
748
|
fontFamily?: string | undefined;
|
|
759
749
|
} | undefined;
|
|
750
|
+
background?: {
|
|
751
|
+
image?: string | undefined;
|
|
752
|
+
brightness?: number | undefined;
|
|
753
|
+
color?: string | undefined;
|
|
754
|
+
blur?: number | undefined;
|
|
755
|
+
opacity?: number | undefined;
|
|
756
|
+
fit?: string | undefined;
|
|
757
|
+
blendMode?: string | undefined;
|
|
758
|
+
} | undefined;
|
|
759
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
760
760
|
align?: "start" | "center" | "end" | undefined;
|
|
761
761
|
listStyle?: string | undefined;
|
|
762
762
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
@@ -782,7 +782,6 @@ export declare const useFormViewerStore: () => {
|
|
|
782
782
|
customCSS?: string | undefined;
|
|
783
783
|
} | undefined;
|
|
784
784
|
steps?: {
|
|
785
|
-
trigger: string;
|
|
786
785
|
id: string;
|
|
787
786
|
controls: ({
|
|
788
787
|
id: string;
|
|
@@ -795,33 +794,6 @@ export declare const useFormViewerStore: () => {
|
|
|
795
794
|
minLength?: number | undefined;
|
|
796
795
|
maxLength?: number | undefined;
|
|
797
796
|
variableName?: string | undefined;
|
|
798
|
-
} | {
|
|
799
|
-
id: string;
|
|
800
|
-
controlType: "longText";
|
|
801
|
-
title?: string | undefined;
|
|
802
|
-
description?: string | undefined;
|
|
803
|
-
icon?: string | undefined;
|
|
804
|
-
required?: boolean | undefined;
|
|
805
|
-
placeholder?: string | undefined;
|
|
806
|
-
minLength?: number | undefined;
|
|
807
|
-
maxLength?: number | undefined;
|
|
808
|
-
variableName?: string | undefined;
|
|
809
|
-
} | {
|
|
810
|
-
id: string;
|
|
811
|
-
controlType: "button";
|
|
812
|
-
title?: string | undefined;
|
|
813
|
-
description?: string | undefined;
|
|
814
|
-
required?: boolean | undefined;
|
|
815
|
-
label?: string | undefined;
|
|
816
|
-
link?: string | undefined;
|
|
817
|
-
showIconButton?: boolean | undefined;
|
|
818
|
-
buttonIcon?: string | undefined;
|
|
819
|
-
alignButton?: "start" | "center" | "end" | undefined;
|
|
820
|
-
buttons?: any[] | undefined;
|
|
821
|
-
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
822
|
-
width?: number | undefined;
|
|
823
|
-
enableTooltip?: boolean | undefined;
|
|
824
|
-
fullWidthMobile?: boolean | undefined;
|
|
825
797
|
} | {
|
|
826
798
|
id: string;
|
|
827
799
|
controlType: "date";
|
|
@@ -835,72 +807,74 @@ export declare const useFormViewerStore: () => {
|
|
|
835
807
|
maxDate?: string | undefined;
|
|
836
808
|
} | {
|
|
837
809
|
id: string;
|
|
838
|
-
controlType: "
|
|
810
|
+
controlType: "number";
|
|
839
811
|
title?: string | undefined;
|
|
840
812
|
description?: string | undefined;
|
|
841
813
|
icon?: string | undefined;
|
|
842
814
|
required?: boolean | undefined;
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
815
|
+
placeholder?: string | undefined;
|
|
816
|
+
variableName?: string | undefined;
|
|
817
|
+
min?: number | undefined;
|
|
818
|
+
max?: number | undefined;
|
|
847
819
|
} | {
|
|
848
820
|
id: string;
|
|
849
|
-
|
|
821
|
+
options: {
|
|
822
|
+
id: string;
|
|
823
|
+
label: string;
|
|
824
|
+
}[];
|
|
825
|
+
controlType: "multipleChoice";
|
|
850
826
|
title?: string | undefined;
|
|
851
827
|
description?: string | undefined;
|
|
828
|
+
icon?: string | undefined;
|
|
852
829
|
required?: boolean | undefined;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
830
|
+
variableName?: string | undefined;
|
|
831
|
+
minOptions?: number | undefined;
|
|
832
|
+
maxOptions?: number | undefined;
|
|
833
|
+
showInput?: boolean | undefined;
|
|
834
|
+
otherOption?: boolean | undefined;
|
|
857
835
|
} | {
|
|
858
836
|
id: string;
|
|
859
|
-
controlType: "
|
|
837
|
+
controlType: "slider";
|
|
860
838
|
title?: string | undefined;
|
|
861
839
|
description?: string | undefined;
|
|
862
840
|
icon?: string | undefined;
|
|
863
841
|
required?: boolean | undefined;
|
|
864
|
-
placeholder?: string | undefined;
|
|
865
842
|
variableName?: string | undefined;
|
|
866
843
|
min?: number | undefined;
|
|
867
844
|
max?: number | undefined;
|
|
868
845
|
} | {
|
|
846
|
+
id: string;
|
|
869
847
|
options: {
|
|
870
848
|
id: string;
|
|
871
849
|
label: string;
|
|
872
850
|
}[];
|
|
873
|
-
|
|
874
|
-
controlType: "choice";
|
|
851
|
+
controlType: "dropdown";
|
|
875
852
|
title?: string | undefined;
|
|
876
853
|
description?: string | undefined;
|
|
854
|
+
icon?: string | undefined;
|
|
877
855
|
required?: boolean | undefined;
|
|
856
|
+
placeholder?: string | undefined;
|
|
878
857
|
variableName?: string | undefined;
|
|
879
|
-
showInput?: boolean | undefined;
|
|
880
|
-
otherOption?: boolean | undefined;
|
|
881
858
|
} | {
|
|
859
|
+
id: string;
|
|
882
860
|
options: {
|
|
883
861
|
id: string;
|
|
884
862
|
label: string;
|
|
885
863
|
}[];
|
|
886
|
-
|
|
887
|
-
controlType: "multipleChoice";
|
|
864
|
+
controlType: "choice";
|
|
888
865
|
title?: string | undefined;
|
|
889
866
|
description?: string | undefined;
|
|
890
|
-
icon?: string | undefined;
|
|
891
867
|
required?: boolean | undefined;
|
|
892
868
|
variableName?: string | undefined;
|
|
893
869
|
showInput?: boolean | undefined;
|
|
894
870
|
otherOption?: boolean | undefined;
|
|
895
|
-
minOptions?: number | undefined;
|
|
896
|
-
maxOptions?: number | undefined;
|
|
897
871
|
} | {
|
|
872
|
+
id: string;
|
|
898
873
|
options: {
|
|
899
874
|
id: string;
|
|
900
875
|
label: string;
|
|
901
876
|
image?: string | undefined;
|
|
902
877
|
}[];
|
|
903
|
-
id: string;
|
|
904
878
|
controlType: "pictureChoice";
|
|
905
879
|
title?: string | undefined;
|
|
906
880
|
description?: string | undefined;
|
|
@@ -909,21 +883,21 @@ export declare const useFormViewerStore: () => {
|
|
|
909
883
|
variableName?: string | undefined;
|
|
910
884
|
showInput?: boolean | undefined;
|
|
911
885
|
} | {
|
|
912
|
-
options: {
|
|
913
|
-
id: string;
|
|
914
|
-
label: string;
|
|
915
|
-
}[];
|
|
916
886
|
id: string;
|
|
917
|
-
controlType: "
|
|
887
|
+
controlType: "upload";
|
|
918
888
|
title?: string | undefined;
|
|
919
889
|
description?: string | undefined;
|
|
920
890
|
icon?: string | undefined;
|
|
921
891
|
required?: boolean | undefined;
|
|
922
|
-
placeholder?: string | undefined;
|
|
923
892
|
variableName?: string | undefined;
|
|
893
|
+
multiple?: boolean | undefined;
|
|
894
|
+
maxFiles?: number | undefined;
|
|
895
|
+
minFiles?: number | undefined;
|
|
896
|
+
accept?: string[] | undefined;
|
|
897
|
+
maxSize?: number | undefined;
|
|
924
898
|
} | {
|
|
925
899
|
id: string;
|
|
926
|
-
controlType: "
|
|
900
|
+
controlType: "location";
|
|
927
901
|
title?: string | undefined;
|
|
928
902
|
description?: string | undefined;
|
|
929
903
|
icon?: string | undefined;
|
|
@@ -932,7 +906,7 @@ export declare const useFormViewerStore: () => {
|
|
|
932
906
|
variableName?: string | undefined;
|
|
933
907
|
} | {
|
|
934
908
|
id: string;
|
|
935
|
-
controlType: "
|
|
909
|
+
controlType: "phone";
|
|
936
910
|
title?: string | undefined;
|
|
937
911
|
description?: string | undefined;
|
|
938
912
|
icon?: string | undefined;
|
|
@@ -941,7 +915,7 @@ export declare const useFormViewerStore: () => {
|
|
|
941
915
|
variableName?: string | undefined;
|
|
942
916
|
} | {
|
|
943
917
|
id: string;
|
|
944
|
-
controlType: "
|
|
918
|
+
controlType: "email";
|
|
945
919
|
title?: string | undefined;
|
|
946
920
|
description?: string | undefined;
|
|
947
921
|
icon?: string | undefined;
|
|
@@ -950,37 +924,62 @@ export declare const useFormViewerStore: () => {
|
|
|
950
924
|
variableName?: string | undefined;
|
|
951
925
|
} | {
|
|
952
926
|
id: string;
|
|
953
|
-
controlType: "
|
|
927
|
+
controlType: "yesNo";
|
|
954
928
|
title?: string | undefined;
|
|
955
929
|
description?: string | undefined;
|
|
956
930
|
icon?: string | undefined;
|
|
957
931
|
required?: boolean | undefined;
|
|
958
932
|
variableName?: string | undefined;
|
|
959
|
-
|
|
960
|
-
|
|
933
|
+
yesLabel?: string | undefined;
|
|
934
|
+
noLabel?: string | undefined;
|
|
961
935
|
} | {
|
|
962
936
|
id: string;
|
|
963
|
-
controlType: "
|
|
937
|
+
controlType: "longText";
|
|
964
938
|
title?: string | undefined;
|
|
965
939
|
description?: string | undefined;
|
|
966
940
|
icon?: string | undefined;
|
|
967
941
|
required?: boolean | undefined;
|
|
942
|
+
placeholder?: string | undefined;
|
|
943
|
+
minLength?: number | undefined;
|
|
944
|
+
maxLength?: number | undefined;
|
|
968
945
|
variableName?: string | undefined;
|
|
969
|
-
multiple?: boolean | undefined;
|
|
970
|
-
maxFiles?: number | undefined;
|
|
971
|
-
minFiles?: number | undefined;
|
|
972
|
-
accept?: string[] | undefined;
|
|
973
|
-
maxSize?: number | undefined;
|
|
974
946
|
} | {
|
|
975
947
|
id: string;
|
|
976
|
-
controlType: "
|
|
948
|
+
controlType: "start";
|
|
977
949
|
title?: string | undefined;
|
|
978
950
|
description?: string | undefined;
|
|
979
951
|
icon?: string | undefined;
|
|
980
952
|
required?: boolean | undefined;
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
953
|
+
label?: string | undefined;
|
|
954
|
+
showButton?: boolean | undefined;
|
|
955
|
+
buttonIcon?: string | undefined;
|
|
956
|
+
showIconButton?: boolean | undefined;
|
|
957
|
+
} | {
|
|
958
|
+
id: string;
|
|
959
|
+
controlType: "confirm";
|
|
960
|
+
title?: string | undefined;
|
|
961
|
+
description?: string | undefined;
|
|
962
|
+
required?: boolean | undefined;
|
|
963
|
+
label?: string | undefined;
|
|
964
|
+
showButton?: boolean | undefined;
|
|
965
|
+
buttonIcon?: string | undefined;
|
|
966
|
+
link?: string | undefined;
|
|
967
|
+
} | {
|
|
968
|
+
id: string;
|
|
969
|
+
controlType: "button";
|
|
970
|
+
title?: string | undefined;
|
|
971
|
+
description?: string | undefined;
|
|
972
|
+
required?: boolean | undefined;
|
|
973
|
+
label?: string | undefined;
|
|
974
|
+
buttonIcon?: string | undefined;
|
|
975
|
+
showIconButton?: boolean | undefined;
|
|
976
|
+
link?: string | undefined;
|
|
977
|
+
alignButton?: "start" | "center" | "end" | undefined;
|
|
978
|
+
buttons?: any[] | undefined;
|
|
979
|
+
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
980
|
+
width?: number | undefined;
|
|
981
|
+
enableTooltip?: boolean | undefined;
|
|
982
|
+
fullWidthMobile?: boolean | undefined;
|
|
984
983
|
} | {
|
|
985
984
|
id: string;
|
|
986
985
|
controlType: "rating";
|
|
@@ -990,14 +989,15 @@ export declare const useFormViewerStore: () => {
|
|
|
990
989
|
variableName?: string | undefined;
|
|
991
990
|
count?: number | undefined;
|
|
992
991
|
})[];
|
|
992
|
+
trigger: string;
|
|
993
993
|
isStart?: boolean | undefined;
|
|
994
994
|
isEnd?: boolean | undefined;
|
|
995
995
|
autoSubmit?: boolean | undefined;
|
|
996
996
|
confirmLabel?: string | undefined;
|
|
997
997
|
media?: {
|
|
998
|
+
image?: string | undefined;
|
|
998
999
|
layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
|
|
999
1000
|
brightness?: number | undefined;
|
|
1000
|
-
image?: string | undefined;
|
|
1001
1001
|
video?: string | undefined;
|
|
1002
1002
|
videoThumb?: string | undefined;
|
|
1003
1003
|
color?: string | undefined;
|
|
@@ -1005,22 +1005,12 @@ export declare const useFormViewerStore: () => {
|
|
|
1005
1005
|
blur?: number | undefined;
|
|
1006
1006
|
} | undefined;
|
|
1007
1007
|
conditions?: {
|
|
1008
|
+
trigger: string;
|
|
1008
1009
|
controlId: string;
|
|
1009
1010
|
operator: string;
|
|
1010
|
-
trigger: string;
|
|
1011
1011
|
compareValue?: string | undefined;
|
|
1012
1012
|
}[] | undefined;
|
|
1013
1013
|
theme?: {
|
|
1014
|
-
background?: {
|
|
1015
|
-
brightness?: number | undefined;
|
|
1016
|
-
image?: string | undefined;
|
|
1017
|
-
color?: string | undefined;
|
|
1018
|
-
blur?: number | undefined;
|
|
1019
|
-
opacity?: number | undefined;
|
|
1020
|
-
fit?: string | undefined;
|
|
1021
|
-
blendMode?: string | undefined;
|
|
1022
|
-
} | undefined;
|
|
1023
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
1024
1014
|
title?: {
|
|
1025
1015
|
color?: string | undefined;
|
|
1026
1016
|
fontSize?: number | undefined;
|
|
@@ -1033,6 +1023,16 @@ export declare const useFormViewerStore: () => {
|
|
|
1033
1023
|
fontWeight?: number | undefined;
|
|
1034
1024
|
fontFamily?: string | undefined;
|
|
1035
1025
|
} | undefined;
|
|
1026
|
+
background?: {
|
|
1027
|
+
image?: string | undefined;
|
|
1028
|
+
brightness?: number | undefined;
|
|
1029
|
+
color?: string | undefined;
|
|
1030
|
+
blur?: number | undefined;
|
|
1031
|
+
opacity?: number | undefined;
|
|
1032
|
+
fit?: string | undefined;
|
|
1033
|
+
blendMode?: string | undefined;
|
|
1034
|
+
} | undefined;
|
|
1035
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
1036
1036
|
align?: "start" | "center" | "end" | undefined;
|
|
1037
1037
|
listStyle?: string | undefined;
|
|
1038
1038
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
@@ -1063,7 +1063,6 @@ export declare const useFormViewerStore: () => {
|
|
|
1063
1063
|
} | undefined;
|
|
1064
1064
|
}[] | undefined;
|
|
1065
1065
|
listStep?: {
|
|
1066
|
-
trigger: string;
|
|
1067
1066
|
id: string;
|
|
1068
1067
|
controls: ({
|
|
1069
1068
|
id: string;
|
|
@@ -1076,33 +1075,6 @@ export declare const useFormViewerStore: () => {
|
|
|
1076
1075
|
minLength?: number | undefined;
|
|
1077
1076
|
maxLength?: number | undefined;
|
|
1078
1077
|
variableName?: string | undefined;
|
|
1079
|
-
} | {
|
|
1080
|
-
id: string;
|
|
1081
|
-
controlType: "longText";
|
|
1082
|
-
title?: string | undefined;
|
|
1083
|
-
description?: string | undefined;
|
|
1084
|
-
icon?: string | undefined;
|
|
1085
|
-
required?: boolean | undefined;
|
|
1086
|
-
placeholder?: string | undefined;
|
|
1087
|
-
minLength?: number | undefined;
|
|
1088
|
-
maxLength?: number | undefined;
|
|
1089
|
-
variableName?: string | undefined;
|
|
1090
|
-
} | {
|
|
1091
|
-
id: string;
|
|
1092
|
-
controlType: "button";
|
|
1093
|
-
title?: string | undefined;
|
|
1094
|
-
description?: string | undefined;
|
|
1095
|
-
required?: boolean | undefined;
|
|
1096
|
-
label?: string | undefined;
|
|
1097
|
-
link?: string | undefined;
|
|
1098
|
-
showIconButton?: boolean | undefined;
|
|
1099
|
-
buttonIcon?: string | undefined;
|
|
1100
|
-
alignButton?: "start" | "center" | "end" | undefined;
|
|
1101
|
-
buttons?: any[] | undefined;
|
|
1102
|
-
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
1103
|
-
width?: number | undefined;
|
|
1104
|
-
enableTooltip?: boolean | undefined;
|
|
1105
|
-
fullWidthMobile?: boolean | undefined;
|
|
1106
1078
|
} | {
|
|
1107
1079
|
id: string;
|
|
1108
1080
|
controlType: "date";
|
|
@@ -1116,72 +1088,74 @@ export declare const useFormViewerStore: () => {
|
|
|
1116
1088
|
maxDate?: string | undefined;
|
|
1117
1089
|
} | {
|
|
1118
1090
|
id: string;
|
|
1119
|
-
controlType: "
|
|
1091
|
+
controlType: "number";
|
|
1120
1092
|
title?: string | undefined;
|
|
1121
1093
|
description?: string | undefined;
|
|
1122
1094
|
icon?: string | undefined;
|
|
1123
1095
|
required?: boolean | undefined;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1096
|
+
placeholder?: string | undefined;
|
|
1097
|
+
variableName?: string | undefined;
|
|
1098
|
+
min?: number | undefined;
|
|
1099
|
+
max?: number | undefined;
|
|
1128
1100
|
} | {
|
|
1129
1101
|
id: string;
|
|
1130
|
-
|
|
1102
|
+
options: {
|
|
1103
|
+
id: string;
|
|
1104
|
+
label: string;
|
|
1105
|
+
}[];
|
|
1106
|
+
controlType: "multipleChoice";
|
|
1131
1107
|
title?: string | undefined;
|
|
1132
1108
|
description?: string | undefined;
|
|
1109
|
+
icon?: string | undefined;
|
|
1133
1110
|
required?: boolean | undefined;
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1111
|
+
variableName?: string | undefined;
|
|
1112
|
+
minOptions?: number | undefined;
|
|
1113
|
+
maxOptions?: number | undefined;
|
|
1114
|
+
showInput?: boolean | undefined;
|
|
1115
|
+
otherOption?: boolean | undefined;
|
|
1138
1116
|
} | {
|
|
1139
1117
|
id: string;
|
|
1140
|
-
controlType: "
|
|
1118
|
+
controlType: "slider";
|
|
1141
1119
|
title?: string | undefined;
|
|
1142
1120
|
description?: string | undefined;
|
|
1143
1121
|
icon?: string | undefined;
|
|
1144
1122
|
required?: boolean | undefined;
|
|
1145
|
-
placeholder?: string | undefined;
|
|
1146
1123
|
variableName?: string | undefined;
|
|
1147
1124
|
min?: number | undefined;
|
|
1148
1125
|
max?: number | undefined;
|
|
1149
1126
|
} | {
|
|
1127
|
+
id: string;
|
|
1150
1128
|
options: {
|
|
1151
1129
|
id: string;
|
|
1152
1130
|
label: string;
|
|
1153
1131
|
}[];
|
|
1154
|
-
|
|
1155
|
-
controlType: "choice";
|
|
1132
|
+
controlType: "dropdown";
|
|
1156
1133
|
title?: string | undefined;
|
|
1157
1134
|
description?: string | undefined;
|
|
1135
|
+
icon?: string | undefined;
|
|
1158
1136
|
required?: boolean | undefined;
|
|
1137
|
+
placeholder?: string | undefined;
|
|
1159
1138
|
variableName?: string | undefined;
|
|
1160
|
-
showInput?: boolean | undefined;
|
|
1161
|
-
otherOption?: boolean | undefined;
|
|
1162
1139
|
} | {
|
|
1140
|
+
id: string;
|
|
1163
1141
|
options: {
|
|
1164
1142
|
id: string;
|
|
1165
1143
|
label: string;
|
|
1166
1144
|
}[];
|
|
1167
|
-
|
|
1168
|
-
controlType: "multipleChoice";
|
|
1145
|
+
controlType: "choice";
|
|
1169
1146
|
title?: string | undefined;
|
|
1170
1147
|
description?: string | undefined;
|
|
1171
|
-
icon?: string | undefined;
|
|
1172
1148
|
required?: boolean | undefined;
|
|
1173
1149
|
variableName?: string | undefined;
|
|
1174
1150
|
showInput?: boolean | undefined;
|
|
1175
1151
|
otherOption?: boolean | undefined;
|
|
1176
|
-
minOptions?: number | undefined;
|
|
1177
|
-
maxOptions?: number | undefined;
|
|
1178
1152
|
} | {
|
|
1153
|
+
id: string;
|
|
1179
1154
|
options: {
|
|
1180
1155
|
id: string;
|
|
1181
1156
|
label: string;
|
|
1182
1157
|
image?: string | undefined;
|
|
1183
1158
|
}[];
|
|
1184
|
-
id: string;
|
|
1185
1159
|
controlType: "pictureChoice";
|
|
1186
1160
|
title?: string | undefined;
|
|
1187
1161
|
description?: string | undefined;
|
|
@@ -1190,21 +1164,21 @@ export declare const useFormViewerStore: () => {
|
|
|
1190
1164
|
variableName?: string | undefined;
|
|
1191
1165
|
showInput?: boolean | undefined;
|
|
1192
1166
|
} | {
|
|
1193
|
-
options: {
|
|
1194
|
-
id: string;
|
|
1195
|
-
label: string;
|
|
1196
|
-
}[];
|
|
1197
1167
|
id: string;
|
|
1198
|
-
controlType: "
|
|
1168
|
+
controlType: "upload";
|
|
1199
1169
|
title?: string | undefined;
|
|
1200
1170
|
description?: string | undefined;
|
|
1201
1171
|
icon?: string | undefined;
|
|
1202
1172
|
required?: boolean | undefined;
|
|
1203
|
-
placeholder?: string | undefined;
|
|
1204
1173
|
variableName?: string | undefined;
|
|
1174
|
+
multiple?: boolean | undefined;
|
|
1175
|
+
maxFiles?: number | undefined;
|
|
1176
|
+
minFiles?: number | undefined;
|
|
1177
|
+
accept?: string[] | undefined;
|
|
1178
|
+
maxSize?: number | undefined;
|
|
1205
1179
|
} | {
|
|
1206
1180
|
id: string;
|
|
1207
|
-
controlType: "
|
|
1181
|
+
controlType: "location";
|
|
1208
1182
|
title?: string | undefined;
|
|
1209
1183
|
description?: string | undefined;
|
|
1210
1184
|
icon?: string | undefined;
|
|
@@ -1213,7 +1187,7 @@ export declare const useFormViewerStore: () => {
|
|
|
1213
1187
|
variableName?: string | undefined;
|
|
1214
1188
|
} | {
|
|
1215
1189
|
id: string;
|
|
1216
|
-
controlType: "
|
|
1190
|
+
controlType: "phone";
|
|
1217
1191
|
title?: string | undefined;
|
|
1218
1192
|
description?: string | undefined;
|
|
1219
1193
|
icon?: string | undefined;
|
|
@@ -1222,7 +1196,7 @@ export declare const useFormViewerStore: () => {
|
|
|
1222
1196
|
variableName?: string | undefined;
|
|
1223
1197
|
} | {
|
|
1224
1198
|
id: string;
|
|
1225
|
-
controlType: "
|
|
1199
|
+
controlType: "email";
|
|
1226
1200
|
title?: string | undefined;
|
|
1227
1201
|
description?: string | undefined;
|
|
1228
1202
|
icon?: string | undefined;
|
|
@@ -1231,37 +1205,62 @@ export declare const useFormViewerStore: () => {
|
|
|
1231
1205
|
variableName?: string | undefined;
|
|
1232
1206
|
} | {
|
|
1233
1207
|
id: string;
|
|
1234
|
-
controlType: "
|
|
1208
|
+
controlType: "yesNo";
|
|
1235
1209
|
title?: string | undefined;
|
|
1236
1210
|
description?: string | undefined;
|
|
1237
1211
|
icon?: string | undefined;
|
|
1238
1212
|
required?: boolean | undefined;
|
|
1239
1213
|
variableName?: string | undefined;
|
|
1240
|
-
|
|
1241
|
-
|
|
1214
|
+
yesLabel?: string | undefined;
|
|
1215
|
+
noLabel?: string | undefined;
|
|
1242
1216
|
} | {
|
|
1243
1217
|
id: string;
|
|
1244
|
-
controlType: "
|
|
1218
|
+
controlType: "longText";
|
|
1245
1219
|
title?: string | undefined;
|
|
1246
1220
|
description?: string | undefined;
|
|
1247
1221
|
icon?: string | undefined;
|
|
1248
1222
|
required?: boolean | undefined;
|
|
1223
|
+
placeholder?: string | undefined;
|
|
1224
|
+
minLength?: number | undefined;
|
|
1225
|
+
maxLength?: number | undefined;
|
|
1249
1226
|
variableName?: string | undefined;
|
|
1250
|
-
multiple?: boolean | undefined;
|
|
1251
|
-
maxFiles?: number | undefined;
|
|
1252
|
-
minFiles?: number | undefined;
|
|
1253
|
-
accept?: string[] | undefined;
|
|
1254
|
-
maxSize?: number | undefined;
|
|
1255
1227
|
} | {
|
|
1256
1228
|
id: string;
|
|
1257
|
-
controlType: "
|
|
1229
|
+
controlType: "start";
|
|
1258
1230
|
title?: string | undefined;
|
|
1259
1231
|
description?: string | undefined;
|
|
1260
1232
|
icon?: string | undefined;
|
|
1261
1233
|
required?: boolean | undefined;
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1234
|
+
label?: string | undefined;
|
|
1235
|
+
showButton?: boolean | undefined;
|
|
1236
|
+
buttonIcon?: string | undefined;
|
|
1237
|
+
showIconButton?: boolean | undefined;
|
|
1238
|
+
} | {
|
|
1239
|
+
id: string;
|
|
1240
|
+
controlType: "confirm";
|
|
1241
|
+
title?: string | undefined;
|
|
1242
|
+
description?: string | undefined;
|
|
1243
|
+
required?: boolean | undefined;
|
|
1244
|
+
label?: string | undefined;
|
|
1245
|
+
showButton?: boolean | undefined;
|
|
1246
|
+
buttonIcon?: string | undefined;
|
|
1247
|
+
link?: string | undefined;
|
|
1248
|
+
} | {
|
|
1249
|
+
id: string;
|
|
1250
|
+
controlType: "button";
|
|
1251
|
+
title?: string | undefined;
|
|
1252
|
+
description?: string | undefined;
|
|
1253
|
+
required?: boolean | undefined;
|
|
1254
|
+
label?: string | undefined;
|
|
1255
|
+
buttonIcon?: string | undefined;
|
|
1256
|
+
showIconButton?: boolean | undefined;
|
|
1257
|
+
link?: string | undefined;
|
|
1258
|
+
alignButton?: "start" | "center" | "end" | undefined;
|
|
1259
|
+
buttons?: any[] | undefined;
|
|
1260
|
+
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
1261
|
+
width?: number | undefined;
|
|
1262
|
+
enableTooltip?: boolean | undefined;
|
|
1263
|
+
fullWidthMobile?: boolean | undefined;
|
|
1265
1264
|
} | {
|
|
1266
1265
|
id: string;
|
|
1267
1266
|
controlType: "rating";
|
|
@@ -1271,14 +1270,15 @@ export declare const useFormViewerStore: () => {
|
|
|
1271
1270
|
variableName?: string | undefined;
|
|
1272
1271
|
count?: number | undefined;
|
|
1273
1272
|
})[];
|
|
1273
|
+
trigger: string;
|
|
1274
1274
|
isStart?: boolean | undefined;
|
|
1275
1275
|
isEnd?: boolean | undefined;
|
|
1276
1276
|
autoSubmit?: boolean | undefined;
|
|
1277
1277
|
confirmLabel?: string | undefined;
|
|
1278
1278
|
media?: {
|
|
1279
|
+
image?: string | undefined;
|
|
1279
1280
|
layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
|
|
1280
1281
|
brightness?: number | undefined;
|
|
1281
|
-
image?: string | undefined;
|
|
1282
1282
|
video?: string | undefined;
|
|
1283
1283
|
videoThumb?: string | undefined;
|
|
1284
1284
|
color?: string | undefined;
|
|
@@ -1286,22 +1286,12 @@ export declare const useFormViewerStore: () => {
|
|
|
1286
1286
|
blur?: number | undefined;
|
|
1287
1287
|
} | undefined;
|
|
1288
1288
|
conditions?: {
|
|
1289
|
+
trigger: string;
|
|
1289
1290
|
controlId: string;
|
|
1290
1291
|
operator: string;
|
|
1291
|
-
trigger: string;
|
|
1292
1292
|
compareValue?: string | undefined;
|
|
1293
1293
|
}[] | undefined;
|
|
1294
1294
|
theme?: {
|
|
1295
|
-
background?: {
|
|
1296
|
-
brightness?: number | undefined;
|
|
1297
|
-
image?: string | undefined;
|
|
1298
|
-
color?: string | undefined;
|
|
1299
|
-
blur?: number | undefined;
|
|
1300
|
-
opacity?: number | undefined;
|
|
1301
|
-
fit?: string | undefined;
|
|
1302
|
-
blendMode?: string | undefined;
|
|
1303
|
-
} | undefined;
|
|
1304
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
1305
1295
|
title?: {
|
|
1306
1296
|
color?: string | undefined;
|
|
1307
1297
|
fontSize?: number | undefined;
|
|
@@ -1314,6 +1304,16 @@ export declare const useFormViewerStore: () => {
|
|
|
1314
1304
|
fontWeight?: number | undefined;
|
|
1315
1305
|
fontFamily?: string | undefined;
|
|
1316
1306
|
} | undefined;
|
|
1307
|
+
background?: {
|
|
1308
|
+
image?: string | undefined;
|
|
1309
|
+
brightness?: number | undefined;
|
|
1310
|
+
color?: string | undefined;
|
|
1311
|
+
blur?: number | undefined;
|
|
1312
|
+
opacity?: number | undefined;
|
|
1313
|
+
fit?: string | undefined;
|
|
1314
|
+
blendMode?: string | undefined;
|
|
1315
|
+
} | undefined;
|
|
1316
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
1317
1317
|
align?: "start" | "center" | "end" | undefined;
|
|
1318
1318
|
listStyle?: string | undefined;
|
|
1319
1319
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|