|
|
@ -6,6 +6,7 @@ |
|
|
Icon, |
|
|
Icon, |
|
|
Input, |
|
|
Input, |
|
|
Select, |
|
|
Select, |
|
|
|
|
|
DatePicker, |
|
|
} from "@budibase/bbui" |
|
|
} from "@budibase/bbui" |
|
|
import { backendUiStore } from "builderStore" |
|
|
import { backendUiStore } from "builderStore" |
|
|
import { notifier } from "builderStore/store/notifications" |
|
|
import { notifier } from "builderStore/store/notifications" |
|
|
@ -93,6 +94,10 @@ |
|
|
? viewModel.schema[field].constraints.inclusion |
|
|
? viewModel.schema[field].constraints.inclusion |
|
|
: [true, false] |
|
|
: [true, false] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function isDate(field) { |
|
|
|
|
|
return viewModel.schema[field].type === "datetime" |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<div bind:this={anchor}> |
|
|
<div bind:this={anchor}> |
|
|
@ -137,6 +142,10 @@ |
|
|
<option value={option}>{option.toString()}</option> |
|
|
<option value={option}>{option.toString()}</option> |
|
|
{/each} |
|
|
{/each} |
|
|
</Select> |
|
|
</Select> |
|
|
|
|
|
{:else if filter.key && isDate(filter.key)} |
|
|
|
|
|
<DatePicker |
|
|
|
|
|
bind:value={filter.value} |
|
|
|
|
|
placeholder={filter.key || fields[0]} /> |
|
|
{:else} |
|
|
{:else} |
|
|
<Input |
|
|
<Input |
|
|
thin |
|
|
thin |
|
|
|