@ianicdev/datatables2 0.8.11 → 0.8.12

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 (49) hide show
  1. package/dist/Columns-9ukAZbwF.cjs +1 -0
  2. package/dist/Columns-BiIuzmZZ.js +28 -0
  3. package/dist/Comparison-BqTSsCLG.js +37 -0
  4. package/dist/Comparison-C6FIMUxe.cjs +1 -0
  5. package/dist/Datepicker-BVJaLzUE.cjs +1 -0
  6. package/dist/Datepicker-DFx2oByi.js +1246 -0
  7. package/dist/Download-C0jtXXJ0.js +164 -0
  8. package/dist/Download-CaNb669s.cjs +1 -0
  9. package/dist/Options-Bi0Fh84a.js +82 -0
  10. package/dist/Options-C6N7gzNo.cjs +1 -0
  11. package/dist/RefreshTable-DkVAsqS-.cjs +1 -0
  12. package/dist/RefreshTable-uBvnLVYW.js +26 -0
  13. package/dist/Search-6OIEj95Z.cjs +1 -0
  14. package/dist/Search-BlL-TqMI.js +72 -0
  15. package/dist/Table-BXmDR-au.js +64 -0
  16. package/dist/Table-CgJuX8RC.cjs +1 -0
  17. package/dist/TableServer-BU69vzbr.cjs +27 -0
  18. package/dist/TableServer-Dz-lY5mC.js +3937 -0
  19. package/dist/cellRender-CCUl5aCk.js +2269 -0
  20. package/dist/cellRender-CQYi-Dxl.cjs +1 -0
  21. package/dist/{dataTables-vb6hbdQB.js → dataTables-C3xrvV6a.js} +1535 -1470
  22. package/dist/dataTables-N06kO-u5.cjs +4 -0
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/datatables2.css +1 -1
  26. package/dist/escapeKeyString-B_mzfoez.js +17 -0
  27. package/dist/escapeKeyString-CQVlwp30.cjs +1 -0
  28. package/dist/exporttocsv-CUWOZ1Z_.js +88 -0
  29. package/dist/exporttocsv-RZvZEhmM.cjs +6 -0
  30. package/dist/filesaver-Deatpm3H.cjs +1 -0
  31. package/dist/filesaver-K4_fCr7v.js +75 -0
  32. package/dist/index-D5UVkV64.cjs +1 -0
  33. package/dist/index-DfHaDUjK.cjs +1 -0
  34. package/dist/index-DgwAqbjp.js +4316 -0
  35. package/dist/index-iDjxmkCZ.js +79 -0
  36. package/dist/{index.es-DRbDgHS7.cjs → index.es-B0GUE7KM.cjs} +6 -6
  37. package/dist/{index.es-JO9irKMX.js → index.es-sKSodxcW.js} +4 -3
  38. package/dist/jspdf-BDkAtFGI.cjs +194 -0
  39. package/dist/jspdf-CzuJJB6C.js +10998 -0
  40. package/dist/printjs-BbgDICDe.cjs +1 -0
  41. package/dist/printjs-kC3Qmb-l.js +689 -0
  42. package/dist/sortablejs-BhPwT7wS.cjs +6 -0
  43. package/dist/sortablejs-DSHM8iDp.js +1260 -0
  44. package/dist/xlsx-BBXALOAs.cjs +128 -0
  45. package/dist/xlsx-vtl6oPEm.js +15887 -0
  46. package/package.json +4 -4
  47. package/dist/dataTables-DzQnNgjr.cjs +0 -4
  48. package/dist/index-CsWSROxT.js +0 -41217
  49. package/dist/index-nr135rbT.cjs +0 -357
@@ -0,0 +1,79 @@
1
+ import { mergeModels as g, inject as _, useModel as x, ref as v, watch as S, onMounted as N, createBlock as b, openBlock as m, withCtx as y, createVNode as O, unref as f, isRef as V, createElementBlock as j, Fragment as D, renderList as E, mergeProps as H } from "vue";
2
+ import { u as J, j as M, k as B, l as C, a as w, e as A } from "./index-DgwAqbjp.js";
3
+ const I = {
4
+ __name: "Selected",
5
+ props: {
6
+ modelValue: {},
7
+ modelModifiers: {}
8
+ },
9
+ emits: /* @__PURE__ */ g(["save"], ["update:modelValue"]),
10
+ setup(F, { emit: h }) {
11
+ const r = _("table_props"), o = x(F, "modelValue"), { hardFiltersState: c } = J(), { registerHook: i } = M(), a = v([]), p = h, t = _("busEmits");
12
+ S(a, (l) => {
13
+ const e = {};
14
+ l.forEach((s) => {
15
+ let n = r.hardFilters?.[s] ?? null;
16
+ isNaN(s) && (n = r.hardFilters.find((k) => k.value === s)), e[s] = n;
17
+ }), o.value = e, t("hardFilters:update", { keys: l, filters: e }), p("save");
18
+ }), N(() => {
19
+ a.value = Object.keys(c.value), a.value.length || r.hardFilters.forEach((l, e) => {
20
+ l.active && a.value.push(l.value ?? e);
21
+ }), i("hardFilters:activate", u), i("hardFilters:deactivate", d);
22
+ });
23
+ const u = (l) => {
24
+ const e = JSON.parse(JSON.stringify(a.value));
25
+ e.push(l), a.value = e;
26
+ }, d = (l) => {
27
+ const e = JSON.parse(JSON.stringify(a.value)), s = e.findIndex((n) => n === l);
28
+ s !== -1 && (e.splice(s, 1), a.value = e);
29
+ };
30
+ return (l, e) => (m(), b(B, null, {
31
+ default: y(() => [
32
+ O(C, {
33
+ modelValue: f(a),
34
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => V(a) ? a.value = s : null),
35
+ "selected-class": "text-primary",
36
+ multiple: ""
37
+ }, {
38
+ default: y(() => [
39
+ (m(!0), j(D, null, E(f(r).hardFilters, (s, n) => (m(), b(w, H({
40
+ key: n,
41
+ class: "my-0"
42
+ }, { ref_for: !0 }, s, { density: "comfortable" }), null, 16))), 128))
43
+ ]),
44
+ _: 1
45
+ }, 8, ["modelValue"])
46
+ ]),
47
+ _: 1
48
+ }));
49
+ }
50
+ }, G = {
51
+ __name: "index",
52
+ setup(F) {
53
+ const h = A(), { setData: r } = h, o = v({}), c = _("table_props"), i = v(0), a = () => {
54
+ const p = Object.entries(o.value).filter(([, t]) => Array.isArray(t) || typeof t == "string" ? t.length > 0 : t != null && t !== "").reduce((t, [u, d]) => (t[u] = d, t), {});
55
+ r({
56
+ table_id: c.id,
57
+ name: "hardFilters",
58
+ value: { query: p }
59
+ });
60
+ };
61
+ return S(
62
+ () => c.hardFilters,
63
+ () => {
64
+ i.value++;
65
+ }
66
+ ), (p, t) => {
67
+ const u = I;
68
+ return m(), b(u, {
69
+ key: f(i),
70
+ modelValue: f(o),
71
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => V(o) ? o.value = d : null),
72
+ onSave: a
73
+ }, null, 8, ["modelValue"]);
74
+ };
75
+ }
76
+ };
77
+ export {
78
+ G as default
79
+ };