@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
|
@@ -2,7 +2,6 @@ import { UseFormReturnType } from '@mantine/form';
|
|
|
2
2
|
import { StepsFormValues } from '../hooks/useCreateFormContext';
|
|
3
3
|
import { ControlType, OperatorType, StepData } from '../types/form';
|
|
4
4
|
export declare const getNextStep: (step: StepData, steps: StepData[], form: UseFormReturnType<StepsFormValues>) => {
|
|
5
|
-
trigger: string;
|
|
6
5
|
id: string;
|
|
7
6
|
controls: ({
|
|
8
7
|
id: string;
|
|
@@ -15,33 +14,6 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
15
14
|
minLength?: number | undefined;
|
|
16
15
|
maxLength?: number | undefined;
|
|
17
16
|
variableName?: string | undefined;
|
|
18
|
-
} | {
|
|
19
|
-
id: string;
|
|
20
|
-
controlType: "longText";
|
|
21
|
-
title?: string | undefined;
|
|
22
|
-
description?: string | undefined;
|
|
23
|
-
icon?: string | undefined;
|
|
24
|
-
required?: boolean | undefined;
|
|
25
|
-
placeholder?: string | undefined;
|
|
26
|
-
minLength?: number | undefined;
|
|
27
|
-
maxLength?: number | undefined;
|
|
28
|
-
variableName?: string | undefined;
|
|
29
|
-
} | {
|
|
30
|
-
id: string;
|
|
31
|
-
controlType: "button";
|
|
32
|
-
title?: string | undefined;
|
|
33
|
-
description?: string | undefined;
|
|
34
|
-
required?: boolean | undefined;
|
|
35
|
-
label?: string | undefined;
|
|
36
|
-
link?: string | undefined;
|
|
37
|
-
showIconButton?: boolean | undefined;
|
|
38
|
-
buttonIcon?: string | undefined;
|
|
39
|
-
alignButton?: "start" | "center" | "end" | undefined;
|
|
40
|
-
buttons?: any[] | undefined;
|
|
41
|
-
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
42
|
-
width?: number | undefined;
|
|
43
|
-
enableTooltip?: boolean | undefined;
|
|
44
|
-
fullWidthMobile?: boolean | undefined;
|
|
45
17
|
} | {
|
|
46
18
|
id: string;
|
|
47
19
|
controlType: "date";
|
|
@@ -55,72 +27,74 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
55
27
|
maxDate?: string | undefined;
|
|
56
28
|
} | {
|
|
57
29
|
id: string;
|
|
58
|
-
controlType: "
|
|
30
|
+
controlType: "number";
|
|
59
31
|
title?: string | undefined;
|
|
60
32
|
description?: string | undefined;
|
|
61
33
|
icon?: string | undefined;
|
|
62
34
|
required?: boolean | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
35
|
+
placeholder?: string | undefined;
|
|
36
|
+
variableName?: string | undefined;
|
|
37
|
+
min?: number | undefined;
|
|
38
|
+
max?: number | undefined;
|
|
67
39
|
} | {
|
|
68
40
|
id: string;
|
|
69
|
-
|
|
41
|
+
options: {
|
|
42
|
+
id: string;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
controlType: "multipleChoice";
|
|
70
46
|
title?: string | undefined;
|
|
71
47
|
description?: string | undefined;
|
|
48
|
+
icon?: string | undefined;
|
|
72
49
|
required?: boolean | undefined;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
50
|
+
variableName?: string | undefined;
|
|
51
|
+
minOptions?: number | undefined;
|
|
52
|
+
maxOptions?: number | undefined;
|
|
53
|
+
showInput?: boolean | undefined;
|
|
54
|
+
otherOption?: boolean | undefined;
|
|
77
55
|
} | {
|
|
78
56
|
id: string;
|
|
79
|
-
controlType: "
|
|
57
|
+
controlType: "slider";
|
|
80
58
|
title?: string | undefined;
|
|
81
59
|
description?: string | undefined;
|
|
82
60
|
icon?: string | undefined;
|
|
83
61
|
required?: boolean | undefined;
|
|
84
|
-
placeholder?: string | undefined;
|
|
85
62
|
variableName?: string | undefined;
|
|
86
63
|
min?: number | undefined;
|
|
87
64
|
max?: number | undefined;
|
|
88
65
|
} | {
|
|
66
|
+
id: string;
|
|
89
67
|
options: {
|
|
90
68
|
id: string;
|
|
91
69
|
label: string;
|
|
92
70
|
}[];
|
|
93
|
-
|
|
94
|
-
controlType: "choice";
|
|
71
|
+
controlType: "dropdown";
|
|
95
72
|
title?: string | undefined;
|
|
96
73
|
description?: string | undefined;
|
|
74
|
+
icon?: string | undefined;
|
|
97
75
|
required?: boolean | undefined;
|
|
76
|
+
placeholder?: string | undefined;
|
|
98
77
|
variableName?: string | undefined;
|
|
99
|
-
showInput?: boolean | undefined;
|
|
100
|
-
otherOption?: boolean | undefined;
|
|
101
78
|
} | {
|
|
79
|
+
id: string;
|
|
102
80
|
options: {
|
|
103
81
|
id: string;
|
|
104
82
|
label: string;
|
|
105
83
|
}[];
|
|
106
|
-
|
|
107
|
-
controlType: "multipleChoice";
|
|
84
|
+
controlType: "choice";
|
|
108
85
|
title?: string | undefined;
|
|
109
86
|
description?: string | undefined;
|
|
110
|
-
icon?: string | undefined;
|
|
111
87
|
required?: boolean | undefined;
|
|
112
88
|
variableName?: string | undefined;
|
|
113
89
|
showInput?: boolean | undefined;
|
|
114
90
|
otherOption?: boolean | undefined;
|
|
115
|
-
minOptions?: number | undefined;
|
|
116
|
-
maxOptions?: number | undefined;
|
|
117
91
|
} | {
|
|
92
|
+
id: string;
|
|
118
93
|
options: {
|
|
119
94
|
id: string;
|
|
120
95
|
label: string;
|
|
121
96
|
image?: string | undefined;
|
|
122
97
|
}[];
|
|
123
|
-
id: string;
|
|
124
98
|
controlType: "pictureChoice";
|
|
125
99
|
title?: string | undefined;
|
|
126
100
|
description?: string | undefined;
|
|
@@ -129,21 +103,21 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
129
103
|
variableName?: string | undefined;
|
|
130
104
|
showInput?: boolean | undefined;
|
|
131
105
|
} | {
|
|
132
|
-
options: {
|
|
133
|
-
id: string;
|
|
134
|
-
label: string;
|
|
135
|
-
}[];
|
|
136
106
|
id: string;
|
|
137
|
-
controlType: "
|
|
107
|
+
controlType: "upload";
|
|
138
108
|
title?: string | undefined;
|
|
139
109
|
description?: string | undefined;
|
|
140
110
|
icon?: string | undefined;
|
|
141
111
|
required?: boolean | undefined;
|
|
142
|
-
placeholder?: string | undefined;
|
|
143
112
|
variableName?: string | undefined;
|
|
113
|
+
multiple?: boolean | undefined;
|
|
114
|
+
maxFiles?: number | undefined;
|
|
115
|
+
minFiles?: number | undefined;
|
|
116
|
+
accept?: string[] | undefined;
|
|
117
|
+
maxSize?: number | undefined;
|
|
144
118
|
} | {
|
|
145
119
|
id: string;
|
|
146
|
-
controlType: "
|
|
120
|
+
controlType: "location";
|
|
147
121
|
title?: string | undefined;
|
|
148
122
|
description?: string | undefined;
|
|
149
123
|
icon?: string | undefined;
|
|
@@ -152,7 +126,7 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
152
126
|
variableName?: string | undefined;
|
|
153
127
|
} | {
|
|
154
128
|
id: string;
|
|
155
|
-
controlType: "
|
|
129
|
+
controlType: "phone";
|
|
156
130
|
title?: string | undefined;
|
|
157
131
|
description?: string | undefined;
|
|
158
132
|
icon?: string | undefined;
|
|
@@ -161,7 +135,7 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
161
135
|
variableName?: string | undefined;
|
|
162
136
|
} | {
|
|
163
137
|
id: string;
|
|
164
|
-
controlType: "
|
|
138
|
+
controlType: "email";
|
|
165
139
|
title?: string | undefined;
|
|
166
140
|
description?: string | undefined;
|
|
167
141
|
icon?: string | undefined;
|
|
@@ -170,37 +144,62 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
170
144
|
variableName?: string | undefined;
|
|
171
145
|
} | {
|
|
172
146
|
id: string;
|
|
173
|
-
controlType: "
|
|
147
|
+
controlType: "yesNo";
|
|
174
148
|
title?: string | undefined;
|
|
175
149
|
description?: string | undefined;
|
|
176
150
|
icon?: string | undefined;
|
|
177
151
|
required?: boolean | undefined;
|
|
178
152
|
variableName?: string | undefined;
|
|
179
|
-
|
|
180
|
-
|
|
153
|
+
yesLabel?: string | undefined;
|
|
154
|
+
noLabel?: string | undefined;
|
|
181
155
|
} | {
|
|
182
156
|
id: string;
|
|
183
|
-
controlType: "
|
|
157
|
+
controlType: "longText";
|
|
184
158
|
title?: string | undefined;
|
|
185
159
|
description?: string | undefined;
|
|
186
160
|
icon?: string | undefined;
|
|
187
161
|
required?: boolean | undefined;
|
|
162
|
+
placeholder?: string | undefined;
|
|
163
|
+
minLength?: number | undefined;
|
|
164
|
+
maxLength?: number | undefined;
|
|
188
165
|
variableName?: string | undefined;
|
|
189
|
-
multiple?: boolean | undefined;
|
|
190
|
-
maxFiles?: number | undefined;
|
|
191
|
-
minFiles?: number | undefined;
|
|
192
|
-
accept?: string[] | undefined;
|
|
193
|
-
maxSize?: number | undefined;
|
|
194
166
|
} | {
|
|
195
167
|
id: string;
|
|
196
|
-
controlType: "
|
|
168
|
+
controlType: "start";
|
|
197
169
|
title?: string | undefined;
|
|
198
170
|
description?: string | undefined;
|
|
199
171
|
icon?: string | undefined;
|
|
200
172
|
required?: boolean | undefined;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
173
|
+
label?: string | undefined;
|
|
174
|
+
showButton?: boolean | undefined;
|
|
175
|
+
buttonIcon?: string | undefined;
|
|
176
|
+
showIconButton?: boolean | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
id: string;
|
|
179
|
+
controlType: "confirm";
|
|
180
|
+
title?: string | undefined;
|
|
181
|
+
description?: string | undefined;
|
|
182
|
+
required?: boolean | undefined;
|
|
183
|
+
label?: string | undefined;
|
|
184
|
+
showButton?: boolean | undefined;
|
|
185
|
+
buttonIcon?: string | undefined;
|
|
186
|
+
link?: string | undefined;
|
|
187
|
+
} | {
|
|
188
|
+
id: string;
|
|
189
|
+
controlType: "button";
|
|
190
|
+
title?: string | undefined;
|
|
191
|
+
description?: string | undefined;
|
|
192
|
+
required?: boolean | undefined;
|
|
193
|
+
label?: string | undefined;
|
|
194
|
+
buttonIcon?: string | undefined;
|
|
195
|
+
showIconButton?: boolean | undefined;
|
|
196
|
+
link?: string | undefined;
|
|
197
|
+
alignButton?: "start" | "center" | "end" | undefined;
|
|
198
|
+
buttons?: any[] | undefined;
|
|
199
|
+
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
200
|
+
width?: number | undefined;
|
|
201
|
+
enableTooltip?: boolean | undefined;
|
|
202
|
+
fullWidthMobile?: boolean | undefined;
|
|
204
203
|
} | {
|
|
205
204
|
id: string;
|
|
206
205
|
controlType: "rating";
|
|
@@ -210,14 +209,15 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
210
209
|
variableName?: string | undefined;
|
|
211
210
|
count?: number | undefined;
|
|
212
211
|
})[];
|
|
212
|
+
trigger: string;
|
|
213
213
|
isStart?: boolean | undefined;
|
|
214
214
|
isEnd?: boolean | undefined;
|
|
215
215
|
autoSubmit?: boolean | undefined;
|
|
216
216
|
confirmLabel?: string | undefined;
|
|
217
217
|
media?: {
|
|
218
|
+
image?: string | undefined;
|
|
218
219
|
layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
|
|
219
220
|
brightness?: number | undefined;
|
|
220
|
-
image?: string | undefined;
|
|
221
221
|
video?: string | undefined;
|
|
222
222
|
videoThumb?: string | undefined;
|
|
223
223
|
color?: string | undefined;
|
|
@@ -225,22 +225,12 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
225
225
|
blur?: number | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
conditions?: {
|
|
228
|
+
trigger: string;
|
|
228
229
|
controlId: string;
|
|
229
230
|
operator: string;
|
|
230
|
-
trigger: string;
|
|
231
231
|
compareValue?: string | undefined;
|
|
232
232
|
}[] | undefined;
|
|
233
233
|
theme?: {
|
|
234
|
-
background?: {
|
|
235
|
-
brightness?: number | undefined;
|
|
236
|
-
image?: string | undefined;
|
|
237
|
-
color?: string | undefined;
|
|
238
|
-
blur?: number | undefined;
|
|
239
|
-
opacity?: number | undefined;
|
|
240
|
-
fit?: string | undefined;
|
|
241
|
-
blendMode?: string | undefined;
|
|
242
|
-
} | undefined;
|
|
243
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
244
234
|
title?: {
|
|
245
235
|
color?: string | undefined;
|
|
246
236
|
fontSize?: number | undefined;
|
|
@@ -253,6 +243,16 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
253
243
|
fontWeight?: number | undefined;
|
|
254
244
|
fontFamily?: string | undefined;
|
|
255
245
|
} | undefined;
|
|
246
|
+
background?: {
|
|
247
|
+
image?: string | undefined;
|
|
248
|
+
brightness?: number | undefined;
|
|
249
|
+
color?: string | undefined;
|
|
250
|
+
blur?: number | undefined;
|
|
251
|
+
opacity?: number | undefined;
|
|
252
|
+
fit?: string | undefined;
|
|
253
|
+
blendMode?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
256
256
|
align?: "start" | "center" | "end" | undefined;
|
|
257
257
|
listStyle?: string | undefined;
|
|
258
258
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StepData, ThemeData } from '../types/form';
|
|
2
2
|
export declare const mergeTheme: (theme: Partial<ThemeData>, updatedTheme: Partial<ThemeData>) => Partial<ThemeData>;
|
|
3
3
|
export declare const sortSteps: (steps: StepData[]) => {
|
|
4
|
-
trigger: string;
|
|
5
4
|
id: string;
|
|
6
5
|
controls: ({
|
|
7
6
|
id: string;
|
|
@@ -14,33 +13,6 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
14
13
|
minLength?: number | undefined;
|
|
15
14
|
maxLength?: number | undefined;
|
|
16
15
|
variableName?: string | undefined;
|
|
17
|
-
} | {
|
|
18
|
-
id: string;
|
|
19
|
-
controlType: "longText";
|
|
20
|
-
title?: string | undefined;
|
|
21
|
-
description?: string | undefined;
|
|
22
|
-
icon?: string | undefined;
|
|
23
|
-
required?: boolean | undefined;
|
|
24
|
-
placeholder?: string | undefined;
|
|
25
|
-
minLength?: number | undefined;
|
|
26
|
-
maxLength?: number | undefined;
|
|
27
|
-
variableName?: string | undefined;
|
|
28
|
-
} | {
|
|
29
|
-
id: string;
|
|
30
|
-
controlType: "button";
|
|
31
|
-
title?: string | undefined;
|
|
32
|
-
description?: string | undefined;
|
|
33
|
-
required?: boolean | undefined;
|
|
34
|
-
label?: string | undefined;
|
|
35
|
-
link?: string | undefined;
|
|
36
|
-
showIconButton?: boolean | undefined;
|
|
37
|
-
buttonIcon?: string | undefined;
|
|
38
|
-
alignButton?: "start" | "center" | "end" | undefined;
|
|
39
|
-
buttons?: any[] | undefined;
|
|
40
|
-
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
41
|
-
width?: number | undefined;
|
|
42
|
-
enableTooltip?: boolean | undefined;
|
|
43
|
-
fullWidthMobile?: boolean | undefined;
|
|
44
16
|
} | {
|
|
45
17
|
id: string;
|
|
46
18
|
controlType: "date";
|
|
@@ -54,72 +26,74 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
54
26
|
maxDate?: string | undefined;
|
|
55
27
|
} | {
|
|
56
28
|
id: string;
|
|
57
|
-
controlType: "
|
|
29
|
+
controlType: "number";
|
|
58
30
|
title?: string | undefined;
|
|
59
31
|
description?: string | undefined;
|
|
60
32
|
icon?: string | undefined;
|
|
61
33
|
required?: boolean | undefined;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
34
|
+
placeholder?: string | undefined;
|
|
35
|
+
variableName?: string | undefined;
|
|
36
|
+
min?: number | undefined;
|
|
37
|
+
max?: number | undefined;
|
|
66
38
|
} | {
|
|
67
39
|
id: string;
|
|
68
|
-
|
|
40
|
+
options: {
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
}[];
|
|
44
|
+
controlType: "multipleChoice";
|
|
69
45
|
title?: string | undefined;
|
|
70
46
|
description?: string | undefined;
|
|
47
|
+
icon?: string | undefined;
|
|
71
48
|
required?: boolean | undefined;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
49
|
+
variableName?: string | undefined;
|
|
50
|
+
minOptions?: number | undefined;
|
|
51
|
+
maxOptions?: number | undefined;
|
|
52
|
+
showInput?: boolean | undefined;
|
|
53
|
+
otherOption?: boolean | undefined;
|
|
76
54
|
} | {
|
|
77
55
|
id: string;
|
|
78
|
-
controlType: "
|
|
56
|
+
controlType: "slider";
|
|
79
57
|
title?: string | undefined;
|
|
80
58
|
description?: string | undefined;
|
|
81
59
|
icon?: string | undefined;
|
|
82
60
|
required?: boolean | undefined;
|
|
83
|
-
placeholder?: string | undefined;
|
|
84
61
|
variableName?: string | undefined;
|
|
85
62
|
min?: number | undefined;
|
|
86
63
|
max?: number | undefined;
|
|
87
64
|
} | {
|
|
65
|
+
id: string;
|
|
88
66
|
options: {
|
|
89
67
|
id: string;
|
|
90
68
|
label: string;
|
|
91
69
|
}[];
|
|
92
|
-
|
|
93
|
-
controlType: "choice";
|
|
70
|
+
controlType: "dropdown";
|
|
94
71
|
title?: string | undefined;
|
|
95
72
|
description?: string | undefined;
|
|
73
|
+
icon?: string | undefined;
|
|
96
74
|
required?: boolean | undefined;
|
|
75
|
+
placeholder?: string | undefined;
|
|
97
76
|
variableName?: string | undefined;
|
|
98
|
-
showInput?: boolean | undefined;
|
|
99
|
-
otherOption?: boolean | undefined;
|
|
100
77
|
} | {
|
|
78
|
+
id: string;
|
|
101
79
|
options: {
|
|
102
80
|
id: string;
|
|
103
81
|
label: string;
|
|
104
82
|
}[];
|
|
105
|
-
|
|
106
|
-
controlType: "multipleChoice";
|
|
83
|
+
controlType: "choice";
|
|
107
84
|
title?: string | undefined;
|
|
108
85
|
description?: string | undefined;
|
|
109
|
-
icon?: string | undefined;
|
|
110
86
|
required?: boolean | undefined;
|
|
111
87
|
variableName?: string | undefined;
|
|
112
88
|
showInput?: boolean | undefined;
|
|
113
89
|
otherOption?: boolean | undefined;
|
|
114
|
-
minOptions?: number | undefined;
|
|
115
|
-
maxOptions?: number | undefined;
|
|
116
90
|
} | {
|
|
91
|
+
id: string;
|
|
117
92
|
options: {
|
|
118
93
|
id: string;
|
|
119
94
|
label: string;
|
|
120
95
|
image?: string | undefined;
|
|
121
96
|
}[];
|
|
122
|
-
id: string;
|
|
123
97
|
controlType: "pictureChoice";
|
|
124
98
|
title?: string | undefined;
|
|
125
99
|
description?: string | undefined;
|
|
@@ -128,21 +102,21 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
128
102
|
variableName?: string | undefined;
|
|
129
103
|
showInput?: boolean | undefined;
|
|
130
104
|
} | {
|
|
131
|
-
options: {
|
|
132
|
-
id: string;
|
|
133
|
-
label: string;
|
|
134
|
-
}[];
|
|
135
105
|
id: string;
|
|
136
|
-
controlType: "
|
|
106
|
+
controlType: "upload";
|
|
137
107
|
title?: string | undefined;
|
|
138
108
|
description?: string | undefined;
|
|
139
109
|
icon?: string | undefined;
|
|
140
110
|
required?: boolean | undefined;
|
|
141
|
-
placeholder?: string | undefined;
|
|
142
111
|
variableName?: string | undefined;
|
|
112
|
+
multiple?: boolean | undefined;
|
|
113
|
+
maxFiles?: number | undefined;
|
|
114
|
+
minFiles?: number | undefined;
|
|
115
|
+
accept?: string[] | undefined;
|
|
116
|
+
maxSize?: number | undefined;
|
|
143
117
|
} | {
|
|
144
118
|
id: string;
|
|
145
|
-
controlType: "
|
|
119
|
+
controlType: "location";
|
|
146
120
|
title?: string | undefined;
|
|
147
121
|
description?: string | undefined;
|
|
148
122
|
icon?: string | undefined;
|
|
@@ -151,7 +125,7 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
151
125
|
variableName?: string | undefined;
|
|
152
126
|
} | {
|
|
153
127
|
id: string;
|
|
154
|
-
controlType: "
|
|
128
|
+
controlType: "phone";
|
|
155
129
|
title?: string | undefined;
|
|
156
130
|
description?: string | undefined;
|
|
157
131
|
icon?: string | undefined;
|
|
@@ -160,7 +134,7 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
160
134
|
variableName?: string | undefined;
|
|
161
135
|
} | {
|
|
162
136
|
id: string;
|
|
163
|
-
controlType: "
|
|
137
|
+
controlType: "email";
|
|
164
138
|
title?: string | undefined;
|
|
165
139
|
description?: string | undefined;
|
|
166
140
|
icon?: string | undefined;
|
|
@@ -169,37 +143,62 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
169
143
|
variableName?: string | undefined;
|
|
170
144
|
} | {
|
|
171
145
|
id: string;
|
|
172
|
-
controlType: "
|
|
146
|
+
controlType: "yesNo";
|
|
173
147
|
title?: string | undefined;
|
|
174
148
|
description?: string | undefined;
|
|
175
149
|
icon?: string | undefined;
|
|
176
150
|
required?: boolean | undefined;
|
|
177
151
|
variableName?: string | undefined;
|
|
178
|
-
|
|
179
|
-
|
|
152
|
+
yesLabel?: string | undefined;
|
|
153
|
+
noLabel?: string | undefined;
|
|
180
154
|
} | {
|
|
181
155
|
id: string;
|
|
182
|
-
controlType: "
|
|
156
|
+
controlType: "longText";
|
|
183
157
|
title?: string | undefined;
|
|
184
158
|
description?: string | undefined;
|
|
185
159
|
icon?: string | undefined;
|
|
186
160
|
required?: boolean | undefined;
|
|
161
|
+
placeholder?: string | undefined;
|
|
162
|
+
minLength?: number | undefined;
|
|
163
|
+
maxLength?: number | undefined;
|
|
187
164
|
variableName?: string | undefined;
|
|
188
|
-
multiple?: boolean | undefined;
|
|
189
|
-
maxFiles?: number | undefined;
|
|
190
|
-
minFiles?: number | undefined;
|
|
191
|
-
accept?: string[] | undefined;
|
|
192
|
-
maxSize?: number | undefined;
|
|
193
165
|
} | {
|
|
194
166
|
id: string;
|
|
195
|
-
controlType: "
|
|
167
|
+
controlType: "start";
|
|
196
168
|
title?: string | undefined;
|
|
197
169
|
description?: string | undefined;
|
|
198
170
|
icon?: string | undefined;
|
|
199
171
|
required?: boolean | undefined;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
172
|
+
label?: string | undefined;
|
|
173
|
+
showButton?: boolean | undefined;
|
|
174
|
+
buttonIcon?: string | undefined;
|
|
175
|
+
showIconButton?: boolean | undefined;
|
|
176
|
+
} | {
|
|
177
|
+
id: string;
|
|
178
|
+
controlType: "confirm";
|
|
179
|
+
title?: string | undefined;
|
|
180
|
+
description?: string | undefined;
|
|
181
|
+
required?: boolean | undefined;
|
|
182
|
+
label?: string | undefined;
|
|
183
|
+
showButton?: boolean | undefined;
|
|
184
|
+
buttonIcon?: string | undefined;
|
|
185
|
+
link?: string | undefined;
|
|
186
|
+
} | {
|
|
187
|
+
id: string;
|
|
188
|
+
controlType: "button";
|
|
189
|
+
title?: string | undefined;
|
|
190
|
+
description?: string | undefined;
|
|
191
|
+
required?: boolean | undefined;
|
|
192
|
+
label?: string | undefined;
|
|
193
|
+
buttonIcon?: string | undefined;
|
|
194
|
+
showIconButton?: boolean | undefined;
|
|
195
|
+
link?: string | undefined;
|
|
196
|
+
alignButton?: "start" | "center" | "end" | undefined;
|
|
197
|
+
buttons?: any[] | undefined;
|
|
198
|
+
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
199
|
+
width?: number | undefined;
|
|
200
|
+
enableTooltip?: boolean | undefined;
|
|
201
|
+
fullWidthMobile?: boolean | undefined;
|
|
203
202
|
} | {
|
|
204
203
|
id: string;
|
|
205
204
|
controlType: "rating";
|
|
@@ -209,14 +208,15 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
209
208
|
variableName?: string | undefined;
|
|
210
209
|
count?: number | undefined;
|
|
211
210
|
})[];
|
|
211
|
+
trigger: string;
|
|
212
212
|
isStart?: boolean | undefined;
|
|
213
213
|
isEnd?: boolean | undefined;
|
|
214
214
|
autoSubmit?: boolean | undefined;
|
|
215
215
|
confirmLabel?: string | undefined;
|
|
216
216
|
media?: {
|
|
217
|
+
image?: string | undefined;
|
|
217
218
|
layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
|
|
218
219
|
brightness?: number | undefined;
|
|
219
|
-
image?: string | undefined;
|
|
220
220
|
video?: string | undefined;
|
|
221
221
|
videoThumb?: string | undefined;
|
|
222
222
|
color?: string | undefined;
|
|
@@ -224,22 +224,12 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
224
224
|
blur?: number | undefined;
|
|
225
225
|
} | undefined;
|
|
226
226
|
conditions?: {
|
|
227
|
+
trigger: string;
|
|
227
228
|
controlId: string;
|
|
228
229
|
operator: string;
|
|
229
|
-
trigger: string;
|
|
230
230
|
compareValue?: string | undefined;
|
|
231
231
|
}[] | undefined;
|
|
232
232
|
theme?: {
|
|
233
|
-
background?: {
|
|
234
|
-
brightness?: number | undefined;
|
|
235
|
-
image?: string | undefined;
|
|
236
|
-
color?: string | undefined;
|
|
237
|
-
blur?: number | undefined;
|
|
238
|
-
opacity?: number | undefined;
|
|
239
|
-
fit?: string | undefined;
|
|
240
|
-
blendMode?: string | undefined;
|
|
241
|
-
} | undefined;
|
|
242
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
243
233
|
title?: {
|
|
244
234
|
color?: string | undefined;
|
|
245
235
|
fontSize?: number | undefined;
|
|
@@ -252,6 +242,16 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
252
242
|
fontWeight?: number | undefined;
|
|
253
243
|
fontFamily?: string | undefined;
|
|
254
244
|
} | undefined;
|
|
245
|
+
background?: {
|
|
246
|
+
image?: string | undefined;
|
|
247
|
+
brightness?: number | undefined;
|
|
248
|
+
color?: string | undefined;
|
|
249
|
+
blur?: number | undefined;
|
|
250
|
+
opacity?: number | undefined;
|
|
251
|
+
fit?: string | undefined;
|
|
252
|
+
blendMode?: string | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
255
255
|
align?: "start" | "center" | "end" | undefined;
|
|
256
256
|
listStyle?: string | undefined;
|
|
257
257
|
borderRadius?: "sm" | "md" | "lg" | undefined;
|