@kws3/ui 4.5.7 → 4.5.8
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/CHANGELOG.mdx +3 -0
- package/forms/select/MultiSelect.svelte +6 -1
- package/package.json +2 -2
- package/styles/Tooltip.scss +8 -8
package/CHANGELOG.mdx
CHANGED
|
@@ -566,7 +566,12 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
566
566
|
if (asyncMode) {
|
|
567
567
|
// initally on async mode options are empty
|
|
568
568
|
// so we need to fill selectedOptions with value if value is avaliable
|
|
569
|
-
options =
|
|
569
|
+
options =
|
|
570
|
+
options && options.length
|
|
571
|
+
? options
|
|
572
|
+
: value
|
|
573
|
+
? [...(single ? [value] : [...value])]
|
|
574
|
+
: [];
|
|
570
575
|
searching = false;
|
|
571
576
|
tick().then(() => {
|
|
572
577
|
normaliseOptions();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kws3/ui",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.8",
|
|
4
4
|
"description": "UI components for use with Svelte v3 applications.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"typescript": "^5.2.2"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "a549b4270c569fb5ec4baa2a5c11c61aff0b24d0"
|
|
71
71
|
}
|
package/styles/Tooltip.scss
CHANGED
|
@@ -49,6 +49,14 @@ $popover-radius: $radius !default;
|
|
|
49
49
|
$placements: "top", "bottom", "left", "right";
|
|
50
50
|
$origins: bottom, top, right, left;
|
|
51
51
|
|
|
52
|
+
position: relative;
|
|
53
|
+
background-color: $background;
|
|
54
|
+
color: $color;
|
|
55
|
+
border-radius: $radius;
|
|
56
|
+
outline: 0;
|
|
57
|
+
box-shadow: $shadow;
|
|
58
|
+
transition-property: transform, visibility, opacity;
|
|
59
|
+
|
|
52
60
|
&[data-animation="scale"] {
|
|
53
61
|
@each $placement in $placements {
|
|
54
62
|
&[data-placement^="#{$placement}"] {
|
|
@@ -69,14 +77,6 @@ $popover-radius: $radius !default;
|
|
|
69
77
|
opacity: 0;
|
|
70
78
|
}
|
|
71
79
|
|
|
72
|
-
position: relative;
|
|
73
|
-
background-color: $background;
|
|
74
|
-
color: $color;
|
|
75
|
-
border-radius: $radius;
|
|
76
|
-
outline: 0;
|
|
77
|
-
box-shadow: $shadow;
|
|
78
|
-
transition-property: transform, visibility, opacity;
|
|
79
|
-
|
|
80
80
|
@each $name, $pair in $theme-colors {
|
|
81
81
|
&[data-theme~="#{$name}"] {
|
|
82
82
|
color: cv.getVar($name, "", "-invert");
|