@ianicdev/datatables2 0.11.7 → 0.12.0

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.
Files changed (41) hide show
  1. package/dist/{Comparison-De27pAUU.cjs → Comparison-Cjz-f6QE.cjs} +1 -1
  2. package/dist/{Comparison-BGS-fuIe.js → Comparison-c7-5FHzt.js} +1 -1
  3. package/dist/{Datepicker-Cw_J535b.js → Datepicker-D8R5O3nA.js} +2 -2
  4. package/dist/{Datepicker-CIuhuD6k.cjs → Datepicker-tYZiV7pL.cjs} +1 -1
  5. package/dist/Options-BqEPdV4P.cjs +1 -0
  6. package/dist/Options-t9XPNKFJ.js +222 -0
  7. package/dist/{RefreshTable-CwKNOxC1.cjs → RefreshTable-BK-a6F4w.cjs} +1 -1
  8. package/dist/{RefreshTable-DJh8kVcF.js → RefreshTable-BMZFOov3.js} +2 -2
  9. package/dist/{Search-C8e4aEIt.js → Search-CcSzJ7EN.js} +19 -19
  10. package/dist/Search-ggJbFRUZ.cjs +1 -0
  11. package/dist/{Table-BJ5tGV-x.cjs → Table-Cd3b9yno.cjs} +1 -1
  12. package/dist/{Table-ubU5wjVY.js → Table-DFgbsnAr.js} +3 -3
  13. package/dist/{TableServer-CDPE93Bi.cjs → TableServer-CkRGzG9m.cjs} +1 -1
  14. package/dist/{TableServer-DuwL1c97.js → TableServer-RGxAza7r.js} +3 -3
  15. package/dist/{cellRender-u5Pfy695.js → cellRender-BrYyjDR0.js} +2 -2
  16. package/dist/{cellRender-Dh2_N7Hn.cjs → cellRender-yRAYLhMZ.cjs} +1 -1
  17. package/dist/{dataTables-Du4VyMxR.js → dataTables-BwYZVAqY.js} +3 -2
  18. package/dist/{dataTables-BxXcbziu.cjs → dataTables-CT4H3tPX.cjs} +1 -1
  19. package/dist/datatables.cjs +1 -1
  20. package/dist/datatables.js +1 -1
  21. package/dist/{index-BeStYA4v.cjs → index-Bascl9Tm.cjs} +1 -1
  22. package/dist/{index-D0oTlDPt.js → index-Bra3YXTV.js} +1 -1
  23. package/dist/{index-R3Q-lW3h.cjs → index-CI5-YbRX.cjs} +1 -1
  24. package/dist/{index-Cfk_p1QT.cjs → index-CLiQ28nF.cjs} +1 -1
  25. package/dist/{index-BebQe8X1.cjs → index-CRNAJrYh.cjs} +1 -1
  26. package/dist/{index-pVnRXL21.js → index-CWXBoVzR.js} +9 -9
  27. package/dist/{index-CTF3ArB5.js → index-hM02sYDS.js} +2 -2
  28. package/dist/{index-Dlb5c56z.js → index-vAe2qE0y.js} +553 -561
  29. package/dist/{useColumns-BpprQUUi.cjs → useColumns-GzXxHCN7.cjs} +1 -1
  30. package/dist/{useColumns-Csi8mDCk.js → useColumns-qXPhS6kv.js} +3 -2
  31. package/dist/useRefreshTable-B3JWG3uB.cjs +1 -0
  32. package/dist/useRefreshTable-C01Fva1U.js +17 -0
  33. package/lib/locale/de.js +9 -0
  34. package/lib/locale/el.js +9 -0
  35. package/lib/locale/en.js +8 -0
  36. package/package.json +5 -5
  37. package/dist/Options-DEe2eGBJ.cjs +0 -1
  38. package/dist/Options-I1PQEYFi.js +0 -108
  39. package/dist/Search-_MWrcP0W.cjs +0 -1
  40. package/dist/useRefreshTable-CYZLF_fz.cjs +0 -1
  41. package/dist/useRefreshTable-DkrhQ57E.js +0 -18
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./useDownload-CELkYaWd.cjs"),o=require("./dataTables-BxXcbziu.cjs"),u=require("vue-i18n"),p=e.defineComponent({__name:"List",setup(s){const{downloadItems:a}=i.useDownload();return(r,t)=>(e.openBlock(),e.createBlock(o.VList,{"bg-color":"surface-light",class:"options-list d-flex flex-column ga-1 pa-1",density:"compact",rounded:"lg",variant:"text",slim:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(c,n)=>(e.openBlock(),e.createBlock(o.VListItem,e.mergeProps({ref_for:!0},c,{key:n,rounded:"lg",link:""}),null,16))),128))]),_:1}))}}),m=e.defineComponent({__name:"index",setup(s){const a=e.inject("datatablesPluginOptions"),{t:r}=u.useI18n(),t=e.ref(!1);return(c,n)=>{const d=p;return e.openBlock(),e.createBlock(o.VMenu,{modelValue:e.unref(t),"onUpdate:modelValue":n[0]||(n[0]=l=>e.isRef(t)?t.value=l:null),"close-on-content-click":!1,location:"bottom center"},{activator:e.withCtx(({props:l})=>[e.createVNode(o.VBtn,e.mergeProps({id:"header-download","prepend-icon":e.unref(a).header.icons.download,text:e.unref(r)("$datatables.download"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize"},l),null,16,["prepend-icon","text"])]),default:e.withCtx(()=>[e.createVNode(d)]),_:1},8,["modelValue"])}}});exports.default=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./useDownload-CELkYaWd.cjs"),o=require("./dataTables-CT4H3tPX.cjs"),u=require("vue-i18n"),p=e.defineComponent({__name:"List",setup(s){const{downloadItems:a}=i.useDownload();return(r,t)=>(e.openBlock(),e.createBlock(o.VList,{"bg-color":"surface-light",class:"options-list d-flex flex-column ga-1 pa-1",density:"compact",rounded:"lg",variant:"text",slim:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(c,n)=>(e.openBlock(),e.createBlock(o.VListItem,e.mergeProps({ref_for:!0},c,{key:n,rounded:"lg",link:""}),null,16))),128))]),_:1}))}}),m=e.defineComponent({__name:"index",setup(s){const a=e.inject("datatablesPluginOptions"),{t:r}=u.useI18n(),t=e.ref(!1);return(c,n)=>{const d=p;return e.openBlock(),e.createBlock(o.VMenu,{modelValue:e.unref(t),"onUpdate:modelValue":n[0]||(n[0]=l=>e.isRef(t)?t.value=l:null),"close-on-content-click":!1,location:"bottom center"},{activator:e.withCtx(({props:l})=>[e.createVNode(o.VBtn,e.mergeProps({id:"header-download","prepend-icon":e.unref(a).header.icons.download,text:e.unref(r)("$datatables.download"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize"},l),null,16,["prepend-icon","text"])]),default:e.withCtx(()=>[e.createVNode(d)]),_:1},8,["modelValue"])}}});exports.default=m;
@@ -1,7 +1,7 @@
1
1
  import { inject as f, useModel as x, ref as _, computed as N, watch as S, onMounted as D, openBlock as b, createBlock as v, withCtx as y, createVNode as E, unref as d, isRef as V, createElementBlock as j, Fragment as H, renderList as J, mergeProps as M, mergeModels as B } from "vue";
