@flozy/editor 5.4.4 → 5.4.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/Elements/AI/CustomSelect.js +1 -2
- package/dist/Editor/Elements/AI/PopoverAIInput.js +3 -3
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +15 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +2 -1
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +2 -1
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +17 -5
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +38 -11
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +55 -15
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +7 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +4 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +5 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +21 -21
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -4
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +49 -21
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +4 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +4 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +51 -16
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +22 -3
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +19 -5
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +5 -0
- package/dist/Editor/Elements/DataView/styles.js +10 -3
- package/dist/Editor/Elements/Table/Styles.js +7 -0
- package/dist/Editor/Elements/Table/Table.js +10 -5
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -2
- package/dist/Editor/Toolbar/Mini/Styles.js +5 -0
- package/dist/Editor/assets/svg/ArrowDownIcon.js +25 -0
- package/dist/Editor/assets/svg/ArrowUpIcon.js +25 -0
- package/dist/Editor/assets/svg/CalenderIconTick.js +64 -0
- package/dist/Editor/assets/svg/DataTableIcon.js +50 -0
- package/dist/Editor/assets/svg/DuplicateIcon.js +23 -0
- package/dist/Editor/assets/svg/EyeIcon.js +23 -0
- package/dist/Editor/assets/svg/EyeSlash.js +43 -0
- package/dist/Editor/assets/svg/HashtagIcon.js +33 -0
- package/dist/Editor/assets/svg/PlusIcon.js +23 -0
- package/dist/Editor/assets/svg/SelectRoundedIcon.js +24 -0
- package/dist/Editor/assets/svg/SortByIcon.js +33 -0
- package/dist/Editor/assets/svg/TickOutlined.js +23 -0
- package/dist/Editor/assets/svg/TrashCanIcon.js +38 -0
- package/dist/Editor/common/Icon.js +30 -4
- package/dist/Editor/common/RnD/index.js +2 -2
- package/dist/Editor/common/Shorthands/elements.js +1 -1
- package/dist/Editor/common/iconListV2.js +47 -79
- package/dist/Editor/helper/deserialize/index.js +28 -1
- package/dist/Editor/hooks/useBreakpoints.js +1 -1
- package/dist/Editor/plugins/withHTML.js +14 -4
- package/package.json +1 -1
@@ -1,15 +1,11 @@
|
|
1
1
|
import React, { useEffect, useRef, useState } from "react";
|
2
2
|
import { Box, IconButton, TextField, List, ListItemButton, ListItemText, ListItemIcon, FormControlLabel } from "@mui/material";
|
3
3
|
import CloseIcon from "@mui/icons-material/Close";
|
4
|
-
import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";
|
5
|
-
import DeleteIcon from "@mui/icons-material/Delete";
|
6
|
-
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
7
|
-
import VisibilityIcon from "@mui/icons-material/Visibility";
|
8
|
-
import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
|
9
4
|
import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
|
10
|
-
import { TYPE_LABELS } from "./Constants";
|
5
|
+
import { TYPE_ICONS, TYPE_LABELS } from "./Constants";
|
11
6
|
import AddOptions from "./AddOptions";
|
12
7
|
import FilterProperty from "./FilterProperty";
|
8
|
+
import Icon from "../../../../common/Icon";
|
13
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
14
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
11
|
const EditProperty = props => {
|
@@ -125,6 +121,11 @@ const EditProperty = props => {
|
|
125
121
|
children: [/*#__PURE__*/_jsx(FormControlLabel, {
|
126
122
|
label: "Field Name",
|
127
123
|
labelPlacement: "top",
|
124
|
+
sx: {
|
125
|
+
'& .MuiFormControl-root': {
|
126
|
+
marginBottom: '4px'
|
127
|
+
}
|
128
|
+
},
|
128
129
|
control: /*#__PURE__*/_jsx(TextField, {
|
129
130
|
size: "small",
|
130
131
|
value: edit?.label,
|
@@ -132,50 +133,77 @@ const EditProperty = props => {
|
|
132
133
|
fullWidth: true,
|
133
134
|
placeholder: "Field Name"
|
134
135
|
})
|
135
|
-
}), /*#__PURE__*/_jsx(AddOptions, {
|
136
|
-
edit: edit,
|
137
|
-
onUpdate: onUpdate,
|
138
|
-
onEvent: onEvent
|
139
|
-
}), /*#__PURE__*/_jsx(FilterProperty, {
|
140
|
-
edit: edit,
|
141
|
-
onUpdate: onUpdate,
|
142
|
-
onEvent: onEvent
|
143
136
|
}), /*#__PURE__*/_jsx(List, {
|
144
|
-
className: "fe-dv-opt-list st
|
137
|
+
className: "fe-dv-opt-list st",
|
145
138
|
children: /*#__PURE__*/_jsxs(ListItemButton, {
|
146
139
|
onClick: onChangeProperty,
|
147
140
|
children: [/*#__PURE__*/_jsx(ListItemText, {
|
148
141
|
children: "Type"
|
149
142
|
}), /*#__PURE__*/_jsxs(ListItemIcon, {
|
150
143
|
sx: {
|
151
|
-
|
144
|
+
display: 'flex',
|
145
|
+
alignItems: "center",
|
146
|
+
gap: 1
|
152
147
|
},
|
153
|
-
children: [/*#__PURE__*/_jsx(
|
148
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
149
|
+
sx: {
|
150
|
+
background: "#64748B1F",
|
151
|
+
borderRadius: '4px',
|
152
|
+
display: 'flex',
|
153
|
+
alignItems: 'center',
|
154
|
+
padding: '2px',
|
155
|
+
'& svg': {
|
156
|
+
width: '16px',
|
157
|
+
height: '16px'
|
158
|
+
}
|
159
|
+
},
|
160
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
161
|
+
icon: `${TYPE_ICONS[edit?.type]}`
|
162
|
+
})
|
163
|
+
}), /*#__PURE__*/_jsx("span", {
|
154
164
|
className: "label-tp",
|
155
165
|
children: TYPE_LABELS[edit?.type]
|
156
|
-
}), /*#__PURE__*/_jsx(
|
166
|
+
}), /*#__PURE__*/_jsx(Icon, {
|
167
|
+
icon: 'rightArrow'
|
168
|
+
})]
|
157
169
|
})]
|
158
170
|
})
|
171
|
+
}), /*#__PURE__*/_jsx(AddOptions, {
|
172
|
+
edit: edit,
|
173
|
+
onUpdate: onUpdate,
|
174
|
+
onEvent: onEvent
|
175
|
+
}), /*#__PURE__*/_jsx(FilterProperty, {
|
176
|
+
edit: edit,
|
177
|
+
onUpdate: onUpdate,
|
178
|
+
onEvent: onEvent
|
159
179
|
}), /*#__PURE__*/_jsxs(List, {
|
160
180
|
className: "fe-dv-opt-list",
|
161
181
|
children: [/*#__PURE__*/_jsxs(ListItemButton, {
|
162
182
|
onClick: onAction("Visibilty"),
|
163
183
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
164
|
-
children: edit?.visible ? /*#__PURE__*/_jsx(
|
184
|
+
children: edit?.visible ? /*#__PURE__*/_jsx(Icon, {
|
185
|
+
icon: 'eyeSlash'
|
186
|
+
}) : /*#__PURE__*/_jsx(Icon, {
|
187
|
+
icon: 'eyeIcon'
|
188
|
+
})
|
165
189
|
}), /*#__PURE__*/_jsxs(ListItemText, {
|
166
190
|
children: [edit?.visible ? "Hide" : "Show", " in View"]
|
167
191
|
})]
|
168
192
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
169
193
|
onClick: onAction("Duplicate"),
|
170
194
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
171
|
-
children: /*#__PURE__*/_jsx(
|
195
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
196
|
+
icon: 'duplicateIcon'
|
197
|
+
})
|
172
198
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
173
199
|
children: "Duplicate Property"
|
174
200
|
})]
|
175
201
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
176
202
|
onClick: onAction("Delete"),
|
177
203
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
178
|
-
children: /*#__PURE__*/_jsx(
|
204
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
205
|
+
icon: 'trashIcon'
|
206
|
+
})
|
179
207
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
180
208
|
children: "Delete Property"
|
181
209
|
})]
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
2
2
|
import { List, ListItemButton, ListItemText, ListItemIcon } from "@mui/material";
|
3
3
|
import { FILTER_TYPES } from "./Constants";
|
4
4
|
import { useDataView } from "../../Providers/DataViewProvider";
|
5
|
+
import Icon from "../../../../common/Icon";
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
8
|
const FilterProperty = props => {
|
@@ -22,13 +23,14 @@ const FilterProperty = props => {
|
|
22
23
|
return /*#__PURE__*/_jsx(List, {
|
23
24
|
className: "fe-dv-opt-list mt",
|
24
25
|
children: FILTER_TYPES?.map(({
|
25
|
-
Icon,
|
26
26
|
...m
|
27
27
|
}, i) => {
|
28
28
|
return /*#__PURE__*/_jsxs(ListItemButton, {
|
29
29
|
onClick: handleChangeOption(m),
|
30
30
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
31
|
-
children: /*#__PURE__*/_jsx(Icon, {
|
31
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
32
|
+
icon: m?.Icon
|
33
|
+
})
|
32
34
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
33
35
|
primary: m.label
|
34
36
|
})]
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { List, ListItemButton, ListItemIcon, ListItemText } from "@mui/material";
|
3
3
|
import { PROPERTY_TYPES } from "./Constants";
|
4
|
+
import Icon from "../../../../common/Icon";
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
7
|
const PropertyList = props => {
|
@@ -10,7 +11,6 @@ const PropertyList = props => {
|
|
10
11
|
} = props;
|
11
12
|
return /*#__PURE__*/_jsx(List, {
|
12
13
|
children: PROPERTY_TYPES?.map(({
|
13
|
-
Icon,
|
14
14
|
...rest
|
15
15
|
}, i) => {
|
16
16
|
return /*#__PURE__*/_jsxs(ListItemButton, {
|
@@ -18,7 +18,9 @@ const PropertyList = props => {
|
|
18
18
|
onClick: onSelect(rest),
|
19
19
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
20
20
|
className: "needBg",
|
21
|
-
children: /*#__PURE__*/_jsx(Icon, {
|
21
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
22
|
+
icon: rest?.Icon
|
23
|
+
})
|
22
24
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
23
25
|
primary: rest?.label
|
24
26
|
})]
|
@@ -3,8 +3,9 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
3
3
|
"& .MuiPaper-root": {
|
4
4
|
boxShadow: "0px 4px 10px 0px rgba(0, 0, 0, 0.16)",
|
5
5
|
border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
|
6
|
-
borderRadius: "
|
6
|
+
borderRadius: "20px",
|
7
7
|
background: appTheme?.palette?.editor?.tv_pop_bg,
|
8
|
+
fontFamily: 'Inter !important',
|
8
9
|
color: appTheme?.palette?.editor?.tv_text_primary,
|
9
10
|
[theme?.breakpoints?.between("xs", "md")]: {
|
10
11
|
borderRadius: "16px 16px 0px 0px",
|
@@ -23,27 +24,38 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
23
24
|
},
|
24
25
|
"& svg": {
|
25
26
|
width: "16px",
|
26
|
-
height: "16px"
|
27
|
+
height: "16px",
|
28
|
+
'& path': {
|
29
|
+
stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
|
30
|
+
}
|
27
31
|
}
|
28
32
|
},
|
29
33
|
"& .MuiInputBase-root": {
|
30
34
|
color: appTheme?.palette?.editor?.tv_text_primary,
|
31
35
|
fontSize: "14px",
|
32
|
-
background: appTheme?.palette?.editor?.tv_input_bg,
|
33
|
-
|
36
|
+
// background: appTheme?.palette?.editor?.tv_input_bg,
|
37
|
+
background: 'transparent',
|
38
|
+
borderRadius: "8px",
|
39
|
+
boxShadow: '0px 4px 18px 0px #0000000D'
|
40
|
+
},
|
41
|
+
'& .MuiInputBase-input': {
|
42
|
+
padding: '0px 12px',
|
43
|
+
height: '34px'
|
34
44
|
},
|
35
45
|
"& .MuiOutlinedInput-notchedOutline": {
|
36
46
|
borderRadius: "8px",
|
37
|
-
border: `1px solid ${appTheme?.palette?.editor?.tv_border}
|
47
|
+
border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
|
48
|
+
background: 'transparent'
|
38
49
|
},
|
39
50
|
"& .MuiList-root": {
|
40
51
|
padding: "4px 2px",
|
52
|
+
fontFamily: 'Inter',
|
41
53
|
"& .MuiListItemButton-root": {
|
42
54
|
color: appTheme?.palette?.editor?.tv_text_primary,
|
43
55
|
padding: "2px 4px",
|
44
56
|
borderRadius: "8px",
|
45
57
|
"& .MuiListItemIcon-root": {
|
46
|
-
minWidth: "
|
58
|
+
minWidth: "26px",
|
47
59
|
"&.needBg": {
|
48
60
|
minWidth: "20px",
|
49
61
|
width: "20px",
|
@@ -56,17 +68,27 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
56
68
|
},
|
57
69
|
color: `${appTheme?.palette?.editor?.tv_text} !important`,
|
58
70
|
"& svg": {
|
59
|
-
width: "16px"
|
71
|
+
width: "16px",
|
72
|
+
'& path': {
|
73
|
+
stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
|
74
|
+
}
|
60
75
|
}
|
61
76
|
},
|
62
77
|
"& .MuiTypography-root": {
|
63
|
-
fontSize: "14px"
|
78
|
+
fontSize: "14px",
|
79
|
+
fontFamily: 'Inter'
|
64
80
|
},
|
65
81
|
"&:hover": {
|
66
82
|
background: appTheme?.palette?.editor?.tv_hover_bg,
|
67
83
|
color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
|
68
84
|
"& .MuiListItemIcon-root": {
|
69
|
-
color: `${appTheme?.palette?.editor?.tv_hover_text} !important
|
85
|
+
color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
|
86
|
+
"& svg": {
|
87
|
+
color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
|
88
|
+
'& path': {
|
89
|
+
stroke: `${appTheme?.palette?.editor?.tv_hover_text} !important`
|
90
|
+
}
|
91
|
+
}
|
70
92
|
}
|
71
93
|
}
|
72
94
|
}
|
@@ -79,7 +101,8 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
79
101
|
"& .sb": {
|
80
102
|
borderBottom: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
|
81
103
|
marginBottom: "8px",
|
82
|
-
paddingBottom: "8px"
|
104
|
+
// paddingBottom: "8px",
|
105
|
+
paddingBottom: "0px"
|
83
106
|
},
|
84
107
|
"& .mt": {
|
85
108
|
marginTop: "8px"
|
@@ -119,10 +142,10 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
119
142
|
fontFamily: '"Roboto","Helvetica","Arial",sans-serif',
|
120
143
|
fontSize: "14px"
|
121
144
|
},
|
122
|
-
"& .MuiInputBase-input": {
|
123
|
-
|
124
|
-
|
125
|
-
},
|
145
|
+
// "& .MuiInputBase-input": {
|
146
|
+
// height: "32px",
|
147
|
+
// padding: "4px 8px",
|
148
|
+
// },
|
126
149
|
"& .more-btn-cbs": {
|
127
150
|
color: appTheme?.palette?.editor?.tv_text_primary
|
128
151
|
}
|
@@ -133,7 +156,8 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
133
156
|
width: "253px",
|
134
157
|
"& .fe-dv-ap-title": {
|
135
158
|
display: "flex",
|
136
|
-
fontWeight: "
|
159
|
+
fontWeight: "600",
|
160
|
+
fontFamily: 'Inter',
|
137
161
|
padding: "0px 0px 12px 0px",
|
138
162
|
justifyContent: "space-between",
|
139
163
|
fontSize: "14px",
|
@@ -142,7 +166,8 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
142
166
|
marginBottom: "8px",
|
143
167
|
"& span": {
|
144
168
|
display: "flex",
|
145
|
-
alignItems: "center"
|
169
|
+
alignItems: "center",
|
170
|
+
fontFamily: 'Inter'
|
146
171
|
}
|
147
172
|
},
|
148
173
|
"& .fe-dv-ap-desc": {
|
@@ -163,6 +188,11 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
163
188
|
color: "red",
|
164
189
|
marginLeft: "2px",
|
165
190
|
marginTop: "4px"
|
191
|
+
},
|
192
|
+
'& svg': {
|
193
|
+
'& path': {
|
194
|
+
stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
|
195
|
+
}
|
166
196
|
}
|
167
197
|
},
|
168
198
|
"& .fe-tv-opt-sub-title": {
|
@@ -171,6 +201,11 @@ const useOptionsStyles = (theme, appTheme) => ({
|
|
171
201
|
justifyContent: "space-between",
|
172
202
|
marginBottom: "8px"
|
173
203
|
},
|
204
|
+
"& .more-btn-cbs": {
|
205
|
+
color: `${appTheme?.palette?.editor?.closeButtonSvgStroke}`,
|
206
|
+
border: `1.5px solid ${appTheme?.palette?.editor?.closeButtonSvgStroke}`,
|
207
|
+
paddingTop: "10px"
|
208
|
+
},
|
174
209
|
[theme?.breakpoints?.between("xs", "md")]: {
|
175
210
|
width: "100%"
|
176
211
|
}
|
@@ -19,6 +19,9 @@ const useTableStyles = (theme, appTheme) => ({
|
|
19
19
|
"& svg": {
|
20
20
|
"& .fillStroke": {
|
21
21
|
stroke: appTheme?.palette?.editor?.tv_stroke
|
22
|
+
},
|
23
|
+
'& path': {
|
24
|
+
stroke: appTheme?.palette?.editor?.tv_text
|
22
25
|
}
|
23
26
|
}
|
24
27
|
},
|
@@ -26,7 +29,8 @@ const useTableStyles = (theme, appTheme) => ({
|
|
26
29
|
height: "40px",
|
27
30
|
"& input": {
|
28
31
|
color: appTheme?.palette?.editor?.tv_text_primary,
|
29
|
-
background: "transparent"
|
32
|
+
background: "transparent",
|
33
|
+
fontSize: '14px'
|
30
34
|
}
|
31
35
|
},
|
32
36
|
"& th, tr, td": {
|
@@ -35,15 +39,30 @@ const useTableStyles = (theme, appTheme) => ({
|
|
35
39
|
"& .tv-act-btn": {
|
36
40
|
color: appTheme?.palette?.editor?.tv_text,
|
37
41
|
textTransform: "none",
|
42
|
+
'& .MuiButton-startIcon': {
|
43
|
+
background: appTheme?.palette?.editor?.tv_ico_bg,
|
44
|
+
borderRadius: '4px',
|
45
|
+
padding: '2px',
|
46
|
+
"& svg": {
|
47
|
+
width: '16px',
|
48
|
+
height: '16px'
|
49
|
+
}
|
50
|
+
},
|
38
51
|
"&.ico": {
|
39
52
|
"& svg": {
|
40
|
-
color: appTheme?.palette?.editor?.tv_text
|
53
|
+
color: appTheme?.palette?.editor?.tv_text,
|
54
|
+
'& path': {
|
55
|
+
stroke: appTheme?.palette?.editor?.tv_text
|
56
|
+
}
|
41
57
|
}
|
42
58
|
},
|
43
59
|
"&:hover": {
|
44
60
|
color: "rgba(37, 99, 235, 1)",
|
45
61
|
"& svg": {
|
46
|
-
color: "rgba(37, 99, 235, 1)"
|
62
|
+
color: "rgba(37, 99, 235, 1)",
|
63
|
+
'& path': {
|
64
|
+
stroke: "rgba(37, 99, 235, 1)"
|
65
|
+
}
|
47
66
|
}
|
48
67
|
}
|
49
68
|
},
|
@@ -2,13 +2,13 @@ import React, { useState } from "react";
|
|
2
2
|
import { Box, Button, useTheme } from "@mui/material";
|
3
3
|
import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
|
4
4
|
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
|
5
|
-
import AddCircleOutlineIcon from "@mui/icons-material/AddCircleOutline";
|
6
5
|
import { useDataView } from "../Providers/DataViewProvider";
|
7
6
|
import PropertySettings from "./Options";
|
8
7
|
import { PROPERTY_TYPES } from "./Options/Constants";
|
9
8
|
import useTableStyles from "./TableStyles";
|
10
9
|
import { GridSettingsIcon, GridAddSectionIcon } from "../../../common/iconslist";
|
11
10
|
import { useEditorContext } from "../../../hooks/useMouseMove";
|
11
|
+
import Icon from "../../../common/Icon";
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
13
13
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
14
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -165,7 +165,7 @@ const TableView = props => {
|
|
165
165
|
children: /*#__PURE__*/_jsxs("tr", {
|
166
166
|
children: [shownProperties?.map((m, i) => {
|
167
167
|
const {
|
168
|
-
Icon
|
168
|
+
Icon: iconType
|
169
169
|
} = PROPERTY_TYPES?.find(f => f.type === m.type) || {};
|
170
170
|
const isSort = sortBy?.key === m.key ? sortBy?.operator : null;
|
171
171
|
return /*#__PURE__*/_jsx("th", {
|
@@ -174,7 +174,9 @@ const TableView = props => {
|
|
174
174
|
},
|
175
175
|
children: /*#__PURE__*/_jsx(Button, {
|
176
176
|
className: "tv-act-btn la",
|
177
|
-
startIcon: /*#__PURE__*/_jsx(Icon, {
|
177
|
+
startIcon: /*#__PURE__*/_jsx(Icon, {
|
178
|
+
icon: iconType
|
179
|
+
}),
|
178
180
|
endIcon: /*#__PURE__*/_jsx(SortIcon, {
|
179
181
|
sortBy: isSort
|
180
182
|
}),
|
@@ -210,9 +212,21 @@ const TableView = props => {
|
|
210
212
|
onClick: onAddRow,
|
211
213
|
sx: {
|
212
214
|
textTransform: "none",
|
213
|
-
justifyContent: "start"
|
215
|
+
justifyContent: "start",
|
216
|
+
color: appTheme?.palette?.editor?.activeColor,
|
217
|
+
'& svg': {
|
218
|
+
width: '18px',
|
219
|
+
height: '18px',
|
220
|
+
strokeWidth: 1.2,
|
221
|
+
'& path': {
|
222
|
+
stroke: appTheme?.palette?.editor?.activeColor
|
223
|
+
}
|
224
|
+
},
|
225
|
+
fontFamily: 'inter'
|
214
226
|
},
|
215
|
-
startIcon: /*#__PURE__*/_jsx(
|
227
|
+
startIcon: /*#__PURE__*/_jsx(Icon, {
|
228
|
+
icon: 'addRounded'
|
229
|
+
}),
|
216
230
|
children: "Add new row"
|
217
231
|
}) : null, open && !readOnly ? /*#__PURE__*/_jsx(PropertySettings, {
|
218
232
|
open: open,
|
@@ -52,6 +52,11 @@ const ViewData = props => {
|
|
52
52
|
component: "tbody",
|
53
53
|
...attributes,
|
54
54
|
contentEditable: false,
|
55
|
+
sx: {
|
56
|
+
"& .MuiInputBase-root": {
|
57
|
+
background: "transparent !important"
|
58
|
+
}
|
59
|
+
},
|
55
60
|
children: [rows?.map((row, i) => {
|
56
61
|
return /*#__PURE__*/_jsx(Box, {
|
57
62
|
component: "tr",
|
@@ -85,7 +85,8 @@ const useDataViewStyles = (theme, appTheme) => ({
|
|
85
85
|
width: "fit-content",
|
86
86
|
border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
|
87
87
|
boxShadow: "0px 4px 18px 0px #0000000D",
|
88
|
-
borderRadius: "8px"
|
88
|
+
borderRadius: "8px",
|
89
|
+
minWidth: '148px'
|
89
90
|
},
|
90
91
|
"& input": {
|
91
92
|
paddingBottom: "0px",
|
@@ -110,7 +111,8 @@ const useDataViewStyles = (theme, appTheme) => ({
|
|
110
111
|
"& .MuiInputBase-input": {
|
111
112
|
paddingBottom: "0px",
|
112
113
|
fontWeight: "bold",
|
113
|
-
fontSize: "16px"
|
114
|
+
fontSize: "16px",
|
115
|
+
color: appTheme?.palette?.editor?.textFormatTextColor
|
114
116
|
},
|
115
117
|
[theme?.breakpoints?.between("xs", "md")]: {
|
116
118
|
width: "100%",
|
@@ -130,10 +132,12 @@ const useDataViewStyles = (theme, appTheme) => ({
|
|
130
132
|
width: "150px",
|
131
133
|
border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
|
132
134
|
borderRadius: "8px",
|
135
|
+
fontFamily: 'Inter !important',
|
133
136
|
background: appTheme?.palette?.editor?.tv_pop_bg,
|
134
137
|
color: appTheme?.palette?.editor?.tv_text_primary,
|
135
138
|
"& .MuiButtonBase-root": {
|
136
139
|
fontSize: "14px",
|
140
|
+
padding: '6px 8px',
|
137
141
|
"& svg": {
|
138
142
|
width: "16px",
|
139
143
|
height: "16px",
|
@@ -144,7 +148,10 @@ const useDataViewStyles = (theme, appTheme) => ({
|
|
144
148
|
borderRadius: "8px",
|
145
149
|
color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
|
146
150
|
"& svg": {
|
147
|
-
color: `${appTheme?.palette?.editor?.tv_hover_text} !important
|
151
|
+
color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
|
152
|
+
'& path': {
|
153
|
+
stroke: `${appTheme?.palette?.editor?.tv_hover_text} !important`
|
154
|
+
}
|
148
155
|
}
|
149
156
|
}
|
150
157
|
}
|
@@ -85,6 +85,13 @@ const TableStyles = theme => {
|
|
85
85
|
"&:hover": {
|
86
86
|
background: "#2563EB"
|
87
87
|
}
|
88
|
+
},
|
89
|
+
mobileToolDrawer: {
|
90
|
+
"& .customSelectContainer": {
|
91
|
+
border: "none !important",
|
92
|
+
padding: "0px !important",
|
93
|
+
boxShadow: "none !important"
|
94
|
+
}
|
88
95
|
}
|
89
96
|
};
|
90
97
|
};
|
@@ -47,7 +47,8 @@ const MoreTableSettings = props => {
|
|
47
47
|
exandTools,
|
48
48
|
handleAction,
|
49
49
|
editorTheme,
|
50
|
-
setExpandTools
|
50
|
+
setExpandTools,
|
51
|
+
classes
|
51
52
|
} = props;
|
52
53
|
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
53
54
|
return isMobile ? /*#__PURE__*/_jsx(SwipeableDrawerComponent, {
|
@@ -56,9 +57,12 @@ const MoreTableSettings = props => {
|
|
56
57
|
setExpandTools(false);
|
57
58
|
},
|
58
59
|
swipeableDrawer: false,
|
59
|
-
children: /*#__PURE__*/_jsx(
|
60
|
-
|
61
|
-
|
60
|
+
children: /*#__PURE__*/_jsx(Box, {
|
61
|
+
sx: classes.mobileToolDrawer,
|
62
|
+
children: /*#__PURE__*/_jsx(ToolTableComponent, {
|
63
|
+
handleAction: handleAction,
|
64
|
+
editorTheme: editorTheme
|
65
|
+
})
|
62
66
|
})
|
63
67
|
}) : /*#__PURE__*/_jsx(Popper, {
|
64
68
|
open: Boolean(exandTools),
|
@@ -321,7 +325,8 @@ const Table = props => {
|
|
321
325
|
exandTools: exandTools,
|
322
326
|
handleAction: handleAction,
|
323
327
|
editorTheme: editorTheme,
|
324
|
-
setExpandTools: setExpandTools
|
328
|
+
setExpandTools: setExpandTools,
|
329
|
+
classes: classes
|
325
330
|
}), openSetttings ? /*#__PURE__*/_jsx(TablePopup, {
|
326
331
|
element: tableProps?.styleProps || {},
|
327
332
|
onSave: onSave,
|
@@ -139,14 +139,17 @@ const MiniToolbar = props => {
|
|
139
139
|
icon: Icon
|
140
140
|
}) => {
|
141
141
|
const isDisabled = popupType === type || type === "undo" ? !canUndo : type === "redo" ? !canRedo : false;
|
142
|
+
const isFocussed = editor?.selection?.anchor?.path;
|
143
|
+
const disableAddElement = type === "addElement" && !isFocussed;
|
142
144
|
return /*#__PURE__*/_jsx(Tooltip, {
|
143
145
|
arrow: true,
|
144
146
|
title: label,
|
145
147
|
disableHoverListener: toolTip,
|
146
148
|
children: /*#__PURE__*/_jsx(IconButton, {
|
147
|
-
className: `${type === popper ? "active" : ""} ${type === "undo" && !canUndo || type === "redo" && !canRedo ? "disabled" : ""} ${type === "undo" ? canUndo ? "activeUndo" : "disabledUndo" : type === "redo" ? canRedo ? "activeRedo" : "disabledRedo" : ""}
|
149
|
+
className: `${type === popper ? "active" : ""} ${type === "undo" && !canUndo || type === "redo" && !canRedo ? "disabled" : ""} ${type === "undo" ? canUndo ? "activeUndo" : "disabledUndo" : type === "redo" ? canRedo ? "activeRedo" : "disabledRedo" : ""} ${disableAddElement ? "disableAddElement" : ""}
|
150
|
+
`,
|
148
151
|
onClick: handleClick(type),
|
149
|
-
disabled: isDisabled,
|
152
|
+
disabled: isDisabled || disableAddElement,
|
150
153
|
children: type === "page-settings" ? /*#__PURE__*/_jsx(PageSettingsButton, {
|
151
154
|
from: "miniToolBar",
|
152
155
|
icoBtnType: "mini",
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
const ArrowDownIcon = () => {
|
4
|
+
return /*#__PURE__*/_jsxs("svg", {
|
5
|
+
width: "16",
|
6
|
+
height: "16",
|
7
|
+
viewBox: "0 0 16 16",
|
8
|
+
fill: "none",
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
10
|
+
children: [/*#__PURE__*/_jsx("path", {
|
11
|
+
d: "M3.95354 9.61984L8.00021 13.6665L12.0469 9.61984",
|
12
|
+
stroke: "#64748B",
|
13
|
+
strokeMiterlimit: "10",
|
14
|
+
strokeLinecap: "round",
|
15
|
+
strokeLinejoin: "round"
|
16
|
+
}), /*#__PURE__*/_jsx("path", {
|
17
|
+
d: "M8 2.33322V13.5532",
|
18
|
+
stroke: "#64748B",
|
19
|
+
strokeMiterlimit: "10",
|
20
|
+
strokeLinecap: "round",
|
21
|
+
strokeLinejoin: "round"
|
22
|
+
})]
|
23
|
+
});
|
24
|
+
};
|
25
|
+
export default ArrowDownIcon;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
const ArrowUpIcon = () => {
|
4
|
+
return /*#__PURE__*/_jsxs("svg", {
|
5
|
+
width: "16",
|
6
|
+
height: "16",
|
7
|
+
viewBox: "0 0 16 16",
|
8
|
+
fill: "none",
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
10
|
+
children: [/*#__PURE__*/_jsx("path", {
|
11
|
+
d: "M12.0465 6.38016L7.99979 2.3335L3.95312 6.38016",
|
12
|
+
stroke: "#64748B",
|
13
|
+
strokeMiterlimit: "10",
|
14
|
+
strokeLinecap: "round",
|
15
|
+
strokeLinejoin: "round"
|
16
|
+
}), /*#__PURE__*/_jsx("path", {
|
17
|
+
d: "M8 13.6668V2.44678",
|
18
|
+
stroke: "#64748B",
|
19
|
+
strokeMiterlimit: "10",
|
20
|
+
strokeLinecap: "round",
|
21
|
+
strokeLinejoin: "round"
|
22
|
+
})]
|
23
|
+
});
|
24
|
+
};
|
25
|
+
export default ArrowUpIcon;
|