@stella-source/stellasource-dsl 1.4.2 → 1.4.3
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.
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.esm.js +5 -1
- package/dist/esm/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.esm.js
CHANGED
|
@@ -21520,6 +21520,8 @@ function Table({ columns, data, isLoading, serverSide = false, onPageChange, onS
|
|
|
21520
21520
|
});
|
|
21521
21521
|
setLocalColumns(columns);
|
|
21522
21522
|
setLocalData(data);
|
|
21523
|
+
if (paginationDetails && paginationDetails.startingPage !== pageIndex)
|
|
21524
|
+
setPageIndex(paginationDetails?.startingPage);
|
|
21523
21525
|
}, [paginationDetails, data, columns]);
|
|
21524
21526
|
useLayoutEffect$1(() => {
|
|
21525
21527
|
const el = scrollRef.current;
|
|
@@ -21658,7 +21660,7 @@ function Table({ columns, data, isLoading, serverSide = false, onPageChange, onS
|
|
|
21658
21660
|
.rows.map((row) => row.original);
|
|
21659
21661
|
onRowSelect?.(selectedData);
|
|
21660
21662
|
}
|
|
21661
|
-
}, [
|
|
21663
|
+
}, [rowSelection]);
|
|
21662
21664
|
useEffect(() => {
|
|
21663
21665
|
resetTable();
|
|
21664
21666
|
}, [resetTrigger]);
|
|
@@ -21671,6 +21673,7 @@ function Table({ columns, data, isLoading, serverSide = false, onPageChange, onS
|
|
|
21671
21673
|
pageIndex: paginationDetails?.startingPage - 1,
|
|
21672
21674
|
pageSize: paginationDetails?.rowsPerPage || 10,
|
|
21673
21675
|
});
|
|
21676
|
+
table.toggleAllRowsSelected(false);
|
|
21674
21677
|
};
|
|
21675
21678
|
return (a__default.createElement(TableWrapper, { className: className, id: id, "data-testid": dataTestId, "data-auto": dataAuto },
|
|
21676
21679
|
a__default.createElement(TableWrapperScroll, { "$stopScroll": Object.values(filterMenuOpen).some((value) => value), ref: scrollRef }, isLoading ? (a__default.createElement("div", null,
|
|
@@ -21753,6 +21756,7 @@ function Table({ columns, data, isLoading, serverSide = false, onPageChange, onS
|
|
|
21753
21756
|
table.getRowModel().rows.length - 1 }, value));
|
|
21754
21757
|
})))))))),
|
|
21755
21758
|
showPagination && paginationDetails?.totalRows > 0 && (a__default.createElement(CustomPagination, { totalRows: serverSide ? totalData : table.getFilteredRowModel().rows.length, isLoading: isLoading, rowsPerPage: paginationDetails?.rowsPerPage, startingPage: pageIndex, onPageChange: (page, pageSize) => {
|
|
21759
|
+
table.toggleAllRowsSelected(false);
|
|
21756
21760
|
setPageIndex(page);
|
|
21757
21761
|
setPagination((prev) => ({
|
|
21758
21762
|
...prev,
|