@redsift/table 11.10.0-muiv7 → 11.11.0-muiv6-alpha.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/_internal/BasePopper.js +186 -190
- package/_internal/BasePopper.js.map +1 -1
- package/_internal/ControlledPagination.js +5576 -6996
- package/_internal/ControlledPagination.js.map +1 -1
- package/_internal/DataGrid2.js +39 -39
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Portal.js +1686 -3886
- package/_internal/Portal.js.map +1 -1
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +774 -683
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/Toolbar2.js +5 -22
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/useControlledDatagridState.js +38 -947
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +291 -172
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +7 -7
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
|
|
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: () =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
declare const
|
|
19
|
-
|
|
20
|
-
|
|
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:
|
|
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,
|
|
93
|
+
declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
25
94
|
|
|
26
|
-
declare const DOES_NOT_CONTAIN:
|
|
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:
|
|
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:
|
|
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
|
|
34
|
-
headerLabel?: string | undefined;
|
|
117
|
+
label: string;
|
|
35
118
|
value: string;
|
|
36
|
-
getApplyFilterFn:
|
|
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:
|
|
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
|
|
46
|
-
headerLabel?: string | undefined;
|
|
130
|
+
label: string;
|
|
47
131
|
value: string;
|
|
48
|
-
getApplyFilterFn:
|
|
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:
|
|
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
|
|
58
|
-
headerLabel?: string | undefined;
|
|
143
|
+
label: string;
|
|
59
144
|
value: string;
|
|
60
|
-
getApplyFilterFn:
|
|
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:
|
|
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
|
|
70
|
-
headerLabel?: string | undefined;
|
|
156
|
+
label: string;
|
|
71
157
|
value: string;
|
|
72
|
-
getApplyFilterFn:
|
|
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:
|
|
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
|
|
82
|
-
headerLabel?: string | undefined;
|
|
169
|
+
label: string;
|
|
83
170
|
value: string;
|
|
84
|
-
getApplyFilterFn:
|
|
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,
|
|
174
|
+
declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
91
175
|
|
|
92
|
-
declare const CONTAINS_ANY_OF:
|
|
93
|
-
|
|
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:
|
|
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
|
|
99
|
-
headerLabel?: string | undefined;
|
|
197
|
+
label: string;
|
|
100
198
|
value: string;
|
|
101
|
-
getApplyFilterFn:
|
|
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:
|
|
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:
|
|
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
|
|
113
|
-
headerLabel?: string | undefined;
|
|
217
|
+
label: string;
|
|
114
218
|
value: string;
|
|
115
|
-
getApplyFilterFn:
|
|
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:
|
|
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
|
|
125
|
-
headerLabel?: string | undefined;
|
|
230
|
+
label: string;
|
|
126
231
|
value: string;
|
|
127
|
-
getApplyFilterFn:
|
|
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:
|
|
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
|
|
137
|
-
headerLabel?: string | undefined;
|
|
243
|
+
label: string;
|
|
138
244
|
value: string;
|
|
139
|
-
getApplyFilterFn:
|
|
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:
|
|
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
|
|
149
|
-
headerLabel?: string | undefined;
|
|
256
|
+
label: string;
|
|
150
257
|
value: string;
|
|
151
|
-
getApplyFilterFn:
|
|
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:
|
|
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,
|
|
160
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any,
|
|
161
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<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,
|
|
171
|
-
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any,
|
|
172
|
-
rsSingleSelect: (
|
|
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
|
|
175
|
-
headerLabel?: string | undefined;
|
|
283
|
+
label: string;
|
|
176
284
|
value: string;
|
|
177
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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;
|
|
288
|
+
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;
|
|
181
291
|
} | {
|
|
182
292
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
183
|
-
label
|
|
184
|
-
headerLabel?: string | undefined;
|
|
293
|
+
label: string;
|
|
185
294
|
value: string;
|
|
186
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
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
|
|
194
|
-
headerLabel?: string | undefined;
|
|
299
|
+
label: string;
|
|
195
300
|
value: string;
|
|
196
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
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
|
|
203
|
-
headerLabel?: string | undefined;
|
|
304
|
+
label: string;
|
|
204
305
|
value: string;
|
|
205
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
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
|
|
213
|
-
headerLabel?: string | undefined;
|
|
310
|
+
label: string;
|
|
214
311
|
value: string;
|
|
215
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
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
|
|
222
|
-
headerLabel?: string | undefined;
|
|
315
|
+
label: string;
|
|
223
316
|
value: string;
|
|
224
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
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
|
|
232
|
-
headerLabel?: string | undefined;
|
|
321
|
+
label: string;
|
|
233
322
|
value: string;
|
|
234
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
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
|
|
241
|
-
headerLabel?: string | undefined;
|
|
326
|
+
label: string;
|
|
242
327
|
value: string;
|
|
243
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
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,
|
|
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>;
|
|
@@ -319,9 +401,46 @@ interface ExtendedGridPaginationModel extends GridPaginationModel {
|
|
|
319
401
|
direction?: 'next' | 'back';
|
|
320
402
|
}
|
|
321
403
|
|
|
322
|
-
type OperatorValue = string | string[];
|
|
404
|
+
type OperatorValue = string | string[] | undefined;
|
|
405
|
+
/**
|
|
406
|
+
* Converts internal bracket notation to display-friendly dot notation.
|
|
407
|
+
*
|
|
408
|
+
* Display format (CloudFront-safe, no brackets):
|
|
409
|
+
* - `field[operator]=value` → `field.operator=value` (value URL-encoded if needed)
|
|
410
|
+
* - `field[isAnyOf]=list[a,b,c]` → `field.isAnyOf=a,b,c` (comma-separated, values URL-encoded)
|
|
411
|
+
* - `_sortColumn=[field,desc]` → `_sortColumn=field.desc`
|
|
412
|
+
* - `_pagination=[0,25,next]` → `_pagination=0.25.next`
|
|
413
|
+
* - `_pinnedColumnsLeft=[a,b,c]` → `_pinnedColumnsLeft=a,b,c` (comma-separated)
|
|
414
|
+
* - `_columnVisibility=[a,b,c]` → `_columnVisibility=a,b,c` (comma-separated)
|
|
415
|
+
*/
|
|
416
|
+
declare const convertToDisplayFormat: (search: string) => string;
|
|
417
|
+
/**
|
|
418
|
+
* Converts display-friendly dot notation back to internal bracket notation.
|
|
419
|
+
*
|
|
420
|
+
* Internal format (server-side compatible):
|
|
421
|
+
* - `field.operator=value` → `_field[operator,type]=value`
|
|
422
|
+
* - `field.isAnyOf=a,b,c` → `_field[isAnyOf,type]=list[a,b,c]`
|
|
423
|
+
* - `_sortColumn=field.desc` → `_sortColumn=[field,desc]`
|
|
424
|
+
* - `_pagination=0.25.next` → `_pagination=[0,25,next]`
|
|
425
|
+
* - `_pinnedColumnsLeft=a,b,c` → `_pinnedColumnsLeft=[a,b,c]`
|
|
426
|
+
* - `_columnVisibility=a,b,c` → `_columnVisibility=[a,b,c]`
|
|
427
|
+
*/
|
|
428
|
+
declare const convertFromDisplayFormat: (search: string, columns: DataGridProps['columns']) => string;
|
|
429
|
+
/**
|
|
430
|
+
* Detects if search string is in display format and converts it to internal format.
|
|
431
|
+
*/
|
|
432
|
+
declare const getDecodedSearchFromUrl: (search: string, columns: DataGridProps['columns']) => string;
|
|
433
|
+
/**
|
|
434
|
+
* Builds a display-format query string from internal format.
|
|
435
|
+
*/
|
|
436
|
+
declare const buildQueryParamsString: (search: string) => string;
|
|
437
|
+
/**
|
|
438
|
+
* Compares two search strings for equality, ignoring parameter order.
|
|
439
|
+
* This prevents infinite update loops when the same parameters appear in different order.
|
|
440
|
+
*/
|
|
441
|
+
declare const areSearchStringsEqual: (search1: string, search2: string) => boolean;
|
|
323
442
|
declare const decodeValue: (value: string) => OperatorValue;
|
|
324
|
-
declare const encodeValue: (value: string | undefined) => string;
|
|
443
|
+
declare const encodeValue: (value: string | string[] | undefined) => string;
|
|
325
444
|
declare const urlSearchParamsToString: (searchParams: URLSearchParams) => string;
|
|
326
445
|
declare const numberOperatorEncoder: Record<string, string>;
|
|
327
446
|
declare const numberOperatorDecoder: Record<string, string>;
|
|
@@ -332,7 +451,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
|
|
|
332
451
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
333
452
|
/** SORT */
|
|
334
453
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps['columns']) => GridSortModel | 'invalid';
|
|
335
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
454
|
+
declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
|
|
336
455
|
/** PAGINATION */
|
|
337
456
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
|
|
338
457
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
@@ -340,7 +459,7 @@ declare const getSearchParamsFromPagination: (pagination: ExtendedGridPagination
|
|
|
340
459
|
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
|
|
341
460
|
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
|
|
342
461
|
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
|
|
343
|
-
declare const getSearchParamsFromPinnedColumns: (pinnedColumns:
|
|
462
|
+
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
|
|
344
463
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
345
464
|
type FinalSearchInput = {
|
|
346
465
|
localStorageVersion: number;
|
|
@@ -348,7 +467,7 @@ type FinalSearchInput = {
|
|
|
348
467
|
sortModel: GridSortModel;
|
|
349
468
|
paginationModel: ExtendedGridPaginationModel;
|
|
350
469
|
columnsVisibilityModel: GridColumnVisibilityModel;
|
|
351
|
-
pinnedColumnsModel:
|
|
470
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
352
471
|
search: string;
|
|
353
472
|
columns: DataGridProps['columns'];
|
|
354
473
|
};
|
|
@@ -374,7 +493,7 @@ type ModelsTable = {
|
|
|
374
493
|
sortModel: GridSortModel;
|
|
375
494
|
paginationModel: ExtendedGridPaginationModel;
|
|
376
495
|
columnVisibilityModel: GridColumnVisibilityModel;
|
|
377
|
-
pinnedColumnsModel:
|
|
496
|
+
pinnedColumnsModel: PinnedColumns;
|
|
378
497
|
};
|
|
379
498
|
/** Return the state of the table given the URL and the local storage state */
|
|
380
499
|
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
@@ -383,21 +502,21 @@ type DataGridModel = {
|
|
|
383
502
|
sortModel: GridSortModel;
|
|
384
503
|
paginationModel: ExtendedGridPaginationModel;
|
|
385
504
|
columnsModel: GridColumnVisibilityModel;
|
|
386
|
-
pinnedColumnsModel:
|
|
505
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
387
506
|
};
|
|
388
507
|
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps['columns']) => void;
|
|
389
508
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
390
509
|
|
|
391
|
-
declare const BaseButton: React
|
|
510
|
+
declare const BaseButton: React.JSXElementConstructor<any>;
|
|
392
511
|
|
|
393
|
-
declare const BaseCheckbox: React
|
|
512
|
+
declare const BaseCheckbox: React.JSXElementConstructor<any>;
|
|
394
513
|
|
|
395
514
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
396
|
-
declare const BaseIcon: React
|
|
515
|
+
declare const BaseIcon: React.JSXElementConstructor<any>;
|
|
397
516
|
|
|
398
|
-
declare const BasePopper: React
|
|
517
|
+
declare const BasePopper: React.JSXElementConstructor<any>;
|
|
399
518
|
|
|
400
|
-
declare const BaseTextField: React
|
|
519
|
+
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
401
520
|
|
|
402
521
|
interface CompletionResponseItem {
|
|
403
522
|
field: string;
|
|
@@ -426,7 +545,7 @@ interface FilterConfig {
|
|
|
426
545
|
}
|
|
427
546
|
interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
|
|
428
547
|
nlpFilterConfig: FilterConfig;
|
|
429
|
-
onFilterModelChange
|
|
548
|
+
onFilterModelChange: (filterModel: GridFilterModel) => void;
|
|
430
549
|
dateFormat?: string;
|
|
431
550
|
defaultModel?: string;
|
|
432
551
|
defaultFilter?: CompletionResponse;
|
|
@@ -452,12 +571,12 @@ type ControlledPaginationProps = {
|
|
|
452
571
|
selectionStatus: SelectionStatus;
|
|
453
572
|
apiRef: MutableRefObject<GridApiPro>;
|
|
454
573
|
paginationModel: GridPaginationModel;
|
|
455
|
-
onPaginationModelChange: (model: GridPaginationModel
|
|
574
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
456
575
|
pageSizeOptions?: number[];
|
|
457
576
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
458
577
|
paginationProps?: DataGridProps['paginationProps'];
|
|
459
578
|
};
|
|
460
|
-
declare const ControlledPagination: React
|
|
579
|
+
declare const ControlledPagination: React.FC<ControlledPaginationProps>;
|
|
461
580
|
|
|
462
581
|
type ServerSideControlledPaginationProps = {
|
|
463
582
|
displaySelection?: boolean;
|
|
@@ -465,14 +584,14 @@ type ServerSideControlledPaginationProps = {
|
|
|
465
584
|
displayPagination?: boolean;
|
|
466
585
|
selectionStatus: SelectionStatus;
|
|
467
586
|
paginationModel: GridPaginationModel;
|
|
468
|
-
onPaginationModelChange: (model: GridPaginationModel
|
|
587
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
469
588
|
pageSizeOptions?: number[];
|
|
470
589
|
paginationProps?: DataGridProps['paginationProps'];
|
|
471
590
|
rowCount: number;
|
|
472
591
|
loading?: boolean;
|
|
473
592
|
};
|
|
474
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React
|
|
475
|
-
declare const ServerSideControlledPagination: React
|
|
593
|
+
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;
|
|
594
|
+
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
476
595
|
|
|
477
596
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
478
597
|
/** Including Badge Component. */
|
|
@@ -500,16 +619,16 @@ interface TextCellProps extends ComponentProps<'div'> {
|
|
|
500
619
|
*/
|
|
501
620
|
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
502
621
|
|
|
503
|
-
type
|
|
504
|
-
type
|
|
622
|
+
type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
|
|
623
|
+
type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
|
|
505
624
|
type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
|
|
506
625
|
interface ToolbarProps {
|
|
507
626
|
/** Props to forward to the column button. */
|
|
508
|
-
columnsButtonProps?:
|
|
627
|
+
columnsButtonProps?: GridToolbarColumnsProps;
|
|
509
628
|
/** Column button ref. */
|
|
510
629
|
columnsButtonRef?: RefObject<HTMLButtonElement>;
|
|
511
630
|
/** Props to forward to the density button. */
|
|
512
|
-
densityButtonProps?:
|
|
631
|
+
densityButtonProps?: GridToolbarDensityProps;
|
|
513
632
|
/** Density button ref. */
|
|
514
633
|
densityButtonRef?: RefObject<HTMLButtonElement>;
|
|
515
634
|
/** Props to forward to the export button. */
|
|
@@ -549,16 +668,16 @@ declare global {
|
|
|
549
668
|
}
|
|
550
669
|
}
|
|
551
670
|
/** ------ */
|
|
552
|
-
declare const Toolbar: React
|
|
671
|
+
declare const Toolbar: React.FC<ToolbarProps>;
|
|
553
672
|
|
|
554
673
|
type ToolbarWrapperProps = {
|
|
555
674
|
hideToolbar: DataGridProps['hideToolbar'];
|
|
556
|
-
RenderedToolbar: React
|
|
675
|
+
RenderedToolbar: React.JSXElementConstructor<any>;
|
|
557
676
|
filterModel: DataGridProps['filterModel'];
|
|
558
677
|
onFilterModelChange: DataGridProps['onFilterModelChange'];
|
|
559
678
|
pagination: DataGridProps['pagination'];
|
|
560
679
|
paginationPlacement: DataGridProps['paginationPlacement'];
|
|
561
|
-
selectionStatus: React
|
|
680
|
+
selectionStatus: React.MutableRefObject<SelectionStatus>;
|
|
562
681
|
apiRef: DataGridProps['apiRef'];
|
|
563
682
|
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
564
683
|
paginationModel: DataGridProps['paginationModel'];
|
|
@@ -568,6 +687,6 @@ type ToolbarWrapperProps = {
|
|
|
568
687
|
paginationMode?: DataGridProps['paginationMode'];
|
|
569
688
|
rowCount?: DataGridProps['rowCount'];
|
|
570
689
|
};
|
|
571
|
-
declare const ToolbarWrapper: React
|
|
690
|
+
declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
|
|
572
691
|
|
|
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 };
|
|
692
|
+
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, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, 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 };
|