@tanstack/svelte-table 8.0.0-alpha.69 → 8.0.0-alpha.70
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/build/cjs/table-core/build/esm/index.js +4 -4
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +36 -36
- package/build/umd/index.development.js +4 -4
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -1487,12 +1487,10 @@ const Ordering = {
|
|
|
1487
1487
|
};
|
|
1488
1488
|
|
|
1489
1489
|
//
|
|
1490
|
-
const defaultPageCount = -1;
|
|
1491
1490
|
const defaultPageIndex = 0;
|
|
1492
1491
|
const defaultPageSize = 10;
|
|
1493
1492
|
|
|
1494
1493
|
const getDefaultPaginationState = () => ({
|
|
1495
|
-
pageCount: defaultPageCount,
|
|
1496
1494
|
pageIndex: defaultPageIndex,
|
|
1497
1495
|
pageSize: defaultPageSize
|
|
1498
1496
|
});
|
|
@@ -1573,7 +1571,9 @@ const Pagination = {
|
|
|
1573
1571
|
});
|
|
1574
1572
|
},
|
|
1575
1573
|
setPageCount: updater => instance.setPagination(old => {
|
|
1576
|
-
|
|
1574
|
+
var _old$pageCount;
|
|
1575
|
+
|
|
1576
|
+
let newPageCount = functionalUpdate(updater, (_old$pageCount = old.pageCount) != null ? _old$pageCount : -1);
|
|
1577
1577
|
|
|
1578
1578
|
if (typeof newPageCount === 'number') {
|
|
1579
1579
|
newPageCount = Math.max(-1, newPageCount);
|
|
@@ -1641,7 +1641,7 @@ const Pagination = {
|
|
|
1641
1641
|
pageCount
|
|
1642
1642
|
} = instance.getState().pagination;
|
|
1643
1643
|
|
|
1644
|
-
if (pageCount
|
|
1644
|
+
if (typeof pageCount !== 'undefined') {
|
|
1645
1645
|
return pageCount;
|
|
1646
1646
|
}
|
|
1647
1647
|
|