@juv/codego-react-ui 3.0.4 → 3.0.6
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.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -468,7 +468,7 @@ interface UseServerDataGridReturn<T> {
|
|
|
468
468
|
columns: DataGridColumn<T>[];
|
|
469
469
|
currentPage: number;
|
|
470
470
|
pagination: ServerPagination | null;
|
|
471
|
-
serverPagination: ServerDataGridProp | null;
|
|
471
|
+
serverPagination: ServerDataGridProp | null | undefined;
|
|
472
472
|
loading: boolean;
|
|
473
473
|
error: string | null;
|
|
474
474
|
goToPage: (page: number) => void;
|
|
@@ -502,7 +502,7 @@ interface DataGridProps<T> {
|
|
|
502
502
|
/** Appends View / Edit / Delete action buttons per row */
|
|
503
503
|
defaultActions?: DefaultActionsConfig<T>;
|
|
504
504
|
/** Pass the serverPagination object from useServerDataGrid to enable server-driven pagination */
|
|
505
|
-
serverPagination?: ServerDataGridProp;
|
|
505
|
+
serverPagination?: ServerDataGridProp | null;
|
|
506
506
|
}
|
|
507
507
|
declare function DataGrid<T extends Record<string, unknown>>({ columns, data, rowKey, selectable, selected: controlledSelected, onSelectChange, pageSize, showPagination, showColumnToggle, loading, emptyMessage, className, onRowClick, defaultActions, serverPagination, }: DataGridProps<T>): react_jsx_runtime.JSX.Element;
|
|
508
508
|
|
package/dist/index.d.ts
CHANGED
|
@@ -468,7 +468,7 @@ interface UseServerDataGridReturn<T> {
|
|
|
468
468
|
columns: DataGridColumn<T>[];
|
|
469
469
|
currentPage: number;
|
|
470
470
|
pagination: ServerPagination | null;
|
|
471
|
-
serverPagination: ServerDataGridProp | null;
|
|
471
|
+
serverPagination: ServerDataGridProp | null | undefined;
|
|
472
472
|
loading: boolean;
|
|
473
473
|
error: string | null;
|
|
474
474
|
goToPage: (page: number) => void;
|
|
@@ -502,7 +502,7 @@ interface DataGridProps<T> {
|
|
|
502
502
|
/** Appends View / Edit / Delete action buttons per row */
|
|
503
503
|
defaultActions?: DefaultActionsConfig<T>;
|
|
504
504
|
/** Pass the serverPagination object from useServerDataGrid to enable server-driven pagination */
|
|
505
|
-
serverPagination?: ServerDataGridProp;
|
|
505
|
+
serverPagination?: ServerDataGridProp | null;
|
|
506
506
|
}
|
|
507
507
|
declare function DataGrid<T extends Record<string, unknown>>({ columns, data, rowKey, selectable, selected: controlledSelected, onSelectChange, pageSize, showPagination, showColumnToggle, loading, emptyMessage, className, onRowClick, defaultActions, serverPagination, }: DataGridProps<T>): react_jsx_runtime.JSX.Element;
|
|
508
508
|
|