|
|
@ -117,9 +117,11 @@ const componentMap: Partial<Record<FilterType, any>> = $computed(() => { |
|
|
|
// 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, |
|
|
|
isDate: ['daysAgo', 'daysFromNow'].includes(props.filter.comparison_sub_op!) ? Decimal : DatePicker, |
|
|
|
isDate: ['daysAgo', 'daysFromNow', 'pastNumberOfDays', 'nextNumberOfDays'].includes(props.filter.comparison_sub_op!) |
|
|
|
|
|
|
|
? Decimal |
|
|
|
|
|
|
|
: DatePicker, |
|
|
|
isYear: YearPicker, |
|
|
|
isYear: YearPicker, |
|
|
|
isDateTime: ['daysAgo', 'daysFromNow'].includes(props.filter.comparison_sub_op!) |
|
|
|
isDateTime: ['daysAgo', 'daysFromNow', 'pastNumberOfDays', 'nextNumberOfDays'].includes(props.filter.comparison_sub_op!) |
|
|
|
? Decimal |
|
|
|
? Decimal |
|
|
|
: DateTimePicker, |
|
|
|
: DateTimePicker, |
|
|
|
isTime: TimePicker, |
|
|
|
isTime: TimePicker, |
|
|
|