@redsift/table 11.6.0-muiv5-alpha.14 → 11.6.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/BasePopper.js +2 -2
- package/_internal/ControlledPagination.js +32 -24
- package/_internal/ControlledPagination.js.map +1 -1
- package/_internal/DataGrid2.js +64 -80
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +12 -12
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Portal.js +1 -1
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +1904 -238
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/TextCell2.js +1 -1
- package/_internal/Toolbar2.js +3 -3
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +11 -17
- package/_internal/ToolbarWrapper2.js.map +1 -1
- package/_internal/_rollupPluginBabelHelpers.js +1 -1
- package/_internal/useControlledDatagridState.js +24 -1831
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +82 -79
- package/index.js +48 -3
- package/index.js.map +1 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleSingleSelect';
|
|
2
|
+
import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleValue';
|
|
3
|
+
import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
|
|
1
4
|
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
|
-
import {
|
|
3
|
-
export { GridAlignment, GridColDef,
|
|
5
|
+
import { GridColumnTypesRecord, GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputValue, GridFilterInputSingleSelect, GridFilterInputMultipleValue, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumns, GridSlotsComponent, GridRowSelectionModel, GridApiPro as GridApiPro$1, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
6
|
+
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
4
7
|
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
5
8
|
import React, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
|
|
6
9
|
import { TablePaginationProps } from '@mui/material';
|
|
@@ -10,80 +13,80 @@ import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
|
|
|
10
13
|
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any, any, any>;
|
|
11
14
|
|
|
12
15
|
declare const getRsStringColumnType: () => {
|
|
13
|
-
|
|
16
|
+
type: string;
|
|
14
17
|
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
15
18
|
};
|
|
16
19
|
declare const getRsNumberColumnType: () => {
|
|
17
|
-
|
|
20
|
+
type: string;
|
|
18
21
|
filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
19
22
|
};
|
|
20
23
|
declare const getRsSingleSelectColumnType: () => {
|
|
21
|
-
|
|
24
|
+
type: string;
|
|
22
25
|
filterOperators: ({
|
|
23
|
-
InputComponent: typeof
|
|
26
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
24
27
|
label: string;
|
|
25
28
|
value: string;
|
|
26
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
29
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
27
30
|
} | {
|
|
28
31
|
label: string;
|
|
29
32
|
value: string;
|
|
30
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
31
|
-
InputComponent: typeof
|
|
33
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
34
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
|
|
32
35
|
} | {
|
|
33
|
-
InputComponent: typeof
|
|
36
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
34
37
|
label: string;
|
|
35
38
|
value: string;
|
|
36
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
39
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
37
40
|
})[];
|
|
38
41
|
};
|
|
39
42
|
declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
|
|
40
|
-
|
|
43
|
+
type: string;
|
|
41
44
|
filterOperators: ({
|
|
42
|
-
InputComponent: typeof
|
|
45
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
43
46
|
label: string;
|
|
44
47
|
value: string;
|
|
45
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
48
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
46
49
|
} | {
|
|
47
|
-
InputComponent: typeof
|
|
50
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
48
51
|
label: string;
|
|
49
52
|
value: string;
|
|
50
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
53
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
51
54
|
})[];
|
|
52
55
|
};
|
|
53
56
|
declare const getRsMultipleSelectColumnType: () => {
|
|
54
|
-
|
|
57
|
+
type: string;
|
|
55
58
|
filterOperators: ({
|
|
56
|
-
InputComponent: typeof
|
|
59
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
57
60
|
label: string;
|
|
58
61
|
value: string;
|
|
59
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
62
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
60
63
|
} | {
|
|
61
|
-
InputComponent: typeof
|
|
64
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
62
65
|
label: string;
|
|
63
66
|
value: string;
|
|
64
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
67
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
65
68
|
})[];
|
|
66
69
|
};
|
|
67
70
|
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
|
|
68
|
-
|
|
71
|
+
type: string;
|
|
69
72
|
filterOperators: ({
|
|
70
|
-
InputComponent: typeof
|
|
73
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
71
74
|
label: string;
|
|
72
75
|
value: string;
|
|
73
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
76
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
74
77
|
} | {
|
|
75
|
-
InputComponent: typeof
|
|
78
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
76
79
|
label: string;
|
|
77
80
|
value: string;
|
|
78
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
81
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
79
82
|
})[];
|
|
80
83
|
};
|
|
81
|
-
declare const customColumnTypes: GridColumnTypesRecord
|
|
84
|
+
declare const customColumnTypes: Partial<GridColumnTypesRecord>;
|
|
82
85
|
|
|
83
86
|
declare const IS_BETWEEN: {
|
|
84
87
|
label: string;
|
|
85
88
|
value: string;
|
|
86
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
89
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
87
90
|
InputComponent: (props: any) => JSX.Element;
|
|
88
91
|
};
|
|
89
92
|
|
|
@@ -222,6 +225,12 @@ declare const IS_NOT_ANY_OF: {
|
|
|
222
225
|
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
223
226
|
InputComponent: typeof GridFilterInputMultipleValue;
|
|
224
227
|
};
|
|
228
|
+
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
229
|
+
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
230
|
+
label: string;
|
|
231
|
+
value: string;
|
|
232
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
233
|
+
};
|
|
225
234
|
|
|
226
235
|
declare const STARTS_WITH_ANY_OF: {
|
|
227
236
|
label: string;
|
|
@@ -238,59 +247,59 @@ declare const operatorList: {
|
|
|
238
247
|
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
239
248
|
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
240
249
|
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
241
|
-
date: _mui_x_data_grid_pro.GridFilterOperator<any,
|
|
242
|
-
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any,
|
|
250
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
251
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
243
252
|
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
244
253
|
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
245
254
|
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
246
255
|
rsSingleSelect: ({
|
|
247
|
-
InputComponent: typeof
|
|
256
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
248
257
|
label: string;
|
|
249
258
|
value: string;
|
|
250
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
259
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
251
260
|
} | {
|
|
252
261
|
label: string;
|
|
253
262
|
value: string;
|
|
254
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
255
|
-
InputComponent: typeof
|
|
263
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
264
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
|
|
256
265
|
} | {
|
|
257
|
-
InputComponent: typeof
|
|
266
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
258
267
|
label: string;
|
|
259
268
|
value: string;
|
|
260
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
269
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
261
270
|
})[];
|
|
262
271
|
rsSingleSelectWithShortOperatorList: ({
|
|
263
|
-
InputComponent: typeof
|
|
272
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
264
273
|
label: string;
|
|
265
274
|
value: string;
|
|
266
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
275
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
267
276
|
} | {
|
|
268
|
-
InputComponent: typeof
|
|
277
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
269
278
|
label: string;
|
|
270
279
|
value: string;
|
|
271
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
280
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
272
281
|
})[];
|
|
273
282
|
rsMultipleSelect: ({
|
|
274
|
-
InputComponent: typeof
|
|
283
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
275
284
|
label: string;
|
|
276
285
|
value: string;
|
|
277
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
286
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
278
287
|
} | {
|
|
279
|
-
InputComponent: typeof
|
|
288
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
280
289
|
label: string;
|
|
281
290
|
value: string;
|
|
282
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
291
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
283
292
|
})[];
|
|
284
293
|
rsMultipleSelectWithShortOperatorList: ({
|
|
285
|
-
InputComponent: typeof
|
|
294
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
286
295
|
label: string;
|
|
287
296
|
value: string;
|
|
288
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
297
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
289
298
|
} | {
|
|
290
|
-
InputComponent: typeof
|
|
299
|
+
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
291
300
|
label: string;
|
|
292
301
|
value: string;
|
|
293
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams) => boolean) | null;
|
|
302
|
+
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
294
303
|
})[];
|
|
295
304
|
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
296
305
|
};
|
|
@@ -362,9 +371,7 @@ declare const StatefulDataGrid: Comp<StatefulDataGridProps, HTMLDivElement>;
|
|
|
362
371
|
interface ExtendedGridFilterModel extends GridFilterModel {
|
|
363
372
|
quickFilterValues?: string[];
|
|
364
373
|
}
|
|
365
|
-
interface ExtendedGridPaginationModel {
|
|
366
|
-
page: number;
|
|
367
|
-
pageSize: number;
|
|
374
|
+
interface ExtendedGridPaginationModel extends GridPaginationModel {
|
|
368
375
|
direction?: 'next' | 'back';
|
|
369
376
|
}
|
|
370
377
|
|
|
@@ -374,19 +381,21 @@ declare const encodeValue: (value: string | undefined) => string;
|
|
|
374
381
|
declare const urlSearchParamsToString: (searchParams: URLSearchParams) => string;
|
|
375
382
|
declare const numberOperatorEncoder: Record<string, string>;
|
|
376
383
|
declare const numberOperatorDecoder: Record<string, string>;
|
|
384
|
+
declare const isOperatorValueValid: (field: string, operator: OperatorValue, columns: DataGridProps['columns']) => boolean;
|
|
385
|
+
declare const isValueValid: (value: OperatorValue, field: string, columns: DataGridProps['columns'], operator: OperatorValue) => boolean;
|
|
377
386
|
/** FILTERS */
|
|
378
|
-
declare const getFilterModelFromString: (searchString: string, columns: DataGridProps[
|
|
387
|
+
declare const getFilterModelFromString: (searchString: string, columns: DataGridProps['columns']) => ExtendedGridFilterModel | 'invalid';
|
|
379
388
|
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
380
389
|
/** SORT */
|
|
381
|
-
declare const getSortingFromString: (searchString: string, columns: DataGridProps[
|
|
390
|
+
declare const getSortingFromString: (searchString: string, columns: DataGridProps['columns']) => GridSortModel | 'invalid';
|
|
382
391
|
declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
|
|
383
392
|
/** PAGINATION */
|
|
384
|
-
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel |
|
|
393
|
+
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
|
|
385
394
|
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
386
395
|
/** COLUMN VISIBILITY */
|
|
387
|
-
declare const
|
|
388
|
-
declare const
|
|
389
|
-
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps[
|
|
396
|
+
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
|
|
397
|
+
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
|
|
398
|
+
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
|
|
390
399
|
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
|
|
391
400
|
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
392
401
|
type FinalSearchInput = {
|
|
@@ -424,7 +433,7 @@ type ModelsTable = {
|
|
|
424
433
|
pinnedColumnsModel: PinnedColumns;
|
|
425
434
|
};
|
|
426
435
|
/** Return the state of the table given the URL and the local storage state */
|
|
427
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps[
|
|
436
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
428
437
|
type DataGridModel = {
|
|
429
438
|
filterModel: GridFilterModel;
|
|
430
439
|
sortModel: GridSortModel;
|
|
@@ -432,7 +441,7 @@ type DataGridModel = {
|
|
|
432
441
|
columnsModel: GridColumnVisibilityModel;
|
|
433
442
|
pinnedColumnsModel: GridPinnedColumns;
|
|
434
443
|
};
|
|
435
|
-
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps[
|
|
444
|
+
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps['columns']) => void;
|
|
436
445
|
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
437
446
|
|
|
438
447
|
declare const BaseButton: React.JSXElementConstructor<any>;
|
|
@@ -447,12 +456,12 @@ declare const BasePopper: React.JSXElementConstructor<any>;
|
|
|
447
456
|
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
448
457
|
|
|
449
458
|
interface CompletionResponseItem {
|
|
450
|
-
|
|
451
|
-
|
|
459
|
+
field: string;
|
|
460
|
+
operator: string;
|
|
452
461
|
value?: string;
|
|
453
462
|
}
|
|
454
463
|
type CompletionResponse = {
|
|
455
|
-
|
|
464
|
+
logicOperator: 'and' | 'or';
|
|
456
465
|
items: CompletionResponseItem[];
|
|
457
466
|
};
|
|
458
467
|
interface LocaleText {
|
|
@@ -498,11 +507,9 @@ type ControlledPaginationProps = {
|
|
|
498
507
|
displayPagination?: boolean;
|
|
499
508
|
selectionStatus: SelectionStatus;
|
|
500
509
|
apiRef: MutableRefObject<GridApiPro>;
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
onPageSizeChange: (pageSize: number) => void;
|
|
505
|
-
rowsPerPageOptions?: number[];
|
|
510
|
+
paginationModel: GridPaginationModel;
|
|
511
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
512
|
+
pageSizeOptions?: number[];
|
|
506
513
|
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
507
514
|
paginationProps?: DataGridProps['paginationProps'];
|
|
508
515
|
};
|
|
@@ -513,16 +520,14 @@ type ServerSideControlledPaginationProps = {
|
|
|
513
520
|
displayRowsPerPage?: boolean;
|
|
514
521
|
displayPagination?: boolean;
|
|
515
522
|
selectionStatus: SelectionStatus;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
onPageSizeChange: (pageSize: number) => void;
|
|
520
|
-
rowsPerPageOptions?: number[];
|
|
523
|
+
paginationModel: GridPaginationModel;
|
|
524
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
525
|
+
pageSizeOptions?: number[];
|
|
521
526
|
paginationProps?: DataGridProps['paginationProps'];
|
|
522
527
|
rowCount: number;
|
|
523
528
|
loading?: boolean;
|
|
524
529
|
};
|
|
525
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel:
|
|
530
|
+
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React.MutableRefObject<GridApiPro$1>, selectionStatus: React.MutableRefObject<SelectionStatus>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
526
531
|
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
527
532
|
|
|
528
533
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
@@ -612,15 +617,13 @@ type ToolbarWrapperProps = {
|
|
|
612
617
|
selectionStatus: React.MutableRefObject<SelectionStatus>;
|
|
613
618
|
apiRef: DataGridProps['apiRef'];
|
|
614
619
|
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
onPageSizeChange: DataGridProps['onPageSizeChange'];
|
|
619
|
-
rowsPerPageOptions: DataGridProps['rowsPerPageOptions'];
|
|
620
|
+
paginationModel: DataGridProps['paginationModel'];
|
|
621
|
+
onPaginationModelChange: DataGridProps['onPaginationModelChange'];
|
|
622
|
+
pageSizeOptions: DataGridProps['pageSizeOptions'];
|
|
620
623
|
paginationProps: DataGridProps['paginationProps'];
|
|
621
624
|
paginationMode?: DataGridProps['paginationMode'];
|
|
622
625
|
rowCount?: DataGridProps['rowCount'];
|
|
623
626
|
};
|
|
624
627
|
declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
|
|
625
628
|
|
|
626
|
-
export { BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_WITH_SELECT, IS_WITH_SELECT, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, buildStorageKey, clearPreviousVersionStorage, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|
|
629
|
+
export { BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, buildStorageKey, clearPreviousVersionStorage, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, isOperatorValueValid, isValueValid, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { o as operatorList } from './_internal/StatefulDataGrid2.js';
|
|
2
|
+
export { B as CATEGORIES, C as CONTAINS_ANY_OF, m as CONTAINS_ANY_OF_I, z as DIMENSION_MODEL_KEY, D as DOES_NOT_CONTAIN, a as DOES_NOT_EQUAL, b as DOES_NOT_HAVE, c as DOES_NOT_HAVE_WITH_SELECT, E as ENDS_WITH_ANY_OF, F as FILTER_MODEL_KEY, A as FILTER_SEARCH_KEY, H as HAS, q as HAS_ANY_OF, r as HAS_ANY_OF_WITH_SELECT, e as HAS_ONLY, f as HAS_ONLY_WITH_SELECT, d as HAS_WITH_SELECT, h as IS, n as IS_ANY_OF, p as IS_ANY_OF_WITH_SELECT, I as IS_BETWEEN, j as IS_NOT, s as IS_NOT_ANY_OF, t as IS_NOT_ANY_OF_WITH_SELECT, k as IS_NOT_WITH_SELECT, i as IS_WITH_SELECT, P as PAGINATION_MODEL_KEY, y as PINNED_COLUMNS, x as SORT_MODEL_KEY, S as STARTS_WITH_ANY_OF, a7 as StatefulDataGrid, V as VISIBILITY_MODEL_KEY, a6 as areFilterModelsEquivalent, G as buildStorageKey, J as clearPreviousVersionStorage, K as decodeValue, L as encodeValue, _ as getColumnVisibilityFromString, T as getFilterModelFromString, a3 as getFinalSearch, g as getGridNumericOperators, u as getGridStringArrayOperators, v as getGridStringArrayOperatorsWithSelect, w as getGridStringArrayOperatorsWithSelectOnStringArrayColumns, l as getGridStringOperators, a4 as getModelsParsedOrUpdateLocalStorage, Y as getPaginationFromString, a0 as getPinnedColumnsFromString, $ as getSearchParamsFromColumnVisibility, U as getSearchParamsFromFilterModel, Z as getSearchParamsFromPagination, a1 as getSearchParamsFromPinnedColumns, X as getSearchParamsFromSorting, a2 as getSearchParamsFromTab, W as getSortingFromString, Q as isOperatorValueValid, R as isValueValid, O as numberOperatorDecoder, N as numberOperatorEncoder, o as operatorList, a5 as updateUrl, M as urlSearchParamsToString } from './_internal/StatefulDataGrid2.js';
|
|
2
3
|
export { D as DEFAULT_OPERATORS, G as GridToolbarFilterSemanticField, g as getCompletion } from './_internal/GridToolbarFilterSemanticField2.js';
|
|
3
|
-
export { C as CATEGORIES, D as DIMENSION_MODEL_KEY, F as FILTER_MODEL_KEY, b as FILTER_SEARCH_KEY, P as PAGINATION_MODEL_KEY, a as PINNED_COLUMNS, S as SORT_MODEL_KEY, y as StatefulDataGrid, V as VISIBILITY_MODEL_KEY, x as areFilterModelsEquivalent, c as buildStorageKey, d as clearPreviousVersionStorage, e as decodeValue, f as encodeValue, p as getColumnVisibilityFromString, h as getFilterModelFromString, t as getFinalSearch, v as getModelsParsedOrUpdateLocalStorage, l as getPaginationFromString, q as getPinnedColumnsFromString, o as getSearchParamsFromColumnVisibility, i as getSearchParamsFromFilterModel, m as getSearchParamsFromPagination, r as getSearchParamsFromPinnedColumns, k as getSearchParamsFromSorting, s as getSearchParamsFromTab, j as getSortingFromString, g as numberOperatorDecoder, n as numberOperatorEncoder, w as updateUrl, u as urlSearchParamsToString } from './_internal/StatefulDataGrid2.js';
|
|
4
4
|
import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from '@mui/x-data-grid-pro';
|
|
5
5
|
export { getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
6
6
|
export { B as BaseButton, a as BaseCheckbox, b as BaseIcon, c as BasePopper, m as muiIconToDSIcon } from './_internal/BasePopper.js';
|
|
@@ -15,5 +15,50 @@ export { T as ToolbarWrapper } from './_internal/ToolbarWrapper2.js';
|
|
|
15
15
|
const DETAIL_PANEL_TOGGLE_COL_DEF = GRID_DETAIL_PANEL_TOGGLE_COL_DEF;
|
|
16
16
|
DETAIL_PANEL_TOGGLE_COL_DEF.type = 'actions';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const getRsStringColumnType = () => {
|
|
19
|
+
return {
|
|
20
|
+
type: 'string',
|
|
21
|
+
filterOperators: operatorList.rsString
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const getRsNumberColumnType = () => {
|
|
25
|
+
return {
|
|
26
|
+
type: 'number',
|
|
27
|
+
filterOperators: operatorList.rsNumber
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const getRsSingleSelectColumnType = () => {
|
|
31
|
+
return {
|
|
32
|
+
type: 'singleSelect',
|
|
33
|
+
filterOperators: operatorList.rsSingleSelect
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
const getRsSingleSelectWithShortOperatorListColumnType = () => {
|
|
37
|
+
return {
|
|
38
|
+
type: 'singleSelect',
|
|
39
|
+
filterOperators: operatorList.rsSingleSelectWithShortOperatorList
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
const getRsMultipleSelectColumnType = () => {
|
|
43
|
+
return {
|
|
44
|
+
type: 'singleSelect',
|
|
45
|
+
filterOperators: operatorList.rsMultipleSelect
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const getRsMultipleSelectWithShortOperatorListColumnType = () => {
|
|
49
|
+
return {
|
|
50
|
+
type: 'singleSelect',
|
|
51
|
+
filterOperators: operatorList.rsMultipleSelectWithShortOperatorList
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const customColumnTypes = {
|
|
55
|
+
rsString: getRsStringColumnType(),
|
|
56
|
+
rsNumber: getRsNumberColumnType(),
|
|
57
|
+
rsSingleSelect: getRsSingleSelectColumnType(),
|
|
58
|
+
rsSingleSelectWithShortOperatorList: getRsSingleSelectWithShortOperatorListColumnType(),
|
|
59
|
+
rsMultipleSelect: getRsMultipleSelectColumnType(),
|
|
60
|
+
rsMultipleSelectWithShortOperatorList: getRsMultipleSelectWithShortOperatorListColumnType()
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { DETAIL_PANEL_TOGGLE_COL_DEF, customColumnTypes, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType };
|
|
19
64
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/utils/columns/detailPanelToggleColDef.ts"],"sourcesContent":["import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from '@mui/x-data-grid-pro';\n\n// Don't use a spread operator there or it will break the build due to MUI internal components\nconst DETAIL_PANEL_TOGGLE_COL_DEF = GRID_DETAIL_PANEL_TOGGLE_COL_DEF;\nDETAIL_PANEL_TOGGLE_COL_DEF.type = 'actions';\n\nexport { DETAIL_PANEL_TOGGLE_COL_DEF };\n"],"names":["DETAIL_PANEL_TOGGLE_COL_DEF","GRID_DETAIL_PANEL_TOGGLE_COL_DEF","type"],"mappings":";;;;;;;;;;;;;AAEA;AACMA,MAAAA,2BAA2B,GAAGC,iCAAgC;AACpED,2BAA2B,CAACE,IAAI,GAAG,SAAS;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/utils/columns/detailPanelToggleColDef.ts","../src/utils/columnTypes/index.ts"],"sourcesContent":["import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from '@mui/x-data-grid-pro';\n\n// Don't use a spread operator there or it will break the build due to MUI internal components\nconst DETAIL_PANEL_TOGGLE_COL_DEF = GRID_DETAIL_PANEL_TOGGLE_COL_DEF;\nDETAIL_PANEL_TOGGLE_COL_DEF.type = 'actions';\n\nexport { DETAIL_PANEL_TOGGLE_COL_DEF };\n","import { GridColumnTypesRecord } from '@mui/x-data-grid-pro';\nimport { operatorList } from '../operators';\n\nexport const getRsStringColumnType = () => {\n return {\n type: 'string',\n filterOperators: operatorList.rsString,\n };\n};\n\nexport const getRsNumberColumnType = () => {\n return {\n type: 'number',\n filterOperators: operatorList.rsNumber,\n };\n};\n\nexport const getRsSingleSelectColumnType = () => {\n return {\n type: 'singleSelect',\n filterOperators: operatorList.rsSingleSelect,\n };\n};\n\nexport const getRsSingleSelectWithShortOperatorListColumnType = () => {\n return {\n type: 'singleSelect',\n filterOperators: operatorList.rsSingleSelectWithShortOperatorList,\n };\n};\n\nexport const getRsMultipleSelectColumnType = () => {\n return {\n type: 'singleSelect',\n filterOperators: operatorList.rsMultipleSelect,\n };\n};\n\nexport const getRsMultipleSelectWithShortOperatorListColumnType = () => {\n return {\n type: 'singleSelect',\n filterOperators: operatorList.rsMultipleSelectWithShortOperatorList,\n };\n};\n\nexport const customColumnTypes: Partial<GridColumnTypesRecord> = {\n rsString: getRsStringColumnType(),\n rsNumber: getRsNumberColumnType(),\n rsSingleSelect: getRsSingleSelectColumnType(),\n rsSingleSelectWithShortOperatorList: getRsSingleSelectWithShortOperatorListColumnType(),\n rsMultipleSelect: getRsMultipleSelectColumnType(),\n rsMultipleSelectWithShortOperatorList: getRsMultipleSelectWithShortOperatorListColumnType(),\n};\n"],"names":["DETAIL_PANEL_TOGGLE_COL_DEF","GRID_DETAIL_PANEL_TOGGLE_COL_DEF","type","getRsStringColumnType","filterOperators","operatorList","rsString","getRsNumberColumnType","rsNumber","getRsSingleSelectColumnType","rsSingleSelect","getRsSingleSelectWithShortOperatorListColumnType","rsSingleSelectWithShortOperatorList","getRsMultipleSelectColumnType","rsMultipleSelect","getRsMultipleSelectWithShortOperatorListColumnType","rsMultipleSelectWithShortOperatorList","customColumnTypes"],"mappings":";;;;;;;;;;;;;AAEA;AACMA,MAAAA,2BAA2B,GAAGC,iCAAgC;AACpED,2BAA2B,CAACE,IAAI,GAAG,SAAS;;ACD/BC,MAAAA,qBAAqB,GAAGA,MAAM;EACzC,OAAO;AACLD,IAAAA,IAAI,EAAE,QAAQ;IACdE,eAAe,EAAEC,YAAY,CAACC,QAAAA;GAC/B,CAAA;AACH,EAAC;AAEYC,MAAAA,qBAAqB,GAAGA,MAAM;EACzC,OAAO;AACLL,IAAAA,IAAI,EAAE,QAAQ;IACdE,eAAe,EAAEC,YAAY,CAACG,QAAAA;GAC/B,CAAA;AACH,EAAC;AAEYC,MAAAA,2BAA2B,GAAGA,MAAM;EAC/C,OAAO;AACLP,IAAAA,IAAI,EAAE,cAAc;IACpBE,eAAe,EAAEC,YAAY,CAACK,cAAAA;GAC/B,CAAA;AACH,EAAC;AAEYC,MAAAA,gDAAgD,GAAGA,MAAM;EACpE,OAAO;AACLT,IAAAA,IAAI,EAAE,cAAc;IACpBE,eAAe,EAAEC,YAAY,CAACO,mCAAAA;GAC/B,CAAA;AACH,EAAC;AAEYC,MAAAA,6BAA6B,GAAGA,MAAM;EACjD,OAAO;AACLX,IAAAA,IAAI,EAAE,cAAc;IACpBE,eAAe,EAAEC,YAAY,CAACS,gBAAAA;GAC/B,CAAA;AACH,EAAC;AAEYC,MAAAA,kDAAkD,GAAGA,MAAM;EACtE,OAAO;AACLb,IAAAA,IAAI,EAAE,cAAc;IACpBE,eAAe,EAAEC,YAAY,CAACW,qCAAAA;GAC/B,CAAA;AACH,EAAC;AAEM,MAAMC,iBAAiD,GAAG;EAC/DX,QAAQ,EAAEH,qBAAqB,EAAE;EACjCK,QAAQ,EAAED,qBAAqB,EAAE;EACjCG,cAAc,EAAED,2BAA2B,EAAE;EAC7CG,mCAAmC,EAAED,gDAAgD,EAAE;EACvFG,gBAAgB,EAAED,6BAA6B,EAAE;EACjDG,qCAAqC,EAAED,kDAAkD,EAAC;AAC5F;;;;"}
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "yarn test:unit && yarn test:storybook"
|
|
31
31
|
},
|
|
32
32
|
"types": "types.d.ts",
|
|
33
|
-
"version": "11.6.0
|
|
33
|
+
"version": "11.6.0",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@emotion/react": "^11.11.0",
|
|
36
36
|
"@emotion/styled": "^11.11.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@babel/preset-env": "^7.17.10",
|
|
51
51
|
"@babel/preset-react": "^7.17.12",
|
|
52
52
|
"@babel/preset-typescript": "^7.16.7",
|
|
53
|
-
"@mui/x-data-grid-pro": "^
|
|
53
|
+
"@mui/x-data-grid-pro": "^6.18.0",
|
|
54
54
|
"@mui/x-license-pro": "^6.6.0",
|
|
55
55
|
"@rollup/plugin-babel": "^6.0.2",
|
|
56
56
|
"@rollup/plugin-commonjs": "^24.0.0",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"ts-jest": "^28.0.3"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@mui/x-data-grid-pro": ">=
|
|
88
|
+
"@mui/x-data-grid-pro": ">=6",
|
|
89
89
|
"@redsift/design-system": "^11.6.0-0",
|
|
90
90
|
"@redsift/icons": "^11.6.0-0",
|
|
91
91
|
"react": ">=17",
|
|
92
92
|
"react-dom": ">=17",
|
|
93
93
|
"styled-components": "^5.3.5"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "97881c569fe6cb959f4cf6db32155c0e97265c67"
|
|
96
96
|
}
|