Add proper components for dates and boolean types in grid condition editor and fix highlight showing in sticky column gutter cell
This commit is contained in:
parent
c62e6d776c
commit
c41232bc12
|
@ -7,6 +7,7 @@
|
||||||
Layout,
|
Layout,
|
||||||
Select,
|
Select,
|
||||||
Icon,
|
Icon,
|
||||||
|
DatePicker,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { createEventDispatcher } from "svelte"
|
import { createEventDispatcher } from "svelte"
|
||||||
import { cloneDeep } from "lodash"
|
import { cloneDeep } from "lodash"
|
||||||
|
@ -167,13 +168,28 @@
|
||||||
placeholder={null}
|
placeholder={null}
|
||||||
on:change={() => onValueTypeChange(condition)}
|
on:change={() => onValueTypeChange(condition)}
|
||||||
/>
|
/>
|
||||||
<DrawerBindableInput
|
{#if type === FieldType.DATETIME && condition.valueType === type}
|
||||||
{bindings}
|
<DatePicker
|
||||||
disabled={condition.noValue}
|
placeholder="Value"
|
||||||
placeholder="Value"
|
disabled={condition.noValue}
|
||||||
value={condition.referenceValue}
|
bind:value={condition.referenceValue}
|
||||||
on:change={e => (condition.referenceValue = e.detail)}
|
/>
|
||||||
/>
|
{:else if type === FieldType.BOOLEAN && condition.valueType === type}
|
||||||
|
<Select
|
||||||
|
placeholder="Value"
|
||||||
|
disabled={condition.noValue}
|
||||||
|
options={["True", "False"]}
|
||||||
|
bind:value={condition.referenceValue}
|
||||||
|
/>
|
||||||
|
{:else}
|
||||||
|
<DrawerBindableInput
|
||||||
|
{bindings}
|
||||||
|
placeholder="Value"
|
||||||
|
disabled={condition.noValue}
|
||||||
|
value={condition.referenceValue}
|
||||||
|
on:change={e => (condition.referenceValue = e.detail)}
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
<Icon
|
<Icon
|
||||||
name="Duplicate"
|
name="Duplicate"
|
||||||
hoverable
|
hoverable
|
||||||
|
|
|
@ -175,6 +175,9 @@
|
||||||
.header :global(.cell) {
|
.header :global(.cell) {
|
||||||
background: var(--grid-background-alt);
|
background: var(--grid-background-alt);
|
||||||
}
|
}
|
||||||
|
.header :global(.cell::before) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.row {
|
.row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
Loading…
Reference in New Issue