@reactorui/datagrid 1.0.9 → 1.0.10
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/README.md
CHANGED
|
@@ -377,7 +377,7 @@ interface ServerResponse<T> {
|
|
|
377
377
|
| `enableSorting` | `boolean` | `true` | Enable column sorting |
|
|
378
378
|
| `enableFilters` | `boolean` | `true` | Enable advanced filtering |
|
|
379
379
|
| `enableSelection` | `boolean` | `true` | Enable row selection with checkboxes |
|
|
380
|
-
| `enableRefresh` | `boolean` | `
|
|
380
|
+
| `enableRefresh` | `boolean` | `false` | Show/hide the refresh button |
|
|
381
381
|
| **Pagination** | | | |
|
|
382
382
|
| `pageSize` | `number` | `10` | Client-side pagination size |
|
|
383
383
|
| `serverPageSize` | `number` | `100` | Server request batch size |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataGridProps } from '../../types';
|
|
2
2
|
export declare const DataGrid: <T extends {
|
|
3
3
|
[key: string]: any;
|
|
4
|
-
} = any>({ data, endpoint, columns: columnsProp, enableSearch, enableSorting, enableFilters, enableSelection, pageSize, serverPageSize, pageSizeOptions, httpConfig, variant, size, className,
|
|
4
|
+
} = any>({ data, endpoint, columns: columnsProp, enableSearch, enableSorting, enableFilters, enableSelection, enableRefresh, pageSize, serverPageSize, pageSizeOptions, httpConfig, variant, size, className, onDataLoad, onDataError, onLoadingStateChange, onPageChange, onPageSizeChange, onSortChange, onFilterChange, onSearchChange, onTableRefresh, onTableRowClick, onTableRowDoubleClick, onRowSelect, onSelectionChange, onTableRowHover, onCellClick, ...rest }: DataGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=DataGrid.d.ts.map
|
|
@@ -5,7 +5,7 @@ import { SearchInput } from '../Search';
|
|
|
5
5
|
import { FilterControls } from '../Filter';
|
|
6
6
|
import { TableHeader, TableBody } from '../Table';
|
|
7
7
|
import { getTheme } from '../../themes';
|
|
8
|
-
export const DataGrid = ({ data, endpoint, columns: columnsProp = [], enableSearch = true, enableSorting = true, enableFilters = true, enableSelection = true, pageSize = 10, serverPageSize = 100, pageSizeOptions = [5, 10, 25, 50, 100], httpConfig, variant = 'default', size = 'md', className = '',
|
|
8
|
+
export const DataGrid = ({ data, endpoint, columns: columnsProp = [], enableSearch = true, enableSorting = true, enableFilters = true, enableSelection = true, enableRefresh = false, pageSize = 10, serverPageSize = 100, pageSizeOptions = [5, 10, 25, 50, 100], httpConfig, variant = 'default', size = 'md', className = '',
|
|
9
9
|
// Event callbacks
|
|
10
10
|
onDataLoad, onDataError, onLoadingStateChange, onPageChange, onPageSizeChange, onSortChange, onFilterChange, onSearchChange, onTableRefresh, onTableRowClick, onTableRowDoubleClick, onRowSelect, onSelectionChange, onTableRowHover, onCellClick, ...rest }) => {
|
|
11
11
|
const theme = getTheme(variant);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactorui/datagrid",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "High-performance React data grid with TypeScript support, server-side integration, and continuation token pagination",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|