quasar-factory-lib 0.0.41 → 0.0.43

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.
@@ -13071,11 +13071,11 @@ const Yp = {
13071
13071
  }
13072
13072
  }, qy = {
13073
13073
  filter(e, t, n) {
13074
- if (e.filterTerms = n.search, n.search) {
13074
+ if (e.store.filterValue !== "") {
13075
13075
  const o = [], r = n.search ? n.search.toLowerCase() : "";
13076
- for (let l = 0; l < t.length; l++)
13077
- this.containsSearchTermInRow(t[l], r) && o.push(t[l]);
13078
- return As.paginationNewTable(e, o);
13076
+ for (let l = 0; l < e.rows.length; l++)
13077
+ this.containsSearchTermInRow(e.rows[l], r) && o.push(e.rows[l]);
13078
+ return e.filteredRows = o, As.paginationNewTable(e, o);
13079
13079
  } else
13080
13080
  return As.paginationNewTable(e, t);
13081
13081
  },
@@ -13105,6 +13105,21 @@ const Yp = {
13105
13105
  const r = Number(t) + Number(o);
13106
13106
  return `height:${window.innerHeight - r}px`;
13107
13107
  }
13108
+ }, Uy = {
13109
+ sortMethod(e, t, n, o = []) {
13110
+ const r = [...e];
13111
+ return t && (o.includes(t) ? this.sortDates(t, n, r) : r.sort((l, a) => {
13112
+ const i = n ? a : l, s = n ? l : a;
13113
+ return i[t] > s[t] ? 1 : i[t] < s[t] ? -1 : 0;
13114
+ })), r;
13115
+ },
13116
+ sortDates(e, t, n) {
13117
+ n.sort(function(o, r) {
13118
+ const l = o[e], a = r[e];
13119
+ let i = t ? a : l, s = t ? l : a;
13120
+ return i = i.split("/").reverse().join("-"), s = s.split("/").reverse().join("-"), i.localeCompare(s);
13121
+ });
13122
+ }
13108
13123
  };
13109
13124
  vd();
13110
13125
  /*!
@@ -16639,7 +16654,7 @@ const zl = Ay({
16639
16654
  globalInjection: !0,
16640
16655
  silentTranslationWarn: !0,
16641
16656
  messages: Qp
16642
- }), Fy = vd(), Uy = {
16657
+ }), Fy = vd(), Hy = {
16643
16658
  install(e) {
16644
16659
  console.log("[Quasar Components] Installing..."), Wo(e, xg), Wo(e, Vg), Wo(e, Hg), Wo(e, kh), e.use(zl), e.use(Fy), zl.global.locale = "en", e.use(yf, {
16645
16660
  plugins: {}
@@ -16647,17 +16662,18 @@ const zl = Ay({
16647
16662
  }), console.log("[Quasar components] Installed");
16648
16663
  }
16649
16664
  };
16650
- function Hy(e) {
16665
+ function zy(e) {
16651
16666
  zl.global.locale = e;
16652
16667
  }
16653
16668
  export {
16654
16669
  Mg as AlertDialog,
16655
16670
  Ug as ConfirmDialog,
16656
16671
  Ig as MyTable,
16657
- Uy as QuasarFactoryLib,
16672
+ Hy as QuasarFactoryLib,
16658
16673
  wh as TaskNavBar,
16659
16674
  qy as filterMethod,
16660
16675
  As as infiniteScroll,
16661
- $y as tableHeight,
16662
- Hy as updatePackageLanguage
16676
+ Uy as qTableSort,
16677
+ $y as setTableHeight,
16678
+ zy as updatePackageLanguage
16663
16679
  };