@facter/ds-core 1.7.2 → 1.7.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/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1106,7 +1106,9 @@ EmptyState.displayName = "EmptyState";
|
|
|
1106
1106
|
function useDataTableInternal({
|
|
1107
1107
|
data,
|
|
1108
1108
|
columns,
|
|
1109
|
-
getRowId
|
|
1109
|
+
getRowId,
|
|
1110
|
+
manualPagination = false,
|
|
1111
|
+
pageCount: externalPageCount
|
|
1110
1112
|
}) {
|
|
1111
1113
|
const [rowSelection, setRowSelection] = React49.useState({});
|
|
1112
1114
|
const [columnVisibility, setColumnVisibility] = React49.useState({});
|
|
@@ -1135,6 +1137,9 @@ function useDataTableInternal({
|
|
|
1135
1137
|
enableSorting: true,
|
|
1136
1138
|
enableFilters: true,
|
|
1137
1139
|
enableGlobalFilter: true,
|
|
1140
|
+
// Server-side pagination support
|
|
1141
|
+
manualPagination,
|
|
1142
|
+
pageCount: manualPagination ? externalPageCount : void 0,
|
|
1138
1143
|
// Handlers
|
|
1139
1144
|
onRowSelectionChange: setRowSelection,
|
|
1140
1145
|
onSortingChange: setSorting,
|
|
@@ -1284,12 +1289,16 @@ function DataTableRoot({
|
|
|
1284
1289
|
data,
|
|
1285
1290
|
columns,
|
|
1286
1291
|
getRowId,
|
|
1292
|
+
manualPagination,
|
|
1293
|
+
pageCount,
|
|
1287
1294
|
className
|
|
1288
1295
|
}) {
|
|
1289
1296
|
const { table, meta, density, setDensity } = useDataTableInternal({
|
|
1290
1297
|
data,
|
|
1291
1298
|
columns,
|
|
1292
|
-
getRowId
|
|
1299
|
+
getRowId,
|
|
1300
|
+
manualPagination,
|
|
1301
|
+
pageCount
|
|
1293
1302
|
});
|
|
1294
1303
|
return /* @__PURE__ */ jsx(
|
|
1295
1304
|
DataTableProvider,
|