Browse Source

feat(nc-gui): revise filter operators for multiselect

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
1b2150a449
  1. 12
      packages/nc-gui/utils/filterUtils.ts

12
packages/nc-gui/utils/filterUtils.ts

@ -24,34 +24,34 @@ export const comparisonOpList: {
{ {
text: 'is equal', text: 'is equal',
value: 'eq', value: 'eq',
excludedTypes: [UITypes.Checkbox], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect],
}, },
{ {
text: 'is not equal', text: 'is not equal',
value: 'neq', value: 'neq',
excludedTypes: [UITypes.Checkbox], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect],
}, },
{ {
text: 'is like', text: 'is like',
value: 'like', value: 'like',
excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.MultiSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is not like', text: 'is not like',
value: 'nlike', value: 'nlike',
excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.MultiSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is empty', text: 'is empty',
value: 'empty', value: 'empty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.MultiSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is not empty', text: 'is not empty',
value: 'notempty', value: 'notempty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.MultiSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is null', text: 'is null',

Loading…
Cancel
Save