@redsift/table 12.4.0 → 12.5.0-muiv7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/BaseComponents.js +1 -1
- package/_internal/BasePopper.js +2453 -0
- package/_internal/BasePopper.js.map +1 -0
- package/_internal/ControlledPagination.js +11958 -0
- package/_internal/ControlledPagination.js.map +1 -0
- package/_internal/DataGrid2.js +138 -71
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +2 -1339
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Pagination.js +1 -1
- package/_internal/Portal.js +6563 -0
- package/_internal/Portal.js.map +1 -0
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +1766 -178
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/Toolbar2.js +1 -1
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +3 -3
- package/_internal/ToolbarWrapper2.js.map +1 -1
- package/_internal/jsx-runtime.js +1342 -0
- package/_internal/jsx-runtime.js.map +1 -0
- package/_internal/useControlledDatagridState.js +1125 -6
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +173 -386
- package/index.js +10 -44
- package/index.js.map +1 -1
- package/package.json +10 -9
- package/_internal/BaseIconButton.js +0 -126
- package/_internal/BaseIconButton.js.map +0 -1
- package/_internal/ServerSideControlledPagination.js +0 -281
- package/_internal/ServerSideControlledPagination.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { GridColTypeDef, GridColType, GridColDef, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect,
|
|
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 { GridColTypeDef, GridColType, GridColDef, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumnFields, GridSlotsComponent, GridCallbackDetails, GridApiPro as GridApiPro$1, GridRowParams, GridRowSelectionModel, 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$1, { 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
12
|
declare const getRsStringColumnType: () => GridColTypeDef;
|
|
10
13
|
declare const getRsNumberColumnType: () => GridColTypeDef;
|
|
@@ -54,174 +57,153 @@ type ColumnOptions<T extends ColumnType> = T extends 'string' ? StringColumnOpti
|
|
|
54
57
|
*/
|
|
55
58
|
declare function createColumn<T extends ColumnType>(type: T, options?: ColumnOptions<T>): Partial<GridColDef>;
|
|
56
59
|
|
|
57
|
-
declare const ARRAY_IS_EMPTY: GridFilterOperator<any, string | string[], any
|
|
58
|
-
declare const ARRAY_IS_NOT_EMPTY: GridFilterOperator<any, string | string[], any
|
|
60
|
+
declare const ARRAY_IS_EMPTY: GridFilterOperator<any, string | string[], any>;
|
|
61
|
+
declare const ARRAY_IS_NOT_EMPTY: GridFilterOperator<any, string | string[], any>;
|
|
59
62
|
|
|
60
|
-
declare const DATE_IS_BETWEEN: GridFilterOperator<any,
|
|
63
|
+
declare const DATE_IS_BETWEEN: GridFilterOperator<any, unknown, any>;
|
|
61
64
|
|
|
62
65
|
declare const getGridDateOperatorsExtended: (showTime?: boolean) => GridFilterOperator[];
|
|
63
66
|
|
|
64
|
-
declare const IS_BETWEEN: GridFilterOperator<any, number, any
|
|
67
|
+
declare const IS_BETWEEN: GridFilterOperator<any, number, any>;
|
|
65
68
|
|
|
66
69
|
declare const getGridNumericOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
67
70
|
|
|
68
|
-
declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any
|
|
71
|
+
declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any>;
|
|
69
72
|
|
|
70
|
-
declare const DOES_NOT_END_WITH: GridFilterOperator<any, string | string[], any
|
|
73
|
+
declare const DOES_NOT_END_WITH: GridFilterOperator<any, string | string[], any>;
|
|
71
74
|
|
|
72
|
-
declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any
|
|
75
|
+
declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any>;
|
|
73
76
|
|
|
74
|
-
declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any
|
|
77
|
+
declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any>;
|
|
75
78
|
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
76
79
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
77
80
|
label?: string;
|
|
78
81
|
headerLabel?: string;
|
|
79
|
-
value:
|
|
80
|
-
getApplyFilterFn:
|
|
81
|
-
InputComponentProps?:
|
|
82
|
-
getValueAsString?: (value:
|
|
82
|
+
value: string;
|
|
83
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
84
|
+
InputComponentProps?: Record<string, any>;
|
|
85
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
83
86
|
requiresFilterValue?: boolean;
|
|
84
87
|
};
|
|
85
88
|
|
|
86
|
-
declare const DOES_NOT_START_WITH: GridFilterOperator<any, string | string[], any
|
|
89
|
+
declare const DOES_NOT_START_WITH: GridFilterOperator<any, string | string[], any>;
|
|
87
90
|
|
|
88
|
-
declare const HAS: GridFilterOperator<any, string | string[], any
|
|
91
|
+
declare const HAS: GridFilterOperator<any, string | string[], any>;
|
|
89
92
|
declare const HAS_WITH_SELECT: {
|
|
90
93
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
91
94
|
label?: string;
|
|
92
95
|
headerLabel?: string;
|
|
93
|
-
value:
|
|
94
|
-
getApplyFilterFn:
|
|
95
|
-
InputComponentProps?:
|
|
96
|
-
getValueAsString?: (value:
|
|
96
|
+
value: string;
|
|
97
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
98
|
+
InputComponentProps?: Record<string, any>;
|
|
99
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
97
100
|
requiresFilterValue?: boolean;
|
|
98
101
|
};
|
|
99
102
|
|
|
100
|
-
declare const HAS_ONLY: GridFilterOperator<any, string | string[], any
|
|
103
|
+
declare const HAS_ONLY: GridFilterOperator<any, string | string[], any>;
|
|
101
104
|
declare const HAS_ONLY_WITH_SELECT: {
|
|
102
105
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
103
106
|
label?: string;
|
|
104
107
|
headerLabel?: string;
|
|
105
|
-
value:
|
|
106
|
-
getApplyFilterFn:
|
|
107
|
-
InputComponentProps?:
|
|
108
|
-
getValueAsString?: (value:
|
|
108
|
+
value: string;
|
|
109
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
110
|
+
InputComponentProps?: Record<string, any>;
|
|
111
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
109
112
|
requiresFilterValue?: boolean;
|
|
110
113
|
};
|
|
111
114
|
|
|
112
|
-
declare const IS: GridFilterOperator<any, string | string[], any
|
|
115
|
+
declare const IS: GridFilterOperator<any, string | string[], any>;
|
|
113
116
|
declare const IS_WITH_SELECT: {
|
|
114
117
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
115
118
|
label?: string;
|
|
116
119
|
headerLabel?: string;
|
|
117
|
-
value:
|
|
118
|
-
getApplyFilterFn:
|
|
119
|
-
InputComponentProps?:
|
|
120
|
-
getValueAsString?: (value:
|
|
120
|
+
value: string;
|
|
121
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
122
|
+
InputComponentProps?: Record<string, any>;
|
|
123
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
121
124
|
requiresFilterValue?: boolean;
|
|
122
125
|
};
|
|
123
126
|
|
|
124
|
-
declare const IS_NOT: GridFilterOperator<any, string | string[], any
|
|
127
|
+
declare const IS_NOT: GridFilterOperator<any, string | string[], any>;
|
|
125
128
|
declare const IS_NOT_WITH_SELECT: {
|
|
126
129
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
127
130
|
label?: string;
|
|
128
131
|
headerLabel?: string;
|
|
129
|
-
value:
|
|
130
|
-
getApplyFilterFn:
|
|
131
|
-
InputComponentProps?:
|
|
132
|
-
getValueAsString?: (value:
|
|
132
|
+
value: string;
|
|
133
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
134
|
+
InputComponentProps?: Record<string, any>;
|
|
135
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
133
136
|
requiresFilterValue?: boolean;
|
|
134
137
|
};
|
|
135
138
|
|
|
136
139
|
declare const getGridStringOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
137
140
|
|
|
138
|
-
declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
141
|
+
declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
139
142
|
|
|
140
|
-
declare const DOES_NOT_CONTAIN_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
143
|
+
declare const DOES_NOT_CONTAIN_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
141
144
|
|
|
142
|
-
declare const DOES_NOT_END_WITH_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
145
|
+
declare const DOES_NOT_END_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
143
146
|
|
|
144
|
-
declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
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_premium.GridFilterItem["operator"];
|
|
150
|
-
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
151
|
-
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
152
|
-
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
153
|
-
requiresFilterValue?: boolean;
|
|
154
|
-
};
|
|
147
|
+
declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
148
|
+
declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: GridFilterOperator<any, string | string[], any>;
|
|
155
149
|
|
|
156
|
-
declare const DOES_NOT_START_WITH_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
150
|
+
declare const DOES_NOT_START_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
157
151
|
|
|
158
|
-
declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
152
|
+
declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
159
153
|
|
|
160
|
-
declare const HAS_ALL_OF: GridFilterOperator<any, string | string[], any
|
|
154
|
+
declare const HAS_ALL_OF: GridFilterOperator<any, string | string[], any>;
|
|
161
155
|
declare const HAS_ALL_OF_WITH_SELECT: {
|
|
162
156
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
163
157
|
label?: string;
|
|
164
158
|
headerLabel?: string;
|
|
165
|
-
value:
|
|
166
|
-
getApplyFilterFn:
|
|
167
|
-
InputComponentProps?:
|
|
168
|
-
getValueAsString?: (value:
|
|
159
|
+
value: string;
|
|
160
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
161
|
+
InputComponentProps?: Record<string, any>;
|
|
162
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
169
163
|
requiresFilterValue?: boolean;
|
|
170
164
|
};
|
|
171
165
|
|
|
172
|
-
declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
166
|
+
declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
173
167
|
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
174
168
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
175
169
|
label?: string;
|
|
176
170
|
headerLabel?: string;
|
|
177
|
-
value:
|
|
178
|
-
getApplyFilterFn:
|
|
179
|
-
InputComponentProps?:
|
|
180
|
-
getValueAsString?: (value:
|
|
171
|
+
value: string;
|
|
172
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
173
|
+
InputComponentProps?: Record<string, any>;
|
|
174
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
181
175
|
requiresFilterValue?: boolean;
|
|
182
176
|
};
|
|
183
177
|
|
|
184
|
-
declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
178
|
+
declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
185
179
|
declare const IS_ANY_OF_WITH_SELECT: {
|
|
186
180
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
187
181
|
label?: string;
|
|
188
182
|
headerLabel?: string;
|
|
189
|
-
value:
|
|
190
|
-
getApplyFilterFn:
|
|
191
|
-
InputComponentProps?:
|
|
192
|
-
getValueAsString?: (value:
|
|
193
|
-
requiresFilterValue?: boolean;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
declare const IS_ANY_OF_I: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.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_premium.GridFilterItem["operator"];
|
|
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;
|
|
183
|
+
value: string;
|
|
184
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
185
|
+
InputComponentProps?: Record<string, any>;
|
|
186
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
205
187
|
requiresFilterValue?: boolean;
|
|
206
188
|
};
|
|
207
189
|
|
|
208
|
-
declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
190
|
+
declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
209
191
|
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
210
192
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
211
193
|
label?: string;
|
|
212
194
|
headerLabel?: string;
|
|
213
|
-
value:
|
|
214
|
-
getApplyFilterFn:
|
|
215
|
-
InputComponentProps?:
|
|
216
|
-
getValueAsString?: (value:
|
|
195
|
+
value: string;
|
|
196
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
197
|
+
InputComponentProps?: Record<string, any>;
|
|
198
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
217
199
|
requiresFilterValue?: boolean;
|
|
218
200
|
};
|
|
219
201
|
|
|
220
|
-
declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any
|
|
202
|
+
declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
221
203
|
|
|
222
|
-
declare const getGridStringArrayOperators: () => GridFilterOperator
|
|
223
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator
|
|
224
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator
|
|
204
|
+
declare const getGridStringArrayOperators: () => GridFilterOperator[];
|
|
205
|
+
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator[];
|
|
206
|
+
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator[];
|
|
225
207
|
|
|
226
208
|
/**
|
|
227
209
|
* Wraps a filter operator's `getApplyFilterFn` to lowercase both the cell value
|
|
@@ -236,93 +218,91 @@ declare const wrapCaseInsensitive: (operator: GridFilterOperator) => GridFilterO
|
|
|
236
218
|
declare const makeCaseInsensitive: (operators: GridFilterOperator[]) => GridFilterOperator[];
|
|
237
219
|
|
|
238
220
|
declare const operatorList: {
|
|
239
|
-
string:
|
|
240
|
-
number:
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
rsSingleSelect: (_mui_x_data_grid_premium.GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps> | {
|
|
250
|
-
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
|
|
221
|
+
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
222
|
+
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
223
|
+
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
224
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
225
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
226
|
+
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
227
|
+
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any>[];
|
|
228
|
+
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any>[];
|
|
229
|
+
rsSingleSelect: (_mui_x_data_grid_pro.GridFilterOperator<any, string | string[], any> | {
|
|
230
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
251
231
|
label?: string;
|
|
252
232
|
headerLabel?: string;
|
|
253
|
-
value:
|
|
254
|
-
getApplyFilterFn:
|
|
255
|
-
InputComponentProps?:
|
|
256
|
-
getValueAsString?: (value:
|
|
233
|
+
value: string;
|
|
234
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
235
|
+
InputComponentProps?: Record<string, any>;
|
|
236
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
257
237
|
requiresFilterValue?: boolean;
|
|
258
238
|
} | {
|
|
259
|
-
InputComponent: typeof
|
|
239
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
260
240
|
label?: string;
|
|
261
241
|
headerLabel?: string;
|
|
262
|
-
value:
|
|
263
|
-
getApplyFilterFn:
|
|
264
|
-
InputComponentProps?:
|
|
265
|
-
getValueAsString?: (value:
|
|
242
|
+
value: string;
|
|
243
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
244
|
+
InputComponentProps?: Record<string, any>;
|
|
245
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
266
246
|
requiresFilterValue?: boolean;
|
|
267
247
|
})[];
|
|
268
248
|
rsSingleSelectWithShortOperatorList: ({
|
|
269
|
-
InputComponent: typeof
|
|
249
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
270
250
|
label?: string;
|
|
271
251
|
headerLabel?: string;
|
|
272
|
-
value:
|
|
273
|
-
getApplyFilterFn:
|
|
274
|
-
InputComponentProps?:
|
|
275
|
-
getValueAsString?: (value:
|
|
252
|
+
value: string;
|
|
253
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
254
|
+
InputComponentProps?: Record<string, any>;
|
|
255
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
276
256
|
requiresFilterValue?: boolean;
|
|
277
257
|
} | {
|
|
278
|
-
InputComponent: typeof
|
|
258
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
279
259
|
label?: string;
|
|
280
260
|
headerLabel?: string;
|
|
281
|
-
value:
|
|
282
|
-
getApplyFilterFn:
|
|
283
|
-
InputComponentProps?:
|
|
284
|
-
getValueAsString?: (value:
|
|
261
|
+
value: string;
|
|
262
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
263
|
+
InputComponentProps?: Record<string, any>;
|
|
264
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
285
265
|
requiresFilterValue?: boolean;
|
|
286
266
|
})[];
|
|
287
|
-
rsMultipleSelect: (
|
|
288
|
-
InputComponent: typeof
|
|
267
|
+
rsMultipleSelect: (_mui_x_data_grid_pro.GridFilterOperator<any, string | string[], any> | {
|
|
268
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
289
269
|
label?: string;
|
|
290
270
|
headerLabel?: string;
|
|
291
|
-
value:
|
|
292
|
-
getApplyFilterFn:
|
|
293
|
-
InputComponentProps?:
|
|
294
|
-
getValueAsString?: (value:
|
|
271
|
+
value: string;
|
|
272
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
273
|
+
InputComponentProps?: Record<string, any>;
|
|
274
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
295
275
|
requiresFilterValue?: boolean;
|
|
296
276
|
} | {
|
|
297
|
-
InputComponent: typeof
|
|
277
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
298
278
|
label?: string;
|
|
299
279
|
headerLabel?: string;
|
|
300
|
-
value:
|
|
301
|
-
getApplyFilterFn:
|
|
302
|
-
InputComponentProps?:
|
|
303
|
-
getValueAsString?: (value:
|
|
280
|
+
value: string;
|
|
281
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
282
|
+
InputComponentProps?: Record<string, any>;
|
|
283
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
304
284
|
requiresFilterValue?: boolean;
|
|
305
285
|
})[];
|
|
306
286
|
rsMultipleSelectWithShortOperatorList: ({
|
|
307
|
-
InputComponent: typeof
|
|
287
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
308
288
|
label?: string;
|
|
309
289
|
headerLabel?: string;
|
|
310
|
-
value:
|
|
311
|
-
getApplyFilterFn:
|
|
312
|
-
InputComponentProps?:
|
|
313
|
-
getValueAsString?: (value:
|
|
290
|
+
value: string;
|
|
291
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
292
|
+
InputComponentProps?: Record<string, any>;
|
|
293
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
314
294
|
requiresFilterValue?: boolean;
|
|
315
295
|
} | {
|
|
316
|
-
InputComponent: typeof
|
|
296
|
+
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
317
297
|
label?: string;
|
|
318
298
|
headerLabel?: string;
|
|
319
|
-
value:
|
|
320
|
-
getApplyFilterFn:
|
|
321
|
-
InputComponentProps?:
|
|
322
|
-
getValueAsString?: (value:
|
|
299
|
+
value: string;
|
|
300
|
+
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
301
|
+
InputComponentProps?: Record<string, any>;
|
|
302
|
+
getValueAsString?: (value: _mui_x_data_grid_pro.GridFilterItem["value"]) => string;
|
|
323
303
|
requiresFilterValue?: boolean;
|
|
324
304
|
})[];
|
|
325
|
-
rsStringArray:
|
|
305
|
+
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
326
306
|
};
|
|
327
307
|
|
|
328
308
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
@@ -334,238 +314,17 @@ declare const VISIBILITY_MODEL_KEY = "visibilityModel";
|
|
|
334
314
|
declare const PINNED_COLUMNS = "pinnedColumns";
|
|
335
315
|
declare const DIMENSION_MODEL_KEY = "dimension";
|
|
336
316
|
declare const FILTER_SEARCH_KEY = "searchModel";
|
|
337
|
-
declare const
|
|
317
|
+
declare const DENSITY_MODEL_KEY = "densityModel";
|
|
318
|
+
declare const CATEGORIES: readonly ["paginationModel", "filterModel", "sortModel", "visibilityModel", "dimension", "searchModel", "pinnedColumns", "densityModel"];
|
|
338
319
|
type Category = (typeof CATEGORIES)[number];
|
|
339
320
|
declare const buildStorageKey: ({ id, version, category }: {
|
|
340
321
|
id: string;
|
|
341
322
|
version: number;
|
|
342
323
|
category: Category;
|
|
343
|
-
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
|
|
324
|
+
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel` | `${string}:${number}:densityModel`;
|
|
344
325
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
345
326
|
|
|
346
|
-
|
|
347
|
-
* Type for legacy array-based row selection (v7 and earlier)
|
|
348
|
-
*/
|
|
349
|
-
type LegacyRowSelectionModel = GridRowId[];
|
|
350
|
-
/**
|
|
351
|
-
* Type that accepts both legacy array format and new v8 object format
|
|
352
|
-
*/
|
|
353
|
-
type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
|
|
354
|
-
/**
|
|
355
|
-
* Default empty row selection model for MUI DataGrid v8+
|
|
356
|
-
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
357
|
-
*/
|
|
358
|
-
declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
359
|
-
/**
|
|
360
|
-
* Creates a new row selection model with the given ids
|
|
361
|
-
*/
|
|
362
|
-
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
363
|
-
/**
|
|
364
|
-
* Normalizes a row selection model input to the v8 GridRowSelectionModel format.
|
|
365
|
-
* Accepts both legacy array format (v7) and new object format (v8).
|
|
366
|
-
* This allows consumers to continue using arrays while internally using the v8 format.
|
|
367
|
-
*/
|
|
368
|
-
declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
|
|
369
|
-
/**
|
|
370
|
-
* Gets the size/count of selected rows from a selection model
|
|
371
|
-
*/
|
|
372
|
-
declare const getSelectionCount: (model: GridRowSelectionModel) => number;
|
|
373
|
-
/**
|
|
374
|
-
* Checks if a row is selected in the given selection model
|
|
375
|
-
*/
|
|
376
|
-
declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
|
|
377
|
-
/**
|
|
378
|
-
* Converts a selection model to an array of selected row IDs
|
|
379
|
-
* Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
|
|
380
|
-
* not the actual selected rows (which would require knowing all row ids)
|
|
381
|
-
*/
|
|
382
|
-
declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
|
|
383
|
-
|
|
384
|
-
/** Component Type. */
|
|
385
|
-
type Comp<P, T = HTMLElement> = {
|
|
386
|
-
(props: P & {
|
|
387
|
-
ref?: Ref<T>;
|
|
388
|
-
}): ReactElement | null;
|
|
389
|
-
/** React component type. */
|
|
390
|
-
readonly $$typeof?: symbol;
|
|
391
|
-
/** Component name. */
|
|
392
|
-
displayName?: string;
|
|
393
|
-
/** Component base class name. */
|
|
394
|
-
className?: string;
|
|
395
|
-
};
|
|
396
|
-
/** Get types of the values of a record. */
|
|
397
|
-
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Color palette.
|
|
401
|
-
*/
|
|
402
|
-
declare const Theme: {
|
|
403
|
-
readonly light: "light";
|
|
404
|
-
readonly dark: "dark";
|
|
405
|
-
};
|
|
406
|
-
type Theme = ValueOf<typeof Theme>;
|
|
407
|
-
declare const NotificationsColorPalette: {
|
|
408
|
-
readonly question: "question";
|
|
409
|
-
readonly 'no-data': "no-data";
|
|
410
|
-
readonly success: "success";
|
|
411
|
-
readonly warning: "warning";
|
|
412
|
-
readonly info: "info";
|
|
413
|
-
readonly primary: "primary";
|
|
414
|
-
readonly secondary: "secondary";
|
|
415
|
-
readonly error: "error";
|
|
416
|
-
};
|
|
417
|
-
type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
|
|
418
|
-
declare const ProductColorPalette: {
|
|
419
|
-
readonly asm: "asm";
|
|
420
|
-
readonly 'brand-trust': "brand-trust";
|
|
421
|
-
readonly certificates: "certificates";
|
|
422
|
-
readonly ondmarc: "ondmarc";
|
|
423
|
-
readonly pulse: "pulse";
|
|
424
|
-
readonly radar: "radar";
|
|
425
|
-
readonly 'rojo-ds': "rojo-ds";
|
|
426
|
-
readonly 'vendor-secure': "vendor-secure";
|
|
427
|
-
readonly website: "website";
|
|
428
|
-
};
|
|
429
|
-
type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
|
|
430
|
-
|
|
431
|
-
declare const AlignSelf: {
|
|
432
|
-
readonly auto: "auto";
|
|
433
|
-
readonly normal: "normal";
|
|
434
|
-
readonly start: "start";
|
|
435
|
-
readonly end: "end";
|
|
436
|
-
readonly center: "center";
|
|
437
|
-
readonly 'flex-start': "flex-start";
|
|
438
|
-
readonly 'flex-end': "flex-end";
|
|
439
|
-
readonly 'self-start': "self-start";
|
|
440
|
-
readonly 'self-end': "self-end";
|
|
441
|
-
readonly baseline: "baseline";
|
|
442
|
-
readonly stretch: "stretch";
|
|
443
|
-
};
|
|
444
|
-
type AlignSelf = ValueOf<typeof AlignSelf>;
|
|
445
|
-
interface LayoutProps {
|
|
446
|
-
/** 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>. */
|
|
447
|
-
flex?: string;
|
|
448
|
-
/** 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>. */
|
|
449
|
-
flexGrow?: number;
|
|
450
|
-
/** 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>. */
|
|
451
|
-
flexShrink?: number;
|
|
452
|
-
/** 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>. */
|
|
453
|
-
flexBasis?: string;
|
|
454
|
-
/** 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>. */
|
|
455
|
-
alignSelf?: AlignSelf;
|
|
456
|
-
/** 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>. */
|
|
457
|
-
justifySelf?: string;
|
|
458
|
-
/** 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>. */
|
|
459
|
-
order?: number;
|
|
460
|
-
/** 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>. */
|
|
461
|
-
gridArea?: string;
|
|
462
|
-
/** 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>. */
|
|
463
|
-
gridColumn?: string;
|
|
464
|
-
/** 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>. */
|
|
465
|
-
gridRow?: string;
|
|
466
|
-
/** 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>. */
|
|
467
|
-
gridColumnStart?: string;
|
|
468
|
-
/** 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>. */
|
|
469
|
-
gridColumnEnd?: string;
|
|
470
|
-
/** 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>. */
|
|
471
|
-
gridRowStart?: string;
|
|
472
|
-
/** 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>. */
|
|
473
|
-
gridRowEnd?: string;
|
|
474
|
-
}
|
|
475
|
-
interface SpacingProps {
|
|
476
|
-
/** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
|
|
477
|
-
margin?: string;
|
|
478
|
-
/** 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>. */
|
|
479
|
-
marginBottom?: string;
|
|
480
|
-
/** 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>. */
|
|
481
|
-
marginLeft?: string;
|
|
482
|
-
/** 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>. */
|
|
483
|
-
marginRight?: string;
|
|
484
|
-
/** 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>. */
|
|
485
|
-
marginTop?: string;
|
|
486
|
-
}
|
|
487
|
-
interface PositioningProps {
|
|
488
|
-
/** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
|
|
489
|
-
position?: string;
|
|
490
|
-
/** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
|
|
491
|
-
top?: string;
|
|
492
|
-
/** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
|
|
493
|
-
bottom?: string;
|
|
494
|
-
/** 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. */
|
|
495
|
-
left?: string;
|
|
496
|
-
/** 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. */
|
|
497
|
-
right?: string;
|
|
498
|
-
/** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
|
|
499
|
-
zIndex?: string;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Component size.
|
|
504
|
-
*/
|
|
505
|
-
declare const IconSize: {
|
|
506
|
-
readonly xsmall: "xsmall";
|
|
507
|
-
readonly small: "small";
|
|
508
|
-
readonly medium: "medium";
|
|
509
|
-
readonly large: "large";
|
|
510
|
-
readonly xlarge: "xlarge";
|
|
511
|
-
readonly xxlarge: "xxlarge";
|
|
512
|
-
};
|
|
513
|
-
type IconSize = ValueOf<typeof IconSize>;
|
|
514
|
-
type IconDimensions = {
|
|
515
|
-
width?: number;
|
|
516
|
-
height?: number;
|
|
517
|
-
fontSize?: number;
|
|
518
|
-
lineHeight?: number;
|
|
519
|
-
};
|
|
520
|
-
/**
|
|
521
|
-
* Component props.
|
|
522
|
-
*/
|
|
523
|
-
interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
|
|
524
|
-
/** Indicates whether the element is exposed to an accessibility API. */
|
|
525
|
-
'aria-hidden'?: boolean | 'false' | 'true';
|
|
526
|
-
/** A screen reader only label for the Icon. */
|
|
527
|
-
'aria-label'?: string;
|
|
528
|
-
/** Color variant. Either from color palette or hex or rgb strings. */
|
|
529
|
-
color?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
530
|
-
/** Whether the icon has a badge attached to it. */
|
|
531
|
-
badge?: ReactElement;
|
|
532
|
-
/**
|
|
533
|
-
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
534
|
-
* Can also be a ReactElement.
|
|
535
|
-
*/
|
|
536
|
-
icon: string | string[] | ReactElement;
|
|
537
|
-
/**
|
|
538
|
-
* Icon size.
|
|
539
|
-
* @default 'medium'
|
|
540
|
-
*/
|
|
541
|
-
size?: IconSize | IconDimensions;
|
|
542
|
-
/** Additional properties to forward to the SVG tag. */
|
|
543
|
-
svgProps?: ComponentProps<'svg'>;
|
|
544
|
-
/** Theme. */
|
|
545
|
-
theme?: Theme;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Component variant.
|
|
550
|
-
*/
|
|
551
|
-
declare const ShieldVariant: {
|
|
552
|
-
readonly success: "success";
|
|
553
|
-
readonly successLocked: "successLocked";
|
|
554
|
-
readonly successUnlocked: "successUnlocked";
|
|
555
|
-
readonly fail: "fail";
|
|
556
|
-
readonly failLocked: "failLocked";
|
|
557
|
-
readonly failUnlocked: "failUnlocked";
|
|
558
|
-
readonly warning: "warning";
|
|
559
|
-
readonly warningLocked: "warningLocked";
|
|
560
|
-
readonly warningUnlocked: "warningUnlocked";
|
|
561
|
-
readonly ignored: "ignored";
|
|
562
|
-
readonly noData: "noData";
|
|
563
|
-
readonly question: "question";
|
|
564
|
-
readonly email: "email";
|
|
565
|
-
};
|
|
566
|
-
type ShieldVariant = ValueOf<typeof ShieldVariant>;
|
|
567
|
-
|
|
568
|
-
interface DataGridProps extends Partial<Pick<DataGridPremiumProps, 'rows'>>, Omit<DataGridPremiumProps, 'rows'> {
|
|
327
|
+
interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
|
|
569
328
|
/** License key for MUI Datagrid Pro. */
|
|
570
329
|
license?: string;
|
|
571
330
|
/**
|
|
@@ -795,7 +554,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
|
|
|
795
554
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
796
555
|
/** SORT */
|
|
797
556
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps["columns"]) => GridSortModel | "invalid";
|
|
798
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
557
|
+
declare const getSearchParamsFromSorting: (sorting: readonly GridSortItem[]) => URLSearchParams;
|
|
799
558
|
/** PAGINATION */
|
|
800
559
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | "invalid";
|
|
801
560
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
@@ -805,6 +564,10 @@ declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumn
|
|
|
805
564
|
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps["columns"]) => PinnedColumns | "invalid";
|
|
806
565
|
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumnFields) => URLSearchParams;
|
|
807
566
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
567
|
+
/** DENSITY */
|
|
568
|
+
type GridDensityValue = 'compact' | 'standard' | 'comfortable';
|
|
569
|
+
declare const getDensityFromString: (searchString: string) => GridDensityValue | "invalid";
|
|
570
|
+
declare const getSearchParamsFromDensity: (density: GridDensityValue) => URLSearchParams;
|
|
808
571
|
type FinalSearchInput = {
|
|
809
572
|
localStorageVersion: number;
|
|
810
573
|
filterModel: GridFilterModel;
|
|
@@ -812,10 +575,11 @@ type FinalSearchInput = {
|
|
|
812
575
|
paginationModel: ExtendedGridPaginationModel;
|
|
813
576
|
columnsVisibilityModel: GridColumnVisibilityModel;
|
|
814
577
|
pinnedColumnsModel: GridPinnedColumnFields;
|
|
578
|
+
density: GridDensityValue;
|
|
815
579
|
search: string;
|
|
816
580
|
columns: DataGridProps['columns'];
|
|
817
581
|
};
|
|
818
|
-
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, columns, }: FinalSearchInput) => URLSearchParams;
|
|
582
|
+
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, density, columns, }: FinalSearchInput) => URLSearchParams;
|
|
819
583
|
type PinnedColumns = {
|
|
820
584
|
left: string[];
|
|
821
585
|
right: string[];
|
|
@@ -831,6 +595,8 @@ type ModelsLocalStorage = {
|
|
|
831
595
|
setLocalStorageColumnsVisibility: (search: string) => void;
|
|
832
596
|
localStoragePinnedColumns: string;
|
|
833
597
|
setLocalStoragePinnedColumns: (search: string) => void;
|
|
598
|
+
localStorageDensity: string;
|
|
599
|
+
setLocalStorageDensity: (density: string) => void;
|
|
834
600
|
};
|
|
835
601
|
type ModelsTable = {
|
|
836
602
|
filterModel: GridFilterModel;
|
|
@@ -838,19 +604,21 @@ type ModelsTable = {
|
|
|
838
604
|
paginationModel: ExtendedGridPaginationModel;
|
|
839
605
|
columnVisibilityModel: GridColumnVisibilityModel;
|
|
840
606
|
pinnedColumnsModel: PinnedColumns;
|
|
607
|
+
density: GridDensityValue;
|
|
841
608
|
/** The display-format search string the URL should have. Null if no update needed. */
|
|
842
609
|
pendingSearch: string | null;
|
|
843
610
|
};
|
|
844
611
|
/** Return the state of the table given the URL and the local storage state */
|
|
845
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState:
|
|
612
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
846
613
|
type DataGridModel = {
|
|
847
614
|
filterModel: GridFilterModel;
|
|
848
615
|
sortModel: GridSortModel;
|
|
849
616
|
paginationModel: ExtendedGridPaginationModel;
|
|
850
617
|
columnsModel: GridColumnVisibilityModel;
|
|
851
618
|
pinnedColumnsModel: GridPinnedColumnFields;
|
|
619
|
+
density: GridDensityValue;
|
|
852
620
|
};
|
|
853
|
-
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
621
|
+
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel, density, }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
854
622
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
855
623
|
|
|
856
624
|
declare const BaseButton: React$1.JSXElementConstructor<any>;
|
|
@@ -860,7 +628,7 @@ declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
|
|
|
860
628
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
861
629
|
declare const BaseIcon: React$1.JSXElementConstructor<any>;
|
|
862
630
|
|
|
863
|
-
declare const
|
|
631
|
+
declare const BasePopper: React$1.JSXElementConstructor<any>;
|
|
864
632
|
|
|
865
633
|
declare const BaseTextField: React$1.JSXElementConstructor<any>;
|
|
866
634
|
|
|
@@ -882,14 +650,9 @@ interface LocaleText {
|
|
|
882
650
|
powerTooltipContent?: string;
|
|
883
651
|
errorText?: string;
|
|
884
652
|
}
|
|
885
|
-
interface FilterConfigColumn {
|
|
886
|
-
field: string;
|
|
887
|
-
type?: string;
|
|
888
|
-
description?: string;
|
|
889
|
-
}
|
|
890
653
|
interface FilterConfig {
|
|
891
|
-
columns:
|
|
892
|
-
typeOperators:
|
|
654
|
+
columns: object[];
|
|
655
|
+
typeOperators: object;
|
|
893
656
|
notes: string;
|
|
894
657
|
openaiApiKey?: string;
|
|
895
658
|
completionFunc?: (nlpFilterConfig: FilterConfig, prompt: string, model: string) => Promise<CompletionResponse>;
|
|
@@ -920,10 +683,13 @@ type ControlledPaginationProps = {
|
|
|
920
683
|
displayRowsPerPage?: boolean;
|
|
921
684
|
displayPagination?: boolean;
|
|
922
685
|
selectionStatus: SelectionStatus;
|
|
923
|
-
apiRef: MutableRefObject<
|
|
686
|
+
apiRef: MutableRefObject<GridApiPro>;
|
|
924
687
|
paginationModel: GridPaginationModel;
|
|
925
688
|
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
926
|
-
pageSizeOptions?: number
|
|
689
|
+
pageSizeOptions?: readonly (number | {
|
|
690
|
+
value: number;
|
|
691
|
+
label: string;
|
|
692
|
+
})[];
|
|
927
693
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
928
694
|
paginationProps?: DataGridProps['paginationProps'];
|
|
929
695
|
};
|
|
@@ -936,12 +702,33 @@ type ServerSideControlledPaginationProps = {
|
|
|
936
702
|
selectionStatus: SelectionStatus;
|
|
937
703
|
paginationModel: GridPaginationModel;
|
|
938
704
|
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
939
|
-
pageSizeOptions?: number
|
|
705
|
+
pageSizeOptions?: readonly (number | {
|
|
706
|
+
value: number;
|
|
707
|
+
label: string;
|
|
708
|
+
})[];
|
|
940
709
|
paginationProps?: DataGridProps['paginationProps'];
|
|
941
710
|
rowCount: number;
|
|
942
711
|
loading?: boolean;
|
|
943
712
|
};
|
|
944
|
-
|
|
713
|
+
/**
|
|
714
|
+
* Get the IDs of all selectable rows currently loaded in the grid (i.e. the current page for server-side).
|
|
715
|
+
*/
|
|
716
|
+
declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<GridApiPro$1>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowSelectionModel;
|
|
717
|
+
/**
|
|
718
|
+
* Intercept MUI's `onRowSelectionModelChange` for server-side pagination to fix the
|
|
719
|
+
* header checkbox behavior when cross-page selections exist.
|
|
720
|
+
*
|
|
721
|
+
* Problem: With `checkboxSelectionVisibleOnly=false` and `keepNonExistentRowsSelected`,
|
|
722
|
+
* the header checkbox shows "indeterminate" when rows from other pages are selected but
|
|
723
|
+
* none on the current page. Clicking it makes MUI deselect everything (treating it as a
|
|
724
|
+
* global toggle-off), but the user's intent is to select the current page.
|
|
725
|
+
*
|
|
726
|
+
* Fix: When MUI empties the selection model and the previous status was 'other' (cross-page
|
|
727
|
+
* selections with 0 selected on current page), we merge all current page rows with the
|
|
728
|
+
* existing cross-page selections instead.
|
|
729
|
+
*/
|
|
730
|
+
declare const fixServerSideHeaderCheckboxSelection: (newSelectionModel: GridRowSelectionModel, previousSelectionModel: GridRowSelectionModel, selectionStatus: React$1.MutableRefObject<SelectionStatus>, apiRef: React$1.MutableRefObject<GridApiPro$1>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowSelectionModel;
|
|
731
|
+
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<GridApiPro$1>, selectionStatus: React$1.MutableRefObject<SelectionStatus>, forceUpdate: React$1.Dispatch<React$1.SetStateAction<number>>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
945
732
|
declare const ServerSideControlledPagination: React$1.FC<ServerSideControlledPaginationProps>;
|
|
946
733
|
|
|
947
734
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
@@ -1028,7 +815,7 @@ type ToolbarWrapperProps = {
|
|
|
1028
815
|
onFilterModelChange: DataGridProps['onFilterModelChange'];
|
|
1029
816
|
pagination: DataGridProps['pagination'];
|
|
1030
817
|
paginationPlacement: DataGridProps['paginationPlacement'];
|
|
1031
|
-
selectionStatus:
|
|
818
|
+
selectionStatus: SelectionStatus;
|
|
1032
819
|
apiRef: DataGridProps['apiRef'];
|
|
1033
820
|
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
1034
821
|
paginationModel: DataGridProps['paginationModel'];
|
|
@@ -1040,4 +827,4 @@ type ToolbarWrapperProps = {
|
|
|
1040
827
|
};
|
|
1041
828
|
declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
|
|
1042
829
|
|
|
1043
|
-
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon,
|
|
830
|
+
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, Category, ColumnOptions, 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, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, 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_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, MultiSelectOperatorName, NumberOperatorName, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, 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, customColumnTypes, decodeValue, encodeValue, fixServerSideHeaderCheckboxSelection, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, getDensityFromString, getFilterModelFromString, getFinalSearch, getGridDateOperatorsExtended, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromDensity, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSelectableRowIdsInPage, getSortingFromString, isOperatorValueValid, isValueValid, makeCaseInsensitive, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString, wrapCaseInsensitive };
|