@megha-ui/react 1.2.596 → 1.2.598
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.
|
@@ -1357,16 +1357,16 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1357
1357
|
justifyContent: globalSearch || filterDetails.hasFilters || sortDetails.hasSort
|
|
1358
1358
|
? "space-between"
|
|
1359
1359
|
: "end",
|
|
1360
|
-
}, children: [_jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [globalSearch && (_jsx("div", { style: { width: expandedGI ? 300 : "fit-content" }, children: _jsx(GlobalSearchChiProps, { expanded: expandedGI, setExpanded: setExpandedGI, globalInputSearch: globalInputSearch, setGlobalInputSearch: setGlobalInputSearch, chips: chips, setChips: setChips, inputValue: inputValue, setInputValue: setInputValue, shouldClose: !globalSearchOpen }) })), filterDetails.hasFilters && (_jsx("div", { title: "Clear All Filters", onClick: () => clearAllFilter(), style: {
|
|
1360
|
+
}, children: [_jsxs("div", { style: { display: "flex", alignItems: "center", flexWrap: "wrap" }, children: [globalSearch && (_jsx("div", { style: { width: expandedGI ? 300 : "fit-content" }, children: _jsx(GlobalSearchChiProps, { expanded: expandedGI, setExpanded: setExpandedGI, globalInputSearch: globalInputSearch, setGlobalInputSearch: setGlobalInputSearch, chips: chips, setChips: setChips, inputValue: inputValue, setInputValue: setInputValue, shouldClose: !globalSearchOpen }) })), filterDetails.hasFilters && (_jsx("div", { title: "Clear All Filters", onClick: () => clearAllFilter(), style: {
|
|
1361
1361
|
cursor: "pointer",
|
|
1362
|
-
marginLeft:
|
|
1362
|
+
marginLeft: "0.75rem",
|
|
1363
1363
|
color: "var(--clear-color)",
|
|
1364
1364
|
}, children: _jsx(MdFilterAltOff, { size: 18 }) })), sortDetails.hasSort && (_jsx("div", { title: "Clear All Sorts", onClick: () => {
|
|
1365
1365
|
// setChanged((prev) => [...prev, "sorts"]);
|
|
1366
1366
|
setSortQueries({});
|
|
1367
1367
|
}, style: {
|
|
1368
1368
|
cursor: "pointer",
|
|
1369
|
-
marginLeft:
|
|
1369
|
+
marginLeft: "0.75rem",
|
|
1370
1370
|
transform: "rotate(-90deg)",
|
|
1371
1371
|
color: "var(--clear-color)",
|
|
1372
1372
|
}, children: _jsx(TbAntennaBarsOff, { size: 18 }) })), summarise.hasSummarise && (_jsx("div", { title: "Clear All Sorts", onClick: () => {
|
|
@@ -1375,7 +1375,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1375
1375
|
// setChanged((prev) => [...prev, "summary"]);
|
|
1376
1376
|
}, style: {
|
|
1377
1377
|
cursor: "pointer",
|
|
1378
|
-
marginLeft:
|
|
1378
|
+
marginLeft: "0.75rem",
|
|
1379
1379
|
color: "var(--clear-color)",
|
|
1380
1380
|
}, children: _jsx(TbCalculatorOff, {}) })), fixedColumns.map((column) => {
|
|
1381
1381
|
const selectedValues = fixedFilterValues[column.key]
|
|
@@ -1404,6 +1404,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1404
1404
|
return (_jsx("div", { style: {
|
|
1405
1405
|
position: "relative",
|
|
1406
1406
|
width: "18rem",
|
|
1407
|
+
marginLeft: "0.75rem",
|
|
1407
1408
|
}, children: _jsx(Dropdown, { options: options.map((option) => ({
|
|
1408
1409
|
label: option,
|
|
1409
1410
|
value: option,
|
|
@@ -1432,10 +1433,10 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1432
1433
|
: undefined, isSort: column.fixedFilterOrder ? false : undefined, isClear: true, searchEnabled: true, dropdownListWidth: "max-content", className: "h-8 mt-2", isMultiple: column.fixedFilter === "multi-select" }) }, column.key));
|
|
1433
1434
|
}
|
|
1434
1435
|
return null;
|
|
1435
|
-
})] }), _jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [isSummarise && (_jsx("div", { onClick: () => setSummariseAvailable((prev) => !prev), style: {
|
|
1436
|
+
})] }), _jsxs("div", { style: { display: "flex", alignItems: "center", flexWrap: "wrap" }, children: [isSummarise && (_jsx("div", { onClick: () => setSummariseAvailable((prev) => !prev), style: {
|
|
1436
1437
|
cursor: "pointer",
|
|
1437
|
-
marginLeft:
|
|
1438
|
-
}, children: SummariseIcon ? (SummariseIcon) : summariseAvailable ? (_jsx(TbCalculatorFilled, { color: summarizeColor, size: 18 })) : (_jsx(TbCalculator, { size: 18 })) })), showHideAvailable && (_jsx("div", { onClick: openSetting, style: { cursor: "pointer", marginLeft:
|
|
1438
|
+
marginLeft: "0.75rem",
|
|
1439
|
+
}, 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(TbCopyOff, { size: 18 }) : _jsx(TbCopy, { 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 ||
|
|
1439
1440
|
sortDetails.sortUpdated ||
|
|
1440
1441
|
summarise.summariseUpdated ||
|
|
1441
1442
|
gridGroupBy !== (groupBy || "")) &&
|
package/package.json
CHANGED