bump bbui
This commit is contained in:
parent
041dcec88a
commit
dd76891181
|
@ -63,7 +63,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/bbui": "^1.53.0",
|
"@budibase/bbui": "^1.53.1",
|
||||||
"@budibase/client": "^0.5.3",
|
"@budibase/client": "^0.5.3",
|
||||||
"@budibase/colorpicker": "^1.0.1",
|
"@budibase/colorpicker": "^1.0.1",
|
||||||
"@budibase/svelte-ag-grid": "^0.0.16",
|
"@budibase/svelte-ag-grid": "^0.0.16",
|
||||||
|
|
|
@ -52,52 +52,26 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<Heading extraSmall>Data binding</Heading>
|
|
||||||
<Spacer small />
|
|
||||||
<Body extraSmall lh>
|
|
||||||
Binding connects one piece of data to another and makes it dynamic. Click
|
|
||||||
the objects on the left, to add them to the textbox.
|
|
||||||
</Body>
|
|
||||||
<Spacer large />
|
|
||||||
<TextArea
|
<TextArea
|
||||||
thin
|
thin
|
||||||
bind:value
|
bind:value
|
||||||
placeholder="Add text, or click the objects on the left to add them to the
|
placeholder="Add text, or click the objects on the left to add them to the
|
||||||
textbox." />
|
textbox." />
|
||||||
<div class="controls">
|
|
||||||
<a href="https://docs.budibase.com/design/binding">
|
|
||||||
<Body small grey>Learn more about binding</Body>
|
|
||||||
</a>
|
|
||||||
<Button on:click={cancel} secondary>Cancel</Button>
|
|
||||||
<Button on:click={close} primary>Done</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.container {
|
.container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto auto;
|
grid-template-columns: auto 1fr;
|
||||||
}
|
|
||||||
.list,
|
|
||||||
.text {
|
|
||||||
padding: var(--spacing-m);
|
|
||||||
}
|
|
||||||
.controls {
|
|
||||||
margin-top: var(--spacing-m);
|
|
||||||
display: grid;
|
|
||||||
align-items: center;
|
|
||||||
grid-gap: var(--spacing-l);
|
|
||||||
grid-template-columns: 1fr auto auto;
|
|
||||||
}
|
}
|
||||||
.list {
|
.list {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
border-right: 1.5px solid var(--grey-4);
|
border-right: 1.5px solid var(--grey-4);
|
||||||
padding: var(--spacing-xl);
|
padding: var(--spacing-s);
|
||||||
}
|
}
|
||||||
.text {
|
.text {
|
||||||
width: 600px;
|
padding: var(--spacing-s);
|
||||||
padding: var(--spacing-xl);
|
|
||||||
font-family: var(--font-sans);
|
font-family: var(--font-sans);
|
||||||
}
|
}
|
||||||
.text :global(p) {
|
.text :global(p) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { Icon, Drawer } from "@budibase/bbui"
|
import { Button, Icon, Drawer } from "@budibase/bbui"
|
||||||
import Input from "./PropertyPanelControls/Input.svelte"
|
import Input from "./PropertyPanelControls/Input.svelte"
|
||||||
import { store, backendUiStore, currentAsset } from "builderStore"
|
import { store, backendUiStore, currentAsset } from "builderStore"
|
||||||
import fetchBindableProperties from "builderStore/fetchBindableProperties"
|
import fetchBindableProperties from "builderStore/fetchBindableProperties"
|
||||||
|
@ -106,11 +106,24 @@
|
||||||
handleClose()
|
handleClose()
|
||||||
showDrawer = false
|
showDrawer = false
|
||||||
}}>
|
}}>
|
||||||
<BindingDropdown
|
<div slot="buttons">
|
||||||
{...handlevalueKey(value)}
|
<Button
|
||||||
close={() => showDrawer = false}
|
blue
|
||||||
on:update={e => (temporaryBindableValue = e.detail)}
|
thin
|
||||||
{bindableProperties} />
|
on:click={() => {
|
||||||
|
notifier.success('Query parameters saved.')
|
||||||
|
handleSelected(value)
|
||||||
|
}}>
|
||||||
|
Save
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
<div class="drawer-contents" slot="body">
|
||||||
|
<BindingDropdown
|
||||||
|
{...handlevalueKey(value)}
|
||||||
|
close={() => showDrawer = false}
|
||||||
|
on:update={e => (temporaryBindableValue = e.detail)}
|
||||||
|
{bindableProperties} />
|
||||||
|
</div>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
@ -161,4 +174,8 @@
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.drawer-contents {
|
||||||
|
height: 40vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue