vue3-extended-multiselect 1.5.0 → 1.5.1
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.1**
|
|
4
4
|
|
|
5
5
|
***
|
|
6
6
|
|
|
@@ -52,8 +52,8 @@ Adding descriptive comments for some types in typings.
|
|
|
52
52
|
|
|
53
53
|
### 0.2.0 (2022-12-07)
|
|
54
54
|
|
|
55
|
-
*
|
|
56
|
-
*
|
|
55
|
+
* Fixing bug with hidden "noOptions" slot when list of available options is empty.
|
|
56
|
+
* Fixing warning with incorrect array type reactive field initialization.
|
|
57
57
|
* Adding .eslintignore file.
|
|
58
58
|
* Replacing some of default exports with common exports.
|
|
59
59
|
* Arranging CSS-variabled in alphabetical order.
|
|
@@ -98,8 +98,8 @@ Adding descriptive comments for some types in typings.
|
|
|
98
98
|
* Adding "vue3-click-away" dependency.
|
|
99
99
|
* Adding "transformIgnorePatterns" section in jest.config.js.
|
|
100
100
|
* Replacing "clickOutside" function in "onMounted" hook with "v-click-outside" directive.
|
|
101
|
-
*
|
|
102
|
-
*
|
|
101
|
+
* Fixing bug with rolling up options list when "toggleOptionsBySelect" prop is set to false.
|
|
102
|
+
* Fixing bug with reaching "optionsWrapper" ref before initialization.
|
|
103
103
|
|
|
104
104
|
### 1.1.1 (2022-12-10)
|
|
105
105
|
|
|
@@ -117,15 +117,15 @@ Adding descriptive comments for some types in typings.
|
|
|
117
117
|
### 1.1.4 (2022-12-13)
|
|
118
118
|
|
|
119
119
|
* Adding "optionCreateLabel" to expose as utility.
|
|
120
|
-
*
|
|
120
|
+
* Fixing bug with wrong name of label field
|
|
121
121
|
|
|
122
122
|
### 1.1.5 (2022-12-14)
|
|
123
123
|
|
|
124
|
-
*
|
|
124
|
+
* Fixing bug with empty raw options list when using async loader.
|
|
125
125
|
|
|
126
126
|
### 1.1.6 (2022-12-14)
|
|
127
127
|
|
|
128
|
-
*
|
|
128
|
+
* Fixing bug with extra call of async loader by changing value of search field.
|
|
129
129
|
* Adding new internal prop "externalOptionsLoader" to ExtendedMultiselectInput.
|
|
130
130
|
* Searching for options by async loader is moved to in separate method.
|
|
131
131
|
|
|
@@ -142,8 +142,8 @@ Adding descriptive comments for some types in typings.
|
|
|
142
142
|
* Adding "uuid" dependency
|
|
143
143
|
* Removal of "id" attribute of extended multiselect wrapper.
|
|
144
144
|
* Removal of "querySelector" usage in ExtendedMultiselect component. Switching to using event emitter.
|
|
145
|
-
*
|
|
146
|
-
*
|
|
145
|
+
* Fixing bug with bound event emitters between two extended multiselects.
|
|
146
|
+
* Fixing bug with undefined class in extended multiselect wrapper class list.
|
|
147
147
|
|
|
148
148
|
### 1.2.1 (2022-12-21)
|
|
149
149
|
|
|
@@ -155,26 +155,26 @@ Adding descriptive comments for some types in typings.
|
|
|
155
155
|
|
|
156
156
|
### 1.2.3 (2022-12-22)
|
|
157
157
|
|
|
158
|
-
*
|
|
158
|
+
* Fixing bug with excess bottom offset of options list when prop "toggleAppearanceSide" is set to "atop".
|
|
159
159
|
* Supplementation of some css-variables.
|
|
160
160
|
|
|
161
161
|
### 1.2.4 (2022-12-22)
|
|
162
162
|
|
|
163
|
-
*
|
|
163
|
+
* Fixing bug of too wide extended multiselect with long single selected option.
|
|
164
164
|
|
|
165
165
|
### 1.3.0 (2023-01-11)
|
|
166
166
|
|
|
167
167
|
* Adding "autoSelectSearchValue" optional prop.
|
|
168
168
|
* Adding unit-test for new optional prop.
|
|
169
|
-
*
|
|
170
|
-
*
|
|
169
|
+
* Fixing bug with setting search pattern when deselecting of all options.
|
|
170
|
+
* Fixing bug with selected options display when prop "toggleOptionsBySelect" is set to false.
|
|
171
171
|
|
|
172
172
|
### 1.4.0 (2023-01-14)
|
|
173
173
|
|
|
174
174
|
* Removal of dependency "mitt".
|
|
175
175
|
* Adding LocalEmitter.js file with simplified event emitter instead of dependency "mitt".
|
|
176
176
|
* Changing event types in some of props unit-tests.
|
|
177
|
-
*
|
|
177
|
+
* Fixing bug with toggle restriction in custom slots.
|
|
178
178
|
|
|
179
179
|
### 1.4.1 (2023-01-14)
|
|
180
180
|
|
|
@@ -191,4 +191,8 @@ Adding descriptive comments for some types in typings.
|
|
|
191
191
|
* Adding emitter.js file to composition directory with reactive LocalEmitter instace.
|
|
192
192
|
* Removal of "emitterUniqueId" prop from child components.
|
|
193
193
|
* Removal of emitter.js file from events directory.
|
|
194
|
-
* Changing event emitter invocations in some of unit tests.
|
|
194
|
+
* Changing event emitter invocations in some of unit tests.
|
|
195
|
+
|
|
196
|
+
### 1.5.1 (2023-01-25)
|
|
197
|
+
|
|
198
|
+
* Fixing bug with missing toggle on option click in single selection.
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -306,7 +306,7 @@ const deselectBlock = (index) => {
|
|
|
306
306
|
*/
|
|
307
307
|
const showMoreOptions = () => {
|
|
308
308
|
optionsLimitIncreaser.value += increaseDisplayBy.value;
|
|
309
|
-
emitter.value.emit(
|
|
309
|
+
emitter.value.emit("extended:increase-display", optionsLimitIncreaser.value);
|
|
310
310
|
};
|
|
311
311
|
|
|
312
312
|
/**
|
|
@@ -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.1
|
|
257
257
|
*/
|
|
258
258
|
|
|
259
259
|
const props = defineProps({
|
|
@@ -1428,22 +1428,25 @@ const toggleBlockRestrictor = (mouseEvent) => {
|
|
|
1428
1428
|
let generalRestriction;
|
|
1429
1429
|
let filteredCustomSelf;
|
|
1430
1430
|
const filteredHasBlock = toggleDetector(mouseEvent, /^extended__multiselect-block/i, true);
|
|
1431
|
+
const filteredHasSlot = toggleDetector(mouseEvent, /^extended__multiselect-options(?!_option)/i, true)
|
|
1431
1432
|
const filteredSelf = toggleDetector(mouseEvent, /^extended__multiselect-clear/i);
|
|
1432
1433
|
|
|
1433
|
-
if (filteredSelf || filteredHasBlock) {
|
|
1434
|
+
if (filteredSelf.length || filteredHasBlock.length || filteredHasSlot.length) {
|
|
1434
1435
|
filteredCustomSelf = true;
|
|
1435
1436
|
} else {
|
|
1436
1437
|
filteredCustomSelf = toggleCustomRestrictor(mouseEvent);
|
|
1437
1438
|
}
|
|
1438
1439
|
|
|
1439
1440
|
if (extendedMultiselectToggle.value) {
|
|
1440
|
-
generalRestriction = (filteredHasBlock && dropdownActive.value && filteredCustomSelf)
|
|
1441
|
+
generalRestriction = (filteredHasBlock.length && dropdownActive.value && filteredCustomSelf)
|
|
1441
1442
|
|| (filteredSelf && dropdownActive.value && filteredCustomSelf);
|
|
1442
1443
|
} else {
|
|
1443
|
-
generalRestriction = (filteredHasBlock && dropdownActive.value)
|
|
1444
|
+
generalRestriction = (filteredHasBlock.length && dropdownActive.value)
|
|
1444
1445
|
|| (filteredSelf && dropdownActive.value);
|
|
1445
1446
|
}
|
|
1446
1447
|
|
|
1448
|
+
console.info(generalRestriction)
|
|
1449
|
+
|
|
1447
1450
|
if (generalRestriction) {
|
|
1448
1451
|
emitter.value.emit("extended:skip-block-blur");
|
|
1449
1452
|
return true;
|
|
@@ -1493,7 +1496,8 @@ const toggleDetector = (mouseEvent, pattern, mode) => {
|
|
|
1493
1496
|
while(
|
|
1494
1497
|
target
|
|
1495
1498
|
&& (target.classList
|
|
1496
|
-
&& !target.classList.contains("extended__multiselect-wrapper")
|
|
1499
|
+
&& !target.classList.contains("extended__multiselect-wrapper")
|
|
1500
|
+
&& !target.classList.contains("extended__multiselect-options_container")
|
|
1497
1501
|
|| !target.classList.length)
|
|
1498
1502
|
&& mode
|
|
1499
1503
|
&& !filteredHasToggle.length
|