@dataloop-ai/components 0.20.129 → 0.20.131

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.129",
3
+ "version": "0.20.131",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -23,7 +23,7 @@
23
23
  "check-only": "if grep -E -H -r --exclude-dir=.git --exclude-dir=node_modules --exclude=*.json --exclude=*.yml '^(describe|it).only' .; then echo 'Found only in test files' && exit 1; fi"
24
24
  },
25
25
  "dependencies": {
26
- "@dataloop-ai/icons": "^3.1.22",
26
+ "@dataloop-ai/icons": "^3.1.23",
27
27
  "@types/flat": "^5.0.2",
28
28
  "@types/lodash": "^4.14.184",
29
29
  "@types/sortablejs": "^1.15.7",
@@ -192,6 +192,10 @@ export default defineComponent({
192
192
  * Overwrite default background color on hover
193
193
  */
194
194
  hoverBgColor: { type: String, default: null },
195
+ /**
196
+ * Overwrite default background color on mouse press
197
+ */
198
+ pressedBgColor: { type: String, default: null, required: false },
195
199
  /**
196
200
  * Overwrite default border color on hover
197
201
  */
@@ -404,10 +408,13 @@ export default defineComponent({
404
408
  shaded: this.shaded,
405
409
  outlined: this.shaded
406
410
  }),
407
- '--dl-button-bg-pressed': setBgOnPressed({
408
- shaded: this.shaded,
409
- outlined: this.outlined
410
- }),
411
+ '--dl-button-bg-pressed':
412
+ this.pressedBgColor ??
413
+ setBgOnPressed({
414
+ shaded: this.shaded,
415
+ outlined: this.outlined
416
+ }),
417
+
411
418
  '--dl-button-border-pressed': setBorderOnPressed({
412
419
  shaded: this.shaded,
413
420
  outlined: this.outlined
@@ -16,7 +16,16 @@
16
16
  isDragIconVisible || isRowHighlighted ? '1' : '0'
17
17
  }`"
18
18
  >
19
- <dl-icon class="draggable-icon" icon="icon-dl-drag" size="12px" />
19
+ <dl-icon
20
+ class="draggable-icon"
21
+ icon="icon-dl-drag"
22
+ size="12px"
23
+ :color="
24
+ isDragIconHovered ? 'dl-color-darker' : 'dl-color-lighter'
25
+ "
26
+ @mouseenter="isDragIconHovered = true"
27
+ @mouseleave="isDragIconHovered = false"
28
+ />
20
29
  </td>
21
30
  <td v-if="hasSelectionMode" class="dl-table--col-auto-width">
22
31
  <slot name="body-selection" v-bind="bindBodySelection">
@@ -233,7 +242,7 @@ export default defineComponent({
233
242
  const childrenCount = ref(0)
234
243
  const { row } = toRefs(props)
235
244
  const isDragIconVisible = ref(false)
236
-
245
+ const isDragIconHovered = ref(false)
237
246
  const vm = getCurrentInstance()
238
247
 
239
248
  const isCheckboxDisabled = computed(() => {
@@ -391,6 +400,7 @@ export default defineComponent({
391
400
  visibleChildren,
392
401
  childrenCount,
393
402
  isDragIconVisible,
403
+ isDragIconHovered,
394
404
  getRowKey,
395
405
  emitRowClick,
396
406
  onTrDoubleClick,