Skip to content

Commit

Permalink
work on 447
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Jan 23, 2025
1 parent d495fb6 commit 18fa609
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
13 changes: 13 additions & 0 deletions src/components/EkPlan/Table/CellHeaderFixedTpopStatus/Option.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { memo } from 'react'
import MenuItem from '@mui/material/MenuItem'

export const Option = memo(({option}) => {
return (
<MenuItem
onClick={() => {}}
dense
>
{option.label}
</MenuItem>
)
})
22 changes: 22 additions & 0 deletions src/components/EkPlan/Table/CellHeaderFixedTpopStatus/Options.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { memo } from 'react'
import FormGroup from '@mui/material/FormGroup'
import FormLabel from '@mui/material/FormLabel'

import { Option } from './Option.jsx'

export const Options = memo(() => {
// TODO: query options
const options = []

return (
<FormGroup>
<FormLabel>Gewünschte Stati wählen:</FormLabel>
{options.map((option) => (
<Option
key={option.value}
option={option}
/>
))}
</FormGroup>
)
})
15 changes: 13 additions & 2 deletions src/components/EkPlan/Table/CellHeaderFixedTpopStatus/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export const CellHeaderFixedTpopStatus = ({ style, column }) => {
setFilterStatus,
} = store.ekPlan

const options = []

const [anchorEl, setAnchorEl] = useState(null)

const closeMenu = useCallback(() => setAnchorEl(null), [])
Expand Down Expand Up @@ -105,10 +107,19 @@ export const CellHeaderFixedTpopStatus = ({ style, column }) => {
{filterStatusEmpty ? 'nicht Leerwerte filtern' : 'Leerwerte filtern'}
</MenuItem>
<TextFilterContainer>
<TextFilter
{/* <TextFilter
column={column}
closeMenu={closeMenu}
/>
/> */}
TODO: option list, multiple select
{options.map((option) => (
<MenuItem
onClick={() => {}}
dense
>
{option.label}
</MenuItem>
))}
</TextFilterContainer>
</StyledMenu>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/store/EkPlan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const EkPlan = types
filterNr: types.maybeNull(types.union(types.string, types.number)),
filterGemeinde: types.maybeNull(types.union(types.string, types.number)),
filterFlurname: types.maybeNull(types.union(types.string, types.number)),
filterStatus: types.maybeNull(types.union(types.string, types.number)),
filterStatus: types.maybeNull(types.array(types.number)),
filterBekanntSeit: types.maybeNull(types.number),
filterLv95X: types.maybeNull(types.union(types.string, types.number)),
filterLv95Y: types.maybeNull(types.union(types.string, types.number)),
Expand Down

0 comments on commit 18fa609

Please sign in to comment.