From 7cf52bff0250d620c058c10b41c503f7b66bb973 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 11 Apr 2024 16:05:03 +0200 Subject: [PATCH] User filter --- .../settings/controls/FilterEditor/FilterDrawer.svelte | 1 - .../frontend-core/src/components/FilterBuilder.svelte | 10 ++++++++++ .../src/components}/FilterUsers.svelte | 0 3 files changed, 10 insertions(+), 1 deletion(-) rename packages/{builder/src/components/design/settings/controls/FilterEditor => frontend-core/src/components}/FilterUsers.svelte (100%) diff --git a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte index 49c2f17c59..bdaddc359e 100644 --- a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte +++ b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterDrawer.svelte @@ -6,7 +6,6 @@ import { FilterBuilder } from "@budibase/frontend-core" import { createEventDispatcher, onMount } from "svelte" - // import FilterUsers from "./FilterUsers.svelte" export let schemaFields export let filters = [] diff --git a/packages/frontend-core/src/components/FilterBuilder.svelte b/packages/frontend-core/src/components/FilterBuilder.svelte index 246fadc19c..c7c0d45994 100644 --- a/packages/frontend-core/src/components/FilterBuilder.svelte +++ b/packages/frontend-core/src/components/FilterBuilder.svelte @@ -15,6 +15,7 @@ import { generate } from "shortid" import { LuceneUtils, Constants } from "@budibase/frontend-core" import { getContext } from "svelte" + import FilterUsers from "./FilterUsers.svelte" const { OperatorOptions } = Constants @@ -273,6 +274,15 @@ timeOnly={getSchema(filter)?.timeOnly} bind:value={filter.value} /> + {:else if filter.type === FieldType.BB_REFERENCE} + {:else} {/if} diff --git a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterUsers.svelte b/packages/frontend-core/src/components/FilterUsers.svelte similarity index 100% rename from packages/builder/src/components/design/settings/controls/FilterEditor/FilterUsers.svelte rename to packages/frontend-core/src/components/FilterUsers.svelte