@dataloop-ai/components 0.18.97 → 0.18.99

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.18.97",
3
+ "version": "0.18.99",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -40,14 +40,14 @@ export function useTableColumnSelection(
40
40
 
41
41
  const computedCols = computed(() => {
42
42
  const { sortBy, descending } = computedPagination.value
43
-
44
- const cols = visibleColumnsState?.value
45
- ? colList.value.filter(
46
- (col) =>
47
- col.required === true ||
48
- visibleColumnsState.value.includes(col.name) === true
49
- )
50
- : colList.value
43
+ const cols =
44
+ visibleColumnsState?.value && visibleColumnsState?.value?.length
45
+ ? colList.value.filter(
46
+ (col) =>
47
+ col.required === true ||
48
+ visibleColumnsState.value.includes(col.name) === true
49
+ )
50
+ : colList.value
51
51
 
52
52
  const updatedCols = cols.map((col) => {
53
53
  const align = col.align || 'right'
@@ -283,7 +283,7 @@ export default defineComponent({
283
283
  rowsArr = tableRows.value
284
284
  ) => {
285
285
  (rowsArr as DlTableRow[]).some((o) => {
286
- if (o[getRowKey.value as unknown as string] === name) {
286
+ if (getRowKey.value(o) === name) {
287
287
  if (isVue2) {
288
288
  set(o, 'expanded', isExpanded)
289
289
  } else {
@@ -127,7 +127,6 @@
127
127
  @selectedItems="selectedItems"
128
128
  >
129
129
  <template #body-cell-calories="prop">
130
- {{ log(prop) }}
131
130
  <span style="color: green; margin-right: 10px">
132
131
  calories: {{ prop.row.calories }}
133
132
  </span>