doph-js 0.4.0 → 0.4.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.
package/dist/dophJs.js CHANGED
@@ -7257,11 +7257,9 @@ const lc = {
7257
7257
  },
7258
7258
  emits: ["action", "select", "unselect"],
7259
7259
  setup(n, { emit: t }) {
7260
- const e = n, r = O([]), a = O(e.page), s = O(localStorage.getItem("datagrid-perpage") || `${e.perPage}`), o = O(s.value.toString());
7260
+ const e = n, r = O([]), a = O(e.page), s = O(localStorage.getItem(`datagrid-perpage-${e.id}`) || `${e.perPage}`), o = O(s.value.toString());
7261
7261
  O(!1);
7262
- const l = O(""), i = O({}), c = O({}), f = O(!1);
7263
- O({});
7264
- const h = O(0);
7262
+ const l = O(""), i = O({}), c = O({}), f = O(!1), h = O(0);
7265
7263
  N.mutations.addDataGrid(e.id), N.mutations.setItems(e.id, e.items), Ve(
7266
7264
  () => e.items,
7267
7265
  () => {
@@ -7328,7 +7326,7 @@ const lc = {
7328
7326
  N.getters.getSelected(e.id).includes(r.value[B].id) || (S = !1);
7329
7327
  return S;
7330
7328
  }), T = (S) => {
7331
- a.value = 1, s.value = o.value, localStorage.setItem("datagrid-perpage", o.value), w();
7329
+ a.value = 1, s.value = o.value, localStorage.setItem(`datagrid-perpage-${e.id}`, o.value), w();
7332
7330
  }, L = (S, B) => {
7333
7331
  t("select", { e: S, row: B });
7334
7332
  };