@redsift/table 12.5.0-muiv6 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/BaseComponents.js +1 -1
- package/_internal/BaseIconButton.js +126 -0
- package/_internal/BaseIconButton.js.map +1 -0
- package/_internal/DataGrid2.js +115 -76
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +1340 -3
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Pagination.js +1 -1
- package/_internal/ServerSideControlledPagination.js +318 -0
- package/_internal/ServerSideControlledPagination.js.map +1 -0
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +282 -1462
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/Toolbar2.js +23 -6
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +1 -1
- package/_internal/useControlledDatagridState.js +13 -211
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +458 -346
- package/index.js +46 -15
- package/index.js.map +1 -1
- package/package.json +7 -8
- package/_internal/BasePopper.js +0 -2449
- package/_internal/BasePopper.js.map +0 -1
- package/_internal/ControlledPagination.js +0 -10538
- package/_internal/ControlledPagination.js.map +0 -1
- package/_internal/Portal.js +0 -4363
- package/_internal/Portal.js.map +0 -1
- package/_internal/jsx-runtime.js +0 -1342
- package/_internal/jsx-runtime.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,89 +1,18 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-
|
|
4
|
-
import {
|
|
5
|
-
import React, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
|
|
1
|
+
import * as _mui_x_data_grid_premium from '@mui/x-data-grid-premium';
|
|
2
|
+
import { GridColTypeDef, GridColType, GridColDef, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, GridRowId, GridRowSelectionModel, DataGridPremiumProps, GridFilterModel, GridPaginationModel, GridSortModel, GridColumnVisibilityModel, GridPinnedColumnFields, GridInitialState, GridSlotsComponent, GridApiPremium, GridCallbackDetails, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-premium';
|
|
3
|
+
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-premium';
|
|
4
|
+
import React$1, { Ref, ReactElement, ComponentProps, ReactNode, MutableRefObject, RefObject } from 'react';
|
|
6
5
|
import { TablePaginationProps } from '@mui/material';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare const
|
|
11
|
-
|
|
12
|
-
declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
declare const
|
|
17
|
-
type: string;
|
|
18
|
-
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
19
|
-
};
|
|
20
|
-
declare const getRsSingleSelectColumnType: () => {
|
|
21
|
-
type: string;
|
|
22
|
-
filterOperators: ({
|
|
23
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
24
|
-
label: string;
|
|
25
|
-
value: string;
|
|
26
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
27
|
-
} | {
|
|
28
|
-
label: string;
|
|
29
|
-
value: string;
|
|
30
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
31
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleValue;
|
|
32
|
-
} | {
|
|
33
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
34
|
-
label: string;
|
|
35
|
-
value: string;
|
|
36
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
37
|
-
})[];
|
|
38
|
-
};
|
|
39
|
-
declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
|
|
40
|
-
type: string;
|
|
41
|
-
filterOperators: ({
|
|
42
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
43
|
-
label: string;
|
|
44
|
-
value: string;
|
|
45
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
46
|
-
} | {
|
|
47
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
48
|
-
label: string;
|
|
49
|
-
value: string;
|
|
50
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
51
|
-
})[];
|
|
52
|
-
};
|
|
53
|
-
declare const getRsMultipleSelectColumnType: () => {
|
|
54
|
-
type: string;
|
|
55
|
-
filterOperators: ({
|
|
56
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
57
|
-
label: string;
|
|
58
|
-
value: string;
|
|
59
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
60
|
-
} | {
|
|
61
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
62
|
-
label: string;
|
|
63
|
-
value: string;
|
|
64
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
65
|
-
} | {
|
|
66
|
-
label: string;
|
|
67
|
-
value: string;
|
|
68
|
-
getApplyFilterFn: (_filterItem: _mui_x_data_grid_pro.GridFilterItem) => (params: _mui_x_data_grid_pro.GridCellParams) => boolean;
|
|
69
|
-
requiresFilterValue: boolean;
|
|
70
|
-
})[];
|
|
71
|
-
};
|
|
72
|
-
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
|
|
73
|
-
type: string;
|
|
74
|
-
filterOperators: ({
|
|
75
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputSingleSelect;
|
|
76
|
-
label: string;
|
|
77
|
-
value: string;
|
|
78
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
79
|
-
} | {
|
|
80
|
-
InputComponent: typeof _mui_x_data_grid_pro.GridFilterInputMultipleSingleSelect;
|
|
81
|
-
label: string;
|
|
82
|
-
value: string;
|
|
83
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
84
|
-
})[];
|
|
85
|
-
};
|
|
86
|
-
declare const customColumnTypes: Partial<GridColumnTypesRecord>;
|
|
6
|
+
|
|
7
|
+
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_premium.GridColDef;
|
|
8
|
+
|
|
9
|
+
declare const getRsStringColumnType: () => GridColTypeDef;
|
|
10
|
+
declare const getRsNumberColumnType: () => GridColTypeDef;
|
|
11
|
+
declare const getRsSingleSelectColumnType: () => GridColTypeDef;
|
|
12
|
+
declare const getRsSingleSelectWithShortOperatorListColumnType: () => GridColTypeDef;
|
|
13
|
+
declare const getRsMultipleSelectColumnType: () => GridColTypeDef;
|
|
14
|
+
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => GridColTypeDef;
|
|
15
|
+
declare const customColumnTypes: Record<GridColType | string, GridColTypeDef>;
|
|
87
16
|
|
|
88
17
|
type StringOperatorName = 'contains' | 'doesNotContain' | 'equals' | 'doesNotEqual' | 'startsWith' | 'doesNotStartWith' | 'endsWith' | 'doesNotEndWith' | 'isEmpty' | 'isNotEmpty' | 'isAnyOf' | 'isNotAnyOf' | 'containsAnyOf' | 'doesNotContainAnyOf' | 'startsWithAnyOf' | 'doesNotStartWithAnyOf' | 'endsWithAnyOf' | 'doesNotEndWithAnyOf';
|
|
89
18
|
type NumberOperatorName = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'isEmpty' | 'isNotEmpty' | 'isBetween';
|
|
@@ -125,242 +54,174 @@ type ColumnOptions<T extends ColumnType> = T extends 'string' ? StringColumnOpti
|
|
|
125
54
|
*/
|
|
126
55
|
declare function createColumn<T extends ColumnType>(type: T, options?: ColumnOptions<T>): Partial<GridColDef>;
|
|
127
56
|
|
|
128
|
-
declare const ARRAY_IS_EMPTY:
|
|
129
|
-
|
|
130
|
-
value: string;
|
|
131
|
-
getApplyFilterFn: (_filterItem: GridFilterItem) => (params: GridCellParams) => boolean;
|
|
132
|
-
requiresFilterValue: boolean;
|
|
133
|
-
};
|
|
134
|
-
declare const ARRAY_IS_NOT_EMPTY: {
|
|
135
|
-
label: string;
|
|
136
|
-
value: string;
|
|
137
|
-
getApplyFilterFn: (_filterItem: GridFilterItem) => (params: GridCellParams) => boolean;
|
|
138
|
-
requiresFilterValue: boolean;
|
|
139
|
-
};
|
|
57
|
+
declare const ARRAY_IS_EMPTY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
58
|
+
declare const ARRAY_IS_NOT_EMPTY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
140
59
|
|
|
141
|
-
declare const DATE_IS_BETWEEN:
|
|
142
|
-
label: string;
|
|
143
|
-
value: string;
|
|
144
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
145
|
-
InputComponent: (props: any) => JSX.Element;
|
|
146
|
-
};
|
|
60
|
+
declare const DATE_IS_BETWEEN: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
147
61
|
|
|
148
62
|
declare const getGridDateOperatorsExtended: (showTime?: boolean) => GridFilterOperator[];
|
|
149
63
|
|
|
150
|
-
declare const IS_BETWEEN:
|
|
151
|
-
label: string;
|
|
152
|
-
value: string;
|
|
153
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
154
|
-
InputComponent: (props: any) => JSX.Element;
|
|
155
|
-
};
|
|
64
|
+
declare const IS_BETWEEN: GridFilterOperator<any, number, any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
156
65
|
|
|
157
|
-
declare const getGridNumericOperators: () => GridFilterOperator<any,
|
|
66
|
+
declare const getGridNumericOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
158
67
|
|
|
159
|
-
declare const DOES_NOT_CONTAIN:
|
|
160
|
-
label: string;
|
|
161
|
-
value: string;
|
|
162
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
163
|
-
InputComponent: typeof GridFilterInputValue;
|
|
164
|
-
};
|
|
68
|
+
declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
165
69
|
|
|
166
|
-
declare const DOES_NOT_END_WITH:
|
|
167
|
-
label: string;
|
|
168
|
-
value: string;
|
|
169
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
170
|
-
InputComponent: typeof GridFilterInputValue;
|
|
171
|
-
};
|
|
70
|
+
declare const DOES_NOT_END_WITH: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
172
71
|
|
|
173
|
-
declare const DOES_NOT_EQUAL:
|
|
174
|
-
label: string;
|
|
175
|
-
value: string;
|
|
176
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
177
|
-
InputComponent: typeof GridFilterInputValue;
|
|
178
|
-
};
|
|
72
|
+
declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
179
73
|
|
|
180
|
-
declare const DOES_NOT_HAVE:
|
|
181
|
-
label: string;
|
|
182
|
-
value: string;
|
|
183
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
184
|
-
InputComponent: typeof GridFilterInputValue;
|
|
185
|
-
};
|
|
74
|
+
declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
186
75
|
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
187
76
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
188
|
-
label
|
|
189
|
-
|
|
190
|
-
|
|
77
|
+
label?: string;
|
|
78
|
+
headerLabel?: string;
|
|
79
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
80
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
81
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
82
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
83
|
+
requiresFilterValue?: boolean;
|
|
191
84
|
};
|
|
192
85
|
|
|
193
|
-
declare const DOES_NOT_START_WITH:
|
|
194
|
-
label: string;
|
|
195
|
-
value: string;
|
|
196
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
197
|
-
InputComponent: typeof GridFilterInputValue;
|
|
198
|
-
};
|
|
86
|
+
declare const DOES_NOT_START_WITH: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
199
87
|
|
|
200
|
-
declare const HAS:
|
|
201
|
-
label: string;
|
|
202
|
-
value: string;
|
|
203
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
204
|
-
InputComponent: typeof GridFilterInputValue;
|
|
205
|
-
};
|
|
88
|
+
declare const HAS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
206
89
|
declare const HAS_WITH_SELECT: {
|
|
207
90
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
208
|
-
label
|
|
209
|
-
|
|
210
|
-
|
|
91
|
+
label?: string;
|
|
92
|
+
headerLabel?: string;
|
|
93
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
94
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
95
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
96
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
97
|
+
requiresFilterValue?: boolean;
|
|
211
98
|
};
|
|
212
99
|
|
|
213
|
-
declare const HAS_ONLY:
|
|
214
|
-
label: string;
|
|
215
|
-
value: string;
|
|
216
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
217
|
-
InputComponent: typeof GridFilterInputValue;
|
|
218
|
-
};
|
|
100
|
+
declare const HAS_ONLY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
219
101
|
declare const HAS_ONLY_WITH_SELECT: {
|
|
220
102
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
221
|
-
label
|
|
222
|
-
|
|
223
|
-
|
|
103
|
+
label?: string;
|
|
104
|
+
headerLabel?: string;
|
|
105
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
106
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
107
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
108
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
109
|
+
requiresFilterValue?: boolean;
|
|
224
110
|
};
|
|
225
111
|
|
|
226
|
-
declare const IS:
|
|
227
|
-
label: string;
|
|
228
|
-
value: string;
|
|
229
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
230
|
-
InputComponent: typeof GridFilterInputValue;
|
|
231
|
-
};
|
|
112
|
+
declare const IS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
232
113
|
declare const IS_WITH_SELECT: {
|
|
233
114
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
234
|
-
label
|
|
235
|
-
|
|
236
|
-
|
|
115
|
+
label?: string;
|
|
116
|
+
headerLabel?: string;
|
|
117
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
118
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
119
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
120
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
121
|
+
requiresFilterValue?: boolean;
|
|
237
122
|
};
|
|
238
123
|
|
|
239
|
-
declare const IS_NOT:
|
|
240
|
-
label: string;
|
|
241
|
-
value: string;
|
|
242
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
243
|
-
InputComponent: typeof GridFilterInputValue;
|
|
244
|
-
};
|
|
124
|
+
declare const IS_NOT: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
245
125
|
declare const IS_NOT_WITH_SELECT: {
|
|
246
126
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
247
|
-
label
|
|
248
|
-
|
|
249
|
-
|
|
127
|
+
label?: string;
|
|
128
|
+
headerLabel?: string;
|
|
129
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
130
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
131
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
132
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
133
|
+
requiresFilterValue?: boolean;
|
|
250
134
|
};
|
|
251
135
|
|
|
252
|
-
declare const getGridStringOperators: () => GridFilterOperator<any,
|
|
136
|
+
declare const getGridStringOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
253
137
|
|
|
254
|
-
declare const CONTAINS_ANY_OF:
|
|
255
|
-
label: string;
|
|
256
|
-
value: string;
|
|
257
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
258
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
259
|
-
};
|
|
138
|
+
declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
260
139
|
|
|
261
|
-
declare const DOES_NOT_CONTAIN_ANY_OF:
|
|
262
|
-
label: string;
|
|
263
|
-
value: string;
|
|
264
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
265
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
266
|
-
};
|
|
140
|
+
declare const DOES_NOT_CONTAIN_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
267
141
|
|
|
268
|
-
declare const DOES_NOT_END_WITH_ANY_OF:
|
|
269
|
-
label: string;
|
|
270
|
-
value: string;
|
|
271
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
272
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
273
|
-
};
|
|
142
|
+
declare const DOES_NOT_END_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
274
143
|
|
|
275
|
-
declare const DOES_NOT_HAVE_ANY_OF:
|
|
276
|
-
label: string;
|
|
277
|
-
value: string;
|
|
278
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
279
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
280
|
-
};
|
|
144
|
+
declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
281
145
|
declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: {
|
|
282
146
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
283
|
-
label
|
|
284
|
-
|
|
285
|
-
|
|
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;
|
|
286
154
|
};
|
|
287
155
|
|
|
288
|
-
declare const DOES_NOT_START_WITH_ANY_OF:
|
|
289
|
-
label: string;
|
|
290
|
-
value: string;
|
|
291
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
292
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
293
|
-
};
|
|
156
|
+
declare const DOES_NOT_START_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
294
157
|
|
|
295
|
-
declare const ENDS_WITH_ANY_OF:
|
|
296
|
-
label: string;
|
|
297
|
-
value: string;
|
|
298
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
299
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
300
|
-
};
|
|
158
|
+
declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
301
159
|
|
|
302
|
-
declare const HAS_ALL_OF:
|
|
303
|
-
label: string;
|
|
304
|
-
value: string;
|
|
305
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
306
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
307
|
-
};
|
|
160
|
+
declare const HAS_ALL_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
308
161
|
declare const HAS_ALL_OF_WITH_SELECT: {
|
|
309
162
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
310
|
-
label
|
|
311
|
-
|
|
312
|
-
|
|
163
|
+
label?: string;
|
|
164
|
+
headerLabel?: string;
|
|
165
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
166
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
167
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
168
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
169
|
+
requiresFilterValue?: boolean;
|
|
313
170
|
};
|
|
314
171
|
|
|
315
|
-
declare const HAS_ANY_OF:
|
|
316
|
-
label: string;
|
|
317
|
-
value: string;
|
|
318
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
319
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
320
|
-
};
|
|
172
|
+
declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
321
173
|
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
322
174
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
323
|
-
label
|
|
324
|
-
|
|
325
|
-
|
|
175
|
+
label?: string;
|
|
176
|
+
headerLabel?: string;
|
|
177
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
178
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
179
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
180
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
181
|
+
requiresFilterValue?: boolean;
|
|
326
182
|
};
|
|
327
183
|
|
|
328
|
-
declare const IS_ANY_OF:
|
|
329
|
-
label: string;
|
|
330
|
-
value: string;
|
|
331
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
332
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
333
|
-
};
|
|
184
|
+
declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
334
185
|
declare const IS_ANY_OF_WITH_SELECT: {
|
|
335
186
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
336
|
-
label
|
|
337
|
-
|
|
338
|
-
|
|
187
|
+
label?: string;
|
|
188
|
+
headerLabel?: string;
|
|
189
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
190
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
191
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
192
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
193
|
+
requiresFilterValue?: boolean;
|
|
339
194
|
};
|
|
340
195
|
|
|
341
|
-
declare const
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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;
|
|
205
|
+
requiresFilterValue?: boolean;
|
|
346
206
|
};
|
|
207
|
+
|
|
208
|
+
declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
347
209
|
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
348
210
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
349
|
-
label
|
|
350
|
-
|
|
351
|
-
|
|
211
|
+
label?: string;
|
|
212
|
+
headerLabel?: string;
|
|
213
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
214
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
215
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
216
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
217
|
+
requiresFilterValue?: boolean;
|
|
352
218
|
};
|
|
353
219
|
|
|
354
|
-
declare const STARTS_WITH_ANY_OF:
|
|
355
|
-
label: string;
|
|
356
|
-
value: string;
|
|
357
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
358
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
359
|
-
};
|
|
220
|
+
declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps>;
|
|
360
221
|
|
|
361
|
-
declare const getGridStringArrayOperators: () => GridFilterOperator<any,
|
|
362
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any,
|
|
363
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any,
|
|
222
|
+
declare const getGridStringArrayOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
223
|
+
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, unknown, any>[];
|
|
224
|
+
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, unknown, any>[];
|
|
364
225
|
|
|
365
226
|
/**
|
|
366
227
|
* Wraps a filter operator's `getApplyFilterFn` to lowercase both the cell value
|
|
@@ -375,69 +236,93 @@ declare const wrapCaseInsensitive: (operator: GridFilterOperator) => GridFilterO
|
|
|
375
236
|
declare const makeCaseInsensitive: (operators: GridFilterOperator[]) => GridFilterOperator[];
|
|
376
237
|
|
|
377
238
|
declare const operatorList: {
|
|
378
|
-
string:
|
|
379
|
-
number:
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
239
|
+
string: _mui_x_data_grid_premium.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
|
|
240
|
+
number: _mui_x_data_grid_premium.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid_premium.GridFilterInputValueProps & {
|
|
241
|
+
type?: "number";
|
|
242
|
+
}>[];
|
|
243
|
+
boolean: _mui_x_data_grid_premium.GridFilterOperator<any, boolean | null, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
|
|
244
|
+
date: _mui_x_data_grid_premium.GridFilterOperator<any, Date, any, _mui_x_data_grid_premium.GridFilterInputDateProps>[];
|
|
245
|
+
dateTime: _mui_x_data_grid_premium.GridFilterOperator<any, Date, any, _mui_x_data_grid_premium.GridFilterInputDateProps>[];
|
|
246
|
+
singleSelect: _mui_x_data_grid_premium.GridFilterOperator<any, any, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
|
|
247
|
+
rsString: _mui_x_data_grid_premium.GridFilterOperator<any, unknown, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
|
|
248
|
+
rsNumber: _mui_x_data_grid_premium.GridFilterOperator<any, unknown, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
|
|
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;
|
|
251
|
+
label?: string;
|
|
252
|
+
headerLabel?: string;
|
|
253
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
254
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
255
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
256
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
257
|
+
requiresFilterValue?: boolean;
|
|
396
258
|
} | {
|
|
397
|
-
InputComponent: typeof
|
|
398
|
-
label
|
|
399
|
-
|
|
400
|
-
|
|
259
|
+
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
|
|
260
|
+
label?: string;
|
|
261
|
+
headerLabel?: string;
|
|
262
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
263
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
264
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
265
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
266
|
+
requiresFilterValue?: boolean;
|
|
401
267
|
})[];
|
|
402
268
|
rsSingleSelectWithShortOperatorList: ({
|
|
403
|
-
InputComponent: typeof
|
|
404
|
-
label
|
|
405
|
-
|
|
406
|
-
|
|
269
|
+
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
|
|
270
|
+
label?: string;
|
|
271
|
+
headerLabel?: string;
|
|
272
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
273
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
274
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
275
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
276
|
+
requiresFilterValue?: boolean;
|
|
407
277
|
} | {
|
|
408
|
-
InputComponent: typeof
|
|
409
|
-
label
|
|
410
|
-
|
|
411
|
-
|
|
278
|
+
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
|
|
279
|
+
label?: string;
|
|
280
|
+
headerLabel?: string;
|
|
281
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
282
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
283
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
284
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
285
|
+
requiresFilterValue?: boolean;
|
|
412
286
|
})[];
|
|
413
|
-
rsMultipleSelect: ({
|
|
414
|
-
InputComponent: typeof
|
|
415
|
-
label
|
|
416
|
-
|
|
417
|
-
|
|
287
|
+
rsMultipleSelect: (_mui_x_data_grid_premium.GridFilterOperator<any, string | string[], any, _mui_x_data_grid_premium.GridFilterInputValueProps> | {
|
|
288
|
+
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
|
|
289
|
+
label?: string;
|
|
290
|
+
headerLabel?: string;
|
|
291
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
292
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
293
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
294
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
295
|
+
requiresFilterValue?: boolean;
|
|
418
296
|
} | {
|
|
419
|
-
InputComponent: typeof
|
|
420
|
-
label
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
value: string;
|
|
426
|
-
|
|
427
|
-
requiresFilterValue: boolean;
|
|
297
|
+
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
|
|
298
|
+
label?: string;
|
|
299
|
+
headerLabel?: string;
|
|
300
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
301
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
302
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
303
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
304
|
+
requiresFilterValue?: boolean;
|
|
428
305
|
})[];
|
|
429
306
|
rsMultipleSelectWithShortOperatorList: ({
|
|
430
|
-
InputComponent: typeof
|
|
431
|
-
label
|
|
432
|
-
|
|
433
|
-
|
|
307
|
+
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputSingleSelect;
|
|
308
|
+
label?: string;
|
|
309
|
+
headerLabel?: string;
|
|
310
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
311
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
312
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
313
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
314
|
+
requiresFilterValue?: boolean;
|
|
434
315
|
} | {
|
|
435
|
-
InputComponent: typeof
|
|
436
|
-
label
|
|
437
|
-
|
|
438
|
-
|
|
316
|
+
InputComponent: typeof _mui_x_data_grid_premium.GridFilterInputMultipleSingleSelect;
|
|
317
|
+
label?: string;
|
|
318
|
+
headerLabel?: string;
|
|
319
|
+
value: _mui_x_data_grid_premium.GridFilterItem["operator"];
|
|
320
|
+
getApplyFilterFn: _mui_x_data_grid_premium.GetApplyFilterFn<any, string | string[], any>;
|
|
321
|
+
InputComponentProps?: Partial<_mui_x_data_grid_premium.GridFilterInputValueProps> | undefined;
|
|
322
|
+
getValueAsString?: (value: _mui_x_data_grid_premium.GridFilterItem["value"]) => string;
|
|
323
|
+
requiresFilterValue?: boolean;
|
|
439
324
|
})[];
|
|
440
|
-
rsStringArray:
|
|
325
|
+
rsStringArray: _mui_x_data_grid_premium.GridFilterOperator<any, unknown, any, _mui_x_data_grid_premium.GridFilterInputValueProps>[];
|
|
441
326
|
};
|
|
442
327
|
|
|
443
328
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
@@ -459,7 +344,229 @@ declare const buildStorageKey: ({ id, version, category }: {
|
|
|
459
344
|
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel` | `${string}:${number}:densityModel`;
|
|
460
345
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
461
346
|
|
|
462
|
-
|
|
347
|
+
/**
|
|
348
|
+
* Type for legacy array-based row selection (v7 and earlier)
|
|
349
|
+
*/
|
|
350
|
+
type LegacyRowSelectionModel = GridRowId[];
|
|
351
|
+
/**
|
|
352
|
+
* Type that accepts both legacy array format and new v8 object format
|
|
353
|
+
*/
|
|
354
|
+
type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
|
|
355
|
+
/**
|
|
356
|
+
* Default empty row selection model for MUI DataGrid v8+
|
|
357
|
+
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
358
|
+
*/
|
|
359
|
+
declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
360
|
+
/**
|
|
361
|
+
* Creates a new row selection model with the given ids
|
|
362
|
+
*/
|
|
363
|
+
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
364
|
+
/**
|
|
365
|
+
* Normalizes a row selection model input to the v8 GridRowSelectionModel format.
|
|
366
|
+
* Accepts both legacy array format (v7) and new object format (v8).
|
|
367
|
+
* This allows consumers to continue using arrays while internally using the v8 format.
|
|
368
|
+
*/
|
|
369
|
+
declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
|
|
370
|
+
/**
|
|
371
|
+
* Gets the size/count of selected rows from a selection model
|
|
372
|
+
*/
|
|
373
|
+
declare const getSelectionCount: (model: GridRowSelectionModel) => number;
|
|
374
|
+
/**
|
|
375
|
+
* Checks if a row is selected in the given selection model
|
|
376
|
+
*/
|
|
377
|
+
declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Converts a selection model to an array of selected row IDs
|
|
380
|
+
* Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
|
|
381
|
+
* not the actual selected rows (which would require knowing all row ids)
|
|
382
|
+
*/
|
|
383
|
+
declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
|
|
384
|
+
|
|
385
|
+
/** Component Type. */
|
|
386
|
+
type Comp<P, T = HTMLElement> = {
|
|
387
|
+
(props: P & {
|
|
388
|
+
ref?: Ref<T>;
|
|
389
|
+
}): ReactElement | null;
|
|
390
|
+
/** React component type. */
|
|
391
|
+
readonly $$typeof?: symbol;
|
|
392
|
+
/** Component name. */
|
|
393
|
+
displayName?: string;
|
|
394
|
+
/** Component base class name. */
|
|
395
|
+
className?: string;
|
|
396
|
+
};
|
|
397
|
+
/** Get types of the values of a record. */
|
|
398
|
+
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Color palette.
|
|
402
|
+
*/
|
|
403
|
+
declare const Theme: {
|
|
404
|
+
readonly light: "light";
|
|
405
|
+
readonly dark: "dark";
|
|
406
|
+
};
|
|
407
|
+
type Theme = ValueOf<typeof Theme>;
|
|
408
|
+
declare const NotificationsColorPalette: {
|
|
409
|
+
readonly question: "question";
|
|
410
|
+
readonly 'no-data': "no-data";
|
|
411
|
+
readonly success: "success";
|
|
412
|
+
readonly warning: "warning";
|
|
413
|
+
readonly info: "info";
|
|
414
|
+
readonly primary: "primary";
|
|
415
|
+
readonly secondary: "secondary";
|
|
416
|
+
readonly error: "error";
|
|
417
|
+
};
|
|
418
|
+
type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
|
|
419
|
+
declare const ProductColorPalette: {
|
|
420
|
+
readonly asm: "asm";
|
|
421
|
+
readonly 'brand-trust': "brand-trust";
|
|
422
|
+
readonly certificates: "certificates";
|
|
423
|
+
readonly ondmarc: "ondmarc";
|
|
424
|
+
readonly pulse: "pulse";
|
|
425
|
+
readonly radar: "radar";
|
|
426
|
+
readonly 'rojo-ds': "rojo-ds";
|
|
427
|
+
readonly 'vendor-secure': "vendor-secure";
|
|
428
|
+
readonly website: "website";
|
|
429
|
+
};
|
|
430
|
+
type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
|
|
431
|
+
|
|
432
|
+
declare const AlignSelf: {
|
|
433
|
+
readonly auto: "auto";
|
|
434
|
+
readonly normal: "normal";
|
|
435
|
+
readonly start: "start";
|
|
436
|
+
readonly end: "end";
|
|
437
|
+
readonly center: "center";
|
|
438
|
+
readonly 'flex-start': "flex-start";
|
|
439
|
+
readonly 'flex-end': "flex-end";
|
|
440
|
+
readonly 'self-start': "self-start";
|
|
441
|
+
readonly 'self-end': "self-end";
|
|
442
|
+
readonly baseline: "baseline";
|
|
443
|
+
readonly stretch: "stretch";
|
|
444
|
+
};
|
|
445
|
+
type AlignSelf = ValueOf<typeof AlignSelf>;
|
|
446
|
+
interface LayoutProps {
|
|
447
|
+
/** 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>. */
|
|
448
|
+
flex?: string;
|
|
449
|
+
/** 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>. */
|
|
450
|
+
flexGrow?: number;
|
|
451
|
+
/** 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>. */
|
|
452
|
+
flexShrink?: number;
|
|
453
|
+
/** 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>. */
|
|
454
|
+
flexBasis?: string;
|
|
455
|
+
/** 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>. */
|
|
456
|
+
alignSelf?: AlignSelf;
|
|
457
|
+
/** 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>. */
|
|
458
|
+
justifySelf?: string;
|
|
459
|
+
/** 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>. */
|
|
460
|
+
order?: number;
|
|
461
|
+
/** 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>. */
|
|
462
|
+
gridArea?: string;
|
|
463
|
+
/** 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>. */
|
|
464
|
+
gridColumn?: string;
|
|
465
|
+
/** 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>. */
|
|
466
|
+
gridRow?: string;
|
|
467
|
+
/** 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>. */
|
|
468
|
+
gridColumnStart?: string;
|
|
469
|
+
/** 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>. */
|
|
470
|
+
gridColumnEnd?: string;
|
|
471
|
+
/** 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>. */
|
|
472
|
+
gridRowStart?: string;
|
|
473
|
+
/** 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>. */
|
|
474
|
+
gridRowEnd?: string;
|
|
475
|
+
}
|
|
476
|
+
interface SpacingProps {
|
|
477
|
+
/** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
|
|
478
|
+
margin?: string;
|
|
479
|
+
/** 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>. */
|
|
480
|
+
marginBottom?: string;
|
|
481
|
+
/** 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>. */
|
|
482
|
+
marginLeft?: string;
|
|
483
|
+
/** 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>. */
|
|
484
|
+
marginRight?: string;
|
|
485
|
+
/** 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>. */
|
|
486
|
+
marginTop?: string;
|
|
487
|
+
}
|
|
488
|
+
interface PositioningProps {
|
|
489
|
+
/** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
|
|
490
|
+
position?: string;
|
|
491
|
+
/** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
|
|
492
|
+
top?: string;
|
|
493
|
+
/** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
|
|
494
|
+
bottom?: string;
|
|
495
|
+
/** 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. */
|
|
496
|
+
left?: string;
|
|
497
|
+
/** 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. */
|
|
498
|
+
right?: string;
|
|
499
|
+
/** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
|
|
500
|
+
zIndex?: string;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Component size.
|
|
505
|
+
*/
|
|
506
|
+
declare const IconSize: {
|
|
507
|
+
readonly xsmall: "xsmall";
|
|
508
|
+
readonly small: "small";
|
|
509
|
+
readonly medium: "medium";
|
|
510
|
+
readonly large: "large";
|
|
511
|
+
readonly xlarge: "xlarge";
|
|
512
|
+
readonly xxlarge: "xxlarge";
|
|
513
|
+
};
|
|
514
|
+
type IconSize = ValueOf<typeof IconSize>;
|
|
515
|
+
type IconDimensions = {
|
|
516
|
+
width?: number;
|
|
517
|
+
height?: number;
|
|
518
|
+
fontSize?: number;
|
|
519
|
+
lineHeight?: number;
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* Component props.
|
|
523
|
+
*/
|
|
524
|
+
interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
|
|
525
|
+
/** Indicates whether the element is exposed to an accessibility API. */
|
|
526
|
+
'aria-hidden'?: boolean | 'false' | 'true';
|
|
527
|
+
/** A screen reader only label for the Icon. */
|
|
528
|
+
'aria-label'?: string;
|
|
529
|
+
/** Color variant. Either from color palette or hex or rgb strings. */
|
|
530
|
+
color?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
531
|
+
/** Whether the icon has a badge attached to it. */
|
|
532
|
+
badge?: ReactElement;
|
|
533
|
+
/**
|
|
534
|
+
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
535
|
+
* Can also be a ReactElement.
|
|
536
|
+
*/
|
|
537
|
+
icon: string | string[] | ReactElement;
|
|
538
|
+
/**
|
|
539
|
+
* Icon size.
|
|
540
|
+
* @default 'medium'
|
|
541
|
+
*/
|
|
542
|
+
size?: IconSize | IconDimensions;
|
|
543
|
+
/** Additional properties to forward to the SVG tag. */
|
|
544
|
+
svgProps?: ComponentProps<'svg'>;
|
|
545
|
+
/** Theme. */
|
|
546
|
+
theme?: Theme;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Component variant.
|
|
551
|
+
*/
|
|
552
|
+
declare const ShieldVariant: {
|
|
553
|
+
readonly success: "success";
|
|
554
|
+
readonly successLocked: "successLocked";
|
|
555
|
+
readonly successUnlocked: "successUnlocked";
|
|
556
|
+
readonly fail: "fail";
|
|
557
|
+
readonly failLocked: "failLocked";
|
|
558
|
+
readonly failUnlocked: "failUnlocked";
|
|
559
|
+
readonly warning: "warning";
|
|
560
|
+
readonly warningLocked: "warningLocked";
|
|
561
|
+
readonly warningUnlocked: "warningUnlocked";
|
|
562
|
+
readonly ignored: "ignored";
|
|
563
|
+
readonly noData: "noData";
|
|
564
|
+
readonly question: "question";
|
|
565
|
+
readonly email: "email";
|
|
566
|
+
};
|
|
567
|
+
type ShieldVariant = ValueOf<typeof ShieldVariant>;
|
|
568
|
+
|
|
569
|
+
interface DataGridProps extends Partial<Pick<DataGridPremiumProps, 'rows'>>, Omit<DataGridPremiumProps, 'rows'> {
|
|
463
570
|
/** License key for MUI Datagrid Pro. */
|
|
464
571
|
license?: string;
|
|
465
572
|
/**
|
|
@@ -689,7 +796,7 @@ declare const getFilterModelFromString: (searchString: string, columns: DataGrid
|
|
|
689
796
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
690
797
|
/** SORT */
|
|
691
798
|
declare const getSortingFromString: (searchString: string, columns: DataGridProps["columns"]) => GridSortModel | "invalid";
|
|
692
|
-
declare const getSearchParamsFromSorting: (sorting:
|
|
799
|
+
declare const getSearchParamsFromSorting: (sorting: GridSortModel) => URLSearchParams;
|
|
693
800
|
/** PAGINATION */
|
|
694
801
|
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | "invalid";
|
|
695
802
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
@@ -697,7 +804,7 @@ declare const getSearchParamsFromPagination: (pagination: ExtendedGridPagination
|
|
|
697
804
|
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps["columns"]) => GridColumnVisibilityModel | "invalid";
|
|
698
805
|
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps["columns"]) => URLSearchParams;
|
|
699
806
|
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps["columns"]) => PinnedColumns | "invalid";
|
|
700
|
-
declare const getSearchParamsFromPinnedColumns: (pinnedColumns:
|
|
807
|
+
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumnFields) => URLSearchParams;
|
|
701
808
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
702
809
|
/** DENSITY */
|
|
703
810
|
type GridDensityValue = 'compact' | 'standard' | 'comfortable';
|
|
@@ -709,7 +816,7 @@ type FinalSearchInput = {
|
|
|
709
816
|
sortModel: GridSortModel;
|
|
710
817
|
paginationModel: ExtendedGridPaginationModel;
|
|
711
818
|
columnsVisibilityModel: GridColumnVisibilityModel;
|
|
712
|
-
pinnedColumnsModel:
|
|
819
|
+
pinnedColumnsModel: GridPinnedColumnFields;
|
|
713
820
|
density: GridDensityValue;
|
|
714
821
|
search: string;
|
|
715
822
|
columns: DataGridProps['columns'];
|
|
@@ -744,28 +851,28 @@ type ModelsTable = {
|
|
|
744
851
|
pendingSearch: string | null;
|
|
745
852
|
};
|
|
746
853
|
/** Return the state of the table given the URL and the local storage state */
|
|
747
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState:
|
|
854
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps["columns"], initialState: GridInitialState | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
748
855
|
type DataGridModel = {
|
|
749
856
|
filterModel: GridFilterModel;
|
|
750
857
|
sortModel: GridSortModel;
|
|
751
858
|
paginationModel: ExtendedGridPaginationModel;
|
|
752
859
|
columnsModel: GridColumnVisibilityModel;
|
|
753
|
-
pinnedColumnsModel:
|
|
860
|
+
pinnedColumnsModel: GridPinnedColumnFields;
|
|
754
861
|
density: GridDensityValue;
|
|
755
862
|
};
|
|
756
863
|
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel, density, }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps["columns"]) => void;
|
|
757
864
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
758
865
|
|
|
759
|
-
declare const BaseButton: React.JSXElementConstructor<any>;
|
|
866
|
+
declare const BaseButton: React$1.JSXElementConstructor<any>;
|
|
760
867
|
|
|
761
|
-
declare const BaseCheckbox: React.JSXElementConstructor<any>;
|
|
868
|
+
declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
|
|
762
869
|
|
|
763
870
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
764
|
-
declare const BaseIcon: React.JSXElementConstructor<any>;
|
|
871
|
+
declare const BaseIcon: React$1.JSXElementConstructor<any>;
|
|
765
872
|
|
|
766
|
-
declare const
|
|
873
|
+
declare const BaseIconButton: React$1.JSXElementConstructor<any>;
|
|
767
874
|
|
|
768
|
-
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
875
|
+
declare const BaseTextField: React$1.JSXElementConstructor<any>;
|
|
769
876
|
|
|
770
877
|
interface CompletionResponseItem {
|
|
771
878
|
field: string;
|
|
@@ -785,16 +892,21 @@ interface LocaleText {
|
|
|
785
892
|
powerTooltipContent?: string;
|
|
786
893
|
errorText?: string;
|
|
787
894
|
}
|
|
895
|
+
interface FilterConfigColumn {
|
|
896
|
+
field: string;
|
|
897
|
+
type?: string;
|
|
898
|
+
description?: string;
|
|
899
|
+
}
|
|
788
900
|
interface FilterConfig {
|
|
789
|
-
columns:
|
|
790
|
-
typeOperators:
|
|
901
|
+
columns: FilterConfigColumn[];
|
|
902
|
+
typeOperators: Record<string, string[]>;
|
|
791
903
|
notes: string;
|
|
792
904
|
openaiApiKey?: string;
|
|
793
905
|
completionFunc?: (nlpFilterConfig: FilterConfig, prompt: string, model: string) => Promise<CompletionResponse>;
|
|
794
906
|
}
|
|
795
907
|
interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
|
|
796
908
|
nlpFilterConfig: FilterConfig;
|
|
797
|
-
onFilterModelChange
|
|
909
|
+
onFilterModelChange?: (filterModel: GridFilterModel) => void;
|
|
798
910
|
dateFormat?: string;
|
|
799
911
|
defaultModel?: string;
|
|
800
912
|
defaultFilter?: CompletionResponse;
|
|
@@ -818,14 +930,14 @@ type ControlledPaginationProps = {
|
|
|
818
930
|
displayRowsPerPage?: boolean;
|
|
819
931
|
displayPagination?: boolean;
|
|
820
932
|
selectionStatus: SelectionStatus;
|
|
821
|
-
apiRef: MutableRefObject<
|
|
933
|
+
apiRef: MutableRefObject<GridApiPremium | null>;
|
|
822
934
|
paginationModel: GridPaginationModel;
|
|
823
|
-
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
935
|
+
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
824
936
|
pageSizeOptions?: number[];
|
|
825
937
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
826
938
|
paginationProps?: DataGridProps['paginationProps'];
|
|
827
939
|
};
|
|
828
|
-
declare const ControlledPagination: React.FC<ControlledPaginationProps>;
|
|
940
|
+
declare const ControlledPagination: React$1.FC<ControlledPaginationProps>;
|
|
829
941
|
|
|
830
942
|
type ServerSideControlledPaginationProps = {
|
|
831
943
|
displaySelection?: boolean;
|
|
@@ -833,7 +945,7 @@ type ServerSideControlledPaginationProps = {
|
|
|
833
945
|
displayPagination?: boolean;
|
|
834
946
|
selectionStatus: SelectionStatus;
|
|
835
947
|
paginationModel: GridPaginationModel;
|
|
836
|
-
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
948
|
+
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
837
949
|
pageSizeOptions?: number[];
|
|
838
950
|
paginationProps?: DataGridProps['paginationProps'];
|
|
839
951
|
rowCount: number;
|
|
@@ -842,7 +954,7 @@ type ServerSideControlledPaginationProps = {
|
|
|
842
954
|
/**
|
|
843
955
|
* Get the IDs of all selectable rows currently loaded in the grid (i.e. the current page for server-side).
|
|
844
956
|
*/
|
|
845
|
-
declare const getSelectableRowIdsInPage: (apiRef: React.MutableRefObject<
|
|
957
|
+
declare const getSelectableRowIdsInPage: (apiRef: React$1.MutableRefObject<GridApiPremium>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowId[];
|
|
846
958
|
/**
|
|
847
959
|
* Intercept MUI's `onRowSelectionModelChange` for server-side pagination to fix the
|
|
848
960
|
* header checkbox behavior when cross-page selections exist.
|
|
@@ -856,9 +968,9 @@ declare const getSelectableRowIdsInPage: (apiRef: React.MutableRefObject<GridApi
|
|
|
856
968
|
* selections with 0 selected on current page), we merge all current page rows with the
|
|
857
969
|
* existing cross-page selections instead.
|
|
858
970
|
*/
|
|
859
|
-
declare const fixServerSideHeaderCheckboxSelection: (newSelectionModel: GridRowSelectionModel, previousSelectionModel: GridRowSelectionModel, selectionStatus: React.MutableRefObject<SelectionStatus>, apiRef: React.MutableRefObject<
|
|
860
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React.MutableRefObject<
|
|
861
|
-
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
971
|
+
declare const fixServerSideHeaderCheckboxSelection: (newSelectionModel: GridRowSelectionModel, previousSelectionModel: GridRowSelectionModel, selectionStatus: React$1.MutableRefObject<SelectionStatus>, apiRef: React$1.MutableRefObject<GridApiPremium>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined) => GridRowSelectionModel;
|
|
972
|
+
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<GridApiPremium | null>, selectionStatus: React$1.MutableRefObject<SelectionStatus>, forceUpdate: React$1.Dispatch<React$1.SetStateAction<number>>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
973
|
+
declare const ServerSideControlledPagination: React$1.FC<ServerSideControlledPaginationProps>;
|
|
862
974
|
|
|
863
975
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
864
976
|
/** Including Badge Component. */
|
|
@@ -886,16 +998,16 @@ interface TextCellProps extends ComponentProps<'div'> {
|
|
|
886
998
|
*/
|
|
887
999
|
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
888
1000
|
|
|
889
|
-
type
|
|
890
|
-
type
|
|
1001
|
+
type GridToolbarColumnsButtonProps = React.ComponentProps<typeof GridToolbarColumnsButton>;
|
|
1002
|
+
type GridToolbarDensitySelectorProps = React.ComponentProps<typeof GridToolbarDensitySelector>;
|
|
891
1003
|
type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
|
|
892
1004
|
interface ToolbarProps {
|
|
893
1005
|
/** Props to forward to the column button. */
|
|
894
|
-
columnsButtonProps?:
|
|
1006
|
+
columnsButtonProps?: GridToolbarColumnsButtonProps;
|
|
895
1007
|
/** Column button ref. */
|
|
896
1008
|
columnsButtonRef?: RefObject<HTMLButtonElement>;
|
|
897
1009
|
/** Props to forward to the density button. */
|
|
898
|
-
densityButtonProps?:
|
|
1010
|
+
densityButtonProps?: GridToolbarDensitySelectorProps;
|
|
899
1011
|
/** Density button ref. */
|
|
900
1012
|
densityButtonRef?: RefObject<HTMLButtonElement>;
|
|
901
1013
|
/** Props to forward to the export button. */
|
|
@@ -935,11 +1047,11 @@ declare global {
|
|
|
935
1047
|
}
|
|
936
1048
|
}
|
|
937
1049
|
/** ------ */
|
|
938
|
-
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1050
|
+
declare const Toolbar: React$1.FC<ToolbarProps>;
|
|
939
1051
|
|
|
940
1052
|
type ToolbarWrapperProps = {
|
|
941
1053
|
hideToolbar: DataGridProps['hideToolbar'];
|
|
942
|
-
RenderedToolbar: React.JSXElementConstructor<any>;
|
|
1054
|
+
RenderedToolbar: React$1.JSXElementConstructor<any>;
|
|
943
1055
|
filterModel: DataGridProps['filterModel'];
|
|
944
1056
|
onFilterModelChange: DataGridProps['onFilterModelChange'];
|
|
945
1057
|
pagination: DataGridProps['pagination'];
|
|
@@ -954,6 +1066,6 @@ type ToolbarWrapperProps = {
|
|
|
954
1066
|
paginationMode?: DataGridProps['paginationMode'];
|
|
955
1067
|
rowCount?: DataGridProps['rowCount'];
|
|
956
1068
|
};
|
|
957
|
-
declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
|
|
1069
|
+
declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
|
|
958
1070
|
|
|
959
|
-
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon,
|
|
1071
|
+
export { ARRAY_IS_EMPTY, ARRAY_IS_NOT_EMPTY, BaseButton, BaseCheckbox, BaseIcon, BaseIconButton, 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, EMPTY_ROW_SELECTION_MODEL, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, FilterConfigColumn, GridDensityValue, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ALL_OF, HAS_ALL_OF_WITH_SELECT, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_I, IS_ANY_OF_I_WITH_SELECT, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, LegacyRowSelectionModel, MultiSelectOperatorName, NumberOperatorName, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, RowSelectionModelInput, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, SingleSelectOperatorName, StatefulDataGrid, StatefulDataGridProps, StringOperatorName, StyledDataGridProps, TagsOperatorName, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, createColumn, createRowSelectionModel, customColumnTypes, decodeValue, encodeValue, fixServerSideHeaderCheckboxSelection, 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, getSelectedIds, getSelectionCount, getSortingFromString, isOperatorValueValid, isRowSelected, isValueValid, makeCaseInsensitive, muiIconToDSIcon, normalizeRowSelectionModel, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString, wrapCaseInsensitive };
|