@flozy/editor 5.1.4 → 5.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/dist/Editor/ChatEditor.js +25 -34
  2. package/dist/Editor/CommonEditor.js +15 -9
  3. package/dist/Editor/Editor.css +56 -12
  4. package/dist/Editor/Elements/AI/AIInput.js +0 -1
  5. package/dist/Editor/Elements/AI/CustomSelect.js +17 -10
  6. package/dist/Editor/Elements/AI/Styles.js +7 -1
  7. package/dist/Editor/Elements/Button/EditorButton.js +1 -1
  8. package/dist/Editor/Elements/Carousel/CarouselItem.js +1 -1
  9. package/dist/Editor/Elements/Color Picker/ColorButtons.js +7 -5
  10. package/dist/Editor/Elements/Color Picker/Styles.js +7 -3
  11. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  12. package/dist/Editor/Elements/DataView/DataView.js +101 -0
  13. package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
  14. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +59 -0
  15. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +30 -0
  16. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +140 -0
  17. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +40 -0
  18. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +59 -0
  19. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +26 -0
  20. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +38 -0
  21. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
  22. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
  23. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
  24. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
  25. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
  26. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
  27. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
  28. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +74 -0
  29. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +64 -0
  30. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +106 -0
  31. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +174 -0
  32. package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
  33. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
  34. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +37 -0
  35. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +111 -0
  36. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +62 -0
  37. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +36 -0
  38. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
  39. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +160 -0
  40. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +190 -0
  41. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +42 -0
  42. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +30 -0
  43. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
  44. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +179 -0
  45. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +100 -0
  46. package/dist/Editor/Elements/DataView/Layouts/TableView.js +227 -0
  47. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +70 -0
  48. package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
  49. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +288 -0
  50. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
  51. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +72 -0
  52. package/dist/Editor/Elements/DataView/styles.js +143 -0
  53. package/dist/Editor/Elements/Divider/Divider.js +15 -14
  54. package/dist/Editor/Elements/Form/Form.js +38 -2
  55. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +7 -1
  56. package/dist/Editor/Elements/Form/FormElements/FormDate.js +7 -1
  57. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +7 -1
  58. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +7 -1
  59. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +7 -1
  60. package/dist/Editor/Elements/Form/FormElements/FormText.js +7 -1
  61. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +6 -1
  62. package/dist/Editor/Elements/Form/FormPopup.js +12 -9
  63. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  64. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +20 -1
  65. package/dist/Editor/Elements/Grid/GridButton.js +2 -1
  66. package/dist/Editor/Elements/Grid/GridItem.js +12 -0
  67. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  68. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  69. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  70. package/dist/Editor/Elements/Signature/SignaturePopup.js +13 -48
  71. package/dist/Editor/Elements/SimpleText/index.js +8 -1
  72. package/dist/Editor/Elements/SimpleText/style.js +8 -1
  73. package/dist/Editor/Elements/Table/AddRowCol.js +77 -0
  74. package/dist/Editor/Elements/Table/DragButton.js +141 -0
  75. package/dist/Editor/Elements/Table/DragStyles.js +70 -0
  76. package/dist/Editor/Elements/Table/Draggable.js +25 -0
  77. package/dist/Editor/Elements/Table/Droppable.js +53 -0
  78. package/dist/Editor/Elements/Table/Styles.js +25 -43
  79. package/dist/Editor/Elements/Table/Table.js +205 -138
  80. package/dist/Editor/Elements/Table/TableCell.js +355 -102
  81. package/dist/Editor/Elements/Table/TablePopup.js +9 -3
  82. package/dist/Editor/Elements/Table/TableRow.js +10 -2
  83. package/dist/Editor/Elements/Table/TableTool.js +101 -0
  84. package/dist/Editor/Elements/Table/tableHelper.js +71 -0
  85. package/dist/Editor/Styles/EditorStyles.js +3 -1
  86. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +10 -0
  87. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +7 -11
  88. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +10 -4
  89. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -0
  90. package/dist/Editor/Toolbar/FormatTools/TextSize.js +0 -2
  91. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -6
  92. package/dist/Editor/Toolbar/Mini/Styles.js +4 -1
  93. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  94. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +16 -11
  95. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +416 -49
  96. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +62 -8
  97. package/dist/Editor/Toolbar/PopupTool/index.js +5 -6
  98. package/dist/Editor/Toolbar/Toolbar.js +6 -0
  99. package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
  100. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  101. package/dist/Editor/assets/svg/TableIcons.js +220 -0
  102. package/dist/Editor/common/ColorPickerButton.js +3 -2
  103. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  104. package/dist/Editor/common/Icon.js +24 -23
  105. package/dist/Editor/common/LinkSettings/NavComponents.js +2 -1
  106. package/dist/Editor/common/LinkSettings/index.js +2 -1
  107. package/dist/Editor/common/MentionsPopup/Styles.js +151 -3
  108. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  109. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +108 -12
  110. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +14 -2
  111. package/dist/Editor/common/Select/index.js +20 -0
  112. package/dist/Editor/common/Select/styles.js +17 -0
  113. package/dist/Editor/common/Shorthands/elements.js +13 -1
  114. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
  115. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +8 -4
  116. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
  117. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
  118. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +79 -0
  119. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +7 -7
  120. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +5 -2
  121. package/dist/Editor/common/StyleBuilder/formStyle.js +268 -149
  122. package/dist/Editor/common/StyleBuilder/index.js +84 -11
  123. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +4 -0
  124. package/dist/Editor/common/StyleBuilder/tableStyle.js +69 -25
  125. package/dist/Editor/common/SwipeableDrawer/style.js +15 -4
  126. package/dist/Editor/common/Uploader.js +8 -0
  127. package/dist/Editor/common/iconListV2.js +378 -40
  128. package/dist/Editor/common/iconslist.js +23 -17
  129. package/dist/Editor/commonStyle.js +126 -9
  130. package/dist/Editor/helper/deserialize/index.js +4 -1
  131. package/dist/Editor/helper/index.js +2 -2
  132. package/dist/Editor/helper/theme.js +24 -1
  133. package/dist/Editor/hooks/useMouseMove.js +5 -2
  134. package/dist/Editor/hooks/useTable.js +195 -0
  135. package/dist/Editor/plugins/withCustomDeleteBackward.js +3 -2
  136. package/dist/Editor/plugins/withHTML.js +17 -1
  137. package/dist/Editor/plugins/withLayout.js +48 -1
  138. package/dist/Editor/utils/SlateUtilityFunctions.js +18 -0
  139. package/dist/Editor/utils/button.js +4 -4
  140. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +21 -0
  141. package/dist/Editor/utils/dataView.js +43 -0
  142. package/dist/Editor/utils/embed.js +2 -1
  143. package/dist/Editor/utils/events.js +0 -1
  144. package/dist/Editor/utils/font.js +11 -4
  145. package/dist/Editor/utils/formfield.js +8 -4
  146. package/dist/Editor/utils/helper.js +67 -2
  147. package/dist/Editor/utils/insertNewLine.js +19 -1
  148. package/dist/Editor/utils/pageSettings.js +14 -2
  149. package/dist/Editor/utils/serializeToText.js +2 -0
  150. package/dist/Editor/utils/table.js +228 -24
  151. 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
  })
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { Select, MenuItem } from "@mui/material";
3
3
  import { addMarkData, activeMark } from "../../utils/SlateUtilityFunctions.js";
