@dataloop-ai/components 0.19.157 → 0.19.159

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.157",
3
+ "version": "0.19.159",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -9,23 +9,13 @@
9
9
  @click="$emit('click')"
10
10
  >
11
11
  <slot name="prefix" />
12
- <span
13
- v-if="hasIcon"
14
- class="dl-chip-left-icon-container"
15
- >
16
- <dl-icon
17
- class="dl-chip-left-icon"
18
- size="12px"
19
- :icon="icon"
20
- />
12
+ <span v-if="hasIcon" class="dl-chip-left-icon-container">
13
+ <dl-icon class="dl-chip-left-icon" size="12px" :icon="icon" />
21
14
  </span>
22
15
  <dl-tooltip v-if="overflow && isOverflowing">
23
16
  {{ label }}
24
17
  </dl-tooltip>
25
- <div
26
- v-if="hasLabelSlot || hasLabel"
27
- class="dl-chip--content"
28
- >
18
+ <div v-if="hasLabelSlot || hasLabel" class="dl-chip--content">
29
19
  <div
30
20
  ref="dlChipRef"
31
21
  :class="{
@@ -221,6 +211,8 @@ export default defineComponent({
221
211
  width: auto;
222
212
  min-width: 0;
223
213
  max-width: 100%;
214
+ display: flex;
215
+ align-items: center;
224
216
  }
225
217
 
226
218
  &--ellipsis {
@@ -5,11 +5,7 @@
5
5
  class="dl-smart-search-input"
6
6
  >
7
7
  <div class="dl-smart-search-input__search-bar-wrapper">
8
- <div
9
- ref="searchBar"
10
- :class="searchBarClasses"
11
- @click="focus()"
12
- >
8
+ <div ref="searchBar" :class="searchBarClasses" @click="focus()">
13
9
  <div class="dl-smart-search-input__status-icon-wrapper">
14
10
  <dl-icon
15
11
  v-if="!focused && computedStatus"
@@ -274,7 +270,11 @@ export default defineComponent({
274
270
  // todo: these can be stale data. we need to update them on schema change.
275
271
  const { hasEllipsis } = useSizeObserver(input)
276
272
  const { suggestions, error, findSuggestions, checkErrors } =
277
- useSuggestions(schema, aliases, { strict, forbiddenKeys, omitSuggestions })
273
+ useSuggestions(schema, aliases, {
274
+ strict,
275
+ forbiddenKeys,
276
+ omitSuggestions
277
+ })
278
278
  //#endregion
279
279
 
280
280
  //#region methods
@@ -469,7 +469,9 @@ export default defineComponent({
469
469
  input.value.focus()
470
470
 
471
471
  focused.value = true
472
- showSuggestions.value = true
472
+ if (suggestions.value.length) {
473
+ showSuggestions.value = true
474
+ }
473
475
  emit('focus')
474
476
  }
475
477
 
@@ -495,7 +497,7 @@ export default defineComponent({
495
497
  }
496
498
 
497
499
  if (cancelBlur.value === 0) {
498
- if (showSuggestions.value && computedStatus.value.type !== 'error') {
500
+ if (showSuggestions.value) {
499
501
  focused.value = true
500
502
  return
501
503
  }