@flozy/editor 11.0.5 → 11.0.6
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/Editor/ChatEditor.js +16 -17
- package/dist/Editor/CommonEditor.js +28 -141
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +11 -39
- package/dist/Editor/Elements/AI/PopoverAIInput.js +3 -11
- package/dist/Editor/Elements/AI/Styles.js +0 -1
- package/dist/Editor/Elements/Accordion/Accordion.js +22 -28
- package/dist/Editor/Elements/Accordion/AccordionButton.js +3 -12
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/Attachments/Attachments.js +11 -153
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +3 -8
- package/dist/Editor/Elements/Button/EditorButton.js +7 -23
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -61
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
- package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +454 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +55 -134
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SelectV1.js +8 -7
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +3 -8
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +1 -1
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +1 -1
- package/dist/Editor/Elements/Embed/Embed.js +43 -36
- package/dist/Editor/Elements/Embed/Image.js +23 -236
- package/dist/Editor/Elements/Embed/Video.js +15 -245
- package/dist/Editor/Elements/Form/Form.js +10 -16
- package/dist/Editor/Elements/Form/FormField.js +1 -1
- package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
- package/dist/Editor/Elements/Form/Workflow/constant.js +1 -25
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +74 -31
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +5 -9
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -3
- package/dist/Editor/Elements/FreeGrid/Options/More.js +7 -7
- package/dist/Editor/Elements/FreeGrid/styles.js +0 -15
- package/dist/Editor/Elements/Grid/GridItem.js +1 -1
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -3
- package/dist/Editor/Elements/Signature/SignaturePopup.js +6 -24
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/Table.js +4 -5
- package/dist/Editor/Elements/Table/TableCell.js +3 -10
- package/dist/Editor/Elements/Title/title.js +11 -10
- package/dist/Editor/Elements/TopBanner/TopBanner.js +2 -4
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +3 -5
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +1 -2
- package/dist/Editor/Styles/EditorStyles.js +5 -23
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +29 -33
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +1 -2
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +2 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +23 -25
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +7 -25
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +42 -167
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +8 -24
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +1 -2
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +10 -70
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +14 -73
- package/dist/Editor/Toolbar/PopupTool/index.js +4 -7
- package/dist/Editor/Toolbar/toolbarGroups.js +10 -56
- package/dist/Editor/common/ColorPickerButton.js +16 -38
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +0 -4
- package/dist/Editor/common/Icon.js +0 -28
- package/dist/Editor/common/ImageSelector/ImageSelector.js +7 -45
- package/dist/Editor/common/ImageSelector/Options/Upload.js +11 -26
- package/dist/Editor/common/ImageSelector/Styles.js +9 -3
- package/dist/Editor/common/LinkSettings/NavComponents.js +2 -6
- package/dist/Editor/common/MentionsPopup/index.js +1 -9
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +1 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +2 -4
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +7 -20
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +1 -9
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +7 -20
- package/dist/Editor/common/RnD/GuideLines/styles.js +1 -1
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +11 -28
- package/dist/Editor/common/RnD/Utils/index.js +1 -3
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +63 -52
- package/dist/Editor/common/RnD/VirtualElement/helper.js +130 -320
- package/dist/Editor/common/RnD/VirtualElement/styles.js +0 -22
- package/dist/Editor/common/RnD/index.js +14 -61
- package/dist/Editor/common/Shorthands/elements.js +4 -62
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +2 -4
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +0 -4
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +0 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +2 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +2 -12
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +7 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +8 -16
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +10 -36
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +7 -16
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +0 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +0 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +7 -15
- package/dist/Editor/common/StyleBuilder/formStyle.js +13 -19
- package/dist/Editor/common/StyleBuilder/index.js +4 -8
- package/dist/Editor/common/Uploader.js +17 -125
- package/dist/Editor/common/iconslist.js +0 -21
- package/dist/Editor/commonStyle.js +63 -136
- package/dist/Editor/helper/index.js +2 -10
- package/dist/Editor/helper/theme.js +2 -203
- package/dist/Editor/hooks/useMouseMove.js +3 -9
- package/dist/Editor/hooks/useTable.js +1 -62
- package/dist/Editor/plugins/withEmbeds.js +1 -12
- package/dist/Editor/plugins/withHTML.js +3 -58
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/service/fileupload.js +0 -70
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +40 -192
- package/dist/Editor/utils/accordion.js +39 -67
- package/dist/Editor/utils/button.js +17 -1
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/events.js +89 -94
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/formfield.js +2 -2
- package/dist/Editor/utils/helper.js +23 -100
- package/dist/Editor/utils/insertAppHeader.js +4 -8
- package/package.json +4 -4
- package/dist/Editor/Elements/Attachments/AttachmentStyles.js +0 -16
- package/dist/Editor/Elements/FreeGrid/helper.js +0 -194
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -439
- package/dist/Editor/assets/svg/BackIcon.js +0 -18
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -293
- package/dist/Editor/common/CustomColorPicker/index.js +0 -130
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog2/index.js +0 -94
- package/dist/Editor/common/CustomDialog2/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -43
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/common/StyleBuilder/fieldTypes/embedUpload.js +0 -115
- package/dist/Editor/common/UploaderWithProgress.js +0 -183
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/hooks/useThemeValues.js +0 -63
- package/dist/Editor/theme/index.js +0 -149
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -82
- package/dist/Editor/themeSettings/buttons/index.js +0 -300
- package/dist/Editor/themeSettings/buttons/style.js +0 -23
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -240
- package/dist/Editor/themeSettings/fonts/style.js +0 -62
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -380
- package/dist/Editor/themeSettings/style.js +0 -299
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -355
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -202
- package/dist/Editor/themeSettingsAI/style.js +0 -332
@@ -109,7 +109,7 @@ const Form = props => {
|
|
109
109
|
if ((readOnly || test) && formEle && formEle?.current) {
|
110
110
|
const formData = new FormData(formEle?.current);
|
111
111
|
setLoading(true);
|
112
|
-
|
112
|
+
const response = [];
|
113
113
|
let user_email = "";
|
114
114
|
let meta_data = [];
|
115
115
|
const validations = [];
|
@@ -153,21 +153,15 @@ const Form = props => {
|
|
153
153
|
rules: rule?.length > 0 && rule
|
154
154
|
});
|
155
155
|
}
|
156
|
-
const
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
placeholder: fieldData?.placeholder || "",
|
166
|
-
form_name: formName,
|
167
|
-
tagName: tagName,
|
168
|
-
uid: fieldData?.uid || formName
|
169
|
-
});
|
170
|
-
}
|
156
|
+
const placeholder = fieldData?.name === pair[0] ? fieldData?.placeholder : "";
|
157
|
+
response?.push({
|
158
|
+
fieldKey: pair[0],
|
159
|
+
[pair[0]]: pair[1],
|
160
|
+
placeholder: placeholder,
|
161
|
+
form_name: formName,
|
162
|
+
tagName: tagName,
|
163
|
+
uid: fieldData?.uid
|
164
|
+
});
|
171
165
|
}
|
172
166
|
let params = {
|
173
167
|
page_id: page_id,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import { Transforms } from "slate";
|
2
|
+
import { Transforms, Node } from "slate";
|
3
3
|
import { useSlateStatic, ReactEditor } from "slate-react";
|
4
4
|
import { IconButton, Tooltip, Grid, useTheme } from "@mui/material";
|
5
5
|
import FormElements from "./FormElements";
|
@@ -9,20 +9,20 @@ const FormStyles = theme => ({
|
|
9
9
|
color: "#94A3B8"
|
10
10
|
},
|
11
11
|
bodyTextArea: {
|
12
|
-
|
13
|
-
padding:
|
14
|
-
|
15
|
-
outline:
|
16
|
-
border:
|
12
|
+
'& .mini-editor-cls': {
|
13
|
+
padding: '12px',
|
14
|
+
'&:focus-visible': {
|
15
|
+
outline: 'none',
|
16
|
+
border: 'none'
|
17
17
|
}
|
18
18
|
},
|
19
19
|
"& .editorWorkflow": {
|
20
|
-
minHeight:
|
21
|
-
padding:
|
20
|
+
minHeight: '130px',
|
21
|
+
padding: '12px',
|
22
22
|
paddingBottom: 0,
|
23
|
-
|
24
|
-
outline:
|
25
|
-
border:
|
23
|
+
'&:focus-visible': {
|
24
|
+
outline: 'none',
|
25
|
+
border: 'none'
|
26
26
|
}
|
27
27
|
}
|
28
28
|
},
|
@@ -105,7 +105,7 @@ const FormStyles = theme => ({
|
|
105
105
|
padding: "4px 22px",
|
106
106
|
textTransform: "none",
|
107
107
|
border: "1px solid #D8DDE1",
|
108
|
-
minWidth:
|
108
|
+
minWidth: '126px',
|
109
109
|
"& svg": {
|
110
110
|
"& path": {
|
111
111
|
stroke: "#64748B"
|
@@ -169,19 +169,17 @@ const FormStyles = theme => ({
|
|
169
169
|
}
|
170
170
|
},
|
171
171
|
colorButtonSingle: {
|
172
|
-
border: "1.5px solid #DCE4EC !important",
|
173
172
|
"&.active": {
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
outline: "2px solid #2563EB"
|
173
|
+
"&:before": {
|
174
|
+
content: '" "',
|
175
|
+
position: "absolute",
|
176
|
+
top: "-5px",
|
177
|
+
left: "-5px",
|
178
|
+
width: "calc(100% + 4px)",
|
179
|
+
height: "calc(100% + 4px)",
|
180
|
+
border: "3px solid blue",
|
181
|
+
borderRadius: "50%"
|
182
|
+
}
|
185
183
|
}
|
186
184
|
},
|
187
185
|
colorButtonsInner: {
|
@@ -251,7 +249,7 @@ const FormStyles = theme => ({
|
|
251
249
|
}
|
252
250
|
},
|
253
251
|
root: {
|
254
|
-
padding:
|
252
|
+
padding: '10px'
|
255
253
|
}
|
256
254
|
});
|
257
255
|
export default FormStyles;
|
@@ -1,27 +1,3 @@
|
|
1
1
|
export const minutes = [30, 35, 40, 45, 50, 55];
|
2
2
|
export const hours = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];
|
3
|
-
export const days = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
|
4
|
-
export const allowedFormat = {
|
5
|
-
Document: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.rtf",
|
6
|
-
Image: "image/*",
|
7
|
-
Video: ".mp4,.webm,.ogg,.mov,.avi,.mkv",
|
8
|
-
Embed: "*"
|
9
|
-
};
|
10
|
-
export const maxSizeMap = {
|
11
|
-
Image: 25 * 1024 * 1024,
|
12
|
-
// Test -> 5 * 1024 * 1024 -> 5MB
|
13
|
-
Video: 1024 * 1024 * 1024,
|
14
|
-
Document: 25 * 1024 * 1024,
|
15
|
-
Embed: Infinity
|
16
|
-
};
|
17
|
-
export const allowedTypes = {
|
18
|
-
Document: ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/plain", "application/rtf"],
|
19
|
-
Image: ["image/jpeg", "image/png", "image/gif", "image/webp", "image/svg+xml"],
|
20
|
-
Video: ["video/mp4", "video/webm", "video/ogg", "video/quicktime", "video/x-msvideo", "video/x-matroska"],
|
21
|
-
Embed: ["*"]
|
22
|
-
};
|
23
|
-
export const extensionMap = {
|
24
|
-
Video: ["mp4", "webm", "ogg", "mov", "avi", "mkv"],
|
25
|
-
Image: ["jpg", "jpeg", "png", "gif", "webp", "svg"],
|
26
|
-
Document: ["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "rtf"]
|
27
|
-
};
|
3
|
+
export const days = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
|
@@ -22,7 +22,6 @@ import { DEFAULT_TABLE_NODE } from "../../utils/table";
|
|
22
22
|
import itemOptions from "./Options/sectionItemOptions";
|
23
23
|
import { getBreakPointsValue, groupByBreakpoint } from "../../helper/theme";
|
24
24
|
import { useDebouncedCallback } from "use-debounce";
|
25
|
-
import { getElementValues } from "./helper";
|
26
25
|
import updateFormName from "../../utils/updateFormName";
|
27
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
28
27
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -184,11 +183,6 @@ const FreeGrid = props => {
|
|
184
183
|
const handleAddElementClick = type => () => {
|
185
184
|
const isEmpty = isEmptySection();
|
186
185
|
const insertAt = isEmpty ? [...path, 0] : [...path, childrenCountRef.current];
|
187
|
-
const {
|
188
|
-
elValues,
|
189
|
-
sectionVal
|
190
|
-
} = getElementValues(type, element?.children, breakpoint);
|
191
|
-
const id = crypto?.randomUUID();
|
192
186
|
switch (type) {
|
193
187
|
case "addText":
|
194
188
|
Transforms.insertNodes(editor, [{
|
@@ -200,7 +194,12 @@ const FreeGrid = props => {
|
|
200
194
|
text: "Text"
|
201
195
|
}]
|
202
196
|
}],
|
203
|
-
|
197
|
+
gridArea: "3 / 1 / 4 / 2",
|
198
|
+
left: 50,
|
199
|
+
marginTop: 0,
|
200
|
+
top: 0,
|
201
|
+
width: 170,
|
202
|
+
height: 30
|
204
203
|
}], {
|
205
204
|
at: [...insertAt]
|
206
205
|
});
|
@@ -218,10 +217,29 @@ const FreeGrid = props => {
|
|
218
217
|
linkType: "webAddress"
|
219
218
|
},
|
220
219
|
iconPosition: "start",
|
220
|
+
bgColor: "#2563EB",
|
221
|
+
textColor: "#FFF",
|
222
|
+
borderRadius: {
|
223
|
+
topLeft: 30,
|
224
|
+
topRight: 30,
|
225
|
+
bottomLeft: 30,
|
226
|
+
bottomRight: 30
|
227
|
+
},
|
228
|
+
bannerSpacing: {
|
229
|
+
left: 12,
|
230
|
+
top: 12,
|
231
|
+
right: 12,
|
232
|
+
bottom: 12
|
233
|
+
},
|
221
234
|
textAlign: "center",
|
222
235
|
label: "Get Started"
|
223
236
|
}],
|
224
|
-
|
237
|
+
gridArea: "3 / 1 / 4 / 2",
|
238
|
+
left: 50,
|
239
|
+
marginTop: 0,
|
240
|
+
top: 0,
|
241
|
+
width: 143,
|
242
|
+
height: 50
|
225
243
|
}], {
|
226
244
|
at: [...insertAt]
|
227
245
|
});
|
@@ -241,7 +259,14 @@ const FreeGrid = props => {
|
|
241
259
|
date: ""
|
242
260
|
}
|
243
261
|
}],
|
244
|
-
|
262
|
+
gridArea: "3 / 1 / 4 / 2",
|
263
|
+
left: 50,
|
264
|
+
marginTop: 0,
|
265
|
+
top: 0,
|
266
|
+
width: 217,
|
267
|
+
height: 173,
|
268
|
+
width_xs: 217,
|
269
|
+
height_xs: 173
|
245
270
|
}], {
|
246
271
|
at: [...insertAt]
|
247
272
|
});
|
@@ -257,11 +282,14 @@ const FreeGrid = props => {
|
|
257
282
|
images: [],
|
258
283
|
children: [{
|
259
284
|
text: ""
|
260
|
-
}]
|
261
|
-
fromFreeGrid: true,
|
262
|
-
uniqueId: id
|
285
|
+
}]
|
263
286
|
}],
|
264
|
-
|
287
|
+
gridArea: "3 / 1 / 4 / 2",
|
288
|
+
left: 50,
|
289
|
+
marginTop: 0,
|
290
|
+
top: 0,
|
291
|
+
width: 170,
|
292
|
+
height: 80
|
265
293
|
}], {
|
266
294
|
at: [...insertAt]
|
267
295
|
});
|
@@ -273,7 +301,8 @@ const FreeGrid = props => {
|
|
273
301
|
alt: "",
|
274
302
|
images: []
|
275
303
|
}), {
|
276
|
-
|
304
|
+
height: 370,
|
305
|
+
width: 650
|
277
306
|
})
|
278
307
|
}], {
|
279
308
|
at: [...insertAt]
|
@@ -284,7 +313,8 @@ const FreeGrid = props => {
|
|
284
313
|
...insertFreeGridItem("table", {
|
285
314
|
...DEFAULT_TABLE_NODE()
|
286
315
|
}, {
|
287
|
-
|
316
|
+
height: 150,
|
317
|
+
width: 400
|
288
318
|
})
|
289
319
|
}], {
|
290
320
|
at: [...insertAt]
|
@@ -303,7 +333,12 @@ const FreeGrid = props => {
|
|
303
333
|
isEncoded: true,
|
304
334
|
isSanitized: true
|
305
335
|
}],
|
306
|
-
|
336
|
+
gridArea: "3 / 1 / 4 / 2",
|
337
|
+
left: 50,
|
338
|
+
marginTop: 0,
|
339
|
+
top: 0,
|
340
|
+
width: 400,
|
341
|
+
height: 300
|
307
342
|
}], {
|
308
343
|
at: [...insertAt]
|
309
344
|
});
|
@@ -315,9 +350,7 @@ const FreeGrid = props => {
|
|
315
350
|
children: [{
|
316
351
|
text: ""
|
317
352
|
}]
|
318
|
-
}, {
|
319
|
-
...(elValues || {})
|
320
|
-
}, "freegridBox")
|
353
|
+
}, {}, "freegridBox")
|
321
354
|
}], {
|
322
355
|
at: [...insertAt]
|
323
356
|
});
|
@@ -327,7 +360,8 @@ const FreeGrid = props => {
|
|
327
360
|
...insertFreeGridItem("form", {
|
328
361
|
...FORM_NODE()
|
329
362
|
}, {
|
330
|
-
|
363
|
+
height: 92,
|
364
|
+
width: 400
|
331
365
|
})
|
332
366
|
}], {
|
333
367
|
at: [...insertAt]
|
@@ -340,7 +374,8 @@ const FreeGrid = props => {
|
|
340
374
|
menus: null
|
341
375
|
})
|
342
376
|
}, {
|
343
|
-
|
377
|
+
height: 60,
|
378
|
+
width: 400
|
344
379
|
})
|
345
380
|
}], {
|
346
381
|
at: [...insertAt]
|
@@ -356,21 +391,29 @@ const FreeGrid = props => {
|
|
356
391
|
text: ""
|
357
392
|
}]
|
358
393
|
}],
|
359
|
-
|
394
|
+
gridArea: "3 / 1 / 4 / 2",
|
395
|
+
left: 50,
|
396
|
+
marginTop: 0,
|
397
|
+
top: 0,
|
398
|
+
width: 170,
|
399
|
+
height: 30
|
360
400
|
}], {
|
361
401
|
at: [...insertAt]
|
362
402
|
});
|
363
403
|
break;
|
364
404
|
default:
|
365
405
|
}
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
406
|
+
if (breakpoint === "lg") {
|
407
|
+
setSelectedElement({});
|
408
|
+
|
409
|
+
// auto align in mobile
|
410
|
+
Transforms.setNodes(editor, {
|
411
|
+
xs_updatedOn: null,
|
412
|
+
updated_at: new Date().getTime()
|
413
|
+
}, {
|
414
|
+
at: path
|
415
|
+
});
|
416
|
+
}
|
374
417
|
count.current = count.current + 1;
|
375
418
|
|
376
419
|
// focus on newly added element
|
@@ -476,7 +519,7 @@ const FreeGrid = props => {
|
|
476
519
|
style: {
|
477
520
|
position: "relative",
|
478
521
|
"--height": `${height}px`,
|
479
|
-
display:
|
522
|
+
display: 'block' //for test purpose
|
480
523
|
},
|
481
524
|
|
482
525
|
dataSets: {
|
@@ -8,7 +8,7 @@ import { onDropItem, ROW_HEIGHT } from "../../common/RnD/Utils/gridDropItem";
|
|
8
8
|
import useBreakpoints from "../../hooks/useBreakpoints";
|
9
9
|
import { breakpointValues, formatBreakpointValues } from "./breakpointConstants";
|
10
10
|
import { useEditorContext } from "../../hooks/useMouseMove";
|
11
|
-
import { getBreakPointsValue
|
11
|
+
import { getBreakPointsValue } from "../../helper/theme";
|
12
12
|
import focusOnNewItem from "../../helper/RnD/focusOnNewItem";
|
13
13
|
import { bringItemToFB } from "../../helper";
|
14
14
|
import itemOptions from "./Options/sectionItemOptions";
|
@@ -160,11 +160,6 @@ const FreeGridBox = props => {
|
|
160
160
|
const isBoxHeader = useMemo(() => {
|
161
161
|
return element?.children?.some(c => c.childType === "appHeader" && !c.xs_updatedOn);
|
162
162
|
}, [element]);
|
163
|
-
const boxSp = groupByBreakpoint({
|
164
|
-
borderRadius: {
|
165
|
-
...getBreakPointsValue(sectionBorderRadius || {}, null, "overrideBorderRadius", true)
|
166
|
-
}
|
167
|
-
}, theme);
|
168
163
|
return /*#__PURE__*/_jsx(RnD, {
|
169
164
|
id: `freegrid_box_item_${path.join("|")}_${updated_at}_${breakpoint}`,
|
170
165
|
className: `freegrid-item path-${path.length} breakpoint-${breakpoint} freegrid-box_${path.join("_")}`,
|
@@ -197,8 +192,7 @@ const FreeGridBox = props => {
|
|
197
192
|
"data-margin-top-xs": marginTop_xs,
|
198
193
|
"data-height-xs": height_xs,
|
199
194
|
"data-width-xs": width_xs,
|
200
|
-
"data-left-xs": left_xs
|
201
|
-
"data-width-lg": width
|
195
|
+
"data-left-xs": left_xs
|
202
196
|
},
|
203
197
|
gridArea: gridArea,
|
204
198
|
onChange: onChange,
|
@@ -232,7 +226,9 @@ const FreeGridBox = props => {
|
|
232
226
|
"--rows": `repeat(${repeatTimes}, ${ROW_HEIGHT}px)`
|
233
227
|
},
|
234
228
|
sx: {
|
235
|
-
|
229
|
+
borderRadius: {
|
230
|
+
...getBreakPointsValue(sectionBorderRadius || {}, null, "overrideBorderRadius", true)
|
231
|
+
},
|
236
232
|
background: sectionBgColor,
|
237
233
|
backgroundImage: sectionBackgroundImage ? `url('${sectionBackgroundImage}')` : "",
|
238
234
|
borderColor: borderColor || "transparent",
|
@@ -296,8 +296,7 @@ const FreeGridItem = props => {
|
|
296
296
|
"data-margin-top-xs": marginTop_xs,
|
297
297
|
"data-height-xs": height_xs,
|
298
298
|
"data-width-xs": width_xs,
|
299
|
-
"data-left-xs": left_xs
|
300
|
-
"data-width-lg": width
|
299
|
+
"data-left-xs": left_xs
|
301
300
|
},
|
302
301
|
defaultStyle: {
|
303
302
|
height: `${height}px`,
|
@@ -322,7 +321,6 @@ const FreeGridItem = props => {
|
|
322
321
|
customProps: customProps,
|
323
322
|
translation: translation,
|
324
323
|
xsHidden: xsHidden,
|
325
|
-
disableClick: element?.children?.[0]?.isUploading && (element?.childType === "image" || element?.childType === "video"),
|
326
324
|
children: /*#__PURE__*/_jsxs(Box, {
|
327
325
|
component: "div",
|
328
326
|
...attributes,
|
@@ -5,8 +5,8 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
const More = props => {
|
6
6
|
const {
|
7
7
|
handleClick,
|
8
|
-
|
9
|
-
|
8
|
+
breakpoint,
|
9
|
+
translation
|
10
10
|
} = props;
|
11
11
|
return /*#__PURE__*/_jsx(Box, {
|
12
12
|
children: /*#__PURE__*/_jsxs(List, {
|
@@ -19,15 +19,15 @@ const More = props => {
|
|
19
19
|
className: "item-wrapper",
|
20
20
|
onClick: handleClick("duplicateSection"),
|
21
21
|
children: translation?.translation("Duplicate Section")
|
22
|
+
}), /*#__PURE__*/_jsx(ListItemButton, {
|
23
|
+
className: "item-wrapper",
|
24
|
+
onClick: handleClick("deleteSection"),
|
25
|
+
children: "Delete Section"
|
22
26
|
}), breakpoint === "xs" ? /*#__PURE__*/_jsx(ListItemButton, {
|
23
27
|
className: "item-wrapper",
|
24
28
|
onClick: handleClick("forceAutoAlignment"),
|
25
29
|
children: "Force Auto Alignment"
|
26
|
-
}) : null
|
27
|
-
className: "item-wrapper",
|
28
|
-
onClick: handleClick("deleteSection"),
|
29
|
-
children: "Delete Section"
|
30
|
-
})]
|
30
|
+
}) : null]
|
31
31
|
})
|
32
32
|
});
|
33
33
|
};
|
@@ -247,9 +247,6 @@ const useFreeGridStyles = ({
|
|
247
247
|
},
|
248
248
|
"& > .simple-text": {
|
249
249
|
display: "none"
|
250
|
-
},
|
251
|
-
"& > .edt-paragraphs": {
|
252
|
-
display: "none"
|
253
250
|
}
|
254
251
|
},
|
255
252
|
"& .fgi_type_form": {
|
@@ -312,12 +309,6 @@ const useFreeGridStyles = ({
|
|
312
309
|
"& .toolbtn.remove": {
|
313
310
|
display: "none"
|
314
311
|
}
|
315
|
-
},
|
316
|
-
"& .edt-headings": {
|
317
|
-
margin: "0px"
|
318
|
-
},
|
319
|
-
"& .edt-paragraphs": {
|
320
|
-
margin: "0px"
|
321
312
|
}
|
322
313
|
},
|
323
314
|
"& .fgi_type_embedScript": {
|
@@ -359,12 +350,6 @@ const useFreeGridStyles = ({
|
|
359
350
|
"& .fgi_type_text": {
|
360
351
|
"& .edt-headings": {
|
361
352
|
margin: "0px"
|
362
|
-
},
|
363
|
-
"& .edt-paragraphs": {
|
364
|
-
margin: "0px"
|
365
|
-
},
|
366
|
-
"& blockquote": {
|
367
|
-
margin: "0px !important"
|
368
353
|
}
|
369
354
|
},
|
370
355
|
/** element toolbar hide */
|
@@ -292,7 +292,7 @@ const GridItem = props => {
|
|
292
292
|
...getBRProps,
|
293
293
|
display: "flex",
|
294
294
|
flexDirection: flexDirection || "column",
|
295
|
-
background: bgColor,
|
295
|
+
background: bgColor || "transparent",
|
296
296
|
borderColor: getBorderColor(),
|
297
297
|
borderWidth: borderWidth || "1px",
|
298
298
|
borderStyle: borderStyle || "solid",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
2
|
import { signedTextFonts } from "../../../utils/font";
|
3
3
|
import { Grid, Button, TextField, InputAdornment, IconButton, Typography } from "@mui/material";
|
4
|
-
import ClearRoundedIcon from
|
4
|
+
import ClearRoundedIcon from '@mui/icons-material/ClearRounded';
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
7
|
const TypeSignature = props => {
|
@@ -80,8 +80,7 @@ const TypeSignature = props => {
|
|
80
80
|
children: /*#__PURE__*/_jsx(ClearRoundedIcon, {})
|
81
81
|
})
|
82
82
|
})
|
83
|
-
}
|
84
|
-
autoComplete: "typeName"
|
83
|
+
}
|
85
84
|
})
|
86
85
|
})
|
87
86
|
})
|
@@ -92,17 +92,9 @@ const SignaturePopup = props => {
|
|
92
92
|
};
|
93
93
|
const onChange = e => {
|
94
94
|
e?.stopPropagation();
|
95
|
-
const {
|
96
|
-
name,
|
97
|
-
value
|
98
|
-
} = e.target;
|
99
|
-
const fieldMap = {
|
100
|
-
name: "signedBy",
|
101
|
-
email: "signedByEmail"
|
102
|
-
};
|
103
95
|
setSignedData({
|
104
96
|
...signedData,
|
105
|
-
[
|
97
|
+
[e.target.name]: e.target.value
|
106
98
|
});
|
107
99
|
};
|
108
100
|
const onBrushSize = val => () => {
|
@@ -319,19 +311,15 @@ const SignaturePopup = props => {
|
|
319
311
|
xs: 12,
|
320
312
|
children: /*#__PURE__*/_jsx(TextField, {
|
321
313
|
fullWidth: true,
|
322
|
-
id: "
|
323
|
-
name: "
|
314
|
+
id: "signedBy",
|
315
|
+
name: "signedBy",
|
324
316
|
placeholder: translation("Enter Name"),
|
325
317
|
value: signedData.signedBy || ""
|
326
318
|
// defaultValue={defaultName || ""}
|
327
319
|
,
|
328
320
|
size: "small",
|
329
321
|
onChange: onChange,
|
330
|
-
sx: classes.signaturePopUpNameField
|
331
|
-
autoComplete: "name",
|
332
|
-
inputProps: {
|
333
|
-
autoComplete: "name"
|
334
|
-
}
|
322
|
+
sx: classes.signaturePopUpNameField
|
335
323
|
})
|
336
324
|
})]
|
337
325
|
}), /*#__PURE__*/_jsxs(Grid, {
|
@@ -451,20 +439,14 @@ const SignaturePopup = props => {
|
|
451
439
|
item: true,
|
452
440
|
children: /*#__PURE__*/_jsx(TextField, {
|
453
441
|
fullWidth: true,
|
454
|
-
id: "
|
455
|
-
name: "
|
456
|
-
type: "email",
|
442
|
+
id: "signedByEmail",
|
443
|
+
name: "signedByEmail",
|
457
444
|
placeholder: translation("Enter Email"),
|
458
445
|
size: "small",
|
459
446
|
onChange: onChange,
|
460
447
|
sx: classes.signaturePopUpNameField,
|
461
448
|
value: signedData.signedByEmail || ""
|
462
449
|
// defaultValue={defaultEmail || ""}
|
463
|
-
,
|
464
|
-
autoComplete: "email",
|
465
|
-
inputProps: {
|
466
|
-
autoComplete: "email"
|
467
|
-
}
|
468
450
|
})
|
469
451
|
})]
|
470
452
|
})]
|
@@ -35,8 +35,8 @@ const SimpleTextStyle = ({
|
|
35
35
|
height: "24px",
|
36
36
|
overflow: "hidden",
|
37
37
|
fontSize: "14px",
|
38
|
-
display:
|
39
|
-
alignItems:
|
38
|
+
display: 'inline-flex',
|
39
|
+
alignItems: 'center',
|
40
40
|
"& .bg-pad-sl": {
|
41
41
|
padding: "2px 4px 2px 4px",
|
42
42
|
background: "transparent",
|
@@ -291,8 +291,7 @@ const Table = props => {
|
|
291
291
|
dragRowBtnCls,
|
292
292
|
tablePath: path,
|
293
293
|
openSetttings,
|
294
|
-
exandTools
|
295
|
-
tableNode: element
|
294
|
+
exandTools
|
296
295
|
},
|
297
296
|
children: [/*#__PURE__*/_jsxs("div", {
|
298
297
|
style: {
|
@@ -308,7 +307,7 @@ const Table = props => {
|
|
308
307
|
onScroll: handleScroll,
|
309
308
|
onMouseOver: onMouseOver,
|
310
309
|
onMouseLeave: onMouseLeave,
|
311
|
-
className: "custom-scroll",
|
310
|
+
className: !hideTools.includes("add_column") ? "custom-scroll" : '',
|
312
311
|
children: [/*#__PURE__*/_jsx(TableComp, {
|
313
312
|
className: readOnly ? "readOnly" : "",
|
314
313
|
sx: {
|
@@ -346,8 +345,8 @@ const Table = props => {
|
|
346
345
|
handleAction: handleAction,
|
347
346
|
exandTools: exandTools,
|
348
347
|
openSetttings: openSetttings,
|
349
|
-
|
350
|
-
|
348
|
+
translation: translation,
|
349
|
+
hideTools: hideTools
|
351
350
|
}), /*#__PURE__*/_jsx(MoreTableSettings, {
|
352
351
|
exandTools: exandTools,
|
353
352
|
handleAction: handleAction,
|