@flozy/editor 10.3.9 → 10.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor/CommonEditor.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +7 -20
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +1 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -11
- package/dist/Editor/Elements/Embed/Image.js +2 -3
- package/dist/Editor/Elements/EmbedScript/Code.js +2 -14
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +28 -57
- package/dist/Editor/Elements/Form/Form.js +168 -181
- package/dist/Editor/Elements/Form/FormElements/FormText.js +6 -23
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +2 -3
- package/dist/Editor/Elements/Form/FormField.js +4 -10
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -5
- package/dist/Editor/Elements/FreeGrid/Options/More.js +1 -1
- package/dist/Editor/Elements/FreeGrid/styles.js +7 -61
- package/dist/Editor/Elements/List/CheckList.js +2 -3
- package/dist/Editor/Elements/Search/SearchAttachment.js +9 -40
- package/dist/Editor/Elements/Search/SearchButton.js +8 -9
- package/dist/Editor/Elements/Search/SearchList.js +7 -9
- package/dist/Editor/Elements/SimpleText/index.js +1 -6
- package/dist/Editor/Elements/Table/TableCell.js +3 -7
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +18 -43
- package/dist/Editor/assets/svg/SettingsIcon.js +0 -1
- package/dist/Editor/common/Icon.js +1 -3
- package/dist/Editor/common/LinkSettings/NavComponents.js +8 -34
- package/dist/Editor/common/LinkSettings/index.js +69 -85
- package/dist/Editor/common/LinkSettings/style.js +30 -245
- package/dist/Editor/common/RnD/ElementOptions/Actions.js +14 -13
- package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +0 -1
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -2
- package/dist/Editor/common/RnD/ElementOptions/styles.js +1 -28
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +4 -4
- package/dist/Editor/common/RnD/ElementSettings/styles.js +12 -147
- package/dist/Editor/common/RnD/OptionsPopup/index.js +5 -8
- package/dist/Editor/common/RnD/OptionsPopup/style.js +19 -121
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +6 -0
- package/dist/Editor/common/Select/index.js +0 -2
- package/dist/Editor/common/Shorthands/elements.js +11 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +6 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -13
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
- package/dist/Editor/common/iconListV2.js +6 -101
- package/dist/Editor/common/iconslist.js +0 -3
- package/dist/Editor/commonStyle.js +1 -70
- package/dist/Editor/hooks/useMouseMove.js +5 -2
- package/dist/Editor/utils/SlateUtilityFunctions.js +10 -12
- package/dist/Editor/utils/form.js +4 -4
- package/dist/Editor/utils/formfield.js +2 -8
- package/package.json +1 -1
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -452
- package/dist/Editor/Elements/EmbedScript/styles.js +0 -89
- package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
- package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
- package/dist/Editor/common/SnackBar/index.js +0 -43
@@ -15,9 +15,6 @@ import Workflow from "./Workflow";
|
|
15
15
|
import { getTRBLBreakPoints, getBreakPointsValue, groupByBreakpoint } from "../../helper/theme";
|
16
16
|
import { validation } from "./FormElements/validations";
|
17
17
|
import Icon from "../../common/Icon";
|
18
|
-
import useCommonStyle from "../../commonStyle";
|
19
|
-
import { useEditorContext } from "../../hooks/useMouseMove";
|
20
|
-
import { UploadIconCloud } from "../../common/iconListV2";
|
21
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
22
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
23
20
|
const Form = props => {
|
@@ -79,10 +76,6 @@ const Form = props => {
|
|
79
76
|
const [formHeight, setFormHeight] = useState();
|
80
77
|
const [formWidth, setFormWidth] = useState();
|
81
78
|
const path = ReactEditor.findPath(editor, element);
|
82
|
-
const {
|
83
|
-
theme: appTheme
|
84
|
-
} = useEditorContext();
|
85
|
-
const classes = useCommonStyle(appTheme);
|
86
79
|
useEffect(() => {
|
87
80
|
setFormHeight(formEle?.current?.clientHeight);
|
88
81
|
setFormWidth(formEle?.current?.clientWidth);
|
@@ -388,194 +381,188 @@ const Form = props => {
|
|
388
381
|
}
|
389
382
|
}, theme)
|
390
383
|
};
|
391
|
-
return /*#__PURE__*/
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
384
|
+
return /*#__PURE__*/_jsxs("div", {
|
385
|
+
...attributes,
|
386
|
+
className: "form-wrapper element-root",
|
387
|
+
style: {
|
388
|
+
border: !readOnly ? "none" : "none",
|
389
|
+
padding: "10px",
|
390
|
+
width: "100%"
|
391
|
+
},
|
392
|
+
onMouseOver: onMouseOver,
|
393
|
+
onMouseLeave: onMouseLeave,
|
394
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
395
|
+
component: "form",
|
396
|
+
id: `${formName}`,
|
397
|
+
onSubmit: handleSubmit,
|
398
|
+
sx: {
|
399
|
+
color: textColor || "#FFF",
|
400
|
+
borderColor: borderColor || "transparent",
|
401
|
+
borderWidth: borderWidth || "1px",
|
402
|
+
display: submittedSuccessfully ? "none" : "block",
|
403
|
+
borderStyle: borderStyle || "solid",
|
404
|
+
background: bgColor || "transparent",
|
405
|
+
position: "relative",
|
406
|
+
lineHeight: 1.43,
|
407
|
+
...formSX
|
400
408
|
},
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
ref: formEle,
|
419
|
-
children: [/*#__PURE__*/_jsx(Grid, {
|
420
|
-
className: "form-grid",
|
421
|
-
item: true,
|
422
|
-
xs: 12,
|
423
|
-
children: /*#__PURE__*/_jsxs(Grid, {
|
424
|
-
container: true,
|
425
|
-
spacing: 2,
|
426
|
-
sx: {
|
427
|
-
justifyContent: alignment?.horizantal || "start"
|
409
|
+
ref: formEle,
|
410
|
+
children: [/*#__PURE__*/_jsx(Grid, {
|
411
|
+
className: "form-grid",
|
412
|
+
item: true,
|
413
|
+
xs: 12,
|
414
|
+
children: /*#__PURE__*/_jsxs(Grid, {
|
415
|
+
container: true,
|
416
|
+
spacing: 2,
|
417
|
+
sx: {
|
418
|
+
justifyContent: alignment?.horizantal || "start"
|
419
|
+
},
|
420
|
+
children: [/*#__PURE__*/_jsx("legend", {
|
421
|
+
style: {
|
422
|
+
fontSize: `${textSize}px` || "inherit",
|
423
|
+
fontFamily: fontFamily || "PoppinsRegular",
|
424
|
+
textAlign: textAlign || "left",
|
425
|
+
width: "100%"
|
428
426
|
},
|
429
|
-
children:
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
427
|
+
children: formTitle
|
428
|
+
}), children, /*#__PURE__*/_jsx(Grid, {
|
429
|
+
item: true,
|
430
|
+
...buttonProps?.grid,
|
431
|
+
className: "form-btn-wrpr",
|
432
|
+
contentEditable: false,
|
433
|
+
style: {
|
434
|
+
display: "flex",
|
435
|
+
justifyContent: btnAlign?.horizantal || "start",
|
436
|
+
alignItems: btnAlign?.vertical || "start"
|
437
|
+
},
|
438
|
+
children: /*#__PURE__*/_jsx(Box, {
|
439
|
+
component: "button",
|
440
|
+
onClick: onSubmitClick,
|
441
|
+
disabled: loading,
|
442
|
+
sx: {
|
443
|
+
background: buttonProps?.bgColor || "rgb(30, 75, 122)",
|
444
|
+
borderWidth: "1px",
|
445
|
+
borderBlockStyle: "solid",
|
446
|
+
...btnBorderStyle,
|
447
|
+
...buttonSX,
|
448
|
+
color: `${buttonProps?.textColor || "#FFFFFF"}`,
|
449
|
+
fontSize: buttonProps?.textSize || "inherit",
|
450
|
+
height: "fit-content",
|
451
|
+
fontFamily: buttonProps?.fontFamily || "PoppinsRegular",
|
452
|
+
width: buttonProps?.fullWidth ? "100%" : "auto"
|
446
453
|
},
|
447
|
-
children:
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
fontFamily: buttonProps?.fontFamily || "Inter, sans-serif",
|
462
|
-
width: buttonProps?.fullWidth ? "100%" : "auto",
|
463
|
-
borderColor: `${buttonProps?.borderColor || "transparent"}`
|
464
|
-
},
|
465
|
-
children: buttonProps?.label || "Submit"
|
466
|
-
})
|
467
|
-
})]
|
468
|
-
})
|
469
|
-
}), !readOnly && showOptions && /*#__PURE__*/_jsx(FormToolbar, {}), loading && /*#__PURE__*/_jsx("div", {
|
454
|
+
children: buttonProps?.label || "Submit"
|
455
|
+
})
|
456
|
+
})]
|
457
|
+
})
|
458
|
+
}), !readOnly && showOptions && /*#__PURE__*/_jsx(FormToolbar, {}), loading && /*#__PURE__*/_jsx("div", {
|
459
|
+
style: {
|
460
|
+
position: "absolute",
|
461
|
+
top: 0,
|
462
|
+
left: 0,
|
463
|
+
width: "100%",
|
464
|
+
height: "100%",
|
465
|
+
background: "rgba(255,255,255,0.5)"
|
466
|
+
},
|
467
|
+
children: /*#__PURE__*/_jsx(CircularProgress, {
|
470
468
|
style: {
|
471
469
|
position: "absolute",
|
472
|
-
top: 0,
|
473
470
|
left: 0,
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
display: submittedSuccessfully ? "flex" : "none"
|
493
|
-
},
|
494
|
-
contentEditable: false,
|
471
|
+
right: 0,
|
472
|
+
top: 0,
|
473
|
+
bottom: 0,
|
474
|
+
margin: "auto"
|
475
|
+
}
|
476
|
+
})
|
477
|
+
})]
|
478
|
+
}), /*#__PURE__*/_jsx(Grid, {
|
479
|
+
item: true,
|
480
|
+
sx: {
|
481
|
+
display: submittedSuccessfully ? "flex" : "none"
|
482
|
+
},
|
483
|
+
contentEditable: false,
|
484
|
+
children: /*#__PURE__*/_jsx(Grid, {
|
485
|
+
container: true,
|
486
|
+
alignItems: "center",
|
487
|
+
justifyContent: "center",
|
488
|
+
spacing: 2,
|
495
489
|
children: /*#__PURE__*/_jsx(Grid, {
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
...formTypoSX
|
490
|
+
item: true,
|
491
|
+
children: /*#__PURE__*/_jsxs(Typography, {
|
492
|
+
sx: {
|
493
|
+
color: textColor || "#A2A9B4",
|
494
|
+
borderColor: borderColor || "transparent",
|
495
|
+
borderWidth: borderWidth || "1px",
|
496
|
+
borderStyle: borderStyle || "solid",
|
497
|
+
background: bgColor || "transparent",
|
498
|
+
minHeight: `${formHeight}px`,
|
499
|
+
minWidth: `${formWidth}px`,
|
500
|
+
display: "flex",
|
501
|
+
alignItems: "center",
|
502
|
+
justifyContent: "center",
|
503
|
+
textAlign: "center",
|
504
|
+
position: "relative",
|
505
|
+
...formTypoSX
|
506
|
+
},
|
507
|
+
children: ["Form Submitted Successfully...!", /*#__PURE__*/_jsx("span", {
|
508
|
+
style: {
|
509
|
+
paddingLeft: "10px"
|
517
510
|
},
|
518
|
-
children:
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
children: /*#__PURE__*/_jsx(IconButton, {
|
523
|
-
onClick: handleCloseMessage,
|
524
|
-
children: /*#__PURE__*/_jsx(Icon, {
|
525
|
-
icon: "closeIcon"
|
526
|
-
})
|
511
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
512
|
+
onClick: handleCloseMessage,
|
513
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
514
|
+
icon: "closeIcon"
|
527
515
|
})
|
528
|
-
})
|
529
|
-
})
|
516
|
+
})
|
517
|
+
})]
|
530
518
|
})
|
531
519
|
})
|
532
|
-
})
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
})
|
520
|
+
})
|
521
|
+
}), openSetttings ? /*#__PURE__*/_jsx(FormPopup, {
|
522
|
+
element: element,
|
523
|
+
onSave: onSave,
|
524
|
+
onClose: onClose,
|
525
|
+
customProps: customProps,
|
526
|
+
translation: translation
|
527
|
+
}) : null, /*#__PURE__*/_jsx(Workflow, {
|
528
|
+
openWorkflow: openWorkflow,
|
529
|
+
element: element,
|
530
|
+
closeWorkflow: closeWorkflow,
|
531
|
+
onSave: onSave,
|
532
|
+
customProps: customProps
|
533
|
+
}), !readOnly && !isIframe ? /*#__PURE__*/_jsxs(Menu, {
|
534
|
+
className: "editor-btn-options",
|
535
|
+
open: anchorEl !== null,
|
536
|
+
anchorEl: anchorEl,
|
537
|
+
onClose: handleClose,
|
538
|
+
contentEditable: false,
|
539
|
+
children: [/*#__PURE__*/_jsx(MenuItem, {
|
540
|
+
onClick: onMenuClick("edit"),
|
541
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
542
|
+
title: translation("Button Settings"),
|
543
|
+
arrow: true,
|
544
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
545
|
+
children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
|
559
546
|
})
|
560
|
-
})
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
})
|
547
|
+
})
|
548
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
549
|
+
onClick: onMenuClick("test"),
|
550
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
551
|
+
title: translation("Test Submit"),
|
552
|
+
arrow: true,
|
553
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
554
|
+
children: /*#__PURE__*/_jsx(BackupIcon, {})
|
568
555
|
})
|
569
|
-
})
|
570
|
-
}) : null, editButton && /*#__PURE__*/_jsx(ButtonPopup, {
|
571
|
-
element: buttonProps || {},
|
572
|
-
onSave: onSaveButtonSettings,
|
573
|
-
onClose: onCloseButtonSettings,
|
574
|
-
customProps: customProps,
|
575
|
-
style: formButtonStyle,
|
576
|
-
styleName: "formButtonStyle"
|
556
|
+
})
|
577
557
|
})]
|
578
|
-
})
|
558
|
+
}) : null, editButton && /*#__PURE__*/_jsx(ButtonPopup, {
|
559
|
+
element: buttonProps || {},
|
560
|
+
onSave: onSaveButtonSettings,
|
561
|
+
onClose: onCloseButtonSettings,
|
562
|
+
customProps: customProps,
|
563
|
+
style: formButtonStyle,
|
564
|
+
styleName: "formButtonStyle"
|
565
|
+
})]
|
579
566
|
});
|
580
567
|
};
|
581
568
|
export default Form;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Box } from "@mui/material";
|
3
|
-
import { getTRBLBreakPoints, getBreakPointsValue
|
4
|
-
import { useTheme } from "@emotion/react";
|
3
|
+
import { getTRBLBreakPoints, getBreakPointsValue } from "../../../helper/theme";
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
5
|
const FormText = props => {
|
7
6
|
const {
|
@@ -20,26 +19,11 @@ const FormText = props => {
|
|
20
19
|
textSize,
|
21
20
|
fontFamily,
|
22
21
|
fontWeight,
|
23
|
-
marginSpacing,
|
24
22
|
...rest
|
25
23
|
} = fieldProps;
|
26
24
|
const onChange = e => {
|
27
25
|
e.preventDefault();
|
28
26
|
};
|
29
|
-
const theme = useTheme();
|
30
|
-
const buttonSX = {
|
31
|
-
...groupByBreakpoint({
|
32
|
-
borderRadius: {
|
33
|
-
...getBreakPointsValue(borderRadius || {}, null, "overrideBorderRadius", true)
|
34
|
-
},
|
35
|
-
padding: {
|
36
|
-
...getTRBLBreakPoints(bannerSpacing)
|
37
|
-
},
|
38
|
-
margin: {
|
39
|
-
...getTRBLBreakPoints(marginSpacing)
|
40
|
-
}
|
41
|
-
}, theme)
|
42
|
-
};
|
43
27
|
return /*#__PURE__*/_jsx("div", {
|
44
28
|
style: {
|
45
29
|
width: "100%",
|
@@ -56,17 +40,16 @@ const FormText = props => {
|
|
56
40
|
padding: {
|
57
41
|
...getTRBLBreakPoints(bannerSpacing)
|
58
42
|
},
|
59
|
-
height: height
|
60
|
-
borderColor: borderColor
|
43
|
+
height: height || "auto",
|
44
|
+
borderColor: borderColor || "transparent",
|
61
45
|
borderWidth: borderWidth || "1px",
|
62
46
|
borderRadius: {
|
63
47
|
...getBreakPointsValue(borderRadius || {}, null, "overrideBorderRadius", true)
|
64
48
|
},
|
65
|
-
...buttonSX,
|
66
49
|
borderStyle: borderStyle || "solid",
|
67
|
-
color: textColor
|
68
|
-
background: bgColor
|
69
|
-
fontSize: textSize
|
50
|
+
color: textColor || "#000",
|
51
|
+
background: bgColor || "transparent",
|
52
|
+
fontSize: textSize || "inherit",
|
70
53
|
fontFamily: fontFamily || "PoppinsRegular",
|
71
54
|
fontWeight: `${fontWeight} !important` || "400 !important"
|
72
55
|
}
|
@@ -35,13 +35,12 @@ const FormTextArea = props => {
|
|
35
35
|
onChange: onChange,
|
36
36
|
sx: {
|
37
37
|
width: "100%",
|
38
|
-
|
39
|
-
borderBlockStyle: "solid",
|
38
|
+
border: `1px solid ${borderColor || "#FFF"}`,
|
40
39
|
padding: {
|
41
40
|
...getTRBLBreakPoints(bannerSpacing)
|
42
41
|
},
|
43
42
|
height: height || "150px",
|
44
|
-
borderColor: borderColor
|
43
|
+
borderColor: `${borderColor || "transparent"} !important`,
|
45
44
|
borderWidth: borderWidth || "1px",
|
46
45
|
borderRadius: {
|
47
46
|
...getBreakPointsValue(borderRadius || {}, null, "overrideBorderRadius", true)
|
@@ -2,13 +2,11 @@ import React, { useState } from "react";
|
|
2
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
|
+
import DeleteIcon from "@mui/icons-material/Delete";
|
6
|
+
import SettingsIcon from "@mui/icons-material/Settings";
|
5
7
|
import FormElements from "./FormElements";
|
6
8
|
import FieldPopup from "./FieldPopup";
|
7
9
|
import { getBreakPointsValue, groupByBreakpoint } from "../../helper/theme";
|
8
|
-
import { DeleteIcon } from "../../assets/svg/AIIcons";
|
9
|
-
import { SettingsIcon } from "../../assets/svg/TableIcons";
|
10
|
-
import { useEditorContext } from "../../hooks/useMouseMove";
|
11
|
-
import useCommonStyle from "../../commonStyle";
|
12
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
13
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
12
|
const FormField = props => {
|
@@ -40,10 +38,6 @@ const FormField = props => {
|
|
40
38
|
...element,
|
41
39
|
metadatamapping
|
42
40
|
};
|
43
|
-
const {
|
44
|
-
theme: appTheme
|
45
|
-
} = useEditorContext();
|
46
|
-
const classes = useCommonStyle(appTheme);
|
47
41
|
const [openSetttings, setOpenSettings] = useState(false);
|
48
42
|
const onSettings = () => {
|
49
43
|
setOpenSettings(true);
|
@@ -83,6 +77,7 @@ const FormField = props => {
|
|
83
77
|
top: "24px",
|
84
78
|
bottom: 0,
|
85
79
|
margin: "auto",
|
80
|
+
height: "42px",
|
86
81
|
zIndex: 101
|
87
82
|
},
|
88
83
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
@@ -115,8 +110,7 @@ const FormField = props => {
|
|
115
110
|
className: "form-field",
|
116
111
|
sx: {
|
117
112
|
position: "relative",
|
118
|
-
...fieldSX
|
119
|
-
...classes?.fieldBtnSettings
|
113
|
+
...fieldSX
|
120
114
|
},
|
121
115
|
children: [!readOnly && /*#__PURE__*/_jsx(FieldToolbar, {}), /*#__PURE__*/_jsx(FormElement, {
|
122
116
|
fieldProps: elementProps
|
@@ -35,15 +35,11 @@ export const useFreeGrid = () => {
|
|
35
35
|
return useContext(FreeGridContext);
|
36
36
|
};
|
37
37
|
const FreeGrid = props => {
|
38
|
-
const {
|
39
|
-
theme: appTheme
|
40
|
-
} = useEditorContext();
|
41
38
|
const theme = useTheme();
|
42
39
|
const breakpoint = useBreakpoints(theme);
|
43
40
|
const classes = useFreeGridStyles({
|
44
41
|
theme,
|
45
|
-
MAX_DEVICE_WIDTH: MAX_DEVICE_WIDTH[breakpoint]
|
46
|
-
appTheme
|
42
|
+
MAX_DEVICE_WIDTH: MAX_DEVICE_WIDTH[breakpoint]
|
47
43
|
});
|
48
44
|
const editor = useSlateStatic();
|
49
45
|
const {
|
@@ -10,7 +10,7 @@ const More = props => {
|
|
10
10
|
} = props;
|
11
11
|
return /*#__PURE__*/_jsx(Box, {
|
12
12
|
children: /*#__PURE__*/_jsxs(List, {
|
13
|
-
className: "item-list-wrpr
|
13
|
+
className: "item-list-wrpr",
|
14
14
|
children: [/*#__PURE__*/_jsx(ListItemButton, {
|
15
15
|
className: "item-wrapper",
|
16
16
|
onClick: handleClick("addSection"),
|
@@ -1,7 +1,6 @@
|
|
1
1
|
const useFreeGridStyles = ({
|
2
2
|
theme,
|
3
|
-
MAX_DEVICE_WIDTH
|
4
|
-
appTheme
|
3
|
+
MAX_DEVICE_WIDTH
|
5
4
|
}) => ({
|
6
5
|
root: {
|
7
6
|
"&.freegrid-container": {
|
@@ -48,9 +47,6 @@ const useFreeGridStyles = ({
|
|
48
47
|
"&.type_text": {
|
49
48
|
// minHeight: "fit-content !important",
|
50
49
|
// wordBreak: "break-all",
|
51
|
-
"& .placeholder-simple-text": {
|
52
|
-
display: "none"
|
53
|
-
}
|
54
50
|
},
|
55
51
|
"&.enable-1, &.enable-2": {
|
56
52
|
"&.type_text": {
|
@@ -317,36 +313,6 @@ const useFreeGridStyles = ({
|
|
317
313
|
backgroundColor: "#FFF",
|
318
314
|
overflow: "hidden"
|
319
315
|
},
|
320
|
-
"& .fgi_type_embedScript:not(:has(.has-code))": {
|
321
|
-
background: appTheme?.palette?.editor?.sectionSettingIconHover,
|
322
|
-
color: appTheme?.palette?.editor?.textColor,
|
323
|
-
fontSize: "14px",
|
324
|
-
borderRadius: "12px",
|
325
|
-
display: "flex",
|
326
|
-
flexDirection: "column",
|
327
|
-
justifyContent: "center",
|
328
|
-
alignItems: "center",
|
329
|
-
height: "100%",
|
330
|
-
textAlign: "center",
|
331
|
-
"& svg": {
|
332
|
-
width: "20px",
|
333
|
-
height: "20px",
|
334
|
-
"& path": {
|
335
|
-
stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
|
336
|
-
}
|
337
|
-
},
|
338
|
-
"& .code-icon": {
|
339
|
-
display: "flex",
|
340
|
-
marginRight: "5px"
|
341
|
-
},
|
342
|
-
"& .empty-code": {
|
343
|
-
display: "flex"
|
344
|
-
},
|
345
|
-
"& .code-name": {
|
346
|
-
display: "flex",
|
347
|
-
alignItems: "anchor-center"
|
348
|
-
}
|
349
|
-
},
|
350
316
|
"& .fgi_type_text": {
|
351
317
|
"& .edt-headings": {
|
352
318
|
margin: "0px"
|
@@ -390,41 +356,21 @@ const useFreeGridStyles = ({
|
|
390
356
|
sectionPopper: {
|
391
357
|
zIndex: 1200,
|
392
358
|
width: "40px",
|
393
|
-
left: "-
|
359
|
+
left: "-58px !important",
|
394
360
|
borderRadius: "8px",
|
395
|
-
marginRight: "5px !important",
|
396
361
|
"& .papper-root": {
|
397
362
|
fontFamily: "sans-serif",
|
398
363
|
boxShadow: "-4px -3px 12px 4px rgba(0, 0, 0, 0.12)",
|
399
|
-
background:
|
400
|
-
border: `1px solid ${appTheme?.palette?.editor?.miniToolBarBorder}`,
|
401
|
-
borderRadius: "10px",
|
364
|
+
background: "#FFF",
|
402
365
|
"& .MuiIconButton-root": {
|
403
|
-
padding: "
|
366
|
+
padding: "10px",
|
404
367
|
color: "#000",
|
405
|
-
background:
|
368
|
+
background: "#FFF",
|
406
369
|
"& svg": {
|
407
370
|
width: "20px",
|
408
|
-
height: "20px"
|
409
|
-
color: appTheme?.palette?.editor?.closeButtonSvgStroke
|
410
|
-
},
|
411
|
-
"& .settingsIcon": {
|
412
|
-
"& path": {
|
413
|
-
stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
|
414
|
-
}
|
371
|
+
height: "20px"
|
415
372
|
},
|
416
|
-
"&.active": {
|
417
|
-
"& svg": {
|
418
|
-
width: "20px",
|
419
|
-
height: "20px",
|
420
|
-
color: "#2563EB"
|
421
|
-
},
|
422
|
-
"& .settingsIcon": {
|
423
|
-
"& path": {
|
424
|
-
stroke: "#2563EB"
|
425
|
-
}
|
426
|
-
}
|
427
|
-
}
|
373
|
+
"&.active,&:hover ": {}
|
428
374
|
}
|
429
375
|
}
|
430
376
|
},
|
@@ -15,8 +15,7 @@ const CheckList = props => {
|
|
15
15
|
isEmpty,
|
16
16
|
className,
|
17
17
|
style,
|
18
|
-
customProps
|
19
|
-
selectedLineHeight
|
18
|
+
customProps
|
20
19
|
} = props;
|
21
20
|
const {
|
22
21
|
translation
|
@@ -46,7 +45,7 @@ const CheckList = props => {
|
|
46
45
|
justifyContent: "center",
|
47
46
|
alignItems: "center",
|
48
47
|
...(style || {}),
|
49
|
-
lineHeight:
|
48
|
+
lineHeight: 1.43
|
50
49
|
},
|
51
50
|
children: [/*#__PURE__*/_jsxs("div", {
|
52
51
|
contentEditable: false,
|