@budibase/bbui 1.2.58-alpha.1 → 1.2.58-alpha.2
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": "1.2.58-alpha.
|
|
4
|
+
"version": "1.2.58-alpha.2",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
|
|
41
|
-
"@budibase/string-templates": "1.2.58-alpha.
|
|
41
|
+
"@budibase/string-templates": "1.2.58-alpha.2",
|
|
42
42
|
"@spectrum-css/actionbutton": "^1.0.1",
|
|
43
43
|
"@spectrum-css/actiongroup": "^1.0.1",
|
|
44
44
|
"@spectrum-css/avatar": "^3.0.2",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"svelte-flatpickr": "^3.2.3",
|
|
86
86
|
"svelte-portal": "^1.0.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "675fdd4b88456e4a663f8e2efb148556e0a35aab"
|
|
89
89
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
export let disabled = false
|
|
11
11
|
export let getOptionLabel = option => option
|
|
12
12
|
export let getOptionValue = option => option
|
|
13
|
+
export let getOptionTitle = option => option
|
|
13
14
|
|
|
14
15
|
const dispatch = createEventDispatcher()
|
|
15
16
|
const onChange = e => dispatch("change", e.target.value)
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
{#if options && Array.isArray(options)}
|
|
20
21
|
{#each options as option}
|
|
21
22
|
<div
|
|
22
|
-
title={
|
|
23
|
+
title={getOptionTitle(option)}
|
|
23
24
|
class="spectrum-Radio spectrum-FieldGroup-item spectrum-Radio--emphasized"
|
|
24
25
|
class:is-invalid={!!error}
|
|
25
26
|
>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
export let direction = "vertical"
|
|
13
13
|
export let getOptionLabel = option => extractProperty(option, "label")
|
|
14
14
|
export let getOptionValue = option => extractProperty(option, "value")
|
|
15
|
+
export let getOptionTitle = option => extractProperty(option, "label")
|
|
15
16
|
|
|
16
17
|
const dispatch = createEventDispatcher()
|
|
17
18
|
const onChange = e => {
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
{direction}
|
|
36
37
|
{getOptionLabel}
|
|
37
38
|
{getOptionValue}
|
|
39
|
+
{getOptionTitle}
|
|
38
40
|
on:change={onChange}
|
|
39
41
|
/>
|
|
40
42
|
</Field>
|