@budibase/bbui 0.9.185-alpha.10 → 0.9.185-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "0.9.185-alpha.
|
|
4
|
+
"version": "0.9.185-alpha.14",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"svelte-flatpickr": "^3.2.3",
|
|
83
83
|
"svelte-portal": "^1.0.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "4e76951a03d3ea6793c1820d6c5590a36de6496e"
|
|
86
86
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
export let readonly = false
|
|
12
12
|
export let updateOnChange = true
|
|
13
13
|
export let quiet = false
|
|
14
|
+
export let dataCy
|
|
14
15
|
|
|
15
16
|
const dispatch = createEventDispatcher()
|
|
16
17
|
let focus = false
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
{disabled}
|
|
79
80
|
{readonly}
|
|
80
81
|
{id}
|
|
82
|
+
data-cy={dataCy}
|
|
81
83
|
value={value || ""}
|
|
82
84
|
placeholder={placeholder || ""}
|
|
83
85
|
on:click
|
package/src/Form/Input.svelte
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
export let error = null
|
|
14
14
|
export let updateOnChange = true
|
|
15
15
|
export let quiet = false
|
|
16
|
+
export let dataCy
|
|
16
17
|
|
|
17
18
|
const dispatch = createEventDispatcher()
|
|
18
19
|
const onChange = e => {
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
|
|
24
25
|
<Field {label} {labelPosition} {error}>
|
|
25
26
|
<TextField
|
|
27
|
+
{dataCy}
|
|
26
28
|
{updateOnChange}
|
|
27
29
|
{error}
|
|
28
30
|
{disabled}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
export let onConfirm = undefined
|
|
9
9
|
|
|
10
10
|
$: icon = selectIcon(type)
|
|
11
|
+
// if newlines used, convert them to different elements
|
|
12
|
+
$: split = message.split("\n")
|
|
11
13
|
|
|
12
14
|
function selectIcon(alertType) {
|
|
13
15
|
switch (alertType) {
|
|
@@ -33,7 +35,9 @@
|
|
|
33
35
|
<use xlink:href="#spectrum-icon-18-{icon}" />
|
|
34
36
|
</svg>
|
|
35
37
|
<div class="spectrum-InLineAlert-header">{header}</div>
|
|
36
|
-
|
|
38
|
+
{#each split as splitMsg}
|
|
39
|
+
<div class="spectrum-InLineAlert-content">{splitMsg}</div>
|
|
40
|
+
{/each}
|
|
37
41
|
{#if onConfirm}
|
|
38
42
|
<div class="spectrum-InLineAlert-footer">
|
|
39
43
|
<Button secondary on:click={onConfirm}>OK</Button>
|