@dataloop-ai/components 0.19.71 → 0.19.73
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
|
@@ -160,6 +160,8 @@
|
|
|
160
160
|
no-focus
|
|
161
161
|
:offset="[0, 3]"
|
|
162
162
|
style="border-radius: 0"
|
|
163
|
+
:style="menuStyle"
|
|
164
|
+
:menu-class="menuClass"
|
|
163
165
|
:disabled="disabled || readonly"
|
|
164
166
|
:arrow-nav-items="options"
|
|
165
167
|
:max-height="dropdownMaxHeight"
|
|
@@ -412,6 +414,14 @@ export default defineComponent({
|
|
|
412
414
|
triggerPercentage: {
|
|
413
415
|
type: Number,
|
|
414
416
|
default: 1
|
|
417
|
+
},
|
|
418
|
+
menuStyle: {
|
|
419
|
+
type: String,
|
|
420
|
+
default: null
|
|
421
|
+
},
|
|
422
|
+
menuClass: {
|
|
423
|
+
type: String,
|
|
424
|
+
default: null
|
|
415
425
|
}
|
|
416
426
|
},
|
|
417
427
|
emits: [
|
|
@@ -1106,6 +1116,7 @@ export default defineComponent({
|
|
|
1106
1116
|
padding: 5px 0;
|
|
1107
1117
|
max-height: var(--dl-select-dropdown-max-height);
|
|
1108
1118
|
overflow: auto;
|
|
1119
|
+
width: fit-content;
|
|
1109
1120
|
}
|
|
1110
1121
|
|
|
1111
1122
|
.expand-icon {
|
|
@@ -75,11 +75,7 @@ export function useTableColumnSelection(
|
|
|
75
75
|
align,
|
|
76
76
|
iconClass: `dl-table__sort-icon dl-table__sort-icon--${align}`,
|
|
77
77
|
thClass:
|
|
78
|
-
alignClass +
|
|
79
|
-
headerClass +
|
|
80
|
-
sortableClass +
|
|
81
|
-
sortOrderClass +
|
|
82
|
-
textTransformClass,
|
|
78
|
+
alignClass + headerClass + sortableClass + sortOrderClass,
|
|
83
79
|
tdStyle: assignTdStyles(col),
|
|
84
80
|
tdClass: assignTdClasses(col, alignClass, textTransformClass)
|
|
85
81
|
}
|
|
@@ -99,6 +99,51 @@
|
|
|
99
99
|
</div>
|
|
100
100
|
</template>
|
|
101
101
|
</dl-select>
|
|
102
|
+
fit content
|
|
103
|
+
<dl-select
|
|
104
|
+
v-model="statusOption"
|
|
105
|
+
width="96px"
|
|
106
|
+
without-borders
|
|
107
|
+
fit-content
|
|
108
|
+
align-right
|
|
109
|
+
:options="[
|
|
110
|
+
{
|
|
111
|
+
label: 'S1',
|
|
112
|
+
value: 1,
|
|
113
|
+
badgeColor: 'var(--dl-color-disabled)'
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: 'S 2',
|
|
117
|
+
value: 2,
|
|
118
|
+
badgeColor: 'var(--dl-color-secondary)'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: 'S3',
|
|
122
|
+
value: 3,
|
|
123
|
+
badgeColor: 'var(--dl-color-positive)'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: 'S4',
|
|
127
|
+
value: 4,
|
|
128
|
+
badgeColor: 'var(--dl-color-warning)'
|
|
129
|
+
}
|
|
130
|
+
]"
|
|
131
|
+
required
|
|
132
|
+
>
|
|
133
|
+
<template #selected="scope">
|
|
134
|
+
<div style="display: flex; align-items: center; gap: 5px">
|
|
135
|
+
<dl-badge :color="scope.opt.badgeColor" />
|
|
136
|
+
{{ scope.opt.label }}
|
|
137
|
+
</div>
|
|
138
|
+
</template>
|
|
139
|
+
<template #option="scope">
|
|
140
|
+
<div style="display: flex; align-items: center; gap: 5px">
|
|
141
|
+
<dl-badge :color="scope.opt.badgeColor" />
|
|
142
|
+
{{ scope.opt.label }}
|
|
143
|
+
</div>
|
|
144
|
+
</template>
|
|
145
|
+
</dl-select>
|
|
146
|
+
|
|
102
147
|
with prepend
|
|
103
148
|
<dl-select
|
|
104
149
|
v-model="tasksFilter"
|