@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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TFunction } from 'i18next';
|
|
2
2
|
import { StepData } from '../types/form';
|
|
3
3
|
export declare const getFirstStep: (steps: StepData[]) => {
|
|
4
|
-
trigger: string;
|
|
5
4
|
id: string;
|
|
6
5
|
controls: ({
|
|
7
6
|
id: string;
|
|
@@ -14,33 +13,6 @@ export declare const getFirstStep: (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 getFirstStep: (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 getFirstStep: (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 getFirstStep: (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 getFirstStep: (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 getFirstStep: (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 getFirstStep: (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 getFirstStep: (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 getFirstStep: (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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/helpers/steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/helpers/steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,YAAY,GAAI,OAAO,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACD,CAAC;AAE9C,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,GAAI,GAAG,SAAS,KAAG,QAkBlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,GAAG,SAAS,KAAG,QAoBhD,CAAC;AAEF,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,eAAO,MAAM,wBAAwB,0BAA0B,CAAC;AAChE,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,yBAAyB,GAAI,GAAG,SAAS,WACE,CAAC;AAEzD,eAAO,MAAM,WAAW,cAAiC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,kBAAkB,MAAM,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { randomId as o } from "@mantine/hooks";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { brand as r } from "../../../config/brand.js";
|
|
3
|
+
const c = (t) => t.find((n) => n.isStart) || t.at(0), T = "__end_step__", s = "__start_step__", I = (t) => ({
|
|
4
|
+
id: s,
|
|
4
5
|
trigger: "",
|
|
5
6
|
isStart: !0,
|
|
6
7
|
theme: {
|
|
@@ -15,7 +16,7 @@ const _ = (t) => t.find((n) => n.isStart) || t.at(0), i = "__end_step__", r = "_
|
|
|
15
16
|
buttonIcon: "i=player-play"
|
|
16
17
|
}
|
|
17
18
|
]
|
|
18
|
-
}),
|
|
19
|
+
}), E = (t) => ({
|
|
19
20
|
id: e(),
|
|
20
21
|
trigger: "",
|
|
21
22
|
isEnd: !0,
|
|
@@ -27,29 +28,29 @@ const _ = (t) => t.find((n) => n.isStart) || t.at(0), i = "__end_step__", r = "_
|
|
|
27
28
|
controlType: "confirm",
|
|
28
29
|
showButton: !0,
|
|
29
30
|
buttonIcon: "i=square-check",
|
|
30
|
-
link:
|
|
31
|
+
link: r.websiteUrl
|
|
31
32
|
}
|
|
32
33
|
],
|
|
33
34
|
theme: {
|
|
34
35
|
align: "center"
|
|
35
36
|
}
|
|
36
|
-
}),
|
|
37
|
-
`), e = () => o().split("-")[1],
|
|
37
|
+
}), D = 0, a = 1, d = 9999, p = 99, l = "CREATE_CONDITION_FORM", O = "EDIT_CONDITION_FORM", S = 20, N = (t) => [1, 2, 3].map((n) => t("option") + " " + n).join(`
|
|
38
|
+
`), e = () => o().split("-")[1], u = 100, A = 100;
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
l as CREATE_CONDITION_FORM_ID,
|
|
41
|
+
T as DEFAULT_END_STEP_ID,
|
|
42
|
+
d as DEFAULT_MAX,
|
|
43
|
+
u as DEFAULT_MEDIA_BRIGHTNESS,
|
|
44
|
+
A as DEFAULT_MEDIA_SIZE,
|
|
45
|
+
D as DEFAULT_MIN,
|
|
46
|
+
a as DEFAULT_OPTIONS_MIN,
|
|
47
|
+
p as DEFAULT_OPTION_MAX_LENGTH,
|
|
48
|
+
s as DEFAULT_START_STEP_ID,
|
|
49
|
+
O as EDIT_CONDITION_FORM_ID,
|
|
50
|
+
S as MAX_OPTIONS_COUNT,
|
|
51
|
+
N as getDefaultDropdownOptions,
|
|
52
|
+
E as getDefaultEndStep,
|
|
53
|
+
I as getDefaultStartStep,
|
|
54
|
+
c as getFirstStep,
|
|
54
55
|
e as getRandomId
|
|
55
56
|
};
|
|
@@ -9,33 +9,6 @@ export declare const useActiveControl: () => {
|
|
|
9
9
|
minLength?: number | undefined;
|
|
10
10
|
maxLength?: number | undefined;
|
|
11
11
|
variableName?: string | undefined;
|
|
12
|
-
} | {
|
|
13
|
-
id: string;
|
|
14
|
-
controlType: "longText";
|
|
15
|
-
title?: string | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
icon?: string | undefined;
|
|
18
|
-
required?: boolean | undefined;
|
|
19
|
-
placeholder?: string | undefined;
|
|
20
|
-
minLength?: number | undefined;
|
|
21
|
-
maxLength?: number | undefined;
|
|
22
|
-
variableName?: string | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
id: string;
|
|
25
|
-
controlType: "button";
|
|
26
|
-
title?: string | undefined;
|
|
27
|
-
description?: string | undefined;
|
|
28
|
-
required?: boolean | undefined;
|
|
29
|
-
label?: string | undefined;
|
|
30
|
-
link?: string | undefined;
|
|
31
|
-
showIconButton?: boolean | undefined;
|
|
32
|
-
buttonIcon?: string | undefined;
|
|
33
|
-
alignButton?: "start" | "center" | "end" | undefined;
|
|
34
|
-
buttons?: any[] | undefined;
|
|
35
|
-
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
36
|
-
width?: number | undefined;
|
|
37
|
-
enableTooltip?: boolean | undefined;
|
|
38
|
-
fullWidthMobile?: boolean | undefined;
|
|
39
12
|
} | {
|
|
40
13
|
id: string;
|
|
41
14
|
controlType: "date";
|
|
@@ -49,72 +22,74 @@ export declare const useActiveControl: () => {
|
|
|
49
22
|
maxDate?: string | undefined;
|
|
50
23
|
} | {
|
|
51
24
|
id: string;
|
|
52
|
-
controlType: "
|
|
25
|
+
controlType: "number";
|
|
53
26
|
title?: string | undefined;
|
|
54
27
|
description?: string | undefined;
|
|
55
28
|
icon?: string | undefined;
|
|
56
29
|
required?: boolean | undefined;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
30
|
+
placeholder?: string | undefined;
|
|
31
|
+
variableName?: string | undefined;
|
|
32
|
+
min?: number | undefined;
|
|
33
|
+
max?: number | undefined;
|
|
61
34
|
} | {
|
|
62
35
|
id: string;
|
|
63
|
-
|
|
36
|
+
options: {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}[];
|
|
40
|
+
controlType: "multipleChoice";
|
|
64
41
|
title?: string | undefined;
|
|
65
42
|
description?: string | undefined;
|
|
43
|
+
icon?: string | undefined;
|
|
66
44
|
required?: boolean | undefined;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
45
|
+
variableName?: string | undefined;
|
|
46
|
+
minOptions?: number | undefined;
|
|
47
|
+
maxOptions?: number | undefined;
|
|
48
|
+
showInput?: boolean | undefined;
|
|
49
|
+
otherOption?: boolean | undefined;
|
|
71
50
|
} | {
|
|
72
51
|
id: string;
|
|
73
|
-
controlType: "
|
|
52
|
+
controlType: "slider";
|
|
74
53
|
title?: string | undefined;
|
|
75
54
|
description?: string | undefined;
|
|
76
55
|
icon?: string | undefined;
|
|
77
56
|
required?: boolean | undefined;
|
|
78
|
-
placeholder?: string | undefined;
|
|
79
57
|
variableName?: string | undefined;
|
|
80
58
|
min?: number | undefined;
|
|
81
59
|
max?: number | undefined;
|
|
82
60
|
} | {
|
|
61
|
+
id: string;
|
|
83
62
|
options: {
|
|
84
63
|
id: string;
|
|
85
64
|
label: string;
|
|
86
65
|
}[];
|
|
87
|
-
|
|
88
|
-
controlType: "choice";
|
|
66
|
+
controlType: "dropdown";
|
|
89
67
|
title?: string | undefined;
|
|
90
68
|
description?: string | undefined;
|
|
69
|
+
icon?: string | undefined;
|
|
91
70
|
required?: boolean | undefined;
|
|
71
|
+
placeholder?: string | undefined;
|
|
92
72
|
variableName?: string | undefined;
|
|
93
|
-
showInput?: boolean | undefined;
|
|
94
|
-
otherOption?: boolean | undefined;
|
|
95
73
|
} | {
|
|
74
|
+
id: string;
|
|
96
75
|
options: {
|
|
97
76
|
id: string;
|
|
98
77
|
label: string;
|
|
99
78
|
}[];
|
|
100
|
-
|
|
101
|
-
controlType: "multipleChoice";
|
|
79
|
+
controlType: "choice";
|
|
102
80
|
title?: string | undefined;
|
|
103
81
|
description?: string | undefined;
|
|
104
|
-
icon?: string | undefined;
|
|
105
82
|
required?: boolean | undefined;
|
|
106
83
|
variableName?: string | undefined;
|
|
107
84
|
showInput?: boolean | undefined;
|
|
108
85
|
otherOption?: boolean | undefined;
|
|
109
|
-
minOptions?: number | undefined;
|
|
110
|
-
maxOptions?: number | undefined;
|
|
111
86
|
} | {
|
|
87
|
+
id: string;
|
|
112
88
|
options: {
|
|
113
89
|
id: string;
|
|
114
90
|
label: string;
|
|
115
91
|
image?: string | undefined;
|
|
116
92
|
}[];
|
|
117
|
-
id: string;
|
|
118
93
|
controlType: "pictureChoice";
|
|
119
94
|
title?: string | undefined;
|
|
120
95
|
description?: string | undefined;
|
|
@@ -123,21 +98,21 @@ export declare const useActiveControl: () => {
|
|
|
123
98
|
variableName?: string | undefined;
|
|
124
99
|
showInput?: boolean | undefined;
|
|
125
100
|
} | {
|
|
126
|
-
options: {
|
|
127
|
-
id: string;
|
|
128
|
-
label: string;
|
|
129
|
-
}[];
|
|
130
101
|
id: string;
|
|
131
|
-
controlType: "
|
|
102
|
+
controlType: "upload";
|
|
132
103
|
title?: string | undefined;
|
|
133
104
|
description?: string | undefined;
|
|
134
105
|
icon?: string | undefined;
|
|
135
106
|
required?: boolean | undefined;
|
|
136
|
-
placeholder?: string | undefined;
|
|
137
107
|
variableName?: string | undefined;
|
|
108
|
+
multiple?: boolean | undefined;
|
|
109
|
+
maxFiles?: number | undefined;
|
|
110
|
+
minFiles?: number | undefined;
|
|
111
|
+
accept?: string[] | undefined;
|
|
112
|
+
maxSize?: number | undefined;
|
|
138
113
|
} | {
|
|
139
114
|
id: string;
|
|
140
|
-
controlType: "
|
|
115
|
+
controlType: "location";
|
|
141
116
|
title?: string | undefined;
|
|
142
117
|
description?: string | undefined;
|
|
143
118
|
icon?: string | undefined;
|
|
@@ -146,7 +121,7 @@ export declare const useActiveControl: () => {
|
|
|
146
121
|
variableName?: string | undefined;
|
|
147
122
|
} | {
|
|
148
123
|
id: string;
|
|
149
|
-
controlType: "
|
|
124
|
+
controlType: "phone";
|
|
150
125
|
title?: string | undefined;
|
|
151
126
|
description?: string | undefined;
|
|
152
127
|
icon?: string | undefined;
|
|
@@ -155,7 +130,7 @@ export declare const useActiveControl: () => {
|
|
|
155
130
|
variableName?: string | undefined;
|
|
156
131
|
} | {
|
|
157
132
|
id: string;
|
|
158
|
-
controlType: "
|
|
133
|
+
controlType: "email";
|
|
159
134
|
title?: string | undefined;
|
|
160
135
|
description?: string | undefined;
|
|
161
136
|
icon?: string | undefined;
|
|
@@ -164,37 +139,62 @@ export declare const useActiveControl: () => {
|
|
|
164
139
|
variableName?: string | undefined;
|
|
165
140
|
} | {
|
|
166
141
|
id: string;
|
|
167
|
-
controlType: "
|
|
142
|
+
controlType: "yesNo";
|
|
168
143
|
title?: string | undefined;
|
|
169
144
|
description?: string | undefined;
|
|
170
145
|
icon?: string | undefined;
|
|
171
146
|
required?: boolean | undefined;
|
|
172
147
|
variableName?: string | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
148
|
+
yesLabel?: string | undefined;
|
|
149
|
+
noLabel?: string | undefined;
|
|
175
150
|
} | {
|
|
176
151
|
id: string;
|
|
177
|
-
controlType: "
|
|
152
|
+
controlType: "longText";
|
|
178
153
|
title?: string | undefined;
|
|
179
154
|
description?: string | undefined;
|
|
180
155
|
icon?: string | undefined;
|
|
181
156
|
required?: boolean | undefined;
|
|
157
|
+
placeholder?: string | undefined;
|
|
158
|
+
minLength?: number | undefined;
|
|
159
|
+
maxLength?: number | undefined;
|
|
182
160
|
variableName?: string | undefined;
|
|
183
|
-
multiple?: boolean | undefined;
|
|
184
|
-
maxFiles?: number | undefined;
|
|
185
|
-
minFiles?: number | undefined;
|
|
186
|
-
accept?: string[] | undefined;
|
|
187
|
-
maxSize?: number | undefined;
|
|
188
161
|
} | {
|
|
189
162
|
id: string;
|
|
190
|
-
controlType: "
|
|
163
|
+
controlType: "start";
|
|
191
164
|
title?: string | undefined;
|
|
192
165
|
description?: string | undefined;
|
|
193
166
|
icon?: string | undefined;
|
|
194
167
|
required?: boolean | undefined;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
168
|
+
label?: string | undefined;
|
|
169
|
+
showButton?: boolean | undefined;
|
|
170
|
+
buttonIcon?: string | undefined;
|
|
171
|
+
showIconButton?: boolean | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
id: string;
|
|
174
|
+
controlType: "confirm";
|
|
175
|
+
title?: string | undefined;
|
|
176
|
+
description?: string | undefined;
|
|
177
|
+
required?: boolean | undefined;
|
|
178
|
+
label?: string | undefined;
|
|
179
|
+
showButton?: boolean | undefined;
|
|
180
|
+
buttonIcon?: string | undefined;
|
|
181
|
+
link?: string | undefined;
|
|
182
|
+
} | {
|
|
183
|
+
id: string;
|
|
184
|
+
controlType: "button";
|
|
185
|
+
title?: string | undefined;
|
|
186
|
+
description?: string | undefined;
|
|
187
|
+
required?: boolean | undefined;
|
|
188
|
+
label?: string | undefined;
|
|
189
|
+
buttonIcon?: string | undefined;
|
|
190
|
+
showIconButton?: boolean | undefined;
|
|
191
|
+
link?: string | undefined;
|
|
192
|
+
alignButton?: "start" | "center" | "end" | undefined;
|
|
193
|
+
buttons?: any[] | undefined;
|
|
194
|
+
orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
195
|
+
width?: number | undefined;
|
|
196
|
+
enableTooltip?: boolean | undefined;
|
|
197
|
+
fullWidthMobile?: boolean | undefined;
|
|
198
198
|
} | {
|
|
199
199
|
id: string;
|
|
200
200
|
controlType: "rating";
|