4
4
  import { fontFamilyMap } from "../../utils/font";
5
+ import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  const Dropdown = ({
7
8
  classes,
@@ -23,23 +24,18 @@ const Dropdown = ({
23
24
  value: value,
24
25
  className: "editor-dd",
25
26
  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
27
  MenuProps: {
34
28
  PaperProps: {
35
29
  sx: classes?.textOptions
36
30
  }
37
31
  },
38
- children: options.map((item, index) => /*#__PURE__*/_jsx(MenuItem, {
39
- style: {
40
- fontFamily: item.text
41
- },
32
+ sx: classes.textFormatSelect,
33
+ IconComponent: KeyboardArrowDownRoundedIcon,
34
+ children: options.map((item, index) => /*#__PURE__*/_jsx(MenuItem
35
+ // style={{ fontFamily: item.text }}
36
+ , {
42
37
  value: item.value,
38
+ sx: classes.textFormatSelectOptions,
43
39
  children: item.text
44
40
  }, index))
45
41
  });
@@ -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": {
@@ -16,6 +16,9 @@ const MarkButton = ({
16
16
  toggleMark(editor, format);
17
17
  },
18
18
  title: title,
19
+ style: {
20
+ color: "#64748B"
21
+ },
19
22
  children: /*#__PURE__*/_jsx(Icon, {
20
23
  icon: format
21
24
  })
@@ -93,8 +93,6 @@ const TextSize = ({
93
93
  inputProps: {
94
94
  style: {
95
95
  width: fullWidth ? "100%" : "30px",
96
- // textAlign: "center",
97
- height: "19px",
98
96
  fontSize: "12px"
99
97
  }
100
98
  },
@@ -19,9 +19,9 @@ const POPUP_TYPES = {
19
19
  addTemplate: AddTemplates
20
20
  };
21
21
  const POPUP_OFFSETS = {
22
- textFormat: [80, 5],
23
- addElement: [60, 5],
24
- addTemplate: [20, 5]
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 { Button, Fade, Grid, Paper, Popper } from "@mui/material";
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(Button, {
98
+ }, link.id), /*#__PURE__*/_jsx(IconButton, {
99
99
  onClick: e => setAnchorEl(document.getElementById("mini-text-editor-wrapper")),
100
- className: "textSettingsIcon",
100
+ className: `textSettingsIcon ${open ? "btnActive" : ""}`,
101
101
  children: /*#__PURE__*/_jsx(TextToolIcon, {})
102
102
  }), /*#__PURE__*/_jsx(Popper, {
103
103
  id: id,
@@ -1,9 +1,11 @@
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
4
  import OpenInFullIcon from "@mui/icons-material/OpenInFull";
5
5
  import CloseFullscreenIcon from "@mui/icons-material/CloseFullscreen";
6
6
  import Icon from "../../common/Icon";
7
+ import { ToggleFullScreenIcon } from "../../common/iconListV2";
8
+ import { SearchIcon } from "../../common/iconslist";
7
9
  import { jsx as _jsx } from "react/jsx-runtime";
8
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
11
  const SearchBox = props => {
@@ -16,7 +18,13 @@ const SearchBox = props => {
16
18
  sx: classes.searchBox,
17
19
  size: "small",
18
20
  value: search,
19
- onChange: handleChange
21
+ onChange: handleChange,
22
+ InputProps: {
23
+ startAdornment: /*#__PURE__*/_jsx(InputAdornment, {
24
+ position: "start",
25
+ children: /*#__PURE__*/_jsx(SearchIcon, {})
26
+ })
27
+ }
20
28
  });
21
29
  };
22
30
  const PopperHeader = props => {
@@ -39,18 +47,14 @@ const PopperHeader = props => {
39
47
  padding: 2,
40
48
  className: "headerContainer",
41
49
  style: {
42
- paddingTop: "2px"
50
+ paddingTop: "5px"
43
51
  },
44
52
  children: /*#__PURE__*/_jsxs(Grid, {
45
53
  item: true,
46
54
  xs: 12,
47
- style: {
48
- display: "flex",
49
- borderBottom: "1px solid #DCE4EC"
50
- },
51
55
  justifyContent: "space-between",
52
56
  alignItems: "center",
53
- className: "textSettingHeader",
57
+ sx: classes.textSettingHeader,
54
58
  children: [/*#__PURE__*/_jsx(Typography, {
55
59
  color: "primary",
56
60
  sx: {
@@ -66,6 +70,7 @@ const PopperHeader = props => {
66
70
  sx: {
67
71
  position: 'relative'
68
72
  },
73
+ className: "inputField",
69
74
  children: [/*#__PURE__*/_jsx(IconButton, {
70
75
  className: openSearch ? 'searchContainer' : '',
71
76
  onClick: handleSearchButton,
@@ -83,11 +88,11 @@ const PopperHeader = props => {
83
88
  children: /*#__PURE__*/_jsx(IconButton, {
84
89
  style: {
85
90
  marginRight: "8px",
86
- marginLeft: "8px"
91
+ marginLeft: "4px"
87
92
  },
88
- className: "close-popupbtn",
93
+ className: "close-popupbtn toogleFullScreenBtn",
89
94
  onClick: toggleFullscreen,
90
- children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(OpenInFullIcon, {})
95
+ children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(ToggleFullScreenIcon, {})
91
96
  })
92
97
  }) : null, /*#__PURE__*/_jsx(Tooltip, {
93
98
  title: "Close",