Skip to content

Commit e22c81d

Browse files
committed
2 parents 1d64ad0 + 4bb46e1 commit e22c81d

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

Diff for: src/components/Table/Filters/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default function Filters() {
4848
}
4949
}
5050
}, [userDoc.state, tableState?.tablePath]);
51+
5152
const filterColumns = _sortBy(Object.values(tableState!.columns), "index")
5253
.filter((c) => getFieldProp("filter", c.type))
5354
.map((c) => ({

Diff for: src/components/fields/Date/Filter.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export const filterOperators: IFilterOperator[] = [
55
label: "on",
66
value: "==",
77
},
8+
{
9+
value: "!=",
10+
label: "not equal to",
11+
},
812
{
913
label: "before",
1014
value: "<",

Diff for: src/components/fields/DateTime/Filter.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export const filterOperators: IFilterOperator[] = [
55
label: "at",
66
value: "==",
77
},
8+
{
9+
value: "!=",
10+
label: "not equal to",
11+
},
812
{
913
label: "before",
1014
value: "<",

Diff for: src/components/fields/MultiSelect/Filter.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export const filterOperators: IFilterOperator[] = [
55
value: "==",
66
label: "is equal to",
77
},
8+
{
9+
value: "!=",
10+
label: "not equal to",
11+
},
812
{
913
value: "array-contains",
1014
label: "contains",

Diff for: src/components/fields/SingleSelect/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import SingleSelectIcon from "assets/icons/SingleSelect";
66
import BasicCell from "../_BasicCell/BasicCellNull";
77
import InlineCell from "./InlineCell";
88
import NullEditor from "components/Table/editors/NullEditor";
9+
import { filterOperators } from "../ShortText/Filter";
910

1011
const PopoverCell = lazy(
1112
() =>
@@ -38,6 +39,7 @@ export const config: IFieldConfig = {
3839
TableEditor: NullEditor as any,
3940
SideDrawerField,
4041
settings: Settings,
42+
filter: { operators: filterOperators },
4143
requireConfiguration: true,
4244
};
4345
export default config;

0 commit comments

Comments
 (0)