@mui/x-data-grid 5.0.0-beta.2 → 5.0.0-beta.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/CHANGELOG.md +507 -18
- package/LICENSE +1 -1
- package/README.md +2 -3
- package/data-grid.d.ts +729 -758
- package/index-cjs.js +2 -3
- package/index-esm.js +2 -3
- package/package.json +5 -6
package/data-grid.d.ts
CHANGED
|
@@ -8,10 +8,11 @@ import { ClickAwayListenerProps } from '@mui/material/ClickAwayListener';
|
|
|
8
8
|
import { PopperProps } from '@mui/material/Popper';
|
|
9
9
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
10
10
|
import * as _mui_material from '@mui/material';
|
|
11
|
-
import {
|
|
11
|
+
import { InternalStandardProps } from '@mui/material';
|
|
12
12
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
13
13
|
import { ButtonProps } from '@mui/material/Button';
|
|
14
14
|
import { TooltipProps } from '@mui/material/Tooltip';
|
|
15
|
+
import { ComponentsPropsList } from '@mui/material/styles';
|
|
15
16
|
import * as reselect from 'reselect';
|
|
16
17
|
|
|
17
18
|
interface GridBodyProps {
|
|
@@ -30,6 +31,23 @@ declare function GridHeaderPlaceholder(): JSX.Element;
|
|
|
30
31
|
|
|
31
32
|
declare function GridOverlays(): JSX.Element | null;
|
|
32
33
|
|
|
34
|
+
interface GridFilterItem {
|
|
35
|
+
id?: number | string;
|
|
36
|
+
columnField?: string;
|
|
37
|
+
value?: any;
|
|
38
|
+
operatorValue?: string;
|
|
39
|
+
}
|
|
40
|
+
declare enum GridLinkOperator {
|
|
41
|
+
And = "and",
|
|
42
|
+
Or = "or"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface GridFilterInputValueProps {
|
|
46
|
+
item: GridFilterItem;
|
|
47
|
+
applyValue: (value: GridFilterItem) => void;
|
|
48
|
+
apiRef: any;
|
|
49
|
+
}
|
|
50
|
+
|
|
33
51
|
/**
|
|
34
52
|
* The mode of the cell.
|
|
35
53
|
*/
|
|
@@ -56,31 +74,52 @@ interface GridColumnHeaderIndexCoordinates {
|
|
|
56
74
|
colIndex: number;
|
|
57
75
|
}
|
|
58
76
|
|
|
59
|
-
declare type GridRowsProp = Readonly<
|
|
60
|
-
|
|
77
|
+
declare type GridRowsProp = Readonly<GridRowModel[]>;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated prefer GridRowModel.
|
|
80
|
+
*/
|
|
81
|
+
declare type GridRowData<T = {
|
|
61
82
|
[key: string]: any;
|
|
62
|
-
};
|
|
83
|
+
}> = T;
|
|
63
84
|
/**
|
|
64
85
|
* The key value object representing the data of a row.
|
|
65
86
|
*/
|
|
66
|
-
declare type GridRowModel =
|
|
87
|
+
declare type GridRowModel<T = {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}> = T;
|
|
67
90
|
declare type GridUpdateAction = 'delete';
|
|
68
|
-
interface GridRowModelUpdate extends
|
|
91
|
+
interface GridRowModelUpdate extends GridRowModel {
|
|
69
92
|
_action?: GridUpdateAction;
|
|
70
93
|
}
|
|
94
|
+
interface GridRowTreeNodeConfig {
|
|
95
|
+
id: GridRowId;
|
|
96
|
+
children?: GridRowTreeConfig;
|
|
97
|
+
descendantsCount?: number;
|
|
98
|
+
expanded?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* If `true`, this node has been automatically added to fill a gap in the tree structure
|
|
101
|
+
*/
|
|
102
|
+
fillerNode?: boolean;
|
|
103
|
+
}
|
|
104
|
+
declare type GridRowTreeConfig = Map<string, GridRowTreeNodeConfig>;
|
|
105
|
+
declare type GridRowsLookup = Record<GridRowId, GridRowModel>;
|
|
71
106
|
/**
|
|
72
107
|
* The type of Id supported by the grid.
|
|
73
108
|
*/
|
|
74
109
|
declare type GridRowId = string | number;
|
|
110
|
+
declare type GridRowEntry = {
|
|
111
|
+
id: GridRowId;
|
|
112
|
+
model: GridRowModel;
|
|
113
|
+
};
|
|
75
114
|
/**
|
|
76
|
-
* The function to retrieve the id of a [[
|
|
115
|
+
* The function to retrieve the id of a [[GridRowModel]].
|
|
77
116
|
*/
|
|
78
|
-
declare type GridRowIdGetter = (row:
|
|
117
|
+
declare type GridRowIdGetter = (row: GridRowModel) => GridRowId;
|
|
79
118
|
/**
|
|
80
119
|
* An helper function to check if the id provided is valid.
|
|
81
120
|
*
|
|
82
121
|
* @param {GridRowId} id Id as [[GridRowId]].
|
|
83
|
-
* @param {GridRowModel | Partial<GridRowModel>} row Row as [[
|
|
122
|
+
* @param {GridRowModel | Partial<GridRowModel>} row Row as [[GridRowModel]].
|
|
84
123
|
* @param {string} detailErrorMessage A custom error message to display for invalid IDs
|
|
85
124
|
*/
|
|
86
125
|
declare function checkGridRowIdIsValid(id: GridRowId, row: GridRowModel | Partial<GridRowModel>, detailErrorMessage?: string): void;
|
|
@@ -112,7 +151,7 @@ declare enum GridRowModes {
|
|
|
112
151
|
/**
|
|
113
152
|
* Object passed as parameter in the column [[GridColDef]] cell renderer.
|
|
114
153
|
*/
|
|
115
|
-
interface GridCellParams {
|
|
154
|
+
interface GridCellParams<V = any, R = any, F = V> {
|
|
116
155
|
/**
|
|
117
156
|
* The grid row id.
|
|
118
157
|
*/
|
|
@@ -124,15 +163,15 @@ interface GridCellParams {
|
|
|
124
163
|
/**
|
|
125
164
|
* The cell value, but if the column has valueGetter, use getValue.
|
|
126
165
|
*/
|
|
127
|
-
value:
|
|
166
|
+
value: V;
|
|
128
167
|
/**
|
|
129
168
|
* The cell value formatted with the column valueFormatter.
|
|
130
169
|
*/
|
|
131
|
-
formattedValue:
|
|
170
|
+
formattedValue: F;
|
|
132
171
|
/**
|
|
133
172
|
* The row model of the row that the current cell belongs to.
|
|
134
173
|
*/
|
|
135
|
-
row: GridRowModel
|
|
174
|
+
row: GridRowModel<R>;
|
|
136
175
|
/**
|
|
137
176
|
* The column of the row that the current cell belongs to.
|
|
138
177
|
*/
|
|
@@ -164,7 +203,7 @@ interface GridCellParams {
|
|
|
164
203
|
/**
|
|
165
204
|
* GridCellParams containing api.
|
|
166
205
|
*/
|
|
167
|
-
interface GridRenderCellParams extends GridCellParams {
|
|
206
|
+
interface GridRenderCellParams<V = any, R = any, F = V> extends GridCellParams<V, R, F> {
|
|
168
207
|
/**
|
|
169
208
|
* GridApi that let you manipulate the grid.
|
|
170
209
|
*/
|
|
@@ -183,10 +222,28 @@ interface GridRenderEditCellParams extends GridEditCellProps {
|
|
|
183
222
|
* Alias of GridRenderCellParams.
|
|
184
223
|
*/
|
|
185
224
|
declare type GridValueGetterParams = Omit<GridRenderCellParams, 'formattedValue' | 'isEditable'>;
|
|
225
|
+
/**
|
|
226
|
+
* Object passed as parameter in the column [[GridColDef]] value setter callback.
|
|
227
|
+
*/
|
|
228
|
+
interface GridValueSetterParams {
|
|
229
|
+
/**
|
|
230
|
+
* The new cell value.
|
|
231
|
+
*/
|
|
232
|
+
value: GridCellValue;
|
|
233
|
+
/**
|
|
234
|
+
* The row that is being editted.
|
|
235
|
+
*/
|
|
236
|
+
row: GridRowModel;
|
|
237
|
+
}
|
|
186
238
|
/**
|
|
187
239
|
* Object passed as parameter in the column [[GridColDef]] value formatter callback.
|
|
188
240
|
*/
|
|
189
241
|
interface GridValueFormatterParams {
|
|
242
|
+
/**
|
|
243
|
+
* The grid row id.
|
|
244
|
+
* It is not available when the value formatter is called by the filter panel.
|
|
245
|
+
*/
|
|
246
|
+
id?: GridRowId;
|
|
190
247
|
/**
|
|
191
248
|
* The column field of the cell that triggered the event
|
|
192
249
|
*/
|
|
@@ -201,6 +258,29 @@ interface GridValueFormatterParams {
|
|
|
201
258
|
api: any;
|
|
202
259
|
}
|
|
203
260
|
|
|
261
|
+
interface GridFilterOperator {
|
|
262
|
+
label?: string;
|
|
263
|
+
value: string;
|
|
264
|
+
getApplyFilterFn: (filterItem: GridFilterItem, column: GridStateColDef) => null | ((params: GridCellParams) => boolean);
|
|
265
|
+
InputComponent?: React$1.JSXElementConstructor<GridFilterInputValueProps>;
|
|
266
|
+
InputComponentProps?: Record<string, any>;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare const getGridBooleanOperators: () => GridFilterOperator[];
|
|
270
|
+
|
|
271
|
+
declare const getGridDateOperators: (showTime?: boolean | undefined) => GridFilterOperator[];
|
|
272
|
+
|
|
273
|
+
declare const getGridNumericColumnOperators: () => GridFilterOperator[];
|
|
274
|
+
|
|
275
|
+
declare const getGridSingleSelectOperators: () => GridFilterOperator[];
|
|
276
|
+
|
|
277
|
+
declare const getGridStringOperators: () => GridFilterOperator[];
|
|
278
|
+
|
|
279
|
+
declare type GridNativeColTypes = 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'singleSelect' | 'actions';
|
|
280
|
+
declare type GridColType = GridNativeColTypes | string;
|
|
281
|
+
|
|
282
|
+
declare const getGridColDef: (columnTypes: any, type: GridColType | undefined) => any;
|
|
283
|
+
|
|
204
284
|
/**
|
|
205
285
|
* A function used to process cellClassName params.
|
|
206
286
|
*/
|
|
@@ -233,31 +313,6 @@ declare type GridColumnHeaderClassFn = (params: GridColumnHeaderParams) => strin
|
|
|
233
313
|
*/
|
|
234
314
|
declare type GridColumnHeaderClassNamePropType = string | GridColumnHeaderClassFn;
|
|
235
315
|
|
|
236
|
-
interface GridFilterItem {
|
|
237
|
-
id?: number | string;
|
|
238
|
-
columnField?: string;
|
|
239
|
-
value?: any;
|
|
240
|
-
operatorValue?: string;
|
|
241
|
-
}
|
|
242
|
-
declare enum GridLinkOperator {
|
|
243
|
-
And = "and",
|
|
244
|
-
Or = "or"
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
interface GridFilterInputValueProps {
|
|
248
|
-
item: GridFilterItem;
|
|
249
|
-
applyValue: (value: GridFilterItem) => void;
|
|
250
|
-
apiRef: any;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
interface GridFilterOperator {
|
|
254
|
-
label?: string;
|
|
255
|
-
value: string;
|
|
256
|
-
getApplyFilterFn: (filterItem: GridFilterItem, column: GridStateColDef) => null | ((params: GridCellParams) => boolean);
|
|
257
|
-
InputComponent?: React$1.JSXElementConstructor<GridFilterInputValueProps>;
|
|
258
|
-
InputComponentProps?: Record<string, any>;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
316
|
declare type GridSortDirection = 'asc' | 'desc' | null | undefined;
|
|
262
317
|
declare type GridFieldComparatorList = {
|
|
263
318
|
field: string;
|
|
@@ -291,18 +346,10 @@ interface GridSortItem {
|
|
|
291
346
|
*/
|
|
292
347
|
declare type GridSortModel = GridSortItem[];
|
|
293
348
|
|
|
294
|
-
declare const GRID_STRING_COLUMN_TYPE = "string";
|
|
295
|
-
declare const GRID_NUMBER_COLUMN_TYPE = "number";
|
|
296
|
-
declare const GRID_DATE_COLUMN_TYPE = "date";
|
|
297
|
-
declare const GRID_DATETIME_COLUMN_TYPE = "dateTime";
|
|
298
|
-
declare const GRID_BOOLEAN_COLUMN_TYPE = "boolean";
|
|
299
|
-
declare type GridNativeColTypes = 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'singleSelect' | 'actions';
|
|
300
|
-
declare type GridColType = GridNativeColTypes | string;
|
|
301
|
-
|
|
302
349
|
/**
|
|
303
|
-
* Object passed as parameter in the
|
|
350
|
+
* Object passed as parameter in the row callbacks.
|
|
304
351
|
*/
|
|
305
|
-
interface GridRowParams {
|
|
352
|
+
interface GridRowParams<R extends GridRowModel = GridRowModel> {
|
|
306
353
|
/**
|
|
307
354
|
* The grid row id.
|
|
308
355
|
*/
|
|
@@ -310,7 +357,7 @@ interface GridRowParams {
|
|
|
310
357
|
/**
|
|
311
358
|
* The row model of the row that the current cell belongs to.
|
|
312
359
|
*/
|
|
313
|
-
row:
|
|
360
|
+
row: R;
|
|
314
361
|
/**
|
|
315
362
|
* All grid columns.
|
|
316
363
|
*/
|
|
@@ -324,6 +371,24 @@ interface GridRowParams {
|
|
|
324
371
|
getValue: (id: GridRowId, field: string) => GridCellValue;
|
|
325
372
|
}
|
|
326
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Object passed as parameter of the valueOptions function for singleSelect column.
|
|
376
|
+
*/
|
|
377
|
+
interface GridValueOptionsParams {
|
|
378
|
+
/**
|
|
379
|
+
* The field of the column to which options will be provided
|
|
380
|
+
*/
|
|
381
|
+
field: string;
|
|
382
|
+
/**
|
|
383
|
+
* The grid row id.
|
|
384
|
+
*/
|
|
385
|
+
id?: GridRowId;
|
|
386
|
+
/**
|
|
387
|
+
* The row model of the row that the current cell belongs to.
|
|
388
|
+
*/
|
|
389
|
+
row?: GridRowModel;
|
|
390
|
+
}
|
|
391
|
+
|
|
327
392
|
declare type GridActionsCellItemProps = {
|
|
328
393
|
label: string;
|
|
329
394
|
icon?: React$1.ReactElement;
|
|
@@ -342,12 +407,16 @@ declare const GridActionsCellItem: {
|
|
|
342
407
|
* Alignment used in position elements in Cells.
|
|
343
408
|
*/
|
|
344
409
|
declare type GridAlignment = 'left' | 'right' | 'center';
|
|
410
|
+
declare type ValueOptions = string | number | {
|
|
411
|
+
value: any;
|
|
412
|
+
label: string;
|
|
413
|
+
};
|
|
345
414
|
/**
|
|
346
415
|
* Column Definition interface.
|
|
347
416
|
*/
|
|
348
417
|
interface GridColDef {
|
|
349
418
|
/**
|
|
350
|
-
* The column identifier. It's used to map with [[
|
|
419
|
+
* The column identifier. It's used to map with [[GridRowModel]] values.
|
|
351
420
|
*/
|
|
352
421
|
field: string;
|
|
353
422
|
/**
|
|
@@ -402,12 +471,9 @@ interface GridColDef {
|
|
|
402
471
|
*/
|
|
403
472
|
type?: GridColType;
|
|
404
473
|
/**
|
|
405
|
-
* To be used in combination with `type: 'singleSelect'`. This is an array of the possible cell values and labels.
|
|
474
|
+
* To be used in combination with `type: 'singleSelect'`. This is an array (or a function returning an array) of the possible cell values and labels.
|
|
406
475
|
*/
|
|
407
|
-
valueOptions?: Array<
|
|
408
|
-
value: any;
|
|
409
|
-
label: string;
|
|
410
|
-
}>;
|
|
476
|
+
valueOptions?: Array<ValueOptions> | ((params: GridValueOptionsParams) => Array<ValueOptions>);
|
|
411
477
|
/**
|
|
412
478
|
* Allows to align the column values in cells.
|
|
413
479
|
*/
|
|
@@ -418,6 +484,13 @@ interface GridColDef {
|
|
|
418
484
|
* @returns {GridCellValue} The cell value.
|
|
419
485
|
*/
|
|
420
486
|
valueGetter?: (params: GridValueGetterParams) => GridCellValue;
|
|
487
|
+
/**
|
|
488
|
+
* Function that allows to customize how the entered value is stored in the row.
|
|
489
|
+
* It only works with cell/row editing.
|
|
490
|
+
* @param {GridValueSetterParams} params Object containing parameters for the setter.
|
|
491
|
+
* @returns {GridRowModel} The row with the updated field.
|
|
492
|
+
*/
|
|
493
|
+
valueSetter?: (params: GridValueSetterParams) => GridRowModel;
|
|
421
494
|
/**
|
|
422
495
|
* Function that allows to apply a formatter before rendering its value.
|
|
423
496
|
* @param {GridValueFormatterParams} params Object containing parameters for the formatter.
|
|
@@ -525,12 +598,13 @@ declare type GridColumnLookup = {
|
|
|
525
598
|
interface GridColumnsState {
|
|
526
599
|
all: string[];
|
|
527
600
|
lookup: GridColumnLookup;
|
|
528
|
-
}
|
|
529
|
-
declare const getInitialGridColumnsState: () => GridColumnsState;
|
|
601
|
+
}
|
|
530
602
|
|
|
531
|
-
declare const
|
|
603
|
+
declare const GRID_ACTIONS_COL_DEF: GridColTypeDef;
|
|
532
604
|
|
|
533
|
-
declare const
|
|
605
|
+
declare const GRID_BOOLEAN_COL_DEF: GridColTypeDef;
|
|
606
|
+
|
|
607
|
+
declare const GRID_CHECKBOX_SELECTION_COL_DEF: GridColDef;
|
|
534
608
|
|
|
535
609
|
declare function gridDateFormatter({ value }: {
|
|
536
610
|
value: GridCellValue;
|
|
@@ -541,11 +615,9 @@ declare function gridDateTimeFormatter({ value }: {
|
|
|
541
615
|
declare const GRID_DATE_COL_DEF: GridColTypeDef;
|
|
542
616
|
declare const GRID_DATETIME_COL_DEF: GridColTypeDef;
|
|
543
617
|
|
|
544
|
-
declare const getGridDateOperators: (showTime?: boolean | undefined) => GridFilterOperator[];
|
|
545
|
-
|
|
546
618
|
declare const GRID_NUMERIC_COL_DEF: GridColTypeDef;
|
|
547
619
|
|
|
548
|
-
declare const
|
|
620
|
+
declare const GRID_SINGLE_SELECT_COL_DEF: GridColTypeDef;
|
|
549
621
|
|
|
550
622
|
declare const GRID_STRING_COL_DEF: GridColTypeDef;
|
|
551
623
|
|
|
@@ -554,10 +626,6 @@ declare type GridColumnTypesRecord = Record<GridColType, GridColTypeDef>;
|
|
|
554
626
|
declare const DEFAULT_GRID_COL_TYPE_KEY = "__default__";
|
|
555
627
|
declare const getGridDefaultColumnTypes: () => GridColumnTypesRecord;
|
|
556
628
|
|
|
557
|
-
declare const getGridStringOperators: () => GridFilterOperator[];
|
|
558
|
-
|
|
559
|
-
declare const GRID_ACTIONS_COL_DEF: GridColTypeDef;
|
|
560
|
-
|
|
561
629
|
interface CursorCoordinates {
|
|
562
630
|
x: number;
|
|
563
631
|
y: number;
|
|
@@ -825,6 +893,24 @@ interface GridScrollParams {
|
|
|
825
893
|
}
|
|
826
894
|
declare type GridScrollFn = (v: GridScrollParams) => void;
|
|
827
895
|
|
|
896
|
+
/**
|
|
897
|
+
* Object passed as parameter of the column sorted event.
|
|
898
|
+
*/
|
|
899
|
+
interface GridSortModelParams {
|
|
900
|
+
/**
|
|
901
|
+
* The sort model used to sort the grid.
|
|
902
|
+
*/
|
|
903
|
+
sortModel: GridSortModel;
|
|
904
|
+
/**
|
|
905
|
+
* The full set of columns.
|
|
906
|
+
*/
|
|
907
|
+
columns: GridColumns;
|
|
908
|
+
/**
|
|
909
|
+
* Api that let you manipulate the grid.
|
|
910
|
+
*/
|
|
911
|
+
api: any;
|
|
912
|
+
}
|
|
913
|
+
|
|
828
914
|
interface GridColumnMenuState {
|
|
829
915
|
open: boolean;
|
|
830
916
|
field?: string;
|
|
@@ -832,13 +918,11 @@ interface GridColumnMenuState {
|
|
|
832
918
|
|
|
833
919
|
interface GridColumnReorderState {
|
|
834
920
|
dragCol: string;
|
|
835
|
-
}
|
|
836
|
-
declare function getInitialGridColumnReorderState(): GridColumnReorderState;
|
|
921
|
+
}
|
|
837
922
|
|
|
838
923
|
interface GridColumnResizeState {
|
|
839
924
|
resizingColumnField: string;
|
|
840
|
-
}
|
|
841
|
-
declare function getInitialGridColumnResizeState(): GridColumnResizeState;
|
|
925
|
+
}
|
|
842
926
|
|
|
843
927
|
/**
|
|
844
928
|
* Available densities.
|
|
@@ -853,18 +937,12 @@ declare enum GridDensityTypes {
|
|
|
853
937
|
Comfortable = "comfortable"
|
|
854
938
|
}
|
|
855
939
|
|
|
856
|
-
interface
|
|
940
|
+
interface GridDensityState {
|
|
857
941
|
value: GridDensity;
|
|
858
942
|
rowHeight: number;
|
|
859
943
|
headerHeight: number;
|
|
860
944
|
}
|
|
861
945
|
|
|
862
|
-
interface VisibleGridRowsState {
|
|
863
|
-
visibleRowsLookup: Record<GridRowId, boolean>;
|
|
864
|
-
visibleRows?: GridRowId[];
|
|
865
|
-
}
|
|
866
|
-
declare const getInitialVisibleGridRowsState: () => VisibleGridRowsState;
|
|
867
|
-
|
|
868
946
|
declare type GridCellIdentifier = {
|
|
869
947
|
id: GridRowId;
|
|
870
948
|
field: string;
|
|
@@ -889,29 +967,30 @@ declare enum GridPreferencePanelsValue {
|
|
|
889
967
|
interface GridPreferencePanelState {
|
|
890
968
|
open: boolean;
|
|
891
969
|
openedPanelValue?: GridPreferencePanelsValue;
|
|
892
|
-
}
|
|
970
|
+
}
|
|
971
|
+
declare type GridPreferencePanelInitialState = GridPreferencePanelState;
|
|
893
972
|
|
|
894
|
-
interface
|
|
973
|
+
interface GridRowsState {
|
|
895
974
|
idRowsLookup: Record<GridRowId, GridRowModel>;
|
|
896
975
|
allRows: GridRowId[];
|
|
897
976
|
totalRowCount: number;
|
|
898
|
-
}
|
|
899
|
-
declare const getInitialGridRowState: () => InternalGridRowsState;
|
|
977
|
+
}
|
|
900
978
|
|
|
901
979
|
interface GridSortingState {
|
|
902
980
|
sortedRows: GridRowId[];
|
|
903
981
|
sortModel: GridSortModel;
|
|
904
982
|
}
|
|
905
|
-
|
|
983
|
+
interface GridSortingInitialState {
|
|
984
|
+
sortModel?: GridSortModel;
|
|
985
|
+
}
|
|
906
986
|
|
|
907
|
-
interface
|
|
987
|
+
interface GridRenderingState {
|
|
908
988
|
virtualPage: number;
|
|
909
989
|
virtualRowsCount: number;
|
|
910
990
|
renderContext: Partial<GridRenderContextProps> | null;
|
|
911
991
|
realScroll: GridScrollParams;
|
|
912
992
|
renderingZoneScroll: GridScrollParams;
|
|
913
|
-
}
|
|
914
|
-
declare const getInitialGridRenderingState: () => InternalRenderingState;
|
|
993
|
+
}
|
|
915
994
|
|
|
916
995
|
interface GridPaginationState {
|
|
917
996
|
pageSize: number;
|
|
@@ -920,15 +999,25 @@ interface GridPaginationState {
|
|
|
920
999
|
rowCount: number;
|
|
921
1000
|
}
|
|
922
1001
|
|
|
1002
|
+
declare const getDefaultGridFilterModel: () => GridFilterModel;
|
|
1003
|
+
interface GridFilterState {
|
|
1004
|
+
filterModel: GridFilterModel;
|
|
1005
|
+
visibleRowsLookup: Record<GridRowId, boolean>;
|
|
1006
|
+
visibleRows: GridRowId[] | null;
|
|
1007
|
+
}
|
|
1008
|
+
interface GridFilterInitialState {
|
|
1009
|
+
filterModel?: GridFilterModel;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
923
1012
|
interface GridState {
|
|
924
|
-
rows:
|
|
1013
|
+
rows: GridRowsState;
|
|
925
1014
|
editRows: GridEditRowsModel;
|
|
926
1015
|
pagination: GridPaginationState;
|
|
927
1016
|
columns: GridColumnsState;
|
|
928
1017
|
columnReorder: GridColumnReorderState;
|
|
929
1018
|
columnResize: GridColumnResizeState;
|
|
930
1019
|
columnMenu: GridColumnMenuState;
|
|
931
|
-
rendering:
|
|
1020
|
+
rendering: GridRenderingState;
|
|
932
1021
|
containerSizes: GridContainerProps | null;
|
|
933
1022
|
viewportSizes: GridViewportSizeState;
|
|
934
1023
|
scrollBar: GridScrollBarState;
|
|
@@ -936,13 +1025,16 @@ interface GridState {
|
|
|
936
1025
|
focus: GridFocusState;
|
|
937
1026
|
tabIndex: GridTabIndexState;
|
|
938
1027
|
selection: GridSelectionModel;
|
|
939
|
-
filter:
|
|
940
|
-
visibleRows: VisibleGridRowsState;
|
|
1028
|
+
filter: GridFilterState;
|
|
941
1029
|
preferencePanel: GridPreferencePanelState;
|
|
942
|
-
density:
|
|
1030
|
+
density: GridDensityState;
|
|
943
1031
|
error?: any;
|
|
944
1032
|
}
|
|
945
|
-
|
|
1033
|
+
interface GridInitialState {
|
|
1034
|
+
sorting?: GridSortingInitialState;
|
|
1035
|
+
filter?: GridFilterInitialState;
|
|
1036
|
+
preferencePanel?: GridPreferencePanelInitialState;
|
|
1037
|
+
}
|
|
946
1038
|
|
|
947
1039
|
/**
|
|
948
1040
|
* The column API interface that is available in the grid [[apiRef]].
|
|
@@ -1060,14 +1152,14 @@ interface GridControlStateApi {
|
|
|
1060
1152
|
* @param {GridControlStateItem<TModel>} controlState The [[GridControlStateItem]] to be registered.
|
|
1061
1153
|
* @ignore - do not document.
|
|
1062
1154
|
*/
|
|
1063
|
-
|
|
1155
|
+
unsafe_updateControlState: <TModel>(controlState: GridControlStateItem<TModel>) => void;
|
|
1064
1156
|
/**
|
|
1065
1157
|
* Allows the internal grid state to apply the registered control state constraint.
|
|
1066
1158
|
* @param {GridState} state The new modified state that would be the next if the state is not controlled.
|
|
1067
1159
|
* @returns {{ ignoreSetState: boolean, postUpdate: () => void }} ignoreSetState let the state know if it should update, and postUpdate is a callback function triggered if the state has updated.
|
|
1068
1160
|
* @ignore - do not document.
|
|
1069
1161
|
*/
|
|
1070
|
-
|
|
1162
|
+
unsafe_applyControlStateConstraint: (state: GridState) => {
|
|
1071
1163
|
ignoreSetState: boolean;
|
|
1072
1164
|
postUpdate: () => void;
|
|
1073
1165
|
};
|
|
@@ -1198,22 +1290,18 @@ interface GridClipboardApi {
|
|
|
1198
1290
|
* @param {boolean} includeHeaders Whether to include the headers or not. Default is `false`.
|
|
1199
1291
|
* @ignore - do not document.
|
|
1200
1292
|
*/
|
|
1201
|
-
|
|
1293
|
+
unsafe_copySelectedRowsToClipboard: (includeHeaders?: boolean) => void;
|
|
1202
1294
|
}
|
|
1203
1295
|
|
|
1204
|
-
/**
|
|
1205
|
-
* Available CSV delimiter characters used to separate fields.
|
|
1206
|
-
*/
|
|
1207
|
-
declare type GridExportCsvDelimiter = string;
|
|
1208
1296
|
/**
|
|
1209
1297
|
* The options to apply on the CSV export.
|
|
1210
1298
|
*/
|
|
1211
|
-
interface
|
|
1299
|
+
interface GridCsvExportOptions {
|
|
1212
1300
|
/**
|
|
1213
1301
|
* The character used to separate fields.
|
|
1214
1302
|
* @default ','
|
|
1215
1303
|
*/
|
|
1216
|
-
delimiter?:
|
|
1304
|
+
delimiter?: string;
|
|
1217
1305
|
/**
|
|
1218
1306
|
* The string used as the file name.
|
|
1219
1307
|
* @default `document.title`
|
|
@@ -1235,11 +1323,60 @@ interface GridExportCsvOptions {
|
|
|
1235
1323
|
* @default false
|
|
1236
1324
|
*/
|
|
1237
1325
|
allColumns?: boolean;
|
|
1326
|
+
/**
|
|
1327
|
+
* If `true, the first row of the CSV will include the headers of the grid.
|
|
1328
|
+
* @default true
|
|
1329
|
+
*/
|
|
1330
|
+
includeHeaders?: boolean;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* The options to apply on the Print export.
|
|
1334
|
+
*/
|
|
1335
|
+
interface GridPrintExportOptions {
|
|
1336
|
+
/**
|
|
1337
|
+
* The value to be used as the print window title.
|
|
1338
|
+
* @default The title of the page.
|
|
1339
|
+
*/
|
|
1340
|
+
fileName?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* The columns to be printed.
|
|
1343
|
+
* This should only be used if you want to restrict the columns exported.
|
|
1344
|
+
*/
|
|
1345
|
+
fields?: string[];
|
|
1346
|
+
/**
|
|
1347
|
+
* If `true`, the hidden columns will also be printed.
|
|
1348
|
+
* @default false
|
|
1349
|
+
*/
|
|
1350
|
+
allColumns?: boolean;
|
|
1351
|
+
/**
|
|
1352
|
+
* If `true`, the toolbar is removed for when printing.
|
|
1353
|
+
* @default false
|
|
1354
|
+
*/
|
|
1355
|
+
hideToolbar?: boolean;
|
|
1356
|
+
/**
|
|
1357
|
+
* If `true`, the footer is removed for when printing.
|
|
1358
|
+
* @default false
|
|
1359
|
+
*/
|
|
1360
|
+
hideFooter?: boolean;
|
|
1361
|
+
/**
|
|
1362
|
+
* If `false`, all <style> and <link type="stylesheet" /> tags from the <head> will not be copied
|
|
1363
|
+
* to the print window.
|
|
1364
|
+
* @default true
|
|
1365
|
+
*/
|
|
1366
|
+
copyStyles?: boolean;
|
|
1367
|
+
/**
|
|
1368
|
+
* One or more classes passed to the print window.
|
|
1369
|
+
*/
|
|
1370
|
+
bodyClassName?: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* Provide Print specific styles to the print window.
|
|
1373
|
+
*/
|
|
1374
|
+
pageStyle?: string | Function;
|
|
1238
1375
|
}
|
|
1239
1376
|
/**
|
|
1240
1377
|
* Available export formats.
|
|
1241
1378
|
*/
|
|
1242
|
-
declare type GridExportFormat = 'csv';
|
|
1379
|
+
declare type GridExportFormat = 'csv' | 'print';
|
|
1243
1380
|
|
|
1244
1381
|
/**
|
|
1245
1382
|
* The CSV export API interface that is available in the grid [[apiRef]].
|
|
@@ -1248,15 +1385,15 @@ interface GridCsvExportApi {
|
|
|
1248
1385
|
/**
|
|
1249
1386
|
* Returns the grid data as a CSV string.
|
|
1250
1387
|
* This method is used internally by `exportDataAsCsv`.
|
|
1251
|
-
* @param {
|
|
1388
|
+
* @param {GridCsvExportOptions} options The options to apply on the export.
|
|
1252
1389
|
* @returns {string} The data in the CSV format.
|
|
1253
1390
|
*/
|
|
1254
|
-
getDataAsCsv: (options?:
|
|
1391
|
+
getDataAsCsv: (options?: GridCsvExportOptions) => string;
|
|
1255
1392
|
/**
|
|
1256
1393
|
* Downloads and exports a CSV of the grid's data.
|
|
1257
|
-
* @param {
|
|
1394
|
+
* @param {GridCsvExportOptions} options The options to apply on the export.
|
|
1258
1395
|
*/
|
|
1259
|
-
exportDataAsCsv: (options?:
|
|
1396
|
+
exportDataAsCsv: (options?: GridCsvExportOptions) => void;
|
|
1260
1397
|
}
|
|
1261
1398
|
|
|
1262
1399
|
interface GridDensityOption {
|
|
@@ -1373,27 +1510,22 @@ interface GridFilterApi {
|
|
|
1373
1510
|
* Updates or inserts a [[GridFilterItem]].
|
|
1374
1511
|
* @param {GridFilterItem} item The filter to update.
|
|
1375
1512
|
*/
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* Applies a [[GridFilterItem]] on all rows. If no `linkOperator` is given, the "and" operator is used.
|
|
1379
|
-
* @param {GridFilterItem} item The filter to be applied.
|
|
1380
|
-
* @param {GridLinkOperator} linkOperator The link operator to use.
|
|
1381
|
-
*/
|
|
1382
|
-
applyFilter: (item: GridFilterItem, linkOperator?: GridLinkOperator) => void;
|
|
1513
|
+
upsertFilterItem: (item: GridFilterItem) => void;
|
|
1383
1514
|
/**
|
|
1384
1515
|
* Applies all filters on all rows.
|
|
1516
|
+
* @ignore - do not document.
|
|
1385
1517
|
*/
|
|
1386
|
-
|
|
1518
|
+
unsafe_applyFilters: () => void;
|
|
1387
1519
|
/**
|
|
1388
1520
|
* Deletes a [[GridFilterItem]].
|
|
1389
1521
|
* @param {GridFilterItem} item The filter to delete.
|
|
1390
1522
|
*/
|
|
1391
|
-
|
|
1523
|
+
deleteFilterItem: (item: GridFilterItem) => void;
|
|
1392
1524
|
/**
|
|
1393
1525
|
* Changes the [[GridLinkOperator]] used to connect the filters.
|
|
1394
1526
|
* @param {GridLinkOperator} operator The new link operator. It can be: `"and"` or `"or`".
|
|
1395
1527
|
*/
|
|
1396
|
-
|
|
1528
|
+
setFilterLinkOperator: (operator: GridLinkOperator) => void;
|
|
1397
1529
|
/**
|
|
1398
1530
|
* Sets the filter model to the one given by `model`.
|
|
1399
1531
|
* @param {GridFilterModel} model The new filter model.
|
|
@@ -1443,6 +1575,7 @@ interface GridLocaleText {
|
|
|
1443
1575
|
toolbarExport: React.ReactNode;
|
|
1444
1576
|
toolbarExportLabel: string;
|
|
1445
1577
|
toolbarExportCSV: React.ReactNode;
|
|
1578
|
+
toolbarExportPrint: React.ReactNode;
|
|
1446
1579
|
columnsPanelTextFieldLabel: string;
|
|
1447
1580
|
columnsPanelTextFieldPlaceholder: string;
|
|
1448
1581
|
columnsPanelDragIconLabel: string;
|
|
@@ -1589,6 +1722,33 @@ interface GridPreferencesPanelApi {
|
|
|
1589
1722
|
hidePreferences: () => void;
|
|
1590
1723
|
}
|
|
1591
1724
|
|
|
1725
|
+
/**
|
|
1726
|
+
* The Print export API interface that is available in the grid [[apiRef]].
|
|
1727
|
+
*/
|
|
1728
|
+
interface GridPrintExportApi {
|
|
1729
|
+
/**
|
|
1730
|
+
* Print the grid's data.
|
|
1731
|
+
* @param {GridPrintExportOptions} options The options to apply on the export.
|
|
1732
|
+
*/
|
|
1733
|
+
exportDataAsPrint: (options?: GridPrintExportOptions) => void;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* The disable virtualization API interface that is available in the grid [[apiRef]].
|
|
1738
|
+
*/
|
|
1739
|
+
interface GridDisableVirtualizationApi {
|
|
1740
|
+
/**
|
|
1741
|
+
* Disables grid's virtualization.
|
|
1742
|
+
* @ignore - do not document. Remove before releasing v5 stable version.
|
|
1743
|
+
*/
|
|
1744
|
+
unstable_disableVirtualization: () => void;
|
|
1745
|
+
/**
|
|
1746
|
+
* Enables grid's virtualization.
|
|
1747
|
+
* @ignore - do not document. Remove before releasing v5 stable version.
|
|
1748
|
+
*/
|
|
1749
|
+
unstable_enableVirtualization: () => void;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1592
1752
|
/**
|
|
1593
1753
|
* The Row API interface that is available in the grid `apiRef`.
|
|
1594
1754
|
*/
|
|
@@ -1656,6 +1816,18 @@ interface GridSelectionApi {
|
|
|
1656
1816
|
* @param {boolean} resetSelection Whether to reset the already selected rows or not. Default is `false`.
|
|
1657
1817
|
*/
|
|
1658
1818
|
selectRows: (ids: GridRowId[], isSelected?: boolean, resetSelection?: boolean) => void;
|
|
1819
|
+
/**
|
|
1820
|
+
* Change the selection state of all the selectable rows in a range.
|
|
1821
|
+
* @param {Object} range The range of rows to select.
|
|
1822
|
+
* @param {GridRowId} range.startId The first row id.
|
|
1823
|
+
* @param {GridRowId} range.endId The last row id.
|
|
1824
|
+
* @param {boolean} isSelected The new selection state. Default is `true`.
|
|
1825
|
+
* @param {boolean} resetSelection Whether to reset the selected rows outside of the range or not. Default is `false`.
|
|
1826
|
+
*/
|
|
1827
|
+
selectRowRange: (range: {
|
|
1828
|
+
startId: GridRowId;
|
|
1829
|
+
endId: GridRowId;
|
|
1830
|
+
}, isSelected?: boolean, resetSelection?: boolean) => void;
|
|
1659
1831
|
/**
|
|
1660
1832
|
* Determines if a row is selected or not.
|
|
1661
1833
|
* @param {GridRowId} id The id of the row.
|
|
@@ -1728,30 +1900,6 @@ interface GridStateApi {
|
|
|
1728
1900
|
forceUpdate: React$1.Dispatch<any>;
|
|
1729
1901
|
}
|
|
1730
1902
|
|
|
1731
|
-
/**
|
|
1732
|
-
* The virtualization API interface that is available in the grid [[apiRef]].
|
|
1733
|
-
*/
|
|
1734
|
-
interface GridVirtualizationApi {
|
|
1735
|
-
/**
|
|
1736
|
-
* Get the current containerProps.
|
|
1737
|
-
* @returns {GridContainerProps | null} The container properties.
|
|
1738
|
-
* @ignore - do not document.
|
|
1739
|
-
*/
|
|
1740
|
-
getContainerPropsState: () => GridContainerProps | null;
|
|
1741
|
-
/**
|
|
1742
|
-
* Get the current renderContext.
|
|
1743
|
-
* @returns {Partial<GridRenderContextProps> | undefined} The render context.
|
|
1744
|
-
* @ignore - do not document.
|
|
1745
|
-
*/
|
|
1746
|
-
getRenderContextState: () => Partial<GridRenderContextProps> | undefined;
|
|
1747
|
-
/**
|
|
1748
|
-
* Refreshes the viewport cells according to the scroll positions
|
|
1749
|
-
* @param {boolean} forceRender If `true`, forces a rerender. By default, it is `false`.
|
|
1750
|
-
* @ignore - do not document.
|
|
1751
|
-
*/
|
|
1752
|
-
updateViewport: (forceRender?: boolean) => void;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
1903
|
interface Logger {
|
|
1756
1904
|
debug: (...args: any[]) => void;
|
|
1757
1905
|
info: (...args: any[]) => void;
|
|
@@ -1794,10 +1942,56 @@ interface GridScrollApi {
|
|
|
1794
1942
|
scrollToIndexes: (params: Partial<GridCellIndexCoordinates>) => boolean;
|
|
1795
1943
|
}
|
|
1796
1944
|
|
|
1945
|
+
declare type GridColumnsPreProcessing = (columns: GridColumns) => GridColumns;
|
|
1946
|
+
interface GridColumnsPreProcessingApi {
|
|
1947
|
+
/**
|
|
1948
|
+
* Register a column pre-processing and emit an event to re-apply all the columns pre-processing
|
|
1949
|
+
* @param {string} processingName Name of the pre-processing. Used to clean the previous version of the pre-processing.
|
|
1950
|
+
* @param {GridColumnsPreProcessing | null } columnsPreProcessing Pre-processing to register.
|
|
1951
|
+
* @ignore - do not document
|
|
1952
|
+
*/
|
|
1953
|
+
unstable_registerColumnPreProcessing: (processingName: string, columnsPreProcessing: GridColumnsPreProcessing) => void;
|
|
1954
|
+
/**
|
|
1955
|
+
* Apply all the columns pre-processing
|
|
1956
|
+
* @param {GridColumns} columns. Columns to pre-process
|
|
1957
|
+
* @returns {GridColumns} The pre-processed columns
|
|
1958
|
+
* @ignore - do not document
|
|
1959
|
+
*/
|
|
1960
|
+
unstable_applyAllColumnPreProcessing: (columns: GridColumns) => GridColumns;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
declare type RowGroupParams = {
|
|
1964
|
+
ids: GridRowId[];
|
|
1965
|
+
idRowsLookup: GridRowsLookup;
|
|
1966
|
+
};
|
|
1967
|
+
interface GridRowGroupingResult {
|
|
1968
|
+
tree: GridRowTreeConfig;
|
|
1969
|
+
paths: Record<GridRowId, string[]>;
|
|
1970
|
+
idRowsLookup: GridRowsLookup;
|
|
1971
|
+
}
|
|
1972
|
+
declare type GridRowGroupingPreProcessing = (params: RowGroupParams) => GridRowGroupingResult | null;
|
|
1973
|
+
interface GridRowGroupsPreProcessingApi {
|
|
1974
|
+
/**
|
|
1975
|
+
* Register a column pre-processing and emit an event to re-apply the row grouping pre-processing
|
|
1976
|
+
* @param {string} processingName Name of the pre-processing. Used to clean the previous version of the pre-processing.
|
|
1977
|
+
* @param {GridRowGroupingPreProcessing} columnsPreProcessing Pre-processing to register.
|
|
1978
|
+
* @ignore - do not document
|
|
1979
|
+
*/
|
|
1980
|
+
unstable_registerRowGroupsBuilder: (processingName: string, groupingFunction: GridRowGroupingPreProcessing | null) => void;
|
|
1981
|
+
/**
|
|
1982
|
+
* Apply the first row grouping pre-processing that does not return null
|
|
1983
|
+
* @param {GridRowsLookup} rowsLookup. Lookup of the rows to group
|
|
1984
|
+
* @param {GridRowId[]} List of the rows IDs
|
|
1985
|
+
* @returns {GridRowGroupingResult} The grouped rows
|
|
1986
|
+
* @ignore - do not document
|
|
1987
|
+
*/
|
|
1988
|
+
unstable_groupRows: (params: RowGroupParams) => GridRowGroupingResult;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1797
1991
|
/**
|
|
1798
1992
|
* The full grid API.
|
|
1799
1993
|
*/
|
|
1800
|
-
interface GridApi extends GridCoreApi, GridStateApi, GridLoggerApi, GridDensityApi, GridEventsApi, GridRowApi, GridEditRowApi, GridParamsApi, GridColumnApi, GridSelectionApi, GridSortApi,
|
|
1994
|
+
interface GridApi extends GridCoreApi, GridStateApi, GridLoggerApi, GridColumnsPreProcessingApi, GridRowGroupsPreProcessingApi, GridDensityApi, GridEventsApi, GridRowApi, GridEditRowApi, GridParamsApi, GridColumnApi, GridSelectionApi, GridSortApi, GridPageApi, GridPageSizeApi, GridCsvExportApi, GridFocusApi, GridFilterApi, GridColumnMenuApi, GridPreferencesPanelApi, GridPrintExportApi, GridDisableVirtualizationApi, GridLocaleTextApi, GridControlStateApi, GridClipboardApi, GridScrollApi {
|
|
1801
1995
|
}
|
|
1802
1996
|
|
|
1803
1997
|
/**
|
|
@@ -1805,131 +1999,97 @@ interface GridApi extends GridCoreApi, GridStateApi, GridLoggerApi, GridDensityA
|
|
|
1805
1999
|
*/
|
|
1806
2000
|
declare type GridApiRef = React$1.MutableRefObject<GridApi>;
|
|
1807
2001
|
|
|
2002
|
+
interface GridStateChangeParams {
|
|
2003
|
+
state: GridState;
|
|
2004
|
+
api: GridApi;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
interface GridRowSelectionCheckboxParams {
|
|
2008
|
+
value: boolean;
|
|
2009
|
+
id: GridRowId;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
interface GridHeaderSelectionCheckboxParams {
|
|
2013
|
+
value: boolean;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1808
2016
|
/**
|
|
1809
|
-
*
|
|
2017
|
+
* Set of icons used in the grid component UI.
|
|
1810
2018
|
*/
|
|
1811
|
-
interface
|
|
1812
|
-
/**
|
|
1813
|
-
* The GridState object containing the current grid state.
|
|
1814
|
-
*/
|
|
1815
|
-
state: GridState;
|
|
1816
|
-
/**
|
|
1817
|
-
* The full set of rows.
|
|
1818
|
-
*/
|
|
1819
|
-
rows: GridRowModel[];
|
|
1820
|
-
/**
|
|
1821
|
-
* The full set of columns.
|
|
1822
|
-
*/
|
|
1823
|
-
columns: GridColumns;
|
|
1824
|
-
/**
|
|
1825
|
-
* GridApiRef that let you manipulate the grid.
|
|
1826
|
-
*/
|
|
1827
|
-
apiRef: GridApiRef;
|
|
1828
|
-
/**
|
|
1829
|
-
* The ref of the inner div Element of the grid.
|
|
1830
|
-
*/
|
|
1831
|
-
rootElement: GridRootContainerRef;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Object passed as parameter of the column sorted event.
|
|
1836
|
-
*/
|
|
1837
|
-
interface GridSortModelParams {
|
|
1838
|
-
/**
|
|
1839
|
-
* The sort model used to sort the grid.
|
|
1840
|
-
*/
|
|
1841
|
-
sortModel: GridSortModel;
|
|
1842
|
-
/**
|
|
1843
|
-
* The full set of columns.
|
|
1844
|
-
*/
|
|
1845
|
-
columns: GridColumns;
|
|
1846
|
-
/**
|
|
1847
|
-
* Api that let you manipulate the grid.
|
|
1848
|
-
*/
|
|
1849
|
-
api: any;
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
interface GridStateChangeParams {
|
|
1853
|
-
state: GridState;
|
|
1854
|
-
api: GridApi;
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
/**
|
|
1858
|
-
* Object passed as parameter of the virtual rows change event.
|
|
1859
|
-
*/
|
|
1860
|
-
interface GridViewportRowsChangeParams {
|
|
1861
|
-
/**
|
|
1862
|
-
* The index of the first row in the viewport.
|
|
1863
|
-
*/
|
|
1864
|
-
firstRowIndex: number;
|
|
1865
|
-
/**
|
|
1866
|
-
* The index of the last row in the viewport.
|
|
1867
|
-
*/
|
|
1868
|
-
lastRowIndex: number;
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
/**
|
|
1872
|
-
* Set of icons used in the grid component UI.
|
|
1873
|
-
*/
|
|
1874
|
-
interface GridIconSlotsComponent {
|
|
2019
|
+
interface GridIconSlotsComponent {
|
|
1875
2020
|
/**
|
|
1876
2021
|
* Icon displayed on the boolean cell to represent the true value.
|
|
2022
|
+
* @default GridCheckIcon
|
|
1877
2023
|
*/
|
|
1878
2024
|
BooleanCellTrueIcon: React$1.JSXElementConstructor<any>;
|
|
1879
2025
|
/**
|
|
1880
2026
|
* Icon displayed on the boolean cell to represent the false value.
|
|
2027
|
+
* @default GridCloseIcon
|
|
1881
2028
|
*/
|
|
1882
2029
|
BooleanCellFalseIcon: React$1.JSXElementConstructor<any>;
|
|
1883
2030
|
/**
|
|
1884
2031
|
* Icon displayed on the side of the column header title to display the filter input component.
|
|
2032
|
+
* @default GridTripleDotsVerticalIcon
|
|
1885
2033
|
*/
|
|
1886
2034
|
ColumnMenuIcon: React$1.JSXElementConstructor<any>;
|
|
1887
2035
|
/**
|
|
1888
2036
|
* Icon displayed on the open filter button present in the toolbar by default.
|
|
2037
|
+
* @default GridFilterListIcon
|
|
1889
2038
|
*/
|
|
1890
2039
|
OpenFilterButtonIcon: React$1.JSXElementConstructor<any>;
|
|
1891
2040
|
/**
|
|
1892
2041
|
* Icon displayed on the column header menu to show that a filter has been applied to the column.
|
|
2042
|
+
* @default GridFilterAltIcon
|
|
1893
2043
|
*/
|
|
1894
2044
|
ColumnFilteredIcon: React$1.JSXElementConstructor<any>;
|
|
1895
2045
|
/**
|
|
1896
2046
|
* Icon displayed on the column menu selector tab.
|
|
2047
|
+
* @default GridColumnIcon
|
|
1897
2048
|
*/
|
|
1898
2049
|
ColumnSelectorIcon: React$1.JSXElementConstructor<any>;
|
|
1899
2050
|
/**
|
|
1900
2051
|
* Icon displayed on the side of the column header title when unsorted.
|
|
2052
|
+
* @default GridColumnUnsortedIcon
|
|
1901
2053
|
*/
|
|
1902
2054
|
ColumnUnsortedIcon: React$1.JSXElementConstructor<any> | null;
|
|
1903
2055
|
/**
|
|
1904
2056
|
* Icon displayed on the side of the column header title when sorted in ascending order.
|
|
2057
|
+
* @default GridArrowUpwardIcon
|
|
1905
2058
|
*/
|
|
1906
2059
|
ColumnSortedAscendingIcon: React$1.JSXElementConstructor<any> | null;
|
|
1907
2060
|
/**
|
|
1908
2061
|
* Icon displayed on the side of the column header title when sorted in descending order.
|
|
2062
|
+
* @default GridArrowDownwardIcon
|
|
1909
2063
|
*/
|
|
1910
2064
|
ColumnSortedDescendingIcon: React$1.JSXElementConstructor<any> | null;
|
|
1911
2065
|
/**
|
|
1912
2066
|
* Icon displayed in between two column headers that allows to resize the column header.
|
|
2067
|
+
* @default GridSeparatorIcon
|
|
1913
2068
|
*/
|
|
1914
2069
|
ColumnResizeIcon: React$1.JSXElementConstructor<any>;
|
|
1915
2070
|
/**
|
|
1916
2071
|
* Icon displayed on the compact density option in the toolbar.
|
|
2072
|
+
* @default GridViewHeadlineIcon
|
|
1917
2073
|
*/
|
|
1918
2074
|
DensityCompactIcon: React$1.JSXElementConstructor<any>;
|
|
1919
2075
|
/**
|
|
1920
2076
|
* Icon displayed on the standard density option in the toolbar.
|
|
2077
|
+
* @default GridTableRowsIcon
|
|
1921
2078
|
*/
|
|
1922
2079
|
DensityStandardIcon: React$1.JSXElementConstructor<any>;
|
|
1923
2080
|
/**
|
|
1924
2081
|
* Icon displayed on the "comfortable" density option in the toolbar.
|
|
2082
|
+
* @default GridViewStreamIcon
|
|
1925
2083
|
*/
|
|
1926
2084
|
DensityComfortableIcon: React$1.JSXElementConstructor<any>;
|
|
1927
2085
|
/**
|
|
1928
2086
|
* Icon displayed on the open export button present in the toolbar by default.
|
|
2087
|
+
* @default GridSaveAltIcon
|
|
1929
2088
|
*/
|
|
1930
2089
|
ExportIcon: React$1.JSXElementConstructor<any>;
|
|
1931
2090
|
/**
|
|
1932
2091
|
* Icon displayed on the `actions` column type to open the menu.
|
|
2092
|
+
* @default GridMoreVertIcon
|
|
1933
2093
|
*/
|
|
1934
2094
|
MoreActionsIcon: React$1.JSXElementConstructor<any>;
|
|
1935
2095
|
}
|
|
@@ -1939,63 +2099,85 @@ interface GridIconSlotsComponent {
|
|
|
1939
2099
|
*
|
|
1940
2100
|
*/
|
|
1941
2101
|
interface GridSlotsComponent extends GridIconSlotsComponent {
|
|
2102
|
+
/**
|
|
2103
|
+
* Component rendered for each cell.
|
|
2104
|
+
*/
|
|
2105
|
+
Cell: React$1.JSXElementConstructor<any>;
|
|
1942
2106
|
/**
|
|
1943
2107
|
* The custom Checkbox component used in the grid for both header and cells.
|
|
2108
|
+
* @default Checkbox
|
|
1944
2109
|
*/
|
|
1945
2110
|
Checkbox: React$1.JSXElementConstructor<any>;
|
|
1946
2111
|
/**
|
|
1947
2112
|
* Column menu component rendered by clicking on the 3 dots "kebab" icon in column headers.
|
|
2113
|
+
* @default GridColumnMenu
|
|
1948
2114
|
*/
|
|
1949
2115
|
ColumnMenu: React$1.JSXElementConstructor<any>;
|
|
1950
2116
|
/**
|
|
1951
2117
|
* Error overlay component rendered above the grid when an error is caught.
|
|
2118
|
+
* @default ErrorOverlay
|
|
1952
2119
|
*/
|
|
1953
2120
|
ErrorOverlay: React$1.JSXElementConstructor<any>;
|
|
1954
2121
|
/**
|
|
1955
2122
|
* Footer component rendered at the bottom of the grid viewport.
|
|
2123
|
+
* @default GridFooter
|
|
1956
2124
|
*/
|
|
1957
2125
|
Footer: React$1.JSXElementConstructor<any>;
|
|
1958
2126
|
/**
|
|
1959
2127
|
* Header component rendered above the grid column header bar.
|
|
1960
|
-
* Prefer using the `Toolbar` slot. You should never need to use this slot.
|
|
2128
|
+
* Prefer using the `Toolbar` slot. You should never need to use this slot.
|
|
2129
|
+
* @default GridHeader
|
|
1961
2130
|
*/
|
|
1962
2131
|
Header: React$1.JSXElementConstructor<any>;
|
|
1963
2132
|
/**
|
|
1964
2133
|
* Toolbar component rendered inside the Header component.
|
|
2134
|
+
* @default null
|
|
1965
2135
|
*/
|
|
1966
2136
|
Toolbar: React$1.JSXElementConstructor<any> | null;
|
|
1967
2137
|
/**
|
|
1968
2138
|
* PreferencesPanel component rendered inside the Header component.
|
|
2139
|
+
* @default GridPreferencesPanel
|
|
1969
2140
|
*/
|
|
1970
2141
|
PreferencesPanel: React$1.JSXElementConstructor<any>;
|
|
1971
2142
|
/**
|
|
1972
2143
|
* Loading overlay component rendered when the grid is in a loading state.
|
|
2144
|
+
* @default GridLoadingOverlay
|
|
1973
2145
|
*/
|
|
1974
2146
|
LoadingOverlay: React$1.JSXElementConstructor<any>;
|
|
1975
2147
|
/**
|
|
1976
2148
|
* No results overlay component rendered when the grid has no results after filtering.
|
|
2149
|
+
* @default GridNoResultsOverlay
|
|
1977
2150
|
*/
|
|
1978
2151
|
NoResultsOverlay: React$1.JSXElementConstructor<any>;
|
|
1979
2152
|
/**
|
|
1980
2153
|
* No rows overlay component rendered when the grid has no rows.
|
|
2154
|
+
* @default GridNoRowsOverlay
|
|
1981
2155
|
*/
|
|
1982
2156
|
NoRowsOverlay: React$1.JSXElementConstructor<any>;
|
|
1983
2157
|
/**
|
|
1984
2158
|
* Pagination component rendered in the grid footer by default.
|
|
2159
|
+
* @default Pagination
|
|
1985
2160
|
*/
|
|
1986
2161
|
Pagination: React$1.JSXElementConstructor<any> | null;
|
|
1987
2162
|
/**
|
|
1988
2163
|
* Filter panel component rendered when clicking the filter button.
|
|
2164
|
+
* @default GridFilterPanel
|
|
1989
2165
|
*/
|
|
1990
2166
|
FilterPanel: React$1.JSXElementConstructor<any>;
|
|
1991
2167
|
/**
|
|
1992
2168
|
* GridColumns panel component rendered when clicking the columns button.
|
|
2169
|
+
* @default GridColumnsPanel
|
|
1993
2170
|
*/
|
|
1994
2171
|
ColumnsPanel: React$1.JSXElementConstructor<any>;
|
|
1995
2172
|
/**
|
|
1996
2173
|
* Panel component wrapping the filters and columns panels.
|
|
2174
|
+
* @default GridPanel
|
|
1997
2175
|
*/
|
|
1998
2176
|
Panel: React$1.JSXElementConstructor<any>;
|
|
2177
|
+
/**
|
|
2178
|
+
* Component rendered for each row.
|
|
2179
|
+
*/
|
|
2180
|
+
Row: React$1.JSXElementConstructor<any>;
|
|
1999
2181
|
}
|
|
2000
2182
|
|
|
2001
2183
|
/**
|
|
@@ -2003,6 +2185,7 @@ interface GridSlotsComponent extends GridIconSlotsComponent {
|
|
|
2003
2185
|
*/
|
|
2004
2186
|
interface GridSlotsComponentsProps {
|
|
2005
2187
|
checkbox?: any;
|
|
2188
|
+
cell?: any;
|
|
2006
2189
|
columnMenu?: any;
|
|
2007
2190
|
columnsPanel?: any;
|
|
2008
2191
|
errorOverlay?: any;
|
|
@@ -2015,6 +2198,7 @@ interface GridSlotsComponentsProps {
|
|
|
2015
2198
|
pagination?: any;
|
|
2016
2199
|
panel?: any;
|
|
2017
2200
|
preferencesPanel?: any;
|
|
2201
|
+
row?: any;
|
|
2018
2202
|
toolbar?: any;
|
|
2019
2203
|
}
|
|
2020
2204
|
|
|
@@ -2028,20 +2212,25 @@ interface GridCellProps {
|
|
|
2028
2212
|
hasFocus?: boolean;
|
|
2029
2213
|
height: number;
|
|
2030
2214
|
isEditable?: boolean;
|
|
2031
|
-
isSelected?: boolean;
|
|
2032
|
-
rowIndex: number;
|
|
2033
2215
|
showRightBorder?: boolean;
|
|
2034
2216
|
value?: GridCellValue;
|
|
2035
2217
|
width: number;
|
|
2036
2218
|
cellMode?: GridCellMode;
|
|
2037
2219
|
children: React$1.ReactNode;
|
|
2038
2220
|
tabIndex: 0 | -1;
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2221
|
+
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2222
|
+
onDoubleClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2223
|
+
onMouseDown?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2224
|
+
onMouseUp?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2225
|
+
onKeyDown?: React$1.KeyboardEventHandler<HTMLDivElement>;
|
|
2226
|
+
onDragEnter?: React$1.DragEventHandler<HTMLDivElement>;
|
|
2227
|
+
onDragOver?: React$1.DragEventHandler<HTMLDivElement>;
|
|
2228
|
+
[x: string]: any;
|
|
2229
|
+
}
|
|
2230
|
+
declare function GridCell(props: GridCellProps): JSX.Element;
|
|
2231
|
+
declare namespace GridCell {
|
|
2042
2232
|
var propTypes: any;
|
|
2043
|
-
}
|
|
2044
|
-
declare const GridCell: React$1.MemoExoticComponent<typeof GridCellRaw>;
|
|
2233
|
+
}
|
|
2045
2234
|
|
|
2046
2235
|
declare function GridEditInputCell(props: GridRenderEditCellParams & InputBaseProps): JSX.Element;
|
|
2047
2236
|
declare namespace GridEditInputCell {
|
|
@@ -2057,39 +2246,6 @@ declare namespace GridEditSingleSelectCell {
|
|
|
2057
2246
|
|
|
2058
2247
|
declare const renderEditSingleSelectCell: (params: any) => JSX.Element;
|
|
2059
2248
|
|
|
2060
|
-
interface GridEmptyCellProps {
|
|
2061
|
-
width?: number;
|
|
2062
|
-
height?: number;
|
|
2063
|
-
}
|
|
2064
|
-
declare function GridEmptyCellRaw({ width, height }: GridEmptyCellProps): JSX.Element | null;
|
|
2065
|
-
declare namespace GridEmptyCellRaw {
|
|
2066
|
-
var propTypes: any;
|
|
2067
|
-
}
|
|
2068
|
-
declare const GridEmptyCell: React$1.MemoExoticComponent<typeof GridEmptyCellRaw>;
|
|
2069
|
-
|
|
2070
|
-
interface RowCellsProps {
|
|
2071
|
-
columns: GridStateColDef[];
|
|
2072
|
-
extendRowFullWidth: boolean;
|
|
2073
|
-
firstColIdx: number;
|
|
2074
|
-
id: GridRowId;
|
|
2075
|
-
hasScrollX: boolean;
|
|
2076
|
-
hasScrollY: boolean;
|
|
2077
|
-
height: number;
|
|
2078
|
-
getCellClassName?: (params: GridCellParams) => string;
|
|
2079
|
-
lastColIdx: number;
|
|
2080
|
-
row: GridRowModel;
|
|
2081
|
-
rowIndex: number;
|
|
2082
|
-
showCellRightBorder: boolean;
|
|
2083
|
-
cellFocus: GridCellIdentifier | null;
|
|
2084
|
-
cellTabIndex: GridCellIdentifier | null;
|
|
2085
|
-
isSelected: boolean;
|
|
2086
|
-
editRowState?: GridEditRowProps;
|
|
2087
|
-
}
|
|
2088
|
-
declare function GridRowCells(props: RowCellsProps): JSX.Element;
|
|
2089
|
-
declare namespace GridRowCells {
|
|
2090
|
-
var propTypes: any;
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
2249
|
declare type MenuPosition = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top' | undefined;
|
|
2094
2250
|
interface GridMenuProps extends Omit<PopperProps, 'onKeyDown'> {
|
|
2095
2251
|
open: boolean;
|
|
@@ -2102,13 +2258,13 @@ declare const GridMenu: {
|
|
|
2102
2258
|
propTypes: any;
|
|
2103
2259
|
};
|
|
2104
2260
|
|
|
2105
|
-
declare type GridActionsCellProps = GridRenderCellParams & Pick<GridMenuProps, 'position'>;
|
|
2261
|
+
declare type GridActionsCellProps = Pick<GridRenderCellParams, 'colDef' | 'id' | 'api'> & Pick<GridMenuProps, 'position'>;
|
|
2106
2262
|
declare const GridActionsCell: {
|
|
2107
2263
|
(props: GridActionsCellProps): JSX.Element;
|
|
2108
2264
|
propTypes: any;
|
|
2109
2265
|
};
|
|
2110
2266
|
|
|
2111
|
-
declare const renderActionsCell: (params:
|
|
2267
|
+
declare const renderActionsCell: (params: GridRenderCellParams) => JSX.Element;
|
|
2112
2268
|
|
|
2113
2269
|
declare type GridRootProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
2114
2270
|
declare const GridRoot: React$1.ForwardRefExoticComponent<GridRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -2116,23 +2272,12 @@ declare const GridRoot: React$1.ForwardRefExoticComponent<GridRootProps & React$
|
|
|
2116
2272
|
declare type GridColumnsContainerProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
2117
2273
|
declare const GridColumnsContainer: React$1.ForwardRefExoticComponent<GridColumnsContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2118
2274
|
|
|
2119
|
-
declare type GridDataContainerProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
2120
|
-
declare function GridDataContainer(props: GridDataContainerProps): JSX.Element;
|
|
2121
|
-
|
|
2122
2275
|
declare type GridFooterContainerProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
2123
2276
|
declare const GridFooterContainer: React$1.ForwardRefExoticComponent<GridFooterContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2124
2277
|
|
|
2125
2278
|
declare type GridOverlayProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
2126
2279
|
declare const GridOverlay: React$1.ForwardRefExoticComponent<GridOverlayProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2127
2280
|
|
|
2128
|
-
interface GridWindowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2129
|
-
size: {
|
|
2130
|
-
width: number;
|
|
2131
|
-
height: number;
|
|
2132
|
-
};
|
|
2133
|
-
}
|
|
2134
|
-
declare const GridWindow: React$1.ForwardRefExoticComponent<GridWindowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2135
|
-
|
|
2136
2281
|
declare type GridToolbarContainerProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
2137
2282
|
declare const GridToolbarContainer: React$1.ForwardRefExoticComponent<GridToolbarContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2138
2283
|
|
|
@@ -2189,20 +2334,21 @@ declare namespace GridColumnHeaderTitle {
|
|
|
2189
2334
|
var propTypes: any;
|
|
2190
2335
|
}
|
|
2191
2336
|
|
|
2192
|
-
declare const
|
|
2193
|
-
declare const GridColumnsHeader: React$1.ForwardRefExoticComponent<React$1.RefAttributes<HTMLDivElement>>;
|
|
2337
|
+
declare const GridColumnsHeader: React$1.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2194
2338
|
|
|
2195
2339
|
interface GridColumnHeadersItemCollectionProps {
|
|
2196
2340
|
columns: GridStateColDef[];
|
|
2341
|
+
dragCol: string;
|
|
2342
|
+
resizeCol: string;
|
|
2197
2343
|
}
|
|
2198
2344
|
declare function GridColumnHeadersItemCollection(props: GridColumnHeadersItemCollectionProps): JSX.Element;
|
|
2199
2345
|
declare namespace GridColumnHeadersItemCollection {
|
|
2200
2346
|
var propTypes: any;
|
|
2201
2347
|
}
|
|
2202
2348
|
|
|
2203
|
-
declare const GridCellCheckboxForwardRef: React$1.ForwardRefExoticComponent<GridCellParams & React$1.RefAttributes<HTMLInputElement>>;
|
|
2349
|
+
declare const GridCellCheckboxForwardRef: React$1.ForwardRefExoticComponent<GridCellParams<any, any, any> & React$1.RefAttributes<HTMLInputElement>>;
|
|
2204
2350
|
|
|
2205
|
-
declare const GridCellCheckboxRenderer: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<GridCellParams & React$1.RefAttributes<HTMLInputElement>>>;
|
|
2351
|
+
declare const GridCellCheckboxRenderer: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<GridCellParams<any, any, any> & React$1.RefAttributes<HTMLInputElement>>>;
|
|
2206
2352
|
|
|
2207
2353
|
declare const GridHeaderCheckbox: React$1.ForwardRefExoticComponent<GridColumnHeaderParams & React$1.RefAttributes<HTMLInputElement>>;
|
|
2208
2354
|
|
|
@@ -2320,32 +2466,6 @@ declare const GridColumnMenuContainer: React$1.ForwardRefExoticComponent<GridCol
|
|
|
2320
2466
|
|
|
2321
2467
|
declare function GridColumnsPanel(): JSX.Element;
|
|
2322
2468
|
|
|
2323
|
-
/**
|
|
2324
|
-
* TODO import from the v5 directly
|
|
2325
|
-
*
|
|
2326
|
-
* Remove properties `K` from `T`.
|
|
2327
|
-
* Distributive for union types.
|
|
2328
|
-
*
|
|
2329
|
-
* @internal
|
|
2330
|
-
*/
|
|
2331
|
-
declare type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
|
2332
|
-
/**
|
|
2333
|
-
* TODO import from the core v5 directly
|
|
2334
|
-
*
|
|
2335
|
-
* @internal ONLY USE FROM WITHIN mui-org/material-ui
|
|
2336
|
-
*
|
|
2337
|
-
* Internal helper type for conform (describeConformance) components
|
|
2338
|
-
* However, we don't declare classes on this type.
|
|
2339
|
-
* It is recommended to declare them manually with an interface so that each class can have a separate JSDOC.
|
|
2340
|
-
*/
|
|
2341
|
-
declare type InternalStandardProps<C, Removals extends keyof C = never> = DistributiveOmit<C, 'classes' | Removals> & StyledComponentProps<never> & {
|
|
2342
|
-
ref?: C extends {
|
|
2343
|
-
ref?: infer RefType;
|
|
2344
|
-
} ? RefType : React$1.Ref<unknown>;
|
|
2345
|
-
className?: string;
|
|
2346
|
-
style?: React$1.CSSProperties;
|
|
2347
|
-
};
|
|
2348
|
-
|
|
2349
2469
|
interface GridPanelClasses {
|
|
2350
2470
|
/** Styles applied to the root element. */
|
|
2351
2471
|
root: string;
|
|
@@ -2360,7 +2480,7 @@ interface GridPanelProps extends InternalStandardProps<PopperProps, 'children'>
|
|
|
2360
2480
|
classes?: Partial<GridPanelClasses>;
|
|
2361
2481
|
open: boolean;
|
|
2362
2482
|
}
|
|
2363
|
-
declare const gridPanelClasses: Record<"
|
|
2483
|
+
declare const gridPanelClasses: Record<"panel" | "paper", string>;
|
|
2364
2484
|
declare const GridPanel: React$1.ForwardRefExoticComponent<Pick<GridPanelProps, "classes" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "anchorEl" | "container" | "disablePortal" | "keepMounted" | "modifiers" | "open" | "placement" | "popperOptions" | "popperRef" | "transition"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2365
2485
|
|
|
2366
2486
|
declare function GridPanelContent(props: React$1.PropsWithChildren<React$1.HTMLAttributes<HTMLDivElement>>): JSX.Element;
|
|
@@ -2399,18 +2519,19 @@ declare namespace GridFilterInputValue {
|
|
|
2399
2519
|
|
|
2400
2520
|
declare function GridFilterPanel(): JSX.Element;
|
|
2401
2521
|
|
|
2402
|
-
declare const GridToolbar:
|
|
2522
|
+
declare const GridToolbar: React$1.ForwardRefExoticComponent<GridToolbarContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2403
2523
|
|
|
2404
|
-
declare const GridToolbarColumnsButton:
|
|
2524
|
+
declare const GridToolbarColumnsButton: React$1.ForwardRefExoticComponent<Pick<ButtonProps<"button", {}>, keyof _mui_material_OverridableComponent.CommonProps | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2405
2525
|
|
|
2406
|
-
declare const GridToolbarDensitySelector:
|
|
2526
|
+
declare const GridToolbarDensitySelector: React$1.ForwardRefExoticComponent<Pick<ButtonProps<"button", {}>, keyof _mui_material_OverridableComponent.CommonProps | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2407
2527
|
|
|
2408
2528
|
interface GridToolbarExportProps extends ButtonProps {
|
|
2409
|
-
csvOptions?:
|
|
2529
|
+
csvOptions?: GridCsvExportOptions;
|
|
2530
|
+
printOptions?: GridPrintExportOptions;
|
|
2410
2531
|
}
|
|
2411
|
-
declare const GridToolbarExport: React$1.ForwardRefExoticComponent<Pick<GridToolbarExportProps, "className" | "style" | "classes" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "csvOptions"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2532
|
+
declare const GridToolbarExport: React$1.ForwardRefExoticComponent<Pick<GridToolbarExportProps, "className" | "style" | "classes" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "csvOptions" | "printOptions"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2412
2533
|
|
|
2413
|
-
interface GridToolbarFilterButtonProps extends Omit<TooltipProps, 'title' | 'children'> {
|
|
2534
|
+
interface GridToolbarFilterButtonProps extends Omit<TooltipProps, 'title' | 'children' | 'componentsProps'> {
|
|
2414
2535
|
/**
|
|
2415
2536
|
* The props used for each slot inside.
|
|
2416
2537
|
* @default {}
|
|
@@ -2419,7 +2540,7 @@ interface GridToolbarFilterButtonProps extends Omit<TooltipProps, 'title' | 'chi
|
|
|
2419
2540
|
button?: ButtonProps;
|
|
2420
2541
|
};
|
|
2421
2542
|
}
|
|
2422
|
-
declare const GridToolbarFilterButton: React$1.ForwardRefExoticComponent<Pick<GridToolbarFilterButtonProps, "
|
|
2543
|
+
declare const GridToolbarFilterButton: React$1.ForwardRefExoticComponent<Pick<GridToolbarFilterButtonProps, "classes" | "slot" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "open" | "componentsProps" | "arrow" | "components" | "describeChild" | "disableFocusListener" | "disableHoverListener" | "disableInteractive" | "disableTouchListener" | "enterDelay" | "enterNextDelay" | "enterTouchDelay" | "followCursor" | "leaveDelay" | "leaveTouchDelay" | "onClose" | "onOpen" | "placement" | "PopperComponent" | "PopperProps" | "sx" | "TransitionComponent" | "TransitionProps"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2423
2544
|
|
|
2424
2545
|
declare const GridApiContext: React$1.Context<GridApiRef | undefined>;
|
|
2425
2546
|
|
|
@@ -2476,11 +2597,6 @@ declare const GridNoRowsOverlay: React$1.ForwardRefExoticComponent<GridOverlayPr
|
|
|
2476
2597
|
|
|
2477
2598
|
declare const GridPagination: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2478
2599
|
|
|
2479
|
-
declare type WithChildren = {
|
|
2480
|
-
children?: React$1.ReactNode;
|
|
2481
|
-
};
|
|
2482
|
-
declare const GridRenderingZone: React$1.ForwardRefExoticComponent<ElementSize & WithChildren & React$1.RefAttributes<HTMLDivElement>>;
|
|
2483
|
-
|
|
2484
2600
|
interface RowCountProps {
|
|
2485
2601
|
rowCount: number;
|
|
2486
2602
|
visibleRowCount: number;
|
|
@@ -2488,12 +2604,24 @@ interface RowCountProps {
|
|
|
2488
2604
|
declare const GridRowCount: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & RowCountProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2489
2605
|
|
|
2490
2606
|
interface GridRowProps {
|
|
2491
|
-
|
|
2607
|
+
rowId: GridRowId;
|
|
2492
2608
|
selected: boolean;
|
|
2493
|
-
|
|
2494
|
-
|
|
2609
|
+
index: number;
|
|
2610
|
+
rowHeight: number;
|
|
2611
|
+
containerWidth: number;
|
|
2612
|
+
row: GridRowModel;
|
|
2613
|
+
firstColumnToRender: number;
|
|
2614
|
+
lastColumnToRender: number;
|
|
2615
|
+
visibleColumns: GridStateColDef[];
|
|
2616
|
+
renderedColumns: GridStateColDef[];
|
|
2617
|
+
cellFocus: GridCellIdentifier | null;
|
|
2618
|
+
cellTabIndex: GridCellIdentifier | null;
|
|
2619
|
+
editRowsState: GridEditRowsModel;
|
|
2620
|
+
scrollBarState: GridScrollBarState;
|
|
2621
|
+
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2622
|
+
onDoubleClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2495
2623
|
}
|
|
2496
|
-
declare function GridRow(props: GridRowProps): JSX.Element;
|
|
2624
|
+
declare function GridRow(props: React$1.HTMLAttributes<HTMLDivElement> & GridRowProps): JSX.Element;
|
|
2497
2625
|
declare namespace GridRow {
|
|
2498
2626
|
var propTypes: any;
|
|
2499
2627
|
}
|
|
@@ -2503,17 +2631,6 @@ interface SelectedRowCountProps {
|
|
|
2503
2631
|
}
|
|
2504
2632
|
declare const GridSelectedRowCount: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & SelectedRowCountProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2505
2633
|
|
|
2506
|
-
interface GridStickyContainerProps extends ElementSize {
|
|
2507
|
-
children: React$1.ReactNode;
|
|
2508
|
-
}
|
|
2509
|
-
declare function GridStickyContainer(props: GridStickyContainerProps): JSX.Element;
|
|
2510
|
-
declare namespace GridStickyContainer {
|
|
2511
|
-
var propTypes: any;
|
|
2512
|
-
}
|
|
2513
|
-
|
|
2514
|
-
declare type ViewportType = React$1.ForwardRefExoticComponent<React$1.RefAttributes<HTMLDivElement>>;
|
|
2515
|
-
declare const GridViewport: ViewportType;
|
|
2516
|
-
|
|
2517
2634
|
interface ScrollAreaProps {
|
|
2518
2635
|
scrollDirection: 'left' | 'right';
|
|
2519
2636
|
}
|
|
@@ -2563,34 +2680,10 @@ declare enum GridEvents {
|
|
|
2563
2680
|
* Fired when a `mouseup` event happens in a cell. Called with a [[GridCellParams]] object.
|
|
2564
2681
|
*/
|
|
2565
2682
|
cellMouseUp = "cellMouseUp",
|
|
2566
|
-
/**
|
|
2567
|
-
* Fired when a `mouseover` event happens in a cell. Called with a [[GridCellParams]] object.
|
|
2568
|
-
*/
|
|
2569
|
-
cellOver = "cellOver",
|
|
2570
|
-
/**
|
|
2571
|
-
* Fired when a `mouseout` event happens in a cell. Called with a [[GridCellParams]] object.
|
|
2572
|
-
*/
|
|
2573
|
-
cellOut = "cellOut",
|
|
2574
|
-
/**
|
|
2575
|
-
* Fired when a `mouseenter` event happens in a cell. Called with a [[GridCellParams]] object.
|
|
2576
|
-
*/
|
|
2577
|
-
cellEnter = "cellEnter",
|
|
2578
|
-
/**
|
|
2579
|
-
* Fired when a `mouseleave` event happens in a cell. Called with a [[GridCellParams]] object.
|
|
2580
|
-
*/
|
|
2581
|
-
cellLeave = "cellLeave",
|
|
2582
2683
|
/**
|
|
2583
2684
|
* Fired when a `keydown` event happens in a cell. Called with a [[GridCellParams]] object.
|
|
2584
2685
|
*/
|
|
2585
2686
|
cellKeyDown = "cellKeyDown",
|
|
2586
|
-
/**
|
|
2587
|
-
* Fired when the `blur` event of a cell is triggered. Called with a [[GridCellParams]] object.
|
|
2588
|
-
*/
|
|
2589
|
-
cellBlur = "cellBlur",
|
|
2590
|
-
/**
|
|
2591
|
-
* Fired when a cell gains focus. Called with a [[GridCellParams]] object.
|
|
2592
|
-
*/
|
|
2593
|
-
cellFocus = "cellFocus",
|
|
2594
2687
|
/**
|
|
2595
2688
|
* Fired when a cell gains focus. Called with a [[GridCellParams]] object.
|
|
2596
2689
|
*/
|
|
@@ -2665,22 +2758,6 @@ declare enum GridEvents {
|
|
|
2665
2758
|
* Fired when a row is double-clicked. Called with a [[GridRowParams]] object.
|
|
2666
2759
|
*/
|
|
2667
2760
|
rowDoubleClick = "rowDoubleClick",
|
|
2668
|
-
/**
|
|
2669
|
-
* Fired when a `mouseover` event happens in a row. Called with a [[GridRowParams]] object.
|
|
2670
|
-
*/
|
|
2671
|
-
rowOver = "rowOver",
|
|
2672
|
-
/**
|
|
2673
|
-
* Fired when a `mouseout` event happens in a row. Called with a [[GridRowParams]] object.
|
|
2674
|
-
*/
|
|
2675
|
-
rowOut = "rowOut",
|
|
2676
|
-
/**
|
|
2677
|
-
* Fired when a `mouseenter` event happens in a row. Called with a [[GridRowParams]] object.
|
|
2678
|
-
*/
|
|
2679
|
-
rowEnter = "rowEnter",
|
|
2680
|
-
/**
|
|
2681
|
-
* Fired when a `mouseleave` event happens in a row. Called with a [[GridRowParams]] object.
|
|
2682
|
-
*/
|
|
2683
|
-
rowLeave = "rowLeave",
|
|
2684
2761
|
/**
|
|
2685
2762
|
* Fired when the row editing model changes. Called with a [[GridEditRowModelParams]] object.
|
|
2686
2763
|
*/
|
|
@@ -2764,6 +2841,16 @@ declare enum GridEvents {
|
|
|
2764
2841
|
* Called with a [[GridSelectionModelChangeParams]] object.
|
|
2765
2842
|
*/
|
|
2766
2843
|
selectionChange = "selectionChange",
|
|
2844
|
+
/**
|
|
2845
|
+
* Fired when the value of the selection checkbox of the header is changed
|
|
2846
|
+
* Called with a [[GridHeaderSelectionCheckboxParams]] object.
|
|
2847
|
+
*/
|
|
2848
|
+
headerSelectionCheckboxChange = "headerSelectionCheckboxChange",
|
|
2849
|
+
/**
|
|
2850
|
+
* Fired when the value of the selection checkbox of a row is changed
|
|
2851
|
+
* Called with a [[GridRowSelectionCheckboxParams]] object.
|
|
2852
|
+
*/
|
|
2853
|
+
rowSelectionCheckboxChange = "rowSelectionCheckboxChange",
|
|
2767
2854
|
/**
|
|
2768
2855
|
* Fired when the page changes.
|
|
2769
2856
|
*/
|
|
@@ -2807,27 +2894,30 @@ declare enum GridEvents {
|
|
|
2807
2894
|
*/
|
|
2808
2895
|
columnOrderChange = "columnOrderChange",
|
|
2809
2896
|
/**
|
|
2810
|
-
* Fired when
|
|
2811
|
-
* @ignore - do not document.
|
|
2812
|
-
*/
|
|
2813
|
-
rowsUpdate = "rowsUpdate",
|
|
2814
|
-
/**
|
|
2815
|
-
* Fired when all the rows are updated.
|
|
2897
|
+
* Fired when the rows are updated.
|
|
2816
2898
|
* @ignore - do not document.
|
|
2817
2899
|
*/
|
|
2818
2900
|
rowsSet = "rowsSet",
|
|
2819
2901
|
/**
|
|
2820
|
-
*
|
|
2821
|
-
* Fired to reset the sortedRow when the set of rows changes.
|
|
2822
|
-
* It's important as the rendered rows are coming from the sortedRow
|
|
2902
|
+
* Fired when the visible rows are updated
|
|
2823
2903
|
* @ignore - do not document.
|
|
2824
2904
|
*/
|
|
2825
|
-
|
|
2905
|
+
visibleRowsSet = "visibleRowsSet",
|
|
2826
2906
|
/**
|
|
2827
2907
|
* Fired when the columns state is changed.
|
|
2828
2908
|
* Called with an array of strings corresponding to the field names.
|
|
2829
2909
|
*/
|
|
2830
2910
|
columnsChange = "columnsChange",
|
|
2911
|
+
/**
|
|
2912
|
+
* Fired when a column pre-processing is changed
|
|
2913
|
+
* @ignore - do not document
|
|
2914
|
+
*/
|
|
2915
|
+
columnsPreProcessingChange = "columnsPreProcessingChange",
|
|
2916
|
+
/**
|
|
2917
|
+
* Fired when the row grouping function is changed
|
|
2918
|
+
* @ignore - do not document
|
|
2919
|
+
*/
|
|
2920
|
+
rowGroupsPreProcessingChange = "rowGroupsPreProcessingChange",
|
|
2831
2921
|
/**
|
|
2832
2922
|
* Fired when the sort model changes.
|
|
2833
2923
|
* Called with a [[GridSortModelParams]] object.
|
|
@@ -2845,40 +2935,169 @@ declare enum GridEvents {
|
|
|
2845
2935
|
/**
|
|
2846
2936
|
* Fired when a column visibility changes. Called with a [[GridColumnVisibilityChangeParams]] object.
|
|
2847
2937
|
*/
|
|
2848
|
-
columnVisibilityChange = "columnVisibilityChange"
|
|
2849
|
-
/**
|
|
2850
|
-
* Fired when the rows in the viewport is changed. Called with a [[GridViewportRowsChange]] object.
|
|
2851
|
-
*/
|
|
2852
|
-
viewportRowsChange = "viewportRowsChange"
|
|
2938
|
+
columnVisibilityChange = "columnVisibilityChange"
|
|
2853
2939
|
}
|
|
2854
2940
|
|
|
2855
|
-
declare const GRID_CSS_CLASS_PREFIX = "MuiDataGrid";
|
|
2856
|
-
declare const GRID_ROOT_CSS_CLASS_SUFFIX = "root";
|
|
2857
|
-
declare const GRID_COLUMN_HEADER_CSS_CLASS_SUFFIX = "columnHeader";
|
|
2858
|
-
declare const GRID_ROW_CSS_CLASS_SUFFIX = "row";
|
|
2859
|
-
declare const GRID_CELL_CSS_CLASS_SUFFIX = "cell";
|
|
2860
|
-
declare const GRID_COLUMN_HEADER_CSS_CLASS: string;
|
|
2861
|
-
declare const GRID_ROW_CSS_CLASS: string;
|
|
2862
|
-
declare const GRID_CELL_CSS_CLASS: string;
|
|
2863
|
-
declare const GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS: string;
|
|
2864
|
-
declare const GRID_COLUMN_HEADER_TITLE_CSS_CLASS: string;
|
|
2865
|
-
declare const GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS: string;
|
|
2866
|
-
declare const GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS: string;
|
|
2867
|
-
|
|
2868
2941
|
declare const GRID_DEFAULT_LOCALE_TEXT: GridLocaleText;
|
|
2869
2942
|
|
|
2870
|
-
/**
|
|
2871
|
-
* @requires useGridColumnResize (event)
|
|
2872
|
-
* @requires useGridInfiniteLoader (event)
|
|
2873
|
-
* @requires useGridVirtualization (event)
|
|
2874
|
-
*/
|
|
2875
|
-
declare const useGridColumnMenu: (apiRef: GridApiRef) => void;
|
|
2876
|
-
|
|
2877
2943
|
declare const gridColumnMenuSelector: (state: GridState) => GridColumnMenuState;
|
|
2878
2944
|
|
|
2879
2945
|
declare const gridColumnReorderSelector: (state: GridState) => GridColumnReorderState;
|
|
2880
2946
|
declare const gridColumnReorderDragColSelector: reselect.OutputSelector<GridState, string, (res: GridColumnReorderState) => string>;
|
|
2881
2947
|
|
|
2948
|
+
declare const gridColumnResizeSelector: (state: GridState) => GridColumnResizeState;
|
|
2949
|
+
declare const gridResizingColumnFieldSelector: reselect.OutputSelector<GridState, string, (res: GridColumnResizeState) => string>;
|
|
2950
|
+
|
|
2951
|
+
declare const gridColumnsSelector: (state: GridState) => GridColumnsState;
|
|
2952
|
+
declare const allGridColumnsFieldsSelector: (state: GridState) => string[];
|
|
2953
|
+
declare const gridColumnLookupSelector: (state: GridState) => GridColumnLookup;
|
|
2954
|
+
declare const allGridColumnsSelector: reselect.OutputSelector<GridState, GridStateColDef[], (res1: string[], res2: GridColumnLookup) => GridStateColDef[]>;
|
|
2955
|
+
declare const visibleGridColumnsSelector: reselect.OutputSelector<GridState, GridStateColDef[], (res: GridStateColDef[]) => GridStateColDef[]>;
|
|
2956
|
+
declare const gridColumnsMetaSelector: reselect.OutputSelector<GridState, {
|
|
2957
|
+
totalWidth: number;
|
|
2958
|
+
positions: number[];
|
|
2959
|
+
}, (res: GridStateColDef[]) => {
|
|
2960
|
+
totalWidth: number;
|
|
2961
|
+
positions: number[];
|
|
2962
|
+
}>;
|
|
2963
|
+
declare const filterableGridColumnsSelector: reselect.OutputSelector<GridState, GridStateColDef[], (res: GridStateColDef[]) => GridStateColDef[]>;
|
|
2964
|
+
declare const filterableGridColumnsIdsSelector: reselect.OutputSelector<GridState, string[], (res: GridStateColDef[]) => string[]>;
|
|
2965
|
+
declare const visibleGridColumnsLengthSelector: reselect.OutputSelector<GridState, number, (res: GridStateColDef[]) => number>;
|
|
2966
|
+
declare const gridColumnsTotalWidthSelector: reselect.OutputSelector<GridState, number, (res: {
|
|
2967
|
+
totalWidth: number;
|
|
2968
|
+
positions: number[];
|
|
2969
|
+
}) => number>;
|
|
2970
|
+
|
|
2971
|
+
declare const gridDensitySelector: (state: GridState) => GridDensityState;
|
|
2972
|
+
declare const gridDensityValueSelector: reselect.OutputSelector<GridState, GridDensity, (res: GridDensityState) => GridDensity>;
|
|
2973
|
+
declare const gridDensityRowHeightSelector: reselect.OutputSelector<GridState, number, (res: GridDensityState) => number>;
|
|
2974
|
+
declare const gridDensityHeaderHeightSelector: reselect.OutputSelector<GridState, number, (res: GridDensityState) => number>;
|
|
2975
|
+
|
|
2976
|
+
declare const gridEditRowsStateSelector: (state: GridState) => GridEditRowsModel;
|
|
2977
|
+
|
|
2978
|
+
declare const gridFilterStateSelector: (state: GridState) => GridFilterState;
|
|
2979
|
+
declare const gridFilterModelSelector: reselect.OutputSelector<GridState, GridFilterModel, (res: GridFilterState) => GridFilterModel>;
|
|
2980
|
+
declare const gridVisibleRowsLookupSelector: reselect.OutputSelector<GridState, Record<GridRowId, boolean>, (res: GridFilterState) => Record<GridRowId, boolean>>;
|
|
2981
|
+
declare const gridVisibleSortedRowEntriesSelector: reselect.OutputSelector<GridState, {
|
|
2982
|
+
id: GridRowId;
|
|
2983
|
+
model: {
|
|
2984
|
+
[key: string]: any;
|
|
2985
|
+
};
|
|
2986
|
+
}[], (res1: Record<GridRowId, boolean>, res2: {
|
|
2987
|
+
id: GridRowId;
|
|
2988
|
+
model: {
|
|
2989
|
+
[key: string]: any;
|
|
2990
|
+
};
|
|
2991
|
+
}[]) => {
|
|
2992
|
+
id: GridRowId;
|
|
2993
|
+
model: {
|
|
2994
|
+
[key: string]: any;
|
|
2995
|
+
};
|
|
2996
|
+
}[]>;
|
|
2997
|
+
declare const gridVisibleSortedRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res: {
|
|
2998
|
+
id: GridRowId;
|
|
2999
|
+
model: {
|
|
3000
|
+
[key: string]: any;
|
|
3001
|
+
};
|
|
3002
|
+
}[]) => GridRowId[]>;
|
|
3003
|
+
declare const gridVisibleRowCountSelector: reselect.OutputSelector<GridState, number, (res1: GridFilterState, res2: number) => number>;
|
|
3004
|
+
declare const gridFilterActiveItemsSelector: reselect.OutputSelector<GridState, GridFilterItem[], (res1: GridFilterModel, res2: GridColumnLookup) => GridFilterItem[]>;
|
|
3005
|
+
declare type GridFilterActiveItemsLookup = {
|
|
3006
|
+
[columnField: string]: GridFilterItem[];
|
|
3007
|
+
};
|
|
3008
|
+
declare const gridFilterActiveItemsLookupSelector: reselect.OutputSelector<GridState, GridFilterActiveItemsLookup, (res: GridFilterItem[]) => GridFilterActiveItemsLookup>;
|
|
3009
|
+
|
|
3010
|
+
declare const gridFocusStateSelector: (state: GridState) => GridFocusState;
|
|
3011
|
+
declare const gridFocusCellSelector: reselect.OutputSelector<GridState, GridCellIdentifier | null, (res: GridFocusState) => GridCellIdentifier | null>;
|
|
3012
|
+
declare const gridFocusColumnHeaderSelector: reselect.OutputSelector<GridState, GridColumnIdentifier | null, (res: GridFocusState) => GridColumnIdentifier | null>;
|
|
3013
|
+
declare const gridTabIndexStateSelector: (state: GridState) => GridTabIndexState;
|
|
3014
|
+
declare const gridTabIndexCellSelector: reselect.OutputSelector<GridState, GridCellIdentifier | null, (res: GridTabIndexState) => GridCellIdentifier | null>;
|
|
3015
|
+
declare const gridTabIndexColumnHeaderSelector: reselect.OutputSelector<GridState, GridColumnIdentifier | null, (res: GridTabIndexState) => GridColumnIdentifier | null>;
|
|
3016
|
+
|
|
3017
|
+
declare const gridPaginationSelector: (state: GridState) => GridPaginationState;
|
|
3018
|
+
declare const gridPageSelector: reselect.OutputSelector<GridState, number, (res: GridPaginationState) => number>;
|
|
3019
|
+
declare const gridPageSizeSelector: reselect.OutputSelector<GridState, number, (res: GridPaginationState) => number>;
|
|
3020
|
+
declare const gridPaginatedVisibleSortedGridRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res1: GridPaginationState, res2: GridRowId[]) => GridRowId[]>;
|
|
3021
|
+
|
|
3022
|
+
declare const gridPreferencePanelStateSelector: (state: GridState) => GridPreferencePanelState;
|
|
3023
|
+
declare const gridViewportSizeStateSelector: (state: GridState) => ElementSize;
|
|
3024
|
+
|
|
3025
|
+
declare const gridRowsStateSelector: (state: GridState) => GridRowsState;
|
|
3026
|
+
declare const gridRowCountSelector: reselect.OutputSelector<GridState, number, (res: GridRowsState) => number>;
|
|
3027
|
+
declare const gridRowsLookupSelector: reselect.OutputSelector<GridState, Record<GridRowId, {
|
|
3028
|
+
[key: string]: any;
|
|
3029
|
+
}>, (res: GridRowsState) => Record<GridRowId, {
|
|
3030
|
+
[key: string]: any;
|
|
3031
|
+
}>>;
|
|
3032
|
+
declare const gridRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res: GridRowsState) => GridRowId[]>;
|
|
3033
|
+
|
|
3034
|
+
declare const gridSelectionStateSelector: (state: GridState) => GridSelectionModel;
|
|
3035
|
+
declare const selectedGridRowsCountSelector: reselect.OutputSelector<GridState, number, (res: GridSelectionModel) => number>;
|
|
3036
|
+
declare const selectedGridRowsSelector: reselect.OutputSelector<GridState, Map<GridRowId, {
|
|
3037
|
+
[key: string]: any;
|
|
3038
|
+
}>, (res1: GridSelectionModel, res2: Record<GridRowId, {
|
|
3039
|
+
[key: string]: any;
|
|
3040
|
+
}>) => Map<GridRowId, {
|
|
3041
|
+
[key: string]: any;
|
|
3042
|
+
}>>;
|
|
3043
|
+
declare const selectedIdsLookupSelector: reselect.OutputSelector<GridState, {}, (res: GridSelectionModel) => {}>;
|
|
3044
|
+
|
|
3045
|
+
declare const gridSortedRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res1: GridSortingState, res2: GridRowId[]) => GridRowId[]>;
|
|
3046
|
+
declare const gridSortedRowEntriesSelector: reselect.OutputSelector<GridState, {
|
|
3047
|
+
id: GridRowId;
|
|
3048
|
+
model: {
|
|
3049
|
+
[key: string]: any;
|
|
3050
|
+
};
|
|
3051
|
+
}[], (res1: GridRowId[], res2: Record<GridRowId, {
|
|
3052
|
+
[key: string]: any;
|
|
3053
|
+
}>) => {
|
|
3054
|
+
id: GridRowId;
|
|
3055
|
+
model: {
|
|
3056
|
+
[key: string]: any;
|
|
3057
|
+
};
|
|
3058
|
+
}[]>;
|
|
3059
|
+
declare const gridSortModelSelector: reselect.OutputSelector<GridState, GridSortModel, (res: GridSortingState) => GridSortModel>;
|
|
3060
|
+
declare type GridSortColumnLookup = Record<string, {
|
|
3061
|
+
sortDirection: GridSortDirection;
|
|
3062
|
+
sortIndex?: number;
|
|
3063
|
+
}>;
|
|
3064
|
+
declare const gridSortColumnLookupSelector: reselect.OutputSelector<GridState, GridSortColumnLookup, (res: GridSortModel) => GridSortColumnLookup>;
|
|
3065
|
+
|
|
3066
|
+
declare const gridRenderingSelector: (state: GridState) => GridRenderingState;
|
|
3067
|
+
declare const gridScrollSelector: reselect.OutputSelector<GridState, GridScrollParams, (res: GridRenderingState) => GridScrollParams>;
|
|
3068
|
+
|
|
3069
|
+
declare const useGridApi: (apiRef: GridApiRef) => GridApi;
|
|
3070
|
+
|
|
3071
|
+
declare function useGridApiContext(): GridApiRef;
|
|
3072
|
+
|
|
3073
|
+
/**
|
|
3074
|
+
* Signal to the underlying logic what version of the public component API
|
|
3075
|
+
* of the data grid is exposed.
|
|
3076
|
+
*/
|
|
3077
|
+
declare enum GridSignature {
|
|
3078
|
+
DataGrid = "DataGrid",
|
|
3079
|
+
DataGridPro = "DataGridPro"
|
|
3080
|
+
}
|
|
3081
|
+
declare function useGridApiEventHandler<Params, Event extends MuiEvent>(apiRef: GridApiRef, eventName: string, handler?: GridListener<Params, Event>, options?: GridSubscribeEventOptions): void;
|
|
3082
|
+
declare function useGridApiOptionHandler<Params, Event extends MuiEvent>(apiRef: GridApiRef, eventName: string, handler?: GridListener<Params, Event>): void;
|
|
3083
|
+
|
|
3084
|
+
declare function useGridApiMethod<T extends Partial<GridApi>>(apiRef: GridApiRef, apiMethods: T, apiName: string): void;
|
|
3085
|
+
|
|
3086
|
+
declare function useGridApiRef(): GridApiRef;
|
|
3087
|
+
declare function useGridApiRef(apiRefProp: GridApiRef | undefined): GridApiRef;
|
|
3088
|
+
|
|
3089
|
+
declare function useGridLogger(apiRef: GridApiRef, name: string): Logger;
|
|
3090
|
+
|
|
3091
|
+
declare const useGridRootProps: () => GridComponentProps;
|
|
3092
|
+
|
|
3093
|
+
declare function useGridScrollFn(apiRef: GridApiRef, renderingZoneElementRef: React$1.RefObject<HTMLDivElement>, columnHeadersElementRef: React$1.RefObject<HTMLDivElement>): [GridScrollFn];
|
|
3094
|
+
|
|
3095
|
+
declare const useGridSelector: <T>(apiRef: GridApiRef, selector: (state: GridState) => T) => T;
|
|
3096
|
+
|
|
3097
|
+
declare const useGridState: (apiRef: GridApiRef) => [GridState, (stateUpdaterFn: (oldState: GridState) => GridState) => boolean, () => void];
|
|
3098
|
+
|
|
3099
|
+
declare const useGridNativeEventListener: <E extends Event>(apiRef: GridApiRef, ref: React$1.MutableRefObject<HTMLDivElement | null> | (() => Element | undefined | null), eventName: string, handler?: ((event: E) => any) | undefined, options?: AddEventListenerOptions | undefined) => void;
|
|
3100
|
+
|
|
2882
3101
|
declare type GridMergedOptions = {
|
|
2883
3102
|
[key in keyof GridProcessedMergedOptions]: Partial<GridProcessedMergedOptions[key]>;
|
|
2884
3103
|
};
|
|
@@ -2925,10 +3144,25 @@ interface GridSimpleOptions {
|
|
|
2925
3144
|
*/
|
|
2926
3145
|
checkboxSelectionVisibleOnly: boolean;
|
|
2927
3146
|
/**
|
|
2928
|
-
* Number of columns rendered
|
|
2929
|
-
* @default
|
|
3147
|
+
* Number of extra columns to be rendered before/after the visible slice.
|
|
3148
|
+
* @default 3
|
|
2930
3149
|
*/
|
|
2931
3150
|
columnBuffer: number;
|
|
3151
|
+
/**
|
|
3152
|
+
* Number of extra rows to be rendered before/after the visible slice.
|
|
3153
|
+
* @default 3
|
|
3154
|
+
*/
|
|
3155
|
+
rowBuffer: number;
|
|
3156
|
+
/**
|
|
3157
|
+
* Number of rows from the `rowBuffer` that can be visible before a new slice is rendered.
|
|
3158
|
+
* @default 3
|
|
3159
|
+
*/
|
|
3160
|
+
rowThreshold: number;
|
|
3161
|
+
/**
|
|
3162
|
+
* Number of rows from the `columnBuffer` that can be visible before a new slice is rendered.
|
|
3163
|
+
* @default 3
|
|
3164
|
+
*/
|
|
3165
|
+
columnThreshold: number;
|
|
2932
3166
|
/**
|
|
2933
3167
|
* Set the density of the grid.
|
|
2934
3168
|
* @default "standard"
|
|
@@ -3064,7 +3298,8 @@ interface GridSimpleOptions {
|
|
|
3064
3298
|
*/
|
|
3065
3299
|
rowsPerPageOptions: number[];
|
|
3066
3300
|
/**
|
|
3067
|
-
* Set the area at the bottom of the grid viewport where onRowsScrollEnd is called.
|
|
3301
|
+
* Set the area in `px` at the bottom of the grid viewport where onRowsScrollEnd is called.
|
|
3302
|
+
* @default 80
|
|
3068
3303
|
*/
|
|
3069
3304
|
scrollEndThreshold: number;
|
|
3070
3305
|
/**
|
|
@@ -3089,6 +3324,12 @@ interface GridSimpleOptions {
|
|
|
3089
3324
|
* @default "client"
|
|
3090
3325
|
*/
|
|
3091
3326
|
sortingMode: GridFeatureMode;
|
|
3327
|
+
/**
|
|
3328
|
+
* If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
3329
|
+
* It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
|
|
3330
|
+
* @default 0
|
|
3331
|
+
*/
|
|
3332
|
+
throttleRowsMs: number;
|
|
3092
3333
|
}
|
|
3093
3334
|
|
|
3094
3335
|
interface GridClasses {
|
|
@@ -3213,13 +3454,45 @@ interface GridClasses {
|
|
|
3213
3454
|
*/
|
|
3214
3455
|
columnSeparator: string;
|
|
3215
3456
|
/**
|
|
3216
|
-
* Styles applied to the
|
|
3457
|
+
* Styles applied to the columns panel element.
|
|
3458
|
+
*/
|
|
3459
|
+
columnsPanel: string;
|
|
3460
|
+
/**
|
|
3461
|
+
* Styles applied to the columns panel row element.
|
|
3462
|
+
*/
|
|
3463
|
+
columnsPanelRow: string;
|
|
3464
|
+
/**
|
|
3465
|
+
* Styles applied to the panel element.
|
|
3217
3466
|
*/
|
|
3218
|
-
|
|
3467
|
+
panel: string;
|
|
3468
|
+
/**
|
|
3469
|
+
* Styles applied to the panel header element.
|
|
3470
|
+
*/
|
|
3471
|
+
panelHeader: string;
|
|
3472
|
+
/**
|
|
3473
|
+
* Styles applied to the panel wrapper element.
|
|
3474
|
+
*/
|
|
3475
|
+
panelWrapper: string;
|
|
3476
|
+
/**
|
|
3477
|
+
* Styles applied to the panel content element.
|
|
3478
|
+
*/
|
|
3479
|
+
panelContent: string;
|
|
3480
|
+
/**
|
|
3481
|
+
* Styles applied to the panel footer element.
|
|
3482
|
+
*/
|
|
3483
|
+
panelFooter: string;
|
|
3484
|
+
/**
|
|
3485
|
+
* Styles applied to the paper element.
|
|
3486
|
+
*/
|
|
3487
|
+
paper: string;
|
|
3219
3488
|
/**
|
|
3220
3489
|
* Styles applied to root of the boolean edit component.
|
|
3221
3490
|
*/
|
|
3222
3491
|
editBooleanCell: string;
|
|
3492
|
+
/**
|
|
3493
|
+
* Styles applied to the root of the filter form component.
|
|
3494
|
+
*/
|
|
3495
|
+
filterForm: string;
|
|
3223
3496
|
/**
|
|
3224
3497
|
* Styles applied to the root of the input component.
|
|
3225
3498
|
*/
|
|
@@ -3244,6 +3517,10 @@ interface GridClasses {
|
|
|
3244
3517
|
* Styles applied to the main container element.
|
|
3245
3518
|
*/
|
|
3246
3519
|
main: string;
|
|
3520
|
+
/**
|
|
3521
|
+
* Styles applied to the menu element.
|
|
3522
|
+
*/
|
|
3523
|
+
menu: string;
|
|
3247
3524
|
/**
|
|
3248
3525
|
* Styles applied to the menu icon element.
|
|
3249
3526
|
*/
|
|
@@ -3256,14 +3533,26 @@ interface GridClasses {
|
|
|
3256
3533
|
* Styles applied to the menu icon element if the menu is open.
|
|
3257
3534
|
*/
|
|
3258
3535
|
menuOpen: string;
|
|
3536
|
+
/**
|
|
3537
|
+
* Styles applied to the menu list element.
|
|
3538
|
+
*/
|
|
3539
|
+
menuList: string;
|
|
3259
3540
|
/**
|
|
3260
3541
|
* Styles applied to the overlay element.
|
|
3261
3542
|
*/
|
|
3262
3543
|
overlay: string;
|
|
3263
3544
|
/**
|
|
3264
|
-
* Styles applied to the
|
|
3545
|
+
* Styles applied to the virtualization container.
|
|
3546
|
+
*/
|
|
3547
|
+
virtualScroller: any;
|
|
3548
|
+
/**
|
|
3549
|
+
* Styles applied to the virtualization content.
|
|
3265
3550
|
*/
|
|
3266
|
-
|
|
3551
|
+
virtualScrollerContent: any;
|
|
3552
|
+
/**
|
|
3553
|
+
* Styles applied to the virtualization render zone.
|
|
3554
|
+
*/
|
|
3555
|
+
virtualScrollerRenderZone: any;
|
|
3267
3556
|
/**
|
|
3268
3557
|
* Styles applied to the root element.
|
|
3269
3558
|
*/
|
|
@@ -3291,11 +3580,11 @@ interface GridClasses {
|
|
|
3291
3580
|
/**
|
|
3292
3581
|
* Styles applied to the left scroll area element.
|
|
3293
3582
|
*/
|
|
3294
|
-
|
|
3583
|
+
'scrollArea--left': string;
|
|
3295
3584
|
/**
|
|
3296
3585
|
* Styles applied to the right scroll area element.
|
|
3297
3586
|
*/
|
|
3298
|
-
|
|
3587
|
+
'scrollArea--right': string;
|
|
3299
3588
|
/**
|
|
3300
3589
|
* Styles applied to the footer selected row count element.
|
|
3301
3590
|
*/
|
|
@@ -3309,17 +3598,9 @@ interface GridClasses {
|
|
|
3309
3598
|
*/
|
|
3310
3599
|
toolbarContainer: string;
|
|
3311
3600
|
/**
|
|
3312
|
-
* Styles applied to the
|
|
3313
|
-
*/
|
|
3314
|
-
viewport: string;
|
|
3315
|
-
/**
|
|
3316
|
-
* Styles applied to the window element.
|
|
3317
|
-
*/
|
|
3318
|
-
window: string;
|
|
3319
|
-
/**
|
|
3320
|
-
* Styles applied to the window container element.
|
|
3601
|
+
* Styles applied to the toolbar filter list element.
|
|
3321
3602
|
*/
|
|
3322
|
-
|
|
3603
|
+
toolbarFilterList: string;
|
|
3323
3604
|
/**
|
|
3324
3605
|
* Styles applied to both the cell and the column header if `showColumnRightBorder={true}`.
|
|
3325
3606
|
*/
|
|
@@ -3327,7 +3608,7 @@ interface GridClasses {
|
|
|
3327
3608
|
}
|
|
3328
3609
|
declare type GridClassKey = keyof GridClasses;
|
|
3329
3610
|
declare function getDataGridUtilityClass(slot: string): string;
|
|
3330
|
-
declare const gridClasses: Record<"actionsCell" | "autoHeight" | "booleanCell" | "cell--editable" | "cell--editing" | "cell--textCenter" | "cell--textLeft" | "cell--textRight" | "cell--withRenderer" | "cell" | "cellCheckbox" | "checkboxInput" | "columnHeader--alignCenter" | "columnHeader--alignLeft" | "columnHeader--alignRight" | "columnHeader--dragging" | "columnHeader--moving" | "columnHeader--numeric" | "columnHeader--sortable" | "columnHeader--sorted" | "columnHeader" | "columnHeaderCheckbox" | "columnHeaderDraggableContainer" | "columnHeaderDropZone" | "columnHeaderTitle" | "columnHeaderTitleContainer" | "columnHeaderWrapper" | "columnsContainer" | "columnSeparator--resizable" | "columnSeparator--resizing" | "columnSeparator" | "
|
|
3611
|
+
declare const gridClasses: Record<"actionsCell" | "autoHeight" | "booleanCell" | "cell--editable" | "cell--editing" | "cell--textCenter" | "cell--textLeft" | "cell--textRight" | "cell--withRenderer" | "cell" | "cellCheckbox" | "checkboxInput" | "columnHeader--alignCenter" | "columnHeader--alignLeft" | "columnHeader--alignRight" | "columnHeader--dragging" | "columnHeader--moving" | "columnHeader--numeric" | "columnHeader--sortable" | "columnHeader--sorted" | "columnHeader" | "columnHeaderCheckbox" | "columnHeaderDraggableContainer" | "columnHeaderDropZone" | "columnHeaderTitle" | "columnHeaderTitleContainer" | "columnHeaderWrapper" | "columnsContainer" | "columnSeparator--resizable" | "columnSeparator--resizing" | "columnSeparator" | "columnsPanel" | "columnsPanelRow" | "panel" | "panelHeader" | "panelWrapper" | "panelContent" | "panelFooter" | "paper" | "editBooleanCell" | "editInputCell" | "filterForm" | "filterIcon" | "footerContainer" | "iconButtonContainer" | "iconSeparator" | "main" | "menu" | "menuIcon" | "menuIconButton" | "menuOpen" | "menuList" | "overlay" | "root" | "row--editable" | "row--editing" | "row" | "rowCount" | "scrollArea--left" | "scrollArea--right" | "scrollArea" | "selectedRowCount" | "sortIcon" | "toolbarContainer" | "toolbarFilterList" | "virtualScroller" | "virtualScrollerContent" | "virtualScrollerRenderZone" | "withBorder", string>;
|
|
3331
3612
|
|
|
3332
3613
|
/**
|
|
3333
3614
|
* The grid component react props before applying the default values.
|
|
@@ -3437,17 +3718,10 @@ interface GridComponentOtherProps {
|
|
|
3437
3718
|
/**
|
|
3438
3719
|
* Callback fired when an exception is thrown in the grid.
|
|
3439
3720
|
* @param {any} args The arguments passed to the `showError` call.
|
|
3440
|
-
* @param {MuiEvent
|
|
3441
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3442
|
-
*/
|
|
3443
|
-
onError?: (args: any, event: MuiEvent<{}>, details: GridCallbackDetails) => void;
|
|
3444
|
-
/**
|
|
3445
|
-
* Callback fired when the active element leaves a cell.
|
|
3446
|
-
* @param {GridCallbackDetails} params With all properties from [[GridCellParams]].
|
|
3447
|
-
* @param {MuiEvent<React.SyntheticEvent>} event The event object.
|
|
3721
|
+
* @param {MuiEvent} event The event object.
|
|
3448
3722
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3449
3723
|
*/
|
|
3450
|
-
|
|
3724
|
+
onError?: (args: any, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3451
3725
|
/**
|
|
3452
3726
|
* Callback fired when a click event comes from a cell element.
|
|
3453
3727
|
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
@@ -3476,41 +3750,13 @@ interface GridComponentOtherProps {
|
|
|
3476
3750
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3477
3751
|
*/
|
|
3478
3752
|
onCellKeyDown?: (params: GridCellParams, event: MuiEvent<React$1.KeyboardEvent>, details: GridCallbackDetails) => void;
|
|
3479
|
-
/**
|
|
3480
|
-
* Callback fired when a mouseover event comes from a cell element.
|
|
3481
|
-
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
3482
|
-
* @param {MuiEvent<React.MouseEvent>} event The event object.
|
|
3483
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3484
|
-
*/
|
|
3485
|
-
onCellOver?: (params: GridCellParams, event: MuiEvent<React$1.MouseEvent>, details: GridCallbackDetails) => void;
|
|
3486
|
-
/**
|
|
3487
|
-
* Callback fired when a mouseout event comes from a cell element.
|
|
3488
|
-
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
3489
|
-
* @param {MuiEvent<React.MouseEvent>} event The event object.
|
|
3490
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3491
|
-
*/
|
|
3492
|
-
onCellOut?: (params: GridCellParams, event: MuiEvent<React$1.MouseEvent>, details: GridCallbackDetails) => void;
|
|
3493
|
-
/**
|
|
3494
|
-
* Callback fired when a mouse enter event comes from a cell element.
|
|
3495
|
-
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
3496
|
-
* @param {MuiEvent<React.MouseEvent>} event The event object.
|
|
3497
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3498
|
-
*/
|
|
3499
|
-
onCellEnter?: (params: GridCellParams, event: MuiEvent<React$1.MouseEvent>, details: GridCallbackDetails) => void;
|
|
3500
|
-
/**
|
|
3501
|
-
* Callback fired when a mouse leave event comes from a cell element.
|
|
3502
|
-
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
3503
|
-
* @param {MuiEvent<React.MouseEvent>} event The event object.
|
|
3504
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3505
|
-
*/
|
|
3506
|
-
onCellLeave?: (params: GridCellParams, event: MuiEvent<React$1.MouseEvent>, details: GridCallbackDetails) => void;
|
|
3507
3753
|
/**
|
|
3508
3754
|
* Callback fired when the cell value changed.
|
|
3509
3755
|
* @param {GridEditCellValueParams} params With all properties from [[GridEditCellValueParams]].
|
|
3510
|
-
* @param {MuiEvent
|
|
3756
|
+
* @param {MuiEvent} event The event object.
|
|
3511
3757
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3512
3758
|
*/
|
|
3513
|
-
onCellValueChange?: (params: GridEditCellValueParams, event: MuiEvent
|
|
3759
|
+
onCellValueChange?: (params: GridEditCellValueParams, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3514
3760
|
/**
|
|
3515
3761
|
* Callback fired when a click event comes from a column header element.
|
|
3516
3762
|
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
|
|
@@ -3556,31 +3802,31 @@ interface GridComponentOtherProps {
|
|
|
3556
3802
|
/**
|
|
3557
3803
|
* Callback fired when a column is reordered.
|
|
3558
3804
|
* @param {GridColumnOrderChangeParams} params With all properties from [[GridColumnOrderChangeParams]].
|
|
3559
|
-
* @param {MuiEvent
|
|
3805
|
+
* @param {MuiEvent} event The event object.
|
|
3560
3806
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3561
3807
|
*/
|
|
3562
|
-
onColumnOrderChange?: (params: GridColumnOrderChangeParams, event: MuiEvent
|
|
3808
|
+
onColumnOrderChange?: (params: GridColumnOrderChangeParams, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3563
3809
|
/**
|
|
3564
3810
|
* Callback fired while a column is being resized.
|
|
3565
3811
|
* @param {GridColumnResizeParams} params With all properties from [[GridColumnResizeParams]].
|
|
3566
|
-
* @param {MuiEvent
|
|
3812
|
+
* @param {MuiEvent} event The event object.
|
|
3567
3813
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3568
3814
|
*/
|
|
3569
|
-
onColumnResize?: (params: GridColumnResizeParams, event: MuiEvent
|
|
3815
|
+
onColumnResize?: (params: GridColumnResizeParams, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3570
3816
|
/**
|
|
3571
3817
|
* Callback fired when the width of a column is changed.
|
|
3572
3818
|
* @param {GridCallbackDetails} params With all properties from [[GridColumnResizeParams]].
|
|
3573
|
-
* @param {MuiEvent
|
|
3819
|
+
* @param {MuiEvent} event The event object.
|
|
3574
3820
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3575
3821
|
*/
|
|
3576
|
-
onColumnWidthChange?: (params: GridColumnResizeParams, event: MuiEvent
|
|
3822
|
+
onColumnWidthChange?: (params: GridColumnResizeParams, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3577
3823
|
/**
|
|
3578
3824
|
* Callback fired when a column visibility changes.
|
|
3579
3825
|
* @param {GridColumnVisibilityChangeParams} params With all properties from [[GridColumnVisibilityChangeParams]].
|
|
3580
|
-
* @param {MuiEvent
|
|
3826
|
+
* @param {MuiEvent} event The event object.
|
|
3581
3827
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3582
3828
|
*/
|
|
3583
|
-
onColumnVisibilityChange?: (params: GridColumnVisibilityChangeParams, event: MuiEvent
|
|
3829
|
+
onColumnVisibilityChange?: (params: GridColumnVisibilityChangeParams, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3584
3830
|
/**
|
|
3585
3831
|
* Callback fired when a click event comes from a row container element.
|
|
3586
3832
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
@@ -3591,10 +3837,10 @@ interface GridComponentOtherProps {
|
|
|
3591
3837
|
/**
|
|
3592
3838
|
* Callback fired when scrolling to the bottom of the grid viewport.
|
|
3593
3839
|
* @param {GridRowScrollEndParams} params With all properties from [[GridRowScrollEndParams]].
|
|
3594
|
-
* @param {MuiEvent
|
|
3840
|
+
* @param {MuiEvent} event The event object.
|
|
3595
3841
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3596
3842
|
*/
|
|
3597
|
-
onRowsScrollEnd?: (params: GridRowScrollEndParams, event: MuiEvent
|
|
3843
|
+
onRowsScrollEnd?: (params: GridRowScrollEndParams, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3598
3844
|
/**
|
|
3599
3845
|
* Callback fired when a double click event comes from a row container element.
|
|
3600
3846
|
* @param {GridRowParams} params With all properties from [[RowParams]].
|
|
@@ -3602,59 +3848,24 @@ interface GridComponentOtherProps {
|
|
|
3602
3848
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3603
3849
|
*/
|
|
3604
3850
|
onRowDoubleClick?: (params: GridRowParams, event: MuiEvent<React$1.SyntheticEvent>, details: GridCallbackDetails) => void;
|
|
3605
|
-
/**
|
|
3606
|
-
* Callback fired when a mouseover event comes from a row container element.
|
|
3607
|
-
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
3608
|
-
* @param {MuiEvent<React.SyntheticEvent>} event The event object.
|
|
3609
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3610
|
-
*/
|
|
3611
|
-
onRowOver?: (params: GridRowParams, event: MuiEvent<React$1.SyntheticEvent>, details: GridCallbackDetails) => void;
|
|
3612
|
-
/**
|
|
3613
|
-
* Callback fired when a mouseout event comes from a row container element.
|
|
3614
|
-
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
3615
|
-
* @param {MuiEvent<React.SyntheticEvent>} event The event object.
|
|
3616
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3617
|
-
*/
|
|
3618
|
-
onRowOut?: (params: GridRowParams, event: MuiEvent<React$1.SyntheticEvent>, details: GridCallbackDetails) => void;
|
|
3619
|
-
/**
|
|
3620
|
-
* Callback fired when a mouse enter event comes from a row container element.
|
|
3621
|
-
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
3622
|
-
* @param {MuiEvent<React.SyntheticEvent>} event The event object.
|
|
3623
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3624
|
-
*/
|
|
3625
|
-
onRowEnter?: (params: GridRowParams, event: MuiEvent<React$1.SyntheticEvent>, details: GridCallbackDetails) => void;
|
|
3626
|
-
/**
|
|
3627
|
-
* Callback fired when a mouse leave event comes from a row container element.
|
|
3628
|
-
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
3629
|
-
* @param {MuiEvent<React.SyntheticEvent>} event The event object.
|
|
3630
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3631
|
-
*/
|
|
3632
|
-
onRowLeave?: (params: GridRowParams, event: MuiEvent<React$1.SyntheticEvent>, details: GridCallbackDetails) => void;
|
|
3633
3851
|
/**
|
|
3634
3852
|
* Callback fired when the grid is resized.
|
|
3635
3853
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
3636
|
-
* @param {MuiEvent
|
|
3854
|
+
* @param {MuiEvent} event The event object.
|
|
3637
3855
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3638
3856
|
*/
|
|
3639
|
-
onResize?: (containerSize: ElementSize, event: MuiEvent
|
|
3857
|
+
onResize?: (containerSize: ElementSize, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3640
3858
|
/**
|
|
3641
3859
|
* Callback fired when the state of the grid is updated.
|
|
3642
3860
|
* @param {GridState} state The new state.
|
|
3643
|
-
* @param {MuiEvent
|
|
3861
|
+
* @param {MuiEvent} event The event object.
|
|
3644
3862
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3645
3863
|
* @internal
|
|
3646
3864
|
*/
|
|
3647
|
-
onStateChange?: (state: GridState, event: MuiEvent
|
|
3865
|
+
onStateChange?: (state: GridState, event: MuiEvent, details: GridCallbackDetails) => void;
|
|
3648
3866
|
/**
|
|
3649
|
-
*
|
|
3650
|
-
* @
|
|
3651
|
-
* @param {MuiEvent<{}>} event The event object.
|
|
3652
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
3653
|
-
*/
|
|
3654
|
-
onViewportRowsChange?: (params: GridViewportRowsChangeParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void;
|
|
3655
|
-
/**
|
|
3656
|
-
* Set the current page.
|
|
3657
|
-
* @default 1
|
|
3867
|
+
* The zero-based index of the current page.
|
|
3868
|
+
* @default 0
|
|
3658
3869
|
*/
|
|
3659
3870
|
page?: number;
|
|
3660
3871
|
/**
|
|
@@ -3723,7 +3934,7 @@ interface GridComponentOtherProps {
|
|
|
3723
3934
|
*/
|
|
3724
3935
|
'aria-labelledby'?: string;
|
|
3725
3936
|
/**
|
|
3726
|
-
* @ignore
|
|
3937
|
+
* @ignore - do not document
|
|
3727
3938
|
*/
|
|
3728
3939
|
className?: string;
|
|
3729
3940
|
/**
|
|
@@ -3735,7 +3946,7 @@ interface GridComponentOtherProps {
|
|
|
3735
3946
|
*/
|
|
3736
3947
|
error?: any;
|
|
3737
3948
|
/**
|
|
3738
|
-
* Return the id of a given [[
|
|
3949
|
+
* Return the id of a given [[GridRowModel]].
|
|
3739
3950
|
*/
|
|
3740
3951
|
getRowId?: GridRowIdGetter;
|
|
3741
3952
|
/**
|
|
@@ -3751,11 +3962,13 @@ interface GridComponentOtherProps {
|
|
|
3751
3962
|
*/
|
|
3752
3963
|
rows: GridRowsProp;
|
|
3753
3964
|
/**
|
|
3754
|
-
*
|
|
3965
|
+
* The initial state of the DataGrid.
|
|
3966
|
+
* The data in it will be set in the state on initialization but will not be controlled.
|
|
3967
|
+
* If one of the data in `initialState` is also being controlled, then the control state wins.
|
|
3755
3968
|
*/
|
|
3756
|
-
|
|
3969
|
+
initialState?: GridInitialState;
|
|
3757
3970
|
/**
|
|
3758
|
-
* @ignore
|
|
3971
|
+
* @ignore - do not document
|
|
3759
3972
|
*/
|
|
3760
3973
|
style?: React$1.CSSProperties;
|
|
3761
3974
|
/**
|
|
@@ -3764,254 +3977,15 @@ interface GridComponentOtherProps {
|
|
|
3764
3977
|
componentsProps?: GridSlotsComponentsProps;
|
|
3765
3978
|
}
|
|
3766
3979
|
|
|
3767
|
-
|
|
3768
|
-
* Only available in DataGridPro
|
|
3769
|
-
* @requires useGridColumns (method)
|
|
3770
|
-
*/
|
|
3771
|
-
declare const useGridColumnReorder: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'disableColumnReorder' | 'classes'>) => void;
|
|
3772
|
-
|
|
3773
|
-
declare const gridColumnsSelector: (state: GridState) => GridColumnsState;
|
|
3774
|
-
declare const allGridColumnsFieldsSelector: (state: GridState) => string[];
|
|
3775
|
-
declare const gridColumnLookupSelector: (state: GridState) => GridColumnLookup;
|
|
3776
|
-
declare const allGridColumnsSelector: reselect.OutputSelector<GridState, GridStateColDef[], (res1: string[], res2: GridColumnLookup) => GridStateColDef[]>;
|
|
3777
|
-
declare const visibleGridColumnsSelector: reselect.OutputSelector<GridState, GridStateColDef[], (res: GridStateColDef[]) => GridStateColDef[]>;
|
|
3778
|
-
declare const gridColumnsMetaSelector: reselect.OutputSelector<GridState, {
|
|
3779
|
-
totalWidth: number;
|
|
3780
|
-
positions: number[];
|
|
3781
|
-
}, (res: GridStateColDef[]) => {
|
|
3782
|
-
totalWidth: number;
|
|
3783
|
-
positions: number[];
|
|
3784
|
-
}>;
|
|
3785
|
-
declare const filterableGridColumnsSelector: reselect.OutputSelector<GridState, GridStateColDef[], (res: GridStateColDef[]) => GridStateColDef[]>;
|
|
3786
|
-
declare const filterableGridColumnsIdsSelector: reselect.OutputSelector<GridState, string[], (res: GridStateColDef[]) => string[]>;
|
|
3787
|
-
declare const visibleGridColumnsLengthSelector: reselect.OutputSelector<GridState, number, (res: GridStateColDef[]) => number>;
|
|
3788
|
-
declare const gridColumnsTotalWidthSelector: reselect.OutputSelector<GridState, number, (res: {
|
|
3789
|
-
totalWidth: number;
|
|
3790
|
-
positions: number[];
|
|
3791
|
-
}) => number>;
|
|
3792
|
-
|
|
3793
|
-
/**
|
|
3794
|
-
* @requires useGridParamsApi (method)
|
|
3795
|
-
* TODO: Impossible priority - useGridParamsApi also needs to be after useGridColumns
|
|
3796
|
-
*/
|
|
3797
|
-
declare function useGridColumns(apiRef: GridApiRef, props: Pick<GridComponentProps, 'columns' | 'onColumnVisibilityChange' | 'columnTypes' | 'checkboxSelection' | 'classes'>): void;
|
|
3798
|
-
|
|
3799
|
-
declare const useGridApi: (apiRef: GridApiRef) => GridApi;
|
|
3800
|
-
|
|
3801
|
-
declare function useGridControlState(apiRef: GridApiRef, props: GridComponentProps): void;
|
|
3802
|
-
|
|
3803
|
-
declare const useGridSelector: <State>(apiRef: GridApiRef, selector: (state: any) => State) => State;
|
|
3804
|
-
|
|
3805
|
-
declare const useGridState: (apiRef: GridApiRef) => [GridState, (stateUpdaterFn: (oldState: GridState) => GridState) => boolean, () => void];
|
|
3806
|
-
|
|
3807
|
-
declare const getInitialGridFilterState: () => GridFilterModel;
|
|
3808
|
-
|
|
3809
|
-
declare const visibleGridRowsStateSelector: (state: GridState) => VisibleGridRowsState;
|
|
3810
|
-
declare const visibleSortedGridRowsSelector: reselect.OutputSelector<GridState, Map<GridRowId, GridRowData>, (res1: VisibleGridRowsState, res2: Map<GridRowId, GridRowData>) => Map<GridRowId, GridRowData>>;
|
|
3811
|
-
declare const visibleSortedGridRowsAsArraySelector: reselect.OutputSelector<GridState, [GridRowId, GridRowData][], (res: Map<GridRowId, GridRowData>) => [GridRowId, GridRowData][]>;
|
|
3812
|
-
declare const visibleSortedGridRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res: Map<GridRowId, GridRowData>) => GridRowId[]>;
|
|
3813
|
-
declare const visibleGridRowCountSelector: reselect.OutputSelector<GridState, number, (res1: VisibleGridRowsState, res2: number) => number>;
|
|
3814
|
-
declare const filterGridStateSelector: (state: GridState) => GridFilterModel;
|
|
3815
|
-
declare const activeGridFilterItemsSelector: reselect.OutputSelector<GridState, GridFilterItem[], (res1: GridFilterModel, res2: GridColumnLookup) => GridFilterItem[]>;
|
|
3816
|
-
declare const filterGridItemsCounterSelector: reselect.OutputSelector<GridState, number, (res: GridFilterItem[]) => number>;
|
|
3817
|
-
declare type FilterColumnLookup = Record<string, GridFilterItem[]>;
|
|
3818
|
-
declare const filterGridColumnLookupSelector: reselect.OutputSelector<GridState, FilterColumnLookup, (res: GridFilterItem[]) => FilterColumnLookup>;
|
|
3819
|
-
|
|
3820
|
-
/**
|
|
3821
|
-
* @requires useGridColumns (state, method, event)
|
|
3822
|
-
* @requires useGridParamsApi (method)
|
|
3823
|
-
* @requires useGridRows (event)
|
|
3824
|
-
* @requires useGridControlState (method)
|
|
3825
|
-
*/
|
|
3826
|
-
declare const useGridFilter: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'filterModel' | 'onFilterModelChange' | 'filterMode' | 'disableMultipleColumnsFiltering'>) => void;
|
|
3827
|
-
|
|
3828
|
-
/**
|
|
3829
|
-
* @requires useGridParamsApi (method)
|
|
3830
|
-
* @requires useGridRows (method)
|
|
3831
|
-
* @requires useGridEditRows (event)
|
|
3832
|
-
*/
|
|
3833
|
-
declare const useGridFocus: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'rows'>) => void;
|
|
3834
|
-
|
|
3835
|
-
declare const gridFocusStateSelector: (state: GridState) => GridFocusState;
|
|
3836
|
-
declare const gridFocusCellSelector: reselect.OutputSelector<GridState, GridCellIdentifier | null, (res: GridFocusState) => GridCellIdentifier | null>;
|
|
3837
|
-
declare const gridFocusColumnHeaderSelector: reselect.OutputSelector<GridState, GridColumnIdentifier | null, (res: GridFocusState) => GridColumnIdentifier | null>;
|
|
3838
|
-
declare const gridTabIndexStateSelector: (state: GridState) => GridTabIndexState;
|
|
3839
|
-
declare const gridTabIndexCellSelector: reselect.OutputSelector<GridState, GridCellIdentifier | null, (res: GridTabIndexState) => GridCellIdentifier | null>;
|
|
3840
|
-
declare const gridTabIndexColumnHeaderSelector: reselect.OutputSelector<GridState, GridColumnIdentifier | null, (res: GridTabIndexState) => GridColumnIdentifier | null>;
|
|
3841
|
-
|
|
3842
|
-
/**
|
|
3843
|
-
* @requires useGridSelection (method)
|
|
3844
|
-
* @requires useGridRows (method)
|
|
3845
|
-
* @requires useGridFocus (state)
|
|
3846
|
-
* @requires useGridParamsApi (method)
|
|
3847
|
-
* @requires useGridColumnMenu (method)
|
|
3848
|
-
*/
|
|
3849
|
-
declare const useGridKeyboard: (apiRef: GridApiRef) => void;
|
|
3850
|
-
|
|
3851
|
-
/**
|
|
3852
|
-
* @requires useGridPage (state)
|
|
3853
|
-
* @requires useGridPageSize (state)
|
|
3854
|
-
* @requires useGridColumns (state, method)
|
|
3855
|
-
* @requires useGridRows (state, method)
|
|
3856
|
-
* @requires useGridContainerProps (state)
|
|
3857
|
-
* @requires useGridFocus (method)
|
|
3858
|
-
* @requires useGridScroll (method)
|
|
3859
|
-
*/
|
|
3860
|
-
declare const useGridKeyboardNavigation: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'pagination'>) => void;
|
|
3861
|
-
|
|
3862
|
-
declare const gridPaginationSelector: (state: GridState) => GridPaginationState;
|
|
3863
|
-
declare const gridPaginatedVisibleSortedGridRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res1: GridPaginationState, res2: GridRowId[]) => GridRowId[]>;
|
|
3864
|
-
|
|
3865
|
-
/**
|
|
3866
|
-
* @requires useGridControlState (method)
|
|
3867
|
-
* @requires useGridPageSize (state, event)
|
|
3868
|
-
* @requires useGridFilter (state)
|
|
3869
|
-
*/
|
|
3870
|
-
declare const useGridPage: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'page' | 'onPageChange' | 'rowCount'>) => void;
|
|
3871
|
-
|
|
3872
|
-
/**
|
|
3873
|
-
* @requires useGridControlState (method)
|
|
3874
|
-
* @requires useGridContainerProps (state)
|
|
3875
|
-
* @requires useGridFilter (state)
|
|
3876
|
-
*/
|
|
3877
|
-
declare const useGridPageSize: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'pageSize' | 'onPageSizeChange' | 'autoPageSize'>) => void;
|
|
3878
|
-
|
|
3879
|
-
declare const gridPreferencePanelStateSelector: (state: GridState) => GridPreferencePanelState;
|
|
3880
|
-
declare const gridViewportSizeStateSelector: (state: GridState) => ElementSize;
|
|
3881
|
-
|
|
3882
|
-
declare const useGridPreferencesPanel: (apiRef: GridApiRef) => void;
|
|
3883
|
-
|
|
3884
|
-
declare type GridRowsLookup = Record<GridRowId, GridRowModel>;
|
|
3885
|
-
declare const gridRowsStateSelector: (state: GridState) => InternalGridRowsState;
|
|
3886
|
-
declare const gridRowCountSelector: reselect.OutputSelector<GridState, number, (res: InternalGridRowsState) => number>;
|
|
3887
|
-
declare const gridRowsLookupSelector: reselect.OutputSelector<GridState, Record<GridRowId, GridRowData>, (res: InternalGridRowsState) => Record<GridRowId, GridRowData>>;
|
|
3888
|
-
declare const unorderedGridRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res: InternalGridRowsState) => GridRowId[]>;
|
|
3889
|
-
declare const unorderedGridRowModelsSelector: reselect.OutputSelector<GridState, GridRowData[], (res: InternalGridRowsState) => GridRowData[]>;
|
|
3890
|
-
|
|
3891
|
-
/**
|
|
3892
|
-
* @requires useGridColumns (method)
|
|
3893
|
-
* @requires useGridRows (method)
|
|
3894
|
-
* @requires useGridFocus (state)
|
|
3895
|
-
* @requires useGridEditRows (method)
|
|
3896
|
-
* TODO: Impossible priority - useGridEditRows also needs to be after useGridParamsApi
|
|
3897
|
-
* TODO: Impossible priority - useGridFocus also needs to be after useGridParamsApi
|
|
3898
|
-
*/
|
|
3899
|
-
declare function useGridParamsApi(apiRef: GridApiRef): void;
|
|
3900
|
-
|
|
3901
|
-
declare function convertGridRowsPropToState(rows: GridRowsProp, totalRowCount?: number, rowIdGetter?: GridRowIdGetter): InternalGridRowsState;
|
|
3902
|
-
/**
|
|
3903
|
-
* @requires useGridSorting (method)
|
|
3904
|
-
* TODO: Impossible priority - useGridSorting also needs to be after useGridRows (which causes all the existence check for apiRef.current.apiRef.current.getSortedRowIds)
|
|
3905
|
-
*/
|
|
3906
|
-
declare const useGridRows: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'rows' | 'getRowId' | 'rowCount'>) => void;
|
|
3907
|
-
|
|
3908
|
-
declare const gridEditRowsStateSelector: (state: GridState) => GridEditRowsModel;
|
|
3909
|
-
|
|
3910
|
-
/**
|
|
3911
|
-
* @requires useGridFocus - can be after, async only
|
|
3912
|
-
* @requires useGridParamsApi (method)
|
|
3913
|
-
* @requires useGridColumns (state)
|
|
3914
|
-
* @requires useGridControlState (method)
|
|
3915
|
-
*/
|
|
3916
|
-
declare function useGridEditRows(apiRef: GridApiRef, props: Pick<GridComponentProps, 'editRowsModel' | 'onEditRowsModelChange' | 'onEditCellPropsChange' | 'onCellEditCommit' | 'onCellEditStart' | 'onCellEditStop' | 'onRowEditCommit' | 'onRowEditStart' | 'onRowEditStop' | 'isCellEditable' | 'editMode'>): void;
|
|
3917
|
-
|
|
3918
|
-
declare const gridSelectionStateSelector: (state: GridState) => GridSelectionModel;
|
|
3919
|
-
declare const selectedGridRowsCountSelector: reselect.OutputSelector<GridState, number, (res: GridSelectionModel) => number>;
|
|
3920
|
-
declare const selectedGridRowsSelector: reselect.OutputSelector<GridState, Map<GridRowId, GridRowData>, (res1: GridSelectionModel, res2: Record<GridRowId, GridRowData>) => Map<GridRowId, GridRowData>>;
|
|
3921
|
-
declare const selectedIdsLookupSelector: reselect.OutputSelector<GridState, {}, (res: GridSelectionModel) => {}>;
|
|
3922
|
-
|
|
3923
|
-
/**
|
|
3924
|
-
* @requires useGridRows (state, method)
|
|
3925
|
-
* @requires useGridParamsApi (method)
|
|
3926
|
-
* @requires useGridControlState (method)
|
|
3927
|
-
*/
|
|
3928
|
-
declare const useGridSelection: (apiRef: GridApiRef, props: GridComponentProps) => void;
|
|
3929
|
-
|
|
3930
|
-
declare const sortedGridRowIdsSelector: reselect.OutputSelector<GridState, GridRowId[], (res1: GridSortingState, res2: GridRowId[]) => GridRowId[]>;
|
|
3931
|
-
declare const sortedGridRowsSelector: reselect.OutputSelector<GridState, Map<GridRowId, GridRowData>, (res1: GridRowId[], res2: Record<GridRowId, GridRowData>) => Map<GridRowId, GridRowData>>;
|
|
3932
|
-
declare const gridSortModelSelector: reselect.OutputSelector<GridState, GridSortModel, (res: GridSortingState) => GridSortModel>;
|
|
3933
|
-
declare type GridSortColumnLookup = Record<string, {
|
|
3934
|
-
sortDirection: GridSortDirection;
|
|
3935
|
-
sortIndex?: number;
|
|
3936
|
-
}>;
|
|
3937
|
-
declare const gridSortColumnLookupSelector: reselect.OutputSelector<GridState, GridSortColumnLookup, (res: GridSortModel) => GridSortColumnLookup>;
|
|
3938
|
-
|
|
3939
|
-
/**
|
|
3940
|
-
* @requires useGridRows (state, event)
|
|
3941
|
-
* @requires useGridControlState (method)
|
|
3942
|
-
* @requires useGridColumns (event)
|
|
3943
|
-
*/
|
|
3944
|
-
declare const useGridSorting: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'sortModel' | 'onSortModelChange' | 'sortingOrder' | 'sortingMode' | 'disableMultipleColumnsSorting'>) => void;
|
|
3945
|
-
|
|
3946
|
-
/**
|
|
3947
|
-
* @requires useGridColumns (state)
|
|
3948
|
-
* @requires useGridPage (state)
|
|
3949
|
-
* @requires useGridPageSize (state)
|
|
3950
|
-
* @requires useGridRows (state)
|
|
3951
|
-
*/
|
|
3952
|
-
declare const useGridVirtualization: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'pagination' | 'paginationMode' | 'columnBuffer' | 'disableExtendRowFullWidth' | 'disableVirtualization'>) => void;
|
|
3953
|
-
|
|
3954
|
-
/**
|
|
3955
|
-
* @requires useGridPage (state)
|
|
3956
|
-
* @requires useGridPageSize (state)
|
|
3957
|
-
* @requires useGridColumns (state)
|
|
3958
|
-
* @requires useGridRows (state)
|
|
3959
|
-
* @requires useGridDensity (state)
|
|
3960
|
-
*/
|
|
3961
|
-
declare const useGridScroll: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'pagination'>) => void;
|
|
3962
|
-
|
|
3963
|
-
declare function useGridApiRef(): GridApiRef;
|
|
3964
|
-
declare function useGridApiRef(apiRefProp: GridApiRef | undefined): GridApiRef;
|
|
3980
|
+
declare const useGridProcessedProps: (inProps: GridInputComponentProps) => GridComponentProps;
|
|
3965
3981
|
|
|
3966
|
-
|
|
3967
|
-
declare const gridResizingColumnFieldSelector: reselect.OutputSelector<GridState, string, (res: GridColumnResizeState) => string>;
|
|
3968
|
-
|
|
3969
|
-
/**
|
|
3970
|
-
* Only available in DataGridPro
|
|
3971
|
-
* @requires useGridColumns (method, event)
|
|
3972
|
-
* TODO: improve experience for last column
|
|
3973
|
-
*/
|
|
3974
|
-
declare const useGridColumnResize: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'onColumnResize' | 'onColumnWidthChange'>) => void;
|
|
3975
|
-
|
|
3976
|
-
declare const useGridSlotComponentProps: () => GridSlotComponentProps;
|
|
3977
|
-
|
|
3978
|
-
declare function useApi(apiRef: GridApiRef, props: Pick<GridComponentProps, 'signature'>): void;
|
|
3979
|
-
|
|
3980
|
-
declare function useGridApiMethod<T extends Partial<GridApi>>(apiRef: GridApiRef, apiMethods: T, apiName: string): void;
|
|
3981
|
-
|
|
3982
|
-
/**
|
|
3983
|
-
* @requires useOptionsProp (state)
|
|
3984
|
-
* @requires useGridDensity (state)
|
|
3985
|
-
* @requires useGridColumns (state)
|
|
3986
|
-
* @requires useGridFilter (state)
|
|
3987
|
-
* @requires useGridPage (state)
|
|
3988
|
-
* @requires useGridPageSize (state)
|
|
3989
|
-
* TODO: Impossible priority - useGridPageSize also needs to be after useGridContainerProps
|
|
3990
|
-
*/
|
|
3991
|
-
declare const useGridContainerProps: (apiRef: GridApiRef, props: Pick<GridComponentProps, 'pagination' | 'autoPageSize' | 'pageSize' | 'autoHeight' | 'hideFooter' | 'scrollbarSize' | 'disableVirtualization'>) => void;
|
|
3992
|
-
|
|
3993
|
-
declare const useNativeEventListener: <E extends Event>(apiRef: GridApiRef, ref: React$1.MutableRefObject<HTMLDivElement | null> | (() => Element | undefined | null), eventName: string, handler?: ((event: E) => any) | undefined, options?: AddEventListenerOptions | undefined) => void;
|
|
3994
|
-
|
|
3995
|
-
declare function useGridLoggerFactory(apiRef: GridApiRef, props: Pick<GridComponentProps, 'logger' | 'logLevel'>): void;
|
|
3996
|
-
declare function useGridLogger(apiRef: GridApiRef, name: string): Logger;
|
|
3997
|
-
|
|
3998
|
-
declare function useGridScrollFn(apiRef: GridApiRef, renderingZoneElementRef: React$1.RefObject<HTMLDivElement>, columnHeadersElementRef: React$1.RefObject<HTMLDivElement>): [GridScrollFn];
|
|
3999
|
-
|
|
4000
|
-
declare const useGridRootProps: () => GridComponentProps;
|
|
4001
|
-
|
|
4002
|
-
interface LocalizationV4 {
|
|
4003
|
-
props: {
|
|
4004
|
-
MuiDataGrid: Pick<GridMergedOptions, 'localeText'>;
|
|
4005
|
-
};
|
|
4006
|
-
}
|
|
4007
|
-
interface LocalizationV5 {
|
|
3982
|
+
interface Localization {
|
|
4008
3983
|
components: {
|
|
4009
3984
|
MuiDataGrid: {
|
|
4010
3985
|
defaultProps: Pick<GridMergedOptions, 'localeText'>;
|
|
4011
3986
|
};
|
|
4012
3987
|
};
|
|
4013
|
-
}
|
|
4014
|
-
declare type Localization = LocalizationV4 | LocalizationV5;
|
|
3988
|
+
}
|
|
4015
3989
|
|
|
4016
3990
|
declare const arSD: Localization;
|
|
4017
3991
|
|
|
@@ -4027,6 +4001,8 @@ declare const enUS: Localization;
|
|
|
4027
4001
|
|
|
4028
4002
|
declare const esES: Localization;
|
|
4029
4003
|
|
|
4004
|
+
declare const faIR: Localization;
|
|
4005
|
+
|
|
4030
4006
|
declare const frFR: Localization;
|
|
4031
4007
|
|
|
4032
4008
|
declare const itIT: Localization;
|
|
@@ -4037,28 +4013,23 @@ declare const koKR: Localization;
|
|
|
4037
4013
|
|
|
4038
4014
|
declare const nlNL: Localization;
|
|
4039
4015
|
|
|
4040
|
-
declare const plPLGrid: Partial<GridLocaleText>;
|
|
4041
4016
|
declare const plPL: Localization;
|
|
4042
4017
|
|
|
4043
4018
|
declare const ptBR: Localization;
|
|
4044
4019
|
|
|
4045
|
-
declare const ruRUGrid: Partial<GridLocaleText>;
|
|
4046
4020
|
declare const ruRU: Localization;
|
|
4047
4021
|
|
|
4048
|
-
declare const skSKGrid: Partial<GridLocaleText>;
|
|
4049
4022
|
declare const skSK: Localization;
|
|
4050
4023
|
|
|
4051
4024
|
declare const trTR: Localization;
|
|
4052
4025
|
|
|
4053
|
-
declare const ukUAGrid: Partial<GridLocaleText>;
|
|
4054
4026
|
declare const ukUA: Localization;
|
|
4055
4027
|
|
|
4056
4028
|
declare const viVN: Localization;
|
|
4057
4029
|
|
|
4058
|
-
declare const zhCNGrid: Partial<GridLocaleText>;
|
|
4059
4030
|
declare const zhCN: Localization;
|
|
4060
4031
|
|
|
4061
|
-
declare const DataGrid: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<Omit<GridInputComponentProps, "apiRef" | "checkboxSelectionVisibleOnly" | "disableColumnResize" | "disableColumnReorder" | "disableMultipleColumnsFiltering" | "disableMultipleColumnsSorting" | "disableMultipleSelection" | "
|
|
4032
|
+
declare const DataGrid: React$1.MemoExoticComponent<React$1.ForwardRefExoticComponent<Omit<GridInputComponentProps, "apiRef" | "checkboxSelectionVisibleOnly" | "disableColumnResize" | "disableColumnReorder" | "disableMultipleColumnsFiltering" | "disableMultipleColumnsSorting" | "disableMultipleSelection" | "throttleRowsMs" | "hideFooterRowCount" | "options" | "onRowsScrollEnd" | "scrollEndThreshold" | "signature"> & {
|
|
4062
4033
|
pagination?: true | undefined;
|
|
4063
4034
|
} & React$1.RefAttributes<HTMLDivElement>>>;
|
|
4064
4035
|
|
|
@@ -4066,10 +4037,10 @@ declare const MAX_PAGE_SIZE = 100;
|
|
|
4066
4037
|
/**
|
|
4067
4038
|
* The grid component react props interface.
|
|
4068
4039
|
*/
|
|
4069
|
-
declare type DataGridProps = Omit<GridInputComponentProps, 'apiRef' | 'checkboxSelectionVisibleOnly' | 'disableColumnResize' | 'disableColumnReorder' | 'disableMultipleColumnsFiltering' | 'disableMultipleColumnsSorting' | 'disableMultipleSelection' | '
|
|
4040
|
+
declare type DataGridProps = Omit<GridInputComponentProps, 'apiRef' | 'checkboxSelectionVisibleOnly' | 'disableColumnResize' | 'disableColumnReorder' | 'disableMultipleColumnsFiltering' | 'disableMultipleColumnsSorting' | 'disableMultipleSelection' | 'throttleRowsMs' | 'hideFooterRowCount' | 'options' | 'onRowsScrollEnd' | 'scrollEndThreshold' | 'signature'> & {
|
|
4070
4041
|
pagination?: true;
|
|
4071
4042
|
};
|
|
4072
4043
|
|
|
4073
4044
|
declare const useDataGridComponent: (apiRef: GridApiRef, props: GridComponentProps) => void;
|
|
4074
4045
|
|
|
4075
|
-
export { AutoSizerProps, AutoSizerSize, CursorCoordinates, DEFAULT_GRID_COL_TYPE_KEY, DataGrid, DataGridProps, ElementSize,
|
|
4046
|
+
export { AutoSizerProps, AutoSizerSize, CursorCoordinates, DEFAULT_GRID_COL_TYPE_KEY, DataGrid, DataGridProps, ElementSize, GRID_ACTIONS_COL_DEF, GRID_BOOLEAN_COL_DEF, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DATETIME_COL_DEF, GRID_DATE_COL_DEF, GRID_DEFAULT_LOCALE_TEXT, GRID_EXPERIMENTAL_ENABLED, GRID_NUMERIC_COL_DEF, GRID_SINGLE_SELECT_COL_DEF, GRID_STRING_COL_DEF, GridActionsCell, GridActionsCellItem, GridActionsCellItemProps, GridActionsColDef, GridAddIcon, GridAlignment, GridApi, GridApiContext, GridApiRef, GridArrowDownwardIcon, GridArrowUpwardIcon, GridAutoSizer, GridBody, GridCallbackDetails, GridCell, GridCellCheckboxForwardRef, GridCellCheckboxRenderer, GridCellClassFn, GridCellClassNamePropType, GridCellEditCommitParams, GridCellIdentifier, GridCellIndexCoordinates, GridCellMode, GridCellModes, GridCellParams, GridCellProps, GridCellValue, GridCheckCircleIcon, GridCheckIcon, GridClassKey, GridClasses, GridClipboardApi, GridCloseIcon, GridColDef, GridColType, GridColTypeDef, GridColumnApi, GridColumnHeaderClassFn, GridColumnHeaderClassNamePropType, GridColumnHeaderIndexCoordinates, GridColumnHeaderItem, GridColumnHeaderMenu, GridColumnHeaderMenuProps, GridColumnHeaderParams, GridColumnHeaderSeparator, GridColumnHeaderSeparatorProps, GridColumnHeaderSortIcon, GridColumnHeaderSortIconProps, GridColumnHeaderTitle, GridColumnHeaderTitleProps, GridColumnHeadersItemCollection, GridColumnHeadersItemCollectionProps, GridColumnIcon, GridColumnIdentifier, GridColumnLookup, GridColumnMenu, GridColumnMenuApi, GridColumnMenuContainer, GridColumnMenuProps, GridColumnMenuState, GridColumnOrderChangeParams, GridColumnReorderState, GridColumnResizeParams, GridColumnResizeState, GridColumnTypesRecord, GridColumnVisibilityChangeParams, GridColumns, GridColumnsContainer, GridColumnsHeader, GridColumnsMenuItem, GridColumnsMeta, GridColumnsPanel, GridColumnsState, GridCommitCellChangeParams, GridComparatorFn, GridComponentProps, GridContainerProps, GridControlStateApi, GridCoreApi, GridCsvExportApi, GridCsvExportOptions, GridDensity, GridDensityApi, GridDensityOption, GridDensityState, GridDensityTypes, GridDisableVirtualizationApi, GridDragIcon, GridEditCellProps, GridEditCellPropsParams, GridEditCellValueParams, GridEditInputCell, GridEditMode, GridEditModes, GridEditRowApi, GridEditRowProps, GridEditRowsModel, GridEditSingleSelectCell, GridEnrichedColDef, GridErrorHandler, GridEvents, GridEventsApi, GridExportFormat, GridFeatureMode, GridFeatureModeConstant, GridFieldComparatorList, GridFilterActiveItemsLookup, GridFilterAltIcon, GridFilterApi, GridFilterForm, GridFilterFormProps, GridFilterInitialState, GridFilterInputValue, GridFilterInputValueProps, GridFilterItem, GridFilterItemProps, GridFilterListIcon, GridFilterMenuItem, GridFilterModel, GridFilterOperator, GridFilterPanel, GridFilterState, GridFocusApi, GridFocusState, GridFooter, GridFooterContainer, GridFooterContainerProps, GridFooterPlaceholder, GridHeader, GridHeaderCheckbox, GridHeaderPlaceholder, GridHeaderSelectionCheckboxParams, GridIconSlotsComponent, GridInitialState, GridInputComponentProps, GridInputSelectionModel, GridLinkOperator, GridLoadIcon, GridLoadingOverlay, GridLocaleText, GridLocaleTextApi, GridMenu, GridMenuIcon, GridMenuProps, GridMoreVertIcon, GridNativeColTypes, GridNoRowsOverlay, GridOverlay, GridOverlayProps, GridOverlays, GridPageApi, GridPageSizeApi, GridPagination, GridPaginationState, GridPanel, GridPanelClasses, GridPanelContent, GridPanelFooter, GridPanelHeader, GridPanelProps, GridPanelWrapper, GridParamsApi, GridPreferencePanelInitialState, GridPreferencePanelState, GridPreferencePanelsValue, GridPreferencesPanel, GridPreferencesPanelApi, GridPrintExportApi, GridPrintExportOptions, GridRenderCellParams, GridRenderColumnsProps, GridRenderContextProps, GridRenderEditCellParams, GridRenderPaginationProps, GridRenderRowProps, GridRenderingState, GridRoot, GridRootContainerRef, GridRootProps, GridRow, GridRowApi, GridRowCount, GridRowData, GridRowEntry, GridRowId, GridRowIdGetter, GridRowMode, GridRowModel, GridRowModelUpdate, GridRowModes, GridRowParams, GridRowProps, GridRowScrollEndParams, GridRowSelectionCheckboxParams, GridRowTreeConfig, GridRowTreeNodeConfig, GridRowsLookup, GridRowsProp, GridRowsState, GridSaveAltIcon, GridScrollApi, GridScrollArea, GridScrollBarState, GridScrollFn, GridScrollParams, GridSearchIcon, GridSelectedRowCount, GridSelectionApi, GridSelectionModel, GridSeparatorIcon, GridSignature, GridSlotsComponent, GridSlotsComponentsProps, GridSortApi, GridSortCellParams, GridSortColumnLookup, GridSortDirection, GridSortItem, GridSortModel, GridSortModelParams, GridSortingInitialState, GridSortingState, GridState, GridStateApi, GridStateChangeParams, GridStateColDef, GridTabIndexState, GridTableRowsIcon, GridToolbar, GridToolbarColumnsButton, GridToolbarContainer, GridToolbarContainerProps, GridToolbarDensitySelector, GridToolbarExport, GridToolbarExportProps, GridToolbarFilterButton, GridToolbarFilterButtonProps, GridTranslationKeys, GridTripleDotsVerticalIcon, GridTypeFilterInputValueProps, GridUpdateAction, GridValueFormatterParams, GridValueGetterParams, GridValueOptionsParams, GridValueSetterParams, GridViewHeadlineIcon, GridViewStreamIcon, GridViewportSizeState, HideGridColMenuItem, Logger, MAX_PAGE_SIZE, MuiEvent, SUBMIT_FILTER_STROKE_TIME, SortGridMenuItems, allGridColumnsFieldsSelector, allGridColumnsSelector, arSD, bgBG, checkGridRowIdIsValid, csCZ, deDE, elGR, enUS, esES, faIR, filterableGridColumnsIdsSelector, filterableGridColumnsSelector, frFR, getDataGridUtilityClass, getDefaultGridFilterModel, getGridBooleanOperators, getGridColDef, getGridDateOperators, getGridDefaultColumnTypes, getGridNumericColumnOperators, getGridSingleSelectOperators, getGridStringOperators, gridClasses, gridColumnLookupSelector, gridColumnMenuSelector, gridColumnReorderDragColSelector, gridColumnReorderSelector, gridColumnResizeSelector, gridColumnsMetaSelector, gridColumnsSelector, gridColumnsTotalWidthSelector, gridDateFormatter, gridDateTimeFormatter, gridDensityHeaderHeightSelector, gridDensityRowHeightSelector, gridDensitySelector, gridDensityValueSelector, gridEditRowsStateSelector, gridFilterActiveItemsLookupSelector, gridFilterActiveItemsSelector, gridFilterModelSelector, gridFilterStateSelector, gridFocusCellSelector, gridFocusColumnHeaderSelector, gridFocusStateSelector, gridPageSelector, gridPageSizeSelector, gridPaginatedVisibleSortedGridRowIdsSelector, gridPaginationSelector, gridPanelClasses, gridPreferencePanelStateSelector, gridRenderingSelector, gridResizingColumnFieldSelector, gridRowCountSelector, gridRowIdsSelector, gridRowsLookupSelector, gridRowsStateSelector, gridScrollSelector, gridSelectionStateSelector, gridSortColumnLookupSelector, gridSortModelSelector, gridSortedRowEntriesSelector, gridSortedRowIdsSelector, gridTabIndexCellSelector, gridTabIndexColumnHeaderSelector, gridTabIndexStateSelector, gridViewportSizeStateSelector, gridVisibleRowCountSelector, gridVisibleRowsLookupSelector, gridVisibleSortedRowEntriesSelector, gridVisibleSortedRowIdsSelector, itIT, jaJP, koKR, nlNL, plPL, ptBR, renderActionsCell, renderEditInputCell, renderEditSingleSelectCell, ruRU, selectedGridRowsCountSelector, selectedGridRowsSelector, selectedIdsLookupSelector, skSK, trTR, ukUA, useDataGridComponent, useGridApi, useGridApiContext, useGridApiEventHandler, useGridApiMethod, useGridApiOptionHandler, useGridApiRef, useGridLogger, useGridNativeEventListener, useGridProcessedProps, useGridRootProps, useGridScrollFn, useGridSelector, useGridState, viVN, visibleGridColumnsLengthSelector, visibleGridColumnsSelector, zhCN };
|