vue3-extended-multiselect 1.7.3 → 1.7.4
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 +6 -2
- package/README.md +2 -1
- package/jest.config.js +1 -1
- package/package.json +1 -1
- package/src/components/Vue3ExtendedMultiselect.vue +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Patch notes
|
|
2
2
|
|
|
3
|
-
Current `vue3-extended-multiselect` version: **1.7.
|
|
3
|
+
Current `vue3-extended-multiselect` version: **1.7.4**
|
|
4
4
|
|
|
5
5
|
***
|
|
6
6
|
|
|
@@ -285,4 +285,8 @@ Adding descriptive comments for some types in typings.
|
|
|
285
285
|
|
|
286
286
|
### 1.7.3 (2023-02-07)
|
|
287
287
|
|
|
288
|
-
* Fixing bug with disabled removal of selected options based on external modelValue changes.
|
|
288
|
+
* Fixing bug with disabled removal of selected options based on external modelValue changes.
|
|
289
|
+
|
|
290
|
+
### 1.7.4 (2023-02-07)
|
|
291
|
+
|
|
292
|
+
* Adding "update:wrapper" event.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# vue3-extended-multiselect v1.7.
|
|
1
|
+
# vue3-extended-multiselect v1.7.4
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -122,6 +122,7 @@ Event name | Event appointment | Listener method | Simplified event payload | Fi
|
|
|
122
122
|
**active**|Dropdown options list expanding.|@active|—|``inputId`` — id of search field set by "id" prop|
|
|
123
123
|
**close**|Rolling up dropdown options list.|@close|``options`` — array of selected options|``options`` — array of selected options,<br/>``inputId`` — id of search field set by "id" prop|
|
|
124
124
|
**increase**|Increasing current limit of displayed elements with selected options.|@increase|``limit`` — current limit of options to be shown next|``limit`` — current limit of options to be shown next,<br/>``inputId`` — id of search field set by "id" prop|
|
|
125
|
+
**update:wrapper**|Notifies wrapper component that inner modelValue has been updated by external modelValue update|@update:wrapper|``options`` — array of selected options|``options`` — array of selected options,<br/>``inputId`` — id of search field set by "id" prop|
|
|
125
126
|
|
|
126
127
|
## Styling with css
|
|
127
128
|
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -262,7 +262,7 @@ import ExtendedMultiselectToggle from "./ExtendedMultiselectToggle.vue";
|
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
264
|
* @author Ridiger Daniil Dmitrievich, 2022
|
|
265
|
-
* @version 1.7.
|
|
265
|
+
* @version 1.7.4
|
|
266
266
|
*/
|
|
267
267
|
|
|
268
268
|
const props = defineProps({
|
|
@@ -898,7 +898,8 @@ const emit = defineEmits([
|
|
|
898
898
|
"option-created",
|
|
899
899
|
"pattern-changed",
|
|
900
900
|
"select",
|
|
901
|
-
"update:modelValue"
|
|
901
|
+
"update:modelValue",
|
|
902
|
+
"update:wrapper"
|
|
902
903
|
]);
|
|
903
904
|
|
|
904
905
|
const dropdownActive = ref(false);
|
|
@@ -1387,6 +1388,7 @@ const setPreselectedOptions = async (preselectedOptions, restriction = true) =>
|
|
|
1387
1388
|
* Determines conditions that control preselected options installattion
|
|
1388
1389
|
* if "modelValue" prop is defined
|
|
1389
1390
|
* @function
|
|
1391
|
+
* @emits update:wrapper
|
|
1390
1392
|
* @param {boolean} withRemoval - removal of selected options flag
|
|
1391
1393
|
*/
|
|
1392
1394
|
const setPreselectedOptionsByModelValue = (withRemoval = false) => {
|
|
@@ -1405,6 +1407,11 @@ const setPreselectedOptionsByModelValue = (withRemoval = false) => {
|
|
|
1405
1407
|
}
|
|
1406
1408
|
|
|
1407
1409
|
if (withRemoval) {
|
|
1410
|
+
const eventData = simpleEvents.value
|
|
1411
|
+
? selectedOptions.value
|
|
1412
|
+
: createEventFields(selectedOptions.value, "options");
|
|
1413
|
+
|
|
1414
|
+
emit("update:wrapper", eventData);
|
|
1408
1415
|
selectedOptionsWatcher.value = watch(selectedOptions, (value) => {
|
|
1409
1416
|
if (multiple.value) {
|
|
1410
1417
|
emit("update:modelValue", value);
|