@megha-ui/react 1.2.609 → 1.2.611
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]);
|
|
@@ -527,6 +535,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
527
535
|
};
|
|
528
536
|
const { sortedData, handleSort, sortQueries, setSortQueries } = useSort(filteredData, gridColumns, uniqueSearch, multiSorting, withAscii);
|
|
529
537
|
const { paginatedData, currentPage, handleChangePage, handleChangeRowsPerPage, rowsPerPage, } = usePagination(sortedData, defaultRowsPerPage);
|
|
538
|
+
console.log({ sortedData, paginatedData });
|
|
530
539
|
useEffect(() => {
|
|
531
540
|
const keys = Object.keys(summariseKeys);
|
|
532
541
|
if (keys.length > 0 && summariseAvailable) {
|
|
@@ -1374,7 +1383,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
1374
1383
|
cursor: "pointer",
|
|
1375
1384
|
marginLeft: "0.75rem",
|
|
1376
1385
|
color: "var(--clear-color)",
|
|
1377
|
-
}, children: _jsx(TbCalculatorOff, {}) })),
|
|
1386
|
+
}, children: _jsx(TbCalculatorOff, {}) })), shouldCover && _jsx("div", { className: "flex-1 h-2" }), fixedColumns.map((column) => {
|
|
1378
1387
|
const selectedValues = fixedFilterValues[column.key]
|
|
1379
1388
|
? fixedFilterValues[column.key].map((item) => item.toString())
|
|
1380
1389
|
: [];
|
package/package.json
CHANGED