import { CloseIcon, IconType, MaximizeIcon, UnMaximizeIcon, MoreOptionsIcon } from 'components/icon/icon';
import { PaperProps } from '@material-ui/core/Paper';
import { MPVPanelProps } from 'components/multi-panel-view/multi-panel-view';
+import { MultiselectToolbar, defaultActions } from 'components/multiselectToolbar/MultiselectToolbar';
type CssRules = 'searchBox' | 'headerMenu' | 'toolbar' | 'footer' | 'root' | 'moreOptionsButton' | 'title' | 'dataTable' | 'container';
height: '100%',
},
headerMenu: {
+ width: '100%',
float: 'right',
- display: 'inline-block',
+ display: 'flex',
+ flexDirection: 'row-reverse',
+ justifyContent: 'space-between',
},
});
paperKey?: string;
currentItemUuid: string;
elementPath?: string;
+ isMSToolbarVisible: boolean;
}
interface DataExplorerActionProps<T> {
onChangeRowsPerPage: (rowsPerPage: number) => void;
onLoadMore: (page: number) => void;
extractKey?: (item: T) => React.Key;
+ toggleMSToolbar: (isVisible: boolean) => void;
}
type DataExplorerProps<T> = DataExplorerDataProps<T> & DataExplorerActionProps<T> & WithStyles<CssRules> & MPVPanelProps;
panelName,
panelMaximized,
elementPath,
+ isMSToolbarVisible,
+ toggleMSToolbar,
} = this.props;
return (
<Paper className={classes.root} {...paperProps} key={paperKey} data-cy={this.props['data-cy']}>
</Tooltip>
)}
</Toolbar>
+ {isMSToolbarVisible && <MultiselectToolbar buttons={defaultActions} />}
</Grid>
)}
</div>
defaultViewMessages={defaultViewMessages}
currentItemUuid={currentItemUuid}
currentRoute={paperKey}
- // checkedList={{}}
+ toggleMSToolbar={toggleMSToolbar}
/>
</Grid>
<Grid item xs>