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