@dataloop-ai/components 0.16.22 → 0.16.24
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
|
@@ -314,11 +314,6 @@ export default defineComponent({
|
|
|
314
314
|
--dl-color-info: var(--dl-color-alert-info);
|
|
315
315
|
--dl-color-info-background: var(--dl-color-alert-info-background);
|
|
316
316
|
--dl-color-darker: var(--dl-color-alert-text);
|
|
317
|
-
|
|
318
|
-
.alert {
|
|
319
|
-
.close-btn {
|
|
320
|
-
align-items: center !important;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
317
|
+
--dl-alert-align-button: center;
|
|
323
318
|
}
|
|
324
319
|
</style>
|
|
@@ -67,11 +67,13 @@
|
|
|
67
67
|
</span>
|
|
68
68
|
</label>
|
|
69
69
|
<div
|
|
70
|
-
v-if="
|
|
70
|
+
v-if="hasSubLabel"
|
|
71
71
|
:style="subLabelStyle"
|
|
72
72
|
class="sub-text"
|
|
73
73
|
>
|
|
74
|
-
<
|
|
74
|
+
<slot name="sub-label">
|
|
75
|
+
<span>{{ subLabel }}</span>
|
|
76
|
+
</slot>
|
|
75
77
|
</div>
|
|
76
78
|
</div>
|
|
77
79
|
</template>
|
|
@@ -96,7 +98,7 @@ export default defineComponent({
|
|
|
96
98
|
id: { type: [String, Number], default: null },
|
|
97
99
|
modelValue: { type: ValueTypes, required: false, default: null },
|
|
98
100
|
label: { default: null, type: String },
|
|
99
|
-
subLabel: { type: String, default:
|
|
101
|
+
subLabel: { type: String, default: null },
|
|
100
102
|
toggleIndeterminate: { type: Boolean, default: false },
|
|
101
103
|
indeterminateValue: { type: ValueTypes, default: null },
|
|
102
104
|
value: { type: ValueTypes, default: null },
|
|
@@ -159,6 +161,9 @@ export default defineComponent({
|
|
|
159
161
|
hasLabel(): boolean {
|
|
160
162
|
return !!this.label || !!this.$slots.default
|
|
161
163
|
},
|
|
164
|
+
hasSubLabel(): boolean {
|
|
165
|
+
return !!this.subLabel || !!this.$slots['sub-label']
|
|
166
|
+
},
|
|
162
167
|
subLabelStyle(): Record<string, string> {
|
|
163
168
|
return {
|
|
164
169
|
'font-size': this.subLabelSize
|
|
@@ -85,7 +85,7 @@ export default defineComponent({
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
inlineStyles(): string {
|
|
88
|
-
return this.inline ? 'display: inline' : ''
|
|
88
|
+
return this.inline ? 'display: inline' : 'display: flex;'
|
|
89
89
|
},
|
|
90
90
|
// needed to allow external source of icons that do not use class based
|
|
91
91
|
externalIcon(): boolean {
|