@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.4.24",
3
+ "version": "24.4.25",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -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
- <!-- <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="handleCustomValue(toggle)"-->
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
- // this.tag(this.searchParams.search);
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
- // toggle();
259
+ toggle();
257
260
  },
258
261
  // for taggableMixin functionality
259
262
  emitTagEvent(searchQuery, id) {