vue3-extended-multiselect 1.5.6 → 1.5.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/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.7**
|
|
4
4
|
|
|
5
5
|
***
|
|
6
6
|
|
|
@@ -217,4 +217,8 @@ Adding descriptive comments for some types in typings.
|
|
|
217
217
|
### 1.5.6 (2023-01-26)
|
|
218
218
|
|
|
219
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.
|
|
220
|
+
* Fixing bug with reload of preselected options when using external loader.
|
|
221
|
+
|
|
222
|
+
### 1.5.7 (2023-01-26)
|
|
223
|
+
|
|
224
|
+
* Removal of internal loading state because of using "lodash.debounce".
|
package/README.md
CHANGED
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -180,9 +180,8 @@ const {
|
|
|
180
180
|
const { createImagePath } = useImagePath();
|
|
181
181
|
|
|
182
182
|
const { toggleSlotClass, toggleOptionsList } = useToggle(
|
|
183
|
-
loading,
|
|
184
|
-
disabled,
|
|
185
|
-
null,
|
|
183
|
+
loading,
|
|
184
|
+
disabled,
|
|
186
185
|
emitter,
|
|
187
186
|
);
|
|
188
187
|
const { iconSizeClass } = useSizes(iconSize);
|
|
@@ -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.7
|
|
257
257
|
*/
|
|
258
258
|
|
|
259
259
|
const props = defineProps({
|
|
@@ -886,7 +886,6 @@ const emit = defineEmits([
|
|
|
886
886
|
|
|
887
887
|
const dropdownActive = ref(false);
|
|
888
888
|
const inputDisabled = ref(false);
|
|
889
|
-
const internalLoader = ref(false);
|
|
890
889
|
const externalOptionsLoader = ref(null);
|
|
891
890
|
const chosenToggleAppearanceSide = ref(null);
|
|
892
891
|
const rawOptions = ref([]);
|
|
@@ -943,7 +942,6 @@ const { emitter } = useEmitter();
|
|
|
943
942
|
const { toggleOptionsList } = useToggle(
|
|
944
943
|
loading,
|
|
945
944
|
disabled,
|
|
946
|
-
internalLoader,
|
|
947
945
|
emitter,
|
|
948
946
|
);
|
|
949
947
|
const { cancel } = useCancel(
|
|
@@ -1065,7 +1063,7 @@ const expanded = computed(() => {
|
|
|
1065
1063
|
* @returns {boolean} loading
|
|
1066
1064
|
*/
|
|
1067
1065
|
const internalLoading = computed(() => {
|
|
1068
|
-
return loading.value
|
|
1066
|
+
return loading.value;
|
|
1069
1067
|
});
|
|
1070
1068
|
|
|
1071
1069
|
/**
|
|
@@ -1272,11 +1270,9 @@ const fieldFocus = (mouseEvent) => {
|
|
|
1272
1270
|
* @param {boolean} initialValue - preselected options flag
|
|
1273
1271
|
*/
|
|
1274
1272
|
const loadOptionsByExternalLoader = (pattern, initialValue) => {
|
|
1275
|
-
internalLoader.value = true;
|
|
1276
1273
|
externalOptionsLoader.value = options.value;
|
|
1277
1274
|
options.value(pattern).then(options => {
|
|
1278
1275
|
rawOptions.value = options;
|
|
1279
|
-
internalLoader.value = false;
|
|
1280
1276
|
if (initialValue) setPreselectedOptionsByConditions();
|
|
1281
1277
|
});
|
|
1282
1278
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, readonly } from "vue";
|
|
2
2
|
|
|
3
|
-
export default function useToggle(loading, disabled,
|
|
3
|
+
export default function useToggle(loading, disabled, emitter) {
|
|
4
4
|
/**
|
|
5
5
|
* Toggles classes of slots if "loading"
|
|
6
6
|
* or "disabled" props equals true
|
|
@@ -8,7 +8,7 @@ export default function useToggle(loading, disabled, internalLoader, emitter) {
|
|
|
8
8
|
* @returns {string} class
|
|
9
9
|
*/
|
|
10
10
|
const toggleSlotClass = computed(() => {
|
|
11
|
-
return loading.value || disabled.value
|
|
11
|
+
return loading.value || disabled.value
|
|
12
12
|
? "extended__multiselect-toggle--disabled"
|
|
13
13
|
: "extended__multiselect-toggle";
|
|
14
14
|
});
|