2
- import { aO as C } from "./dataTables-Du4VyMxR.js";
3
- import { u as P, l as w, n as A, o as I, b as U, f as $ } from "./index-Dlb5c56z.js";
4
- const q = {
2
+ import { aO as C } from "./dataTables-BwYZVAqY.js";
3
+ import { u as P, o as q, p as w, q as A, b as I, f as U } from "./index-vAe2qE0y.js";
4
+ const $ = {
5
5
  __name: "Selected",
6
6
  props: {
7
7
  modelValue: {},
@@ -9,7 +9,7 @@ const q = {
9
9
  },
10
10
  emits: /* @__PURE__ */ B(["save"], ["update:modelValue"]),
11
11
  setup(F, { emit: h }) {
12
- const r = f("table_props"), o = f("datatablesPluginOptions"), c = x(F, "modelValue"), { hardFiltersState: p } = P(), { registerHook: m } = w(), t = _([]), s = h, u = f("busEmits"), n = N(() => C(r.options, o.options));
12
+ const r = f("table_props"), o = f("datatablesPluginOptions"), c = x(F, "modelValue"), { hardFiltersState: p } = P(), { registerHook: m } = q(), t = _([]), s = h, u = f("busEmits"), n = N(() => C(r.options, o.options));
13
13
  S(t, (l) => {
14
14
  const e = {};
15
15
  l.forEach((a) => {
@@ -28,9 +28,9 @@ const q = {
28
28
  const e = JSON.parse(JSON.stringify(t.value)), a = e.findIndex((i) => i === l);
29
29
  a !== -1 && (e.splice(a, 1), t.value = e);
30
30
  };
31
- return (l, e) => (b(), v(A, null, {
31
+ return (l, e) => (b(), v(w, null, {
32
32
  default: y(() => [
33
- E(I, {
33
+ E(A, {
34
34
  modelValue: d(t),
35
35
  "onUpdate:modelValue": e[0] || (e[0] = (a) => V(t) ? t.value = a : null),
36
36
  "selected-class": `text-${d(n).color}`,
@@ -38,7 +38,7 @@ const q = {
38
38
  multiple: ""
39
39
  }, {
40
40
  default: y(() => [
41
- (b(!0), j(H, null, J(d(r).hardFilters, (a, i) => (b(), v(U, M({
41
+ (b(!0), j(H, null, J(d(r).hardFilters, (a, i) => (b(), v(I, M({
42
42
  key: i,
43
43
  class: "my-0"
44
44
  }, { ref_for: !0 }, a, { density: "comfortable" }), null, 16))), 128))
@@ -52,7 +52,7 @@ const q = {
52
52
  }, R = {
53
53
  __name: "index",
54
54
  setup(F) {
55
- const h = $(), { setData: r } = h, o = _({}), c = f("table_props"), p = _(0), m = () => {
55
+ const h = U(), { setData: r } = h, o = _({}), c = f("table_props"), p = _(0), m = () => {
56
56
  const t = Object.entries(o.value).filter(([, s]) => Array.isArray(s) || typeof s == "string" ? s.length > 0 : s != null && s !== "").reduce((s, [u, n]) => (s[u] = n, s), {});
57
57
  r({
58
58
  table_id: c.id,
@@ -66,7 +66,7 @@ const q = {
66
66
  p.value++;
67
67
  }
68
68
  ), (t, s) => {
69
- const u = q;
69
+ const u = $;
70
70
  return b(), v(u, {
71
71
  key: d(p),
72
72
  modelValue: d(o),
@@ -1,6 +1,6 @@
1
- import { u as c, _ as l } from "./useColumns-Csi8mDCk.js";
1
+ import { u as c, _ as l } from "./useColumns-qXPhS6kv.js";
2
2
  import { defineComponent as m, openBlock as e, createElementBlock as o, Fragment as u, renderList as i, unref as _, createBlock as f, mergeProps as d, createVNode as p } from "vue";
3
- import { aL as k } from "./dataTables-Du4VyMxR.js";
3
+ import { aL as k } from "./dataTables-BwYZVAqY.js";
4
4
  const x = { class: "d-inline-block" }, v = /* @__PURE__ */ m({
5
5
  __name: "index",
6
6
  setup(B) {