@redsift/table 12.0.0-muiv6 → 12.0.0-muiv7

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,273 +1,164 @@
1
- import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleSingleSelect';
2
- import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleValue';
3
- import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
4
1
  import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
5
- 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';
2
+ import { GridColTypeDef, GridColType, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridColumnVisibilityModel, GridPinnedColumnFields, GridSlotsComponent, GridCallbackDetails, GridRowSelectionModel, GridApiPro as GridApiPro$1, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
6
3
  export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
4
+ import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleSingleSelect';
5
+ import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
7
6
  import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
8
- import React, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
7
+ import React$1, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
9
8
  import { TablePaginationProps } from '@mui/material';
10
9
  import { Theme, Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
11
10
  import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
12
11
 
13
12
  declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any, any, any>;
14
13
 
15
- declare const getRsStringColumnType: () => {
16
- type: string;
17
- filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
18
- };
19
- declare const getRsNumberColumnType: () => {
20
- type: string;
21
- filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
22
- };
23
- declare const getRsSingleSelectColumnType: () => {
24
- type: string;
25
- filterOperators: ({
26
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
27
- label: string;
28
- value: string;
29
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
30
- } | {
31
- label: string;
32
- value: string;
33
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
34
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
35
- } | {
36
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
37
- label: string;
38
- value: string;
39
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
40
- })[];
41
- };
42
- declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
43
- type: string;
44
- filterOperators: ({
45
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
46
- label: string;
47
- value: string;
48
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
49
- } | {
50
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
51
- label: string;
52
- value: string;
53
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
54
- })[];
55
- };
56
- declare const getRsMultipleSelectColumnType: () => {
57
- type: string;
58
- filterOperators: ({
59
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
60
- label: string;
61
- value: string;
62
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
63
- } | {
64
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
65
- label: string;
66
- value: string;
67
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
68
- })[];
69
- };
70
- declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
71
- type: string;
72
- filterOperators: ({
73
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
74
- label: string;
75
- value: string;
76
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
77
- } | {
78
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
79
- label: string;
80
- value: string;
81
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
82
- })[];
83
- };
84
- declare const customColumnTypes: Partial<GridColumnTypesRecord>;
14
+ declare const getRsStringColumnType: () => GridColTypeDef<any, any>;
15
+ declare const getRsNumberColumnType: () => GridColTypeDef<any, any>;
16
+ declare const getRsSingleSelectColumnType: () => GridColTypeDef<any, any>;
17
+ declare const getRsSingleSelectWithShortOperatorListColumnType: () => GridColTypeDef<any, any>;
18
+ declare const getRsMultipleSelectColumnType: () => GridColTypeDef<any, any>;
19
+ declare const getRsMultipleSelectWithShortOperatorListColumnType: () => GridColTypeDef<any, any>;
20
+ declare const customColumnTypes: Record<GridColType | string, GridColTypeDef>;
85
21
 
86
- declare const IS_BETWEEN: {
87
- label: string;
88
- value: string;
89
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
90
- InputComponent: (props: any) => JSX.Element;
91
- };
22
+ declare const IS_BETWEEN: GridFilterOperator<any, number, any>;
92
23
 
93
- declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
24
+ declare const getGridNumericOperators: () => GridFilterOperator<any, unknown, any>[];
94
25
 
95
- declare const DOES_NOT_CONTAIN: {
96
- label: string;
97
- value: string;
98
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
99
- InputComponent: typeof GridFilterInputValue;
100
- };
26
+ declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any>;
101
27
 
102
- declare const DOES_NOT_EQUAL: {
103
- label: string;
104
- value: string;
105
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
106
- InputComponent: typeof GridFilterInputValue;
107
- };
28
+ declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any>;
108
29
 
