@budibase/bbui 2.0.30-alpha.0 → 2.0.30
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": "2.0.30
|
|
4
|
+
"version": "2.0.30",
|
|
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": "2.0.30
|
|
41
|
+
"@budibase/string-templates": "^2.0.30",
|
|
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": "ec85bd13aeabb93d9a68ae32bf9c2504b216c6ac"
|
|
89
89
|
}
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
export let placeholderOption = null
|
|
20
20
|
export let options = []
|
|
21
21
|
export let isOptionSelected = () => false
|
|
22
|
-
export let isOptionEnabled = () => true
|
|
23
22
|
export let onSelectOption = () => {}
|
|
24
23
|
export let getOptionLabel = option => option
|
|
25
24
|
export let getOptionValue = option => option
|
|
@@ -165,7 +164,6 @@
|
|
|
165
164
|
aria-selected="true"
|
|
166
165
|
tabindex="0"
|
|
167
166
|
on:click={() => onSelectOption(getOptionValue(option, idx))}
|
|
168
|
-
class:is-disabled={!isOptionEnabled(option)}
|
|
169
167
|
>
|
|
170
168
|
{#if getOptionIcon(option, idx)}
|
|
171
169
|
<span class="option-extra">
|
|
@@ -258,7 +256,4 @@
|
|
|
258
256
|
.spectrum-Popover :global(.spectrum-Search .spectrum-Textfield-icon) {
|
|
259
257
|
top: 9px;
|
|
260
258
|
}
|
|
261
|
-
.spectrum-Menu-item.is-disabled {
|
|
262
|
-
pointer-events: none;
|
|
263
|
-
}
|
|
264
259
|
</style>
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
export let getOptionValue = option => option
|
|
13
13
|
export let getOptionIcon = () => null
|
|
14
14
|
export let getOptionColour = () => null
|
|
15
|
-
export let isOptionEnabled
|
|
16
15
|
export let readonly = false
|
|
17
16
|
export let quiet = false
|
|
18
17
|
export let autoWidth = false
|
|
@@ -67,7 +66,6 @@
|
|
|
67
66
|
{getOptionValue}
|
|
68
67
|
{getOptionIcon}
|
|
69
68
|
{getOptionColour}
|
|
70
|
-
{isOptionEnabled}
|
|
71
69
|
{autocomplete}
|
|
72
70
|
{sort}
|
|
73
71
|
isPlaceholder={value == null || value === ""}
|
package/src/Form/Select.svelte
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
export let getOptionValue = option => extractProperty(option, "value")
|
|
16
16
|
export let getOptionIcon = option => option?.icon
|
|
17
17
|
export let getOptionColour = option => option?.colour
|
|
18
|
-
export let isOptionEnabled
|
|
19
18
|
export let quiet = false
|
|
20
19
|
export let autoWidth = false
|
|
21
20
|
export let sort = false
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
{getOptionValue}
|
|
51
50
|
{getOptionIcon}
|
|
52
51
|
{getOptionColour}
|
|
53
|
-
{isOptionEnabled}
|
|
54
52
|
on:change={onChange}
|
|
55
53
|
on:click
|
|
56
54
|
/>
|