Add enum_set_is_none_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7 Reviewed By: antonk52 Differential Revision: D49230148 fbshipit-source-id: b0aa4e702b27359e513b2557c80b6bab529618d5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
12179a35da
commit
6857e1fb26
@@ -99,6 +99,12 @@ export const dataTablePowerSearchOperators = {
|
||||
valueType: 'ENUM_SET',
|
||||
enumLabels,
|
||||
}),
|
||||
enum_set_is_none_of: (enumLabels: Record<string, string>) => ({
|
||||
label: 'is none of',
|
||||
key: 'enum_set_is_none_of',
|
||||
valueType: 'ENUM_SET',
|
||||
enumLabels,
|
||||
}),
|
||||
} satisfies {
|
||||
[key: string]: (...args: any[]) => OperatorConfig;
|
||||
};
|
||||
@@ -153,4 +159,6 @@ export const dataTablePowerSearchOperatorProcessorConfig = {
|
||||
searchValue === value,
|
||||
enum_set_is_any_of: (_operator, searchValue: string[], value: string) =>
|
||||
searchValue.some((item) => value === item),
|
||||
enum_set_is_none_of: (_operator, searchValue: string[], value: string) =>
|
||||
!searchValue.some((item) => value === item),
|
||||
} satisfies PowerSearchOperatorProcessorConfig;
|
||||
|
||||
Reference in New Issue
Block a user