@dataloop-ai/components 0.13.3 → 0.13.5
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
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
:class="contentClass"
|
|
79
79
|
:style="contentStyle"
|
|
80
80
|
:cover="cover"
|
|
81
|
-
fit
|
|
81
|
+
:fit="fit"
|
|
82
82
|
:persistent="persistent"
|
|
83
83
|
:auto-close="autoClose"
|
|
84
84
|
:anchor="menuAnchor"
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
:class="contentClass"
|
|
143
143
|
:style="contentStyle"
|
|
144
144
|
:cover="cover"
|
|
145
|
-
fit
|
|
145
|
+
:fit="fit"
|
|
146
146
|
:persistent="persistent"
|
|
147
147
|
:auto-close="autoClose"
|
|
148
148
|
:anchor="menuAnchor"
|
|
@@ -227,7 +227,8 @@ export default defineComponent({
|
|
|
227
227
|
flat: Boolean,
|
|
228
228
|
uppercase: Boolean,
|
|
229
229
|
outlined: Boolean,
|
|
230
|
-
padding: { type: String, default: '5px' }
|
|
230
|
+
padding: { type: String, default: '5px' },
|
|
231
|
+
fit: { type: Boolean, default: true }
|
|
231
232
|
},
|
|
232
233
|
emits: [
|
|
233
234
|
'update:model-value',
|
|
@@ -102,6 +102,15 @@
|
|
|
102
102
|
</dl-tooltip>
|
|
103
103
|
</span>
|
|
104
104
|
</div>
|
|
105
|
+
<div
|
|
106
|
+
v-show="hasAction"
|
|
107
|
+
:class="[
|
|
108
|
+
...adornmentClasses,
|
|
109
|
+
'dl-text-input__adornment-container--pos-right-out'
|
|
110
|
+
]"
|
|
111
|
+
>
|
|
112
|
+
<slot name="action" />
|
|
113
|
+
</div>
|
|
105
114
|
<dl-menu
|
|
106
115
|
v-if="showSuggestItems"
|
|
107
116
|
v-model="isMenuOpen"
|
|
@@ -323,9 +332,9 @@ export default defineComponent({
|
|
|
323
332
|
computed: {
|
|
324
333
|
bottomMessage(): boolean {
|
|
325
334
|
return (
|
|
326
|
-
!!this.infoMessage
|
|
327
|
-
!!this.errorMessage
|
|
328
|
-
!!this.warningMessage
|
|
335
|
+
!!this.infoMessage?.length ||
|
|
336
|
+
!!this.errorMessage?.length ||
|
|
337
|
+
!!this.warningMessage?.length ||
|
|
329
338
|
this.showCounter
|
|
330
339
|
)
|
|
331
340
|
},
|
|
@@ -391,6 +400,9 @@ export default defineComponent({
|
|
|
391
400
|
!this.isSmall
|
|
392
401
|
)
|
|
393
402
|
},
|
|
403
|
+
hasAction(): boolean {
|
|
404
|
+
return !!this.$slots.action && !this.isSmall
|
|
405
|
+
},
|
|
394
406
|
passShowIcon(): string {
|
|
395
407
|
return this.showPass ? 'icon-dl-hide' : 'icon-dl-show'
|
|
396
408
|
},
|
|
@@ -725,7 +737,11 @@ export default defineComponent({
|
|
|
725
737
|
|
|
726
738
|
&--pos-right {
|
|
727
739
|
top: 0;
|
|
728
|
-
right:
|
|
740
|
+
right: 0;
|
|
741
|
+
}
|
|
742
|
+
&--pos-right-out {
|
|
743
|
+
top: 0;
|
|
744
|
+
right: -30px;
|
|
729
745
|
}
|
|
730
746
|
}
|
|
731
747
|
|