@redsift/table 12.5.2-muiv7 → 12.5.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/BaseComponents.js +1 -1
- package/_internal/BaseIconButton.js +126 -0
- package/_internal/BaseIconButton.js.map +1 -0
- package/_internal/DataGrid2.js +94 -63
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +1339 -2
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Pagination.js +1 -1
- package/_internal/ServerSideControlledPagination.js +318 -0
- package/_internal/ServerSideControlledPagination.js.map +1 -0
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +673 -1636
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/Toolbar2.js +1 -1
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +1 -1
- package/_internal/ToolbarWrapper2.js.map +1 -1
- package/_internal/useControlledDatagridState.js +6 -1125
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +425 -146
- package/index.js +44 -10
- package/index.js.map +1 -1
- package/package.json +9 -10
- package/_internal/BasePopper.js +0 -2453
- package/_internal/BasePopper.js.map +0 -1
- package/_internal/ControlledPagination.js +0 -11958
- package/_internal/ControlledPagination.js.map +0 -1
- package/_internal/Portal.js +0 -6563
- package/_internal/Portal.js.map +0 -1
- package/_internal/jsx-runtime.js +0 -1342
- package/_internal/jsx-runtime.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import React$1, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
|
|
1
|
+
import { GridColTypeDef, GridColType, GridColDef, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, GridRowId, GridRowSelectionModel, DataGridPremiumProps, GridFilterModel, GridPaginationModel, GridSortModel, GridColumnVisibilityModel, GridPinnedColumnFields, GridRowGroupingModel, GridAggregationModel, GridInitialState, GridSlotsComponent, GridApiPremium, GridCallbackDetails, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-premium';
|
|
2
|
+
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-premium';
|
|
3
|
+
import * as _mui_x_data_grid from '@mui/x-data-grid';
|
|
4
|
+
import React$1, { Ref, ReactElement, ComponentProps, ReactNode, MutableRefObject, RefObject } from 'react';
|
|
6
5
|
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';
|
|
9
6
|
|
|
10
|
-
declare const DETAIL_PANEL_TOGGLE_COL_DEF:
|
|
7
|
+
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid.GridColDef;
|
|
11
8
|
|
|
12
9
|
declare const getRsStringColumnType: () => GridColTypeDef;
|
|
13
10
|
declare const getRsNumberColumnType: () => GridColTypeDef;
|
|
@@ -57,153 +54,174 @@ type ColumnOptions<T extends ColumnType> = T extends 'string' ? StringColumnOpti
|
|
|
57
54
|
*/
|
|
58
55
|
declare function createColumn<T extends ColumnType>(type: T, options?: ColumnOptions<T>): Partial<GridColDef>;
|
|
59
56
|
|
|
60
|
-
declare const ARRAY_IS_EMPTY: GridFilterOperator<any, string | string[], any>;
|
|
61
|
-
declare const ARRAY_IS_NOT_EMPTY: GridFilterOperator<any, string | string[], any>;
|
|
57
|
+
declare const ARRAY_IS_EMPTY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
58
|
+
declare const ARRAY_IS_NOT_EMPTY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
62
59
|
|
|
63
|
-
declare const DATE_IS_BETWEEN: GridFilterOperator<any,
|
|
60
|
+
declare const DATE_IS_BETWEEN: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
64
61
|
|
|
65
62
|
declare const getGridDateOperatorsExtended: (showTime?: boolean) => GridFilterOperator[];
|
|
66
63
|
|
|
67
|
-
declare const IS_BETWEEN: GridFilterOperator<any, number, any>;
|
|
64
|
+
declare const IS_BETWEEN: GridFilterOperator<any, number, any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
68
65
|
|
|
69
66
|
declare const getGridNumericOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
70
67
|
|
|
71
|
-
declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any>;
|
|
68
|
+
declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
72
69
|
|
|
73
|
-
declare const DOES_NOT_END_WITH: GridFilterOperator<any, string | string[], any>;
|
|
70
|
+
declare const DOES_NOT_END_WITH: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
74
71
|
|
|
75
|
-
declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any>;
|
|
72
|
+
declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
76
73
|
|
|
77
|
-
declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any>;
|
|
74
|
+
declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
78
75
|
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
79
76
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
80
77
|
label?: string;
|
|
81
78
|
headerLabel?: string;
|
|
82
|
-
value:
|
|
83
|
-
getApplyFilterFn:
|
|
84
|
-
InputComponentProps?:
|
|
85
|
-
getValueAsString?: (value:
|
|
79
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
80
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
81
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
82
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
86
83
|
requiresFilterValue?: boolean;
|
|
87
84
|
};
|
|
88
85
|
|
|
89
|
-
declare const DOES_NOT_START_WITH: GridFilterOperator<any, string | string[], any>;
|
|
86
|
+
declare const DOES_NOT_START_WITH: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
90
87
|
|
|
91
|
-
declare const HAS: GridFilterOperator<any, string | string[], any>;
|
|
88
|
+
declare const HAS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
92
89
|
declare const HAS_WITH_SELECT: {
|
|
93
90
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
94
91
|
label?: string;
|
|
95
92
|
headerLabel?: string;
|
|
96
|
-
value:
|
|
97
|
-
getApplyFilterFn:
|
|
98
|
-
InputComponentProps?:
|
|
99
|
-
getValueAsString?: (value:
|
|
93
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
94
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
95
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
96
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
100
97
|
requiresFilterValue?: boolean;
|
|
101
98
|
};
|
|
102
99
|
|
|
103
|
-
declare const HAS_ONLY: GridFilterOperator<any, string | string[], any>;
|
|
100
|
+
declare const HAS_ONLY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
104
101
|
declare const HAS_ONLY_WITH_SELECT: {
|
|
105
102
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
106
103
|
label?: string;
|
|
107
104
|
headerLabel?: string;
|
|
108
|
-
value:
|
|
109
|
-
getApplyFilterFn:
|
|
110
|
-
InputComponentProps?:
|
|
111
|
-
getValueAsString?: (value:
|
|
105
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
106
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
107
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
108
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
112
109
|
requiresFilterValue?: boolean;
|
|
113
110
|
};
|
|
114
111
|
|
|
115
|
-
declare const IS: GridFilterOperator<any, string | string[], any>;
|
|
112
|
+
declare const IS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
116
113
|
declare const IS_WITH_SELECT: {
|
|
117
114
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
118
115
|
label?: string;
|
|
119
116
|
headerLabel?: string;
|
|
120
|
-
value:
|
|
121
|
-
getApplyFilterFn:
|
|
122
|
-
InputComponentProps?:
|
|
123
|
-
getValueAsString?: (value:
|
|
117
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
118
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
119
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
120
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
124
121
|
requiresFilterValue?: boolean;
|
|
125
122
|
};
|
|
126
123
|
|
|
127
|
-
declare const IS_NOT: GridFilterOperator<any, string | string[], any>;
|
|
124
|
+
declare const IS_NOT: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
128
125
|
declare const IS_NOT_WITH_SELECT: {
|
|
129
126
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
130
127
|
label?: string;
|
|
131
128
|
headerLabel?: string;
|
|
132
|
-
value:
|
|
133
|
-
getApplyFilterFn:
|
|
134
|
-
InputComponentProps?:
|
|
135
|
-
getValueAsString?: (value:
|
|
129
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
130
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
131
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
132
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
136
133
|
requiresFilterValue?: boolean;
|
|
137
134
|
};
|
|
138
135
|
|
|
139
136
|
declare const getGridStringOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
140
137
|
|
|
141
|
-
declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
138
|
+
declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
142
139
|
|
|
143
|
-
declare const DOES_NOT_CONTAIN_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
140
|
+
declare const DOES_NOT_CONTAIN_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
144
141
|
|
|
145
|
-
declare const DOES_NOT_END_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
142
|
+
declare const DOES_NOT_END_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
146
143
|
|
|
147
|
-
declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
148
|
-
declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT:
|
|
144
|
+
declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
145
|
+
declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: {
|
|
146
|
+
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
147
|
+
label?: string;
|
|
148
|
+
headerLabel?: string;
|
|
149
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
150
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
151
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
152
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
153
|
+
requiresFilterValue?: boolean;
|
|
154
|
+
};
|
|
149
155
|
|
|
150
|
-
declare const DOES_NOT_START_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
156
|
+
declare const DOES_NOT_START_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
151
157
|
|
|
152
|
-
declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
158
|
+
declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
153
159
|
|
|
154
|
-
declare const HAS_ALL_OF: GridFilterOperator<any, string | string[], any>;
|
|
160
|
+
declare const HAS_ALL_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
155
161
|
declare const HAS_ALL_OF_WITH_SELECT: {
|
|
156
162
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
157
163
|
label?: string;
|
|
158
164
|
headerLabel?: string;
|
|
159
|
-
value:
|
|
160
|
-
getApplyFilterFn:
|
|
161
|
-
InputComponentProps?:
|
|
162
|
-
getValueAsString?: (value:
|
|
165
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
166
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
167
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
168
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
163
169
|
requiresFilterValue?: boolean;
|
|
164
170
|
};
|
|
165
171
|
|
|
166
|
-
declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
172
|
+
declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
167
173
|
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
168
174
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
169
175
|
label?: string;
|
|
170
176
|
headerLabel?: string;
|
|
171
|
-
value:
|
|
172
|
-
getApplyFilterFn:
|
|
173
|
-
InputComponentProps?:
|
|
174
|
-
getValueAsString?: (value:
|
|
177
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
178
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
179
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
180
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
175
181
|
requiresFilterValue?: boolean;
|
|
176
182
|
};
|
|
177
183
|
|
|
178
|
-
declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
184
|
+
declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
179
185
|
declare const IS_ANY_OF_WITH_SELECT: {
|
|
180
186
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
181
187
|
label?: string;
|
|
182
188
|
headerLabel?: string;
|
|
183
|
-
value:
|
|
184
|
-
getApplyFilterFn:
|
|
185
|
-
InputComponentProps?:
|
|
186
|
-
getValueAsString?: (value:
|
|
189
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
190
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
191
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
192
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
187
193
|
requiresFilterValue?: boolean;
|
|
188
194
|
};
|
|
189
195
|
|
|
190
|
-
declare const
|
|
196
|
+
declare const IS_ANY_OF_I: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
197
|
+
declare const IS_ANY_OF_I_WITH_SELECT: {
|
|
198
|
+
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
199
|
+
label?: string;
|
|
200
|
+
headerLabel?: string;
|
|
201
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
202
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
203
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
204
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
205
|
+
requiresFilterValue?: boolean;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
191
209
|
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
192
210
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
193
211
|
label?: string;
|
|
194
212
|
headerLabel?: string;
|
|
195
|
-
value:
|
|
196
|
-
getApplyFilterFn:
|
|
197
|
-
InputComponentProps?:
|
|
198
|
-
getValueAsString?: (value:
|
|
213
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
214
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
215
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
216
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
199
217
|
requiresFilterValue?: boolean;
|
|
200
218
|
};
|
|
201
219
|
|
|
202
|
-
declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
220
|
+
declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps>;
|
|
203
221
|
|
|
204
|
-
declare const getGridStringArrayOperators: () => GridFilterOperator[];
|
|
205
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator[];
|
|
206
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator[];
|
|
222
|
+
declare const getGridStringArrayOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
223
|
+
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, unknown, any>[];
|
|
224
|
+
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, unknown, any>[];
|
|
207
225
|
|
|
208
226
|
/**
|
|
209
227
|
* Wraps a filter operator's `getApplyFilterFn` to lowercase both the cell value
|
|
@@ -218,91 +236,93 @@ declare const wrapCaseInsensitive: (operator: GridFilterOperator) => GridFilterO
|
|
|
218
236
|
declare const makeCaseInsensitive: (operators: GridFilterOperator[]) => GridFilterOperator[];
|
|
219
237
|
|
|
220
238
|
declare const operatorList: {
|
|
221
|
-
string:
|
|
222
|
-
number:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
239
|
+
string: _mui_x_data_grid.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid.GridFilterInputValueProps>[];
|
|
240
|
+
number: _mui_x_data_grid.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid.GridFilterInputValueProps & {
|
|
241
|
+
type?: "number";
|
|
242
|
+
}>[];
|
|
243
|
+
boolean: _mui_x_data_grid.GridFilterOperator<any, boolean | null, any, _mui_x_data_grid.GridFilterInputValueProps>[];
|
|
244
|
+
date: _mui_x_data_grid.GridFilterOperator<any, Date, any, _mui_x_data_grid.GridFilterInputDateProps>[];
|
|
245
|
+
dateTime: _mui_x_data_grid.GridFilterOperator<any, Date, any, _mui_x_data_grid.GridFilterInputDateProps>[];
|
|
246
|
+
singleSelect: _mui_x_data_grid.GridFilterOperator<any, any, any, _mui_x_data_grid.GridFilterInputValueProps>[];
|
|
247
|
+
rsString: _mui_x_data_grid.GridFilterOperator<any, unknown, any, _mui_x_data_grid.GridFilterInputValueProps>[];
|
|
248
|
+
rsNumber: _mui_x_data_grid.GridFilterOperator<any, unknown, any, _mui_x_data_grid.GridFilterInputValueProps>[];
|
|
249
|
+
rsSingleSelect: (_mui_x_data_grid.GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps> | {
|
|
250
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputSingleSelect;
|
|
231
251
|
label?: string;
|
|
232
252
|
headerLabel?: string;
|
|
233
|
-
value:
|
|
234
|
-
getApplyFilterFn:
|
|
235
|
-
InputComponentProps?:
|
|
236
|
-
getValueAsString?: (value:
|
|
253
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
254
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
255
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
256
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
237
257
|
requiresFilterValue?: boolean;
|
|
238
258
|
} | {
|
|
239
|
-
InputComponent: typeof
|
|
259
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputMultipleSingleSelect;
|
|
240
260
|
label?: string;
|
|
241
261
|
headerLabel?: string;
|
|
242
|
-
value:
|
|
243
|
-
getApplyFilterFn:
|
|
244
|
-
InputComponentProps?:
|
|
245
|
-
getValueAsString?: (value:
|
|
262
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
263
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
264
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
265
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
246
266
|
requiresFilterValue?: boolean;
|
|
247
267
|
})[];
|
|
248
268
|
rsSingleSelectWithShortOperatorList: ({
|
|
249
|
-
InputComponent: typeof
|
|
269
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputSingleSelect;
|
|
250
270
|
label?: string;
|
|
251
271
|
headerLabel?: string;
|
|
252
|
-
value:
|
|
253
|
-
getApplyFilterFn:
|
|
254
|
-
InputComponentProps?:
|
|
255
|
-
getValueAsString?: (value:
|
|
272
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
273
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
274
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
275
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
256
276
|
requiresFilterValue?: boolean;
|
|
257
277
|
} | {
|
|
258
|
-
InputComponent: typeof
|
|
278
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputMultipleSingleSelect;
|
|
259
279
|
label?: string;
|
|
260
280
|
headerLabel?: string;
|
|
261
|
-
value:
|
|
262
|
-
getApplyFilterFn:
|
|
263
|
-
InputComponentProps?:
|
|
264
|
-
getValueAsString?: (value:
|
|
281
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
282
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
283
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
284
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
265
285
|
requiresFilterValue?: boolean;
|
|
266
286
|
})[];
|
|
267
|
-
rsMultipleSelect: (
|
|
268
|
-
InputComponent: typeof
|
|
287
|
+
rsMultipleSelect: (_mui_x_data_grid.GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps> | {
|
|
288
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputSingleSelect;
|
|
269
289
|
label?: string;
|
|
270
290
|
headerLabel?: string;
|
|
271
|
-
value:
|
|
272
|
-
getApplyFilterFn:
|
|
273
|
-
InputComponentProps?:
|
|
274
|
-
getValueAsString?: (value:
|
|
291
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
292
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
293
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
294
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
275
295
|
requiresFilterValue?: boolean;
|
|
276
296
|
} | {
|
|
277
|
-
InputComponent: typeof
|
|
297
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputMultipleSingleSelect;
|
|
278
298
|
label?: string;
|
|
279
299
|
headerLabel?: string;
|
|
280
|
-
value:
|
|
281
|
-
getApplyFilterFn:
|
|
282
|
-
InputComponentProps?:
|
|
283
|
-
getValueAsString?: (value:
|
|
300
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
301
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
302
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
303
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
284
304
|
requiresFilterValue?: boolean;
|
|
285
305
|
})[];
|
|
286
306
|
rsMultipleSelectWithShortOperatorList: ({
|
|
287
|
-
InputComponent: typeof
|
|
307
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputSingleSelect;
|
|
288
308
|
label?: string;
|
|
289
309
|
headerLabel?: string;
|
|
290
|
-
value:
|
|
291
|
-
getApplyFilterFn:
|
|
292
|
-
InputComponentProps?:
|
|
293
|
-
getValueAsString?: (value:
|
|
310
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
311
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
312
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
313
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
294
314
|
requiresFilterValue?: boolean;
|
|
295
315
|
} | {
|
|
296
|
-
InputComponent: typeof
|
|
316
|
+
InputComponent: typeof _mui_x_data_grid.GridFilterInputMultipleSingleSelect;
|
|
297
317
|
label?: string;
|
|
298
318
|
headerLabel?: string;
|
|
299
|
-
value:
|
|
300
|
-
getApplyFilterFn:
|
|
301
|
-
InputComponentProps?:
|
|
302
|
-
getValueAsString?: (value:
|
|
319
|
+
value: _mui_x_data_grid.GridFilterItem["operator"];
|
|
320
|
+
getApplyFilterFn: _mui_x_data_grid.GetApplyFilterFn<any, string | string[], any>;
|
|
321
|
+
InputComponentProps?: Partial<_mui_x_data_grid.GridFilterInputValueProps> | undefined;
|
|
322
|
+
getValueAsString?: (value: _mui_x_data_grid.GridFilterItem["value"]) => string;
|
|
303
323
|
requiresFilterValue?: boolean;
|
|
304
324
|
})[];
|
|
305
|
-
rsStringArray:
|
|
325
|
+
rsStringArray: _mui_x_data_grid.GridFilterOperator<any, unknown, any, _mui_x_data_grid.GridFilterInputValueProps>[];
|
|
306
326
|
};
|
|
307
327
|
|
|
308
328
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
@@ -316,16 +336,241 @@ declare const DIMENSION_MODEL_KEY = "dimension";
|
|
|
316
336
|
declare const FILTER_SEARCH_KEY = "searchModel";
|
|
317
337
|
declare const DENSITY_MODEL_KEY = "densityModel";
|
|
318
338
|
declare const COLUMN_ORDER_MODEL_KEY = "columnOrderModel";
|
|
319
|
-
declare const
|
|
339
|
+
declare const ROW_GROUPING_MODEL_KEY = "rowGroupingModel";
|
|
340
|
+
declare const AGGREGATION_MODEL_KEY = "aggregationModel";
|
|
341
|
+
declare const PIVOT_MODEL_KEY = "pivotModel";
|
|
342
|
+
declare const CATEGORIES: readonly ["paginationModel", "filterModel", "sortModel", "visibilityModel", "dimension", "searchModel", "pinnedColumns", "densityModel", "columnOrderModel", "rowGroupingModel", "aggregationModel", "pivotModel"];
|
|
320
343
|
type Category = (typeof CATEGORIES)[number];
|
|
321
344
|
declare const buildStorageKey: ({ id, version, category }: {
|
|
322
345
|
id: string;
|
|
323
346
|
version: number;
|
|
324
347
|
category: Category;
|
|
325
|
-
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel` | `${string}:${number}:densityModel` | `${string}:${number}:columnOrderModel`;
|
|
348
|
+
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel` | `${string}:${number}:densityModel` | `${string}:${number}:columnOrderModel` | `${string}:${number}:rowGroupingModel` | `${string}:${number}:aggregationModel` | `${string}:${number}:pivotModel`;
|
|
326
349
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
327
350
|
|
|
328
|
-
|
|
351
|
+
/**
|
|
352
|
+
* Type for legacy array-based row selection (v7 and earlier)
|
|
353
|
+
*/
|
|
354
|
+
type LegacyRowSelectionModel = GridRowId[];
|
|
355
|
+
/**
|
|
356
|
+
* Type that accepts both legacy array format and new v8 object format
|
|
357
|
+
*/
|
|
358
|
+
type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
|
|
359
|
+
/**
|
|
360
|
+
* Default empty row selection model for MUI DataGrid v8+
|
|
361
|
+
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
362
|
+
*/
|
|
363
|
+
declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
364
|
+
/**
|
|
365
|
+
* Creates a new row selection model with the given ids
|
|
366
|
+
*/
|
|
367
|
+
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
368
|
+
/**
|
|
369
|
+
* Normalizes a row selection model input to the v8 GridRowSelectionModel format.
|
|
370
|
+
* Accepts both legacy array format (v7) and new object format (v8).
|
|
371
|
+
* This allows consumers to continue using arrays while internally using the v8 format.
|
|
372
|
+
*/
|
|
373
|
+
declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
|
|
374
|
+
/**
|
|
375
|
+
* Gets the size/count of selected rows from a selection model
|
|
376
|
+
*/
|
|
377
|
+
declare const getSelectionCount: (model: GridRowSelectionModel) => number;
|
|
378
|
+
/**
|
|
379
|
+
* Checks if a row is selected in the given selection model
|
|
380
|
+
*/
|
|
381
|
+
declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
|
|
382
|
+
/**
|
|
383
|
+
* Converts a selection model to an array of selected row IDs
|
|
384
|
+
* Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
|
|
385
|
+
* not the actual selected rows (which would require knowing all row ids)
|
|
386
|
+
*/
|
|
387
|
+
declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
|
|
388
|
+
|
|
389
|
+
/** Component Type. */
|
|
390
|
+
type Comp<P, T = HTMLElement> = {
|
|
391
|
+
(props: P & {
|
|
392
|
+
ref?: Ref<T>;
|
|
393
|
+
}): ReactElement | null;
|
|
394
|
+
/** React component type. */
|
|
395
|
+
readonly $$typeof?: symbol;
|
|
396
|
+
/** Component name. */
|
|
397
|
+
displayName?: string;
|
|
398
|
+
/** Component base class name. */
|
|
399
|
+
className?: string;
|
|
400
|
+
};
|
|
401
|
+
/** Get types of the values of a record. */
|
|
402
|
+
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Color palette.
|
|
406
|
+
*/
|
|
407
|
+
declare const Theme: {
|
|
408
|
+
readonly light: "light";
|
|
409
|
+
readonly dark: "dark";
|
|
410
|
+
};
|
|
411
|
+
type Theme = ValueOf<typeof Theme>;
|
|
412
|
+
declare const NotificationsColorPalette: {
|
|
413
|
+
readonly question: "question";
|
|
414
|
+
readonly 'no-data': "no-data";
|
|
415
|
+
readonly success: "success";
|
|
416
|
+
readonly warning: "warning";
|
|
417
|
+
readonly info: "info";
|
|
418
|
+
readonly primary: "primary";
|
|
419
|
+
readonly secondary: "secondary";
|
|
420
|
+
readonly error: "error";
|
|
421
|
+
};
|
|
422
|
+
type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
|
|
423
|
+
declare const ProductColorPalette: {
|
|
424
|
+
readonly asm: "asm";
|
|
425
|
+
readonly 'brand-trust': "brand-trust";
|
|
426
|
+
readonly certificates: "certificates";
|
|
427
|
+
readonly ondmarc: "ondmarc";
|
|
428
|
+
readonly pulse: "pulse";
|
|
429
|
+
readonly radar: "radar";
|
|
430
|
+
readonly 'rojo-ds': "rojo-ds";
|
|
431
|
+
readonly 'vendor-secure': "vendor-secure";
|
|
432
|
+
readonly website: "website";
|
|
433
|
+
};
|
|
434
|
+
type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
|
|
435
|
+
|
|
436
|
+
declare const AlignSelf: {
|
|
437
|
+
readonly auto: "auto";
|
|
438
|
+
readonly normal: "normal";
|
|
439
|
+
readonly start: "start";
|
|
440
|
+
readonly end: "end";
|
|
441
|
+
readonly center: "center";
|
|
442
|
+
readonly 'flex-start': "flex-start";
|
|
443
|
+
readonly 'flex-end': "flex-end";
|
|
444
|
+
readonly 'self-start': "self-start";
|
|
445
|
+
readonly 'self-end': "self-end";
|
|
446
|
+
readonly baseline: "baseline";
|
|
447
|
+
readonly stretch: "stretch";
|
|
448
|
+
};
|
|
449
|
+
type AlignSelf = ValueOf<typeof AlignSelf>;
|
|
450
|
+
interface LayoutProps {
|
|
451
|
+
/** 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>. */
|
|
452
|
+
flex?: string;
|
|
453
|
+
/** 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>. */
|
|
454
|
+
flexGrow?: number;
|
|
455
|
+
/** 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>. */
|
|
456
|
+
flexShrink?: number;
|
|
457
|
+
/** 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>. */
|
|
458
|
+
flexBasis?: string;
|
|
459
|
+
/** 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>. */
|
|
460
|
+
alignSelf?: AlignSelf;
|
|
461
|
+
/** 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>. */
|
|
462
|
+
justifySelf?: string;
|
|
463
|
+
/** 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>. */
|
|
464
|
+
order?: number;
|
|
465
|
+
/** 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>. */
|
|
466
|
+
gridArea?: string;
|
|
467
|
+
/** 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>. */
|
|
468
|
+
gridColumn?: string;
|
|
469
|
+
/** 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>. */
|
|
470
|
+
gridRow?: string;
|
|
471
|
+
/** 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>. */
|
|
472
|
+
gridColumnStart?: string;
|
|
473
|
+
/** 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>. */
|
|
474
|
+
gridColumnEnd?: string;
|
|
475
|
+
/** 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>. */
|
|
476
|
+
gridRowStart?: string;
|
|
477
|
+
/** 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>. */
|
|
478
|
+
gridRowEnd?: string;
|
|
479
|
+
}
|
|
480
|
+
interface SpacingProps {
|
|
481
|
+
/** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
|
|
482
|
+
margin?: string;
|
|
483
|
+
/** 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>. */
|
|
484
|
+
marginBottom?: string;
|
|
485
|
+
/** 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>. */
|
|
486
|
+
marginLeft?: string;
|
|
487
|
+
/** 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>. */
|
|
488
|
+
marginRight?: string;
|
|
489
|
+
/** 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>. */
|
|
490
|
+
marginTop?: string;
|
|
491
|
+
}
|
|
492
|
+
interface PositioningProps {
|
|
493
|
+
/** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
|
|
494
|
+
position?: string;
|
|
495
|
+
/** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
|
|
496
|
+
top?: string;
|
|
497
|
+
/** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
|
|
498
|
+
bottom?: string;
|
|
499
|
+
/** 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. */
|
|
500
|
+
left?: string;
|
|
501
|
+
/** 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. */
|
|
502
|
+
right?: string;
|
|
503
|
+
/** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
|
|
504
|
+
zIndex?: string;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Component size.
|
|
509
|
+
*/
|
|
510
|
+
declare const IconSize: {
|
|
511
|
+
readonly xsmall: "xsmall";
|
|
512
|
+
readonly small: "small";
|
|
513
|
+
readonly medium: "medium";
|
|
514
|
+
readonly large: "large";
|
|
515
|
+
readonly xlarge: "xlarge";
|
|
516
|
+
readonly xxlarge: "xxlarge";
|
|
517
|
+
};
|
|
518
|
+
type IconSize = ValueOf<typeof IconSize>;
|
|
519
|
+
type IconDimensions = {
|
|
520
|
+
width?: number;
|
|
521
|
+
height?: number;
|
|
522
|
+
fontSize?: number;
|
|
523
|
+
lineHeight?: number;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Component props.
|
|
527
|
+
*/
|
|
528
|
+
interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
|
|
529
|
+
/** Indicates whether the element is exposed to an accessibility API. */
|
|
530
|
+
'aria-hidden'?: boolean | 'false' | 'true';
|
|
531
|
+
/** A screen reader only label for the Icon. */
|
|
532
|
+
'aria-label'?: string;
|
|
533
|
+
/** Color variant. Either from color palette or hex or rgb strings. */
|
|
534
|
+
color?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
535
|
+
/** Whether the icon has a badge attached to it. */
|
|
536
|
+
badge?: ReactElement;
|
|
537
|
+
/**
|
|
538
|
+
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
539
|
+
* Can also be a ReactElement.
|
|
540
|
+
*/
|
|
541
|
+
icon: string | string[] | ReactElement;
|
|
542
|
+
/**
|
|
543
|
+
* Icon size.
|
|
544
|
+
* @default 'medium'
|
|
545
|
+
*/
|
|
546
|
+
size?: IconSize | IconDimensions;
|
|
547
|
+
/** Additional properties to forward to the SVG tag. */
|
|
548
|
+
svgProps?: ComponentProps<'svg'>;
|
|
549
|
+
/** Theme. */
|
|
550
|
+
theme?: Theme;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Component variant.
|
|
555
|
+
*/
|
|
556
|
+
declare const ShieldVariant: {
|
|
557
|
+
readonly success: "success";
|
|
558
|
+
readonly successLocked: "successLocked";
|
|
559
|
+
readonly successUnlocked: "successUnlocked";
|
|
560
|
+
readonly fail: "fail";
|
|
561
|
+
readonly failLocked: "failLocked";
|
|
562
|
+
readonly failUnlocked: "failUnlocked";
|
|
563
|
+
readonly warning: "warning";
|
|
564
|
+
readonly warningLocked: "warningLocked";
|
|
565
|
+
readonly warningUnlocked: "warningUnlocked";
|
|
566
|
+
readonly ignored: "ignored";
|
|
567
|
+
readonly noData: "noData";
|
|
568
|
+
readonly question: "question";
|
|
569
|
+
readonly email: "email";
|
|
570
|
+
};
|
|
571
|
+
type ShieldVariant = ValueOf<typeof ShieldVariant>;
|
|
572
|
+
|
|
573
|
+
interface DataGridProps extends Partial<Pick<DataGridPremiumProps, 'rows'>>, Omit<DataGridPremiumProps, 'rows'> {
|
|
329
574
|
/** License key for MUI Datagrid Pro. */
|
|
330
575
|
license?: string;
|
|
331
576
|
/**
|
|
@@ -555,7 +800,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
|
|
|
555
800
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
556
801
|
/** SORT */
|
|
557
802
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps["columns"]) => GridSortModel | "invalid";
|
|
558
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
803
|
+
declare const getSearchParamsFromSorting: (sorting: GridSortModel) => URLSearchParams;
|
|
559
804
|
/** PAGINATION */
|
|
560
805
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | "invalid";
|
|
561
806
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
@@ -573,6 +818,26 @@ declare const getSearchParamsFromDensity: (density: GridDensityValue) => URLSear
|
|
|
573
818
|
type ColumnOrderModel = string[];
|
|
574
819
|
declare const getColumnOrderFromString: (searchString: string) => ColumnOrderModel | "invalid";
|
|
575
820
|
declare const getSearchParamsFromColumnOrder: (columnOrder: ColumnOrderModel) => URLSearchParams;
|
|
821
|
+
/** ROW GROUPING */
|
|
822
|
+
declare const getRowGroupingFromString: (searchString: string) => GridRowGroupingModel | "invalid";
|
|
823
|
+
declare const getSearchParamsFromRowGrouping: (rowGrouping: GridRowGroupingModel) => URLSearchParams;
|
|
824
|
+
/** AGGREGATION */
|
|
825
|
+
declare const getAggregationFromString: (searchString: string) => GridAggregationModel | "invalid";
|
|
826
|
+
declare const getSearchParamsFromAggregation: (aggregation: GridAggregationModel) => URLSearchParams;
|
|
827
|
+
/** PIVOT */
|
|
828
|
+
interface PivotModel {
|
|
829
|
+
columns: string[];
|
|
830
|
+
rows: string[];
|
|
831
|
+
values: {
|
|
832
|
+
field: string;
|
|
833
|
+
aggFunc: string;
|
|
834
|
+
}[];
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Pivot format: `cols:f1,f2;rows:f3;vals:f4.sum,f5.avg`
|
|
838
|
+
*/
|
|
839
|
+
declare const getPivotFromString: (searchString: string) => PivotModel | "invalid";
|
|
840
|
+
declare const getSearchParamsFromPivot: (pivot: PivotModel) => URLSearchParams;
|
|
576
841
|
type FinalSearchInput = {
|
|
577
842
|
localStorageVersion: number;
|
|
578
843
|
filterModel: GridFilterModel;
|
|
@@ -583,10 +848,13 @@ type FinalSearchInput = {
|
|
|
583
848
|
density: GridDensityValue;
|
|
584
849
|
columnOrderModel: ColumnOrderModel;
|
|
585
850
|
defaultColumnOrder: ColumnOrderModel;
|
|
851
|
+
rowGroupingModel: GridRowGroupingModel;
|
|
852
|
+
aggregationModel: GridAggregationModel;
|
|
853
|
+
pivotModel: PivotModel;
|
|
586
854
|
search: string;
|
|
587
855
|
columns: DataGridProps['columns'];
|
|
588
856
|
};
|
|
589
|
-
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, density, columnOrderModel, defaultColumnOrder, columns, }: FinalSearchInput) => URLSearchParams;
|
|
857
|
+
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, density, columnOrderModel, defaultColumnOrder, rowGroupingModel, aggregationModel, pivotModel, columns, }: FinalSearchInput) => URLSearchParams;
|
|
590
858
|
type PinnedColumns = {
|
|
591
859
|
left: string[];
|
|
592
860
|
right: string[];
|
|
@@ -606,6 +874,12 @@ type ModelsLocalStorage = {
|
|
|
606
874
|
setLocalStorageDensity: (density: string) => void;
|
|
607
875
|
localStorageColumnOrder: string;
|
|
608
876
|
setLocalStorageColumnOrder: (value: string) => void;
|
|
877
|
+
localStorageRowGrouping: string;
|
|
878
|
+
setLocalStorageRowGrouping: (value: string) => void;
|
|
879
|
+
localStorageAggregation: string;
|
|
880
|
+
setLocalStorageAggregation: (value: string) => void;
|
|
881
|
+
localStoragePivot: string;
|
|
882
|
+
setLocalStoragePivot: (value: string) => void;
|
|
609
883
|
};
|
|
610
884
|
type ModelsTable = {
|
|
611
885
|
filterModel: GridFilterModel;
|
|
@@ -615,11 +889,14 @@ type ModelsTable = {
|
|
|
615
889
|
pinnedColumnsModel: PinnedColumns;
|
|
616
890
|
density: GridDensityValue;
|
|
617
891
|
columnOrderModel: ColumnOrderModel;
|
|
892
|
+
rowGroupingModel: GridRowGroupingModel;
|
|
893
|
+
aggregationModel: GridAggregationModel;
|
|
894
|
+
pivotModel: PivotModel;
|
|
618
895
|
/** The display-format search string the URL should have. Null if no update needed. */
|
|
619
896
|
pendingSearch: string | null;
|
|
620
897
|
};
|
|
621
898
|
/** Return the state of the table given the URL and the local storage state */
|
|
622
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState:
|
|
899
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState: GridInitialState | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
623
900
|
type DataGridModel = {
|
|
624
901
|
filterModel: GridFilterModel;
|
|
625
902
|
sortModel: GridSortModel;
|
|
@@ -629,8 +906,11 @@ type DataGridModel = {
|
|
|
629
906
|
density: GridDensityValue;
|
|
630
907
|
columnOrderModel: ColumnOrderModel;
|
|
631
908
|
defaultColumnOrder: ColumnOrderModel;
|
|
909
|
+
rowGroupingModel: GridRowGroupingModel;
|
|
910
|
+
aggregationModel: GridAggregationModel;
|
|
911
|
+
pivotModel: PivotModel;
|
|
632
912
|
};
|
|
633
|
-
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel, density, columnOrderModel, defaultColumnOrder, }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
913
|
+
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel, density, columnOrderModel, defaultColumnOrder, rowGroupingModel, aggregationModel, pivotModel, }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
634
914
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
635
915
|
|
|
636
916
|
declare const BaseButton: React$1.JSXElementConstructor<any>;
|
|
@@ -640,7 +920,7 @@ declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
|
|
|
640
920
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
641
921
|
declare const BaseIcon: React$1.JSXElementConstructor<any>;
|
|
642
922
|
|
|
643
|
-
declare const
|
|
923
|
+
declare const BaseIconButton: React$1.JSXElementConstructor<any>;
|
|
644
924
|
|
|
645
925
|
declare const BaseTextField: React$1.JSXElementConstructor<any>;
|
|
646
926
|
|
|
@@ -662,9 +942,14 @@ interface LocaleText {
|
|
|
662
942
|
powerTooltipContent?: string;
|
|
663
943
|
errorText?: string;
|
|
664
944
|
}
|
|
945
|
+
interface FilterConfigColumn {
|
|
946
|
+
field: string;
|
|
947
|
+
type?: string;
|
|
948
|
+
description?: string;
|
|
949
|
+
}
|
|
665
950
|
interface FilterConfig {
|
|
666
|
-
columns:
|
|
667
|
-
typeOperators:
|
|
951
|
+
columns: FilterConfigColumn[];
|
|
952
|
+
typeOperators: Record<string, string[]>;
|
|
668
953
|
notes: string;
|
|
669
954
|
openaiApiKey?: string;
|
|
670
955
|
completionFunc?: (nlpFilterConfig: FilterConfig, prompt: string, model: string) => Promise<CompletionResponse>;
|
|
@@ -695,13 +980,10 @@ type ControlledPaginationProps = {
|
|
|
695
980
|
displayRowsPerPage?: boolean;
|
|
696
981
|
displayPagination?: boolean;
|
|
697
982
|
selectionStatus: SelectionStatus;
|
|
698
|
-
apiRef: MutableRefObject<
|
|
983
|
+
apiRef: MutableRefObject<GridApiPremium | null>;
|
|
699
984
|
paginationModel: GridPaginationModel;
|
|
700
985
|
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
701
|
-
pageSizeOptions?:
|
|
702
|
-
value: number;
|
|
703
|
-
label: string;
|
|
704
|
-
})[];
|
|
986
|
+
pageSizeOptions?: number[];
|
|
705
987
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
706
988
|
paginationProps?: DataGridProps['paginationProps'];
|
|
707
989
|
};
|
|
@@ -714,10 +996,7 @@ type ServerSideControlledPaginationProps = {
|
|
|
714
996
|
selectionStatus: SelectionStatus;
|
|
715
997
|
paginationModel: GridPaginationModel;
|
|
716
998
|
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
717
|
-
pageSizeOptions?:
|
|
718
|
-
value: number;
|
|
719
|
-
label: string;
|
|
720
|
-
})[];
|
|
999
|
+
pageSizeOptions?: number[];
|
|
721
1000
|
paginationProps?: DataGridProps['paginationProps'];
|
|
722
1001
|
rowCount: number;
|
|
723
1002
|
loading?: boolean;
|
|
@@ -725,7 +1004,7 @@ type ServerSideControlledPaginationProps = {
|
|
|
725
1004
|
/**
|
|
726
1005
|
* Get the IDs of all selectable rows currently loaded in the grid (i.e. the current page for server-side).
|
|
727
1006
|
*/
|
|
728
|
-
declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<
|
|
1007
|
+
declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<GridApiPremium>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowId[];
|
|
729
1008
|
/**
|
|
730
1009
|
* Intercept MUI's `onRowSelectionModelChange` for server-side pagination to fix the
|
|
731
1010
|
* header checkbox behavior when cross-page selections exist.
|
|
@@ -739,8 +1018,8 @@ declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<GridA
|
|
|
739
1018
|
* selections with 0 selected on current page), we merge all current page rows with the
|
|
740
1019
|
* existing cross-page selections instead.
|
|
741
1020
|
*/
|
|
742
|
-
declare const fixServerSideHeaderCheckboxSelection: (newSelectionModel: GridRowSelectionModel, previousSelectionModel: GridRowSelectionModel, selectionStatus: React$1.MutableRefObject<SelectionStatus>, apiRef: React$1.MutableRefObject<
|
|
743
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<
|
|
1021
|
+
declare const fixServerSideHeaderCheckboxSelection: (newSelectionModel: GridRowSelectionModel, previousSelectionModel: GridRowSelectionModel, selectionStatus: React$1.MutableRefObject<SelectionStatus>, apiRef: React$1.MutableRefObject<GridApiPremium>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowSelectionModel;
|
|
1022
|
+
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<GridApiPremium | null>, selectionStatus: React$1.MutableRefObject<SelectionStatus>, forceUpdate: React$1.Dispatch<React$1.SetStateAction<number>>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
744
1023
|
declare const ServerSideControlledPagination: React$1.FC<ServerSideControlledPaginationProps>;
|
|
745
1024
|
|
|
746
1025
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
@@ -839,4 +1118,4 @@ type ToolbarWrapperProps = {
|
|
|
839
1118
|
};
|
|
840
1119
|
declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
|
|
841
1120
|
|
|
842
|
-
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon,
|
|
1121
|
+
export { AGGREGATION_MODEL_KEY, ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon, BaseIconButton, BaseTextField, CATEGORIES, COLUMN_ORDER_MODEL_KEY, CONTAINS_ANY_OF, Category, ColumnOptions, ColumnOrderModel, ColumnType, CompletionResponse, ControlledPagination, ControlledPaginationProps, DATE_IS_BETWEEN, DEFAULT_OPERATORS, DENSITY_MODEL_KEY, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_CONTAIN_ANY_OF, DOES_NOT_END_WITH, DOES_NOT_END_WITH_ANY_OF, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_ANY_OF, DOES_NOT_HAVE_ANY_OF_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DOES_NOT_START_WITH, DOES_NOT_START_WITH_ANY_OF, DataGrid, DataGridModel, DataGridProps, DateOperatorName, EMPTY_ROW_SELECTION_MODEL, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, FilterConfigColumn, GridDensityValue, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ALL_OF, HAS_ALL_OF_WITH_SELECT, 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, LegacyRowSelectionModel, MultiSelectOperatorName, NumberOperatorName, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PIVOT_MODEL_KEY, PinnedColumns, PivotModel, ROW_GROUPING_MODEL_KEY, RowSelectionModelInput, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, SingleSelectOperatorName, StatefulDataGrid, StatefulDataGridProps, StringOperatorName, StyledDataGridProps, TagsOperatorName, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, createColumn, createRowSelectionModel, customColumnTypes, decodeValue, encodeValue, fixServerSideHeaderCheckboxSelection, getAggregationFromString, getColumnOrderFromString, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, getDensityFromString, getFilterModelFromString, getFinalSearch, getGridDateOperatorsExtended, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getPivotFromString, getRowGroupingFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromAggregation, getSearchParamsFromColumnOrder, getSearchParamsFromColumnVisibility, getSearchParamsFromDensity, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromPivot, getSearchParamsFromRowGrouping, getSearchParamsFromSorting, getSearchParamsFromTab, getSelectableRowIdsInPage, getSelectedIds, getSelectionCount, getSortingFromString, isOperatorValueValid, isRowSelected, isValueValid, makeCaseInsensitive, muiIconToDSIcon, normalizeRowSelectionModel, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString, wrapCaseInsensitive };
|