tsv2-library 1.0.61-beta.63 → 1.0.61-beta.64

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.
@@ -54669,6 +54669,12 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
54669
54669
  const totalRecords2 = ref();
54670
54670
  const loadingTable = ref(false);
54671
54671
  const prevQueryParams = shallowRef({});
54672
+ const visibleOrDefaultColumns = computed(
54673
+ () => {
54674
+ var _a;
54675
+ return ((_a = visibleColumns.value) == null ? void 0 : _a.length) ? visibleColumns.value : props.columns.filter((col) => col.visible !== false);
54676
+ }
54677
+ );
54672
54678
  const queryParams = computed(() => {
54673
54679
  var _a;
54674
54680
  return {
@@ -54678,7 +54684,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
54678
54684
  limit: props.usePaginator ? tableRows.value : void 0,
54679
54685
  sortOrder: sortOrder2.value,
54680
54686
  sortBy: sortBy.value,
54681
- columns: JSON.stringify(visibleColumns.value.map((col) => col.field)),
54687
+ columns: JSON.stringify(
54688
+ visibleOrDefaultColumns.value.map((col) => col.field)
54689
+ ),
54682
54690
  ...props.filters
54683
54691
  // This will resets the previous filters.
54684
54692
  };