@omniaz/vue-component-library 0.2.19 → 0.2.21

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.
@@ -60561,7 +60561,9 @@ const JEe = /* @__PURE__ */ fn({
60561
60561
  const re = new URLSearchParams({
60562
60562
  page: String(f.value + 1),
60563
60563
  orderByScope: h.value ?? "",
60564
- orderBy: d.value || "created_at",
60564
+ orderBy: d.value ?? "",
60565
+ defaultOrderBy: "created_at",
60566
+ defaultOrderDir: "desc",
60565
60567
  perPage: (xe = r.options) != null && xe.pagination && !((ve = r.options) != null && ve.frontendPagination) ? String(c.value) : "999999",
60566
60568
  orderDir: p.value,
60567
60569
  search: x.value ?? "",
@@ -60643,7 +60645,7 @@ const JEe = /* @__PURE__ */ fn({
60643
60645
  re.ordering && (d.value = re.field, h.value = re.orderByScope ?? null, p.value = p.value === "asc" ? "desc" : "asc", r.ajaxUrl && !((le = r.options) != null && le.frontendPagination) && C()), re.orderingCallBack && re.orderingCallBack();
60644
60646
  }, q = () => {
60645
60647
  var re;
60646
- localStorage.setItem(`${r.ajaxUrl}_perPage`, String(c.value)), (re = r.options) != null && re.frontendPagination || C();
60648
+ localStorage.setItem(`${r.ajaxUrl}_perPage`, String(c.value)), f.value = 0, (re = r.options) != null && re.frontendPagination || C();
60647
60649
  }, Q = (re) => {
60648
60650
  n("orderChanged", re);
60649
60651
  }, te = (re) => {