@redsift/table 12.4.0 → 12.5.0-muiv6
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/_internal/BaseComponents.js +1 -1
- package/_internal/BasePopper.js +2449 -0
- package/_internal/BasePopper.js.map +1 -0
- package/_internal/ControlledPagination.js +10538 -0
- package/_internal/ControlledPagination.js.map +1 -0
- package/_internal/DataGrid2.js +149 -90
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +3 -1340
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Pagination.js +1 -1
- package/_internal/Portal.js +4363 -0
- package/_internal/Portal.js.map +1 -0
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +1636 -275
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/Toolbar2.js +6 -23
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +3 -3
- package/_internal/ToolbarWrapper2.js.map +1 -1
- package/_internal/jsx-runtime.js +1342 -0
- package/_internal/jsx-runtime.js.map +1 -0
- package/_internal/useControlledDatagridState.js +211 -13
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +377 -461
- package/index.js +15 -46
- package/index.js.map +1 -1
- package/package.json +10 -9
- package/_internal/BaseIconButton.js +0 -126
- package/_internal/BaseIconButton.js.map +0 -1
- package/_internal/ServerSideControlledPagination.js +0 -281
- package/_internal/ServerSideControlledPagination.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,18 +1,89 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-
|
|
4
|
-
import
|
|
1
|
+
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
|
+
import { GridColumnTypesRecord, GridColDef, GridFilterOperator, GridFilterItem, GridCellParams, GridFilterInputValue, GridFilterInputSingleSelect, GridFilterInputMultipleValue, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumns, GridSlotsComponent, GridApiPro as GridApiPro$1, GridRowParams, GridRowSelectionModel, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
3
|
+
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
4
|
+
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
5
|
+
import React, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
|
|
5
6
|
import { TablePaginationProps } from '@mui/material';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const
|
|
10
|
-
|
|
11
|
-
declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
declare const
|
|
7
|
+
import { Theme, Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
|
|
8
|
+
import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
|
|
9
|
+
|
|
10
|
+
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef;
|
|
11
|
+
|
|
12
|
+
declare const getRsStringColumnType: () => {
|
|
13
|
+
type: string;
|
|
14
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
15
|
+
};
|
|
16
|
+
declare const getRsNumberColumnType: () => {
|
|
17
|
+
type: string;
|
|
18
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
19
|
+
};
|
|
20
|
+
declare const getRsSingleSelectColumnType: () => {
|
|
21
|
+
type: string;
|
|
22
|
+
filterOperators: ({
|
|
23
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
27
|
+
} | {
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
31
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleValue;
|
|
32
|
+
} | {
|
|
33
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
34
|
+
label: string;
|
|
35
|
+
value: string;
|
|
36
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
37
|
+
})[];
|
|
38
|
+
};
|
|
39
|
+
declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
|
|
40
|
+
type: string;
|
|
41
|
+
filterOperators: ({
|
|
42
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
46
|
+
} | {
|
|
47
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
48
|
+
label: string;
|
|
49
|
+
value: string;
|
|
50
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
51
|
+
})[];
|
|
52
|
+
};
|
|
53
|
+
declare const getRsMultipleSelectColumnType: () => {
|
|
54
|
+
type: string;
|
|
55
|
+
filterOperators: ({
|
|
56
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
57
|
+
label: string;
|
|
58
|
+
value: string;
|
|
59
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
60
|
+
} | {
|
|
61
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
65
|
+
} | {
|
|
66
|
+
label: string;
|
|
67
|
+
value: string;
|
|
68
|
+
getApplyFilterFn: (_filterItem: _mui_x_data_grid_pro.GridFilterItem) => (params: _mui_x_data_grid_pro.GridCellParams) => boolean;
|
|
69
|
+
requiresFilterValue: boolean;
|
|
70
|
+
})[];
|
|
71
|
+
};
|
|
72
|
+
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
|
|
73
|
+
type: string;
|
|
74
|
+
filterOperators: ({
|
|
75
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
76
|
+
label: string;
|
|
77
|
+
value: string;
|
|
78
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
79
|
+
} | {
|
|
80
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
84
|
+
})[];
|
|
85
|
+
};
|
|
86
|
+
declare const customColumnTypes: Partial<GridColumnTypesRecord>;
|
|
16
87
|
|
|
17
88
|
type StringOperatorName = 'contains' | 'doesNotContain' | 'equals' | 'doesNotEqual' | 'startsWith' | 'doesNotStartWith' | 'endsWith' | 'doesNotEndWith' | 'isEmpty' | 'isNotEmpty' | 'isAnyOf' | 'isNotAnyOf' | 'containsAnyOf' | 'doesNotContainAnyOf' | 'startsWithAnyOf' | 'doesNotStartWithAnyOf' | 'endsWithAnyOf' | 'doesNotEndWithAnyOf';
|
|
18
89
|
type NumberOperatorName = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'isEmpty' | 'isNotEmpty' | 'isBetween';
|
|
@@ -54,174 +125,242 @@ type ColumnOptions<T extends ColumnType> = T extends 'string' ? StringColumnOpti
|
|
|
54
125
|
*/
|
|
55
126
|
declare function createColumn<T extends ColumnType>(type: T, options?: ColumnOptions<T>): Partial<GridColDef>;
|
|
56
127
|
|
|
57
|
-
declare const ARRAY_IS_EMPTY:
|
|
58
|
-
|
|
128
|
+
declare const ARRAY_IS_EMPTY: {
|
|
129
|
+
label: string;
|
|
130
|
+
value: string;
|
|
131
|
+
getApplyFilterFn: (_filterItem: GridFilterItem) => (params: GridCellParams) => boolean;
|
|
132
|
+
requiresFilterValue: boolean;
|
|
133
|
+
};
|
|
134
|
+
declare const ARRAY_IS_NOT_EMPTY: {
|
|
135
|
+
label: string;
|
|
136
|
+
value: string;
|
|
137
|
+
getApplyFilterFn: (_filterItem: GridFilterItem) => (params: GridCellParams) => boolean;
|
|
138
|
+
requiresFilterValue: boolean;
|
|
139
|
+
};
|
|
59
140
|
|
|
60
|
-
declare const DATE_IS_BETWEEN:
|
|
141
|
+
declare const DATE_IS_BETWEEN: {
|
|
142
|
+
label: string;
|
|
143
|
+
value: string;
|
|
144
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
145
|
+
InputComponent: (props: any) => JSX.Element;
|
|
146
|
+
};
|
|
61
147
|
|
|
62
148
|
declare const getGridDateOperatorsExtended: (showTime?: boolean) => GridFilterOperator[];
|
|
63
149
|
|
|
64
|
-
declare const IS_BETWEEN:
|
|
150
|
+
declare const IS_BETWEEN: {
|
|
151
|
+
label: string;
|
|
152
|
+
value: string;
|
|
153
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
154
|
+
InputComponent: (props: any) => JSX.Element;
|
|
155
|
+
};
|
|
65
156
|
|
|
66
|
-
declare const getGridNumericOperators: () => GridFilterOperator<any,
|
|
157
|
+
declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
67
158
|
|
|
68
|
-
declare const DOES_NOT_CONTAIN:
|
|
159
|
+
declare const DOES_NOT_CONTAIN: {
|
|
160
|
+
label: string;
|
|
161
|
+
value: string;
|
|
162
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
163
|
+
InputComponent: typeof GridFilterInputValue;
|
|
164
|
+
};
|
|
69
165
|
|
|
70
|
-
declare const DOES_NOT_END_WITH:
|
|
166
|
+
declare const DOES_NOT_END_WITH: {
|
|
167
|
+
label: string;
|
|
168
|
+
value: string;
|
|
169
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
170
|
+
InputComponent: typeof GridFilterInputValue;
|
|
171
|
+
};
|
|
71
172
|
|
|
72
|
-
declare const DOES_NOT_EQUAL:
|
|
173
|
+
declare const DOES_NOT_EQUAL: {
|
|
174
|
+
label: string;
|
|
175
|
+
value: string;
|
|
176
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
177
|
+
InputComponent: typeof GridFilterInputValue;
|
|
178
|
+
};
|
|
73
179
|
|
|
74
|
-
declare const DOES_NOT_HAVE:
|
|
180
|
+
declare const DOES_NOT_HAVE: {
|
|
181
|
+
label: string;
|
|
182
|
+
value: string;
|
|
183
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
184
|
+
InputComponent: typeof GridFilterInputValue;
|
|
185
|
+
};
|
|
75
186
|
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
76
187
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
77
|
-
label
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
81
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
82
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
83
|
-
requiresFilterValue?: boolean;
|
|
188
|
+
label: string;
|
|
189
|
+
value: string;
|
|
190
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
84
191
|
};
|
|
85
192
|
|
|
86
|
-
declare const DOES_NOT_START_WITH:
|
|
193
|
+
declare const DOES_NOT_START_WITH: {
|
|
194
|
+
label: string;
|
|
195
|
+
value: string;
|
|
196
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
197
|
+
InputComponent: typeof GridFilterInputValue;
|
|
198
|
+
};
|
|
87
199
|
|
|
88
|
-
declare const HAS:
|
|
200
|
+
declare const HAS: {
|
|
201
|
+
label: string;
|
|
202
|
+
value: string;
|
|
203
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
204
|
+
InputComponent: typeof GridFilterInputValue;
|
|
205
|
+
};
|
|
89
206
|
declare const HAS_WITH_SELECT: {
|
|
90
207
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
91
|
-
label
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
95
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
96
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
97
|
-
requiresFilterValue?: boolean;
|
|
208
|
+
label: string;
|
|
209
|
+
value: string;
|
|
210
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
98
211
|
};
|
|
99
212
|
|
|
100
|
-
declare const HAS_ONLY:
|
|
213
|
+
declare const HAS_ONLY: {
|
|
214
|
+
label: string;
|
|
215
|
+
value: string;
|
|
216
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
217
|
+
InputComponent: typeof GridFilterInputValue;
|
|
218
|
+
};
|
|
101
219
|
declare const HAS_ONLY_WITH_SELECT: {
|
|
102
220
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
103
|
-
label
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
107
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
108
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
109
|
-
requiresFilterValue?: boolean;
|
|
221
|
+
label: string;
|
|
222
|
+
value: string;
|
|
223
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
110
224
|
};
|
|
111
225
|
|
|
112
|
-
declare const IS:
|
|
226
|
+
declare const IS: {
|
|
227
|
+
label: string;
|
|
228
|
+
value: string;
|
|
229
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
230
|
+
InputComponent: typeof GridFilterInputValue;
|
|
231
|
+
};
|
|
113
232
|
declare const IS_WITH_SELECT: {
|
|
114
233
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
115
|
-
label
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
119
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
120
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
121
|
-
requiresFilterValue?: boolean;
|
|
234
|
+
label: string;
|
|
235
|
+
value: string;
|
|
236
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
122
237
|
};
|
|
123
238
|
|
|
124
|
-
declare const IS_NOT:
|
|
239
|
+
declare const IS_NOT: {
|
|
240
|
+
label: string;
|
|
241
|
+
value: string;
|
|
242
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
243
|
+
InputComponent: typeof GridFilterInputValue;
|
|
244
|
+
};
|
|
125
245
|
declare const IS_NOT_WITH_SELECT: {
|
|
126
246
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
127
|
-
label
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
131
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
132
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
133
|
-
requiresFilterValue?: boolean;
|
|
247
|
+
label: string;
|
|
248
|
+
value: string;
|
|
249
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
134
250
|
};
|
|
135
251
|
|
|
136
|
-
declare const getGridStringOperators: () => GridFilterOperator<any,
|
|
252
|
+
declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
137
253
|
|
|
138
|
-
declare const CONTAINS_ANY_OF:
|
|
254
|
+
declare const CONTAINS_ANY_OF: {
|
|
255
|
+
label: string;
|
|
256
|
+
value: string;
|
|
257
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
258
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
259
|
+
};
|
|
139
260
|
|
|
140
|
-
declare const DOES_NOT_CONTAIN_ANY_OF:
|
|
261
|
+
declare const DOES_NOT_CONTAIN_ANY_OF: {
|
|
262
|
+
label: string;
|
|
263
|
+
value: string;
|
|
264
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
265
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
266
|
+
};
|
|
141
267
|
|
|
142
|
-
declare const DOES_NOT_END_WITH_ANY_OF:
|
|
268
|
+
declare const DOES_NOT_END_WITH_ANY_OF: {
|
|
269
|
+
label: string;
|
|
270
|
+
value: string;
|
|
271
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
272
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
273
|
+
};
|
|
143
274
|
|
|
144
|
-
declare const DOES_NOT_HAVE_ANY_OF:
|
|
275
|
+
declare const DOES_NOT_HAVE_ANY_OF: {
|
|
276
|
+
label: string;
|
|
277
|
+
value: string;
|
|
278
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
279
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
280
|
+
};
|
|
145
281
|
declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: {
|
|
146
282
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
147
|
-
label
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
151
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
152
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
153
|
-
requiresFilterValue?: boolean;
|
|
283
|
+
label: string;
|
|
284
|
+
value: string;
|
|
285
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
154
286
|
};
|
|
155
287
|
|
|
156
|
-
declare const DOES_NOT_START_WITH_ANY_OF:
|
|
288
|
+
declare const DOES_NOT_START_WITH_ANY_OF: {
|
|
289
|
+
label: string;
|
|
290
|
+
value: string;
|
|
291
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
292
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
293
|
+
};
|
|
157
294
|
|
|
158
|
-
declare const ENDS_WITH_ANY_OF:
|
|
295
|
+
declare const ENDS_WITH_ANY_OF: {
|
|
296
|
+
label: string;
|
|
297
|
+
value: string;
|
|
298
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
299
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
300
|
+
};
|
|
159
301
|
|
|
160
|
-
declare const HAS_ALL_OF:
|
|
302
|
+
declare const HAS_ALL_OF: {
|
|
303
|
+
label: string;
|
|
304
|
+
value: string;
|
|
305
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
306
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
307
|
+
};
|
|
161
308
|
declare const HAS_ALL_OF_WITH_SELECT: {
|
|
162
309
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
163
|
-
label
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
167
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
168
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
169
|
-
requiresFilterValue?: boolean;
|
|
310
|
+
label: string;
|
|
311
|
+
value: string;
|
|
312
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
170
313
|
};
|
|
171
314
|
|
|
172
|
-
declare const HAS_ANY_OF:
|
|
315
|
+
declare const HAS_ANY_OF: {
|
|
316
|
+
label: string;
|
|
317
|
+
value: string;
|
|
318
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
319
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
320
|
+
};
|
|
173
321
|
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
174
322
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
175
|
-
label
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
179
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
180
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
181
|
-
requiresFilterValue?: boolean;
|
|
323
|
+
label: string;
|
|
324
|
+
value: string;
|
|
325
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
182
326
|
};
|
|
183
327
|
|
|
184
|
-
declare const IS_ANY_OF:
|
|
328
|
+
declare const IS_ANY_OF: {
|
|
329
|
+
label: string;
|
|
330
|
+
value: string;
|
|
331
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
332
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
333
|
+
};
|
|
185
334
|
declare const IS_ANY_OF_WITH_SELECT: {
|
|
186
335
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
187
|
-
label
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
191
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
192
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
193
|
-
requiresFilterValue?: boolean;
|
|
336
|
+
label: string;
|
|
337
|
+
value: string;
|
|
338
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
194
339
|
};
|
|
195
340
|
|
|
196
|
-
declare const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
202
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
203
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
204
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
205
|
-
requiresFilterValue?: boolean;
|
|
341
|
+
declare const IS_NOT_ANY_OF: {
|
|
342
|
+
label: string;
|
|
343
|
+
value: string;
|
|
344
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
345
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
206
346
|
};
|
|
207
|
-
|
|
208
|
-
declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
209
347
|
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
210
348
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
211
|
-
label
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
215
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
216
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
217
|
-
requiresFilterValue?: boolean;
|
|
349
|
+
label: string;
|
|
350
|
+
value: string;
|
|
351
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
218
352
|
};
|
|
219
353
|
|
|
220
|
-
declare const STARTS_WITH_ANY_OF:
|
|
354
|
+
declare const STARTS_WITH_ANY_OF: {
|
|
355
|
+
label: string;
|
|
356
|
+
value: string;
|
|
357
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
358
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
359
|
+
};
|
|
221
360
|
|
|
222
|
-
declare const getGridStringArrayOperators: () => GridFilterOperator<any,
|
|
223
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any,
|
|
224
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any,
|
|
361
|
+
declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
362
|
+
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
|
|
363
|
+
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
|
|
225
364
|
|
|
226
365
|
/**
|
|
227
366
|
* Wraps a filter operator's `getApplyFilterFn` to lowercase both the cell value
|
|
@@ -236,93 +375,69 @@ declare const wrapCaseInsensitive: (operator: GridFilterOperator) => GridFilterO
|
|
|
236
375
|
declare const makeCaseInsensitive: (operators: GridFilterOperator[]) => GridFilterOperator[];
|
|
237
376
|
|
|
238
377
|
declare const operatorList: {
|
|
239
|
-
string:
|
|
240
|
-
number:
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
headerLabel?: string;
|
|
253
|
-
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
254
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
255
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
256
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
257
|
-
requiresFilterValue?: boolean;
|
|
378
|
+
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
379
|
+
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
380
|
+
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
381
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
382
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
383
|
+
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
384
|
+
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
385
|
+
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
386
|
+
rsSingleSelect: ({
|
|
387
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
388
|
+
label: string;
|
|
389
|
+
value: string;
|
|
390
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
258
391
|
} | {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
392
|
+
label: string;
|
|
393
|
+
value: string;
|
|
394
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
395
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleValue;
|
|
396
|
+
} | {
|
|
397
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
398
|
+
label: string;
|
|
399
|
+
value: string;
|
|
400
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
267
401
|
})[];
|
|
268
402
|
rsSingleSelectWithShortOperatorList: ({
|
|
269
|
-
InputComponent: typeof
|
|
270
|
-
label
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
274
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
275
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
276
|
-
requiresFilterValue?: boolean;
|
|
403
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
404
|
+
label: string;
|
|
405
|
+
value: string;
|
|
406
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
277
407
|
} | {
|
|
278
|
-
InputComponent: typeof
|
|
279
|
-
label
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
283
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
284
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
285
|
-
requiresFilterValue?: boolean;
|
|
408
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
409
|
+
label: string;
|
|
410
|
+
value: string;
|
|
411
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
286
412
|
})[];
|
|
287
|
-
rsMultipleSelect: (
|
|
288
|
-
InputComponent: typeof
|
|
289
|
-
label
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
413
|
+
rsMultipleSelect: ({
|
|
414
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
415
|
+
label: string;
|
|
416
|
+
value: string;
|
|
417
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
418
|
+
} | {
|
|
419
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
420
|
+
label: string;
|
|
421
|
+
value: string;
|
|
422
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
296
423
|
} | {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
302
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
303
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
304
|
-
requiresFilterValue?: boolean;
|
|
424
|
+
label: string;
|
|
425
|
+
value: string;
|
|
426
|
+
getApplyFilterFn: (_filterItem: _mui_x_data_grid_pro.GridFilterItem) => (params: _mui_x_data_grid_pro.GridCellParams) => boolean;
|
|
427
|
+
requiresFilterValue: boolean;
|
|
305
428
|
})[];
|
|
306
429
|
rsMultipleSelectWithShortOperatorList: ({
|
|
307
|
-
InputComponent: typeof
|
|
308
|
-
label
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
312
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
313
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
314
|
-
requiresFilterValue?: boolean;
|
|
430
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
431
|
+
label: string;
|
|
432
|
+
value: string;
|
|
433
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
315
434
|
} | {
|
|
316
|
-
InputComponent: typeof
|
|
317
|
-
label
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
321
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
322
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
323
|
-
requiresFilterValue?: boolean;
|
|
435
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
436
|
+
label: string;
|
|
437
|
+
value: string;
|
|
438
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
324
439
|
})[];
|
|
325
|
-
rsStringArray:
|
|
440
|
+
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
326
441
|
};
|
|
327
442
|
|
|
328
443
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
@@ -334,238 +449,17 @@ declare const VISIBILITY_MODEL_KEY = "visibilityModel";
|
|
|
334
449
|
declare const PINNED_COLUMNS = "pinnedColumns";
|
|
335
450
|
declare const DIMENSION_MODEL_KEY = "dimension";
|
|
336
451
|
declare const FILTER_SEARCH_KEY = "searchModel";
|
|
337
|
-
declare const
|
|
452
|
+
declare const DENSITY_MODEL_KEY = "densityModel";
|
|
453
|
+
declare const CATEGORIES: readonly ["paginationModel", "filterModel", "sortModel", "visibilityModel", "dimension", "searchModel", "pinnedColumns", "densityModel"];
|
|
338
454
|
type Category = (typeof CATEGORIES)[number];
|
|
339
455
|
declare const buildStorageKey: ({ id, version, category }: {
|
|
340
456
|
id: string;
|
|
341
457
|
version: number;
|
|
342
458
|
category: Category;
|
|
343
|
-
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
|
|
459
|
+
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel` | `${string}:${number}:densityModel`;
|
|
344
460
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
345
461
|
|
|
346
|
-
|
|
347
|
-
* Type for legacy array-based row selection (v7 and earlier)
|
|
348
|
-
*/
|
|
349
|
-
type LegacyRowSelectionModel = GridRowId[];
|
|
350
|
-
/**
|
|
351
|
-
* Type that accepts both legacy array format and new v8 object format
|
|
352
|
-
*/
|
|
353
|
-
type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
|
|
354
|
-
/**
|
|
355
|
-
* Default empty row selection model for MUI DataGrid v8+
|
|
356
|
-
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
357
|
-
*/
|
|
358
|
-
declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
359
|
-
/**
|
|
360
|
-
* Creates a new row selection model with the given ids
|
|
361
|
-
*/
|
|
362
|
-
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
363
|
-
/**
|
|
364
|
-
* Normalizes a row selection model input to the v8 GridRowSelectionModel format.
|
|
365
|
-
* Accepts both legacy array format (v7) and new object format (v8).
|
|
366
|
-
* This allows consumers to continue using arrays while internally using the v8 format.
|
|
367
|
-
*/
|
|
368
|
-
declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
|
|
369
|
-
/**
|
|
370
|
-
* Gets the size/count of selected rows from a selection model
|
|
371
|
-
*/
|
|
372
|
-
declare const getSelectionCount: (model: GridRowSelectionModel) => number;
|
|
373
|
-
/**
|
|
374
|
-
* Checks if a row is selected in the given selection model
|
|
375
|
-
*/
|
|
376
|
-
declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
|
|
377
|
-
/**
|
|
378
|
-
* Converts a selection model to an array of selected row IDs
|
|
379
|
-
* Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
|
|
380
|
-
* not the actual selected rows (which would require knowing all row ids)
|
|
381
|
-
*/
|
|
382
|
-
declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
|
|
383
|
-
|
|
384
|
-
/** Component Type. */
|
|
385
|
-
type Comp<P, T = HTMLElement> = {
|
|
386
|
-
(props: P & {
|
|
387
|
-
ref?: Ref<T>;
|
|
388
|
-
}): ReactElement | null;
|
|
389
|
-
/** React component type. */
|
|
390
|
-
readonly $$typeof?: symbol;
|
|
391
|
-
/** Component name. */
|
|
392
|
-
displayName?: string;
|
|
393
|
-
/** Component base class name. */
|
|
394
|
-
className?: string;
|
|
395
|
-
};
|
|
396
|
-
/** Get types of the values of a record. */
|
|
397
|
-
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Color palette.
|
|
401
|
-
*/
|
|
402
|
-
declare const Theme: {
|
|
403
|
-
readonly light: "light";
|
|
404
|
-
readonly dark: "dark";
|
|
405
|
-
};
|
|
406
|
-
type Theme = ValueOf<typeof Theme>;
|
|
407
|
-
declare const NotificationsColorPalette: {
|
|
408
|
-
readonly question: "question";
|
|
409
|
-
readonly 'no-data': "no-data";
|
|
410
|
-
readonly success: "success";
|
|
411
|
-
readonly warning: "warning";
|
|
412
|
-
readonly info: "info";
|
|
413
|
-
readonly primary: "primary";
|
|
414
|
-
readonly secondary: "secondary";
|
|
415
|
-
readonly error: "error";
|
|
416
|
-
};
|
|
417
|
-
type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
|
|
418
|
-
declare const ProductColorPalette: {
|
|
419
|
-
readonly asm: "asm";
|
|
420
|
-
readonly 'brand-trust': "brand-trust";
|
|
421
|
-
readonly certificates: "certificates";
|
|
422
|
-
readonly ondmarc: "ondmarc";
|
|
423
|
-
readonly pulse: "pulse";
|
|
424
|
-
readonly radar: "radar";
|
|
425
|
-
readonly 'rojo-ds': "rojo-ds";
|
|
426
|
-
readonly 'vendor-secure': "vendor-secure";
|
|
427
|
-
readonly website: "website";
|
|
428
|
-
};
|
|
429
|
-
type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
|
|
430
|
-
|
|
431
|
-
declare const AlignSelf: {
|
|
432
|
-
readonly auto: "auto";
|
|
433
|
-
readonly normal: "normal";
|
|
434
|
-
readonly start: "start";
|
|
435
|
-
readonly end: "end";
|
|
436
|
-
readonly center: "center";
|
|
437
|
-
readonly 'flex-start': "flex-start";
|
|
438
|
-
readonly 'flex-end': "flex-end";
|
|
439
|
-
readonly 'self-start': "self-start";
|
|
440
|
-
readonly 'self-end': "self-end";
|
|
441
|
-
readonly baseline: "baseline";
|
|
442
|
-
readonly stretch: "stretch";
|
|
443
|
-
};
|
|
444
|
-
type AlignSelf = ValueOf<typeof AlignSelf>;
|
|
445
|
-
interface LayoutProps {
|
|
446
|
-
/** When used in a flex layout, specifies how the element will grow or shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex">MDN</a>. */
|
|
447
|
-
flex?: string;
|
|
448
|
-
/** When used in a flex layout, specifies how the element will grow to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow">MDN</a>. */
|
|
449
|
-
flexGrow?: number;
|
|
450
|
-
/** When used in a flex layout, specifies how the element will shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink">MDN</a>. */
|
|
451
|
-
flexShrink?: number;
|
|
452
|
-
/** When used in a flex layout, specifies the initial main size of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex_basis">MDN</a>. */
|
|
453
|
-
flexBasis?: string;
|
|
454
|
-
/** Overrides the alignItems property of a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-self">MDN</a>. */
|
|
455
|
-
alignSelf?: AlignSelf;
|
|
456
|
-
/** Specifies how the element is justified inside a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self">MDN</a>. */
|
|
457
|
-
justifySelf?: string;
|
|
458
|
-
/** The layout order for the element within a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/order">MDN</a>. */
|
|
459
|
-
order?: number;
|
|
460
|
-
/** When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area">MDN</a>. */
|
|
461
|
-
gridArea?: string;
|
|
462
|
-
/** When used in a grid layout, specifies the column the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column">MDN</a>. */
|
|
463
|
-
gridColumn?: string;
|
|
464
|
-
/** When used in a grid layout, specifies the row the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row">MDN</a>. */
|
|
465
|
-
gridRow?: string;
|
|
466
|
-
/** When used in a grid layout, specifies the starting column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start">MDN</a>. */
|
|
467
|
-
gridColumnStart?: string;
|
|
468
|
-
/** When used in a grid layout, specifies the ending column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end">MDN</a>. */
|
|
469
|
-
gridColumnEnd?: string;
|
|
470
|
-
/** When used in a grid layout, specifies the starting row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start">MDN</a>. */
|
|
471
|
-
gridRowStart?: string;
|
|
472
|
-
/** When used in a grid layout, specifies the ending row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end">MDN</a>. */
|
|
473
|
-
gridRowEnd?: string;
|
|
474
|
-
}
|
|
475
|
-
interface SpacingProps {
|
|
476
|
-
/** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
|
|
477
|
-
margin?: string;
|
|
478
|
-
/** The margin for the bottom side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom">MDN</a>. */
|
|
479
|
-
marginBottom?: string;
|
|
480
|
-
/** The margin for the left side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left">MDN</a>. */
|
|
481
|
-
marginLeft?: string;
|
|
482
|
-
/** The margin for the right side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right">MDN</a>. */
|
|
483
|
-
marginRight?: string;
|
|
484
|
-
/** The margin for the top side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top">MDN</a>. */
|
|
485
|
-
marginTop?: string;
|
|
486
|
-
}
|
|
487
|
-
interface PositioningProps {
|
|
488
|
-
/** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
|
|
489
|
-
position?: string;
|
|
490
|
-
/** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
|
|
491
|
-
top?: string;
|
|
492
|
-
/** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
|
|
493
|
-
bottom?: string;
|
|
494
|
-
/** The left position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/left">MDN</a>. Consider using start instead for RTL support. */
|
|
495
|
-
left?: string;
|
|
496
|
-
/** The right position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/right">MDN</a>. Consider using start instead for RTL support. */
|
|
497
|
-
right?: string;
|
|
498
|
-
/** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
|
|
499
|
-
zIndex?: string;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Component size.
|
|
504
|
-
*/
|
|
505
|
-
declare const IconSize: {
|
|
506
|
-
readonly xsmall: "xsmall";
|
|
507
|
-
readonly small: "small";
|
|
508
|
-
readonly medium: "medium";
|
|
509
|
-
readonly large: "large";
|
|
510
|
-
readonly xlarge: "xlarge";
|
|
511
|
-
readonly xxlarge: "xxlarge";
|
|
512
|
-
};
|
|
513
|
-
type IconSize = ValueOf<typeof IconSize>;
|
|
514
|
-
type IconDimensions = {
|
|
515
|
-
width?: number;
|
|
516
|
-
height?: number;
|
|
517
|
-
fontSize?: number;
|
|
518
|
-
lineHeight?: number;
|
|
519
|
-
};
|
|
520
|
-
/**
|
|
521
|
-
* Component props.
|
|
522
|
-
*/
|
|
523
|
-
interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
|
|
524
|
-
/** Indicates whether the element is exposed to an accessibility API. */
|
|
525
|
-
'aria-hidden'?: boolean | 'false' | 'true';
|
|
526
|
-
/** A screen reader only label for the Icon. */
|
|
527
|
-
'aria-label'?: string;
|
|
528
|
-
/** Color variant. Either from color palette or hex or rgb strings. */
|
|
529
|
-
color?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
530
|
-
/** Whether the icon has a badge attached to it. */
|
|
531
|
-
badge?: ReactElement;
|
|
532
|
-
/**
|
|
533
|
-
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
534
|
-
* Can also be a ReactElement.
|
|
535
|
-
*/
|
|
536
|
-
icon: string | string[] | ReactElement;
|
|
537
|
-
/**
|
|
538
|
-
* Icon size.
|
|
539
|
-
* @default 'medium'
|
|
540
|
-
*/
|
|
541
|
-
size?: IconSize | IconDimensions;
|
|
542
|
-
/** Additional properties to forward to the SVG tag. */
|
|
543
|
-
svgProps?: ComponentProps<'svg'>;
|
|
544
|
-
/** Theme. */
|
|
545
|
-
theme?: Theme;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Component variant.
|
|
550
|
-
*/
|
|
551
|
-
declare const ShieldVariant: {
|
|
552
|
-
readonly success: "success";
|
|
553
|
-
readonly successLocked: "successLocked";
|
|
554
|
-
readonly successUnlocked: "successUnlocked";
|
|
555
|
-
readonly fail: "fail";
|
|
556
|
-
readonly failLocked: "failLocked";
|
|
557
|
-
readonly failUnlocked: "failUnlocked";
|
|
558
|
-
readonly warning: "warning";
|
|
559
|
-
readonly warningLocked: "warningLocked";
|
|
560
|
-
readonly warningUnlocked: "warningUnlocked";
|
|
561
|
-
readonly ignored: "ignored";
|
|
562
|
-
readonly noData: "noData";
|
|
563
|
-
readonly question: "question";
|
|
564
|
-
readonly email: "email";
|
|
565
|
-
};
|
|
566
|
-
type ShieldVariant = ValueOf<typeof ShieldVariant>;
|
|
567
|
-
|
|
568
|
-
interface DataGridProps extends Partial<Pick<DataGridPremiumProps, 'rows'>>, Omit<DataGridPremiumProps, 'rows'> {
|
|
462
|
+
interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
|
|
569
463
|
/** License key for MUI Datagrid Pro. */
|
|
570
464
|
license?: string;
|
|
571
465
|
/**
|
|
@@ -795,7 +689,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
|
|
|
795
689
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
796
690
|
/** SORT */
|
|
797
691
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps["columns"]) => GridSortModel | "invalid";
|
|
798
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
692
|
+
declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
|
|
799
693
|
/** PAGINATION */
|
|
800
694
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | "invalid";
|
|
801
695
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
@@ -803,19 +697,24 @@ declare const getSearchParamsFromPagination: (pagination: ExtendedGridPagination
|
|
|
803
697
|
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps["columns"]) => GridColumnVisibilityModel | "invalid";
|
|
804
698
|
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps["columns"]) => URLSearchParams;
|
|
805
699
|
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps["columns"]) => PinnedColumns | "invalid";
|
|
806
|
-
declare const getSearchParamsFromPinnedColumns: (pinnedColumns:
|
|
700
|
+
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
|
|
807
701
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
702
|
+
/** DENSITY */
|
|
703
|
+
type GridDensityValue = 'compact' | 'standard' | 'comfortable';
|
|
704
|
+
declare const getDensityFromString: (searchString: string) => GridDensityValue | "invalid";
|
|
705
|
+
declare const getSearchParamsFromDensity: (density: GridDensityValue) => URLSearchParams;
|
|
808
706
|
type FinalSearchInput = {
|
|
809
707
|
localStorageVersion: number;
|
|
810
708
|
filterModel: GridFilterModel;
|
|
811
709
|
sortModel: GridSortModel;
|
|
812
710
|
paginationModel: ExtendedGridPaginationModel;
|
|
813
711
|
columnsVisibilityModel: GridColumnVisibilityModel;
|
|
814
|
-
pinnedColumnsModel:
|
|
712
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
713
|
+
density: GridDensityValue;
|
|
815
714
|
search: string;
|
|
816
715
|
columns: DataGridProps['columns'];
|
|
817
716
|
};
|
|
818
|
-
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, columns, }: FinalSearchInput) => URLSearchParams;
|
|
717
|
+
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, density, columns, }: FinalSearchInput) => URLSearchParams;
|
|
819
718
|
type PinnedColumns = {
|
|
820
719
|
left: string[];
|
|
821
720
|
right: string[];
|
|
@@ -831,6 +730,8 @@ type ModelsLocalStorage = {
|
|
|
831
730
|
setLocalStorageColumnsVisibility: (search: string) => void;
|
|
832
731
|
localStoragePinnedColumns: string;
|
|
833
732
|
setLocalStoragePinnedColumns: (search: string) => void;
|
|
733
|
+
localStorageDensity: string;
|
|
734
|
+
setLocalStorageDensity: (density: string) => void;
|
|
834
735
|
};
|
|
835
736
|
type ModelsTable = {
|
|
836
737
|
filterModel: GridFilterModel;
|
|
@@ -838,31 +739,33 @@ type ModelsTable = {
|
|
|
838
739
|
paginationModel: ExtendedGridPaginationModel;
|
|
839
740
|
columnVisibilityModel: GridColumnVisibilityModel;
|
|
840
741
|
pinnedColumnsModel: PinnedColumns;
|
|
742
|
+
density: GridDensityValue;
|
|
841
743
|
/** The display-format search string the URL should have. Null if no update needed. */
|
|
842
744
|
pendingSearch: string | null;
|
|
843
745
|
};
|
|
844
746
|
/** Return the state of the table given the URL and the local storage state */
|
|
845
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState:
|
|
747
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
846
748
|
type DataGridModel = {
|
|
847
749
|
filterModel: GridFilterModel;
|
|
848
750
|
sortModel: GridSortModel;
|
|
849
751
|
paginationModel: ExtendedGridPaginationModel;
|
|
850
752
|
columnsModel: GridColumnVisibilityModel;
|
|
851
|
-
pinnedColumnsModel:
|
|
753
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
754
|
+
density: GridDensityValue;
|
|
852
755
|
};
|
|
853
|
-
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
756
|
+
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel, density, }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
854
757
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
855
758
|
|
|
856
|
-
declare const BaseButton: React
|
|
759
|
+
declare const BaseButton: React.JSXElementConstructor<any>;
|
|
857
760
|
|
|
858
|
-
declare const BaseCheckbox: React
|
|
761
|
+
declare const BaseCheckbox: React.JSXElementConstructor<any>;
|
|
859
762
|
|
|
860
763
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
861
|
-
declare const BaseIcon: React
|
|
764
|
+
declare const BaseIcon: React.JSXElementConstructor<any>;
|
|
862
765
|
|
|
863
|
-
declare const
|
|
766
|
+
declare const BasePopper: React.JSXElementConstructor<any>;
|
|
864
767
|
|
|
865
|
-
declare const BaseTextField: React
|
|
768
|
+
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
866
769
|
|
|
867
770
|
interface CompletionResponseItem {
|
|
868
771
|
field: string;
|
|
@@ -882,21 +785,16 @@ interface LocaleText {
|
|
|
882
785
|
powerTooltipContent?: string;
|
|
883
786
|
errorText?: string;
|
|
884
787
|
}
|
|
885
|
-
interface FilterConfigColumn {
|
|
886
|
-
field: string;
|
|
887
|
-
type?: string;
|
|
888
|
-
description?: string;
|
|
889
|
-
}
|
|
890
788
|
interface FilterConfig {
|
|
891
|
-
columns:
|
|
892
|
-
typeOperators:
|
|
789
|
+
columns: object[];
|
|
790
|
+
typeOperators: object;
|
|
893
791
|
notes: string;
|
|
894
792
|
openaiApiKey?: string;
|
|
895
793
|
completionFunc?: (nlpFilterConfig: FilterConfig, prompt: string, model: string) => Promise<CompletionResponse>;
|
|
896
794
|
}
|
|
897
795
|
interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
|
|
898
796
|
nlpFilterConfig: FilterConfig;
|
|
899
|
-
onFilterModelChange
|
|
797
|
+
onFilterModelChange: (filterModel: GridFilterModel) => void;
|
|
900
798
|
dateFormat?: string;
|
|
901
799
|
defaultModel?: string;
|
|
902
800
|
defaultFilter?: CompletionResponse;
|
|
@@ -920,14 +818,14 @@ type ControlledPaginationProps = {
|
|
|
920
818
|
displayRowsPerPage?: boolean;
|
|
921
819
|
displayPagination?: boolean;
|
|
922
820
|
selectionStatus: SelectionStatus;
|
|
923
|
-
apiRef: MutableRefObject<
|
|
821
|
+
apiRef: MutableRefObject<GridApiPro>;
|
|
924
822
|
paginationModel: GridPaginationModel;
|
|
925
|
-
onPaginationModelChange: (model: GridPaginationModel
|
|
823
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
926
824
|
pageSizeOptions?: number[];
|
|
927
825
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
928
826
|
paginationProps?: DataGridProps['paginationProps'];
|
|
929
827
|
};
|
|
930
|
-
declare const ControlledPagination: React
|
|
828
|
+
declare const ControlledPagination: React.FC<ControlledPaginationProps>;
|
|
931
829
|
|
|
932
830
|
type ServerSideControlledPaginationProps = {
|
|
933
831
|
displaySelection?: boolean;
|
|
@@ -935,14 +833,32 @@ type ServerSideControlledPaginationProps = {
|
|
|
935
833
|
displayPagination?: boolean;
|
|
936
834
|
selectionStatus: SelectionStatus;
|
|
937
835
|
paginationModel: GridPaginationModel;
|
|
938
|
-
onPaginationModelChange: (model: GridPaginationModel
|
|
836
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
939
837
|
pageSizeOptions?: number[];
|
|
940
838
|
paginationProps?: DataGridProps['paginationProps'];
|
|
941
839
|
rowCount: number;
|
|
942
840
|
loading?: boolean;
|
|
943
841
|
};
|
|
944
|
-
|
|
945
|
-
|
|
842
|
+
/**
|
|
843
|
+
* Get the IDs of all selectable rows currently loaded in the grid (i.e. the current page for server-side).
|
|
844
|
+
*/
|
|
845
|
+
declare const getSelectableRowIdsInPage: (apiRef: React.MutableRefObject<GridApiPro$1>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowSelectionModel;
|
|
846
|
+
/**
|
|
847
|
+
* Intercept MUI's `onRowSelectionModelChange` for server-side pagination to fix the
|
|
848
|
+
* header checkbox behavior when cross-page selections exist.
|
|
849
|
+
*
|
|
850
|
+
* Problem: With `checkboxSelectionVisibleOnly=false` and `keepNonExistentRowsSelected`,
|
|
851
|
+
* the header checkbox shows "indeterminate" when rows from other pages are selected but
|
|
852
|
+
* none on the current page. Clicking it makes MUI deselect everything (treating it as a
|
|
853
|
+
* global toggle-off), but the user's intent is to select the current page.
|
|
854
|
+
*
|
|
855
|
+
* Fix: When MUI empties the selection model and the previous status was 'other' (cross-page
|
|
856
|
+
* selections with 0 selected on current page), we merge all current page rows with the
|
|
857
|
+
* existing cross-page selections instead.
|
|
858
|
+
*/
|
|
859
|
+
declare const fixServerSideHeaderCheckboxSelection: (newSelectionModel: GridRowSelectionModel, previousSelectionModel: GridRowSelectionModel, selectionStatus: React.MutableRefObject<SelectionStatus>, apiRef: React.MutableRefObject<GridApiPro$1>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowSelectionModel;
|
|
860
|
+
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React.MutableRefObject<GridApiPro$1>, selectionStatus: React.MutableRefObject<SelectionStatus>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
861
|
+
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
946
862
|
|
|
947
863
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
948
864
|
/** Including Badge Component. */
|
|
@@ -970,16 +886,16 @@ interface TextCellProps extends ComponentProps<'div'> {
|
|
|
970
886
|
*/
|
|
971
887
|
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
972
888
|
|
|
973
|
-
type
|
|
974
|
-
type
|
|
889
|
+
type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
|
|
890
|
+
type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
|
|
975
891
|
type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
|
|
976
892
|
interface ToolbarProps {
|
|
977
893
|
/** Props to forward to the column button. */
|
|
978
|
-
columnsButtonProps?:
|
|
894
|
+
columnsButtonProps?: GridToolbarColumnsProps;
|
|
979
895
|
/** Column button ref. */
|
|
980
896
|
columnsButtonRef?: RefObject<HTMLButtonElement>;
|
|
981
897
|
/** Props to forward to the density button. */
|
|
982
|
-
densityButtonProps?:
|
|
898
|
+
densityButtonProps?: GridToolbarDensityProps;
|
|
983
899
|
/** Density button ref. */
|
|
984
900
|
densityButtonRef?: RefObject<HTMLButtonElement>;
|
|
985
901
|
/** Props to forward to the export button. */
|
|
@@ -1019,16 +935,16 @@ declare global {
|
|
|
1019
935
|
}
|
|
1020
936
|
}
|
|
1021
937
|
/** ------ */
|
|
1022
|
-
declare const Toolbar: React
|
|
938
|
+
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1023
939
|
|
|
1024
940
|
type ToolbarWrapperProps = {
|
|
1025
941
|
hideToolbar: DataGridProps['hideToolbar'];
|
|
1026
|
-
RenderedToolbar: React
|
|
942
|
+
RenderedToolbar: React.JSXElementConstructor<any>;
|
|
1027
943
|
filterModel: DataGridProps['filterModel'];
|
|
1028
944
|
onFilterModelChange: DataGridProps['onFilterModelChange'];
|
|
1029
945
|
pagination: DataGridProps['pagination'];
|
|
1030
946
|
paginationPlacement: DataGridProps['paginationPlacement'];
|
|
1031
|
-
selectionStatus:
|
|
947
|
+
selectionStatus: SelectionStatus;
|
|
1032
948
|
apiRef: DataGridProps['apiRef'];
|
|
1033
949
|
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
1034
950
|
paginationModel: DataGridProps['paginationModel'];
|
|
@@ -1038,6 +954,6 @@ type ToolbarWrapperProps = {
|
|
|
1038
954
|
paginationMode?: DataGridProps['paginationMode'];
|
|
1039
955
|
rowCount?: DataGridProps['rowCount'];
|
|
1040
956
|
};
|
|
1041
|
-
declare const ToolbarWrapper: React
|
|
957
|
+
declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
|
|
1042
958
|
|
|
1043
|
-
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon,
|
|
959
|
+
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, Category, ColumnOptions, ColumnType, CompletionResponse, ControlledPagination, ControlledPaginationProps, DATE_IS_BETWEEN, DEFAULT_OPERATORS, DENSITY_MODEL_KEY, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_CONTAIN_ANY_OF, DOES_NOT_END_WITH, DOES_NOT_END_WITH_ANY_OF, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_ANY_OF, DOES_NOT_HAVE_ANY_OF_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DOES_NOT_START_WITH, DOES_NOT_START_WITH_ANY_OF, DataGrid, DataGridModel, DataGridProps, DateOperatorName, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridDensityValue, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ALL_OF, HAS_ALL_OF_WITH_SELECT, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, MultiSelectOperatorName, NumberOperatorName, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, SingleSelectOperatorName, StatefulDataGrid, StatefulDataGridProps, StringOperatorName, StyledDataGridProps, TagsOperatorName, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, createColumn, customColumnTypes, decodeValue, encodeValue, fixServerSideHeaderCheckboxSelection, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, getDensityFromString, getFilterModelFromString, getFinalSearch, getGridDateOperatorsExtended, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromDensity, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSelectableRowIdsInPage, getSortingFromString, isOperatorValueValid, isValueValid, makeCaseInsensitive, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString, wrapCaseInsensitive };
|