109
- declare const DOES_NOT_HAVE: {
110
- label: string;
111
- value: string;
112
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
113
- InputComponent: typeof GridFilterInputValue;
114
- };
30
+ declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any>;
115
31
  declare const DOES_NOT_HAVE_WITH_SELECT: {
116
32
  InputComponent: typeof GridFilterInputSingleSelect;
117
- label: string;
33
+ label?: string | undefined;
34
+ headerLabel?: string | undefined;
118
35
  value: string;
119
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
36
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
37
+ InputComponentProps?: Record<string, any> | undefined;
38
+ getValueAsString?: ((value: any) => string) | undefined;
39
+ requiresFilterValue?: boolean | undefined;
120
40
  };
121
41
 
122
- declare const HAS: {
123
- label: string;
124
- value: string;
125
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
126
- InputComponent: typeof GridFilterInputValue;
127
- };
42
+ declare const HAS: GridFilterOperator<any, string | string[], any>;
128
43
  declare const HAS_WITH_SELECT: {
129
44
  InputComponent: typeof GridFilterInputSingleSelect;
130
- label: string;
45
+ label?: string | undefined;
46
+ headerLabel?: string | undefined;
131
47
  value: string;
132
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
48
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
49
+ InputComponentProps?: Record<string, any> | undefined;
50
+ getValueAsString?: ((value: any) => string) | undefined;
51
+ requiresFilterValue?: boolean | undefined;
133
52
  };
134
53
 
135
- declare const HAS_ONLY: {
136
- label: string;
137
- value: string;
138
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
139
- InputComponent: typeof GridFilterInputValue;
140
- };
54
+ declare const HAS_ONLY: GridFilterOperator<any, string | string[], any>;
141
55
  declare const HAS_ONLY_WITH_SELECT: {
142
56
  InputComponent: typeof GridFilterInputSingleSelect;
143
- label: string;
57
+ label?: string | undefined;
58
+ headerLabel?: string | undefined;
144
59
  value: string;
145
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
60
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
61
+ InputComponentProps?: Record<string, any> | undefined;
62
+ getValueAsString?: ((value: any) => string) | undefined;
63
+ requiresFilterValue?: boolean | undefined;
146
64
  };
147
65
 
148
- declare const IS: {
149
- label: string;
150
- value: string;
151
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
152
- InputComponent: typeof GridFilterInputValue;
153
- };
66
+ declare const IS: GridFilterOperator<any, string | string[], any>;
154
67
  declare const IS_WITH_SELECT: {
155
68
  InputComponent: typeof GridFilterInputSingleSelect;
156
- label: string;
69
+ label?: string | undefined;
70
+ headerLabel?: string | undefined;
157
71
  value: string;
158
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
72
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
73
+ InputComponentProps?: Record<string, any> | undefined;
74
+ getValueAsString?: ((value: any) => string) | undefined;
75
+ requiresFilterValue?: boolean | undefined;
159
76
  };
160
77
 
161
- declare const IS_NOT: {
162
- label: string;
163
- value: string;
164
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
165
- InputComponent: typeof GridFilterInputValue;
166
- };
78
+ declare const IS_NOT: GridFilterOperator<any, string | string[], any>;
167
79
  declare const IS_NOT_WITH_SELECT: {
168
80
  InputComponent: typeof GridFilterInputSingleSelect;
169
- label: string;
81
+ label?: string | undefined;
82
+ headerLabel?: string | undefined;
170
83
  value: string;
171
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
84
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
85
+ InputComponentProps?: Record<string, any> | undefined;
86
+ getValueAsString?: ((value: any) => string) | undefined;
87
+ requiresFilterValue?: boolean | undefined;
172
88
  };
173
89
 
174
- declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
90
+ declare const getGridStringOperators: () => GridFilterOperator<any, unknown, any>[];
175
91
 
176
- declare const CONTAINS_ANY_OF: {
177
- label: string;
178
- value: string;
179
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
180
- InputComponent: typeof GridFilterInputMultipleValue;
181
- };
182
- declare const CONTAINS_ANY_OF_I: {
183
- label: string;
184
- value: string;
185
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
186
- InputComponent: typeof GridFilterInputMultipleValue;
187
- };
92
+ declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any>;
93
+ declare const CONTAINS_ANY_OF_I: GridFilterOperator<any, string | string[], any>;
188
94
 
