@iankibetsh/shframework 5.0.5 → 5.0.7
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/dist/dist/library.mjs.css +16 -16
- package/dist/library.js +4 -1
- package/dist/library.mjs +4 -1
- package/package.json +1 -1
|
@@ -31,6 +31,22 @@
|
|
|
31
31
|
opacity: 0.5;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.sh-selected-item{
|
|
35
|
+
line-height: unset!important;
|
|
36
|
+
}
|
|
37
|
+
.sh-suggestion-input{
|
|
38
|
+
padding: 0.375rem 0.75rem;
|
|
39
|
+
}
|
|
40
|
+
.sh-suggest{
|
|
41
|
+
margin-bottom: 1rem;
|
|
42
|
+
padding: 0rem 0rem;
|
|
43
|
+
}
|
|
44
|
+
.sh-suggest-control::after{
|
|
45
|
+
margin-top: auto;
|
|
46
|
+
margin-bottom: auto;
|
|
47
|
+
margin-right: 0.255em;
|
|
48
|
+
}
|
|
49
|
+
|
|
34
50
|
.colored-toast.swal2-icon-success {
|
|
35
51
|
background-color: #a5dc86 !important;
|
|
36
52
|
}
|
|
@@ -95,22 +111,6 @@
|
|
|
95
111
|
flex-grow: 1;
|
|
96
112
|
}
|
|
97
113
|
|
|
98
|
-
.sh-selected-item{
|
|
99
|
-
line-height: unset!important;
|
|
100
|
-
}
|
|
101
|
-
.sh-suggestion-input{
|
|
102
|
-
padding: 0.375rem 0.75rem;
|
|
103
|
-
}
|
|
104
|
-
.sh-suggest{
|
|
105
|
-
margin-bottom: 1rem;
|
|
106
|
-
padding: 0rem 0rem;
|
|
107
|
-
}
|
|
108
|
-
.sh-suggest-control::after{
|
|
109
|
-
margin-top: auto;
|
|
110
|
-
margin-bottom: auto;
|
|
111
|
-
margin-right: 0.255em;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
114
|
.callout{
|
|
115
115
|
--bs-link-color-rgb: 110,168,254;
|
|
116
116
|
--bs-code-color: #e685b5;
|
package/dist/library.js
CHANGED
|
@@ -2192,6 +2192,7 @@ function updateModelValue(){
|
|
|
2192
2192
|
if(selectedItems.length === 0) {
|
|
2193
2193
|
if(props.allowUserInput){
|
|
2194
2194
|
emit('update:modelValue', searchText.value);
|
|
2195
|
+
showDropDown();
|
|
2195
2196
|
return
|
|
2196
2197
|
} else {
|
|
2197
2198
|
emit('update:modelValue', null);
|
|
@@ -2219,7 +2220,9 @@ function filterData(e){
|
|
|
2219
2220
|
showDropDown();
|
|
2220
2221
|
let filterValue = e.target.innerText;
|
|
2221
2222
|
searchText.value = filterValue;
|
|
2222
|
-
|
|
2223
|
+
if(props.allowUserInput){
|
|
2224
|
+
updateModelValue();
|
|
2225
|
+
}
|
|
2223
2226
|
if (props.url) {
|
|
2224
2227
|
fetchRemoteData();
|
|
2225
2228
|
} else if(props.data) {
|
package/dist/library.mjs
CHANGED
|
@@ -2180,6 +2180,7 @@ function updateModelValue(){
|
|
|
2180
2180
|
if(selectedItems.length === 0) {
|
|
2181
2181
|
if(props.allowUserInput){
|
|
2182
2182
|
emit('update:modelValue', searchText.value);
|
|
2183
|
+
showDropDown();
|
|
2183
2184
|
return
|
|
2184
2185
|
} else {
|
|
2185
2186
|
emit('update:modelValue', null);
|
|
@@ -2207,7 +2208,9 @@ function filterData(e){
|
|
|
2207
2208
|
showDropDown();
|
|
2208
2209
|
let filterValue = e.target.innerText;
|
|
2209
2210
|
searchText.value = filterValue;
|
|
2210
|
-
|
|
2211
|
+
if(props.allowUserInput){
|
|
2212
|
+
updateModelValue();
|
|
2213
|
+
}
|
|
2211
2214
|
if (props.url) {
|
|
2212
2215
|
fetchRemoteData();
|
|
2213
2216
|
} else if(props.data) {
|