@webitel/ui-sdk 24.6.33 → 24.6.35

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.6.33",
3
+ "version": "24.6.35",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -149,9 +149,9 @@ function handleKeyup(event) {
149
149
  }
150
150
  }
151
151
 
152
- function updateSearchMode(value) {
153
- emit('update:search-mode', value);
154
- emit('change:search-mode', value);
152
+ function updateSearchMode({ option }) {
153
+ emit('update:search-mode', option);
154
+ emit('change:search-mode', option);
155
155
  }
156
156
  </script>
157
157
 
@@ -51,14 +51,14 @@ const filterValue = computed(() => getValue(filterName.value));
51
51
 
52
52
  const localValue = ref(filterValue.value);
53
53
 
54
- async function changeMode({ value }) {
55
- await setValue({ name: filterName.value, value: '' });
54
+ async function changeMode({ value }, { clearValue = true } = {}) {
55
+ if (clearValue) await setValue({ name: filterName.value, value: '' });
56
56
  filterName.value = value;
57
57
  }
58
58
 
59
59
  function restoreSearchMode() {
60
60
  const mode = props.searchModeOpts.find(({ value }) => !!getValue(value));
61
- if (mode) changeMode({ value: mode.value });
61
+ if (mode) changeMode({ value: mode.value }, { clearValue: false });
62
62
  }
63
63
 
64
64
  function subscribe(payload) {