|
|
|
@ -133,20 +133,12 @@ |
|
|
|
/> |
|
|
|
{:else if ["string", "longform", "number"].includes(filter.type)} |
|
|
|
<Input disabled={filter.noValue} bind:value={filter.value} /> |
|
|
|
{:else if filter.type === "options"} |
|
|
|
{:else if filter.type === "options" || "array"} |
|
|
|
<Combobox |
|
|
|
disabled={filter.noValue} |
|
|
|
options={getFieldOptions(filter.field)} |
|
|
|
bind:value={filter.value} |
|
|
|
/> |
|
|
|
{:else if filter.type === "array"} |
|
|
|
<Multiselect |
|
|
|
disabled={filter.noValue} |
|
|
|
options={getFieldOptions(filter.field)} |
|
|
|
bind:value={filter.value} |
|
|
|
getOptionLabel={x => x} |
|
|
|
getOptionValue={x => x} |
|
|
|
/> |
|
|
|
{:else if filter.type === "boolean"} |
|
|
|
<Combobox |
|
|
|
disabled={filter.noValue} |
|
|
|
|