@dataloop-ai/components 0.19.125 → 0.19.127

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.19.125",
3
+ "version": "0.19.127",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -134,7 +134,7 @@ export default defineComponent({
134
134
  },
135
135
  itemsName: {
136
136
  type: String,
137
- default: null
137
+ default: 'rows'
138
138
  },
139
139
  withQuickNavigation: Boolean,
140
140
  withRowsPerPage: Boolean,
@@ -101,7 +101,7 @@
101
101
  :filter-term="filterTerm"
102
102
  :fit-content="fitContent"
103
103
  @update:model-value="handleCheckboxUpdate"
104
- @selected="handleSingleSelect"
104
+ @selected="handleSingleSelect($event, true)"
105
105
  @deselected="handleSingleDeselect"
106
106
  @depth-change="$emit('depth-change')"
107
107
  >
@@ -273,9 +273,11 @@ export default defineComponent({
273
273
  }
274
274
  return flattened
275
275
  },
276
- handleSingleSelect(value?: any) {
276
+ handleSingleSelect(value?: any, skip?: boolean) {
277
277
  this.$emit('selected', value ?? this.value)
278
-
278
+ if (skip) {
279
+ return
280
+ }
279
281
  if (this.multiselect && this.selectChildren) {
280
282
  const hasChildren = !!(
281
283
  this.getOptionByValue(value ?? this.value) as DlSelectOption
@@ -300,9 +302,11 @@ export default defineComponent({
300
302
  }
301
303
  }
302
304
  },
303
- handleSingleDeselect(value?: any) {
305
+ handleSingleDeselect(value?: any, skip?: boolean) {
304
306
  this.$emit('deselected', value ?? this.value)
305
-
307
+ if (skip) {
308
+ return
309
+ }
306
310
  if (this.multiselect && this.selectChildren) {
307
311
  const hasChildren = !!(
308
312
  this.getOptionByValue(value ?? this.value) as DlSelectOption
@@ -706,7 +706,7 @@ const columns = [
706
706
  },
707
707
  {
708
708
  name: 'calories',
709
- align: 'center',
709
+ align: 'right',
710
710
  label: 'Calories',
711
711
  field: 'calories',
712
712
  sortable: true,