@redsift/table 11.3.1-muiv5 → 11.3.2-alpha.0
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/index.d.ts +191 -33
- package/index.js +480 -412
- package/index.js.map +1 -1
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
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_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
|
|
1
3
|
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
|
-
import {
|
|
3
|
-
export { GridAlignment, GridColDef,
|
|
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';
|
|
4
6
|
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
5
7
|
import React, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
|
|
6
8
|
import { TablePaginationProps } from '@mui/material';
|
|
@@ -10,24 +12,72 @@ import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
|
|
|
10
12
|
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any, any, any>;
|
|
11
13
|
|
|
12
14
|
declare const getRsStringColumnType: () => {
|
|
13
|
-
|
|
15
|
+
type: string;
|
|
14
16
|
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
15
17
|
};
|
|
16
18
|
declare const getRsNumberColumnType: () => {
|
|
17
|
-
|
|
19
|
+
type: string;
|
|
18
20
|
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
19
21
|
};
|
|
20
|
-
declare const
|
|
22
|
+
declare const getRsSingleSelectColumnType: () => {
|
|
23
|
+
type: string;
|
|
24
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
25
|
+
};
|
|
26
|
+
declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
|
|
27
|
+
type: string;
|
|
28
|
+
filterOperators: ({
|
|
29
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
30
|
+
label?: string | undefined;
|
|
31
|
+
headerLabel?: string | undefined;
|
|
32
|
+
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;
|
|
38
|
+
} | {
|
|
39
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
40
|
+
label: string;
|
|
41
|
+
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;
|
|
43
|
+
})[];
|
|
44
|
+
};
|
|
45
|
+
declare const getRsMultipleSelectColumnType: () => {
|
|
46
|
+
type: string;
|
|
47
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
48
|
+
};
|
|
49
|
+
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
|
|
50
|
+
type: string;
|
|
51
|
+
filterOperators: ({
|
|
52
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
53
|
+
label: string;
|
|
54
|
+
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;
|
|
56
|
+
} | {
|
|
57
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
58
|
+
label: string;
|
|
59
|
+
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;
|
|
61
|
+
})[];
|
|
62
|
+
};
|
|
63
|
+
declare const customColumnTypes: Partial<GridColumnTypesRecord>;
|
|
21
64
|
|
|
22
65
|
declare const IS_BETWEEN: {
|
|
23
66
|
label: string;
|
|
24
67
|
value: string;
|
|
25
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
68
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
26
69
|
InputComponent: (props: any) => JSX.Element;
|
|
27
70
|
};
|
|
28
71
|
|
|
29
72
|
declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
30
73
|
|
|
74
|
+
declare const DOES_NOT_CONTAIN: {
|
|
75
|
+
label: string;
|
|
76
|
+
value: string;
|
|
77
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
78
|
+
InputComponent: typeof GridFilterInputValue;
|
|
79
|
+
};
|
|
80
|
+
|
|
31
81
|
declare const DOES_NOT_EQUAL: {
|
|
32
82
|
label: string;
|
|
33
83
|
value: string;
|
|
@@ -35,12 +85,70 @@ declare const DOES_NOT_EQUAL: {
|
|
|
35
85
|
InputComponent: typeof GridFilterInputValue;
|
|
36
86
|
};
|
|
37
87
|
|
|
38
|
-
declare const
|
|
88
|
+
declare const DOES_NOT_HAVE: {
|
|
89
|
+
label: string;
|
|
90
|
+
value: string;
|
|
91
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
92
|
+
InputComponent: typeof GridFilterInputValue;
|
|
93
|
+
};
|
|
94
|
+
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
95
|
+
InputComponent: typeof GridFilterInputSingleSelect;
|
|
96
|
+
label: string;
|
|
97
|
+
value: string;
|
|
98
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
declare const HAS: {
|
|
39
102
|
label: string;
|
|
40
103
|
value: string;
|
|
41
104
|
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
42
105
|
InputComponent: typeof GridFilterInputValue;
|
|
43
106
|
};
|
|
107
|
+
declare const HAS_WITH_SELECT: {
|
|
108
|
+
InputComponent: typeof GridFilterInputSingleSelect;
|
|
109
|
+
label: string;
|
|
110
|
+
value: string;
|
|
111
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
declare const HAS_ONLY: {
|
|
115
|
+
label: string;
|
|
116
|
+
value: string;
|
|
117
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
118
|
+
InputComponent: typeof GridFilterInputValue;
|
|
119
|
+
};
|
|
120
|
+
declare const HAS_ONLY_WITH_SELECT: {
|
|
121
|
+
InputComponent: typeof GridFilterInputSingleSelect;
|
|
122
|
+
label: string;
|
|
123
|
+
value: string;
|
|
124
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
declare const IS: GridFilterOperator<any, any, any>;
|
|
128
|
+
declare const IS_WITH_SELECT: {
|
|
129
|
+
InputComponent: typeof GridFilterInputSingleSelect;
|
|
130
|
+
label?: string | undefined;
|
|
131
|
+
headerLabel?: string | undefined;
|
|
132
|
+
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;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
declare const IS_NOT: GridFilterOperator<any, any, any>;
|
|
141
|
+
declare const IS_NOT_WITH_SELECT: {
|
|
142
|
+
InputComponent: typeof GridFilterInputSingleSelect;
|
|
143
|
+
label?: string | undefined;
|
|
144
|
+
headerLabel?: string | undefined;
|
|
145
|
+
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;
|
|
151
|
+
};
|
|
44
152
|
|
|
45
153
|
declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
46
154
|
|
|
@@ -70,6 +178,25 @@ declare const IS_ANY_OF: {
|
|
|
70
178
|
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
71
179
|
InputComponent: typeof GridFilterInputMultipleValue;
|
|
72
180
|
};
|
|
181
|
+
declare const IS_ANY_OF_WITH_SELECT: {
|
|
182
|
+
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
183
|
+
label: string;
|
|
184
|
+
value: string;
|
|
185
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare const HAS_ANY_OF: {
|
|
189
|
+
label: string;
|
|
190
|
+
value: string;
|
|
191
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
192
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
193
|
+
};
|
|
194
|
+
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
195
|
+
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
196
|
+
label: string;
|
|
197
|
+
value: string;
|
|
198
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
199
|
+
};
|
|
73
200
|
|
|
74
201
|
declare const IS_NOT_ANY_OF: {
|
|
75
202
|
label: string;
|
|
@@ -77,6 +204,12 @@ declare const IS_NOT_ANY_OF: {
|
|
|
77
204
|
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
78
205
|
InputComponent: typeof GridFilterInputMultipleValue;
|
|
79
206
|
};
|
|
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
|
+
};
|
|
80
213
|
|
|
81
214
|
declare const STARTS_WITH_ANY_OF: {
|
|
82
215
|
label: string;
|
|
@@ -86,16 +219,47 @@ declare const STARTS_WITH_ANY_OF: {
|
|
|
86
219
|
};
|
|
87
220
|
|
|
88
221
|
declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
222
|
+
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
|
|
223
|
+
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
|
|
89
224
|
|
|
90
225
|
declare const operatorList: {
|
|
91
226
|
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
92
227
|
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
93
228
|
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
94
|
-
date: _mui_x_data_grid_pro.GridFilterOperator<any,
|
|
95
|
-
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any,
|
|
229
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
230
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
96
231
|
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
97
232
|
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
98
233
|
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>[];
|
|
235
|
+
rsSingleSelectWithShortOperatorList: ({
|
|
236
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
237
|
+
label?: string | undefined;
|
|
238
|
+
headerLabel?: string | undefined;
|
|
239
|
+
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;
|
|
245
|
+
} | {
|
|
246
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
247
|
+
label: string;
|
|
248
|
+
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;
|
|
250
|
+
})[];
|
|
251
|
+
rsMultipleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
252
|
+
rsMultipleSelectWithShortOperatorList: ({
|
|
253
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
254
|
+
label: string;
|
|
255
|
+
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;
|
|
257
|
+
} | {
|
|
258
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
259
|
+
label: string;
|
|
260
|
+
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;
|
|
262
|
+
})[];
|
|
99
263
|
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
100
264
|
};
|
|
101
265
|
|
|
@@ -166,9 +330,7 @@ declare const StatefulDataGrid: Comp<StatefulDataGridProps, HTMLDivElement>;
|
|
|
166
330
|
interface ExtendedGridFilterModel extends GridFilterModel {
|
|
167
331
|
quickFilterValues?: string[];
|
|
168
332
|
}
|
|
169
|
-
interface ExtendedGridPaginationModel {
|
|
170
|
-
page: number;
|
|
171
|
-
pageSize: number;
|
|
333
|
+
interface ExtendedGridPaginationModel extends GridPaginationModel {
|
|
172
334
|
direction?: 'next' | 'back';
|
|
173
335
|
}
|
|
174
336
|
|
|
@@ -178,6 +340,8 @@ declare const encodeValue: (value: string | undefined) => string;
|
|
|
178
340
|
declare const urlSearchParamsToString: (searchParams: URLSearchParams) => string;
|
|
179
341
|
declare const numberOperatorEncoder: Record<string, string>;
|
|
180
342
|
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;
|
|
181
345
|
/** FILTERS */
|
|
182
346
|
declare const getFilterModelFromString: (searchString: string, columns: DataGridProps['columns']) => ExtendedGridFilterModel | 'invalid';
|
|
183
347
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
@@ -188,8 +352,8 @@ declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearch
|
|
|
188
352
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
|
|
189
353
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
190
354
|
/** COLUMN VISIBILITY */
|
|
355
|
+
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
|
|
191
356
|
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
|
|
192
|
-
declare const getColumnVisibilityFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
|
|
193
357
|
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
|
|
194
358
|
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
|
|
195
359
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
@@ -251,12 +415,12 @@ declare const BasePopper: React.JSXElementConstructor<any>;
|
|
|
251
415
|
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
252
416
|
|
|
253
417
|
interface CompletionResponseItem {
|
|
254
|
-
|
|
255
|
-
|
|
418
|
+
field: string;
|
|
419
|
+
operator: string;
|
|
256
420
|
value?: string;
|
|
257
421
|
}
|
|
258
422
|
type CompletionResponse = {
|
|
259
|
-
|
|
423
|
+
logicOperator: 'and' | 'or';
|
|
260
424
|
items: CompletionResponseItem[];
|
|
261
425
|
};
|
|
262
426
|
interface LocaleText {
|
|
@@ -302,11 +466,9 @@ type ControlledPaginationProps = {
|
|
|
302
466
|
displayPagination?: boolean;
|
|
303
467
|
selectionStatus: SelectionStatus;
|
|
304
468
|
apiRef: MutableRefObject<GridApiPro>;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
onPageSizeChange: (pageSize: number) => void;
|
|
309
|
-
rowsPerPageOptions?: number[];
|
|
469
|
+
paginationModel: GridPaginationModel;
|
|
470
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
471
|
+
pageSizeOptions?: number[];
|
|
310
472
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
311
473
|
paginationProps?: DataGridProps['paginationProps'];
|
|
312
474
|
};
|
|
@@ -317,16 +479,14 @@ type ServerSideControlledPaginationProps = {
|
|
|
317
479
|
displayRowsPerPage?: boolean;
|
|
318
480
|
displayPagination?: boolean;
|
|
319
481
|
selectionStatus: SelectionStatus;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
onPageSizeChange: (pageSize: number) => void;
|
|
324
|
-
rowsPerPageOptions?: number[];
|
|
482
|
+
paginationModel: GridPaginationModel;
|
|
483
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
484
|
+
pageSizeOptions?: number[];
|
|
325
485
|
paginationProps?: DataGridProps['paginationProps'];
|
|
326
486
|
rowCount: number;
|
|
327
487
|
loading?: boolean;
|
|
328
488
|
};
|
|
329
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel:
|
|
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;
|
|
330
490
|
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
331
491
|
|
|
332
492
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
@@ -416,15 +576,13 @@ type ToolbarWrapperProps = {
|
|
|
416
576
|
selectionStatus: React.MutableRefObject<SelectionStatus>;
|
|
417
577
|
apiRef: DataGridProps['apiRef'];
|
|
418
578
|
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
onPageSizeChange: DataGridProps['onPageSizeChange'];
|
|
423
|
-
rowsPerPageOptions: DataGridProps['rowsPerPageOptions'];
|
|
579
|
+
paginationModel: DataGridProps['paginationModel'];
|
|
580
|
+
onPaginationModelChange: DataGridProps['onPaginationModelChange'];
|
|
581
|
+
pageSizeOptions: DataGridProps['pageSizeOptions'];
|
|
424
582
|
paginationProps: DataGridProps['paginationProps'];
|
|
425
583
|
paginationMode?: DataGridProps['paginationMode'];
|
|
426
584
|
rowCount?: DataGridProps['rowCount'];
|
|
427
585
|
};
|
|
428
586
|
declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
|
|
429
587
|
|
|
430
|
-
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, DataGrid, DataGridModel, DataGridProps, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, IS_ANY_OF, IS_BETWEEN, IS_NOT_ANY_OF, 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, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsNumberColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|
|
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 };
|