|
|
@ -112,7 +112,8 @@ const booleanOptions = [ |
|
|
|
{ value: null, label: 'unset' }, |
|
|
|
{ value: null, label: 'unset' }, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
const componentMap: Partial<Record<FilterType, any>> = { |
|
|
|
const componentMap: Partial<Record<FilterType, any>> = $computed(() => { |
|
|
|
|
|
|
|
return { |
|
|
|
// use MultiSelect for SingleSelect columns for anyof / nanyof filters |
|
|
|
// use MultiSelect for SingleSelect columns for anyof / nanyof filters |
|
|
|
isSingleSelect: ['anyof', 'nanyof'].includes(props.filter.comparison_op) ? MultiSelect : SingleSelect, |
|
|
|
isSingleSelect: ['anyof', 'nanyof'].includes(props.filter.comparison_op) ? MultiSelect : SingleSelect, |
|
|
|
isMultiSelect: MultiSelect, |
|
|
|
isMultiSelect: MultiSelect, |
|
|
@ -128,6 +129,7 @@ const componentMap: Partial<Record<FilterType, any>> = { |
|
|
|
isInt: Integer, |
|
|
|
isInt: Integer, |
|
|
|
isFloat: Float, |
|
|
|
isFloat: Float, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const filterType = $computed(() => { |
|
|
|
const filterType = $computed(() => { |
|
|
|
return Object.keys(componentMap).find((key) => checkType(key as FilterType)) |
|
|
|
return Object.keys(componentMap).find((key) => checkType(key as FilterType)) |
|
|
|