189
- declare const DOES_NOT_HAVE_ANY_OF: {
190
- label: string;
191
- value: string;
192
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
193
- InputComponent: typeof GridFilterInputMultipleValue;
194
- };
95
+ declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any>;
195
96
  declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: {
196
97
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
197
- label: string;
98
+ label?: string | undefined;
99
+ headerLabel?: string | undefined;
198
100
  value: string;
199
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
101
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
102
+ InputComponentProps?: Record<string, any> | undefined;
103
+ getValueAsString?: ((value: any) => string) | undefined;
104
+ requiresFilterValue?: boolean | undefined;
200
105
  };
201
106
 
202
- declare const ENDS_WITH_ANY_OF: {
203
- label: string;
204
- value: string;
205
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
206
- InputComponent: typeof GridFilterInputMultipleValue;
207
- };
107
+ declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
208
108
 
209
- declare const IS_ANY_OF: {
210
- label: string;
211
- value: string;
212
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
213
- InputComponent: typeof GridFilterInputMultipleValue;
214
- };
109
+ declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any>;
215
110
  declare const IS_ANY_OF_WITH_SELECT: {
216
111
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
217
- label: string;
112
+ label?: string | undefined;
113
+ headerLabel?: string | undefined;
218
114
  value: string;
219
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
115
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
116
+ InputComponentProps?: Record<string, any> | undefined;
117
+ getValueAsString?: ((value: any) => string) | undefined;
118
+ requiresFilterValue?: boolean | undefined;
220
119
  };
221
120
 
222
- declare const IS_ANY_OF_I: {
223
- label: string;
224
- value: string;
225
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
226
- InputComponent: typeof GridFilterInputMultipleValue;
227
- };
121
+ declare const IS_ANY_OF_I: GridFilterOperator<any, string | string[], any>;
228
122
  declare const IS_ANY_OF_I_WITH_SELECT: {
229
123
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
230
- label: string;
124
+ label?: string | undefined;
125
+ headerLabel?: string | undefined;
231
126
  value: string;
232
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
127
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
128
+ InputComponentProps?: Record<string, any> | undefined;
129
+ getValueAsString?: ((value: any) => string) | undefined;
130
+ requiresFilterValue?: boolean | undefined;
233
131
  };
234
132
 
235
- declare const HAS_ANY_OF: {
236
- label: string;
237
- value: string;
238
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
239
- InputComponent: typeof GridFilterInputMultipleValue;
240
- };
133
+ declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any>;
241
134
  declare const HAS_ANY_OF_WITH_SELECT: {
242
135
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
243
- label: string;
136
+ label?: string | undefined;
137
+ headerLabel?: string | undefined;
244
138
  value: string;
245
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
139
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
140
+ InputComponentProps?: Record<string, any> | undefined;
141
+ getValueAsString?: ((value: any) => string) | undefined;
142
+ requiresFilterValue?: boolean | undefined;
246
143
  };
247
144
 
248
- declare const IS_NOT_ANY_OF: {
249
- label: string;
250
- value: string;
251
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
252
- InputComponent: typeof GridFilterInputMultipleValue;
253
- };
145
+ declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any>;
254
146
  declare const IS_NOT_ANY_OF_WITH_SELECT: {
255
147
  InputComponent: typeof GridFilterInputMultipleSingleSelect;
256
- label: string;
148
+ label?: string | undefined;
149
+ headerLabel?: string | undefined;
257
150
  value: string;
258
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
151
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
152
+ InputComponentProps?: Record<string, any> | undefined;
153
+ getValueAsString?: ((value: any) => string) | undefined;
154
+ requiresFilterValue?: boolean | undefined;
259
155
  };
260
156
 
261
- declare const STARTS_WITH_ANY_OF: {
262
- label: string;
263
- value: string;
264
- getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
265
- InputComponent: typeof GridFilterInputMultipleValue;
266
- };
157
+ declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
267
158
 
