diff --git a/src/lib/components/filters/content.svelte b/src/lib/components/filters/content.svelte index 973802398..7e31df2ae 100644 --- a/src/lib/components/filters/content.svelte +++ b/src/lib/components/filters/content.svelte @@ -13,6 +13,7 @@ import type { Column } from '$lib/helpers/types'; import type { Writable } from 'svelte/store'; import { tooltip } from '$lib/actions/tooltip'; + import InputSelectSearch from '$lib/elements/forms/inputSelectSearch.svelte'; export let columns: Writable; @@ -83,6 +84,7 @@ contains: { toQuery: Query.contains, toTag: (attribute, input) => { + console.log(attribute, input); return { value: input, tag: `**${attribute}** contains **${Array.isArray(input) ? formatArray(input) : input}**` @@ -110,6 +112,7 @@ /* eslint @typescript-eslint/no-explicit-any: 'off' */ let value: any = null; + let search: string; $: { columnId; value = column?.array ? [] : null; @@ -141,8 +144,6 @@ } $: isDisabled = !operator; - - $: console.log($tags);
@@ -168,26 +169,26 @@ {#if column && operator && !operator?.hideInput} {#if column?.array} - {#if column.type === 'enum'} - test - - {:else} - - {/if} + bind:tags={arrayValues} + placeholder="Enter values" /> {:else}