@dataloop-ai/components 0.19.135 → 0.19.136

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": "@dataloop-ai/components",
3
- "version": "0.19.135",
3
+ "version": "0.19.136",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -4,13 +4,11 @@
4
4
  :style="cssVars"
5
5
  class="dl-smart-search-input"
6
6
  >
7
- <div
8
- class="dl-smart-search-input__search-bar-wrapper"
9
- @click="focus()"
10
- >
7
+ <div class="dl-smart-search-input__search-bar-wrapper">
11
8
  <div
12
9
  ref="searchBar"
13
10
  :class="searchBarClasses"
11
+ @click="focus()"
14
12
  >
15
13
  <div class="dl-smart-search-input__status-icon-wrapper">
16
14
  <dl-icon
@@ -32,7 +30,6 @@
32
30
  @keypress="onKeyPress"
33
31
  @keyup.esc="onKeyPress"
34
32
  @input="onInput"
35
- @click.stop.prevent="focus"
36
33
  @blur="blur"
37
34
  />
38
35
  </div>
@@ -62,6 +59,7 @@
62
59
  />
63
60
  </div>
64
61
  <suggestions-dropdown
62
+ ref="suggestionsDropdown"
65
63
  v-model="showSuggestions"
66
64
  :parent-id="`${uuid}`"
67
65
  :trigger-percentage="0.5"
@@ -263,6 +261,7 @@ export default defineComponent({
263
261
  const expanded = ref(true)
264
262
  const datePickerSelection = ref(null)
265
263
  const showDatePicker = ref(false)
264
+ const suggestionsDropdown = ref(null)
266
265
  //#endregion
267
266
 
268
267
  //#region hooks
@@ -464,6 +463,7 @@ export default defineComponent({
464
463
  input.value.focus()
465
464
 
466
465
  focused.value = true
466
+ showSuggestions.value = true
467
467
  emit('focus')
468
468
  }
469
469
 
@@ -904,6 +904,7 @@ export default defineComponent({
904
904
 
905
905
  return {
906
906
  uuid: v4(),
907
+ suggestionsDropdown,
907
908
  input,
908
909
  label,
909
910
  searchBar,