268
- declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
269
- declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
270
- declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
159
+ declare const getGridStringArrayOperators: () => GridFilterOperator<any, unknown, any>[];
160
+ declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, unknown, any>[];
161
+ declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, unknown, any>[];
271
162
 
272
163
  declare const operatorList: {
273
164
  string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
@@ -276,58 +167,85 @@ declare const operatorList: {
276
167
  date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
277
168
  dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
278
169
  singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
279
- rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
280
- rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
281
- rsSingleSelect: ({
170
+ rsString: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any>[];
171
+ rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any>[];
172
+ rsSingleSelect: (_mui_x_data_grid_pro.GridFilterOperator<any, string | string[], any> | {
282
173
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
283
- label: string;
284
- value: string;
285
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
286
- } | {
287
- label: string;
174
+ label?: string | undefined;
175
+ headerLabel?: string | undefined;
288
176
  value: string;
289
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
290
- InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
177
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
178
+ InputComponentProps?: Record<string, any> | undefined;
179
+ getValueAsString?: ((value: any) => string) | undefined;
180
+ requiresFilterValue?: boolean | undefined;
291
181
  } | {
292
182
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
293
- label: string;
183
+ label?: string | undefined;
184
+ headerLabel?: string | undefined;
294
185
  value: string;
295
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
186
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
187
+ InputComponentProps?: Record<string, any> | undefined;
188
+ getValueAsString?: ((value: any) => string) | undefined;
189
+ requiresFilterValue?: boolean | undefined;
296
190
  })[];
297
191
  rsSingleSelectWithShortOperatorList: ({
298
192
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
299
- label: string;
193
+ label?: string | undefined;
194
+ headerLabel?: string | undefined;
300
195
  value: string;
301
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
196
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
197
+ InputComponentProps?: Record<string, any> | undefined;
198
+ getValueAsString?: ((value: any) => string) | undefined;
199
+ requiresFilterValue?: boolean | undefined;
302
200
  } | {
303
201
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
304
- label: string;
202
+ label?: string | undefined;
203
+ headerLabel?: string | undefined;
305
204
  value: string;
306
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
205
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
206
+ InputComponentProps?: Record<string, any> | undefined;
207
+ getValueAsString?: ((value: any) => string) | undefined;
208
+ requiresFilterValue?: boolean | undefined;
307
209
  })[];
308
210
  rsMultipleSelect: ({
309
211
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
310
- label: string;
212
+ label?: string | undefined;
213
+ headerLabel?: string | undefined;
311
214
  value: string;
312
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
215
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
216
+ InputComponentProps?: Record<string, any> | undefined;
217
+ getValueAsString?: ((value: any) => string) | undefined;
218
+ requiresFilterValue?: boolean | undefined;
313
219
  } | {
314
220
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
315
- label: string;
221
+ label?: string | undefined;
222
+ headerLabel?: string | undefined;
316
223
  value: string;
317
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
224
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
225
+ InputComponentProps?: Record<string, any> | undefined;
226
+ getValueAsString?: ((value: any) => string) | undefined;
227
+ requiresFilterValue?: boolean | undefined;
318
228
  })[];
319
229
  rsMultipleSelectWithShortOperatorList: ({
320
230
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
321
- label: string;
231
+ label?: string | undefined;
232
+ headerLabel?: string | undefined;
322
233
  value: string;
323
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
234
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
235
+ InputComponentProps?: Record<string, any> | undefined;
236
+ getValueAsString?: ((value: any) => string) | undefined;
237
+ requiresFilterValue?: boolean | undefined;
324
238
  } | {
325
239
  InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
326
- label: string;
240
+ label?: string | undefined;
241
+ headerLabel?: string | undefined;
327
242
  value: string;
328
- getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
243
+ getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
244
+ InputComponentProps?: Record<string, any> | undefined;
245
+ getValueAsString?: ((value: any) => string) | undefined;
246
+ requiresFilterValue?: boolean | undefined;
329
247
  })[];
330
- rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
248
+ rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any>[];
331
249
  };
332
250
 
333
251
  declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
@@ -414,7 +332,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
414
332
  declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
415
333
  /** SORT */
416
334
  declare const getSortingFromString: (searchString: string, columns: DataGridProps['columns']) => GridSortModel | 'invalid';
417
- declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
335
+ declare const getSearchParamsFromSorting: (sorting: GridSortModel) => URLSearchParams;
418
336
  /** PAGINATION */
419
337
  declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
420
338
  declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
@@ -422,7 +340,7 @@ declare const getSearchParamsFromPagination: (pagination: ExtendedGridPagination
422
340
  declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
423
341
  declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
424
342
  declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
425
- declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
343
+ declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumnFields) => URLSearchParams;
426
344
  declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
427
345
  type FinalSearchInput = {
428
346
  localStorageVersion: number;
@@ -430,7 +348,7 @@ type FinalSearchInput = {
430
348
  sortModel: GridSortModel;
431
349
  paginationModel: ExtendedGridPaginationModel;
432
350
  columnsVisibilityModel: GridColumnVisibilityModel;
433
- pinnedColumnsModel: GridPinnedColumns;
351
+ pinnedColumnsModel: GridPinnedColumnFields;
434
352
  search: string;
435
353
  columns: DataGridProps['columns'];
436
354
  };
@@ -456,7 +374,7 @@ type ModelsTable = {
456
374
  sortModel: GridSortModel;
457
375
  paginationModel: ExtendedGridPaginationModel;
458
376
  columnVisibilityModel: GridColumnVisibilityModel;
459
- pinnedColumnsModel: PinnedColumns;
377
+ pinnedColumnsModel: GridPinnedColumnFields;
460
378
  };
461
379
  /** Return the state of the table given the URL and the local storage state */
462
380
  declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
@@ -465,21 +383,21 @@ type DataGridModel = {
465
383
  sortModel: GridSortModel;
466
384
  paginationModel: ExtendedGridPaginationModel;
467
385
  columnsModel: GridColumnVisibilityModel;
468
- pinnedColumnsModel: GridPinnedColumns;
386
+ pinnedColumnsModel: GridPinnedColumnFields;
469
387
  };
470
388
  declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps['columns']) => void;
471
389
  declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
472
390
 
473
- declare const BaseButton: React.JSXElementConstructor<any>;
391
+ declare const BaseButton: React$1.JSXElementConstructor<any>;
474
392
 
475
- declare const BaseCheckbox: React.JSXElementConstructor<any>;
393
+ declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
476
394
 
477
395
  declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
478
- declare const BaseIcon: React.JSXElementConstructor<any>;
396
+ declare const BaseIcon: React$1.JSXElementConstructor<any>;
479
397
 
480
- declare const BasePopper: React.JSXElementConstructor<any>;
398
+ declare const BasePopper: React$1.JSXElementConstructor<any>;
481
399
 
482
- declare const BaseTextField: React.JSXElementConstructor<any>;
400
+ declare const BaseTextField: React$1.JSXElementConstructor<any>;
483
401
 
484
402
  interface CompletionResponseItem {
485
403
  field: string;
@@ -508,7 +426,7 @@ interface FilterConfig {
508
426
  }
509
427
  interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
510
428
  nlpFilterConfig: FilterConfig;
511
- onFilterModelChange: (filterModel: GridFilterModel) => void;
429
+ onFilterModelChange?: (filterModel: GridFilterModel) => void;
512
430
  dateFormat?: string;
513
431
  defaultModel?: string;
514
432
  defaultFilter?: CompletionResponse;
@@ -534,12 +452,12 @@ type ControlledPaginationProps = {
534
452
  selectionStatus: SelectionStatus;
535
453
  apiRef: MutableRefObject<GridApiPro>;
536
454
  paginationModel: GridPaginationModel;
537
- onPaginationModelChange: (model: GridPaginationModel) => void;
455
+ onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
538
456
  pageSizeOptions?: number[];
539
457
  isRowSelectable?: DataGridProps['isRowSelectable'];
540
458
  paginationProps?: DataGridProps['paginationProps'];
541
459
  };
542
- declare const ControlledPagination: React.FC<ControlledPaginationProps>;
460
+ declare const ControlledPagination: React$1.FC<ControlledPaginationProps>;
543
461
 
544
462
  type ServerSideControlledPaginationProps = {
545
463
  displaySelection?: boolean;
@@ -547,14 +465,14 @@ type ServerSideControlledPaginationProps = {
547
465
  displayPagination?: boolean;
548
466
  selectionStatus: SelectionStatus;
549
467
  paginationModel: GridPaginationModel;
550
- onPaginationModelChange: (model: GridPaginationModel) => void;
468
+ onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
551
469
  pageSizeOptions?: number[];
552
470
  paginationProps?: DataGridProps['paginationProps'];
553
471
  rowCount: number;
554
472
  loading?: boolean;
555
473
  };
556
- 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;
557
- declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
474
+ declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<GridApiPro$1>, selectionStatus: React$1.MutableRefObject<SelectionStatus>, forceUpdate: React$1.Dispatch<React$1.SetStateAction<number>>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
475
+ declare const ServerSideControlledPagination: React$1.FC<ServerSideControlledPaginationProps>;
558
476
 
559
477
  interface TextCellProps extends ComponentProps<'div'> {
560
478
  /** Including Badge Component. */
@@ -582,16 +500,16 @@ interface TextCellProps extends ComponentProps<'div'> {
582
500
  */
583
501
  declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
584
502
 
585
- type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
586
- type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
503
+ type GridToolbarColumnsButtonProps = React.ComponentProps<typeof GridToolbarColumnsButton>;
504
+ type GridToolbarDensitySelectorProps = React.ComponentProps<typeof GridToolbarDensitySelector>;
587
505
  type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
588
506
  interface ToolbarProps {
589
507
  /** Props to forward to the column button. */
590
- columnsButtonProps?: GridToolbarColumnsProps;
508
+ columnsButtonProps?: GridToolbarColumnsButtonProps;
591
509
  /** Column button ref. */
592
510
  columnsButtonRef?: RefObject<HTMLButtonElement>;
593
511
  /** Props to forward to the density button. */
594
- densityButtonProps?: GridToolbarDensityProps;
512
+ densityButtonProps?: GridToolbarDensitySelectorProps;
595
513
  /** Density button ref. */
596
514
  densityButtonRef?: RefObject<HTMLButtonElement>;
597
515
  /** Props to forward to the export button. */
@@ -631,16 +549,16 @@ declare global {
631
549
  }
632
550
  }
633
551
  /** ------ */
634
- declare const Toolbar: React.FC<ToolbarProps>;
552
+ declare const Toolbar: React$1.FC<ToolbarProps>;
635
553
 
636
554
  type ToolbarWrapperProps = {
637
555
  hideToolbar: DataGridProps['hideToolbar'];
638
- RenderedToolbar: React.JSXElementConstructor<any>;
556
+ RenderedToolbar: React$1.JSXElementConstructor<any>;
639
557
  filterModel: DataGridProps['filterModel'];
640
558
  onFilterModelChange: DataGridProps['onFilterModelChange'];
641
559
  pagination: DataGridProps['pagination'];
642
560
  paginationPlacement: DataGridProps['paginationPlacement'];
643
- selectionStatus: React.MutableRefObject<SelectionStatus>;
561
+ selectionStatus: React$1.MutableRefObject<SelectionStatus>;
644
562
  apiRef: DataGridProps['apiRef'];
645
563
  isRowSelectable: DataGridProps['isRowSelectable'];
646
564
  paginationModel: DataGridProps['paginationModel'];
@@ -650,6 +568,6 @@ type ToolbarWrapperProps = {
650
568
  paginationMode?: DataGridProps['paginationMode'];
651
569
  rowCount?: DataGridProps['rowCount'];
652
570
  };
653
- declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
571
+ declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
654
572
 
655
573
  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 };