@webitel/ui-sdk 24.4.24 → 24.4.25
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/ui-sdk.css +1 -1
- package/dist/ui-sdk.mjs +209 -196
- package/dist/ui-sdk.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/wt-select/wt-select.vue +15 -12
package/package.json
CHANGED
|
@@ -86,17 +86,18 @@
|
|
|
86
86
|
<template #caret="{ toggle }">
|
|
87
87
|
<!-- In mode allowCustomValues, adding is done by clicking on this icon -->
|
|
88
88
|
<!-- [https://my.webitel.com/browse/WTEL-3181]-->
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
<wt-icon-btn
|
|
90
|
+
v-if="allowCustomValues && searchParams.search"
|
|
91
|
+
:disabled="disabled"
|
|
92
|
+
class="multiselect__select multiselect__custom-value"
|
|
93
|
+
icon="select-custom-value-enter"
|
|
94
|
+
@mousedown.prevent
|
|
95
|
+
@click="handleCustomValueArrowInput(toggle)"
|
|
96
|
+
/>
|
|
97
97
|
<!-- To view a list of possible values, click on this icon -->
|
|
98
98
|
<!-- @mousedown.native.prevent.stop="toggle": https://github.com/shentao/vue-multiselect/issues/1204#issuecomment-615114727 -->
|
|
99
99
|
<wt-icon-btn
|
|
100
|
+
v-else
|
|
100
101
|
:disabled="disabled"
|
|
101
102
|
class="multiselect__select multiselect__arrow"
|
|
102
103
|
icon="arrow-down"
|
|
@@ -233,8 +234,10 @@ export default {
|
|
|
233
234
|
async handleCustomValue(value) {
|
|
234
235
|
// https://webitel.atlassian.net/browse/WTEL-3181
|
|
235
236
|
this.tag(value);
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
},
|
|
238
|
+
// for taggableMixin functionality
|
|
239
|
+
async handleCustomValueArrowInput(toggle) {
|
|
240
|
+
// https://webitel.atlassian.net/browse/WTEL-3181
|
|
238
241
|
// OLD CODE, but can be useful in future
|
|
239
242
|
/**
|
|
240
243
|
* tag emits input event, but there is a drawback
|
|
@@ -245,7 +248,7 @@ export default {
|
|
|
245
248
|
* for now, i've tested this cause and it works well even without waiting for $nextTick()
|
|
246
249
|
* however, this is a potential problem, so, i've left this comment here
|
|
247
250
|
*/
|
|
248
|
-
|
|
251
|
+
this.tag(this.searchParams.search);
|
|
249
252
|
// await this.$nextTick();
|
|
250
253
|
|
|
251
254
|
/**
|
|
@@ -253,7 +256,7 @@ export default {
|
|
|
253
256
|
* because there could be code, which performs operation with input only after select close
|
|
254
257
|
* so that, it's crucial to emit input before close
|
|
255
258
|
*/
|
|
256
|
-
|
|
259
|
+
toggle();
|
|
257
260
|
},
|
|
258
261
|
// for taggableMixin functionality
|
|
259
262
|
emitTagEvent(searchQuery, id) {
|