123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- import { Theme } from '@mui/material';
- import { makeStyles } from '@mui/styles';
- export const getQueryStyles = makeStyles((theme: Theme) => ({
- root: {
- display: 'flex',
- flexDirection: 'column',
- height: '100%',
- },
- inputArea: {
- display: 'flex',
- flexDirection: 'row',
- width: '100%',
- height: 'max-content',
- padding: 0,
- },
- accordions: {
- display: 'flex',
- width: '220px',
- flexDirection: 'column',
- flexShrink: 0,
- padding: '0 8px 8px 0',
- borderRadius: '0',
- minHeight: 'calc(100vh - 164px)',
- height: 'calc(100vh - 164px)',
- overflow: 'auto',
- borderRight: `1px solid ${theme.palette.divider}`,
- '& .MuiAccordion-root.Mui-expanded': {
- margin: 0,
- },
- '& .MuiAccordion-root.Mui-expanded:before': {
- opacity: 1,
- },
- },
- accordion: {
- borderRadius: 0,
- boxShadow: 'none',
- padding: '0',
- border: '1px solid transparent',
- '&:first-child': {
- borderTopLeftRadius: 0,
- borderTopRightRadius: 0,
- },
- '&.highlight': {
- border: `1px solid ${theme.palette.secondary.main}`,
- },
- // borderBottom: `1px solid ${theme.palette.divider}`,
- '& .MuiAccordionSummary-root': {
- minHeight: '48px',
- padding: '0 12px 0 0',
- '& .MuiAccordionSummary-expandIcon': {
- padding: 4,
- },
- },
- '& .MuiAccordionSummary-content': {
- margin: 0,
- padding: '8px 0',
- },
- '& .MuiAccordionSummary-expandIcon': {
- alignSelf: 'flex-start',
- position: 'relative',
- top: '4px',
- },
- },
- accordionDetail: {
- display: 'flex',
- flexDirection: 'column',
- padding: '0',
- '& .textarea': {
- height: '100px',
- marginBottom: '8px',
- },
- '& .paramsWrapper': {
- '& .MuiFormControl-root': {
- width: '100%',
- },
- },
- },
- heading: {
- flexShrink: 0,
- },
- checkbox: {
- display: 'flex',
- flexDirection: 'row',
- '& .MuiCheckbox-root': {
- padding: 0,
- marginRight: 4,
- alignSelf: 'flex-start',
- postion: 'relative',
- top: '2px',
- },
- '& .field-name': {
- fontSize: '13px',
- fontWeight: 400,
- lineHeight: '20px',
- wordBreak: 'break-all',
- },
- '& .bold': {
- fontWeight: 600,
- },
- '& .vector-type': {
- color: theme.palette.text.secondary,
- fontSize: '12px',
- lineHeight: '20px',
- '& i': {
- marginLeft: '4px',
- fontSize: '10px',
- fontWeight: 600,
- color: theme.palette.primary.light,
- },
- },
- },
- vectorInputBox: {
- height: '124px',
- margin: '0 0 8px 0',
- overflow: 'auto',
- backgroundColor: '#f4f4f4',
- cursor: 'text',
- boxShadow: '0 1px 0 transparent',
- transition: `box-shadow 0.3s ease`,
- '&:hover': {
- boxShadow: '0 1px 0 #000',
- },
- '&:active': {
- boxShadow: `0 1px 0 ${theme.palette.primary.main}`,
- },
- '&.focused': {
- boxShadow: `0 2px 0 ${theme.palette.primary.main}`,
- },
- },
- searchControls: {
- display: 'flex',
- flexDirection: 'column',
- width: 120,
- minWidth: 120,
- padding: '0 8px',
- borderRight: `1px solid ${theme.palette.divider}`,
- '& .selector': {
- marginBottom: '8px',
- },
- '& span button': {
- width: '100%',
- height: '100%',
- },
- },
- searchResults: {
- display: 'flex',
- flexDirection: 'column',
- flexGrow: 1,
- padding: '0 8px',
- overflow: 'auto',
- },
- toolbar: {
- display: 'flex',
- justifyContent: 'space-between',
- alignItems: 'center',
- backgroundColor: 'white',
- padding: theme.spacing(0, 0, 1),
- gap: theme.spacing(1),
- '& .left': {
- display: 'flex',
- justifyContent: 'space-between',
- alignItems: 'center',
- gap: theme.spacing(1),
- flex: 1,
- '& .textarea': {
- width: '100%',
- '& .MuiFormHelperText-root': {
- display: 'none',
- },
- },
- },
- '& .right': {
- display: 'flex',
- justifyContent: 'space-between',
- alignItems: 'center',
- gap: theme.spacing(1),
- },
- },
- btn: {
- height: 56,
- width: 80,
- },
- }));
|