mirror of https://github.com/Budibase/budibase.git
24 changed files with 135 additions and 135 deletions
@ -1,10 +1,7 @@ |
|||
<script> |
|||
import Form from "./Form.svelte" |
|||
|
|||
export let _bb |
|||
export let table |
|||
export let title |
|||
export let buttonText |
|||
export let styles |
|||
</script> |
|||
|
|||
<Form {_bb} {table} {title} {buttonText} wide={false} /> |
|||
<Form {styles} wide={false} /> |
|||
|
|||
@ -1,10 +1,7 @@ |
|||
<script> |
|||
import Form from "./Form.svelte" |
|||
|
|||
export let table |
|||
export let title |
|||
export let buttonText |
|||
export let styles |
|||
</script> |
|||
|
|||
<Form {styles} {table} {title} {buttonText} wide /> |
|||
<Form {styles} wide /> |
|||
|
|||
@ -1,18 +1,19 @@ |
|||
<script> |
|||
import Flatpickr from "svelte-flatpickr" |
|||
import { DatePicker } from "@budibase/bbui" |
|||
import { getContext } from "svelte" |
|||
|
|||
const { styleable } = getContext("app") |
|||
|
|||
export let placeholder |
|||
export let value |
|||
|
|||
export let _bb |
|||
export let styles |
|||
|
|||
function handleChange(event) { |
|||
const [fullDate, dateStr, instance] = event.detail |
|||
if (_bb) { |
|||
_bb.setBinding("value", fullDate) |
|||
} |
|||
const [fullDate] = event.detail |
|||
value = fullDate |
|||
} |
|||
</script> |
|||
|
|||
<DatePicker {placeholder} on:change={handleChange} {value} /> |
|||
<div use:styleable={styles}> |
|||
<DatePicker {placeholder} on:change={handleChange} {value} /> |
|||
</div> |
|||
|
|||
@ -1,9 +1,16 @@ |
|||
<script> |
|||
import "@fortawesome/fontawesome-free/js/all.js" |
|||
import { getContext } from "svelte" |
|||
|
|||
const { styleable } = getContext("app") |
|||
|
|||
export let icon = "" |
|||
export let size = "fa-lg" |
|||
export let color = "#000" |
|||
export let styles |
|||
</script> |
|||
|
|||
<i style={`color: ${color};`} class={`${icon} ${size}`} /> |
|||
<i |
|||
style={`color: ${color};`} |
|||
class={`${icon} ${size}`} |
|||
use:styleable={styles} /> |
|||
|
|||
@ -1,11 +1,20 @@ |
|||
<script> |
|||
import { getContext } from "svelte" |
|||
|
|||
const { styleable } = getContext("app") |
|||
|
|||
export let className = "" |
|||
export let url = "" |
|||
export let description = "" |
|||
export let height |
|||
export let width |
|||
|
|||
export let _bb |
|||
export let styles |
|||
</script> |
|||
|
|||
<img {height} {width} class={className} src={url} alt={description} /> |
|||
<img |
|||
{height} |
|||
{width} |
|||
class={className} |
|||
src={url} |
|||
alt={description} |
|||
use:styleable={styles} /> |
|||
|
|||
@ -1,22 +1,21 @@ |
|||
<script> |
|||
export let id = "" |
|||
import { getContext } from "svelte" |
|||
|
|||
const { styleable } = getContext("app") |
|||
|
|||
export let value = "" |
|||
export let className = "" |
|||
export let type = "text" |
|||
export let label = "" |
|||
export let checked = false |
|||
|
|||
export let _bb |
|||
|
|||
let actualValue = "" |
|||
export let styles |
|||
|
|||
const onchange = ev => { |
|||
if (_bb) { |
|||
const val = type === "checkbox" ? ev.target.checked : ev.target.value |
|||
_bb.setBinding("value", val) |
|||
} |
|||
value = ev.target.value |
|||
} |
|||
</script> |
|||
|
|||
<label for={id}>{label}</label> |
|||
<input {id} class={className} {type} {value} {checked} on:change={onchange} /> |
|||
<input |
|||
class={className} |
|||
{type} |
|||
{value} |
|||
on:change={onchange} |
|||
use:styleable={styles} /> |
|||
|
|||
Loading…
Reference in new issue