@redsift/table 12.3.0-muiv6 → 12.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,330 +1,248 @@
1
- import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
2
- import { GridColumnTypesRecord, GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputValue, GridFilterInputSingleSelect, GridFilterInputMultipleValue, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumns, GridSlotsComponent, GridRowSelectionModel, GridApiPro as GridApiPro$1, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
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';
1
+ import * as _mui_x_data_grid_premium from '@mui/x-data-grid-premium';
2
+ import { GridColTypeDef, GridColType, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, GridRowId, GridRowSelectionModel, DataGridPremiumProps, GridFilterModel, GridPaginationModel, GridSortModel, GridColumnVisibilityModel, GridPinnedColumnFields, GridInitialState, GridSlotsComponent, GridApiPremium, GridCallbackDetails, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-premium';
3
+ export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-premium';
4
+ import React$1, { Ref, ReactElement, ComponentProps, ReactNode, MutableRefObject, RefObject } from 'react';
6
5
  import { TablePaginationProps } from '@mui/material';
7
- import { Theme, Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
8
- import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
9
6
 
10
- declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef;
7
+ declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_premium.GridColDef;
11
8
 
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
- };
67
- declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
68
- type: string;
69
- filterOperators: ({
70
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
71
- label: string;
72
- value: string;
73
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
74
- } | {
75
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
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
- };
81
- declare const customColumnTypes: Partial<GridColumnTypesRecord>;
9
+ declare const getRsStringColumnType: () => GridColTypeDef;
10
+ declare const getRsNumberColumnType: () => GridColTypeDef;
11
+ declare const getRsSingleSelectColumnType: () => GridColTypeDef;
12
+ declare const getRsSingleSelectWithShortOperatorListColumnType: () => GridColTypeDef;
13
+ declare const getRsMultipleSelectColumnType: () => GridColTypeDef;
14
+ declare const getRsMultipleSelectWithShortOperatorListColumnType: () => GridColTypeDef;
15
+ declare const customColumnTypes: Record<GridColType | string, GridColTypeDef>;
82
16
 
83
- declare const IS_BETWEEN: {
84
- label: string;
85
- value: string;
86
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
87
- InputComponent: (props: any) => JSX.Element;
88
- };
17
+ declare const IS_BETWEEN: GridFilterOperator<any, number, any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
89
18
 
90
- declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
19
+ declare const getGridNumericOperators: () => GridFilterOperator<any, unknown, any>[];
91
20
 
92
- declare const DOES_NOT_CONTAIN: {
93
- label: string;
94
- value: string;
95
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
96
- InputComponent: typeof GridFilterInputValue;
97
- };
21
+ declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
98
22
 
99
- declare const DOES_NOT_EQUAL: {
100
- label: string;
101
- value: string;
102
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
103
- InputComponent: typeof GridFilterInputValue;
104
- };
23
+ declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
105
24
 
106
- declare const DOES_NOT_HAVE: {
107
- label: string;
108
- value: string;
109
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
110
- InputComponent: typeof GridFilterInputValue;
111
- };
25
+ declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
112
26
  declare const DOES_NOT_HAVE_WITH_SELECT: {
113
27
  InputComponent: typeof GridFilterInputSingleSelect;
114
- label: string;
115
- value: string;
116
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
28
+ label?: string;
29
+ headerLabel?: string;
30
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
31
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
32
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
33
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
34
+ requiresFilterValue?: boolean;
117
35
  };
118
36
 
119
- declare const HAS: {
120
- label: string;
121
- value: string;
122
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
123
- InputComponent: typeof GridFilterInputValue;
124
- };
37
+ declare const HAS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
125
38
  declare const HAS_WITH_SELECT: {
126
39
  InputComponent: typeof GridFilterInputSingleSelect;
127
- label: string;
128
- value: string;
129
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
40
+ label?: string;
41
+ headerLabel?: string;
42
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
43
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
44
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
45
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
46
+ requiresFilterValue?: boolean;
130
47
  };
131
48
 
132
- declare const HAS_ONLY: {
133
- label: string;
134
- value: string;
135
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
136
- InputComponent: typeof GridFilterInputValue;
137
- };
49
+ declare const HAS_ONLY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
138
50
  declare const HAS_ONLY_WITH_SELECT: {
139
51
  InputComponent: typeof GridFilterInputSingleSelect;
140
- label: string;
141
- value: string;
142
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
52
+ label?: string;
53
+ headerLabel?: string;
54
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
55
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
56
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
57
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
58
+ requiresFilterValue?: boolean;
143
59
  };
144
60
 
145
- declare const IS: {
146
- label: string;
147
- value: string;
148
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
149
- InputComponent: typeof GridFilterInputValue;
150
- };
61
+ declare const IS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
151
62
  declare const IS_WITH_SELECT: {
152
63
  InputComponent: typeof GridFilterInputSingleSelect;
153
- label: string;
154
- value: string;
155
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
64
+ label?: string;
65
+ headerLabel?: string;
66
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
67
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
68
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
69
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
70
+ requiresFilterValue?: boolean;
156
71
  };
157
72
 
158
- declare const IS_NOT: {
159
- label: string;
160
- value: string;
161
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
162
- InputComponent: typeof GridFilterInputValue;
163
- };
73
+ declare const IS_NOT: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
164
74
  declare const IS_NOT_WITH_SELECT: {
165
75
  InputComponent: typeof GridFilterInputSingleSelect;
166
- label: string;
167
- value: string;
168
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
76
+ label?: string;
77
+ headerLabel?: string;
78
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
79
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
80
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
81
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
82
+ requiresFilterValue?: boolean;
169
83
  };
170
84
 
171
- declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
85
+ declare const getGridStringOperators: () => GridFilterOperator<any, unknown, any>[];
172
86
 
173
- declare const CONTAINS_ANY_OF: {
174
- label: string;
175
- value: string;
176
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
177
- InputComponent: typeof GridFilterInputMultipleValue;
178
- };
179
- declare const CONTAINS_ANY_OF_I: {
180
- label: string;
181
- value: string;
182
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
183
- InputComponent: typeof GridFilterInputMultipleValue;
184
- };
87
+ declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
88
+ declare const CONTAINS_ANY_OF_I: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
185
89
 
186
- declare const DOES_NOT_HAVE_ANY_OF: {
187
- label: string;
188
- value: string;
189
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
190
- InputComponent: typeof GridFilterInputMultipleValue;
191
- };
90
+ declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
192
91
  declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: {
193
92
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
194
- label: string;
195
- value: string;
196
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
93
+ label?: string;
94
+ headerLabel?: string;
95
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
96
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
97
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
98
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
99
+ requiresFilterValue?: boolean;
197
100
  };
198
101
 
199
- declare const ENDS_WITH_ANY_OF: {
200
- label: string;
201
- value: string;
202
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
203
- InputComponent: typeof GridFilterInputMultipleValue;
204
- };
102
+ declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
205
103
 
206
- declare const IS_ANY_OF: {
207
- label: string;
208
- value: string;
209
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
210
- InputComponent: typeof GridFilterInputMultipleValue;
211
- };
104
+ declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
212
105
  declare const IS_ANY_OF_WITH_SELECT: {
213
106
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
214
- label: string;
215
- value: string;
216
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
107
+ label?: string;
108
+ headerLabel?: string;
109
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
110
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
111
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
112
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
113
+ requiresFilterValue?: boolean;
217
114
  };
218
115
 
219
- declare const IS_ANY_OF_I: {
220
- label: string;
221
- value: string;
222
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
223
- InputComponent: typeof GridFilterInputMultipleValue;
224
- };
116
+ declare const IS_ANY_OF_I: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
225
117
  declare const IS_ANY_OF_I_WITH_SELECT: {
226
118
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
227
- label: string;
228
- value: string;
229
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
119
+ label?: string;
120
+ headerLabel?: string;
121
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
122
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
123
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
124
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
125
+ requiresFilterValue?: boolean;
230
126
  };
231
127
 
232
- declare const HAS_ANY_OF: {
233
- label: string;
234
- value: string;
235
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
236
- InputComponent: typeof GridFilterInputMultipleValue;
237
- };
128
+ declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
238
129
  declare const HAS_ANY_OF_WITH_SELECT: {
239
130
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
240
- label: string;
241
- value: string;
242
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
131
+ label?: string;
132
+ headerLabel?: string;
133
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
134
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
135
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
136
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
137
+ requiresFilterValue?: boolean;
243
138
  };
244
139
 
245
- declare const IS_NOT_ANY_OF: {
246
- label: string;
247
- value: string;
248
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
249
- InputComponent: typeof GridFilterInputMultipleValue;
250
- };
140
+ declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
251
141
  declare const IS_NOT_ANY_OF_WITH_SELECT: {
252
142
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
253
- label: string;
254
- value: string;
255
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
143
+ label?: string;
144
+ headerLabel?: string;
145
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
146
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
147
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
148
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
149
+ requiresFilterValue?: boolean;
256
150
  };
257
151
 
258
- declare const STARTS_WITH_ANY_OF: {
259
- label: string;
260
- value: string;
261
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
262
- InputComponent: typeof GridFilterInputMultipleValue;
263
- };
152
+ declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
264
153
 
265
- declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
266
- declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
267
- declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
154
+ declare const getGridStringArrayOperators: () => GridFilterOperator<any, unknown, any>[];
155
+ declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, unknown, any>[];
156
+ declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, unknown, any>[];
268
157
 
269
158
  declare const operatorList: {
270
- string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
271
- number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
272
- boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
273
- date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
274
- dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
275
- singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
276
- rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
277
- rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
278
- rsSingleSelect: ({
279
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
280
- label: string;
281
- value: string;
282
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
283
- } | {
284
- label: string;
285
- value: string;
286
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
287
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleValue;
159
+ string: _mui_x_data_grid_premium.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
160
+ number: _mui_x_data_grid_premium.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid_premium.GridFilterInputValueProps & {
161
+ type?: "number";
162
+ }>[];
163
+ boolean: _mui_x_data_grid_premium.GridFilterOperator<any, boolean | null, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
164
+ date: _mui_x_data_grid_premium.GridFilterOperator<any, Date, any, _mui_x_data_grid_premium.GridFilterInputDateProps>[];
165
+ dateTime: _mui_x_data_grid_premium.GridFilterOperator<any, Date, any, _mui_x_data_grid_premium.GridFilterInputDateProps>[];
166
+ singleSelect: _mui_x_data_grid_premium.GridFilterOperator<any, any, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
167
+ rsString: _mui_x_data_grid_premium.GridFilterOperator<any, unknown, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
168
+ rsNumber: _mui_x_data_grid_premium.GridFilterOperator<any, unknown, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
169
+ rsSingleSelect: (_mui_x_data_grid_premium.GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps> | {
170
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
171
+ label?: string;
172
+ headerLabel?: string;
173
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
174
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
175
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
176
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
177
+ requiresFilterValue?: boolean;
288
178
  } | {
289
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
290
- label: string;
291
- value: string;
292
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
179
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
180
+ label?: string;
181
+ headerLabel?: string;
182
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
183
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
184
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
185
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
186
+ requiresFilterValue?: boolean;
293
187
  })[];
294
188
  rsSingleSelectWithShortOperatorList: ({
295
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
296
- label: string;
297
- value: string;
298
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
189
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
190
+ label?: string;
191
+ headerLabel?: string;
192
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
193
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
194
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
195
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
196
+ requiresFilterValue?: boolean;
299
197
  } | {
300
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
301
- label: string;
302
- value: string;
303
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
198
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
199
+ label?: string;
200
+ headerLabel?: string;
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;
304
206
  })[];
305
207
  rsMultipleSelect: ({
306
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
307
- label: string;
308
- value: string;
309
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
208
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
209
+ label?: string;
210
+ headerLabel?: string;
211
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
212
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
213
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
214
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
215
+ requiresFilterValue?: boolean;
310
216
  } | {
311
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
312
- label: string;
313
- value: string;
314
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
217
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
218
+ label?: string;
219
+ headerLabel?: string;
220
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
221
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
222
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
223
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
224
+ requiresFilterValue?: boolean;
315
225
  })[];
316
226
  rsMultipleSelectWithShortOperatorList: ({
317
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
318
- label: string;
319
- value: string;
320
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
227
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
228
+ label?: string;
229
+ headerLabel?: string;
230
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
231
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
232
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
233
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
234
+ requiresFilterValue?: boolean;
321
235
  } | {
322
- InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
323
- label: string;
324
- value: string;
325
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
236
+ InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
237
+ label?: string;
238
+ headerLabel?: string;
239
+ value: _mui_x_data_grid_premium.GridFilterItem["operator"];
240
+ getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
241
+ InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
242
+ getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
243
+ requiresFilterValue?: boolean;
326
244
  })[];
327
- rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
245
+ rsStringArray: _mui_x_data_grid_premium.GridFilterOperator<any, unknown, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
328
246
  };
329
247
 
330
248
  declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
@@ -345,7 +263,229 @@ declare const buildStorageKey: ({ id, version, category }: {
345
263
  }) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
346
264
  declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
347
265
 
348
- interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
266
+ /**
267
+ * Type for legacy array-based row selection (v7 and earlier)
268
+ */
269
+ type LegacyRowSelectionModel = GridRowId[];
270
+ /**
271
+ * Type that accepts both legacy array format and new v8 object format
272
+ */
273
+ type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
274
+ /**
275
+ * Default empty row selection model for MUI DataGrid v8+
276
+ * In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
277
+ */
278
+ declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
279
+ /**
280
+ * Creates a new row selection model with the given ids
281
+ */
282
+ declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
283
+ /**
284
+ * Normalizes a row selection model input to the v8 GridRowSelectionModel format.
285
+ * Accepts both legacy array format (v7) and new object format (v8).
286
+ * This allows consumers to continue using arrays while internally using the v8 format.
287
+ */
288
+ declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
289
+ /**
290
+ * Gets the size/count of selected rows from a selection model
291
+ */
292
+ declare const getSelectionCount: (model: GridRowSelectionModel) => number;
293
+ /**
294
+ * Checks if a row is selected in the given selection model
295
+ */
296
+ declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
297
+ /**
298
+ * Converts a selection model to an array of selected row IDs
299
+ * Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
300
+ * not the actual selected rows (which would require knowing all row ids)
301
+ */
302
+ declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
303
+
304
+ /** Component Type. */
305
+ type Comp<P, T = HTMLElement> = {
306
+ (props: P & {
307
+ ref?: Ref<T>;
308
+ }): ReactElement | null;
309
+ /** React component type. */
310
+ readonly $$typeof?: symbol;
311
+ /** Component name. */
312
+ displayName?: string;
313
+ /** Component base class name. */
314
+ className?: string;
315
+ };
316
+ /** Get types of the values of a record. */
317
+ type ValueOf<T extends Record<any, any>> = T[keyof T];
318
+
319
+ /**
320
+ * Color palette.
321
+ */
322
+ declare const Theme: {
323
+ readonly light: "light";
324
+ readonly dark: "dark";
325
+ };
326
+ type Theme = ValueOf<typeof Theme>;
327
+ declare const NotificationsColorPalette: {
328
+ readonly question: "question";
329
+ readonly 'no-data': "no-data";
330
+ readonly success: "success";
331
+ readonly warning: "warning";
332
+ readonly info: "info";
333
+ readonly primary: "primary";
334
+ readonly secondary: "secondary";
335
+ readonly error: "error";
336
+ };
337
+ type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
338
+ declare const ProductColorPalette: {
339
+ readonly asm: "asm";
340
+ readonly 'brand-trust': "brand-trust";
341
+ readonly certificates: "certificates";
342
+ readonly ondmarc: "ondmarc";
343
+ readonly pulse: "pulse";
344
+ readonly radar: "radar";
345
+ readonly 'rojo-ds': "rojo-ds";
346
+ readonly 'vendor-secure': "vendor-secure";
347
+ readonly website: "website";
348
+ };
349
+ type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
350
+
351
+ declare const AlignSelf: {
352
+ readonly auto: "auto";
353
+ readonly normal: "normal";
354
+ readonly start: "start";
355
+ readonly end: "end";
356
+ readonly center: "center";
357
+ readonly 'flex-start': "flex-start";
358
+ readonly 'flex-end': "flex-end";
359
+ readonly 'self-start': "self-start";
360
+ readonly 'self-end': "self-end";
361
+ readonly baseline: "baseline";
362
+ readonly stretch: "stretch";
363
+ };
364
+ type AlignSelf = ValueOf<typeof AlignSelf>;
365
+ interface LayoutProps {
366
+ /** 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>. */
367
+ flex?: string;
368
+ /** 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>. */
369
+ flexGrow?: number;
370
+ /** 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>. */
371
+ flexShrink?: number;
372
+ /** 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>. */
373
+ flexBasis?: string;
374
+ /** 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>. */
375
+ alignSelf?: AlignSelf;
376
+ /** 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>. */
377
+ justifySelf?: string;
378
+ /** 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>. */
379
+ order?: number;
380
+ /** 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>. */
381
+ gridArea?: string;
382
+ /** 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>. */
383
+ gridColumn?: string;
384
+ /** 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>. */
385
+ gridRow?: string;
386
+ /** 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>. */
387
+ gridColumnStart?: string;
388
+ /** 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>. */
389
+ gridColumnEnd?: string;
390
+ /** 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>. */
391
+ gridRowStart?: string;
392
+ /** 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>. */
393
+ gridRowEnd?: string;
394
+ }
395
+ interface SpacingProps {
396
+ /** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
397
+ margin?: string;
398
+ /** 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>. */
399
+ marginBottom?: string;
400
+ /** 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>. */
401
+ marginLeft?: string;
402
+ /** 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>. */
403
+ marginRight?: string;
404
+ /** 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>. */
405
+ marginTop?: string;
406
+ }
407
+ interface PositioningProps {
408
+ /** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
409
+ position?: string;
410
+ /** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
411
+ top?: string;
412
+ /** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
413
+ bottom?: string;
414
+ /** 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. */
415
+ left?: string;
416
+ /** 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. */
417
+ right?: string;
418
+ /** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
419
+ zIndex?: string;
420
+ }
421
+
422
+ /**
423
+ * Component size.
424
+ */
425
+ declare const IconSize: {
426
+ readonly xsmall: "xsmall";
427
+ readonly small: "small";
428
+ readonly medium: "medium";
429
+ readonly large: "large";
430
+ readonly xlarge: "xlarge";
431
+ readonly xxlarge: "xxlarge";
432
+ };
433
+ type IconSize = ValueOf<typeof IconSize>;
434
+ type IconDimensions = {
435
+ width?: number;
436
+ height?: number;
437
+ fontSize?: number;
438
+ lineHeight?: number;
439
+ };
440
+ /**
441
+ * Component props.
442
+ */
443
+ interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
444
+ /** Indicates whether the element is exposed to an accessibility API. */
445
+ 'aria-hidden'?: boolean | 'false' | 'true';
446
+ /** A screen reader only label for the Icon. */
447
+ 'aria-label'?: string;
448
+ /** Color variant. Either from color palette or hex or rgb strings. */
449
+ color?: NotificationsColorPalette | ProductColorPalette | (string & {});
450
+ /** Whether the icon has a badge attached to it. */
451
+ badge?: ReactElement;
452
+ /**
453
+ * Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
454
+ * Can also be a ReactElement.
455
+ */
456
+ icon: string | string[] | ReactElement;
457
+ /**
458
+ * Icon size.
459
+ * @default 'medium'
460
+ */
461
+ size?: IconSize | IconDimensions;
462
+ /** Additional properties to forward to the SVG tag. */
463
+ svgProps?: ComponentProps<'svg'>;
464
+ /** Theme. */
465
+ theme?: Theme;
466
+ }
467
+
468
+ /**
469
+ * Component variant.
470
+ */
471
+ declare const ShieldVariant: {
472
+ readonly success: "success";
473
+ readonly successLocked: "successLocked";
474
+ readonly successUnlocked: "successUnlocked";
475
+ readonly fail: "fail";
476
+ readonly failLocked: "failLocked";
477
+ readonly failUnlocked: "failUnlocked";
478
+ readonly warning: "warning";
479
+ readonly warningLocked: "warningLocked";
480
+ readonly warningUnlocked: "warningUnlocked";
481
+ readonly ignored: "ignored";
482
+ readonly noData: "noData";
483
+ readonly question: "question";
484
+ readonly email: "email";
485
+ };
486
+ type ShieldVariant = ValueOf<typeof ShieldVariant>;
487
+
488
+ interface DataGridProps extends Partial<Pick<DataGridPremiumProps, 'rows'>>, Omit<DataGridPremiumProps, 'rows'> {
349
489
  /** License key for MUI Datagrid Pro. */
350
490
  license?: string;
351
491
  /**
@@ -536,7 +676,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
536
676
  declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
537
677
  /** SORT */
538
678
  declare const getSortingFromString: (searchString: string, columns: DataGridProps["columns"]) => GridSortModel | "invalid";
539
- declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
679
+ declare const getSearchParamsFromSorting: (sorting: GridSortModel) => URLSearchParams;
540
680
  /** PAGINATION */
541
681
  declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | "invalid";
542
682
  declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
@@ -544,7 +684,7 @@ declare const getSearchParamsFromPagination: (pagination: ExtendedGridPagination
544
684
  declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps["columns"]) => GridColumnVisibilityModel | "invalid";
545
685
  declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps["columns"]) => URLSearchParams;
546
686
  declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps["columns"]) => PinnedColumns | "invalid";
547
- declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
687
+ declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumnFields) => URLSearchParams;
548
688
  declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
549
689
  type FinalSearchInput = {
550
690
  localStorageVersion: number;
@@ -552,7 +692,7 @@ type FinalSearchInput = {
552
692
  sortModel: GridSortModel;
553
693
  paginationModel: ExtendedGridPaginationModel;
554
694
  columnsVisibilityModel: GridColumnVisibilityModel;
555
- pinnedColumnsModel: GridPinnedColumns;
695
+ pinnedColumnsModel: GridPinnedColumnFields;
556
696
  search: string;
557
697
  columns: DataGridProps['columns'];
558
698
  };
@@ -578,30 +718,30 @@ type ModelsTable = {
578
718
  sortModel: GridSortModel;
579
719
  paginationModel: ExtendedGridPaginationModel;
580
720
  columnVisibilityModel: GridColumnVisibilityModel;
581
- pinnedColumnsModel: PinnedColumns;
721
+ pinnedColumnsModel: GridPinnedColumnFields;
582
722
  };
583
723
  /** Return the state of the table given the URL and the local storage state */
584
- declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
724
+ declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], historyReplace: (newSearch: string) => void, initialState: GridInitialState | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
585
725
  type DataGridModel = {
586
726
  filterModel: GridFilterModel;
587
727
  sortModel: GridSortModel;
588
728
  paginationModel: ExtendedGridPaginationModel;
589
729
  columnsModel: GridColumnVisibilityModel;
590
- pinnedColumnsModel: GridPinnedColumns;
730
+ pinnedColumnsModel: GridPinnedColumnFields;
591
731
  };
592
732
  declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
593
733
  declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
594
734
 
595
- declare const BaseButton: React.JSXElementConstructor<any>;
735
+ declare const BaseButton: React$1.JSXElementConstructor<any>;
596
736
 
597
- declare const BaseCheckbox: React.JSXElementConstructor<any>;
737
+ declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
598
738
 
599
739
  declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
600
- declare const BaseIcon: React.JSXElementConstructor<any>;
740
+ declare const BaseIcon: React$1.JSXElementConstructor<any>;
601
741
 
602
- declare const BasePopper: React.JSXElementConstructor<any>;
742
+ declare const BaseIconButton: React$1.JSXElementConstructor<any>;
603
743
 
604
- declare const BaseTextField: React.JSXElementConstructor<any>;
744
+ declare const BaseTextField: React$1.JSXElementConstructor<any>;
605
745
 
606
746
  interface CompletionResponseItem {
607
747
  field: string;
@@ -630,7 +770,7 @@ interface FilterConfig {
630
770
  }
631
771
  interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
632
772
  nlpFilterConfig: FilterConfig;
633
- onFilterModelChange: (filterModel: GridFilterModel) => void;
773
+ onFilterModelChange?: (filterModel: GridFilterModel) => void;
634
774
  dateFormat?: string;
635
775
  defaultModel?: string;
636
776
  defaultFilter?: CompletionResponse;
@@ -654,14 +794,14 @@ type ControlledPaginationProps = {
654
794
  displayRowsPerPage?: boolean;
655
795
  displayPagination?: boolean;
656
796
  selectionStatus: SelectionStatus;
657
- apiRef: MutableRefObject<GridApiPro>;
797
+ apiRef: MutableRefObject<GridApiPremium | null>;
658
798
  paginationModel: GridPaginationModel;
659
- onPaginationModelChange: (model: GridPaginationModel) => void;
799
+ onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
660
800
  pageSizeOptions?: number[];
661
801
  isRowSelectable?: DataGridProps['isRowSelectable'];
662
802
  paginationProps?: DataGridProps['paginationProps'];
663
803
  };
664
- declare const ControlledPagination: React.FC<ControlledPaginationProps>;
804
+ declare const ControlledPagination: React$1.FC<ControlledPaginationProps>;
665
805
 
666
806
  type ServerSideControlledPaginationProps = {
667
807
  displaySelection?: boolean;
@@ -669,14 +809,14 @@ type ServerSideControlledPaginationProps = {
669
809
  displayPagination?: boolean;
670
810
  selectionStatus: SelectionStatus;
671
811
  paginationModel: GridPaginationModel;
672
- onPaginationModelChange: (model: GridPaginationModel) => void;
812
+ onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
673
813
  pageSizeOptions?: number[];
674
814
  paginationProps?: DataGridProps['paginationProps'];
675
815
  rowCount: number;
676
816
  loading?: boolean;
677
817
  };
678
- 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;
679
- declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
818
+ declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<GridApiPremium | null>, selectionStatus: React$1.MutableRefObject<SelectionStatus>, forceUpdate: React$1.Dispatch<React$1.SetStateAction<number>>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
819
+ declare const ServerSideControlledPagination: React$1.FC<ServerSideControlledPaginationProps>;
680
820
 
681
821
  interface TextCellProps extends ComponentProps<'div'> {
682
822
  /** Including Badge Component. */
@@ -704,16 +844,16 @@ interface TextCellProps extends ComponentProps<'div'> {
704
844
  */
705
845
  declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
706
846
 
707
- type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
708
- type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
847
+ type GridToolbarColumnsButtonProps = React.ComponentProps<typeof GridToolbarColumnsButton>;
848
+ type GridToolbarDensitySelectorProps = React.ComponentProps<typeof GridToolbarDensitySelector>;
709
849
  type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
710
850
  interface ToolbarProps {
711
851
  /** Props to forward to the column button. */
712
- columnsButtonProps?: GridToolbarColumnsProps;
852
+ columnsButtonProps?: GridToolbarColumnsButtonProps;
713
853
  /** Column button ref. */
714
854
  columnsButtonRef?: RefObject<HTMLButtonElement>;
715
855
  /** Props to forward to the density button. */
716
- densityButtonProps?: GridToolbarDensityProps;
856
+ densityButtonProps?: GridToolbarDensitySelectorProps;
717
857
  /** Density button ref. */
718
858
  densityButtonRef?: RefObject<HTMLButtonElement>;
719
859
  /** Props to forward to the export button. */
@@ -753,16 +893,16 @@ declare global {
753
893
  }
754
894
  }
755
895
  /** ------ */
756
- declare const Toolbar: React.FC<ToolbarProps>;
896
+ declare const Toolbar: React$1.FC<ToolbarProps>;
757
897
 
758
898
  type ToolbarWrapperProps = {
759
899
  hideToolbar: DataGridProps['hideToolbar'];
760
- RenderedToolbar: React.JSXElementConstructor<any>;
900
+ RenderedToolbar: React$1.JSXElementConstructor<any>;
761
901
  filterModel: DataGridProps['filterModel'];
762
902
  onFilterModelChange: DataGridProps['onFilterModelChange'];
763
903
  pagination: DataGridProps['pagination'];
764
904
  paginationPlacement: DataGridProps['paginationPlacement'];
765
- selectionStatus: React.MutableRefObject<SelectionStatus>;
905
+ selectionStatus: React$1.MutableRefObject<SelectionStatus>;
766
906
  apiRef: DataGridProps['apiRef'];
767
907
  isRowSelectable: DataGridProps['isRowSelectable'];
768
908
  paginationModel: DataGridProps['paginationModel'];
@@ -772,6 +912,6 @@ type ToolbarWrapperProps = {
772
912
  paginationMode?: DataGridProps['paginationMode'];
773
913
  rowCount?: DataGridProps['rowCount'];
774
914
  };
775
- declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
915
+ declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
776
916
 
777
- export { BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_ANY_OF, DOES_NOT_HAVE_ANY_OF_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_I, IS_ANY_OF_I_WITH_SELECT, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, buildStorageKey, clearPreviousVersionStorage, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, isOperatorValueValid, isValueValid, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
917
+ export { BaseButton, BaseCheckbox, BaseIcon, BaseIconButton, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_ANY_OF, DOES_NOT_HAVE_ANY_OF_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, EMPTY_ROW_SELECTION_MODEL, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_I, IS_ANY_OF_I_WITH_SELECT, 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, LegacyRowSelectionModel, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, RowSelectionModelInput, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, buildStorageKey, clearPreviousVersionStorage, createRowSelectionModel, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSelectedIds, getSelectionCount, getSortingFromString, isOperatorValueValid, isRowSelected, isValueValid, muiIconToDSIcon, normalizeRowSelectionModel, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };