@megha-ui/react 1.2.608 → 1.2.610
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.
|
@@ -89,6 +89,14 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
89
89
|
return gridColumns.filter((col) => col.fixedFilter && col.fixedFilter !== "");
|
|
90
90
|
}, [gridColumns]);
|
|
91
91
|
const [fixedFilterValues, setFixedFilterValues] = useState({});
|
|
92
|
+
const shouldCover = useMemo(() => {
|
|
93
|
+
if (filterColumns.length > 0) {
|
|
94
|
+
const gridActions = document.querySelector("#grid-action");
|
|
95
|
+
console.log(gridActions);
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}, [fixedColumns]);
|
|
92
100
|
useEffect(() => {
|
|
93
101
|
setSummariseAvailable(isSummarise);
|
|
94
102
|
}, [isSummarise]);
|
|
@@ -1374,7 +1382,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1374
1382
|
cursor: "pointer",
|
|
1375
1383
|
marginLeft: "0.75rem",
|
|
1376
1384
|
color: "var(--clear-color)",
|
|
1377
|
-
}, children: _jsx(TbCalculatorOff, {}) })),
|
|
1385
|
+
}, children: _jsx(TbCalculatorOff, {}) })), shouldCover && _jsx("div", { className: "flex-1 h-2" }), fixedColumns.map((column) => {
|
|
1378
1386
|
const selectedValues = fixedFilterValues[column.key]
|
|
1379
1387
|
? fixedFilterValues[column.key].map((item) => item.toString())
|
|
1380
1388
|
: [];
|
|
@@ -1425,7 +1433,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1425
1433
|
updateFixedFilterValues(updatedValues);
|
|
1426
1434
|
}
|
|
1427
1435
|
}
|
|
1428
|
-
: undefined, style: { width: "
|
|
1436
|
+
: undefined, style: { width: "14rem" }, isSort: column.fixedFilterOrder ? false : undefined, isClear: true, searchEnabled: true, dropdownListWidth: "max-content", className: "h-8 flex-1", isMultiple: column.fixedFilter === "multi-select" }) }, column.key));
|
|
1429
1437
|
}
|
|
1430
1438
|
return null;
|
|
1431
1439
|
}), isSummarise && (_jsx("div", { onClick: () => setSummariseAvailable((prev) => !prev), style: {
|
package/package.json
CHANGED