@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
package/build/esm/index.js
CHANGED
|
@@ -1486,12 +1486,10 @@ const Ordering = {
|
|
|
1486
1486
|
};
|
|
1487
1487
|
|
|
1488
1488
|
//
|
|
1489
|
-
const defaultPageCount = -1;
|
|
1490
1489
|
const defaultPageIndex = 0;
|
|
1491
1490
|
const defaultPageSize = 10;
|
|
1492
1491
|
|
|
1493
1492
|
const getDefaultPaginationState = () => ({
|
|
1494
|
-
pageCount: defaultPageCount,
|
|
1495
1493
|
pageIndex: defaultPageIndex,
|
|
1496
1494
|
pageSize: defaultPageSize
|
|
1497
1495
|
});
|
|
@@ -1572,7 +1570,9 @@ const Pagination = {
|
|
|
1572
1570
|
});
|
|
1573
1571
|
},
|
|
1574
1572
|
setPageCount: updater => instance.setPagination(old => {
|
|
1575
|
-
|
|
1573
|
+
var _old$pageCount;
|
|
1574
|
+
|
|
1575
|
+
let newPageCount = functionalUpdate(updater, (_old$pageCount = old.pageCount) != null ? _old$pageCount : -1);
|
|
1576
1576
|
|
|
1577
1577
|
if (typeof newPageCount === 'number') {
|
|
1578
1578
|
newPageCount = Math.max(-1, newPageCount);
|
|
@@ -1640,7 +1640,7 @@ const Pagination = {
|
|
|
1640
1640
|
pageCount
|
|
1641
1641
|
} = instance.getState().pagination;
|
|
1642
1642
|
|
|
1643
|
-
if (pageCount
|
|
1643
|
+
if (typeof pageCount !== 'undefined') {
|
|
1644
1644
|
return pageCount;
|
|
1645
1645
|
}
|
|
1646
1646
|
|