|
|
@ -5,6 +5,7 @@ |
|
|
Button, |
|
|
Button, |
|
|
Select, |
|
|
Select, |
|
|
Combobox, |
|
|
Combobox, |
|
|
|
|
|
Input, |
|
|
} from "@budibase/bbui" |
|
|
} from "@budibase/bbui" |
|
|
import { store, currentAsset } from "builderStore" |
|
|
import { store, currentAsset } from "builderStore" |
|
|
import { getBindableProperties } from "builderStore/dataBinding" |
|
|
import { getBindableProperties } from "builderStore/dataBinding" |
|
|
@ -68,6 +69,7 @@ |
|
|
field: null, |
|
|
field: null, |
|
|
operator: OperatorOptions.Equals.value, |
|
|
operator: OperatorOptions.Equals.value, |
|
|
value: null, |
|
|
value: null, |
|
|
|
|
|
valueType: "Value", |
|
|
}, |
|
|
}, |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
@ -168,7 +170,13 @@ |
|
|
on:change={e => onOperatorChange(expression, e.detail)} |
|
|
on:change={e => onOperatorChange(expression, e.detail)} |
|
|
placeholder={null} |
|
|
placeholder={null} |
|
|
/> |
|
|
/> |
|
|
{#if ["string", "longform", "number"].includes(expression.type)} |
|
|
<Select |
|
|
|
|
|
disabled={expression.noValue || !expression.field} |
|
|
|
|
|
options={["Value", "Binding"]} |
|
|
|
|
|
bind:value={expression.valueType} |
|
|
|
|
|
placeholder={null} |
|
|
|
|
|
/> |
|
|
|
|
|
{#if expression.valueType === "Binding"} |
|
|
<DrawerBindableInput |
|
|
<DrawerBindableInput |
|
|
disabled={expression.noValue} |
|
|
disabled={expression.noValue} |
|
|
title={`Value for "${expression.field}"`} |
|
|
title={`Value for "${expression.field}"`} |
|
|
@ -177,6 +185,8 @@ |
|
|
bindings={bindableProperties} |
|
|
bindings={bindableProperties} |
|
|
on:change={event => (expression.value = event.detail)} |
|
|
on:change={event => (expression.value = event.detail)} |
|
|
/> |
|
|
/> |
|
|
|
|
|
{:else if ["string", "longform", "number"].includes(expression.type)} |
|
|
|
|
|
<Input disabled={expression.noValue} bind:value={expression.value} /> |
|
|
{:else if expression.type === "options"} |
|
|
{:else if expression.type === "options"} |
|
|
<Combobox |
|
|
<Combobox |
|
|
disabled={expression.noValue} |
|
|
disabled={expression.noValue} |
|
|
@ -222,6 +232,6 @@ |
|
|
column-gap: var(--spacing-l); |
|
|
column-gap: var(--spacing-l); |
|
|
row-gap: var(--spacing-s); |
|
|
row-gap: var(--spacing-s); |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
grid-template-columns: 1fr 120px 1fr auto; |
|
|
grid-template-columns: 1fr 120px 120px 1fr auto; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|