@redsift/table 11.3.2-alpha.2 → 11.3.2-muiv5

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.
Files changed (4) hide show
  1. package/index.d.ts +117 -76
  2. package/index.js +425 -309
  3. package/index.js.map +1 -1
  4. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleSingleSelect';
2
+ import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleValue';
2
3
  import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
3
4
  import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
4
- import { GridColumnTypesRecord, GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputValue, GridFilterInputSingleSelect, GridFilterInputMultipleValue, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumns, GridSlotsComponent, GridRowSelectionModel, GridApiPro as GridApiPro$1, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
5
- export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
5
+ import { GridNativeColTypes, GridColumnTypesRecord, GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputValue, GridFilterInputSingleSelect, GridFilterInputMultipleValue, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumns, GridSlotsComponent, GridSelectionModel, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
6
+ export { GridAlignment, GridColDef, GridColumns, GridFilterItem, GridFilterModel, GridSelectionModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
6
7
  import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
7
8
  import React, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
8
9
  import { TablePaginationProps } from '@mui/material';
@@ -12,60 +13,80 @@ import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
12
13
  declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any, any, any>;
13
14
 
14
15
  declare const getRsStringColumnType: () => {
15
- type: string;
16
+ extendType: GridNativeColTypes;
16
17
  filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
17
18
  };
18
19
  declare const getRsNumberColumnType: () => {
19
- type: string;
20
+ extendType: GridNativeColTypes;
20
21
  filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
21
22
  };
22
23
  declare const getRsSingleSelectColumnType: () => {
23
- type: string;
24
- filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
24
+ extendType: GridNativeColTypes;
25
+ filterOperators: ({
26
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
27
+ label: string;
28
+ value: string;
29
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
30
+ } | {
31
+ label: string;
32
+ value: string;
33
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
34
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
35
+ } | {
36
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
37
+ label: string;
38
+ value: string;
39
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
40
+ })[];
25
41
  };
26
42
  declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
27
- type: string;
43
+ extendType: GridNativeColTypes;
28
44
  filterOperators: ({
29
45
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
30
- label?: string | undefined;
31
- headerLabel?: string | undefined;
46
+ label: string;
32
47
  value: string;
33
- getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFnLegacy<any, any, any>;
34
- getApplyFilterFnV7?: _mui_x_data_grid_pro.GetApplyFilterFnV7<any, any, any> | undefined;
35
- InputComponentProps?: Record<string, any> | undefined;
36
- getValueAsString?: ((value: any) => string) | undefined;
37
- requiresFilterValue?: boolean | undefined;
48
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
38
49
  } | {
39
50
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
40
51
  label: string;
41
52
  value: string;
42
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
53
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
43
54
  })[];
44
55
  };
45
56
  declare const getRsMultipleSelectColumnType: () => {
46
- type: string;
47
- filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
57
+ extendType: GridNativeColTypes;
58
+ filterOperators: ({
59
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
60
+ label: string;
61
+ value: string;
62
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
63
+ } | {
64
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
65
+ label: string;
66
+ value: string;
67
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
68
+ })[];
48
69
  };
49
70
  declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
50
- type: string;
71
+ extendType: GridNativeColTypes;
51
72
  filterOperators: ({
52
73
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
53
74
  label: string;
54
75
  value: string;
55
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
76
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
56
77
  } | {
57
78
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
58
79
  label: string;
59
80
  value: string;
60
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
81
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
61
82
  })[];
62
83
  };
63
- declare const customColumnTypes: Partial<GridColumnTypesRecord>;
84
+ declare const customColumnTypes: GridColumnTypesRecord;
64
85
 
65
86
  declare const IS_BETWEEN: {
66
87
  label: string;
67
88
  value: string;
68
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
89
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
69
90
  InputComponent: (props: any) => JSX.Element;
70
91
  };
71
92
 
@@ -124,30 +145,30 @@ declare const HAS_ONLY_WITH_SELECT: {
124
145
  getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
125
146
  };
126
147
 
127
- declare const IS: GridFilterOperator<any, any, any>;
148
+ declare const IS: {
149
+ label: string;
150
+ value: string;
151
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
152
+ InputComponent: typeof GridFilterInputValue;
153
+ };
128
154
  declare const IS_WITH_SELECT: {
129
155
  InputComponent: typeof GridFilterInputSingleSelect;
130
- label?: string | undefined;
131
- headerLabel?: string | undefined;
156
+ label: string;
132
157
  value: string;
133
- getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFnLegacy<any, any, any>;
134
- getApplyFilterFnV7?: _mui_x_data_grid_pro.GetApplyFilterFnV7<any, any, any> | undefined;
135
- InputComponentProps?: Record<string, any> | undefined;
136
- getValueAsString?: ((value: any) => string) | undefined;
137
- requiresFilterValue?: boolean | undefined;
158
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
138
159
  };
139
160
 
140
- declare const IS_NOT: GridFilterOperator<any, any, any>;
161
+ declare const IS_NOT: {
162
+ label: string;
163
+ value: string;
164
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
165
+ InputComponent: typeof GridFilterInputValue;
166
+ };
141
167
  declare const IS_NOT_WITH_SELECT: {
142
168
  InputComponent: typeof GridFilterInputSingleSelect;
143
- label?: string | undefined;
144
- headerLabel?: string | undefined;
169
+ label: string;
145
170
  value: string;
146
- getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFnLegacy<any, any, any>;
147
- getApplyFilterFnV7?: _mui_x_data_grid_pro.GetApplyFilterFnV7<any, any, any> | undefined;
148
- InputComponentProps?: Record<string, any> | undefined;
149
- getValueAsString?: ((value: any) => string) | undefined;
150
- requiresFilterValue?: boolean | undefined;
171
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
151
172
  };
152
173
 
153
174
  declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
@@ -204,12 +225,6 @@ declare const IS_NOT_ANY_OF: {
204
225
  getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
205
226
  InputComponent: typeof GridFilterInputMultipleValue;
206
227
  };
207
- declare const IS_NOT_ANY_OF_WITH_SELECT: {
208
- InputComponent: typeof GridFilterInputMultipleSingleSelect;
209
- label: string;
210
- value: string;
211
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
212
- };
213
228
 
214
229
  declare const STARTS_WITH_ANY_OF: {
215
230
  label: string;
@@ -226,39 +241,59 @@ declare const operatorList: {
226
241
  string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
227
242
  number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
228
243
  boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
229
- date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
230
- dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
244
+ date: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
245
+ dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
231
246
  singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
232
247
  rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
233
248
  rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
234
- rsSingleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
249
+ rsSingleSelect: ({
250
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
251
+ label: string;
252
+ value: string;
253
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
254
+ } | {
255
+ label: string;
256
+ value: string;
257
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
258
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
259
+ } | {
260
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
261
+ label: string;
262
+ value: string;
263
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
264
+ })[];
235
265
  rsSingleSelectWithShortOperatorList: ({
236
266
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
237
- label?: string | undefined;
238
- headerLabel?: string | undefined;
267
+ label: string;
268
+ value: string;
269
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
270
+ } | {
271
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
272
+ label: string;
273
+ value: string;
274
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
275
+ })[];
276
+ rsMultipleSelect: ({
277
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
278
+ label: string;
239
279
  value: string;
240
- getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFnLegacy<any, any, any>;
241
- getApplyFilterFnV7?: _mui_x_data_grid_pro.GetApplyFilterFnV7<any, any, any> | undefined;
242
- InputComponentProps?: Record<string, any> | undefined;
243
- getValueAsString?: ((value: any) => string) | undefined;
244
- requiresFilterValue?: boolean | undefined;
280
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
245
281
  } | {
246
282
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
247
283
  label: string;
248
284
  value: string;
249
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
285
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
250
286
  })[];
251
- rsMultipleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
252
287
  rsMultipleSelectWithShortOperatorList: ({
253
288
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
254
289
  label: string;
255
290
  value: string;
256
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
291
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
257
292
  } | {
258
293
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
259
294
  label: string;
260
295
  value: string;
261
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
296
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
262
297
  })[];
263
298
  rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
264
299
  };
@@ -330,7 +365,9 @@ declare const StatefulDataGrid: Comp<StatefulDataGridProps, HTMLDivElement>;
330
365
  interface ExtendedGridFilterModel extends GridFilterModel {
331
366
  quickFilterValues?: string[];
332
367
  }
333
- interface ExtendedGridPaginationModel extends GridPaginationModel {
368
+ interface ExtendedGridPaginationModel {
369
+ page: number;
370
+ pageSize: number;
334
371
  direction?: 'next' | 'back';
335
372
  }
336
373
 
@@ -340,8 +377,6 @@ declare const encodeValue: (value: string | undefined) => string;
340
377
  declare const urlSearchParamsToString: (searchParams: URLSearchParams) => string;
341
378
  declare const numberOperatorEncoder: Record<string, string>;
342
379
  declare const numberOperatorDecoder: Record<string, string>;
343
- declare const isOperatorValueValid: (field: string, operator: OperatorValue, columns: DataGridProps['columns']) => boolean;
344
- declare const isValueValid: (value: OperatorValue, field: string, columns: DataGridProps['columns'], operator: OperatorValue) => boolean;
345
380
  /** FILTERS */
346
381
  declare const getFilterModelFromString: (searchString: string, columns: DataGridProps['columns']) => ExtendedGridFilterModel | 'invalid';
347
382
  declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
@@ -352,8 +387,8 @@ declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearch
352
387
  declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
353
388
  declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
354
389
  /** COLUMN VISIBILITY */
355
- declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
356
390
  declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
391
+ declare const getColumnVisibilityFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
357
392
  declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
358
393
  declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
359
394
  declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
@@ -415,12 +450,12 @@ declare const BasePopper: React.JSXElementConstructor<any>;
415
450
  declare const BaseTextField: React.JSXElementConstructor<any>;
416
451
 
417
452
  interface CompletionResponseItem {
418
- field: string;
419
- operator: string;
453
+ columnField: string;
454
+ operatorValue: string;
420
455
  value?: string;
421
456
  }
422
457
  type CompletionResponse = {
423
- logicOperator: 'and' | 'or';
458
+ linkOperator: 'and' | 'or';
424
459
  items: CompletionResponseItem[];
425
460
  };
426
461
  interface LocaleText {
@@ -466,9 +501,11 @@ type ControlledPaginationProps = {
466
501
  displayPagination?: boolean;
467
502
  selectionStatus: SelectionStatus;
468
503
  apiRef: MutableRefObject<GridApiPro>;
469
- paginationModel: GridPaginationModel;
470
- onPaginationModelChange: (model: GridPaginationModel) => void;
471
- pageSizeOptions?: number[];
504
+ page: number;
505
+ onPageChange: (page: number) => void;
506
+ pageSize: number;
507
+ onPageSizeChange: (pageSize: number) => void;
508
+ rowsPerPageOptions?: number[];
472
509
  isRowSelectable?: DataGridProps['isRowSelectable'];
473
510
  paginationProps?: DataGridProps['paginationProps'];
474
511
  };
@@ -479,14 +516,16 @@ type ServerSideControlledPaginationProps = {
479
516
  displayRowsPerPage?: boolean;
480
517
  displayPagination?: boolean;
481
518
  selectionStatus: SelectionStatus;
482
- paginationModel: GridPaginationModel;
483
- onPaginationModelChange: (model: GridPaginationModel) => void;
484
- pageSizeOptions?: number[];
519
+ page: number;
520
+ onPageChange: (page: number) => void;
521
+ pageSize: number;
522
+ onPageSizeChange: (pageSize: number) => void;
523
+ rowsPerPageOptions?: number[];
485
524
  paginationProps?: DataGridProps['paginationProps'];
486
525
  rowCount: number;
487
526
  loading?: boolean;
488
527
  };
489
- declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React.MutableRefObject<GridApiPro$1>, selectionStatus: React.MutableRefObject<SelectionStatus>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
528
+ declare const onServerSideSelectionStatusChange: (newSelectionModel: GridSelectionModel, apiRef: React.MutableRefObject<GridApiPro>, selectionStatus: React.MutableRefObject<SelectionStatus>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
490
529
  declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
491
530
 
492
531
  interface TextCellProps extends ComponentProps<'div'> {
@@ -576,13 +615,15 @@ type ToolbarWrapperProps = {
576
615
  selectionStatus: React.MutableRefObject<SelectionStatus>;
577
616
  apiRef: DataGridProps['apiRef'];
578
617
  isRowSelectable: DataGridProps['isRowSelectable'];
579
- paginationModel: DataGridProps['paginationModel'];
580
- onPaginationModelChange: DataGridProps['onPaginationModelChange'];
581
- pageSizeOptions: DataGridProps['pageSizeOptions'];
618
+ page: DataGridProps['page'];
619
+ onPageChange: DataGridProps['onPageChange'];
620
+ pageSize: DataGridProps['pageSize'];
621
+ onPageSizeChange: DataGridProps['onPageSizeChange'];
622
+ rowsPerPageOptions: DataGridProps['rowsPerPageOptions'];
582
623
  paginationProps: DataGridProps['paginationProps'];
583
624
  paginationMode?: DataGridProps['paginationMode'];
584
625
  rowCount?: DataGridProps['rowCount'];
585
626
  };
586
627
  declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
587
628
 
588
- export { BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, buildStorageKey, clearPreviousVersionStorage, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, isOperatorValueValid, isValueValid, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
629
+ export { BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_WITH_SELECT, IS_WITH_SELECT, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, buildStorageKey, clearPreviousVersionStorage, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };