@ianicdev/datatables2 0.3.0 → 0.3.1

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.
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),s={install(e){e.component("DataTable",t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DsLHqINg.cjs")).then(n=>n.index)))}};module.exports=s;
1
+ "use strict";const t=require("vue"),s={install(e){e.component("DataTable",t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DJI9YIqE.cjs")).then(n=>n.index)))}};module.exports=s;
@@ -3,7 +3,7 @@ const o = {
3
3
  install(t) {
4
4
  t.component(
5
5
  "DataTable",
6
- e(() => import("./index-Dq93eCyZ.js").then((a) => a.i))
6
+ e(() => import("./index-C3y-itTW.js").then((a) => a.i))
7
7
  );
8
8
  }
9
9
  };
@@ -47099,7 +47099,7 @@ function(e) {
47099
47099
  */
47100
47100
  function(e) {
47101
47101
  function n() {
47102
- return (qt.canvg ? Promise.resolve(qt.canvg) : import("./index.es-BCzzqMeg.js")).catch(function(t) {
47102
+ return (qt.canvg ? Promise.resolve(qt.canvg) : import("./index.es-I3Z8o-G6.js")).catch(function(t) {
47103
47103
  return Promise.reject(new Error("Could not load canvg: " + t));
47104
47104
  }).then(function(t) {
47105
47105
  return t.default ? t.default : t;
@@ -50097,19 +50097,19 @@ const UI = ["innerHTML"], VI = { key: 2 }, zI = { key: 3 }, KI = ["colspan"], JI
50097
50097
  advancedFilters: s.value,
50098
50098
  hardFilters: a.value
50099
50099
  }), g = async () => {
50100
- const x = d.value.sortBy, L = d.value.search, { data: Y } = m.value, { data: G } = await h({
50100
+ const x = d.value.sortBy, L = d.value.search, { data: Y } = m.value;
50101
+ return (await h({
50101
50102
  page: 1,
50102
50103
  itemsPerPage: -1,
50103
50104
  sortBy: x,
50104
50105
  search: L
50105
- });
50106
- return G.value[Y];
50106
+ }))[Y];
50107
50107
  }, w = async ({ page: x, itemsPerPage: L, sortBy: Y, search: G }) => {
50108
50108
  c.value = !0, A({ page: x, itemsPerPage: L, sortBy: Y, search: G });
50109
50109
  const { data: D, total: N } = m.value, O = await h({ page: x, itemsPerPage: L, sortBy: Y, search: G });
50110
50110
  if (!O) return;
50111
- const { data: j } = O;
50112
- o.value = j.value[D], f.value = j.value[N], c.value = !1;
50111
+ const j = O;
50112
+ o.value = j[D], f.value = j[N], c.value = !1;
50113
50113
  }, v = (x = {}) => {
50114
50114
  if (!d.value) return;
50115
50115
  const L = d.value.page, Y = d.value.itemsPerPage, G = d.value.sortBy, D = d.value.search;