@redsift/table 12.5.5 → 12.5.6-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/DataGrid2.js +102 -180
- 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/ServerSideControlledPagination.js +11710 -70
- package/_internal/ServerSideControlledPagination.js.map +1 -1
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +1833 -989
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/Toolbar2.js +1 -1
- package/_internal/Toolbar2.js.map +1 -1
- 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 +1218 -6
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +229 -503
- package/index.js +143 -177
- 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/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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.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
|
-
};
|
|
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.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;
|
|
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.GridFilterOperator<any, string | string[], any, _mui_x_data_grid.GridFilterInputValueProps> | {
|
|
250
|
-
InputComponent: typeof _mui_x_data_grid.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>;
|
|
@@ -336,13 +316,7 @@ declare const DIMENSION_MODEL_KEY = "dimension";
|
|
|
336
316
|
declare const FILTER_SEARCH_KEY = "searchModel";
|
|
337
317
|
declare const DENSITY_MODEL_KEY = "densityModel";
|
|
338
318
|
declare const COLUMN_ORDER_MODEL_KEY = "columnOrderModel";
|
|
339
|
-
declare const
|
|
340
|
-
declare const AGGREGATION_MODEL_KEY = "aggregationModel";
|
|
341
|
-
/** Storage category key for the pivot column/row/value configuration. Consumer interop — use with `buildStorageKey`. */
|
|
342
|
-
declare const PIVOT_MODEL_KEY = "pivotModel";
|
|
343
|
-
/** Storage category key for whether pivoting is active. Consumer interop — use with `buildStorageKey`. */
|
|
344
|
-
declare const PIVOT_ACTIVE_KEY = "pivotActive";
|
|
345
|
-
declare const CATEGORIES: readonly ["paginationModel", "filterModel", "sortModel", "visibilityModel", "dimension", "searchModel", "pinnedColumns", "densityModel", "columnOrderModel", "rowGroupingModel", "aggregationModel", "pivotModel", "pivotActive"];
|
|
319
|
+
declare const CATEGORIES: readonly ["paginationModel", "filterModel", "sortModel", "visibilityModel", "dimension", "searchModel", "pinnedColumns", "densityModel", "columnOrderModel"];
|
|
346
320
|
type Category = (typeof CATEGORIES)[number];
|
|
347
321
|
/**
|
|
348
322
|
* Build the localStorage key for a specific grid state category.
|
|
@@ -350,7 +324,7 @@ type Category = (typeof CATEGORIES)[number];
|
|
|
350
324
|
*
|
|
351
325
|
* @example
|
|
352
326
|
* ```ts
|
|
353
|
-
* const key = buildStorageKey({ id: pathname, version: 2, category:
|
|
327
|
+
* const key = buildStorageKey({ id: pathname, version: 2, category: SORT_MODEL_KEY });
|
|
354
328
|
* localStorage.removeItem(key);
|
|
355
329
|
* ```
|
|
356
330
|
*/
|
|
@@ -358,7 +332,7 @@ declare const buildStorageKey: ({ id, version, category }: {
|
|
|
358
332
|
id: string;
|
|
359
333
|
version: number;
|
|
360
334
|
category: Category;
|
|
361
|
-
}) => `${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
|
|
335
|
+
}) => `${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`;
|
|
362
336
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
363
337
|
/**
|
|
364
338
|
* Clear localStorage keys for all versions from 0 to `maxVersion` (inclusive).
|
|
@@ -406,14 +380,13 @@ declare const resetStatefulDataGridState: ({ id, versions, search, historyReplac
|
|
|
406
380
|
* default (all columns visible). Clears the persisted `visibilityModel`
|
|
407
381
|
* localStorage entry for the given versions and strips the `_columnVisibility`
|
|
408
382
|
* param from the live URL, leaving every other piece of grid state (filters,
|
|
409
|
-
* sort,
|
|
383
|
+
* sort, pagination, pinned columns, …) untouched.
|
|
410
384
|
*
|
|
411
385
|
* This is the visibility-scoped counterpart to `resetStatefulDataGridState`.
|
|
412
|
-
* Reach for it at transition points
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
* same transition.
|
|
386
|
+
* Reach for it at transition points where a stale visibility snapshot would
|
|
387
|
+
* otherwise re-seed and keep base columns hidden. Because it leaves the other
|
|
388
|
+
* params alone it will not clobber a filter the caller is writing in the same
|
|
389
|
+
* transition.
|
|
417
390
|
*
|
|
418
391
|
* Like `resetStatefulDataGridState`, the URL strip reads `window.location.search`
|
|
419
392
|
* directly so it operates on the live URL (the caller's captured snapshot may
|
|
@@ -440,229 +413,7 @@ declare const resetColumnVisibility: ({ id, versions, search, historyReplace, }:
|
|
|
440
413
|
}) => void;
|
|
441
414
|
}) => void;
|
|
442
415
|
|
|
443
|
-
|
|
444
|
-
* Type for legacy array-based row selection (v7 and earlier)
|
|
445
|
-
*/
|
|
446
|
-
type LegacyRowSelectionModel = GridRowId[];
|
|
447
|
-
/**
|
|
448
|
-
* Type that accepts both legacy array format and new v8 object format
|
|
449
|
-
*/
|
|
450
|
-
type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
|
|
451
|
-
/**
|
|
452
|
-
* Default empty row selection model for MUI DataGrid v8+
|
|
453
|
-
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
454
|
-
*/
|
|
455
|
-
declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
456
|
-
/**
|
|
457
|
-
* Creates a new row selection model with the given ids
|
|
458
|
-
*/
|
|
459
|
-
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
460
|
-
/**
|
|
461
|
-
* Normalizes a row selection model input to the v8 GridRowSelectionModel format.
|
|
462
|
-
* Accepts both legacy array format (v7) and new object format (v8).
|
|
463
|
-
* This allows consumers to continue using arrays while internally using the v8 format.
|
|
464
|
-
*/
|
|
465
|
-
declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
|
|
466
|
-
/**
|
|
467
|
-
* Gets the size/count of selected rows from a selection model
|
|
468
|
-
*/
|
|
469
|
-
declare const getSelectionCount: (model: GridRowSelectionModel) => number;
|
|
470
|
-
/**
|
|
471
|
-
* Checks if a row is selected in the given selection model
|
|
472
|
-
*/
|
|
473
|
-
declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
|
|
474
|
-
/**
|
|
475
|
-
* Converts a selection model to an array of selected row IDs
|
|
476
|
-
* Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
|
|
477
|
-
* not the actual selected rows (which would require knowing all row ids)
|
|
478
|
-
*/
|
|
479
|
-
declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
|
|
480
|
-
|
|
481
|
-
/** Component Type. */
|
|
482
|
-
type Comp<P, T = HTMLElement> = {
|
|
483
|
-
(props: P & {
|
|
484
|
-
ref?: Ref<T>;
|
|
485
|
-
}): ReactElement | null;
|
|
486
|
-
/** React component type. */
|
|
487
|
-
readonly $$typeof?: symbol;
|
|
488
|
-
/** Component name. */
|
|
489
|
-
displayName?: string;
|
|
490
|
-
/** Component base class name. */
|
|
491
|
-
className?: string;
|
|
492
|
-
};
|
|
493
|
-
/** Get types of the values of a record. */
|
|
494
|
-
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Color palette.
|
|
498
|
-
*/
|
|
499
|
-
declare const Theme: {
|
|
500
|
-
readonly light: "light";
|
|
501
|
-
readonly dark: "dark";
|
|
502
|
-
};
|
|
503
|
-
type Theme = ValueOf<typeof Theme>;
|
|
504
|
-
declare const NotificationsColorPalette: {
|
|
505
|
-
readonly question: "question";
|
|
506
|
-
readonly 'no-data': "no-data";
|
|
507
|
-
readonly success: "success";
|
|
508
|
-
readonly warning: "warning";
|
|
509
|
-
readonly info: "info";
|
|
510
|
-
readonly primary: "primary";
|
|
511
|
-
readonly secondary: "secondary";
|
|
512
|
-
readonly error: "error";
|
|
513
|
-
};
|
|
514
|
-
type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
|
|
515
|
-
declare const ProductColorPalette: {
|
|
516
|
-
readonly asm: "asm";
|
|
517
|
-
readonly 'brand-trust': "brand-trust";
|
|
518
|
-
readonly certificates: "certificates";
|
|
519
|
-
readonly ondmarc: "ondmarc";
|
|
520
|
-
readonly pulse: "pulse";
|
|
521
|
-
readonly radar: "radar";
|
|
522
|
-
readonly 'rojo-ds': "rojo-ds";
|
|
523
|
-
readonly 'vendor-secure': "vendor-secure";
|
|
524
|
-
readonly website: "website";
|
|
525
|
-
};
|
|
526
|
-
type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
|
|
527
|
-
|
|
528
|
-
declare const AlignSelf: {
|
|
529
|
-
readonly auto: "auto";
|
|
530
|
-
readonly normal: "normal";
|
|
531
|
-
readonly start: "start";
|
|
532
|
-
readonly end: "end";
|
|
533
|
-
readonly center: "center";
|
|
534
|
-
readonly 'flex-start': "flex-start";
|
|
535
|
-
readonly 'flex-end': "flex-end";
|
|
536
|
-
readonly 'self-start': "self-start";
|
|
537
|
-
readonly 'self-end': "self-end";
|
|
538
|
-
readonly baseline: "baseline";
|
|
539
|
-
readonly stretch: "stretch";
|
|
540
|
-
};
|
|
541
|
-
type AlignSelf = ValueOf<typeof AlignSelf>;
|
|
542
|
-
interface LayoutProps {
|
|
543
|
-
/** 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>. */
|
|
544
|
-
flex?: string;
|
|
545
|
-
/** 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>. */
|
|
546
|
-
flexGrow?: number;
|
|
547
|
-
/** 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>. */
|
|
548
|
-
flexShrink?: number;
|
|
549
|
-
/** 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>. */
|
|
550
|
-
flexBasis?: string;
|
|
551
|
-
/** 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>. */
|
|
552
|
-
alignSelf?: AlignSelf;
|
|
553
|
-
/** 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>. */
|
|
554
|
-
justifySelf?: string;
|
|
555
|
-
/** 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>. */
|
|
556
|
-
order?: number;
|
|
557
|
-
/** 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>. */
|
|
558
|
-
gridArea?: string;
|
|
559
|
-
/** 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>. */
|
|
560
|
-
gridColumn?: string;
|
|
561
|
-
/** 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>. */
|
|
562
|
-
gridRow?: string;
|
|
563
|
-
/** 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>. */
|
|
564
|
-
gridColumnStart?: string;
|
|
565
|
-
/** 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>. */
|
|
566
|
-
gridColumnEnd?: string;
|
|
567
|
-
/** 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>. */
|
|
568
|
-
gridRowStart?: string;
|
|
569
|
-
/** 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>. */
|
|
570
|
-
gridRowEnd?: string;
|
|
571
|
-
}
|
|
572
|
-
interface SpacingProps {
|
|
573
|
-
/** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
|
|
574
|
-
margin?: string;
|
|
575
|
-
/** 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>. */
|
|
576
|
-
marginBottom?: string;
|
|
577
|
-
/** 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>. */
|
|
578
|
-
marginLeft?: string;
|
|
579
|
-
/** 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>. */
|
|
580
|
-
marginRight?: string;
|
|
581
|
-
/** 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>. */
|
|
582
|
-
marginTop?: string;
|
|
583
|
-
}
|
|
584
|
-
interface PositioningProps {
|
|
585
|
-
/** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
|
|
586
|
-
position?: string;
|
|
587
|
-
/** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
|
|
588
|
-
top?: string;
|
|
589
|
-
/** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
|
|
590
|
-
bottom?: string;
|
|
591
|
-
/** 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. */
|
|
592
|
-
left?: string;
|
|
593
|
-
/** 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. */
|
|
594
|
-
right?: string;
|
|
595
|
-
/** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
|
|
596
|
-
zIndex?: string;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* Component size.
|
|
601
|
-
*/
|
|
602
|
-
declare const IconSize: {
|
|
603
|
-
readonly xsmall: "xsmall";
|
|
604
|
-
readonly small: "small";
|
|
605
|
-
readonly medium: "medium";
|
|
606
|
-
readonly large: "large";
|
|
607
|
-
readonly xlarge: "xlarge";
|
|
608
|
-
readonly xxlarge: "xxlarge";
|
|
609
|
-
};
|
|
610
|
-
type IconSize = ValueOf<typeof IconSize>;
|
|
611
|
-
type IconDimensions = {
|
|
612
|
-
width?: number;
|
|
613
|
-
height?: number;
|
|
614
|
-
fontSize?: number;
|
|
615
|
-
lineHeight?: number;
|
|
616
|
-
};
|
|
617
|
-
/**
|
|
618
|
-
* Component props.
|
|
619
|
-
*/
|
|
620
|
-
interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
|
|
621
|
-
/** Indicates whether the element is exposed to an accessibility API. */
|
|
622
|
-
'aria-hidden'?: boolean | 'false' | 'true';
|
|
623
|
-
/** A screen reader only label for the Icon. */
|
|
624
|
-
'aria-label'?: string;
|
|
625
|
-
/** Color variant. Either from color palette or hex or rgb strings. */
|
|
626
|
-
color?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
627
|
-
/** Whether the icon has a badge attached to it. */
|
|
628
|
-
badge?: ReactElement;
|
|
629
|
-
/**
|
|
630
|
-
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
631
|
-
* Can also be a ReactElement.
|
|
632
|
-
*/
|
|
633
|
-
icon: string | string[] | ReactElement;
|
|
634
|
-
/**
|
|
635
|
-
* Icon size.
|
|
636
|
-
* @default 'medium'
|
|
637
|
-
*/
|
|
638
|
-
size?: IconSize | IconDimensions;
|
|
639
|
-
/** Additional properties to forward to the SVG tag. */
|
|
640
|
-
svgProps?: ComponentProps<'svg'>;
|
|
641
|
-
/** Theme. */
|
|
642
|
-
theme?: Theme;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Component variant.
|
|
647
|
-
*/
|
|
648
|
-
declare const ShieldVariant: {
|
|
649
|
-
readonly success: "success";
|
|
650
|
-
readonly successLocked: "successLocked";
|
|
651
|
-
readonly successUnlocked: "successUnlocked";
|
|
652
|
-
readonly fail: "fail";
|
|
653
|
-
readonly failLocked: "failLocked";
|
|
654
|
-
readonly failUnlocked: "failUnlocked";
|
|
655
|
-
readonly warning: "warning";
|
|
656
|
-
readonly warningLocked: "warningLocked";
|
|
657
|
-
readonly warningUnlocked: "warningUnlocked";
|
|
658
|
-
readonly ignored: "ignored";
|
|
659
|
-
readonly noData: "noData";
|
|
660
|
-
readonly question: "question";
|
|
661
|
-
readonly email: "email";
|
|
662
|
-
};
|
|
663
|
-
type ShieldVariant = ValueOf<typeof ShieldVariant>;
|
|
664
|
-
|
|
665
|
-
interface DataGridProps extends Partial<Pick<DataGridPremiumProps, 'rows'>>, Omit<DataGridPremiumProps, 'rows'> {
|
|
416
|
+
interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
|
|
666
417
|
/** License key for MUI Datagrid Pro. */
|
|
667
418
|
license?: string;
|
|
668
419
|
/**
|
|
@@ -923,10 +674,29 @@ declare const isOperatorValueValid: (field: string, operator: OperatorValue, col
|
|
|
923
674
|
declare const isValueValid: (value: OperatorValue, field: string, columns: DataGridProps["columns"], operator: OperatorValue) => boolean;
|
|
924
675
|
/** FILTERS */
|
|
925
676
|
declare const getFilterModelFromString: (searchString: string, columns: DataGridProps["columns"]) => ExtendedGridFilterModel | "invalid";
|
|
677
|
+
/**
|
|
678
|
+
* Normalises a `date` / `dateTime` filter value to a canonical, URL-safe string
|
|
679
|
+
* before it is serialised into the URL.
|
|
680
|
+
*
|
|
681
|
+
* MUI's `GridFilterInputDate` commits filter values as JS `Date` objects. The
|
|
682
|
+
* generic `encodeValue` would stringify those via `String(value)`, producing a
|
|
683
|
+
* locale string (e.g. `"Thu Jun 25 2026 02:00:00 GMT+0200 (…)"`) that cannot
|
|
684
|
+
* survive the URL round-trip and is rejected by `isValueValid`, silently erasing
|
|
685
|
+
* the filter value (DS-90). We instead mirror MUI's own
|
|
686
|
+
* `convertFilterItemValueToInputValue` so the canonical string matches what the
|
|
687
|
+
* date input renders and round-trips losslessly:
|
|
688
|
+
* - `date` → `YYYY-MM-DD` (UTC, timezone-stable)
|
|
689
|
+
* - `dateTime` → `YYYY-MM-DDTHH:mm:ss` (local wall-clock, matching the
|
|
690
|
+
* datetime-local input)
|
|
691
|
+
* Non-date types, empty values, arrays of dates (e.g. `isBetween`) and
|
|
692
|
+
* unparseable values are handled so the existing string / number / list
|
|
693
|
+
* paths are untouched and invalid values still fall through to `isValueValid`.
|
|
694
|
+
*/
|
|
695
|
+
declare const normalizeDateValue: (value: unknown, type: string | undefined) => OperatorValue;
|
|
926
696
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
927
697
|
/** SORT */
|
|
928
698
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps["columns"]) => GridSortModel | "invalid";
|
|
929
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
699
|
+
declare const getSearchParamsFromSorting: (sorting: readonly GridSortItem[]) => URLSearchParams;
|
|
930
700
|
/** PAGINATION */
|
|
931
701
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | "invalid";
|
|
932
702
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
@@ -940,36 +710,11 @@ declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
|
940
710
|
type GridDensityValue = 'compact' | 'standard' | 'comfortable';
|
|
941
711
|
declare const getDensityFromString: (searchString: string) => GridDensityValue | "invalid";
|
|
942
712
|
declare const getSearchParamsFromDensity: (density: GridDensityValue) => URLSearchParams;
|
|
943
|
-
declare const getDensityModel: (search: string, localStorageDensity: string, setLocalStorageDensity: (density: string) => void, initialState:
|
|
713
|
+
declare const getDensityModel: (search: string, localStorageDensity: string, setLocalStorageDensity: (density: string) => void, initialState: GridInitialStatePro | undefined, isNewVersion: boolean) => GridDensityValue;
|
|
944
714
|
/** COLUMN ORDER */
|
|
945
715
|
type ColumnOrderModel = string[];
|
|
946
716
|
declare const getColumnOrderFromString: (searchString: string) => ColumnOrderModel | "invalid";
|
|
947
717
|
declare const getSearchParamsFromColumnOrder: (columnOrder: ColumnOrderModel) => URLSearchParams;
|
|
948
|
-
/** ROW GROUPING */
|
|
949
|
-
declare const getRowGroupingFromString: (searchString: string) => GridRowGroupingModel | "invalid";
|
|
950
|
-
declare const getSearchParamsFromRowGrouping: (rowGrouping: GridRowGroupingModel) => URLSearchParams;
|
|
951
|
-
/** AGGREGATION */
|
|
952
|
-
declare const getAggregationFromString: (searchString: string) => GridAggregationModel | "invalid";
|
|
953
|
-
declare const getSearchParamsFromAggregation: (aggregation: GridAggregationModel) => URLSearchParams;
|
|
954
|
-
/** PIVOT */
|
|
955
|
-
interface PivotModel {
|
|
956
|
-
columns: string[];
|
|
957
|
-
rows: string[];
|
|
958
|
-
values: {
|
|
959
|
-
field: string;
|
|
960
|
-
aggFunc: string;
|
|
961
|
-
}[];
|
|
962
|
-
}
|
|
963
|
-
/** Convert MUI's GridPivotModel → our simplified PivotModel */
|
|
964
|
-
declare const fromGridPivotModel: (model: GridPivotModel) => PivotModel;
|
|
965
|
-
/**
|
|
966
|
-
* Pivot format: `cols:f1,f2;rows:f3;vals:f4.sum,f5.avg`
|
|
967
|
-
*/
|
|
968
|
-
declare const getPivotFromString: (searchString: string) => PivotModel | "invalid";
|
|
969
|
-
declare const getSearchParamsFromPivot: (pivot: PivotModel) => URLSearchParams;
|
|
970
|
-
/** PIVOT ACTIVE */
|
|
971
|
-
declare const getPivotActiveFromString: (searchString: string) => boolean | "invalid";
|
|
972
|
-
declare const getSearchParamsFromPivotActive: (active: boolean) => URLSearchParams;
|
|
973
718
|
/**
|
|
974
719
|
* Builds the `v=<version>` search param the grid uses to detect stale URLs.
|
|
975
720
|
*
|
|
@@ -998,14 +743,10 @@ type FinalSearchInput = {
|
|
|
998
743
|
density: GridDensityValue;
|
|
999
744
|
columnOrderModel: ColumnOrderModel;
|
|
1000
745
|
defaultColumnOrder: ColumnOrderModel;
|
|
1001
|
-
rowGroupingModel: GridRowGroupingModel;
|
|
1002
|
-
aggregationModel: GridAggregationModel;
|
|
1003
|
-
pivotModel: PivotModel;
|
|
1004
|
-
pivotActive: boolean;
|
|
1005
746
|
search: string;
|
|
1006
747
|
columns: DataGridProps['columns'];
|
|
1007
748
|
};
|
|
1008
|
-
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, density, columnOrderModel, defaultColumnOrder,
|
|
749
|
+
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, density, columnOrderModel, defaultColumnOrder, columns, }: FinalSearchInput) => URLSearchParams;
|
|
1009
750
|
type PinnedColumns = {
|
|
1010
751
|
left: string[];
|
|
1011
752
|
right: string[];
|
|
@@ -1025,14 +766,6 @@ type ModelsLocalStorage = {
|
|
|
1025
766
|
setLocalStorageDensity: (density: string) => void;
|
|
1026
767
|
localStorageColumnOrder: string;
|
|
1027
768
|
setLocalStorageColumnOrder: (value: string) => void;
|
|
1028
|
-
localStorageRowGrouping: string;
|
|
1029
|
-
setLocalStorageRowGrouping: (value: string) => void;
|
|
1030
|
-
localStorageAggregation: string;
|
|
1031
|
-
setLocalStorageAggregation: (value: string) => void;
|
|
1032
|
-
localStoragePivot: string;
|
|
1033
|
-
setLocalStoragePivot: (value: string) => void;
|
|
1034
|
-
localStoragePivotActive: string;
|
|
1035
|
-
setLocalStoragePivotActive: (value: string) => void;
|
|
1036
769
|
};
|
|
1037
770
|
type ModelsTable = {
|
|
1038
771
|
filterModel: GridFilterModel;
|
|
@@ -1042,15 +775,11 @@ type ModelsTable = {
|
|
|
1042
775
|
pinnedColumnsModel: PinnedColumns;
|
|
1043
776
|
density: GridDensityValue;
|
|
1044
777
|
columnOrderModel: ColumnOrderModel;
|
|
1045
|
-
rowGroupingModel: GridRowGroupingModel;
|
|
1046
|
-
aggregationModel: GridAggregationModel;
|
|
1047
|
-
pivotModel: PivotModel;
|
|
1048
|
-
pivotActive: boolean;
|
|
1049
778
|
/** The display-format search string the URL should have. Null if no update needed. */
|
|
1050
779
|
pendingSearch: string | null;
|
|
1051
780
|
};
|
|
1052
781
|
/** Return the state of the table given the URL and the local storage state */
|
|
1053
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState:
|
|
782
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
1054
783
|
type DataGridModel = {
|
|
1055
784
|
filterModel: GridFilterModel;
|
|
1056
785
|
sortModel: GridSortModel;
|
|
@@ -1060,71 +789,10 @@ type DataGridModel = {
|
|
|
1060
789
|
density: GridDensityValue;
|
|
1061
790
|
columnOrderModel: ColumnOrderModel;
|
|
1062
791
|
defaultColumnOrder: ColumnOrderModel;
|
|
1063
|
-
rowGroupingModel: GridRowGroupingModel;
|
|
1064
|
-
aggregationModel: GridAggregationModel;
|
|
1065
|
-
pivotModel: PivotModel;
|
|
1066
|
-
pivotActive: boolean;
|
|
1067
792
|
};
|
|
1068
|
-
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel, density, columnOrderModel, defaultColumnOrder,
|
|
793
|
+
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;
|
|
1069
794
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
1070
795
|
|
|
1071
|
-
/**
|
|
1072
|
-
* A React Router v5 / connected-react-router adapter for `StatefulDataGrid.useRouter`.
|
|
1073
|
-
*
|
|
1074
|
-
* Defers `history.replace` via `queueMicrotask` to avoid the
|
|
1075
|
-
* "Cannot update during an existing state transition" warning
|
|
1076
|
-
* that connected-react-router triggers when the grid synchronises
|
|
1077
|
-
* URL state during render.
|
|
1078
|
-
*
|
|
1079
|
-
* Also coalesces multiple `historyReplace` calls within the same microtask
|
|
1080
|
-
* by computing per-call deltas against the captured `search` snapshot and
|
|
1081
|
-
* merging them into the live URL. This prevents handler stomping when the
|
|
1082
|
-
* grid fires several model-change handlers in the same render (e.g. a
|
|
1083
|
-
* pivot change re-emits a synthetic column-visibility change alongside a
|
|
1084
|
-
* filter change): without coalescing, each handler would compute a full
|
|
1085
|
-
* new search from the same captured snapshot, and the second
|
|
1086
|
-
* `history.replace` would clobber the first — dropping any keys (such as
|
|
1087
|
-
* the filter just typed) that the second handler didn't know about.
|
|
1088
|
-
*
|
|
1089
|
-
* Callers that need an authoritative full-URL replacement (e.g.
|
|
1090
|
-
* `resetStatefulDataGridState`, which must clear grid params even when the
|
|
1091
|
-
* parent component's captured search snapshot is stale relative to the live
|
|
1092
|
-
* URL) can pass `{ authoritative: true }` as the second argument to
|
|
1093
|
-
* `historyReplace`. Authoritative writes bypass the delta logic and write
|
|
1094
|
-
* synchronously to the live URL.
|
|
1095
|
-
*
|
|
1096
|
-
* @example
|
|
1097
|
-
* ```tsx
|
|
1098
|
-
* import { createReactRouterV5Adapter } from '@redsift/table';
|
|
1099
|
-
*
|
|
1100
|
-
* const useRouter = createReactRouterV5Adapter(history);
|
|
1101
|
-
*
|
|
1102
|
-
* <StatefulDataGrid useRouter={useRouter} … />
|
|
1103
|
-
* ```
|
|
1104
|
-
*/
|
|
1105
|
-
/** Minimal subset of React Router v5 `history` used by the adapter. */
|
|
1106
|
-
interface ReactRouterV5History {
|
|
1107
|
-
location: {
|
|
1108
|
-
pathname: string;
|
|
1109
|
-
search: string;
|
|
1110
|
-
};
|
|
1111
|
-
replace: (path: {
|
|
1112
|
-
pathname: string;
|
|
1113
|
-
search: string;
|
|
1114
|
-
}) => void;
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* Create a `useRouter` hook compatible with `StatefulDataGrid` from a
|
|
1118
|
-
* React Router v5 `history` object.
|
|
1119
|
-
*/
|
|
1120
|
-
declare const createReactRouterV5Adapter: (history: ReactRouterV5History) => (() => {
|
|
1121
|
-
pathname: string;
|
|
1122
|
-
search: string;
|
|
1123
|
-
historyReplace: (newSearch: string, options?: {
|
|
1124
|
-
authoritative?: boolean;
|
|
1125
|
-
}) => void;
|
|
1126
|
-
});
|
|
1127
|
-
|
|
1128
796
|
interface UseLinkedFilterModelOptions {
|
|
1129
797
|
/** Starting filter model. Defaults to `{ items: [] }`. */
|
|
1130
798
|
initialFilterModel?: GridFilterModel;
|
|
@@ -1185,6 +853,63 @@ interface UseLinkedFilterModelReturn {
|
|
|
1185
853
|
*/
|
|
1186
854
|
declare function useLinkedFilterModel(options?: UseLinkedFilterModelOptions): UseLinkedFilterModelReturn;
|
|
1187
855
|
|
|
856
|
+
/**
|
|
857
|
+
* A React Router v5 / connected-react-router adapter for `StatefulDataGrid.useRouter`.
|
|
858
|
+
*
|
|
859
|
+
* Defers `history.replace` via `queueMicrotask` to avoid the
|
|
860
|
+
* "Cannot update during an existing state transition" warning
|
|
861
|
+
* that connected-react-router triggers when the grid synchronises
|
|
862
|
+
* URL state during render.
|
|
863
|
+
*
|
|
864
|
+
* Also coalesces multiple `historyReplace` calls within the same microtask
|
|
865
|
+
* by computing per-call deltas against the captured `search` snapshot and
|
|
866
|
+
* merging them into the live URL. This prevents handler stomping when the
|
|
867
|
+
* grid fires several model-change handlers in the same render (e.g. a
|
|
868
|
+
* pivot change re-emits a synthetic column-visibility change alongside a
|
|
869
|
+
* filter change): without coalescing, each handler would compute a full
|
|
870
|
+
* new search from the same captured snapshot, and the second
|
|
871
|
+
* `history.replace` would clobber the first — dropping any keys (such as
|
|
872
|
+
* the filter just typed) that the second handler didn't know about.
|
|
873
|
+
*
|
|
874
|
+
* Callers that need an authoritative full-URL replacement (e.g.
|
|
875
|
+
* `resetStatefulDataGridState`, which must clear grid params even when the
|
|
876
|
+
* parent component's captured search snapshot is stale relative to the live
|
|
877
|
+
* URL) can pass `{ authoritative: true }` as the second argument to
|
|
878
|
+
* `historyReplace`. Authoritative writes bypass the delta logic and write
|
|
879
|
+
* synchronously to the live URL.
|
|
880
|
+
*
|
|
881
|
+
* @example
|
|
882
|
+
* ```tsx
|
|
883
|
+
* import { createReactRouterV5Adapter } from '@redsift/table';
|
|
884
|
+
*
|
|
885
|
+
* const useRouter = createReactRouterV5Adapter(history);
|
|
886
|
+
*
|
|
887
|
+
* <StatefulDataGrid useRouter={useRouter} … />
|
|
888
|
+
* ```
|
|
889
|
+
*/
|
|
890
|
+
/** Minimal subset of React Router v5 `history` used by the adapter. */
|
|
891
|
+
interface ReactRouterV5History {
|
|
892
|
+
location: {
|
|
893
|
+
pathname: string;
|
|
894
|
+
search: string;
|
|
895
|
+
};
|
|
896
|
+
replace: (path: {
|
|
897
|
+
pathname: string;
|
|
898
|
+
search: string;
|
|
899
|
+
}) => void;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Create a `useRouter` hook compatible with `StatefulDataGrid` from a
|
|
903
|
+
* React Router v5 `history` object.
|
|
904
|
+
*/
|
|
905
|
+
declare const createReactRouterV5Adapter: (history: ReactRouterV5History) => (() => {
|
|
906
|
+
pathname: string;
|
|
907
|
+
search: string;
|
|
908
|
+
historyReplace: (newSearch: string, options?: {
|
|
909
|
+
authoritative?: boolean;
|
|
910
|
+
}) => void;
|
|
911
|
+
});
|
|
912
|
+
|
|
1188
913
|
declare const BaseButton: React$1.JSXElementConstructor<any>;
|
|
1189
914
|
|
|
1190
915
|
declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
|
|
@@ -1192,7 +917,7 @@ declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
|
|
|
1192
917
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
1193
918
|
declare const BaseIcon: React$1.JSXElementConstructor<any>;
|
|
1194
919
|
|
|
1195
|
-
declare const
|
|
920
|
+
declare const BasePopper: React$1.JSXElementConstructor<any>;
|
|
1196
921
|
|
|
1197
922
|
declare const BaseTextField: React$1.JSXElementConstructor<any>;
|
|
1198
923
|
|
|
@@ -1214,14 +939,9 @@ interface LocaleText {
|
|
|
1214
939
|
powerTooltipContent?: string;
|
|
1215
940
|
errorText?: string;
|
|
1216
941
|
}
|
|
1217
|
-
interface FilterConfigColumn {
|
|
1218
|
-
field: string;
|
|
1219
|
-
type?: string;
|
|
1220
|
-
description?: string;
|
|
1221
|
-
}
|
|
1222
942
|
interface FilterConfig {
|
|
1223
|
-
columns:
|
|
1224
|
-
typeOperators:
|
|
943
|
+
columns: object[];
|
|
944
|
+
typeOperators: object;
|
|
1225
945
|
notes: string;
|
|
1226
946
|
openaiApiKey?: string;
|
|
1227
947
|
completionFunc?: (nlpFilterConfig: FilterConfig, prompt: string, model: string) => Promise<CompletionResponse>;
|
|
@@ -1252,10 +972,13 @@ type ControlledPaginationProps = {
|
|
|
1252
972
|
displayRowsPerPage?: boolean;
|
|
1253
973
|
displayPagination?: boolean;
|
|
1254
974
|
selectionStatus: SelectionStatus;
|
|
1255
|
-
apiRef: MutableRefObject<
|
|
975
|
+
apiRef: MutableRefObject<GridApiPro>;
|
|
1256
976
|
paginationModel: GridPaginationModel;
|
|
1257
977
|
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
1258
|
-
pageSizeOptions?: number
|
|
978
|
+
pageSizeOptions?: readonly (number | {
|
|
979
|
+
value: number;
|
|
980
|
+
label: string;
|
|
981
|
+
})[];
|
|
1259
982
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
1260
983
|
paginationProps?: DataGridProps['paginationProps'];
|
|
1261
984
|
};
|
|
@@ -1268,7 +991,10 @@ type ServerSideControlledPaginationProps = {
|
|
|
1268
991
|
selectionStatus: SelectionStatus;
|
|
1269
992
|
paginationModel: GridPaginationModel;
|
|
1270
993
|
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
1271
|
-
pageSizeOptions?: number
|
|
994
|
+
pageSizeOptions?: readonly (number | {
|
|
995
|
+
value: number;
|
|
996
|
+
label: string;
|
|
997
|
+
})[];
|
|
1272
998
|
paginationProps?: DataGridProps['paginationProps'];
|
|
1273
999
|
rowCount: number;
|
|
1274
1000
|
loading?: boolean;
|
|
@@ -1276,7 +1002,7 @@ type ServerSideControlledPaginationProps = {
|
|
|
1276
1002
|
/**
|
|
1277
1003
|
* Get the IDs of all selectable rows currently loaded in the grid (i.e. the current page for server-side).
|
|
1278
1004
|
*/
|
|
1279
|
-
declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<
|
|
1005
|
+
declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<GridApiPro$1>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowSelectionModel;
|
|
1280
1006
|
/**
|
|
1281
1007
|
* Intercept MUI's `onRowSelectionModelChange` for server-side pagination to fix the
|
|
1282
1008
|
* header checkbox behavior when cross-page selections exist.
|
|
@@ -1290,8 +1016,8 @@ declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<GridA
|
|
|
1290
1016
|
* selections with 0 selected on current page), we merge all current page rows with the
|
|
1291
1017
|
* existing cross-page selections instead.
|
|
1292
1018
|
*/
|
|
1293
|
-
declare const fixServerSideHeaderCheckboxSelection: (newSelectionModel: GridRowSelectionModel, previousSelectionModel: GridRowSelectionModel, selectionStatus: React$1.MutableRefObject<SelectionStatus>, apiRef: React$1.MutableRefObject<
|
|
1294
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<
|
|
1019
|
+
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;
|
|
1020
|
+
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;
|
|
1295
1021
|
declare const ServerSideControlledPagination: React$1.FC<ServerSideControlledPaginationProps>;
|
|
1296
1022
|
|
|
1297
1023
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
@@ -1403,4 +1129,4 @@ type ToolbarWrapperProps = {
|
|
|
1403
1129
|
*/
|
|
1404
1130
|
declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
|
|
1405
1131
|
|
|
1406
|
-
export {
|
|
1132
|
+
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon, BasePopper, 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, 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, ReactRouterV5History, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, SingleSelectOperatorName, StatefulDataGrid, StatefulDataGridProps, StringOperatorName, StyledDataGridProps, TagsOperatorName, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, UseLinkedFilterModelOptions, UseLinkedFilterModelReturn, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearAllVersionStorage, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, createColumn, createReactRouterV5Adapter, customColumnTypes, decodeValue, encodeValue, fixServerSideHeaderCheckboxSelection, getColumnOrderFromString, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, getDensityFromString, getDensityModel, getFilterModelFromString, getFinalSearch, getGridDateOperatorsExtended, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnOrder, getSearchParamsFromColumnVisibility, getSearchParamsFromDensity, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSearchParamsFromVersion, getSelectableRowIdsInPage, getSortingFromString, isOperatorValueValid, isValueValid, makeCaseInsensitive, muiIconToDSIcon, normalizeDateValue, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, resetColumnVisibility, resetStatefulDataGridState, updateUrl, urlSearchParamsToString, useLinkedFilterModel, wrapCaseInsensitive };
|