@redsift/table 12.3.0 → 12.3.1-muiv6-alpha.2
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/CONTRIBUTING.md +1 -1
- package/_internal/BaseComponents.js +1 -1
- package/_internal/BasePopper.js +2448 -0
- package/_internal/BasePopper.js.map +1 -0
- package/_internal/ControlledPagination.js +10507 -0
- package/_internal/ControlledPagination.js.map +1 -0
- package/_internal/DataGrid2.js +54 -69
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Pagination.js +1 -1
- package/_internal/Portal.js +4363 -0
- package/_internal/Portal.js.map +1 -0
- package/_internal/StatefulDataGrid2.js +467 -732
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/Toolbar2.js +6 -23
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +1 -1
- package/_internal/useControlledDatagridState.js +35 -905
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +290 -430
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +10 -9
- package/_internal/BaseIconButton.js +0 -125
- package/_internal/BaseIconButton.js.map +0 -1
- package/_internal/ServerSideControlledPagination.js +0 -18751
- package/_internal/ServerSideControlledPagination.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,248 +1,330 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-
|
|
4
|
-
import
|
|
1
|
+
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
|
+
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';
|
|
3
|
+
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
4
|
+
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
5
|
+
import React, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
|
|
5
6
|
import { TablePaginationProps } from '@mui/material';
|
|
7
|
+
import { Theme, Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
|
|
8
|
+
import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
|
|
6
9
|
|
|
7
|
-
declare const DETAIL_PANEL_TOGGLE_COL_DEF:
|
|
10
|
+
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef;
|
|
8
11
|
|
|
9
|
-
declare const getRsStringColumnType: () =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
declare const
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
declare const getRsStringColumnType: () => {
|
|
13
|
+
type: string;
|
|
14
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
15
|
+
};
|
|
16
|
+
declare const getRsNumberColumnType: () => {
|
|
17
|
+
type: string;
|
|
18
|
+
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
19
|
+
};
|
|
20
|
+
declare const getRsSingleSelectColumnType: () => {
|
|
21
|
+
type: string;
|
|
22
|
+
filterOperators: ({
|
|
23
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
27
|
+
} | {
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
31
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleValue;
|
|
32
|
+
} | {
|
|
33
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
34
|
+
label: string;
|
|
35
|
+
value: string;
|
|
36
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
37
|
+
})[];
|
|
38
|
+
};
|
|
39
|
+
declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
|
|
40
|
+
type: string;
|
|
41
|
+
filterOperators: ({
|
|
42
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
46
|
+
} | {
|
|
47
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
48
|
+
label: string;
|
|
49
|
+
value: string;
|
|
50
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
51
|
+
})[];
|
|
52
|
+
};
|
|
53
|
+
declare const getRsMultipleSelectColumnType: () => {
|
|
54
|
+
type: string;
|
|
55
|
+
filterOperators: ({
|
|
56
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
57
|
+
label: string;
|
|
58
|
+
value: string;
|
|
59
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
60
|
+
} | {
|
|
61
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
65
|
+
})[];
|
|
66
|
+
};
|
|
67
|
+
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
|
|
68
|
+
type: string;
|
|
69
|
+
filterOperators: ({
|
|
70
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
71
|
+
label: string;
|
|
72
|
+
value: string;
|
|
73
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
74
|
+
} | {
|
|
75
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
76
|
+
label: string;
|
|
77
|
+
value: string;
|
|
78
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
79
|
+
})[];
|
|
80
|
+
};
|
|
81
|
+
declare const customColumnTypes: Partial<GridColumnTypesRecord>;
|
|
16
82
|
|
|
17
|
-
declare const IS_BETWEEN:
|
|
83
|
+
declare const IS_BETWEEN: {
|
|
84
|
+
label: string;
|
|
85
|
+
value: string;
|
|
86
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
87
|
+
InputComponent: (props: any) => JSX.Element;
|
|
88
|
+
};
|
|
18
89
|
|
|
19
|
-
declare const getGridNumericOperators: () => GridFilterOperator<any,
|
|
90
|
+
declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
20
91
|
|
|
21
|
-
declare const DOES_NOT_CONTAIN:
|
|
92
|
+
declare const DOES_NOT_CONTAIN: {
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
96
|
+
InputComponent: typeof GridFilterInputValue;
|
|
97
|
+
};
|
|
22
98
|
|
|
23
|
-
declare const DOES_NOT_EQUAL:
|
|
99
|
+
declare const DOES_NOT_EQUAL: {
|
|
100
|
+
label: string;
|
|
101
|
+
value: string;
|
|
102
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
103
|
+
InputComponent: typeof GridFilterInputValue;
|
|
104
|
+
};
|
|
24
105
|
|
|
25
|
-
declare const DOES_NOT_HAVE:
|
|
106
|
+
declare const DOES_NOT_HAVE: {
|
|
107
|
+
label: string;
|
|
108
|
+
value: string;
|
|
109
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
110
|
+
InputComponent: typeof GridFilterInputValue;
|
|
111
|
+
};
|
|
26
112
|
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
27
113
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
28
|
-
label
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
32
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
33
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
34
|
-
requiresFilterValue?: boolean;
|
|
114
|
+
label: string;
|
|
115
|
+
value: string;
|
|
116
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
35
117
|
};
|
|
36
118
|
|
|
37
|
-
declare const HAS:
|
|
119
|
+
declare const HAS: {
|
|
120
|
+
label: string;
|
|
121
|
+
value: string;
|
|
122
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
123
|
+
InputComponent: typeof GridFilterInputValue;
|
|
124
|
+
};
|
|
38
125
|
declare const HAS_WITH_SELECT: {
|
|
39
126
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
40
|
-
label
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
44
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
45
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
46
|
-
requiresFilterValue?: boolean;
|
|
127
|
+
label: string;
|
|
128
|
+
value: string;
|
|
129
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
47
130
|
};
|
|
48
131
|
|
|
49
|
-
declare const HAS_ONLY:
|
|
132
|
+
declare const HAS_ONLY: {
|
|
133
|
+
label: string;
|
|
134
|
+
value: string;
|
|
135
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
136
|
+
InputComponent: typeof GridFilterInputValue;
|
|
137
|
+
};
|
|
50
138
|
declare const HAS_ONLY_WITH_SELECT: {
|
|
51
139
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
52
|
-
label
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
56
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
57
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
58
|
-
requiresFilterValue?: boolean;
|
|
140
|
+
label: string;
|
|
141
|
+
value: string;
|
|
142
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
59
143
|
};
|
|
60
144
|
|
|
61
|
-
declare const IS:
|
|
145
|
+
declare const IS: {
|
|
146
|
+
label: string;
|
|
147
|
+
value: string;
|
|
148
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
149
|
+
InputComponent: typeof GridFilterInputValue;
|
|
150
|
+
};
|
|
62
151
|
declare const IS_WITH_SELECT: {
|
|
63
152
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
64
|
-
label
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
68
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
69
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
70
|
-
requiresFilterValue?: boolean;
|
|
153
|
+
label: string;
|
|
154
|
+
value: string;
|
|
155
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
71
156
|
};
|
|
72
157
|
|
|
73
|
-
declare const IS_NOT:
|
|
158
|
+
declare const IS_NOT: {
|
|
159
|
+
label: string;
|
|
160
|
+
value: string;
|
|
161
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
162
|
+
InputComponent: typeof GridFilterInputValue;
|
|
163
|
+
};
|
|
74
164
|
declare const IS_NOT_WITH_SELECT: {
|
|
75
165
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
76
|
-
label
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
80
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
81
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
82
|
-
requiresFilterValue?: boolean;
|
|
166
|
+
label: string;
|
|
167
|
+
value: string;
|
|
168
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
83
169
|
};
|
|
84
170
|
|
|
85
|
-
declare const getGridStringOperators: () => GridFilterOperator<any,
|
|
171
|
+
declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
86
172
|
|
|
87
|
-
declare const CONTAINS_ANY_OF:
|
|
88
|
-
|
|
173
|
+
declare const CONTAINS_ANY_OF: {
|
|
174
|
+
label: string;
|
|
175
|
+
value: string;
|
|
176
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
177
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
178
|
+
};
|
|
179
|
+
declare const CONTAINS_ANY_OF_I: {
|
|
180
|
+
label: string;
|
|
181
|
+
value: string;
|
|
182
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
183
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
184
|
+
};
|
|
89
185
|
|
|
90
|
-
declare const DOES_NOT_HAVE_ANY_OF:
|
|
186
|
+
declare const DOES_NOT_HAVE_ANY_OF: {
|
|
187
|
+
label: string;
|
|
188
|
+
value: string;
|
|
189
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
190
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
191
|
+
};
|
|
91
192
|
declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: {
|
|
92
193
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
93
|
-
label
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
97
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
98
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
99
|
-
requiresFilterValue?: boolean;
|
|
194
|
+
label: string;
|
|
195
|
+
value: string;
|
|
196
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
100
197
|
};
|
|
101
198
|
|
|
102
|
-
declare const ENDS_WITH_ANY_OF:
|
|
199
|
+
declare const ENDS_WITH_ANY_OF: {
|
|
200
|
+
label: string;
|
|
201
|
+
value: string;
|
|
202
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
203
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
204
|
+
};
|
|
103
205
|
|
|
104
|
-
declare const IS_ANY_OF:
|
|
206
|
+
declare const IS_ANY_OF: {
|
|
207
|
+
label: string;
|
|
208
|
+
value: string;
|
|
209
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
210
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
211
|
+
};
|
|
105
212
|
declare const IS_ANY_OF_WITH_SELECT: {
|
|
106
213
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
107
|
-
label
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
111
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
112
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
113
|
-
requiresFilterValue?: boolean;
|
|
214
|
+
label: string;
|
|
215
|
+
value: string;
|
|
216
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
114
217
|
};
|
|
115
218
|
|
|
116
|
-
declare const IS_ANY_OF_I:
|
|
219
|
+
declare const IS_ANY_OF_I: {
|
|
220
|
+
label: string;
|
|
221
|
+
value: string;
|
|
222
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
223
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
224
|
+
};
|
|
117
225
|
declare const IS_ANY_OF_I_WITH_SELECT: {
|
|
118
226
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
119
|
-
label
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
123
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
124
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
125
|
-
requiresFilterValue?: boolean;
|
|
227
|
+
label: string;
|
|
228
|
+
value: string;
|
|
229
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
126
230
|
};
|
|
127
231
|
|
|
128
|
-
declare const HAS_ANY_OF:
|
|
232
|
+
declare const HAS_ANY_OF: {
|
|
233
|
+
label: string;
|
|
234
|
+
value: string;
|
|
235
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
236
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
237
|
+
};
|
|
129
238
|
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
130
239
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
131
|
-
label
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
135
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
136
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
137
|
-
requiresFilterValue?: boolean;
|
|
240
|
+
label: string;
|
|
241
|
+
value: string;
|
|
242
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
138
243
|
};
|
|
139
244
|
|
|
140
|
-
declare const IS_NOT_ANY_OF:
|
|
245
|
+
declare const IS_NOT_ANY_OF: {
|
|
246
|
+
label: string;
|
|
247
|
+
value: string;
|
|
248
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
249
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
250
|
+
};
|
|
141
251
|
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
142
252
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
143
|
-
label
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
147
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
148
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
149
|
-
requiresFilterValue?: boolean;
|
|
253
|
+
label: string;
|
|
254
|
+
value: string;
|
|
255
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
150
256
|
};
|
|
151
257
|
|
|
152
|
-
declare const STARTS_WITH_ANY_OF:
|
|
258
|
+
declare const STARTS_WITH_ANY_OF: {
|
|
259
|
+
label: string;
|
|
260
|
+
value: string;
|
|
261
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
262
|
+
InputComponent: typeof GridFilterInputMultipleValue;
|
|
263
|
+
};
|
|
153
264
|
|
|
154
|
-
declare const getGridStringArrayOperators: () => GridFilterOperator<any,
|
|
155
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any,
|
|
156
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any,
|
|
265
|
+
declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
266
|
+
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
|
|
267
|
+
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
|
|
157
268
|
|
|
158
269
|
declare const operatorList: {
|
|
159
|
-
string:
|
|
160
|
-
number:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
requiresFilterValue?: boolean;
|
|
270
|
+
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
271
|
+
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
272
|
+
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
273
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
274
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
275
|
+
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
276
|
+
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
277
|
+
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
278
|
+
rsSingleSelect: ({
|
|
279
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
280
|
+
label: string;
|
|
281
|
+
value: string;
|
|
282
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
283
|
+
} | {
|
|
284
|
+
label: string;
|
|
285
|
+
value: string;
|
|
286
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
287
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleValue;
|
|
178
288
|
} | {
|
|
179
|
-
InputComponent: typeof
|
|
180
|
-
label
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
184
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
185
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
186
|
-
requiresFilterValue?: boolean;
|
|
289
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
290
|
+
label: string;
|
|
291
|
+
value: string;
|
|
292
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
187
293
|
})[];
|
|
188
294
|
rsSingleSelectWithShortOperatorList: ({
|
|
189
|
-
InputComponent: typeof
|
|
190
|
-
label
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
194
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
195
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
196
|
-
requiresFilterValue?: boolean;
|
|
295
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
296
|
+
label: string;
|
|
297
|
+
value: string;
|
|
298
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
197
299
|
} | {
|
|
198
|
-
InputComponent: typeof
|
|
199
|
-
label
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
203
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
204
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
205
|
-
requiresFilterValue?: boolean;
|
|
300
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
301
|
+
label: string;
|
|
302
|
+
value: string;
|
|
303
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
206
304
|
})[];
|
|
207
305
|
rsMultipleSelect: ({
|
|
208
|
-
InputComponent: typeof
|
|
209
|
-
label
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
213
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
214
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
215
|
-
requiresFilterValue?: boolean;
|
|
306
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
307
|
+
label: string;
|
|
308
|
+
value: string;
|
|
309
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
216
310
|
} | {
|
|
217
|
-
InputComponent: typeof
|
|
218
|
-
label
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
222
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
223
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
224
|
-
requiresFilterValue?: boolean;
|
|
311
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
312
|
+
label: string;
|
|
313
|
+
value: string;
|
|
314
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
225
315
|
})[];
|
|
226
316
|
rsMultipleSelectWithShortOperatorList: ({
|
|
227
|
-
InputComponent: typeof
|
|
228
|
-
label
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
232
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
233
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
234
|
-
requiresFilterValue?: boolean;
|
|
317
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
318
|
+
label: string;
|
|
319
|
+
value: string;
|
|
320
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
235
321
|
} | {
|
|
236
|
-
InputComponent: typeof
|
|
237
|
-
label
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
241
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
242
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
243
|
-
requiresFilterValue?: boolean;
|
|
322
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
323
|
+
label: string;
|
|
324
|
+
value: string;
|
|
325
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
244
326
|
})[];
|
|
245
|
-
rsStringArray:
|
|
327
|
+
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
246
328
|
};
|
|
247
329
|
|
|
248
330
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
@@ -263,229 +345,7 @@ declare const buildStorageKey: ({ id, version, category }: {
|
|
|
263
345
|
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
|
|
264
346
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
265
347
|
|
|
266
|
-
|
|
267
|
-
* Type for legacy array-based row selection (v7 and earlier)
|
|
268
|
-
*/
|
|
269
|
-
type LegacyRowSelectionModel = GridRowId[];
|
|
270
|
-
/**
|
|
271
|
-
* Type that accepts both legacy array format and new v8 object format
|
|
272
|
-
*/
|
|
273
|
-
type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
|
|
274
|
-
/**
|
|
275
|
-
* Default empty row selection model for MUI DataGrid v8+
|
|
276
|
-
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
277
|
-
*/
|
|
278
|
-
declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
279
|
-
/**
|
|
280
|
-
* Creates a new row selection model with the given ids
|
|
281
|
-
*/
|
|
282
|
-
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
283
|
-
/**
|
|
284
|
-
* Normalizes a row selection model input to the v8 GridRowSelectionModel format.
|
|
285
|
-
* Accepts both legacy array format (v7) and new object format (v8).
|
|
286
|
-
* This allows consumers to continue using arrays while internally using the v8 format.
|
|
287
|
-
*/
|
|
288
|
-
declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
|
|
289
|
-
/**
|
|
290
|
-
* Gets the size/count of selected rows from a selection model
|
|
291
|
-
*/
|
|
292
|
-
declare const getSelectionCount: (model: GridRowSelectionModel) => number;
|
|
293
|
-
/**
|
|
294
|
-
* Checks if a row is selected in the given selection model
|
|
295
|
-
*/
|
|
296
|
-
declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
|
|
297
|
-
/**
|
|
298
|
-
* Converts a selection model to an array of selected row IDs
|
|
299
|
-
* Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
|
|
300
|
-
* not the actual selected rows (which would require knowing all row ids)
|
|
301
|
-
*/
|
|
302
|
-
declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
|
|
303
|
-
|
|
304
|
-
/** Component Type. */
|
|
305
|
-
type Comp<P, T = HTMLElement> = {
|
|
306
|
-
(props: P & {
|
|
307
|
-
ref?: Ref<T>;
|
|
308
|
-
}): ReactElement | null;
|
|
309
|
-
/** React component type. */
|
|
310
|
-
readonly $$typeof?: symbol;
|
|
311
|
-
/** Component name. */
|
|
312
|
-
displayName?: string;
|
|
313
|
-
/** Component base class name. */
|
|
314
|
-
className?: string;
|
|
315
|
-
};
|
|
316
|
-
/** Get types of the values of a record. */
|
|
317
|
-
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Color palette.
|
|
321
|
-
*/
|
|
322
|
-
declare const Theme: {
|
|
323
|
-
readonly light: "light";
|
|
324
|
-
readonly dark: "dark";
|
|
325
|
-
};
|
|
326
|
-
type Theme = ValueOf<typeof Theme>;
|
|
327
|
-
declare const NotificationsColorPalette: {
|
|
328
|
-
readonly question: "question";
|
|
329
|
-
readonly 'no-data': "no-data";
|
|
330
|
-
readonly success: "success";
|
|
331
|
-
readonly warning: "warning";
|
|
332
|
-
readonly info: "info";
|
|
333
|
-
readonly primary: "primary";
|
|
334
|
-
readonly secondary: "secondary";
|
|
335
|
-
readonly error: "error";
|
|
336
|
-
};
|
|
337
|
-
type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
|
|
338
|
-
declare const ProductColorPalette: {
|
|
339
|
-
readonly asm: "asm";
|
|
340
|
-
readonly 'brand-trust': "brand-trust";
|
|
341
|
-
readonly certificates: "certificates";
|
|
342
|
-
readonly ondmarc: "ondmarc";
|
|
343
|
-
readonly pulse: "pulse";
|
|
344
|
-
readonly radar: "radar";
|
|
345
|
-
readonly 'rojo-ds': "rojo-ds";
|
|
346
|
-
readonly 'vendor-secure': "vendor-secure";
|
|
347
|
-
readonly website: "website";
|
|
348
|
-
};
|
|
349
|
-
type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
|
|
350
|
-
|
|
351
|
-
declare const AlignSelf: {
|
|
352
|
-
readonly auto: "auto";
|
|
353
|
-
readonly normal: "normal";
|
|
354
|
-
readonly start: "start";
|
|
355
|
-
readonly end: "end";
|
|
356
|
-
readonly center: "center";
|
|
357
|
-
readonly 'flex-start': "flex-start";
|
|
358
|
-
readonly 'flex-end': "flex-end";
|
|
359
|
-
readonly 'self-start': "self-start";
|
|
360
|
-
readonly 'self-end': "self-end";
|
|
361
|
-
readonly baseline: "baseline";
|
|
362
|
-
readonly stretch: "stretch";
|
|
363
|
-
};
|
|
364
|
-
type AlignSelf = ValueOf<typeof AlignSelf>;
|
|
365
|
-
interface LayoutProps {
|
|
366
|
-
/** When used in a flex layout, specifies how the element will grow or shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex">MDN</a>. */
|
|
367
|
-
flex?: string;
|
|
368
|
-
/** When used in a flex layout, specifies how the element will grow to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow">MDN</a>. */
|
|
369
|
-
flexGrow?: number;
|
|
370
|
-
/** When used in a flex layout, specifies how the element will shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink">MDN</a>. */
|
|
371
|
-
flexShrink?: number;
|
|
372
|
-
/** When used in a flex layout, specifies the initial main size of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex_basis">MDN</a>. */
|
|
373
|
-
flexBasis?: string;
|
|
374
|
-
/** Overrides the alignItems property of a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-self">MDN</a>. */
|
|
375
|
-
alignSelf?: AlignSelf;
|
|
376
|
-
/** Specifies how the element is justified inside a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self">MDN</a>. */
|
|
377
|
-
justifySelf?: string;
|
|
378
|
-
/** The layout order for the element within a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/order">MDN</a>. */
|
|
379
|
-
order?: number;
|
|
380
|
-
/** When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area">MDN</a>. */
|
|
381
|
-
gridArea?: string;
|
|
382
|
-
/** When used in a grid layout, specifies the column the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column">MDN</a>. */
|
|
383
|
-
gridColumn?: string;
|
|
384
|
-
/** When used in a grid layout, specifies the row the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row">MDN</a>. */
|
|
385
|
-
gridRow?: string;
|
|
386
|
-
/** When used in a grid layout, specifies the starting column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start">MDN</a>. */
|
|
387
|
-
gridColumnStart?: string;
|
|
388
|
-
/** When used in a grid layout, specifies the ending column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end">MDN</a>. */
|
|
389
|
-
gridColumnEnd?: string;
|
|
390
|
-
/** When used in a grid layout, specifies the starting row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start">MDN</a>. */
|
|
391
|
-
gridRowStart?: string;
|
|
392
|
-
/** When used in a grid layout, specifies the ending row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end">MDN</a>. */
|
|
393
|
-
gridRowEnd?: string;
|
|
394
|
-
}
|
|
395
|
-
interface SpacingProps {
|
|
396
|
-
/** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
|
|
397
|
-
margin?: string;
|
|
398
|
-
/** The margin for the bottom side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom">MDN</a>. */
|
|
399
|
-
marginBottom?: string;
|
|
400
|
-
/** The margin for the left side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left">MDN</a>. */
|
|
401
|
-
marginLeft?: string;
|
|
402
|
-
/** The margin for the right side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right">MDN</a>. */
|
|
403
|
-
marginRight?: string;
|
|
404
|
-
/** The margin for the top side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top">MDN</a>. */
|
|
405
|
-
marginTop?: string;
|
|
406
|
-
}
|
|
407
|
-
interface PositioningProps {
|
|
408
|
-
/** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
|
|
409
|
-
position?: string;
|
|
410
|
-
/** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
|
|
411
|
-
top?: string;
|
|
412
|
-
/** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
|
|
413
|
-
bottom?: string;
|
|
414
|
-
/** The left position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/left">MDN</a>. Consider using start instead for RTL support. */
|
|
415
|
-
left?: string;
|
|
416
|
-
/** The right position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/right">MDN</a>. Consider using start instead for RTL support. */
|
|
417
|
-
right?: string;
|
|
418
|
-
/** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
|
|
419
|
-
zIndex?: string;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Component size.
|
|
424
|
-
*/
|
|
425
|
-
declare const IconSize: {
|
|
426
|
-
readonly xsmall: "xsmall";
|
|
427
|
-
readonly small: "small";
|
|
428
|
-
readonly medium: "medium";
|
|
429
|
-
readonly large: "large";
|
|
430
|
-
readonly xlarge: "xlarge";
|
|
431
|
-
readonly xxlarge: "xxlarge";
|
|
432
|
-
};
|
|
433
|
-
type IconSize = ValueOf<typeof IconSize>;
|
|
434
|
-
type IconDimensions = {
|
|
435
|
-
width?: number;
|
|
436
|
-
height?: number;
|
|
437
|
-
fontSize?: number;
|
|
438
|
-
lineHeight?: number;
|
|
439
|
-
};
|
|
440
|
-
/**
|
|
441
|
-
* Component props.
|
|
442
|
-
*/
|
|
443
|
-
interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
|
|
444
|
-
/** Indicates whether the element is exposed to an accessibility API. */
|
|
445
|
-
'aria-hidden'?: boolean | 'false' | 'true';
|
|
446
|
-
/** A screen reader only label for the Icon. */
|
|
447
|
-
'aria-label'?: string;
|
|
448
|
-
/** Color variant. Either from color palette or hex or rgb strings. */
|
|
449
|
-
color?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
450
|
-
/** Whether the icon has a badge attached to it. */
|
|
451
|
-
badge?: ReactElement;
|
|
452
|
-
/**
|
|
453
|
-
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
454
|
-
* Can also be a ReactElement.
|
|
455
|
-
*/
|
|
456
|
-
icon: string | string[] | ReactElement;
|
|
457
|
-
/**
|
|
458
|
-
* Icon size.
|
|
459
|
-
* @default 'medium'
|
|
460
|
-
*/
|
|
461
|
-
size?: IconSize | IconDimensions;
|
|
462
|
-
/** Additional properties to forward to the SVG tag. */
|
|
463
|
-
svgProps?: ComponentProps<'svg'>;
|
|
464
|
-
/** Theme. */
|
|
465
|
-
theme?: Theme;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Component variant.
|
|
470
|
-
*/
|
|
471
|
-
declare const ShieldVariant: {
|
|
472
|
-
readonly success: "success";
|
|
473
|
-
readonly successLocked: "successLocked";
|
|
474
|
-
readonly successUnlocked: "successUnlocked";
|
|
475
|
-
readonly fail: "fail";
|
|
476
|
-
readonly failLocked: "failLocked";
|
|
477
|
-
readonly failUnlocked: "failUnlocked";
|
|
478
|
-
readonly warning: "warning";
|
|
479
|
-
readonly warningLocked: "warningLocked";
|
|
480
|
-
readonly warningUnlocked: "warningUnlocked";
|
|
481
|
-
readonly ignored: "ignored";
|
|
482
|
-
readonly noData: "noData";
|
|
483
|
-
readonly question: "question";
|
|
484
|
-
readonly email: "email";
|
|
485
|
-
};
|
|
486
|
-
type ShieldVariant = ValueOf<typeof ShieldVariant>;
|
|
487
|
-
|
|
488
|
-
interface DataGridProps extends Partial<Pick<DataGridPremiumProps, 'rows'>>, Omit<DataGridPremiumProps, 'rows'> {
|
|
348
|
+
interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
|
|
489
349
|
/** License key for MUI Datagrid Pro. */
|
|
490
350
|
license?: string;
|
|
491
351
|
/**
|
|
@@ -676,7 +536,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
|
|
|
676
536
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
677
537
|
/** SORT */
|
|
678
538
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps["columns"]) => GridSortModel | "invalid";
|
|
679
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
539
|
+
declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
|
|
680
540
|
/** PAGINATION */
|
|
681
541
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | "invalid";
|
|
682
542
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
@@ -684,7 +544,7 @@ declare const getSearchParamsFromPagination: (pagination: ExtendedGridPagination
|
|
|
684
544
|
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps["columns"]) => GridColumnVisibilityModel | "invalid";
|
|
685
545
|
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps["columns"]) => URLSearchParams;
|
|
686
546
|
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps["columns"]) => PinnedColumns | "invalid";
|
|
687
|
-
declare const getSearchParamsFromPinnedColumns: (pinnedColumns:
|
|
547
|
+
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
|
|
688
548
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
689
549
|
type FinalSearchInput = {
|
|
690
550
|
localStorageVersion: number;
|
|
@@ -692,7 +552,7 @@ type FinalSearchInput = {
|
|
|
692
552
|
sortModel: GridSortModel;
|
|
693
553
|
paginationModel: ExtendedGridPaginationModel;
|
|
694
554
|
columnsVisibilityModel: GridColumnVisibilityModel;
|
|
695
|
-
pinnedColumnsModel:
|
|
555
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
696
556
|
search: string;
|
|
697
557
|
columns: DataGridProps['columns'];
|
|
698
558
|
};
|
|
@@ -718,30 +578,30 @@ type ModelsTable = {
|
|
|
718
578
|
sortModel: GridSortModel;
|
|
719
579
|
paginationModel: ExtendedGridPaginationModel;
|
|
720
580
|
columnVisibilityModel: GridColumnVisibilityModel;
|
|
721
|
-
pinnedColumnsModel:
|
|
581
|
+
pinnedColumnsModel: PinnedColumns;
|
|
722
582
|
};
|
|
723
583
|
/** Return the state of the table given the URL and the local storage state */
|
|
724
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], historyReplace: (newSearch: string) => void, initialState:
|
|
584
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
725
585
|
type DataGridModel = {
|
|
726
586
|
filterModel: GridFilterModel;
|
|
727
587
|
sortModel: GridSortModel;
|
|
728
588
|
paginationModel: ExtendedGridPaginationModel;
|
|
729
589
|
columnsModel: GridColumnVisibilityModel;
|
|
730
|
-
pinnedColumnsModel:
|
|
590
|
+
pinnedColumnsModel: GridPinnedColumns;
|
|
731
591
|
};
|
|
732
592
|
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
733
593
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
734
594
|
|
|
735
|
-
declare const BaseButton: React
|
|
595
|
+
declare const BaseButton: React.JSXElementConstructor<any>;
|
|
736
596
|
|
|
737
|
-
declare const BaseCheckbox: React
|
|
597
|
+
declare const BaseCheckbox: React.JSXElementConstructor<any>;
|
|
738
598
|
|
|
739
599
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
740
|
-
declare const BaseIcon: React
|
|
600
|
+
declare const BaseIcon: React.JSXElementConstructor<any>;
|
|
741
601
|
|
|
742
|
-
declare const
|
|
602
|
+
declare const BasePopper: React.JSXElementConstructor<any>;
|
|
743
603
|
|
|
744
|
-
declare const BaseTextField: React
|
|
604
|
+
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
745
605
|
|
|
746
606
|
interface CompletionResponseItem {
|
|
747
607
|
field: string;
|
|
@@ -770,7 +630,7 @@ interface FilterConfig {
|
|
|
770
630
|
}
|
|
771
631
|
interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
|
|
772
632
|
nlpFilterConfig: FilterConfig;
|
|
773
|
-
onFilterModelChange
|
|
633
|
+
onFilterModelChange: (filterModel: GridFilterModel) => void;
|
|
774
634
|
dateFormat?: string;
|
|
775
635
|
defaultModel?: string;
|
|
776
636
|
defaultFilter?: CompletionResponse;
|
|
@@ -794,14 +654,14 @@ type ControlledPaginationProps = {
|
|
|
794
654
|
displayRowsPerPage?: boolean;
|
|
795
655
|
displayPagination?: boolean;
|
|
796
656
|
selectionStatus: SelectionStatus;
|
|
797
|
-
apiRef: MutableRefObject<
|
|
657
|
+
apiRef: MutableRefObject<GridApiPro>;
|
|
798
658
|
paginationModel: GridPaginationModel;
|
|
799
|
-
onPaginationModelChange: (model: GridPaginationModel
|
|
659
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
800
660
|
pageSizeOptions?: number[];
|
|
801
661
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
802
662
|
paginationProps?: DataGridProps['paginationProps'];
|
|
803
663
|
};
|
|
804
|
-
declare const ControlledPagination: React
|
|
664
|
+
declare const ControlledPagination: React.FC<ControlledPaginationProps>;
|
|
805
665
|
|
|
806
666
|
type ServerSideControlledPaginationProps = {
|
|
807
667
|
displaySelection?: boolean;
|
|
@@ -809,14 +669,14 @@ type ServerSideControlledPaginationProps = {
|
|
|
809
669
|
displayPagination?: boolean;
|
|
810
670
|
selectionStatus: SelectionStatus;
|
|
811
671
|
paginationModel: GridPaginationModel;
|
|
812
|
-
onPaginationModelChange: (model: GridPaginationModel
|
|
672
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
813
673
|
pageSizeOptions?: number[];
|
|
814
674
|
paginationProps?: DataGridProps['paginationProps'];
|
|
815
675
|
rowCount: number;
|
|
816
676
|
loading?: boolean;
|
|
817
677
|
};
|
|
818
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React
|
|
819
|
-
declare const ServerSideControlledPagination: React
|
|
678
|
+
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;
|
|
679
|
+
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
820
680
|
|
|
821
681
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
822
682
|
/** Including Badge Component. */
|
|
@@ -844,16 +704,16 @@ interface TextCellProps extends ComponentProps<'div'> {
|
|
|
844
704
|
*/
|
|
845
705
|
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
846
706
|
|
|
847
|
-
type
|
|
848
|
-
type
|
|
707
|
+
type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
|
|
708
|
+
type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
|
|
849
709
|
type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
|
|
850
710
|
interface ToolbarProps {
|
|
851
711
|
/** Props to forward to the column button. */
|
|
852
|
-
columnsButtonProps?:
|
|
712
|
+
columnsButtonProps?: GridToolbarColumnsProps;
|
|
853
713
|
/** Column button ref. */
|
|
854
714
|
columnsButtonRef?: RefObject<HTMLButtonElement>;
|
|
855
715
|
/** Props to forward to the density button. */
|
|
856
|
-
densityButtonProps?:
|
|
716
|
+
densityButtonProps?: GridToolbarDensityProps;
|
|
857
717
|
/** Density button ref. */
|
|
858
718
|
densityButtonRef?: RefObject<HTMLButtonElement>;
|
|
859
719
|
/** Props to forward to the export button. */
|
|
@@ -893,16 +753,16 @@ declare global {
|
|
|
893
753
|
}
|
|
894
754
|
}
|
|
895
755
|
/** ------ */
|
|
896
|
-
declare const Toolbar: React
|
|
756
|
+
declare const Toolbar: React.FC<ToolbarProps>;
|
|
897
757
|
|
|
898
758
|
type ToolbarWrapperProps = {
|
|
899
759
|
hideToolbar: DataGridProps['hideToolbar'];
|
|
900
|
-
RenderedToolbar: React
|
|
760
|
+
RenderedToolbar: React.JSXElementConstructor<any>;
|
|
901
761
|
filterModel: DataGridProps['filterModel'];
|
|
902
762
|
onFilterModelChange: DataGridProps['onFilterModelChange'];
|
|
903
763
|
pagination: DataGridProps['pagination'];
|
|
904
764
|
paginationPlacement: DataGridProps['paginationPlacement'];
|
|
905
|
-
selectionStatus: React
|
|
765
|
+
selectionStatus: React.MutableRefObject<SelectionStatus>;
|
|
906
766
|
apiRef: DataGridProps['apiRef'];
|
|
907
767
|
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
908
768
|
paginationModel: DataGridProps['paginationModel'];
|
|
@@ -912,6 +772,6 @@ type ToolbarWrapperProps = {
|
|
|
912
772
|
paginationMode?: DataGridProps['paginationMode'];
|
|
913
773
|
rowCount?: DataGridProps['rowCount'];
|
|
914
774
|
};
|
|
915
|
-
declare const ToolbarWrapper: React
|
|
775
|
+
declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
|
|
916
776
|
|
|
917
|
-
export { BaseButton, BaseCheckbox, BaseIcon,
|
|
777
|
+
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 };
|