Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.4] - 2026-03-22

### Changed

- `FilterList` to allow limiting the used operators

### Fixed
- `FlexibleDateTimeInput` not having a correct default time and throwing warnings on mode change


## [0.9.3] - 2026-03-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"access": "public"
},
"license": "MPL-2.0",
"version": "0.9.3",
"version": "0.9.4",
"files": [
"dist"
],
Expand Down
9 changes: 7 additions & 2 deletions src/components/user-interaction/data/FilterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { FilterPopUp } from './FilterPopUp'
import { Combobox } from '@/src/components/user-interaction/Combobox/Combobox'
import { ComboboxOption } from '@/src/components/user-interaction/Combobox/ComboboxOption'
import { PopUpContext } from '../../layout/popup/PopUpContext'
import type { FilterOperator } from './FilterOperator'
import { FilterOperatorUtils } from './FilterOperator'
import type { ColumnFilter } from '@tanstack/react-table'

Expand All @@ -24,18 +25,20 @@ export interface FilterListPopUpBuilderProps {
value: FilterValue,
onValueChange: (value: FilterValue) => void,
onRemove: () => void,
operatorOverrides?: FilterOperator[],
dataType: DataType,
tags: ReadonlyArray<{ tag: string, label: string, display?: ReactNode }>,
name: string,
isOpen: boolean,
close: () => void,
onClose: () => void,
}

export interface FilterListItem {
id: string,
label: string,
dataType: DataType,
tags: ReadonlyArray<{ tag: string, label: string, display?: ReactNode }>,
operatorOverrides?: FilterOperator[],
popUpBuilder?: (props: FilterListPopUpBuilderProps) => ReactNode,
activeLabelBuilder?: (value: FilterValue) => ReactNode,
}
Expand Down Expand Up @@ -156,18 +159,20 @@ export const FilterList = ({ value, onValueChange, availableItems }: FilterListP
onValueChange(value.filter(prevItem => prevItem.id !== columnFilter.id))
setEditState(undefined)
},
operatorOverrides: item.operatorOverrides,
dataType: item.dataType,
tags: item.tags,
name: item.label,
isOpen,
close: () => setIsOpen(false),
onClose: () => setIsOpen(false),
})
) : (
<FilterPopUp
name={item.label}
value={editState?.id === columnFilter.id ? editState.value : columnFilter.value}
dataType={item.dataType}
tags={item.tags}
operatorOverrides={item.operatorOverrides}
onValueChange={value => {
setEditState({ ...columnFilter, value })
}}
Expand Down
Loading
Loading