@evoke-platform/ui-components 1.0.0-dev.210 → 1.0.0-dev.212
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/dist/published/components/core/index.d.ts +1 -1
- package/dist/published/components/custom/DataGrid/DataGrid.d.ts +1 -0
- package/dist/published/components/custom/DataGrid/DataGrid.js +2 -1
- package/dist/published/components/custom/DataGrid/Toolbar.d.ts +1 -0
- package/dist/published/components/custom/DataGrid/Toolbar.js +2 -3
- package/package.json +1 -1
@@ -49,4 +49,4 @@ export { LoadingButton, TabContext, TabList, TabPanel, TreeItem, TreeView } from
|
|
49
49
|
export { useGridApiRef } from '@mui/x-data-grid';
|
50
50
|
export type { GridSize } from '@mui/material';
|
51
51
|
export type { AutocompleteOption } from './Autocomplete/Autocomplete';
|
52
|
-
export type { GridCellParams, GridColDef, GridFilterModel, GridValueFormatterParams, GridValueGetterParams, GridEventListener, } from '@mui/x-data-grid';
|
52
|
+
export type { GridCellParams, GridColDef, GridFilterModel, GridValueFormatterParams, GridValueGetterParams, GridEventListener, GridInitialState, } from '@mui/x-data-grid';
|
@@ -15,5 +15,6 @@ export declare type DataGridProps<T extends GridValidRowModel> = MuiDataGridProp
|
|
15
15
|
mode: 'client' | 'server';
|
16
16
|
maxRows?: number;
|
17
17
|
};
|
18
|
+
hideSearchbar?: boolean;
|
18
19
|
};
|
19
20
|
export default function <T extends GridValidRowModel>(props: DataGridProps<T>): JSX.Element;
|
@@ -16,7 +16,7 @@ import UIThemeProvider from '../../../theme';
|
|
16
16
|
import { Box, Typography } from '@mui/material';
|
17
17
|
export default function (props) {
|
18
18
|
var _a;
|
19
|
-
const { onRefresh, loading, theme, title, bulkAction, filterSettings, columns, rows } = props, rest = __rest(props, ["onRefresh", "loading", "theme", "title", "bulkAction", "filterSettings", "columns", "rows"]);
|
19
|
+
const { onRefresh, loading, theme, title, bulkAction, filterSettings, columns, rows, hideSearchbar } = props, rest = __rest(props, ["onRefresh", "loading", "theme", "title", "bulkAction", "filterSettings", "columns", "rows", "hideSearchbar"]);
|
20
20
|
const [anchorEl, setAnchorEl] = useState();
|
21
21
|
const addColumnFilterOperators = (columns) => {
|
22
22
|
return (filterSettings === null || filterSettings === void 0 ? void 0 : filterSettings.mode) === 'server'
|
@@ -70,6 +70,7 @@ export default function (props) {
|
|
70
70
|
theme,
|
71
71
|
title,
|
72
72
|
bulkAction,
|
73
|
+
hideSearchbar,
|
73
74
|
},
|
74
75
|
panel: {
|
75
76
|
anchorEl: anchorEl,
|
@@ -7,7 +7,7 @@ import UIThemeProvider from '../../../theme';
|
|
7
7
|
import { Typography } from '@mui/material';
|
8
8
|
function Toolbar(props) {
|
9
9
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
10
|
-
const { onRefresh, setAnchorEl, loading, theme, title, bulkAction } = props;
|
10
|
+
const { onRefresh, setAnchorEl, loading, theme, title, bulkAction, hideSearchbar } = props;
|
11
11
|
const styles = {
|
12
12
|
container: { display: 'flex', justifyContent: 'space-between', margin: '0 0 15px 0' },
|
13
13
|
iconButton: {
|
@@ -48,8 +48,7 @@ function Toolbar(props) {
|
|
48
48
|
React.createElement(Grid, { container: true, sx: styles.container },
|
49
49
|
title && (React.createElement(Grid, { xs: 12, sx: { marginBottom: '15px' } },
|
50
50
|
React.createElement(Typography, { sx: { fontSize: '20px', fontWeight: 700 } }, title))),
|
51
|
-
React.createElement(Grid, { item: true, xs: 6 },
|
52
|
-
React.createElement(GridToolbarQuickFilter, { variant: "outlined", size: "small", sx: styles.quickFilter })),
|
51
|
+
React.createElement(Grid, { item: true, xs: 6 }, !hideSearchbar && (React.createElement(GridToolbarQuickFilter, { variant: "outlined", size: "small", sx: styles.quickFilter }))),
|
53
52
|
!bulkAction ? (React.createElement(Grid, { item: true },
|
54
53
|
React.createElement(Grid, { container: true, spacing: 1, sx: styles.icon },
|
55
54
|
React.createElement(Grid, { item: true, sx: { paddingRight: '15px' } },
|