@flozy/editor 5.1.5 → 5.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/ChatEditor.js +25 -34
- package/dist/Editor/CommonEditor.js +15 -9
- package/dist/Editor/Editor.css +56 -12
- package/dist/Editor/Elements/AI/AIInput.js +0 -1
- package/dist/Editor/Elements/AI/CustomSelect.js +17 -10
- package/dist/Editor/Elements/AI/Styles.js +7 -1
- package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
- package/dist/Editor/Elements/Button/EditorButton.js +1 -1
- package/dist/Editor/Elements/Carousel/CarouselItem.js +1 -1
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +7 -5
- package/dist/Editor/Elements/Color Picker/Styles.js +7 -3
- package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
- package/dist/Editor/Elements/DataView/DataView.js +109 -0
- package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +66 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +162 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +40 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +67 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +39 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +74 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +64 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +106 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +174 -0
- package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +37 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +111 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +60 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +36 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +160 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +190 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +42 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +179 -0
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +112 -0
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +227 -0
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +70 -0
- package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +288 -0
- package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
- package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +72 -0
- package/dist/Editor/Elements/DataView/styles.js +143 -0
- package/dist/Editor/Elements/Divider/Divider.js +15 -14
- package/dist/Editor/Elements/Form/Form.js +38 -2
- package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormDate.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormEmail.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormText.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +6 -1
- package/dist/Editor/Elements/Form/FormPopup.js +12 -9
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +20 -1
- package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +1 -1
- package/dist/Editor/Elements/Grid/GridButton.js +2 -2
- package/dist/Editor/Elements/Grid/GridItem.js +21 -18
- package/dist/Editor/Elements/Link/LinkButton.js +1 -1
- package/dist/Editor/Elements/Signature/Signature.css +1 -1
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
- package/dist/Editor/Elements/Signature/SignaturePopup.js +13 -48
- package/dist/Editor/Elements/SimpleText/index.js +8 -1
- package/dist/Editor/Elements/SimpleText/style.js +13 -1
- package/dist/Editor/Elements/Table/AddRowCol.js +77 -0
- package/dist/Editor/Elements/Table/DragButton.js +141 -0
- package/dist/Editor/Elements/Table/DragStyles.js +70 -0
- package/dist/Editor/Elements/Table/Draggable.js +25 -0
- package/dist/Editor/Elements/Table/Droppable.js +53 -0
- package/dist/Editor/Elements/Table/Styles.js +25 -43
- package/dist/Editor/Elements/Table/Table.js +205 -138
- package/dist/Editor/Elements/Table/TableCell.js +355 -102
- package/dist/Editor/Elements/Table/TablePopup.js +9 -3
- package/dist/Editor/Elements/Table/TableRow.js +10 -2
- package/dist/Editor/Elements/Table/TableTool.js +101 -0
- package/dist/Editor/Elements/Table/tableHelper.js +71 -0
- package/dist/Editor/Styles/EditorStyles.js +3 -1
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +10 -0
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +7 -12
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +10 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -0
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +0 -2
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -6
- package/dist/Editor/Toolbar/Mini/Styles.js +4 -1
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +19 -15
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +411 -49
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +62 -8
- package/dist/Editor/Toolbar/PopupTool/index.js +5 -6
- package/dist/Editor/Toolbar/Toolbar.js +6 -0
- package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
- package/dist/Editor/assets/svg/BrainIcon.js +2 -2
- package/dist/Editor/assets/svg/TableIcons.js +220 -0
- package/dist/Editor/common/ColorPickerButton.js +3 -2
- package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
- package/dist/Editor/common/Icon.js +20 -19
- package/dist/Editor/common/LinkSettings/NavComponents.js +2 -1
- package/dist/Editor/common/LinkSettings/index.js +2 -1
- package/dist/Editor/common/MentionsPopup/Styles.js +152 -8
- package/dist/Editor/common/MentionsPopup/index.js +1 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +108 -12
- 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 +14 -2
- package/dist/Editor/common/Select/index.js +20 -0
- package/dist/Editor/common/Select/styles.js +17 -0
- package/dist/Editor/common/Shorthands/elements.js +13 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +8 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +79 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +7 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +5 -2
- package/dist/Editor/common/StyleBuilder/formStyle.js +268 -149
- package/dist/Editor/common/StyleBuilder/index.js +84 -11
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +4 -0
- package/dist/Editor/common/StyleBuilder/tableStyle.js +69 -25
- package/dist/Editor/common/SwipeableDrawer/style.js +15 -4
- package/dist/Editor/common/Uploader.js +8 -0
- package/dist/Editor/common/iconListV2.js +378 -40
- package/dist/Editor/common/iconslist.js +23 -17
- package/dist/Editor/commonStyle.js +126 -9
- package/dist/Editor/helper/deserialize/index.js +4 -1
- package/dist/Editor/helper/index.js +2 -2
- package/dist/Editor/helper/theme.js +24 -1
- package/dist/Editor/hooks/useMouseMove.js +5 -2
- package/dist/Editor/hooks/useTable.js +195 -0
- package/dist/Editor/plugins/withCustomDeleteBackward.js +3 -2
- package/dist/Editor/plugins/withHTML.js +17 -1
- package/dist/Editor/plugins/withLayout.js +48 -1
- package/dist/Editor/utils/SlateUtilityFunctions.js +18 -0
- package/dist/Editor/utils/button.js +4 -4
- package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +21 -0
- package/dist/Editor/utils/dataView.js +43 -0
- package/dist/Editor/utils/embed.js +2 -1
- package/dist/Editor/utils/events.js +0 -1
- package/dist/Editor/utils/font.js +11 -4
- package/dist/Editor/utils/formfield.js +8 -4
- package/dist/Editor/utils/helper.js +67 -2
- package/dist/Editor/utils/insertNewLine.js +19 -1
- package/dist/Editor/utils/pageSettings.js +14 -2
- package/dist/Editor/utils/serializeToText.js +2 -0
- package/dist/Editor/utils/table.js +228 -24
- package/package.json +1 -1
@@ -0,0 +1,71 @@
|
|
1
|
+
import { getNode } from "../../utils/helper";
|
2
|
+
import { serializeToText } from "../../utils/serializeToText";
|
3
|
+
export const getRectangleBounds = tableSelection => {
|
4
|
+
const {
|
5
|
+
startCellPath,
|
6
|
+
endCellPath
|
7
|
+
} = tableSelection;
|
8
|
+
if (!startCellPath?.length) return [];
|
9
|
+
const startPath = startCellPath.slice(0, -2);
|
10
|
+
const startCell = startCellPath.slice(-2);
|
11
|
+
const endCell = endCellPath.slice(-2);
|
12
|
+
const [startRow, startCol] = startCell;
|
13
|
+
const [endRow, endCol] = endCell?.length ? endCell : startCell;
|
14
|
+
const minRow = Math.min(startRow, endRow);
|
15
|
+
const maxRow = Math.max(startRow, endRow);
|
16
|
+
const minCol = Math.min(startCol, endCol);
|
17
|
+
const maxCol = Math.max(startCol, endCol);
|
18
|
+
const selectedPaths = [];
|
19
|
+
for (let row = minRow; row <= maxRow; row++) {
|
20
|
+
for (let col = minCol; col <= maxCol; col++) {
|
21
|
+
selectedPaths.push([...startPath, row, col]);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
return selectedPaths;
|
25
|
+
};
|
26
|
+
export const createCopiedTableStructure = (editor, tableSelection, currentTableNode, tablePath) => {
|
27
|
+
const selectedCells = getRectangleBounds(tableSelection);
|
28
|
+
const formattedCells = selectedCells.map(cell => cell.slice(-2));
|
29
|
+
const tableChild = [];
|
30
|
+
const rowIndexes = [...new Set(formattedCells.map(cell => cell[0]))];
|
31
|
+
rowIndexes.forEach((rowIndex, row_i) => {
|
32
|
+
const row = {
|
33
|
+
type: "table-row",
|
34
|
+
children: []
|
35
|
+
};
|
36
|
+
|
37
|
+
// Filter cells that belong to the current row
|
38
|
+
const cellsInRow = formattedCells.filter(cell => cell[0] === rowIndex);
|
39
|
+
|
40
|
+
// Iterate over the columns of the row to create table cells
|
41
|
+
const columnIndexes = [...new Set(cellsInRow.map(cell => cell[1]))];
|
42
|
+
columnIndexes.forEach((columnIndex, col_i) => {
|
43
|
+
const cellPath = [...tablePath, rowIndex, columnIndex];
|
44
|
+
const columnNode = getNode(editor, cellPath);
|
45
|
+
row.children.push(columnNode);
|
46
|
+
});
|
47
|
+
tableChild.push(row);
|
48
|
+
});
|
49
|
+
const table = {
|
50
|
+
...currentTableNode,
|
51
|
+
children: tableChild,
|
52
|
+
rows: rowIndexes?.length,
|
53
|
+
columns: tableChild[0]?.children?.length // first row's children length
|
54
|
+
};
|
55
|
+
|
56
|
+
return table;
|
57
|
+
};
|
58
|
+
export const tableNodeToDom = tableNode => {
|
59
|
+
const tableEle = document.createElement("table");
|
60
|
+
tableNode.children?.forEach(row => {
|
61
|
+
const rowEle = document.createElement("tr");
|
62
|
+
row?.children?.forEach(cell => {
|
63
|
+
const cellEle = document.createElement("td");
|
64
|
+
const cellText = serializeToText(cell);
|
65
|
+
cellEle.innerHTML = cellText;
|
66
|
+
rowEle.appendChild(cellEle);
|
67
|
+
});
|
68
|
+
tableEle.appendChild(rowEle);
|
69
|
+
});
|
70
|
+
return tableEle;
|
71
|
+
};
|
@@ -291,9 +291,11 @@ const editorStyles = ({
|
|
291
291
|
}
|
292
292
|
},
|
293
293
|
fullScreenWrapper: {
|
294
|
+
"& .editor-wrapper": {
|
295
|
+
paddingTop: '20px'
|
296
|
+
},
|
294
297
|
"& .MuiPaper-root": {
|
295
298
|
borderRadius: "0px !important",
|
296
|
-
paddingTop: "20px",
|
297
299
|
"& .MuiDialogTitle-root": {
|
298
300
|
position: "absolute",
|
299
301
|
top: 0,
|
@@ -2,6 +2,8 @@ import React from "react";
|
|
2
2
|
import Icon from "../../common/Icon";
|
3
3
|
import Button from "../../common/Button";
|
4
4
|
import { toggleBlock, isBlockActive, isMarkActive, toggleMark } from "../../utils/SlateUtilityFunctions.js";
|
5
|
+
import usePopupStyle from "../PopupTool/PopupToolStyle";
|
6
|
+
import { useEditorContext } from "../../hooks/useMouseMove";
|
5
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
8
|
const MARK_TYPES = ["doublequote"];
|
7
9
|
const BlockButton = props => {
|
@@ -12,6 +14,10 @@ const BlockButton = props => {
|
|
12
14
|
} = props;
|
13
15
|
const isMark = MARK_TYPES?.indexOf(format) >= 0;
|
14
16
|
const isActive = isMark ? isMarkActive(editor, format) : isBlockActive(editor, format);
|
17
|
+
const {
|
18
|
+
theme
|
19
|
+
} = useEditorContext();
|
20
|
+
const classes = usePopupStyle(theme);
|
15
21
|
return /*#__PURE__*/_jsx(Button, {
|
16
22
|
active: isActive,
|
17
23
|
format: format,
|
@@ -24,6 +30,10 @@ const BlockButton = props => {
|
|
24
30
|
}
|
25
31
|
},
|
26
32
|
title: title,
|
33
|
+
sx: classes.textAlignButtons,
|
34
|
+
style: {
|
35
|
+
color: "#64748B"
|
36
|
+
},
|
27
37
|
children: /*#__PURE__*/_jsx(Icon, {
|
28
38
|
icon: format
|
29
39
|
})
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Select, MenuItem } from "@mui/material";
|
3
3
|
import { addMarkData, activeMark } from "../../utils/SlateUtilityFunctions.js";
|
4
|
-
import
|
4
|
+
import KeyboardArrowDownRoundedIcon from "@mui/icons-material/KeyboardArrowDownRounded";
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
const Dropdown = ({
|
7
7
|
classes,
|
@@ -23,23 +23,18 @@ const Dropdown = ({
|
|
23
23
|
value: value,
|
24
24
|
className: "editor-dd",
|
25
25
|
onChange: e => changeMarkData(e, format),
|
26
|
-
style: {
|
27
|
-
fontFamily: fontFamilyMap[value],
|
28
|
-
width: width || "100%",
|
29
|
-
height: "36px",
|
30
|
-
borderRadius: "10px",
|
31
|
-
fontSize: "12px"
|
32
|
-
},
|
33
26
|
MenuProps: {
|
34
27
|
PaperProps: {
|
35
28
|
sx: classes?.textOptions
|
36
29
|
}
|
37
30
|
},
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
31
|
+
sx: classes.textFormatSelect,
|
32
|
+
IconComponent: KeyboardArrowDownRoundedIcon,
|
33
|
+
children: options.map((item, index) => /*#__PURE__*/_jsx(MenuItem
|
34
|
+
// style={{ fontFamily: item.text }}
|
35
|
+
, {
|
42
36
|
value: item.value,
|
37
|
+
sx: classes.textFormatSelectOptions,
|
43
38
|
children: item.text
|
44
39
|
}, index))
|
45
40
|
});
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Autocomplete, TextField } from "@mui/material";
|
3
3
|
import { activeMark, addMarkData } from "../../utils/SlateUtilityFunctions.js";
|
4
|
+
import usePopupStyle from "../PopupTool/PopupToolStyle.js";
|
5
|
+
import { useEditorContext } from "../../hooks/useMouseMove.js";
|
6
|
+
import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';
|
4
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
8
|
const FontFamilyAutocomplete = ({
|
6
9
|
editor,
|
@@ -27,17 +30,19 @@ const FontFamilyAutocomplete = ({
|
|
27
30
|
});
|
28
31
|
}
|
29
32
|
};
|
33
|
+
const {
|
34
|
+
theme
|
35
|
+
} = useEditorContext();
|
36
|
+
const classes = usePopupStyle(theme);
|
30
37
|
return /*#__PURE__*/_jsx(Autocomplete, {
|
31
38
|
size: "small",
|
32
39
|
style: {
|
33
40
|
fontFamily: `${value || ""}`,
|
34
|
-
width: width || "100%"
|
35
|
-
height: "36px",
|
36
|
-
borderRadius: "10px",
|
37
|
-
fontSize: "14px"
|
41
|
+
width: width || "100%"
|
38
42
|
},
|
39
43
|
value: value || options?.[0],
|
40
44
|
className: "editor-dd",
|
45
|
+
sx: classes.autoCompleteaFontFamily,
|
41
46
|
onChange: (e, newValue) => changeMarkData(e, newValue, format),
|
42
47
|
getOptionLabel: option => {
|
43
48
|
return option;
|
@@ -53,6 +58,7 @@ const FontFamilyAutocomplete = ({
|
|
53
58
|
children: option
|
54
59
|
});
|
55
60
|
},
|
61
|
+
popupIcon: /*#__PURE__*/_jsx(KeyboardArrowDownRoundedIcon, {}),
|
56
62
|
renderInput: params => /*#__PURE__*/_jsx(TextField, {
|
57
63
|
sx: {
|
58
64
|
"& .MuiInputBase-root.MuiOutlinedInput-root": {
|
@@ -19,9 +19,9 @@ const POPUP_TYPES = {
|
|
19
19
|
addTemplate: AddTemplates
|
20
20
|
};
|
21
21
|
const POPUP_OFFSETS = {
|
22
|
-
textFormat: [
|
23
|
-
addElement: [
|
24
|
-
addTemplate: [
|
22
|
+
textFormat: [75, 5],
|
23
|
+
addElement: [40, 5],
|
24
|
+
addTemplate: [10, 5]
|
25
25
|
};
|
26
26
|
const FULLSCREEN_POPUP = {
|
27
27
|
addTemplate: true
|
@@ -180,9 +180,6 @@ const MiniToolbar = props => {
|
|
180
180
|
}],
|
181
181
|
children: PopupComponent ? /*#__PURE__*/_jsxs(Paper, {
|
182
182
|
className: "papper-wrpr",
|
183
|
-
style: {
|
184
|
-
borderRadius: "10px"
|
185
|
-
},
|
186
183
|
children: [/*#__PURE__*/_jsx(PopperHeader, {
|
187
184
|
title: POPUP_TITLE[popper],
|
188
185
|
classes: popupStyles,
|
@@ -39,7 +39,10 @@ const miniToolbarStyles = theme => ({
|
|
39
39
|
},
|
40
40
|
"&.active": {
|
41
41
|
"& svg": {
|
42
|
-
stroke: theme?.palette?.editor?.activeColor
|
42
|
+
stroke: theme?.palette?.editor?.activeColor,
|
43
|
+
"& path": {
|
44
|
+
stroke: theme?.palette?.editor?.activeColor
|
45
|
+
}
|
43
46
|
}
|
44
47
|
},
|
45
48
|
"&.activeUndo": {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Fade, Grid, IconButton, Paper, Popper } from "@mui/material";
|
2
2
|
import SelectTypography from "./SelectTypography";
|
3
3
|
import SelectList from "./SelectList";
|
4
4
|
import { toolbarGroups } from "../../toolbarGroups";
|
@@ -95,9 +95,9 @@ const MiniTextFormat = props => {
|
|
95
95
|
active: isBlockActive(editor, link.format),
|
96
96
|
editor: editor,
|
97
97
|
customProps: customProps
|
98
|
-
}, link.id), /*#__PURE__*/_jsx(
|
98
|
+
}, link.id), /*#__PURE__*/_jsx(IconButton, {
|
99
99
|
onClick: e => setAnchorEl(document.getElementById("mini-text-editor-wrapper")),
|
100
|
-
className:
|
100
|
+
className: `textSettingsIcon ${open ? "btnActive" : ""}`,
|
101
101
|
children: /*#__PURE__*/_jsx(TextToolIcon, {})
|
102
102
|
}), /*#__PURE__*/_jsx(Popper, {
|
103
103
|
id: id,
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import { Grid, Typography, IconButton, Tooltip, TextField } from "@mui/material";
|
2
|
+
import { Grid, Typography, IconButton, Tooltip, TextField, InputAdornment } from "@mui/material";
|
3
3
|
import CloseIcon from "@mui/icons-material/Close";
|
4
|
-
import OpenInFullIcon from "@mui/icons-material/OpenInFull";
|
5
4
|
import CloseFullscreenIcon from "@mui/icons-material/CloseFullscreen";
|
6
5
|
import Icon from "../../common/Icon";
|
6
|
+
import { ToggleFullScreenIcon } from "../../common/iconListV2";
|
7
|
+
import { SearchIcon } from "../../common/iconslist";
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
10
|
const SearchBox = props => {
|
@@ -16,7 +17,13 @@ const SearchBox = props => {
|
|
16
17
|
sx: classes.searchBox,
|
17
18
|
size: "small",
|
18
19
|
value: search,
|
19
|
-
onChange: handleChange
|
20
|
+
onChange: handleChange,
|
21
|
+
InputProps: {
|
22
|
+
startAdornment: /*#__PURE__*/_jsx(InputAdornment, {
|
23
|
+
position: "start",
|
24
|
+
children: /*#__PURE__*/_jsx(SearchIcon, {})
|
25
|
+
})
|
26
|
+
}
|
20
27
|
});
|
21
28
|
};
|
22
29
|
const PopperHeader = props => {
|
@@ -39,18 +46,14 @@ const PopperHeader = props => {
|
|
39
46
|
padding: 2,
|
40
47
|
className: "headerContainer",
|
41
48
|
style: {
|
42
|
-
paddingTop: "
|
49
|
+
paddingTop: "5px"
|
43
50
|
},
|
44
51
|
children: /*#__PURE__*/_jsxs(Grid, {
|
45
52
|
item: true,
|
46
53
|
xs: 12,
|
47
|
-
style: {
|
48
|
-
display: "flex",
|
49
|
-
borderBottom: "1px solid #DCE4EC"
|
50
|
-
},
|
51
54
|
justifyContent: "space-between",
|
52
55
|
alignItems: "center",
|
53
|
-
|
56
|
+
sx: classes.textSettingHeader,
|
54
57
|
children: [/*#__PURE__*/_jsx(Typography, {
|
55
58
|
color: "primary",
|
56
59
|
sx: {
|
@@ -64,13 +67,14 @@ const PopperHeader = props => {
|
|
64
67
|
justifyContent: "end",
|
65
68
|
children: [needFullscreen ? /*#__PURE__*/_jsxs(Grid, {
|
66
69
|
sx: {
|
67
|
-
position:
|
70
|
+
position: "relative"
|
68
71
|
},
|
72
|
+
className: "inputField",
|
69
73
|
children: [/*#__PURE__*/_jsx(IconButton, {
|
70
|
-
className: openSearch ?
|
74
|
+
className: openSearch ? "searchContainer" : "",
|
71
75
|
onClick: handleSearchButton,
|
72
76
|
children: /*#__PURE__*/_jsx(Icon, {
|
73
|
-
icon: openSearch ?
|
77
|
+
icon: openSearch ? "closeIcon" : "SearchIcon"
|
74
78
|
})
|
75
79
|
}), openSearch && /*#__PURE__*/_jsx(SearchBox, {
|
76
80
|
classes: classes,
|
@@ -83,11 +87,11 @@ const PopperHeader = props => {
|
|
83
87
|
children: /*#__PURE__*/_jsx(IconButton, {
|
84
88
|
style: {
|
85
89
|
marginRight: "8px",
|
86
|
-
marginLeft: "
|
90
|
+
marginLeft: "4px"
|
87
91
|
},
|
88
|
-
className: "close-popupbtn",
|
92
|
+
className: "close-popupbtn toogleFullScreenBtn",
|
89
93
|
onClick: toggleFullscreen,
|
90
|
-
children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(
|
94
|
+
children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(ToggleFullScreenIcon, {})
|
91
95
|
})
|
92
96
|
}) : null, /*#__PURE__*/_jsx(Tooltip, {
|
93
97
|
title: "Close",
|