@dataloop-ai/components 0.17.3 → 0.17.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.17.3",
3
+ "version": "0.17.5",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -229,6 +229,7 @@ export default defineComponent({
229
229
  const rangeStyles = computed(() => ({
230
230
  '--dl-track-width': 0.25 * parseInt(props.thumbSize) + 'px',
231
231
  '--text-color': getColor(props.textColor, 'dl-color-darker'),
232
+ '--thumb-size': props.thumbSize,
232
233
  '--width': props.width,
233
234
  '--color': getColor(props.color, 'dl-color-secondary'),
234
235
  width: props.width
@@ -281,6 +281,7 @@ export default defineComponent({
281
281
  const rangeStyles = computed(() => ({
282
282
  '--text-color': getColor(props.textColor, 'dl-color-darker'),
283
283
  '--width': props.width,
284
+ '--thumb-size': props.thumbSize,
284
285
  '--color': getColor(props.color, 'dl-color-secondary')
285
286
  }))
286
287
 
@@ -28,6 +28,7 @@
28
28
  :color="color"
29
29
  :readonly="readonly"
30
30
  :disabled="disabled"
31
+ :thumb-size="thumbSize"
31
32
  :snap="snap"
32
33
  :tabindex="tabindex"
33
34
  :name="name"
@@ -82,6 +83,7 @@
82
83
  :step="step"
83
84
  :color="color"
84
85
  :readonly="readonly"
86
+ :thumb-size="thumbSize"
85
87
  :disabled="disabled"
86
88
  :snap="snap"
87
89
  :name="name"
@@ -134,6 +136,10 @@ export default defineComponent({
134
136
  type: Boolean,
135
137
  default: false
136
138
  },
139
+ thumbSize: {
140
+ type: String,
141
+ default: '10px'
142
+ },
137
143
  min: {
138
144
  type: Number,
139
145
  default: 0
@@ -210,6 +216,7 @@ export default defineComponent({
210
216
  return {
211
217
  '--text-color': getColor(this.textColor, 'dl-color-darker'),
212
218
  '--width': this.width,
219
+ '--thumb-size': parseInt(this.thumbSize) / 2 + 'px',
213
220
  '--color': getColor(this.color, 'dl-color-secondary')
214
221
  }
215
222
  }
@@ -70,7 +70,8 @@
70
70
  & .slider-bar-container {
71
71
  display: flex;
72
72
  align-items: center;
73
- width: 100%;
73
+ width: calc(100% - var(--thumb-size));
74
+ align-self: center;
74
75
  }
75
76
 
76
77
  & .text {
@@ -447,7 +447,7 @@
447
447
  <dl-pagination
448
448
  v-if="displayPagination"
449
449
  v-bind="marginalsScope.pagination"
450
- total-items="rows.length"
450
+ :total-items="rows.length"
451
451
  @update:rowsPerPage="
452
452
  (v) => setPagination({ rowsPerPage: v })
453
453
  "