vue3-extended-multiselect 1.5.4 → 1.5.6
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.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Patch notes
|
|
2
2
|
|
|
3
|
-
Current `vue3-extended-multiselect` version: **1.5.
|
|
3
|
+
Current `vue3-extended-multiselect` version: **1.5.6**
|
|
4
4
|
|
|
5
5
|
***
|
|
6
6
|
|
|
@@ -208,4 +208,13 @@ Adding descriptive comments for some types in typings.
|
|
|
208
208
|
|
|
209
209
|
### 1.5.4 (2023-01-25)
|
|
210
210
|
|
|
211
|
-
* Removal of restrictions for preselected options from v-model.
|
|
211
|
+
* Removal of restrictions for preselected options from v-model.
|
|
212
|
+
|
|
213
|
+
### 1.5.5 (2023-01-26)
|
|
214
|
+
|
|
215
|
+
* Changing some option block styles.
|
|
216
|
+
|
|
217
|
+
### 1.5.6 (2023-01-26)
|
|
218
|
+
|
|
219
|
+
* Fixing bug with "noOption" slot being displayed when search field value is not empty.
|
|
220
|
+
* Fixing bug with reload of preselected options when using external loader.
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -539,7 +539,7 @@ const classes = computed(() => {
|
|
|
539
539
|
*/
|
|
540
540
|
const emptyOptionsList = computed(() => {
|
|
541
541
|
return (!options.value.length || !options.value.filter((option) => !!option).length
|
|
542
|
-
|| !availableOptions.value.length) && !
|
|
542
|
+
|| !availableOptions.value.length) && !searchState.searchValue;
|
|
543
543
|
});
|
|
544
544
|
|
|
545
545
|
/**
|
|
@@ -253,7 +253,7 @@ import ExtendedMultiselectToggle from "./ExtendedMultiselectToggle.vue";
|
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
255
|
* @author Ridiger Daniil Dmitrievich
|
|
256
|
-
* @version 1.5.
|
|
256
|
+
* @version 1.5.6
|
|
257
257
|
*/
|
|
258
258
|
|
|
259
259
|
const props = defineProps({
|
|
@@ -1269,14 +1269,15 @@ const fieldFocus = (mouseEvent) => {
|
|
|
1269
1269
|
* Initialises options list loading by external async method
|
|
1270
1270
|
* @function
|
|
1271
1271
|
* @param {string} pattern - value of search field
|
|
1272
|
+
* @param {boolean} initialValue - preselected options flag
|
|
1272
1273
|
*/
|
|
1273
|
-
const loadOptionsByExternalLoader = (pattern) => {
|
|
1274
|
+
const loadOptionsByExternalLoader = (pattern, initialValue) => {
|
|
1274
1275
|
internalLoader.value = true;
|
|
1275
1276
|
externalOptionsLoader.value = options.value;
|
|
1276
1277
|
options.value(pattern).then(options => {
|
|
1277
1278
|
rawOptions.value = options;
|
|
1278
1279
|
internalLoader.value = false;
|
|
1279
|
-
setPreselectedOptionsByConditions();
|
|
1280
|
+
if (initialValue) setPreselectedOptionsByConditions();
|
|
1280
1281
|
});
|
|
1281
1282
|
};
|
|
1282
1283
|
|
|
@@ -1739,7 +1740,7 @@ onBeforeMount(() => {
|
|
|
1739
1740
|
*/
|
|
1740
1741
|
onMounted(() => {
|
|
1741
1742
|
if (typeof options.value === "function") {
|
|
1742
|
-
loadOptionsByExternalLoader();
|
|
1743
|
+
loadOptionsByExternalLoader(null, true);
|
|
1743
1744
|
} else {
|
|
1744
1745
|
rawOptions.value = options.value;
|
|
1745
1746
|
setPreselectedOptionsByConditions();
|
|
@@ -1766,7 +1767,7 @@ onMounted(() => {
|
|
|
1766
1767
|
});
|
|
1767
1768
|
|
|
1768
1769
|
emitter.value.on("extended:loader-pattern-changed", (pattern) => {
|
|
1769
|
-
loadOptionsByExternalLoader(pattern);
|
|
1770
|
+
loadOptionsByExternalLoader(pattern, false);
|
|
1770
1771
|
});
|
|
1771
1772
|
});
|
|
1772
1773
|
|
package/src/styles/main.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
.extended__multiselect-wrapper--disabled {
|
|
6
6
|
position: relative;
|
|
7
7
|
width: var(--max-size);
|
|
8
|
+
height: var(--max-size);
|
|
8
9
|
cursor: var(--pointer-cursor);
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -156,6 +157,7 @@
|
|
|
156
157
|
|
|
157
158
|
.extended__multiselect-block > span {
|
|
158
159
|
word-break: break-all;
|
|
160
|
+
white-space: pre-line;
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
.extended__multiselect-input {
|