|
|
|
@ -3,7 +3,11 @@ import { UITypes, isNumericCol, numericUITypes } from 'nocodb-sdk'
|
|
|
|
|
const getEqText = (fieldUiType: UITypes) => { |
|
|
|
|
if (isNumericCol(fieldUiType)) { |
|
|
|
|
return '=' |
|
|
|
|
} else if ([UITypes.SingleSelect, UITypes.Collaborator, UITypes.LinkToAnotherRecord].includes(fieldUiType)) { |
|
|
|
|
} else if ( |
|
|
|
|
[UITypes.SingleSelect, UITypes.Collaborator, UITypes.LinkToAnotherRecord, UITypes.Date, UITypes.DateTime].includes( |
|
|
|
|
fieldUiType, |
|
|
|
|
) |
|
|
|
|
) { |
|
|
|
|
return 'is' |
|
|
|
|
} |
|
|
|
|
return 'is equal' |
|
|
|
@ -12,7 +16,11 @@ const getEqText = (fieldUiType: UITypes) => {
|
|
|
|
|
const getNeqText = (fieldUiType: UITypes) => { |
|
|
|
|
if (isNumericCol(fieldUiType)) { |
|
|
|
|
return '!=' |
|
|
|
|
} else if ([UITypes.SingleSelect, UITypes.Collaborator, UITypes.LinkToAnotherRecord].includes(fieldUiType)) { |
|
|
|
|
} else if ( |
|
|
|
|
[UITypes.SingleSelect, UITypes.Collaborator, UITypes.LinkToAnotherRecord, UITypes.Date, UITypes.DateTime].includes( |
|
|
|
|
fieldUiType, |
|
|
|
|
) |
|
|
|
|
) { |
|
|
|
|
return 'is not' |
|
|
|
|
} |
|
|
|
|
return 'is not equal' |
|
|
|
|