@v1nt1248/3nclient-lib 0.1.79 → 0.1.80

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
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.79",
5
+ "version": "0.1.80",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -22,7 +22,6 @@
22
22
  import Ui3nChip from '../ui3n-chip/ui3n-chip.vue';
23
23
  import Ui3nMenu from '../ui3n-menu/ui3n-menu.vue';
24
24
  import Ui3nHtml from '@/directives/ui3n-html';
25
- import Ui3nClickOutside from '@/directives/ui3n-click-outside';
26
25
  import { markSearch, getRandomId } from '@/utils';
27
26
  import type { Nullable } from '@/components/types';
28
27
  import {
@@ -33,12 +32,10 @@
33
32
  } from './types';
34
33
 
35
34
  const vUi3nHtml = Ui3nHtml;
36
- const vUi3nClickOutside = Ui3nClickOutside;
37
35
 
38
36
  const props = withDefaults(defineProps<Ui3nAutocompleteProps<T>>(), {
39
37
  clearOnSelect: false,
40
38
  filterKeys: () => [],
41
- filterMode: 'every',
42
39
  hideSelected: false,
43
40
  items: () => [],
44
41
  itemTitle: 'name',
@@ -101,7 +98,11 @@
101
98
  function onBlur() {
102
99
  emits('update:focused', false)
103
100
  activeItemsIndex.value = null;
104
- query.value = '';
101
+
102
+ setTimeout(() => {
103
+ isMenuOpen.value = false;
104
+ query.value = '';
105
+ }, 150);
105
106
  }
106
107
 
107
108
  function onItemClick(item: T) {
@@ -212,10 +213,6 @@
212
213
  }
213
214
  }
214
215
 
215
- function onClickOutside() {
216
- handlePressingEscOrTabKeys();
217
- }
218
-
219
216
  watch(
220
217
  () => size(filteredItems.value),
221
218
  (val, oVal) => {
@@ -266,7 +263,7 @@
266
263
  </div>
267
264
 
268
265
  <template #menu>
269
- <div ref="menuBodyEl" v-ui3n-click-outside="onClickOutside" :class="$style.body">
266
+ <div ref="menuBodyEl" :class="$style.body">
270
267
  <template v-if="size(filteredItems)">
271
268
  <template v-for="(item, index) in filteredItems" :key="item.id">
272
269
  <div
@@ -335,6 +332,7 @@
335
332
  line-height: var(--font-16);
336
333
  font-weight: 400;
337
334
  color: var(--color-text-control-primary-default);
335
+ background-color: transparent;
338
336
  border: none;
339
337
  outline: none;
340
338