@flozy/editor 5.3.5 → 5.3.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/CommonEditor.js +8 -14
- package/dist/Editor/Editor.css +22 -58
- package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
- package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
- package/dist/Editor/Elements/Button/EditorButton.js +2 -9
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +2 -4
- package/dist/Editor/Elements/Divider/Divider.js +9 -24
- package/dist/Editor/Elements/Embed/Image.js +12 -31
- package/dist/Editor/Elements/Embed/Video.js +2 -13
- package/dist/Editor/Elements/Form/Form.js +0 -1
- package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
- package/dist/Editor/Elements/Grid/GridItem.js +0 -2
- package/dist/Editor/Elements/Grid/Styles.js +0 -44
- package/dist/Editor/Elements/List/CheckList.js +1 -2
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +0 -1
- package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
- package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
- package/dist/Editor/Elements/SimpleText/index.js +1 -8
- package/dist/Editor/Elements/SimpleText/style.js +1 -10
- package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
- package/dist/Editor/MiniEditor.js +1 -15
- package/dist/Editor/Styles/EditorStyles.js +3 -5
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +1 -17
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +3 -5
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -210
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -55
- package/dist/Editor/Toolbar/Toolbar.js +0 -6
- package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
- package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
- package/dist/Editor/common/ColorPickerButton.js +3 -5
- package/dist/Editor/common/DnD/Draggable.js +1 -2
- package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
- package/dist/Editor/common/Icon.js +0 -6
- package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
- package/dist/Editor/common/ImageSelector/Styles.js +6 -47
- package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
- package/dist/Editor/common/MentionsPopup/Styles.js +122 -109
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +0 -1
- package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
- package/dist/Editor/common/RnD/ShadowElement.js +1 -1
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
- package/dist/Editor/common/RnD/index.js +1 -2
- package/dist/Editor/common/Section/index.js +3 -3
- package/dist/Editor/common/Section/styles.js +1 -5
- package/dist/Editor/common/Shorthands/elements.js +1 -13
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +3 -27
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +0 -7
- package/dist/Editor/common/StyleBuilder/index.js +9 -17
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
- package/dist/Editor/common/ToolbarIcon.js +1 -2
- package/dist/Editor/common/Uploader.js +36 -46
- package/dist/Editor/common/iconListV2.js +130 -348
- package/dist/Editor/common/iconslist.js +3 -6
- package/dist/Editor/commonStyle.js +4 -290
- package/dist/Editor/helper/index.js +3 -16
- package/dist/Editor/helper/theme.js +1 -24
- package/dist/Editor/hooks/useMouseMove.js +2 -5
- package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -33
- package/dist/Editor/plugins/withEmbeds.js +26 -30
- package/dist/Editor/utils/SlateUtilityFunctions.js +4 -27
- package/dist/Editor/utils/button.js +4 -4
- package/dist/Editor/utils/helper.js +13 -40
- package/dist/Editor/utils/pageSettings.js +2 -14
- package/package.json +2 -2
- package/dist/Editor/Elements/DataView/DataView.js +0 -124
- package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
- package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
- package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
- package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
- package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
- package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
- package/dist/Editor/Elements/DataView/styles.js +0 -154
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
- package/dist/Editor/helper/enforceDateFormat.js +0 -41
- package/dist/Editor/utils/dataView.js +0 -43
@@ -13,7 +13,6 @@ import { insertDivider } from "../../utils/divider";
|
|
13
13
|
import { insertFreeGrid } from "../../utils/freegrid";
|
14
14
|
import { Transforms } from "slate";
|
15
15
|
import { insertInfinityAI } from "../../utils/infinityAI";
|
16
|
-
import { insertDataView } from "../../utils/dataView";
|
17
16
|
import SearchButton from "../../Elements/Search/SearchButton";
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
19
18
|
const ELEMENTS_LIST = [{
|
@@ -159,7 +158,7 @@ const ELEMENTS_LIST = [{
|
|
159
158
|
renderComponent: rest => /*#__PURE__*/_jsx(SearchButton, {
|
160
159
|
...rest,
|
161
160
|
element: {
|
162
|
-
name:
|
161
|
+
name: 'Brain'
|
163
162
|
},
|
164
163
|
icoBtnType: "cmd"
|
165
164
|
})
|
@@ -263,17 +262,6 @@ const ELEMENTS_LIST = [{
|
|
263
262
|
onInsert: editor => {
|
264
263
|
insertInfinityAI(editor);
|
265
264
|
}
|
266
|
-
}, {
|
267
|
-
name: "Dynamic Table",
|
268
|
-
group: "Dynamic Table",
|
269
|
-
desc: "",
|
270
|
-
type: "dataView",
|
271
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
272
|
-
icon: "dataView"
|
273
|
-
}),
|
274
|
-
onInsert: editor => {
|
275
|
-
insertDataView(editor);
|
276
|
-
}
|
277
265
|
}];
|
278
266
|
const elements = props => {
|
279
267
|
const {
|
@@ -60,10 +60,9 @@ const BackgroundImage = props => {
|
|
60
60
|
item: true,
|
61
61
|
xs: 12,
|
62
62
|
style: {
|
63
|
-
backgroundImage: base64 ? `url(${base64})` : "none"
|
64
|
-
|
63
|
+
backgroundImage: base64 ? `url(${base64})` : "none",
|
64
|
+
height: "200px"
|
65
65
|
},
|
66
|
-
|
67
66
|
sx: classes.uploadField,
|
68
67
|
children: /*#__PURE__*/_jsx(Grid, {
|
69
68
|
className: "uploadImageSection",
|
@@ -73,11 +72,6 @@ const BackgroundImage = props => {
|
|
73
72
|
children: "REMOVE"
|
74
73
|
}) : /*#__PURE__*/_jsx(Grid, {
|
75
74
|
className: "uploadImageText",
|
76
|
-
sx: {
|
77
|
-
padding: 0,
|
78
|
-
background: `${theme?.palette?.editor?.inputFieldBgColor}`,
|
79
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
|
80
|
-
},
|
81
75
|
children: /*#__PURE__*/_jsxs(Button, {
|
82
76
|
component: "label",
|
83
77
|
variant: "text",
|
@@ -92,7 +86,7 @@ const BackgroundImage = props => {
|
|
92
86
|
style: {
|
93
87
|
paddingLeft: "8px"
|
94
88
|
},
|
95
|
-
children: "
|
89
|
+
children: "upload your image"
|
96
90
|
})]
|
97
91
|
})
|
98
92
|
})
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box
|
2
|
+
import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box } from "@mui/material";
|
3
3
|
import { squreStyle } from "./radiusStyle";
|
4
4
|
import { getBreakPointsValue } from "../../../helper/theme";
|
5
5
|
import useWindowResize from "../../../hooks/useWindowResize";
|
6
|
-
import { CheckedBoxCheckIcon } from "../../iconListV2";
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
8
|
const BANNER_SPACING_KEYS = ["top", "left", "right", "bottom"];
|
@@ -82,18 +81,7 @@ const BannerSpacing = props => {
|
|
82
81
|
onChange: handleChange
|
83
82
|
}), /*#__PURE__*/_jsx(Box, {
|
84
83
|
component: "input",
|
85
|
-
sx:
|
86
|
-
...classes.sapcingInput,
|
87
|
-
"::-webkit-outer-spin-button": {
|
88
|
-
WebkitAppearance: "none",
|
89
|
-
margin: 0
|
90
|
-
},
|
91
|
-
"::-webkit-inner-spin-button": {
|
92
|
-
WebkitAppearance: "none",
|
93
|
-
margin: 0
|
94
|
-
},
|
95
|
-
MozAppearance: "textfield"
|
96
|
-
},
|
84
|
+
sx: classes.sapcingInput,
|
97
85
|
name: "top",
|
98
86
|
value: !lockSpacing ? "" : pro_value?.top,
|
99
87
|
className: "sliderInput",
|
@@ -104,22 +92,10 @@ const BannerSpacing = props => {
|
|
104
92
|
})]
|
105
93
|
}), /*#__PURE__*/_jsx(FormControlLabel, {
|
106
94
|
className: "ccheckbox-primary",
|
107
|
-
sx: {
|
108
|
-
...classes.customCheckBox
|
109
|
-
},
|
110
95
|
control: /*#__PURE__*/_jsx(Checkbox, {
|
111
96
|
value: !lockSpacing,
|
112
97
|
checked: !lockSpacing,
|
113
|
-
onChange: onLockSpacing
|
114
|
-
variant: "outlined",
|
115
|
-
className: "checkBox",
|
116
|
-
checkedIcon: /*#__PURE__*/_jsx(IconButton, {
|
117
|
-
className: "checkedIcon",
|
118
|
-
children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
|
119
|
-
}),
|
120
|
-
icon: /*#__PURE__*/_jsx(IconButton, {
|
121
|
-
className: "unCheckedIcon"
|
122
|
-
})
|
98
|
+
onChange: onLockSpacing
|
123
99
|
}),
|
124
100
|
label: /*#__PURE__*/_jsx(Typography, {
|
125
101
|
variant: "body1",
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box
|
2
|
+
import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box } from "@mui/material";
|
3
3
|
import { radiusStyle } from "./radiusStyle";
|
4
4
|
import useWindowResize from "../../../hooks/useWindowResize";
|
5
5
|
import { getBreakPointsValue, getCustomizationValue } from "../../../helper/theme";
|
6
|
-
import { CheckedBoxCheckIcon } from "../../iconListV2";
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
8
|
const BORDER_RADIUS_KEYS = ["topLeft", "topRight", "bottomLeft", "bottomRight"];
|
@@ -91,22 +90,10 @@ const BorderRadius = props => {
|
|
91
90
|
})]
|
92
91
|
}), /*#__PURE__*/_jsx(FormControlLabel, {
|
93
92
|
className: "ccheckbox-primary",
|
94
|
-
sx: {
|
95
|
-
...classes.customCheckBox
|
96
|
-
},
|
97
93
|
control: /*#__PURE__*/_jsx(Checkbox, {
|
98
94
|
value: !lockRadius,
|
99
95
|
checked: !lockRadius,
|
100
|
-
onChange: onLockRadius
|
101
|
-
variant: "outlined",
|
102
|
-
className: "checkBox",
|
103
|
-
checkedIcon: /*#__PURE__*/_jsx(IconButton, {
|
104
|
-
className: "checkedIcon",
|
105
|
-
children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
|
106
|
-
}),
|
107
|
-
icon: /*#__PURE__*/_jsx(IconButton, {
|
108
|
-
className: "unCheckedIcon"
|
109
|
-
})
|
96
|
+
onChange: onLockRadius
|
110
97
|
}),
|
111
98
|
label: /*#__PURE__*/_jsx(Typography, {
|
112
99
|
variant: "body1",
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Box, Card, Checkbox, FormControlLabel, Grid, Tooltip, Typography } from "@mui/material";
|
2
2
|
import React from "react";
|
3
3
|
import Icon from "../../Icon";
|
4
|
-
import { useEditorContext } from "../../../hooks/useMouseMove";
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
5
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
7
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -16,10 +15,7 @@ const RenderCard = ({
|
|
16
15
|
return /*#__PURE__*/_jsx(Card, {
|
17
16
|
sx: {
|
18
17
|
position: 'relative',
|
19
|
-
padding: "10px"
|
20
|
-
'& .MuiCheckbox-root svg': {
|
21
|
-
fill: 'unset !important'
|
22
|
-
}
|
18
|
+
padding: "10px"
|
23
19
|
},
|
24
20
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
25
21
|
control: /*#__PURE__*/_jsx(Checkbox, {
|
@@ -85,9 +81,6 @@ const CardsMapping = props => {
|
|
85
81
|
selectedCard,
|
86
82
|
infoIcon
|
87
83
|
} = data;
|
88
|
-
const {
|
89
|
-
theme
|
90
|
-
} = useEditorContext();
|
91
84
|
const activeCard = value === selectedCard;
|
92
85
|
const handleChange = e => {
|
93
86
|
if (selectedCard === data?.value) {
|
@@ -106,8 +99,7 @@ const CardsMapping = props => {
|
|
106
99
|
sx: {
|
107
100
|
marginBottom: "12px",
|
108
101
|
"& .MuiPaper-root": {
|
109
|
-
|
110
|
-
border: activeCard ? "1px solid #2563EB" : `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
102
|
+
border: activeCard ? "1px solid #2563EB" : "1px solid #C8D8FA",
|
111
103
|
borderRadius: "8px",
|
112
104
|
boxShadow: activeCard ? "0px 4px 16px 0px #2563EB40" : "unset"
|
113
105
|
}
|
@@ -16,7 +16,6 @@ const Color = props => {
|
|
16
16
|
hideGradient
|
17
17
|
} = data;
|
18
18
|
const [recentColors, setRecentColors] = useState({});
|
19
|
-
const getLable = label === 'Text' ? 'Select text color' : label === 'Background' ? 'Select background color' : label;
|
20
19
|
useEffect(() => {
|
21
20
|
const storedColors = JSON.parse(localStorage.getItem("recentColors"));
|
22
21
|
if (storedColors) {
|
@@ -74,7 +73,7 @@ const Color = props => {
|
|
74
73
|
}), /*#__PURE__*/_jsx(TextField, {
|
75
74
|
fullWidth: true,
|
76
75
|
value: value,
|
77
|
-
placeholder:
|
76
|
+
placeholder: `${label} color code`,
|
78
77
|
InputLabelProps: {
|
79
78
|
shrink: true
|
80
79
|
},
|
@@ -91,14 +91,12 @@ const Icons = props => {
|
|
91
91
|
overflowY: "auto",
|
92
92
|
paddingTop: "5px"
|
93
93
|
},
|
94
|
-
className: "muiIconsListParent",
|
95
94
|
children: list.map(m => {
|
96
95
|
return /*#__PURE__*/_jsx(Tooltip, {
|
97
96
|
title: m,
|
98
97
|
arrow: true,
|
99
98
|
children: /*#__PURE__*/_jsx(IconButton, {
|
100
99
|
onClick: onSelectIcon(m),
|
101
|
-
className: "muiIconsList",
|
102
100
|
children: /*#__PURE__*/_jsx(MUIIcon, {
|
103
101
|
iconName: m,
|
104
102
|
props: customProps
|
@@ -18,7 +18,6 @@ import FontSize from "./fontSize";
|
|
18
18
|
import SelectSwitch from "./selectSwitch";
|
19
19
|
import CardsMapping from "./card";
|
20
20
|
import MetaDataMapping from "./metaDataMapping";
|
21
|
-
import LineSpacing from "./lineSpacing";
|
22
21
|
const FieldMap = {
|
23
22
|
text: Text,
|
24
23
|
bannerSpacing: BannerSpacing,
|
@@ -39,7 +38,6 @@ const FieldMap = {
|
|
39
38
|
fontSize: FontSize,
|
40
39
|
selectSwitch: SelectSwitch,
|
41
40
|
card: CardsMapping,
|
42
|
-
metadatamapping: MetaDataMapping
|
43
|
-
lineSpacing: LineSpacing
|
41
|
+
metadatamapping: MetaDataMapping
|
44
42
|
};
|
45
43
|
export default FieldMap;
|
@@ -53,7 +53,7 @@ export const radiusStyle = {
|
|
53
53
|
export const squreStyle = {
|
54
54
|
topLeft: {
|
55
55
|
position: "absolute",
|
56
|
-
left: "-
|
56
|
+
left: "-35px",
|
57
57
|
top: "50%",
|
58
58
|
transform: "translateY(-50%)",
|
59
59
|
width: "30px",
|
@@ -71,7 +71,7 @@ export const squreStyle = {
|
|
71
71
|
// top: "-28px",
|
72
72
|
left: "50%",
|
73
73
|
transform: "translateX(-50%)",
|
74
|
-
top: "-
|
74
|
+
top: "-35px",
|
75
75
|
width: "30px",
|
76
76
|
height: "30px",
|
77
77
|
// borderTop: `2px solid #2563eb`,
|
@@ -85,7 +85,7 @@ export const squreStyle = {
|
|
85
85
|
// left: "-25px",
|
86
86
|
top: "50%",
|
87
87
|
transform: "translateY(-50%)",
|
88
|
-
right: "-
|
88
|
+
right: "-35px",
|
89
89
|
width: "30px",
|
90
90
|
height: "30px",
|
91
91
|
// borderBottom: `2px solid #2563eb`,
|
@@ -96,7 +96,7 @@ export const squreStyle = {
|
|
96
96
|
},
|
97
97
|
bottomRight: {
|
98
98
|
position: "absolute",
|
99
|
-
bottom: "-
|
99
|
+
bottom: "-35px",
|
100
100
|
// right: "-25px",
|
101
101
|
left: "50%",
|
102
102
|
transform: "translateX(-50%)",
|
@@ -3,8 +3,6 @@ import { Grid, Button, Typography, Select, MenuItem, TextField } from "@mui/mate
|
|
3
3
|
import CloudUploadIcon from "@mui/icons-material/CloudUpload";
|
4
4
|
import { convertBase64 } from "../../../utils/helper";
|
5
5
|
import { uploadFile } from "../../../service/fileupload";
|
6
|
-
import { useEditorContext } from "../../../hooks/useMouseMove";
|
7
|
-
import useCommonStyle from "../../../commonStyle";
|
8
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
@@ -32,10 +30,6 @@ const SaveAsTemplate = props => {
|
|
32
30
|
});
|
33
31
|
const [base64, setBase64] = useState(value);
|
34
32
|
const [uploading, setUploading] = useState(false);
|
35
|
-
const {
|
36
|
-
theme
|
37
|
-
} = useEditorContext();
|
38
|
-
const classes = useCommonStyle(theme);
|
39
33
|
const handleChange = async e => {
|
40
34
|
const file = e.target.files[0];
|
41
35
|
const strImage = await convertBase64(file);
|
@@ -82,9 +76,6 @@ const SaveAsTemplate = props => {
|
|
82
76
|
onSaveTemplate(formData, params);
|
83
77
|
handleClose();
|
84
78
|
};
|
85
|
-
if (!onSaveTemplate) {
|
86
|
-
return null;
|
87
|
-
}
|
88
79
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
89
80
|
children: [/*#__PURE__*/_jsx(Grid, {
|
90
81
|
item: true,
|
@@ -158,14 +149,9 @@ const SaveAsTemplate = props => {
|
|
158
149
|
justifyContent: "space-between",
|
159
150
|
alignItems: "center",
|
160
151
|
children: [/*#__PURE__*/_jsxs(Button, {
|
161
|
-
component: "label"
|
162
|
-
|
163
|
-
,
|
164
|
-
className: "gradientFillBtn",
|
152
|
+
component: "label",
|
153
|
+
variant: "contained",
|
165
154
|
startIcon: /*#__PURE__*/_jsx(CloudUploadIcon, {}),
|
166
|
-
sx: {
|
167
|
-
...classes.gradientFillBtn
|
168
|
-
},
|
169
155
|
children: ["Upload file", /*#__PURE__*/_jsx("input", {
|
170
156
|
type: "file",
|
171
157
|
style: {
|
@@ -208,14 +194,12 @@ const SaveAsTemplate = props => {
|
|
208
194
|
},
|
209
195
|
className: "action-btn-wrpr",
|
210
196
|
children: [/*#__PURE__*/_jsx(Button, {
|
211
|
-
className: "savebtn
|
197
|
+
className: "savebtn",
|
212
198
|
onClick: handleSave,
|
213
199
|
sx: {
|
214
|
-
fontWeight: 700
|
215
|
-
|
216
|
-
|
217
|
-
// variant="contained"
|
218
|
-
,
|
200
|
+
fontWeight: 700
|
201
|
+
},
|
202
|
+
variant: "contained",
|
219
203
|
children: saveText
|
220
204
|
}), closeText ? /*#__PURE__*/_jsx(Button, {
|
221
205
|
className: "closebtn",
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import React, { useEffect, useState, useRef } from "react";
|
2
|
-
import { Grid, Checkbox, FormControlLabel, FormHelperText
|
3
|
-
import useCommonStyle from "../../../commonStyle";
|
4
|
-
import { useEditorContext } from "../../../hooks/useMouseMove";
|
5
|
-
import { CheckedBoxCheckIcon } from "../../iconListV2";
|
2
|
+
import { Grid, Checkbox, FormControlLabel, FormHelperText } from "@mui/material";
|
6
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
4
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
5
|
const SelectBox = props => {
|
@@ -18,10 +15,6 @@ const SelectBox = props => {
|
|
18
15
|
} = data;
|
19
16
|
const [checkedValue, setCheckedValue] = useState(false);
|
20
17
|
const isFirstRender = useRef(true);
|
21
|
-
const {
|
22
|
-
theme
|
23
|
-
} = useEditorContext();
|
24
|
-
const classes = useCommonStyle(theme);
|
25
18
|
useEffect(() => {
|
26
19
|
if (isFirstRender.current && elementProps.element === "email" && value === undefined) {
|
27
20
|
setCheckedValue(true);
|
@@ -42,22 +35,10 @@ const SelectBox = props => {
|
|
42
35
|
marginBottom: "12px"
|
43
36
|
},
|
44
37
|
children: [/*#__PURE__*/_jsx(FormControlLabel, {
|
45
|
-
className: "ccheckbox-primary",
|
46
|
-
sx: {
|
47
|
-
...classes.customCheckBox
|
48
|
-
},
|
49
38
|
control: /*#__PURE__*/_jsx(Checkbox, {
|
50
39
|
value: value,
|
51
40
|
checked: checkedValue,
|
52
|
-
onChange: handleChange
|
53
|
-
className: "checkBox",
|
54
|
-
checkedIcon: /*#__PURE__*/_jsx(IconButton, {
|
55
|
-
className: "checkedIcon",
|
56
|
-
children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
|
57
|
-
}),
|
58
|
-
icon: /*#__PURE__*/_jsx(IconButton, {
|
59
|
-
className: "unCheckedIcon"
|
60
|
-
})
|
41
|
+
onChange: handleChange
|
61
42
|
}),
|
62
43
|
label: placeholder
|
63
44
|
}), /*#__PURE__*/_jsx(FormHelperText, {
|
@@ -11,21 +11,13 @@ const Text = props => {
|
|
11
11
|
const {
|
12
12
|
key,
|
13
13
|
placeholder,
|
14
|
-
width
|
15
|
-
required = false
|
14
|
+
width
|
16
15
|
} = data;
|
17
16
|
const [value, setValue] = useState(pro_value);
|
18
|
-
const [error, setError] = useState(false);
|
19
17
|
const handleChange = e => {
|
20
|
-
|
21
|
-
setValue(newValue);
|
22
|
-
if (required && !newValue.trim()) {
|
23
|
-
setError(true);
|
24
|
-
} else {
|
25
|
-
setError(false);
|
26
|
-
}
|
18
|
+
setValue(e.target.value);
|
27
19
|
onChange({
|
28
|
-
[key]:
|
20
|
+
[key]: e.target.value
|
29
21
|
});
|
30
22
|
};
|
31
23
|
return /*#__PURE__*/_jsxs(Grid, {
|
@@ -47,10 +39,7 @@ const Text = props => {
|
|
47
39
|
value: value,
|
48
40
|
onChange: handleChange,
|
49
41
|
size: "small",
|
50
|
-
fullWidth: true
|
51
|
-
required: required,
|
52
|
-
error: error,
|
53
|
-
helperText: error ? 'This field is required' : ''
|
42
|
+
fullWidth: true
|
54
43
|
})]
|
55
44
|
});
|
56
45
|
};
|
@@ -5,7 +5,6 @@ import useWindowResize from "../../../hooks/useWindowResize";
|
|
5
5
|
import { useEditorContext } from "../../../hooks/useMouseMove";
|
6
6
|
import FontFamilyAutocomplete from "../../../Toolbar/FormatTools/FontFamilyAutocomplete";
|
7
7
|
import { useSlate } from "slate-react";
|
8
|
-
import KeyboardArrowDownRoundedIcon from "@mui/icons-material/KeyboardArrowDownRounded";
|
9
8
|
|
10
9
|
// hideMetaDataOptions -- pass true to hide metadata option in select field
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -91,12 +90,6 @@ const TextOptions = props => {
|
|
91
90
|
marginBottom: "16px"
|
92
91
|
},
|
93
92
|
sx: classes.textOptions,
|
94
|
-
IconComponent: KeyboardArrowDownRoundedIcon,
|
95
|
-
MenuProps: {
|
96
|
-
sx: {
|
97
|
-
...classes.textOptionsList
|
98
|
-
}
|
99
|
-
},
|
100
93
|
children: updatedOption?.map((m, i) => {
|
101
94
|
return m?.value === "listSubHeader" ? /*#__PURE__*/_jsx(ListSubheader, {
|
102
95
|
children: m?.label
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
2
2
|
import { DialogTitle, DialogContent, DialogActions, Button, Grid, IconButton, Typography, Drawer, SwipeableDrawer, Accordion, AccordionSummary, AccordionDetails, createTheme } from "@mui/material";
|
3
3
|
import FieldMap from "./fieldTypes";
|
4
|
-
import
|
4
|
+
import CloseIcon from "@mui/icons-material/Close";
|
5
5
|
import useCommonStyle from "../../commonStyle";
|
6
6
|
import { useEditorContext } from "../../hooks/useMouseMove";
|
7
7
|
import { ThemeProvider } from "@mui/material/styles";
|
@@ -69,7 +69,6 @@ const StyleBuilder = props => {
|
|
69
69
|
const isMobile = customProps?.isMobile || false;
|
70
70
|
const [elementProps, setElementProps] = useState(element);
|
71
71
|
const [tab] = useState(renderTabs[0]?.value);
|
72
|
-
const [saveDisable, setSaveDisable] = useState(false);
|
73
72
|
const tabVal = renderTabs?.find(f => f.value === tab);
|
74
73
|
const {
|
75
74
|
needActions = true
|
@@ -124,17 +123,12 @@ const StyleBuilder = props => {
|
|
124
123
|
field_type: data?.element
|
125
124
|
});
|
126
125
|
if (data?.hasOwnProperty("name")) {
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
...data,
|
134
|
-
key: data?.name,
|
135
|
-
label: data?.name
|
136
|
-
});
|
137
|
-
}
|
126
|
+
setElementProps({
|
127
|
+
...elementProps,
|
128
|
+
...data,
|
129
|
+
key: data?.name,
|
130
|
+
label: data?.name
|
131
|
+
});
|
138
132
|
}
|
139
133
|
};
|
140
134
|
const handleSave = () => {
|
@@ -149,8 +143,7 @@ const StyleBuilder = props => {
|
|
149
143
|
xs: 12,
|
150
144
|
sx: {
|
151
145
|
p: 2,
|
152
|
-
width: isMobile ? "100%" : "
|
153
|
-
...classes.pageSettingPopUpRoot
|
146
|
+
width: isMobile ? "100%" : "350px"
|
154
147
|
},
|
155
148
|
children: [/*#__PURE__*/_jsx(DialogTitle, {
|
156
149
|
sx: {
|
@@ -173,7 +166,7 @@ const StyleBuilder = props => {
|
|
173
166
|
children: /*#__PURE__*/_jsx(IconButton, {
|
174
167
|
onClick: onClose,
|
175
168
|
className: "close-popupbtn",
|
176
|
-
children: /*#__PURE__*/_jsx(
|
169
|
+
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
177
170
|
})
|
178
171
|
})]
|
179
172
|
})
|
@@ -245,7 +238,6 @@ const StyleBuilder = props => {
|
|
245
238
|
children: "Delete"
|
246
239
|
}) : null, /*#__PURE__*/_jsx(Button, {
|
247
240
|
onClick: handleSave,
|
248
|
-
disabled: saveDisable,
|
249
241
|
className: "primaryBtn",
|
250
242
|
children: "Save"
|
251
243
|
})]
|
@@ -11,7 +11,6 @@ const ToolbarIcon = props => {
|
|
11
11
|
style,
|
12
12
|
icoBtnType
|
13
13
|
} = props;
|
14
|
-
console.log("Props:", props);
|
15
14
|
const renderIconText = () => {
|
16
15
|
if (icoBtnType === "mini") {
|
17
16
|
return /*#__PURE__*/_jsx("span", {
|
@@ -40,7 +39,7 @@ const ToolbarIcon = props => {
|
|
40
39
|
title: title,
|
41
40
|
arrow: true,
|
42
41
|
children: /*#__PURE__*/_jsxs(IconButton, {
|
43
|
-
className: `${className} ${icoBtnType}
|
42
|
+
className: `${className} ${icoBtnType}`,
|
44
43
|
onClick: onClick,
|
45
44
|
style: style,
|
46
45
|
children: [icon, renderIconText()]
|