@redsift/table 12.0.0-muiv7 → 12.1.0-muiv6

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