@megha-ui/react 1.3.13 → 1.3.15
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.
|
@@ -20,14 +20,13 @@ import { usePagination } from "./hooks/usePagination";
|
|
|
20
20
|
import { useBulkSelect } from "./hooks/useBulkSelect";
|
|
21
21
|
import { createRegexFromWildcard, isValidDateFormat } from "./utils/regexUtils";
|
|
22
22
|
import { FiEye, FiShare, FiChevronsLeft, FiChevronsRight, } from "react-icons/fi";
|
|
23
|
-
import { MdFilterAltOff, MdGroupOff, MdSave } from "react-icons/md";
|
|
23
|
+
import { MdFilterAltOff, MdGroupOff, MdSave, MdLayers, MdLayersClear, } from "react-icons/md";
|
|
24
24
|
import GlobalSearchChiProps from "./utils/globalSearchChips";
|
|
25
25
|
import { MdFullscreen, MdFullscreenExit } from "react-icons/md";
|
|
26
26
|
import Dropdown from "../dropdown";
|
|
27
27
|
import Button from "../button";
|
|
28
28
|
import Card from "../card";
|
|
29
29
|
import { TbAntennaBarsOff, TbCalculator, TbCalculatorFilled, TbCalculatorOff, } from "react-icons/tb";
|
|
30
|
-
import { TbCopy, TbCopyOff } from "react-icons/tb";
|
|
31
30
|
import { formatValue } from "../../services/commonService";
|
|
32
31
|
import NewGridHeader from "./utils/newGridHeader";
|
|
33
32
|
import NewGridRow from "./utils/newGridRow";
|
|
@@ -1448,7 +1447,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1448
1447
|
}), _jsx("div", { className: "flex-1 h-2" }), isSummarise && (_jsx("div", { onClick: () => setSummariseAvailable((prev) => !prev), style: {
|
|
1449
1448
|
cursor: "pointer",
|
|
1450
1449
|
marginLeft: "0.75rem",
|
|
1451
|
-
}, children: SummariseIcon ? (SummariseIcon) : summariseAvailable ? (_jsx(TbCalculatorFilled, { color: summarizeColor, size: 18 })) : (_jsx(TbCalculator, { size: 18 })) })), showHideAvailable && (_jsx("div", { onClick: openSetting, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: SettingIcon ? SettingIcon : _jsx(FiEye, { size: 18 }) })), exportAvailable && (_jsx("div", { onClick: handleExport, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: ExportIcon ? ExportIcon : _jsx(FiShare, { size: 16 }) })), _jsx("div", { onClick: () => setHideDuplicates((prev) => !prev), style: { cursor: "pointer", marginLeft: "0.75rem" }, title: hideDuplicates ? "Show Duplicates" : "Hide Duplicates", children: hideDuplicates ? _jsx(
|
|
1450
|
+
}, children: SummariseIcon ? (SummariseIcon) : summariseAvailable ? (_jsx(TbCalculatorFilled, { color: summarizeColor, size: 18 })) : (_jsx(TbCalculator, { size: 18 })) })), showHideAvailable && (_jsx("div", { onClick: openSetting, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: SettingIcon ? SettingIcon : _jsx(FiEye, { size: 18 }) })), exportAvailable && (_jsx("div", { onClick: handleExport, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: ExportIcon ? ExportIcon : _jsx(FiShare, { size: 16 }) })), _jsx("div", { onClick: () => setHideDuplicates((prev) => !prev), style: { cursor: "pointer", marginLeft: "0.75rem" }, title: hideDuplicates ? "Show Duplicates" : "Hide Duplicates", children: hideDuplicates ? (_jsx(MdLayers, { size: 18 })) : (_jsx(MdLayersClear, { size: 18 })) }), fullScreen && (_jsx("div", { onClick: toggleFullScreen, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: isFullScreen ? (_jsx(MdFullscreenExit, { size: 20 })) : (_jsx(MdFullscreen, { size: 20 })) })), freezeColumnsAvailable && (_jsx("div", { onClick: toggleCollapse, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: isCollapsed ? (_jsx(FiChevronsRight, { size: 20 })) : (_jsx(FiChevronsLeft, { size: 20 })) })), (filterDetails.filtersUpdated ||
|
|
1452
1451
|
sortDetails.sortUpdated ||
|
|
1453
1452
|
summarise.summariseUpdated ||
|
|
1454
1453
|
gridGroupBy !== (groupBy || "")) &&
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState, useRef } from "react";
|
|
3
3
|
import { MdClose } from "react-icons/md";
|
|
4
|
-
const Modal = ({ isOpen, onClose, title, subTitle, titleHtml = null, titleAlign = "left", children, footer, className = "", width, minHeight = 300, padding = "1rem", borderRadius = 6, backgroundColor = "var(--modal-bg)", paddingBottom = "1rem", paddingLeft = "1rem", paddingRight = "1rem", paddingTop = "1rem", contentHeight = "calc(100vh - 180)", overlayClose = false, alignItems, justifyContent, modalContentClass, modalBodyClass, bodyOverflow = "auto", }) => {
|
|
4
|
+
const Modal = ({ isOpen, onClose, title, subTitle, titleHtml = null, titleAlign = "left", children, footer, className = "", width, minHeight = 300, padding = "1rem", borderRadius = 6, backgroundColor = "var(--modal-bg)", paddingBottom = "1rem", paddingLeft = "1rem", paddingRight = "1rem", paddingTop = "1rem", contentHeight = "calc(100vh - 180)", overlayClose = false, alignItems, justifyContent, modalContentClass, modalBodyClass, bodyOverflow = "auto", minWidth, }) => {
|
|
5
5
|
const [removelHeight, setRemovalHeight] = useState(0);
|
|
6
6
|
const footerRef = useRef(null);
|
|
7
7
|
useEffect(() => {
|
|
@@ -27,7 +27,7 @@ const Modal = ({ isOpen, onClose, title, subTitle, titleHtml = null, titleAlign
|
|
|
27
27
|
return null;
|
|
28
28
|
const modalContentStyle = {
|
|
29
29
|
width,
|
|
30
|
-
minWidth: 300,
|
|
30
|
+
minWidth: minWidth !== null && minWidth !== void 0 ? minWidth : 300,
|
|
31
31
|
minHeight,
|
|
32
32
|
padding,
|
|
33
33
|
borderRadius,
|
package/package.json
CHANGED