@mui/x-data-grid 6.18.1 → 7.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +149 -0
- package/DataGrid/DataGrid.js +0 -10
- package/DataGrid/useDataGridProps.js +9 -14
- package/colDef/gridActionsColDef.js +1 -2
- package/colDef/gridBooleanColDef.js +0 -1
- package/colDef/gridBooleanOperators.js +3 -4
- package/colDef/gridCheckboxSelectionColDef.js +0 -1
- package/colDef/gridDateOperators.js +10 -11
- package/colDef/gridNumericColDef.js +1 -3
- package/colDef/gridNumericOperators.d.ts +2 -2
- package/colDef/gridNumericOperators.js +13 -14
- package/colDef/gridSingleSelectOperators.js +5 -6
- package/colDef/gridStringColDef.js +1 -3
- package/colDef/gridStringOperators.d.ts +2 -2
- package/colDef/gridStringOperators.js +11 -12
- package/constants/defaultGridSlotsComponents.js +17 -17
- package/hooks/features/export/useGridPrintExport.js +7 -10
- package/hooks/features/filter/gridFilterUtils.js +14 -68
- package/hooks/features/rows/useGridRows.js +4 -1
- package/index.js +1 -1
- package/internals/index.d.ts +0 -1
- package/internals/index.js +0 -1
- package/internals/utils/computeSlots.d.ts +4 -6
- package/internals/utils/computeSlots.js +2 -8
- package/internals/utils/index.d.ts +0 -1
- package/internals/utils/index.js +0 -1
- package/internals/utils/useProps.d.ts +1 -8
- package/internals/utils/useProps.js +5 -8
- package/joy/icons.d.ts +1 -2
- package/joy/joySlots.d.ts +1 -2
- package/legacy/DataGrid/DataGrid.js +0 -10
- package/legacy/DataGrid/useDataGridProps.js +10 -18
- package/legacy/colDef/gridActionsColDef.js +1 -2
- package/legacy/colDef/gridBooleanColDef.js +0 -1
- package/legacy/colDef/gridBooleanOperators.js +3 -4
- package/legacy/colDef/gridCheckboxSelectionColDef.js +0 -1
- package/legacy/colDef/gridDateOperators.js +10 -11
- package/legacy/colDef/gridNumericColDef.js +1 -3
- package/legacy/colDef/gridNumericOperators.js +13 -14
- package/legacy/colDef/gridSingleSelectOperators.js +5 -6
- package/legacy/colDef/gridStringColDef.js +1 -3
- package/legacy/colDef/gridStringOperators.js +11 -12
- package/legacy/constants/defaultGridSlotsComponents.js +17 -17
- package/legacy/hooks/features/export/useGridPrintExport.js +7 -10
- package/legacy/hooks/features/filter/gridFilterUtils.js +14 -68
- package/legacy/hooks/features/rows/useGridRows.js +2 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +0 -1
- package/legacy/internals/utils/computeSlots.js +2 -8
- package/legacy/internals/utils/index.js +0 -1
- package/legacy/internals/utils/useProps.js +5 -6
- package/legacy/locales/csCZ.js +2 -2
- package/legacy/material/index.js +48 -48
- package/locales/csCZ.js +2 -2
- package/material/index.js +48 -48
- package/models/colDef/gridColDef.d.ts +4 -14
- package/models/colDef/index.d.ts +1 -1
- package/models/gridFilterOperator.d.ts +4 -16
- package/models/gridIconSlotsComponent.d.ts +35 -36
- package/models/gridSlotsComponent.d.ts +31 -34
- package/models/index.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +3 -14
- package/modern/DataGrid/DataGrid.js +0 -10
- package/modern/DataGrid/useDataGridProps.js +7 -9
- package/modern/colDef/gridActionsColDef.js +1 -2
- package/modern/colDef/gridBooleanColDef.js +0 -1
- package/modern/colDef/gridBooleanOperators.js +3 -4
- package/modern/colDef/gridCheckboxSelectionColDef.js +0 -1
- package/modern/colDef/gridDateOperators.js +10 -11
- package/modern/colDef/gridNumericColDef.js +1 -3
- package/modern/colDef/gridNumericOperators.js +13 -14
- package/modern/colDef/gridSingleSelectOperators.js +5 -6
- package/modern/colDef/gridStringColDef.js +1 -3
- package/modern/colDef/gridStringOperators.js +11 -12
- package/modern/constants/defaultGridSlotsComponents.js +17 -17
- package/modern/hooks/features/export/useGridPrintExport.js +6 -10
- package/modern/hooks/features/filter/gridFilterUtils.js +14 -67
- package/modern/hooks/features/rows/useGridRows.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +0 -1
- package/modern/internals/utils/computeSlots.js +2 -8
- package/modern/internals/utils/index.js +0 -1
- package/modern/internals/utils/useProps.js +5 -8
- package/modern/locales/csCZ.js +2 -2
- package/modern/material/index.js +48 -48
- package/node/DataGrid/DataGrid.js +0 -10
- package/node/DataGrid/useDataGridProps.js +6 -8
- package/node/colDef/gridActionsColDef.js +1 -2
- package/node/colDef/gridBooleanColDef.js +0 -1
- package/node/colDef/gridBooleanOperators.js +3 -4
- package/node/colDef/gridCheckboxSelectionColDef.js +0 -1
- package/node/colDef/gridDateOperators.js +10 -11
- package/node/colDef/gridNumericColDef.js +1 -3
- package/node/colDef/gridNumericOperators.js +14 -14
- package/node/colDef/gridSingleSelectOperators.js +5 -6
- package/node/colDef/gridStringColDef.js +1 -3
- package/node/colDef/gridStringOperators.js +12 -12
- package/node/constants/defaultGridSlotsComponents.js +17 -17
- package/node/hooks/features/export/useGridPrintExport.js +5 -9
- package/node/hooks/features/filter/gridFilterUtils.js +14 -67
- package/node/hooks/features/rows/useGridRows.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +1 -13
- package/node/internals/utils/computeSlots.js +2 -7
- package/node/internals/utils/index.js +0 -11
- package/node/internals/utils/useProps.js +4 -8
- package/node/locales/csCZ.js +2 -2
- package/node/material/index.js +48 -48
- package/package.json +1 -1
- package/colDef/utils.d.ts +0 -21
- package/colDef/utils.js +0 -51
- package/internals/utils/slotsMigration.d.ts +0 -4
- package/internals/utils/slotsMigration.js +0 -13
- package/legacy/colDef/utils.js +0 -51
- package/legacy/internals/utils/slotsMigration.js +0 -14
- package/modern/colDef/utils.js +0 -51
- package/modern/internals/utils/slotsMigration.js +0 -13
- package/node/colDef/utils.js +0 -63
- package/node/internals/utils/slotsMigration.js +0 -21
package/material/index.js
CHANGED
|
@@ -15,55 +15,55 @@ import { GridColumnUnsortedIcon } from './icons/GridColumnUnsortedIcon';
|
|
|
15
15
|
import { GridAddIcon, GridArrowDownwardIcon, GridArrowUpwardIcon, GridCheckIcon, GridCloseIcon, GridColumnIcon, GridDragIcon, GridExpandMoreIcon, GridFilterAltIcon, GridFilterListIcon, GridKeyboardArrowRight, GridMoreVertIcon, GridRemoveIcon, GridSaveAltIcon, GridSearchIcon, GridSeparatorIcon, GridTableRowsIcon, GridTripleDotsVerticalIcon, GridViewHeadlineIcon, GridViewStreamIcon, GridVisibilityOffIcon, GridViewColumnIcon, GridClearIcon, GridLoadIcon, GridDeleteForeverIcon } from './icons';
|
|
16
16
|
import MUISelectOption from './components/MUISelectOption';
|
|
17
17
|
const iconSlots = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
18
|
+
booleanCellTrueIcon: GridCheckIcon,
|
|
19
|
+
booleanCellFalseIcon: GridCloseIcon,
|
|
20
|
+
columnMenuIcon: GridTripleDotsVerticalIcon,
|
|
21
|
+
openFilterButtonIcon: GridFilterListIcon,
|
|
22
|
+
filterPanelDeleteIcon: GridCloseIcon,
|
|
23
|
+
columnFilteredIcon: GridFilterAltIcon,
|
|
24
|
+
columnSelectorIcon: GridColumnIcon,
|
|
25
|
+
columnUnsortedIcon: GridColumnUnsortedIcon,
|
|
26
|
+
columnSortedAscendingIcon: GridArrowUpwardIcon,
|
|
27
|
+
columnSortedDescendingIcon: GridArrowDownwardIcon,
|
|
28
|
+
columnResizeIcon: GridSeparatorIcon,
|
|
29
|
+
densityCompactIcon: GridViewHeadlineIcon,
|
|
30
|
+
densityStandardIcon: GridTableRowsIcon,
|
|
31
|
+
densityComfortableIcon: GridViewStreamIcon,
|
|
32
|
+
exportIcon: GridSaveAltIcon,
|
|
33
|
+
moreActionsIcon: GridMoreVertIcon,
|
|
34
|
+
treeDataCollapseIcon: GridExpandMoreIcon,
|
|
35
|
+
treeDataExpandIcon: GridKeyboardArrowRight,
|
|
36
|
+
groupingCriteriaCollapseIcon: GridExpandMoreIcon,
|
|
37
|
+
groupingCriteriaExpandIcon: GridKeyboardArrowRight,
|
|
38
|
+
detailPanelExpandIcon: GridAddIcon,
|
|
39
|
+
detailPanelCollapseIcon: GridRemoveIcon,
|
|
40
|
+
rowReorderIcon: GridDragIcon,
|
|
41
|
+
quickFilterIcon: GridSearchIcon,
|
|
42
|
+
quickFilterClearIcon: GridCloseIcon,
|
|
43
|
+
columnMenuHideIcon: GridVisibilityOffIcon,
|
|
44
|
+
columnMenuSortAscendingIcon: GridArrowUpwardIcon,
|
|
45
|
+
columnMenuSortDescendingIcon: GridArrowDownwardIcon,
|
|
46
|
+
columnMenuFilterIcon: GridFilterAltIcon,
|
|
47
|
+
columnMenuManageColumnsIcon: GridViewColumnIcon,
|
|
48
|
+
columnMenuClearIcon: GridClearIcon,
|
|
49
|
+
loadIcon: GridLoadIcon,
|
|
50
|
+
filterPanelAddIcon: GridAddIcon,
|
|
51
|
+
filterPanelRemoveAllIcon: GridDeleteForeverIcon,
|
|
52
|
+
columnReorderIcon: GridDragIcon
|
|
53
53
|
};
|
|
54
54
|
const materialSlots = _extends({}, iconSlots, {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
baseCheckbox: MUICheckbox,
|
|
56
|
+
baseTextField: MUITextField,
|
|
57
|
+
baseFormControl: MUIFormControl,
|
|
58
|
+
baseSelect: MUISelect,
|
|
59
|
+
baseSwitch: MUISwitch,
|
|
60
|
+
baseButton: MUIButton,
|
|
61
|
+
baseIconButton: MUIIconButton,
|
|
62
|
+
baseInputAdornment: MUIInputAdornment,
|
|
63
|
+
baseTooltip: MUITooltip,
|
|
64
|
+
basePopper: MUIPopper,
|
|
65
|
+
baseInputLabel: MUIInputLabel,
|
|
66
|
+
baseSelectOption: MUISelectOption,
|
|
67
|
+
baseChip: MUIChip
|
|
68
68
|
});
|
|
69
69
|
export default materialSlots;
|
|
@@ -24,9 +24,8 @@ export type ValueOptions = string | number | {
|
|
|
24
24
|
* Value that can be used as a key for grouping rows
|
|
25
25
|
*/
|
|
26
26
|
export type GridKeyValue = string | number | boolean;
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
29
|
-
export type GetApplyQuickFilterFnV7<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef, apiRef: React.MutableRefObject<GridApiCommunity>) => null | GridApplyQuickFilterV7<R, V>;
|
|
27
|
+
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef: React.MutableRefObject<GridApiCommunity>) => boolean;
|
|
28
|
+
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef: React.MutableRefObject<GridApiCommunity>) => null | GridApplyQuickFilter<R, V>;
|
|
30
29
|
/**
|
|
31
30
|
* Column Definition base interface.
|
|
32
31
|
*/
|
|
@@ -208,18 +207,9 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
208
207
|
* @param {any} value The value with which we want to filter the column.
|
|
209
208
|
* @param {GridStateColDef} colDef The column from which we want to filter the rows.
|
|
210
209
|
* @param {React.MutableRefObject<GridApiCommunity>} apiRef Deprecated: The API of the grid.
|
|
211
|
-
* @returns {null |
|
|
210
|
+
* @returns {null | GridApplyQuickFilter} The function to call to check if a row pass this filter value or not.
|
|
212
211
|
*/
|
|
213
|
-
getApplyQuickFilterFn?:
|
|
214
|
-
/**
|
|
215
|
-
* The callback that generates a filtering function for a given quick filter value.
|
|
216
|
-
* This function can return `null` to skip filtering for this value and column.
|
|
217
|
-
* @param {any} value The value with which we want to filter the column.
|
|
218
|
-
* @param {GridStateColDef} colDef The column from which we want to filter the rows.
|
|
219
|
-
* @param {React.MutableRefObject<GridApiCommunity>} apiRef Deprecated: The API of the grid.
|
|
220
|
-
* @returns {null | GridApplyQuickFilterV7} The function to call to check if a row pass this filter value or not.
|
|
221
|
-
*/
|
|
222
|
-
getApplyQuickFilterFnV7?: GetApplyQuickFilterFnV7<R, V>;
|
|
212
|
+
getApplyQuickFilterFn?: GetApplyQuickFilterFn<R, V>;
|
|
223
213
|
/**
|
|
224
214
|
* If `true`, this column cannot be reordered.
|
|
225
215
|
* @default false
|
package/models/colDef/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { GridAlignment, ValueOptions, GridKeyValue, GridColDef, GridColTypeDef, GridColumnsMeta, GridSingleSelectColDef, GridActionsColDef, } from './gridColDef';
|
|
1
|
+
export type { GridAlignment, ValueOptions, GridKeyValue, GridColDef, GridColTypeDef, GridColumnsMeta, GridSingleSelectColDef, GridActionsColDef, GetApplyQuickFilterFn, } from './gridColDef';
|
|
2
2
|
export * from './gridColType';
|
|
3
3
|
export * from './gridColumnTypesRecord';
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridFilterItem } from './gridFilterItem';
|
|
3
|
-
import { GridCellParams } from './params/gridCellParams';
|
|
4
3
|
import type { GridColDef } from './colDef/gridColDef';
|
|
5
4
|
import type { GridValidRowModel } from './gridRows';
|
|
6
5
|
import type { GridApiCommunity } from './api/gridApiCommunity';
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
export type GetApplyFilterFnV7<R extends GridValidRowModel = any, V = any, F = V> = (filterItem: GridFilterItem, column: GridColDef<R, V, F>) => null | ApplyFilterFnV7<R, V, F>;
|
|
10
|
-
export type GetApplyFilterFnLegacy<R extends GridValidRowModel = any, V = any, F = V> = (filterItem: GridFilterItem, column: GridColDef<R, V, F>) => null | ApplyFilterFnLegacy<R, V, F>;
|
|
6
|
+
type ApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.MutableRefObject<GridApiCommunity>) => boolean;
|
|
7
|
+
export type GetApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (filterItem: GridFilterItem, column: GridColDef<R, V, F>) => null | ApplyFilterFn<R, V, F>;
|
|
11
8
|
/**
|
|
12
9
|
* Filter operator definition interface.
|
|
13
10
|
* @demos
|
|
@@ -32,18 +29,9 @@ export interface GridFilterOperator<R extends GridValidRowModel = any, V = any,
|
|
|
32
29
|
* This function can return `null` to skip filtering for this item and column.
|
|
33
30
|
* @param {GridFilterItem} filterItem The filter item with which we want to filter the column.
|
|
34
31
|
* @param {GridColDef} column The column from which we want to filter the rows.
|
|
35
|
-
* @returns {null |
|
|
32
|
+
* @returns {null | ApplyFilterFn} The function to call to check if a row pass this filter item or not.
|
|
36
33
|
*/
|
|
37
|
-
getApplyFilterFn:
|
|
38
|
-
/**
|
|
39
|
-
* The callback that generates a filtering function for a given filter item and column.
|
|
40
|
-
* This function can return `null` to skip filtering for this item and column.
|
|
41
|
-
* This function uses the more performant v7 API.
|
|
42
|
-
* @param {GridFilterItem} filterItem The filter item with which we want to filter the column.
|
|
43
|
-
* @param {GridColDef} column The column from which we want to filter the rows.
|
|
44
|
-
* @returns {null | ApplyFilterFnV7} The function to call to check if a row pass this filter item or not.
|
|
45
|
-
*/
|
|
46
|
-
getApplyFilterFnV7?: GetApplyFilterFnV7<R, V, F>;
|
|
34
|
+
getApplyFilterFn: GetApplyFilterFn<R, V, F>;
|
|
47
35
|
/**
|
|
48
36
|
* The input component to render in the filter panel for this filter operator.
|
|
49
37
|
*/
|
|
@@ -1,182 +1,181 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Set of icons used in the grid component UI.
|
|
4
|
-
* TODO: Differentiate community and pro interface
|
|
5
4
|
*/
|
|
6
5
|
export interface GridIconSlotsComponent {
|
|
7
6
|
/**
|
|
8
7
|
* Icon displayed on the boolean cell to represent the true value.
|
|
9
8
|
* @default GridCheckIcon
|
|
10
9
|
*/
|
|
11
|
-
|
|
10
|
+
booleanCellTrueIcon: React.JSXElementConstructor<any>;
|
|
12
11
|
/**
|
|
13
12
|
* Icon displayed on the boolean cell to represent the false value.
|
|
14
13
|
* @default GridCloseIcon
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
booleanCellFalseIcon: React.JSXElementConstructor<any>;
|
|
17
16
|
/**
|
|
18
17
|
* Icon displayed on the side of the column header title to display the filter input component.
|
|
19
18
|
* @default GridTripleDotsVerticalIcon
|
|
20
19
|
*/
|
|
21
|
-
|
|
20
|
+
columnMenuIcon: React.JSXElementConstructor<any>;
|
|
22
21
|
/**
|
|
23
22
|
* Icon displayed on the open filter button present in the toolbar by default.
|
|
24
23
|
* @default GridFilterListIcon
|
|
25
24
|
*/
|
|
26
|
-
|
|
25
|
+
openFilterButtonIcon: React.JSXElementConstructor<any>;
|
|
27
26
|
/**
|
|
28
27
|
* Icon displayed on the column header menu to show that a filter has been applied to the column.
|
|
29
28
|
* @default GridFilterAltIcon
|
|
30
29
|
*/
|
|
31
|
-
|
|
30
|
+
columnFilteredIcon: React.JSXElementConstructor<any>;
|
|
32
31
|
/**
|
|
33
32
|
* Icon displayed on the column menu selector tab.
|
|
34
33
|
* @default GridColumnIcon
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
columnSelectorIcon: React.JSXElementConstructor<any>;
|
|
37
36
|
/**
|
|
38
37
|
* Icon displayed on the side of the column header title when unsorted.
|
|
39
38
|
* @default GridColumnUnsortedIcon
|
|
40
39
|
*/
|
|
41
|
-
|
|
40
|
+
columnUnsortedIcon: React.JSXElementConstructor<any> | null;
|
|
42
41
|
/**
|
|
43
42
|
* Icon displayed on the side of the column header title when sorted in ascending order.
|
|
44
43
|
* @default GridArrowUpwardIcon
|
|
45
44
|
*/
|
|
46
|
-
|
|
45
|
+
columnSortedAscendingIcon: React.JSXElementConstructor<any> | null;
|
|
47
46
|
/**
|
|
48
47
|
* Icon displayed on the side of the column header title when sorted in descending order.
|
|
49
48
|
* @default GridArrowDownwardIcon
|
|
50
49
|
*/
|
|
51
|
-
|
|
50
|
+
columnSortedDescendingIcon: React.JSXElementConstructor<any> | null;
|
|
52
51
|
/**
|
|
53
52
|
* Icon displayed in between two column headers that allows to resize the column header.
|
|
54
53
|
* @default GridSeparatorIcon
|
|
55
54
|
*/
|
|
56
|
-
|
|
55
|
+
columnResizeIcon: React.JSXElementConstructor<any>;
|
|
57
56
|
/**
|
|
58
57
|
* Icon displayed on the compact density option in the toolbar.
|
|
59
58
|
* @default GridViewHeadlineIcon
|
|
60
59
|
*/
|
|
61
|
-
|
|
60
|
+
densityCompactIcon: React.JSXElementConstructor<any>;
|
|
62
61
|
/**
|
|
63
62
|
* Icon displayed on the standard density option in the toolbar.
|
|
64
63
|
* @default GridTableRowsIcon
|
|
65
64
|
*/
|
|
66
|
-
|
|
65
|
+
densityStandardIcon: React.JSXElementConstructor<any>;
|
|
67
66
|
/**
|
|
68
67
|
* Icon displayed on the "comfortable" density option in the toolbar.
|
|
69
68
|
* @default GridViewStreamIcon
|
|
70
69
|
*/
|
|
71
|
-
|
|
70
|
+
densityComfortableIcon: React.JSXElementConstructor<any>;
|
|
72
71
|
/**
|
|
73
72
|
* Icon displayed on the open export button present in the toolbar by default.
|
|
74
73
|
* @default GridSaveAltIcon
|
|
75
74
|
*/
|
|
76
|
-
|
|
75
|
+
exportIcon: React.JSXElementConstructor<any>;
|
|
77
76
|
/**
|
|
78
77
|
* Icon displayed on the `actions` column type to open the menu.
|
|
79
78
|
* @default GridMoreVertIcon
|
|
80
79
|
*/
|
|
81
|
-
|
|
80
|
+
moreActionsIcon: React.JSXElementConstructor<any>;
|
|
82
81
|
/**
|
|
83
82
|
* Icon displayed on the tree data toggling column when the children are collapsed
|
|
84
83
|
* @default GridKeyboardArrowRight
|
|
85
84
|
*/
|
|
86
|
-
|
|
85
|
+
treeDataExpandIcon: React.JSXElementConstructor<any>;
|
|
87
86
|
/**
|
|
88
87
|
* Icon displayed on the tree data toggling column when the children are expanded
|
|
89
88
|
* @default GridExpandMoreIcon
|
|
90
89
|
*/
|
|
91
|
-
|
|
90
|
+
treeDataCollapseIcon: React.JSXElementConstructor<any>;
|
|
92
91
|
/**
|
|
93
92
|
* Icon displayed on the grouping column when the children are collapsed
|
|
94
93
|
* @default GridKeyboardArrowRight
|
|
95
94
|
*/
|
|
96
|
-
|
|
95
|
+
groupingCriteriaExpandIcon: React.JSXElementConstructor<any>;
|
|
97
96
|
/**
|
|
98
97
|
* Icon displayed on the grouping column when the children are expanded
|
|
99
98
|
* @default GridExpandMoreIcon
|
|
100
99
|
*/
|
|
101
|
-
|
|
100
|
+
groupingCriteriaCollapseIcon: React.JSXElementConstructor<any>;
|
|
102
101
|
/**
|
|
103
102
|
* Icon displayed on the detail panel toggle column when collapsed.
|
|
104
103
|
* @default GridAddIcon
|
|
105
104
|
*/
|
|
106
|
-
|
|
105
|
+
detailPanelExpandIcon: React.JSXElementConstructor<any>;
|
|
107
106
|
/**
|
|
108
107
|
* Icon displayed on the detail panel toggle column when expanded.
|
|
109
108
|
* @default GridRemoveIcon
|
|
110
109
|
*/
|
|
111
|
-
|
|
110
|
+
detailPanelCollapseIcon: React.JSXElementConstructor<any>;
|
|
112
111
|
/**
|
|
113
112
|
* Icon displayed for deleting the filter from filter panel.
|
|
114
113
|
* @default GridAddIcon
|
|
115
114
|
*/
|
|
116
|
-
|
|
115
|
+
filterPanelAddIcon: React.JSXElementConstructor<any>;
|
|
117
116
|
/**
|
|
118
117
|
* Icon displayed for deleting the filter from filter panel.
|
|
119
118
|
* @default GridDeleteIcon
|
|
120
119
|
*/
|
|
121
|
-
|
|
120
|
+
filterPanelDeleteIcon: React.JSXElementConstructor<any>;
|
|
122
121
|
/**
|
|
123
122
|
* Icon displayed for deleting all the active filters from filter panel.
|
|
124
123
|
* @default GridDeleteForeverIcon
|
|
125
124
|
*/
|
|
126
|
-
|
|
125
|
+
filterPanelRemoveAllIcon: React.JSXElementConstructor<any>;
|
|
127
126
|
/**
|
|
128
127
|
* Icon displayed on the `reorder` column type to reorder a row.
|
|
129
128
|
* @default GridDragIcon
|
|
130
129
|
*/
|
|
131
|
-
|
|
130
|
+
rowReorderIcon: React.JSXElementConstructor<any>;
|
|
132
131
|
/**
|
|
133
132
|
* Icon displayed on the quick filter input.
|
|
134
133
|
* @default GridSearchIcon
|
|
135
134
|
*/
|
|
136
|
-
|
|
135
|
+
quickFilterIcon: React.JSXElementConstructor<any>;
|
|
137
136
|
/**
|
|
138
137
|
* Icon displayed on the quick filter reset input.
|
|
139
138
|
* @default GridCloseIcon
|
|
140
139
|
*/
|
|
141
|
-
|
|
140
|
+
quickFilterClearIcon: React.JSXElementConstructor<any>;
|
|
142
141
|
/**
|
|
143
142
|
* Icon displayed in column menu for hiding column
|
|
144
143
|
* @default GridVisibilityOffIcon
|
|
145
144
|
*/
|
|
146
|
-
|
|
145
|
+
columnMenuHideIcon: React.JSXElementConstructor<any>;
|
|
147
146
|
/**
|
|
148
147
|
* Icon displayed in column menu for ascending sort
|
|
149
148
|
* @default GridArrowUpwardIcon
|
|
150
149
|
*/
|
|
151
|
-
|
|
150
|
+
columnMenuSortAscendingIcon: React.JSXElementConstructor<any>;
|
|
152
151
|
/**
|
|
153
152
|
* Icon displayed in column menu for descending sort
|
|
154
153
|
* @default GridArrowDownwardIcon
|
|
155
154
|
*/
|
|
156
|
-
|
|
155
|
+
columnMenuSortDescendingIcon: React.JSXElementConstructor<any>;
|
|
157
156
|
/**
|
|
158
157
|
* Icon displayed in column menu for filter
|
|
159
158
|
* @default GridFilterAltIcon
|
|
160
159
|
*/
|
|
161
|
-
|
|
160
|
+
columnMenuFilterIcon: React.JSXElementConstructor<any>;
|
|
162
161
|
/**
|
|
163
162
|
* Icon displayed in column menu for showing all columns
|
|
164
163
|
* @default GridViewColumnIcon
|
|
165
164
|
*/
|
|
166
|
-
|
|
165
|
+
columnMenuManageColumnsIcon: React.JSXElementConstructor<any>;
|
|
167
166
|
/**
|
|
168
167
|
* Icon displayed in column menu for clearing values
|
|
169
168
|
* @default GridClearIcon
|
|
170
169
|
*/
|
|
171
|
-
|
|
170
|
+
columnMenuClearIcon: React.JSXElementConstructor<any>;
|
|
172
171
|
/**
|
|
173
172
|
* Icon displayed on the input while processing.
|
|
174
173
|
* @default GridLoadIcon
|
|
175
174
|
*/
|
|
176
|
-
|
|
175
|
+
loadIcon: React.JSXElementConstructor<any>;
|
|
177
176
|
/**
|
|
178
177
|
* Icon displayed on the column reorder button.
|
|
179
178
|
* @default GridDragIcon
|
|
180
179
|
*/
|
|
181
|
-
|
|
180
|
+
columnReorderIcon: React.JSXElementConstructor<any>;
|
|
182
181
|
}
|
|
@@ -1,72 +1,71 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { UncapitalizeObjectKeys } from '../internals/utils';
|
|
3
2
|
import type { GridIconSlotsComponent } from './gridIconSlotsComponent';
|
|
4
3
|
export interface GridBaseSlots {
|
|
5
4
|
/**
|
|
6
5
|
* The custom Checkbox component used in the grid for both header and cells.
|
|
7
6
|
* @default Checkbox
|
|
8
7
|
*/
|
|
9
|
-
|
|
8
|
+
baseCheckbox: React.JSXElementConstructor<any>;
|
|
10
9
|
/**
|
|
11
10
|
* The custom Chip component used in the grid.
|
|
12
11
|
* @default Chip
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
baseChip: React.JSXElementConstructor<any>;
|
|
15
14
|
/**
|
|
16
15
|
* The custom InputAdornment component used in the grid.
|
|
17
16
|
* @default InputAdornment
|
|
18
17
|
*/
|
|
19
|
-
|
|
18
|
+
baseInputAdornment: React.JSXElementConstructor<any>;
|
|
20
19
|
/**
|
|
21
20
|
* The custom TextField component used in the grid.
|
|
22
21
|
* @default TextField
|
|
23
22
|
*/
|
|
24
|
-
|
|
23
|
+
baseTextField: React.JSXElementConstructor<any>;
|
|
25
24
|
/**
|
|
26
25
|
* The custom FormControl component used in the grid.
|
|
27
26
|
* @default FormControl
|
|
28
27
|
*/
|
|
29
|
-
|
|
28
|
+
baseFormControl: React.JSXElementConstructor<any>;
|
|
30
29
|
/**
|
|
31
30
|
* The custom Select component used in the grid.
|
|
32
31
|
* @default Select
|
|
33
32
|
*/
|
|
34
|
-
|
|
33
|
+
baseSelect: React.JSXElementConstructor<any>;
|
|
35
34
|
/**
|
|
36
35
|
* The custom Switch component used in the grid.
|
|
37
36
|
* @default Switch
|
|
38
37
|
*/
|
|
39
|
-
|
|
38
|
+
baseSwitch: React.JSXElementConstructor<any>;
|
|
40
39
|
/**
|
|
41
40
|
* The custom Button component used in the grid.
|
|
42
41
|
* @default Button
|
|
43
42
|
*/
|
|
44
|
-
|
|
43
|
+
baseButton: React.JSXElementConstructor<any>;
|
|
45
44
|
/**
|
|
46
45
|
* The custom IconButton component used in the grid.
|
|
47
46
|
* @default IconButton
|
|
48
47
|
*/
|
|
49
|
-
|
|
48
|
+
baseIconButton: React.JSXElementConstructor<any>;
|
|
50
49
|
/**
|
|
51
50
|
* The custom Tooltip component used in the grid.
|
|
52
51
|
* @default Tooltip
|
|
53
52
|
*/
|
|
54
|
-
|
|
53
|
+
baseTooltip: React.JSXElementConstructor<any>;
|
|
55
54
|
/**
|
|
56
55
|
* The custom Popper component used in the grid.
|
|
57
56
|
* @default Popper
|
|
58
57
|
*/
|
|
59
|
-
|
|
58
|
+
basePopper: React.JSXElementConstructor<any>;
|
|
60
59
|
/**
|
|
61
60
|
* The custom InputLabel component used in the grid.
|
|
62
61
|
* @default InputLabel
|
|
63
62
|
*/
|
|
64
|
-
|
|
63
|
+
baseInputLabel: React.JSXElementConstructor<any>;
|
|
65
64
|
/**
|
|
66
65
|
* The custom SelectOption component used in the grid.
|
|
67
66
|
* @default MenuItem
|
|
68
67
|
*/
|
|
69
|
-
|
|
68
|
+
baseSelectOption: React.JSXElementConstructor<any>;
|
|
70
69
|
}
|
|
71
70
|
/**
|
|
72
71
|
* Grid components React prop interface containing all the overridable components.
|
|
@@ -76,92 +75,90 @@ export interface GridSlotsComponent extends GridBaseSlots, GridIconSlotsComponen
|
|
|
76
75
|
* The custom Chip component used in the grid.
|
|
77
76
|
* @default Chip
|
|
78
77
|
*/
|
|
79
|
-
|
|
78
|
+
baseChip: React.JSXElementConstructor<any>;
|
|
80
79
|
/**
|
|
81
80
|
* Component rendered for each cell.
|
|
82
81
|
* @default GridCell
|
|
83
82
|
*/
|
|
84
|
-
|
|
83
|
+
cell: React.JSXElementConstructor<any>;
|
|
85
84
|
/**
|
|
86
85
|
* Component rendered for each skeleton cell.
|
|
87
86
|
* @default GridSkeletonCell
|
|
88
87
|
*/
|
|
89
|
-
|
|
88
|
+
skeletonCell: React.JSXElementConstructor<any>;
|
|
90
89
|
/**
|
|
91
90
|
* Filter icon component rendered in each column header.
|
|
92
91
|
* @default GridColumnHeaderFilterIconButton
|
|
93
92
|
*/
|
|
94
|
-
|
|
93
|
+
columnHeaderFilterIconButton: React.JSXElementConstructor<any>;
|
|
95
94
|
/**
|
|
96
95
|
* Column menu component rendered by clicking on the 3 dots "kebab" icon in column headers.
|
|
97
96
|
* @default GridColumnMenu
|
|
98
97
|
*/
|
|
99
|
-
|
|
98
|
+
columnMenu: React.JSXElementConstructor<any>;
|
|
100
99
|
/**
|
|
101
100
|
* Component responsible for rendering the column headers.
|
|
102
101
|
* @default DataGridColumnHeaders
|
|
103
102
|
*/
|
|
104
|
-
|
|
103
|
+
columnHeaders: React.JSXElementConstructor<any>;
|
|
105
104
|
/**
|
|
106
105
|
* Footer component rendered at the bottom of the grid viewport.
|
|
107
106
|
* @default GridFooter
|
|
108
107
|
*/
|
|
109
|
-
|
|
108
|
+
footer: React.JSXElementConstructor<any>;
|
|
110
109
|
/**
|
|
111
110
|
* Row count component rendered in the footer
|
|
112
111
|
* @default GridRowCount
|
|
113
112
|
*/
|
|
114
|
-
|
|
113
|
+
footerRowCount: React.JSXElementConstructor<any>;
|
|
115
114
|
/**
|
|
116
115
|
* Toolbar component rendered inside the Header component.
|
|
117
116
|
* @default null
|
|
118
117
|
*/
|
|
119
|
-
|
|
118
|
+
toolbar: React.JSXElementConstructor<any> | null;
|
|
120
119
|
/**
|
|
121
120
|
* PreferencesPanel component rendered inside the Header component.
|
|
122
121
|
* @default GridPreferencesPanel
|
|
123
122
|
*/
|
|
124
|
-
|
|
123
|
+
preferencesPanel: React.JSXElementConstructor<any>;
|
|
125
124
|
/**
|
|
126
125
|
* Loading overlay component rendered when the grid is in a loading state.
|
|
127
126
|
* @default GridLoadingOverlay
|
|
128
127
|
*/
|
|
129
|
-
|
|
128
|
+
loadingOverlay: React.JSXElementConstructor<any>;
|
|
130
129
|
/**
|
|
131
130
|
* No results overlay component rendered when the grid has no results after filtering.
|
|
132
131
|
* @default GridNoResultsOverlay
|
|
133
132
|
*/
|
|
134
|
-
|
|
133
|
+
noResultsOverlay: React.JSXElementConstructor<any>;
|
|
135
134
|
/**
|
|
136
135
|
* No rows overlay component rendered when the grid has no rows.
|
|
137
136
|
* @default GridNoRowsOverlay
|
|
138
137
|
*/
|
|
139
|
-
|
|
138
|
+
noRowsOverlay: React.JSXElementConstructor<any>;
|
|
140
139
|
/**
|
|
141
140
|
* Pagination component rendered in the grid footer by default.
|
|
142
141
|
* @default Pagination
|
|
143
142
|
*/
|
|
144
|
-
|
|
143
|
+
pagination: React.JSXElementConstructor<any> | null;
|
|
145
144
|
/**
|
|
146
145
|
* Filter panel component rendered when clicking the filter button.
|
|
147
146
|
* @default GridFilterPanel
|
|
148
147
|
*/
|
|
149
|
-
|
|
148
|
+
filterPanel: React.JSXElementConstructor<any>;
|
|
150
149
|
/**
|
|
151
150
|
* GridColumns panel component rendered when clicking the columns button.
|
|
152
151
|
* @default GridColumnsPanel
|
|
153
152
|
*/
|
|
154
|
-
|
|
153
|
+
columnsPanel: React.JSXElementConstructor<any>;
|
|
155
154
|
/**
|
|
156
155
|
* Panel component wrapping the filters and columns panels.
|
|
157
156
|
* @default GridPanel
|
|
158
157
|
*/
|
|
159
|
-
|
|
158
|
+
panel: React.JSXElementConstructor<any>;
|
|
160
159
|
/**
|
|
161
160
|
* Component rendered for each row.
|
|
162
161
|
* @default GridRow
|
|
163
162
|
*/
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
export interface UncapitalizedGridSlotsComponent extends UncapitalizeObjectKeys<GridSlotsComponent> {
|
|
163
|
+
row: React.JSXElementConstructor<any>;
|
|
167
164
|
}
|
package/models/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export * from './gridCell';
|
|
|
16
16
|
export * from './gridColumnHeaderClass';
|
|
17
17
|
export * from './api';
|
|
18
18
|
export * from './gridIconSlotsComponent';
|
|
19
|
-
export type { GridSlotsComponent
|
|
19
|
+
export type { GridSlotsComponent } from './gridSlotsComponent';
|
|
20
20
|
export * from './gridSlotsComponentsProps';
|
|
21
21
|
export * from './gridDensity';
|
|
22
22
|
export * from './logger';
|