@dataloop-ai/components 0.20.274 → 0.20.275

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.20.274",
3
+ "version": "0.20.275",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -212,32 +212,40 @@
212
212
  :src="item.image"
213
213
  class="dl-input__suggestion--image"
214
214
  />
215
- <span
216
- v-for="(
217
- word, index
218
- ) in getSuggestWords(
219
- item.suggestion,
220
- modelValue
221
- )"
222
- :key="JSON.stringify(word) + index"
223
- :class="{
224
- 'dl-input__suggestion--highlighted':
225
- word.highlighted
226
- }"
215
+ <dl-ellipsis
216
+ class="dl-input__suggestion--text"
227
217
  >
228
- <span v-if="word.value[0] === ' '"
229
- >&nbsp;</span
230
- >
231
- {{ word.value }}
232
218
  <span
233
- v-if="
234
- word.value[
235
- word.value.length - 1
236
- ] === ' '
219
+ v-for="(
220
+ word, index
221
+ ) in getSuggestWords(
222
+ item.suggestion,
223
+ modelValue
224
+ )"
225
+ :key="
226
+ JSON.stringify(word) + index
237
227
  "
238
- >&nbsp;</span
228
+ :class="{
229
+ 'dl-input__suggestion--highlighted':
230
+ word.highlighted
231
+ }"
239
232
  >
240
- </span>
233
+ <span
234
+ v-if="word.value[0] === ' '"
235
+ >&nbsp;</span
236
+ >
237
+ {{ word.value }}
238
+ <span
239
+ v-if="
240
+ word.value[
241
+ word.value.length -
242
+ 1
243
+ ] === ' '
244
+ "
245
+ >&nbsp;</span
246
+ >
247
+ </span>
248
+ </dl-ellipsis>
241
249
  </slot>
242
250
  </dl-list-item>
243
251
  </dl-list>
@@ -1664,6 +1672,7 @@ export default defineComponent({
1664
1672
  position: relative;
1665
1673
  line-height: 10px;
1666
1674
  width: 100%;
1675
+ contain: inline-size;
1667
1676
 
1668
1677
  &--text-color {
1669
1678
  color: var(--dell-gray-800);
@@ -1797,6 +1806,14 @@ export default defineComponent({
1797
1806
  border-radius: 2px;
1798
1807
  color: var(--dl-color-text-darker-buttons);
1799
1808
  }
1809
+ &--text {
1810
+ flex: 1 1 auto;
1811
+ min-width: 0;
1812
+
1813
+ ::v-deep .dl-ellipsis__left {
1814
+ white-space: nowrap;
1815
+ }
1816
+ }
1800
1817
  &--image {
1801
1818
  margin-right: 5px;
1802
1819
  border-radius: 50%;
@@ -290,6 +290,11 @@ export default defineComponent({
290
290
  {
291
291
  suggestion: '@team-design',
292
292
  startIcon: 'icon-dl-users'
293
+ },
294
+ {
295
+ suggestion:
296
+ 'averyveryveryveryveryveryveryverylongtextwithoutanyspaces',
297
+ startIcon: 'icon-dl-users'
293
298
  }
294
299
  ])
295
300