tsv2-library 1.0.61-alpha.60 → 1.0.61-alpha.61

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.
@@ -51971,16 +51971,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
51971
51971
  const totalRecords2 = ref();
51972
51972
  const loadingTable = ref(false);
51973
51973
  const prevQueryParams = shallowRef({});
51974
- const queryParams = computed(() => ({
51975
- ...props.defaultQueryParams,
51976
- search: props.search,
51977
- page: props.usePaginator ? tablePage.value : void 0,
51978
- limit: props.usePaginator ? tableRows.value : void 0,
51979
- sortOrder: sortOrder2.value,
51980
- sortBy: sortField2.value,
51981
- ...props.filters
51982
- // This will resets the previous filters.
51983
- }));
51974
+ const queryParams = computed(() => {
51975
+ var _a;
51976
+ return {
51977
+ ...props.defaultQueryParams,
51978
+ search: (_a = props.search) == null ? void 0 : _a.trim(),
51979
+ page: props.usePaginator ? tablePage.value : void 0,
51980
+ limit: props.usePaginator ? tableRows.value : void 0,
51981
+ sortOrder: sortOrder2.value,
51982
+ sortBy: sortField2.value,
51983
+ ...props.filters
51984
+ // This will resets the previous filters.
51985
+ };
51986
+ });
51984
51987
  const isArrayIncluded = (smallArray, largeArray) => {
51985
51988
  return smallArray.every((element) => largeArray.includes(element));
51986
51989
  };