@redsift/table 11.10.0-muiv7 → 11.11.0-muiv5
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 +5592 -7032
- package/_internal/ControlledPagination.js.map +1 -1
- package/_internal/DataGrid2.js +110 -94
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +13 -13
- 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 +616 -2220
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/TextCell2.js +1 -1
- package/_internal/Toolbar2.js +7 -24
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +17 -11
- package/_internal/ToolbarWrapper2.js.map +1 -1
- package/_internal/_rollupPluginBabelHelpers.js +1 -1
- package/_internal/useControlledDatagridState.js +1850 -924
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +309 -190
- package/index.js +3 -48
- package/index.js.map +1 -1
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -1,251 +1,327 @@
|
|
|
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 { GridNativeColTypes, GridColumnTypesRecord, GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputValue, GridFilterInputSingleSelect, GridFilterInputMultipleValue, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumns, GridSlotsComponent, GridSelectionModel, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
6
|
+
export { GridAlignment, GridColDef, GridColumns, GridFilterItem, GridFilterModel, GridSelectionModel, 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
|
+
extendType: GridNativeColTypes;
|
|
17
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
18
|
+
};
|
|
19
|
+
declare const getRsNumberColumnType: () => {
|
|
20
|
+
extendType: GridNativeColTypes;
|
|
21
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
22
|
+
};
|
|
23
|
+
declare const getRsSingleSelectColumnType: () => {
|
|
24
|
+
extendType: GridNativeColTypes;
|
|
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, any, any>) => 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, any, any>) => 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, any, any>) => boolean) | null;
|
|
40
|
+
})[];
|
|
41
|
+
};
|
|
42
|
+
declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
|
|
43
|
+
extendType: GridNativeColTypes;
|
|
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, any, any>) => 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, any, any>) => boolean) | null;
|
|
54
|
+
})[];
|
|
55
|
+
};
|
|
56
|
+
declare const getRsMultipleSelectColumnType: () => {
|
|
57
|
+
extendType: GridNativeColTypes;
|
|
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, any, any>) => 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, any, any>) => boolean) | null;
|
|
68
|
+
})[];
|
|
69
|
+
};
|
|
70
|
+
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
|
|
71
|
+
extendType: GridNativeColTypes;
|
|
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, any, any>) => 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, any, any>) => boolean) | null;
|
|
82
|
+
})[];
|
|
83
|
+
};
|
|
84
|
+
declare const customColumnTypes: 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) => 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:
|
|
146
|
-
|
|
147
|
-
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
148
|
-
label?: string | undefined;
|
|
149
|
-
headerLabel?: string | undefined;
|
|
248
|
+
declare const IS_NOT_ANY_OF: {
|
|
249
|
+
label: string;
|
|
150
250
|
value: string;
|
|
151
|
-
getApplyFilterFn:
|
|
152
|
-
|
|
153
|
-
getValueAsString?: ((value: any) => string) | undefined;
|
|
154
|
-
requiresFilterValue?: boolean | undefined;
|
|
251
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
252
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
155
253
|
};
|
|
156
254
|
|
|
157
|
-
declare const STARTS_WITH_ANY_OF:
|
|
255
|
+
declare const STARTS_WITH_ANY_OF: {
|
|
256
|
+
label: string;
|
|
257
|
+
value: string;
|
|
258
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
259
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
260
|
+
};
|
|
158
261
|
|
|
159
|
-
declare const getGridStringArrayOperators: () => GridFilterOperator<any,
|
|
160
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any,
|
|
161
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any,
|
|
262
|
+
declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
263
|
+
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
|
|
264
|
+
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
|
|
162
265
|
|
|
163
266
|
declare const operatorList: {
|
|
164
267
|
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
165
268
|
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
166
269
|
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
167
|
-
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
168
|
-
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
270
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
|
|
271
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
|
|
169
272
|
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: (
|
|
273
|
+
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
274
|
+
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
275
|
+
rsSingleSelect: ({
|
|
173
276
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
174
|
-
label
|
|
175
|
-
headerLabel?: string | undefined;
|
|
277
|
+
label: string;
|
|
176
278
|
value: string;
|
|
177
|
-
getApplyFilterFn: _mui_x_data_grid_pro.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
279
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
280
|
+
} | {
|
|
281
|
+
label: string;
|
|
282
|
+
value: string;
|
|
283
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
284
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
|
|
181
285
|
} | {
|
|
182
286
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
183
|
-
label
|
|
184
|
-
headerLabel?: string | undefined;
|
|
287
|
+
label: string;
|
|
185
288
|
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;
|
|
289
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
190
290
|
})[];
|
|
191
291
|
rsSingleSelectWithShortOperatorList: ({
|
|
192
292
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
193
|
-
label
|
|
194
|
-
headerLabel?: string | undefined;
|
|
293
|
+
label: string;
|
|
195
294
|
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;
|
|
295
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
200
296
|
} | {
|
|
201
297
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
202
|
-
label
|
|
203
|
-
headerLabel?: string | undefined;
|
|
298
|
+
label: string;
|
|
204
299
|
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;
|
|
300
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
209
301
|
})[];
|
|
210
302
|
rsMultipleSelect: ({
|
|
211
303
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
212
|
-
label
|
|
213
|
-
headerLabel?: string | undefined;
|
|
304
|
+
label: string;
|
|
214
305
|
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;
|
|
306
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
219
307
|
} | {
|
|
220
308
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
221
|
-
label
|
|
222
|
-
headerLabel?: string | undefined;
|
|
309
|
+
label: string;
|
|
223
310
|
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;
|
|
311
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
228
312
|
})[];
|
|
229
313
|
rsMultipleSelectWithShortOperatorList: ({
|
|
230
314
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
231
|
-
label
|
|
232
|
-
headerLabel?: string | undefined;
|
|
315
|
+
label: string;
|
|
233
316
|
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;
|
|
317
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
238
318
|
} | {
|
|
239
319
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
240
|
-
label
|
|
241
|
-
headerLabel?: string | undefined;
|
|
320
|
+
label: string;
|
|
242
321
|
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;
|
|
322
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
|
|
247
323
|
})[];
|
|
248
|
-
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any,
|
|
324
|
+
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
249
325
|
};
|
|
250
326
|
|
|
251
327
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
@@ -315,32 +391,69 @@ declare const StatefulDataGrid: Comp<StatefulDataGridProps, HTMLDivElement>;
|
|
|
315
391
|
interface ExtendedGridFilterModel extends GridFilterModel {
|
|
316
392
|
quickFilterValues?: string[];
|
|
317
393
|
}
|
|
318
|
-
interface ExtendedGridPaginationModel
|
|
394
|
+
interface ExtendedGridPaginationModel {
|
|
395
|
+
page: number;
|
|
396
|
+
pageSize: number;
|
|
319
397
|
direction?: 'next' | 'back';
|
|
320
398
|
}
|
|
321
399
|
|
|
322
|
-
type OperatorValue = string | string[];
|
|
400
|
+
type OperatorValue = string | string[] | undefined;
|
|
401
|
+
/**
|
|
402
|
+
* Converts internal bracket notation to display-friendly dot notation.
|
|
403
|
+
*
|
|
404
|
+
* Display format (CloudFront-safe, no brackets):
|
|
405
|
+
* - `field[operator]=value` → `field.operator=value` (value URL-encoded if needed)
|
|
406
|
+
* - `field[isAnyOf]=list[a,b,c]` → `field.isAnyOf=a,b,c` (comma-separated, values URL-encoded)
|
|
407
|
+
* - `_sortColumn=[field,desc]` → `_sortColumn=field.desc`
|
|
408
|
+
* - `_pagination=[0,25,next]` → `_pagination=0.25.next`
|
|
409
|
+
* - `_pinnedColumnsLeft=[a,b,c]` → `_pinnedColumnsLeft=a,b,c` (comma-separated)
|
|
410
|
+
* - `_columnVisibility=[a,b,c]` → `_columnVisibility=a,b,c` (comma-separated)
|
|
411
|
+
*/
|
|
412
|
+
declare const convertToDisplayFormat: (search: string) => string;
|
|
413
|
+
/**
|
|
414
|
+
* Converts display-friendly dot notation back to internal bracket notation.
|
|
415
|
+
*
|
|
416
|
+
* Internal format (server-side compatible):
|
|
417
|
+
* - `field.operator=value` → `_field[operator,type]=value`
|
|
418
|
+
* - `field.isAnyOf=a,b,c` → `_field[isAnyOf,type]=list[a,b,c]`
|
|
419
|
+
* - `_sortColumn=field.desc` → `_sortColumn=[field,desc]`
|
|
420
|
+
* - `_pagination=0.25.next` → `_pagination=[0,25,next]`
|
|
421
|
+
* - `_pinnedColumnsLeft=a,b,c` → `_pinnedColumnsLeft=[a,b,c]`
|
|
422
|
+
* - `_columnVisibility=a,b,c` → `_columnVisibility=[a,b,c]`
|
|
423
|
+
*/
|
|
424
|
+
declare const convertFromDisplayFormat: (search: string, columns: DataGridProps['columns']) => string;
|
|
425
|
+
/**
|
|
426
|
+
* Detects if search string is in display format and converts it to internal format.
|
|
427
|
+
*/
|
|
428
|
+
declare const getDecodedSearchFromUrl: (search: string, columns: DataGridProps['columns']) => string;
|
|
429
|
+
/**
|
|
430
|
+
* Builds a display-format query string from internal format.
|
|
431
|
+
*/
|
|
432
|
+
declare const buildQueryParamsString: (search: string) => string;
|
|
433
|
+
/**
|
|
434
|
+
* Compares two search strings for equality, ignoring parameter order.
|
|
435
|
+
* This prevents infinite update loops when the same parameters appear in different order.
|
|
436
|
+
*/
|
|
437
|
+
declare const areSearchStringsEqual: (search1: string, search2: string) => boolean;
|
|
323
438
|
declare const decodeValue: (value: string) => OperatorValue;
|
|
324
|
-
declare const encodeValue: (value: string | undefined) => string;
|
|
439
|
+
declare const encodeValue: (value: string | string[] | undefined) => string;
|
|
325
440
|
declare const urlSearchParamsToString: (searchParams: URLSearchParams) => string;
|
|
326
441
|
declare const numberOperatorEncoder: Record<string, string>;
|
|
327
442
|
declare const numberOperatorDecoder: Record<string, string>;
|
|
328
|
-
declare const isOperatorValueValid: (field: string, operator: OperatorValue, columns: DataGridProps['columns']) => boolean;
|
|
329
|
-
declare const isValueValid: (value: OperatorValue, field: string, columns: DataGridProps['columns'], operator: OperatorValue) => boolean;
|
|
330
443
|
/** FILTERS */
|
|
331
444
|
declare const getFilterModelFromString: (searchString: string, columns: DataGridProps['columns']) => ExtendedGridFilterModel | 'invalid';
|
|
332
445
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
333
446
|
/** SORT */
|
|
334
447
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps['columns']) => GridSortModel | 'invalid';
|
|
335
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
448
|
+
declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
|
|
336
449
|
/** PAGINATION */
|
|
337
450
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
|
|
338
451
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
339
452
|
/** COLUMN VISIBILITY */
|
|
340
|
-
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
|
|
341
453
|
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
|
|
454
|
+
declare const getColumnVisibilityFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
|
|
342
455
|
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
|
|
343
|
-
declare const getSearchParamsFromPinnedColumns: (pinnedColumns:
|
|
456
|
+
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
|
|
344
457
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
345
458
|
type FinalSearchInput = {
|
|
346
459
|
localStorageVersion: number;
|
|
@@ -348,7 +461,7 @@ type FinalSearchInput = {
|
|
|
348
461
|
sortModel: GridSortModel;
|
|
349
462
|
paginationModel: ExtendedGridPaginationModel;
|
|
350
463
|
columnsVisibilityModel: GridColumnVisibilityModel;
|
|
351
|
-
pinnedColumnsModel:
|
|
464
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
352
465
|
search: string;
|
|
353
466
|
columns: DataGridProps['columns'];
|
|
354
467
|
};
|
|
@@ -374,7 +487,7 @@ type ModelsTable = {
|
|
|
374
487
|
sortModel: GridSortModel;
|
|
375
488
|
paginationModel: ExtendedGridPaginationModel;
|
|
376
489
|
columnVisibilityModel: GridColumnVisibilityModel;
|
|
377
|
-
pinnedColumnsModel:
|
|
490
|
+
pinnedColumnsModel: PinnedColumns;
|
|
378
491
|
};
|
|
379
492
|
/** Return the state of the table given the URL and the local storage state */
|
|
380
493
|
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
@@ -383,29 +496,29 @@ type DataGridModel = {
|
|
|
383
496
|
sortModel: GridSortModel;
|
|
384
497
|
paginationModel: ExtendedGridPaginationModel;
|
|
385
498
|
columnsModel: GridColumnVisibilityModel;
|
|
386
|
-
pinnedColumnsModel:
|
|
499
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
387
500
|
};
|
|
388
501
|
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps['columns']) => void;
|
|
389
502
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
390
503
|
|
|
391
|
-
declare const BaseButton: React
|
|
504
|
+
declare const BaseButton: React.JSXElementConstructor<any>;
|
|
392
505
|
|
|
393
|
-
declare const BaseCheckbox: React
|
|
506
|
+
declare const BaseCheckbox: React.JSXElementConstructor<any>;
|
|
394
507
|
|
|
395
508
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
396
|
-
declare const BaseIcon: React
|
|
509
|
+
declare const BaseIcon: React.JSXElementConstructor<any>;
|
|
397
510
|
|
|
398
|
-
declare const BasePopper: React
|
|
511
|
+
declare const BasePopper: React.JSXElementConstructor<any>;
|
|
399
512
|
|
|
400
|
-
declare const BaseTextField: React
|
|
513
|
+
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
401
514
|
|
|
402
515
|
interface CompletionResponseItem {
|
|
403
|
-
|
|
404
|
-
|
|
516
|
+
columnField: string;
|
|
517
|
+
operatorValue: string;
|
|
405
518
|
value?: string;
|
|
406
519
|
}
|
|
407
520
|
type CompletionResponse = {
|
|
408
|
-
|
|
521
|
+
linkOperator: 'and' | 'or';
|
|
409
522
|
items: CompletionResponseItem[];
|
|
410
523
|
};
|
|
411
524
|
interface LocaleText {
|
|
@@ -426,7 +539,7 @@ interface FilterConfig {
|
|
|
426
539
|
}
|
|
427
540
|
interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
|
|
428
541
|
nlpFilterConfig: FilterConfig;
|
|
429
|
-
onFilterModelChange
|
|
542
|
+
onFilterModelChange: (filterModel: GridFilterModel) => void;
|
|
430
543
|
dateFormat?: string;
|
|
431
544
|
defaultModel?: string;
|
|
432
545
|
defaultFilter?: CompletionResponse;
|
|
@@ -451,28 +564,32 @@ type ControlledPaginationProps = {
|
|
|
451
564
|
displayPagination?: boolean;
|
|
452
565
|
selectionStatus: SelectionStatus;
|
|
453
566
|
apiRef: MutableRefObject<GridApiPro>;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
567
|
+
page: number;
|
|
568
|
+
onPageChange: (page: number) => void;
|
|
569
|
+
pageSize: number;
|
|
570
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
571
|
+
rowsPerPageOptions?: number[];
|
|
457
572
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
458
573
|
paginationProps?: DataGridProps['paginationProps'];
|
|
459
574
|
};
|
|
460
|
-
declare const ControlledPagination: React
|
|
575
|
+
declare const ControlledPagination: React.FC<ControlledPaginationProps>;
|
|
461
576
|
|
|
462
577
|
type ServerSideControlledPaginationProps = {
|
|
463
578
|
displaySelection?: boolean;
|
|
464
579
|
displayRowsPerPage?: boolean;
|
|
465
580
|
displayPagination?: boolean;
|
|
466
581
|
selectionStatus: SelectionStatus;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
582
|
+
page: number;
|
|
583
|
+
onPageChange: (page: number) => void;
|
|
584
|
+
pageSize: number;
|
|
585
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
586
|
+
rowsPerPageOptions?: number[];
|
|
470
587
|
paginationProps?: DataGridProps['paginationProps'];
|
|
471
588
|
rowCount: number;
|
|
472
589
|
loading?: boolean;
|
|
473
590
|
};
|
|
474
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel:
|
|
475
|
-
declare const ServerSideControlledPagination: React
|
|
591
|
+
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridSelectionModel, apiRef: React.MutableRefObject<GridApiPro>, selectionStatus: React.MutableRefObject<SelectionStatus>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
592
|
+
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
476
593
|
|
|
477
594
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
478
595
|
/** Including Badge Component. */
|
|
@@ -500,16 +617,16 @@ interface TextCellProps extends ComponentProps<'div'> {
|
|
|
500
617
|
*/
|
|
501
618
|
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
502
619
|
|
|
503
|
-
type
|
|
504
|
-
type
|
|
620
|
+
type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
|
|
621
|
+
type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
|
|
505
622
|
type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
|
|
506
623
|
interface ToolbarProps {
|
|
507
624
|
/** Props to forward to the column button. */
|
|
508
|
-
columnsButtonProps?:
|
|
625
|
+
columnsButtonProps?: GridToolbarColumnsProps;
|
|
509
626
|
/** Column button ref. */
|
|
510
627
|
columnsButtonRef?: RefObject<HTMLButtonElement>;
|
|
511
628
|
/** Props to forward to the density button. */
|
|
512
|
-
densityButtonProps?:
|
|
629
|
+
densityButtonProps?: GridToolbarDensityProps;
|
|
513
630
|
/** Density button ref. */
|
|
514
631
|
densityButtonRef?: RefObject<HTMLButtonElement>;
|
|
515
632
|
/** Props to forward to the export button. */
|
|
@@ -549,25 +666,27 @@ declare global {
|
|
|
549
666
|
}
|
|
550
667
|
}
|
|
551
668
|
/** ------ */
|
|
552
|
-
declare const Toolbar: React
|
|
669
|
+
declare const Toolbar: React.FC<ToolbarProps>;
|
|
553
670
|
|
|
554
671
|
type ToolbarWrapperProps = {
|
|
555
672
|
hideToolbar: DataGridProps['hideToolbar'];
|
|
556
|
-
RenderedToolbar: React
|
|
673
|
+
RenderedToolbar: React.JSXElementConstructor<any>;
|
|
557
674
|
filterModel: DataGridProps['filterModel'];
|
|
558
675
|
onFilterModelChange: DataGridProps['onFilterModelChange'];
|
|
559
676
|
pagination: DataGridProps['pagination'];
|
|
560
677
|
paginationPlacement: DataGridProps['paginationPlacement'];
|
|
561
|
-
selectionStatus: React
|
|
678
|
+
selectionStatus: React.MutableRefObject<SelectionStatus>;
|
|
562
679
|
apiRef: DataGridProps['apiRef'];
|
|
563
680
|
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
681
|
+
page: DataGridProps['page'];
|
|
682
|
+
onPageChange: DataGridProps['onPageChange'];
|
|
683
|
+
pageSize: DataGridProps['pageSize'];
|
|
684
|
+
onPageSizeChange: DataGridProps['onPageSizeChange'];
|
|
685
|
+
rowsPerPageOptions: DataGridProps['rowsPerPageOptions'];
|
|
567
686
|
paginationProps: DataGridProps['paginationProps'];
|
|
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,
|
|
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_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, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|