@evoke-platform/ui-components 1.6.0-testing.1 → 1.6.0-testing.2
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.
@@ -47,7 +47,7 @@ export { Tooltip } from './Tooltip';
|
|
47
47
|
export { Typography } from './Typography';
|
48
48
|
export { TabContext, TabList, TabPanel, TreeItem, TreeView } from '@mui/lab';
|
49
49
|
export { CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Input, InputAdornment, InputLabel, ListItemButton, ListItemText, MenuList, SvgIcon, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, } from '@mui/material';
|
50
|
-
export { useGridApiRef } from '@mui/x-data-grid';
|
50
|
+
export { GridToolbarContainer, GridToolbarQuickFilter, useGridApiRef } from '@mui/x-data-grid';
|
51
51
|
export { TreeItem as RichTreeItem, RichTreeView, TreeItem2Content, TreeItem2DragAndDropOverlay, TreeItem2GroupTransition, TreeItem2Icon, TreeItem2IconContainer, TreeItem2Label, TreeItem2Provider, TreeItem2Root, useTreeItem2, } from '@mui/x-tree-view';
|
52
52
|
export type { GridSize } from '@mui/material';
|
53
53
|
export type { GridCellParams, GridColDef, GridEventListener, GridFilterModel, GridInitialState, GridRowParams, GridSortModel, GridValueFormatterParams, GridValueGetterParams, } from '@mui/x-data-grid';
|
@@ -48,5 +48,5 @@ export { Typography } from './Typography';
|
|
48
48
|
//TODO: Review following components. They also need theme control:
|
49
49
|
export { TabContext, TabList, TabPanel, TreeItem, TreeView } from '@mui/lab';
|
50
50
|
export { CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Input, InputAdornment, InputLabel, ListItemButton, ListItemText, MenuList, SvgIcon, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, } from '@mui/material';
|
51
|
-
export { useGridApiRef } from '@mui/x-data-grid';
|
51
|
+
export { GridToolbarContainer, GridToolbarQuickFilter, useGridApiRef } from '@mui/x-data-grid';
|
52
52
|
export { TreeItem as RichTreeItem, RichTreeView, TreeItem2Content, TreeItem2DragAndDropOverlay, TreeItem2GroupTransition, TreeItem2Icon, TreeItem2IconContainer, TreeItem2Label, TreeItem2Provider, TreeItem2Root, useTreeItem2, } from '@mui/x-tree-view';
|
@@ -17,7 +17,32 @@ const BuilderGrid = (props) => {
|
|
17
17
|
borderBottom: 'none',
|
18
18
|
boxShadow: 'rgba(145, 158, 171, 0.2) 0px 8px 16px',
|
19
19
|
} },
|
20
|
-
React.createElement(MuiDataGrid, { autoPageSize: !disablePagination, hideFooterPagination: disablePagination, hideFooter: disablePagination, onMenuOpen: (env) => setAnchorEl(env.target), loading: loading, rows: rows,
|
20
|
+
React.createElement(MuiDataGrid, { autoPageSize: !disablePagination, hideFooterPagination: disablePagination, hideFooter: disablePagination, onMenuOpen: (env) => setAnchorEl(env.target), loading: loading, rows: rows, getRowId: (row) => row.id, disableColumnMenu: true, initialState: {
|
21
|
+
sorting: {
|
22
|
+
sortModel: initialSort ? [initialSort] : [],
|
23
|
+
},
|
24
|
+
}, componentsProps: {
|
25
|
+
panel: {
|
26
|
+
anchorEl: anchorEl,
|
27
|
+
placement: 'bottom-end',
|
28
|
+
sx: {
|
29
|
+
'& .MuiPaper-root': {
|
30
|
+
borderRadius: '6px',
|
31
|
+
boxShadow: '0px 24px 48px rgba(145, 158, 171, 0.4)',
|
32
|
+
padding: '8px',
|
33
|
+
stop: -120,
|
34
|
+
},
|
35
|
+
},
|
36
|
+
},
|
37
|
+
}, slots: {
|
38
|
+
toolbar: hideToolbar ? null : toolbar,
|
39
|
+
noResultsOverlay: () => {
|
40
|
+
return React.createElement(Box, null);
|
41
|
+
},
|
42
|
+
noRowsOverlay: () => {
|
43
|
+
return noRowsOverlay ? noRowsOverlay : null;
|
44
|
+
},
|
45
|
+
}, rowHeight: 60, columnHeaderHeight: 62, ...rest, sx: {
|
21
46
|
border: 'none',
|
22
47
|
'& .MuiDataGrid-toolbarContainer': {
|
23
48
|
padding: '0',
|
@@ -64,32 +89,7 @@ const BuilderGrid = (props) => {
|
|
64
89
|
},
|
65
90
|
height: disablePagination && !loading ? 'auto' : 'calc(100vh - 240px)',
|
66
91
|
...rest.sx,
|
67
|
-
}
|
68
|
-
sorting: {
|
69
|
-
sortModel: initialSort ? [initialSort] : [],
|
70
|
-
},
|
71
|
-
}, componentsProps: {
|
72
|
-
panel: {
|
73
|
-
anchorEl: anchorEl,
|
74
|
-
placement: 'bottom-end',
|
75
|
-
sx: {
|
76
|
-
'& .MuiPaper-root': {
|
77
|
-
borderRadius: '6px',
|
78
|
-
boxShadow: '0px 24px 48px rgba(145, 158, 171, 0.4)',
|
79
|
-
padding: '8px',
|
80
|
-
stop: -120,
|
81
|
-
},
|
82
|
-
},
|
83
|
-
},
|
84
|
-
}, slots: {
|
85
|
-
toolbar: hideToolbar ? null : toolbar,
|
86
|
-
noResultsOverlay: () => {
|
87
|
-
return React.createElement(Box, null);
|
88
|
-
},
|
89
|
-
noRowsOverlay: () => {
|
90
|
-
return noRowsOverlay ? noRowsOverlay : null;
|
91
|
-
},
|
92
|
-
}, rowHeight: 60, columnHeaderHeight: 62 }))) : (React.createElement(React.Fragment, null, error ? (React.createElement(Box, { sx: {
|
92
|
+
} }))) : (React.createElement(React.Fragment, null, error ? (React.createElement(Box, { sx: {
|
93
93
|
backgroundColor: '#fff',
|
94
94
|
borderRadius: '6px',
|
95
95
|
display: 'flex',
|