@ianicdev/datatables2 0.8.12 → 0.8.13
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/Columns-DeJNOLCM.cjs +1 -0
- package/dist/Columns-GBEpMZ5m.js +28 -0
- package/dist/{Comparison-C6FIMUxe.cjs → Comparison-gMTr9mHU.cjs} +1 -1
- package/dist/{Comparison-BqTSsCLG.js → Comparison-v57GhUTZ.js} +1 -1
- package/dist/{Datepicker-DFx2oByi.js → Datepicker-Bv4of4w1.js} +2 -2
- package/dist/{Datepicker-BVJaLzUE.cjs → Datepicker-DGQbQ2jD.cjs} +1 -1
- package/dist/{Download-C0jtXXJ0.js → Download-B4zf7Fob.js} +74 -74
- package/dist/{Download-CaNb669s.cjs → Download-DFSeQ_uL.cjs} +1 -1
- package/dist/Options-C6gv21MY.js +82 -0
- package/dist/Options-XytiOb4O.cjs +1 -0
- package/dist/RefreshTable-BO7uzuWX.js +26 -0
- package/dist/RefreshTable-C-5AmxAL.cjs +1 -0
- package/dist/{Search-BlL-TqMI.js → Search-ByPG22T-.js} +24 -24
- package/dist/Search-DIUl3vxm.cjs +1 -0
- package/dist/{Table-BXmDR-au.js → Table-0QV9000m.js} +2 -2
- package/dist/{Table-CgJuX8RC.cjs → Table-xPzhAgpA.cjs} +1 -1
- package/dist/{TableServer-Dz-lY5mC.js → TableServer-ByC-EgB4.js} +3 -3
- package/dist/{TableServer-BU69vzbr.cjs → TableServer-i6_C-Qd2.cjs} +1 -1
- package/dist/{cellRender-CCUl5aCk.js → cellRender-L5NaGvf8.js} +2 -2
- package/dist/{cellRender-CQYi-Dxl.cjs → cellRender-Ru_IZsKe.cjs} +1 -1
- package/dist/{dataTables-N06kO-u5.cjs → dataTables-DP-djHBE.cjs} +1 -1
- package/dist/{dataTables-C3xrvV6a.js → dataTables-qd_2hmGP.js} +393 -381
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-DfHaDUjK.cjs → index-BeWDgF_v.cjs} +1 -1
- package/dist/{index-D5UVkV64.cjs → index-CIkwH8Kr.cjs} +1 -1
- package/dist/{index-iDjxmkCZ.js → index-Drz0TALq.js} +1 -1
- package/dist/{index-DgwAqbjp.js → index-Dt2Z193z.js} +617 -617
- package/package.json +1 -1
- package/dist/Columns-9ukAZbwF.cjs +0 -1
- package/dist/Columns-BiIuzmZZ.js +0 -28
- package/dist/Options-Bi0Fh84a.js +0 -82
- package/dist/Options-C6N7gzNo.cjs +0 -1
- package/dist/RefreshTable-DkVAsqS-.cjs +0 -1
- package/dist/RefreshTable-uBvnLVYW.js +0 -26
- package/dist/Search-6OIEj95Z.cjs +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-i18n"),c=require("./dataTables-N06kO-u5.cjs"),r={__name:"Columns",props:{componentRefs:{type:Object,default:()=>({})}},setup(t){const{t:n}=o.useI18n();return(a,l)=>(e.openBlock(),e.createBlock(c.VBtn,{"prepend-icon":"mdi-view-column-outline",text:e.unref(n)("$datatables.columns"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize",onClick:t.componentRefs.columns?.openDialog},null,8,["text","onClick"]))}};exports.default=r;
|
package/dist/Columns-BiIuzmZZ.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createBlock as o, openBlock as n, unref as c } from "vue";
|
|
2
|
-
import { useI18n as a } from "vue-i18n";
|
|
3
|
-
import { a9 as r } from "./dataTables-C3xrvV6a.js";
|
|
4
|
-
const u = {
|
|
5
|
-
__name: "Columns",
|
|
6
|
-
props: {
|
|
7
|
-
componentRefs: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default: () => ({})
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
setup(t) {
|
|
13
|
-
const { t: e } = a();
|
|
14
|
-
return (l, s) => (n(), o(r, {
|
|
15
|
-
"prepend-icon": "mdi-view-column-outline",
|
|
16
|
-
text: c(e)("$datatables.columns"),
|
|
17
|
-
variant: "text",
|
|
18
|
-
density: "comfortable",
|
|
19
|
-
color: "dark",
|
|
20
|
-
stacked: "",
|
|
21
|
-
class: "text-capitalize",
|
|
22
|
-
onClick: t.componentRefs.columns?.openDialog
|
|
23
|
-
}, null, 8, ["text", "onClick"]));
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
u as default
|
|
28
|
-
};
|
package/dist/Options-Bi0Fh84a.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { inject as i, computed as v, ref as x, createBlock as f, openBlock as c, unref as b, isRef as y, withCtx as u, createVNode as g, createElementBlock as _, Fragment as V, renderList as w, mergeProps as k } from "vue";
|
|
2
|
-
import { useI18n as B } from "vue-i18n";
|
|
3
|
-
import { g as E, r as P } from "./printjs-kC3Qmb-l.js";
|
|
4
|
-
import { e as m, g as I } from "./escapeKeyString-B_mzfoez.js";
|
|
5
|
-
import { aD as j, ab as C, ac as F, a9 as L } from "./dataTables-C3xrvV6a.js";
|
|
6
|
-
var M = P();
|
|
7
|
-
const R = /* @__PURE__ */ E(M);
|
|
8
|
-
function T() {
|
|
9
|
-
const d = i("table_props"), p = i("tableRef"), a = i("downloadModal"), l = v(() => d.headers.filter((r) => r?.printable !== !1));
|
|
10
|
-
return { printTable: async () => {
|
|
11
|
-
a.value = !0;
|
|
12
|
-
const r = await p.value.getItemsForPrint(), s = [];
|
|
13
|
-
r.forEach((e) => {
|
|
14
|
-
let t = {};
|
|
15
|
-
l.value.forEach((o) => {
|
|
16
|
-
o.value ? t[m(o.key)] = o.value(e) : t[m(o.key)] = I(e, o.key) ?? "";
|
|
17
|
-
}), s.push(t);
|
|
18
|
-
}), R({
|
|
19
|
-
printable: s,
|
|
20
|
-
type: "json",
|
|
21
|
-
properties: l.value.map((e) => ({
|
|
22
|
-
field: m(e.key),
|
|
23
|
-
displayName: e.title
|
|
24
|
-
}))
|
|
25
|
-
}), a.value = !1;
|
|
26
|
-
} };
|
|
27
|
-
}
|
|
28
|
-
const q = {
|
|
29
|
-
__name: "Options",
|
|
30
|
-
setup(d) {
|
|
31
|
-
const { printTable: p } = T(), a = i("table_props"), { t: l } = B(), n = x(!1), r = v(() => [
|
|
32
|
-
{
|
|
33
|
-
title: l("$datatables.print"),
|
|
34
|
-
onClick: p,
|
|
35
|
-
prependIcon: "mdi-printer",
|
|
36
|
-
...a.options.header?.export?.buttons
|
|
37
|
-
},
|
|
38
|
-
...a.options?.globalButtons ?? []
|
|
39
|
-
]);
|
|
40
|
-
return (s, e) => (c(), f(j, {
|
|
41
|
-
modelValue: b(n),
|
|
42
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => y(n) ? n.value = t : null),
|
|
43
|
-
"close-on-content-click": !1,
|
|
44
|
-
location: "bottom end"
|
|
45
|
-
}, {
|
|
46
|
-
activator: u(({ props: t }) => [
|
|
47
|
-
g(L, k({
|
|
48
|
-
"prepend-icon": "mdi-dots-vertical",
|
|
49
|
-
text: s.$t("$datatables.more"),
|
|
50
|
-
variant: "text",
|
|
51
|
-
density: "comfortable",
|
|
52
|
-
color: "dark",
|
|
53
|
-
stacked: "",
|
|
54
|
-
class: "text-capitalize"
|
|
55
|
-
}, t), null, 16, ["text"])
|
|
56
|
-
]),
|
|
57
|
-
default: u(() => [
|
|
58
|
-
g(C, {
|
|
59
|
-
"bg-color": "surface-light",
|
|
60
|
-
class: "options-list d-flex flex-column ga-1 pa-1",
|
|
61
|
-
density: "compact",
|
|
62
|
-
rounded: "lg",
|
|
63
|
-
variant: "text",
|
|
64
|
-
slim: ""
|
|
65
|
-
}, {
|
|
66
|
-
default: u(() => [
|
|
67
|
-
(c(!0), _(V, null, w(b(r), (t, o) => (c(), f(F, k({ ref_for: !0 }, t, {
|
|
68
|
-
key: o,
|
|
69
|
-
rounded: "lg",
|
|
70
|
-
link: ""
|
|
71
|
-
}), null, 16))), 128))
|
|
72
|
-
]),
|
|
73
|
-
_: 1
|
|
74
|
-
})
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["modelValue"]));
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
q as default
|
|
82
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-i18n"),f=require("./printjs-BbgDICDe.cjs"),c=require("./escapeKeyString-CQVlwp30.cjs"),u=require("./dataTables-N06kO-u5.cjs");var b=f.requirePrint();const g=f.getDefaultExportFromCjs(b);function y(){const d=e.inject("table_props"),p=e.inject("tableRef"),r=e.inject("downloadModal"),a=e.computed(()=>d.headers.filter(l=>l?.printable!==!1));return{printTable:async()=>{r.value=!0;const l=await p.value.getItemsForPrint(),i=[];l.forEach(n=>{let t={};a.value.forEach(o=>{o.value?t[c.escapeKeyString(o.key)]=o.value(n):t[c.escapeKeyString(o.key)]=c.getValueByStringPath(n,o.key)??""}),i.push(t)}),g({printable:i,type:"json",properties:a.value.map(n=>({field:c.escapeKeyString(n.key),displayName:n.title}))}),r.value=!1}}}const k={__name:"Options",setup(d){const{printTable:p}=y(),r=e.inject("table_props"),{t:a}=m.useI18n(),s=e.ref(!1),l=e.computed(()=>[{title:a("$datatables.print"),onClick:p,prependIcon:"mdi-printer",...r.options.header?.export?.buttons},...r.options?.globalButtons??[]]);return(i,n)=>(e.openBlock(),e.createBlock(u.VMenu,{modelValue:e.unref(s),"onUpdate:modelValue":n[0]||(n[0]=t=>e.isRef(s)?s.value=t:null),"close-on-content-click":!1,location:"bottom end"},{activator:e.withCtx(({props:t})=>[e.createVNode(u.VBtn,e.mergeProps({"prepend-icon":"mdi-dots-vertical",text:i.$t("$datatables.more"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize"},t),null,16,["text"])]),default:e.withCtx(()=>[e.createVNode(u.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(l),(t,o)=>(e.openBlock(),e.createBlock(u.VListItem,e.mergeProps({ref_for:!0},t,{key:o,rounded:"lg",link:""}),null,16))),128))]),_:1})]),_:1},8,["modelValue"]))}};exports.default=k;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-D5UVkV64.cjs"),i=require("vue-i18n"),l=require("./dataTables-N06kO-u5.cjs"),u={__name:"RefreshTable",setup(d){const t=e.inject("busEmits"),s=e.inject("table_props"),{deleteDataStorage:a}=o.useDatastate(s),{t:r}=i.useI18n(),n=e.ref(!1),c=()=>{a(),t("refetchData")};return(b,f)=>(e.openBlock(),e.createBlock(l.VBtn,{disabled:e.unref(n),"prepend-icon":"mdi-refresh",text:e.unref(r)("$datatables.refresh"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize",onClick:c},null,8,["disabled","text"]))}};exports.default=u;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { inject as t, ref as i, createBlock as l, openBlock as p, unref as e } from "vue";
|
|
2
|
-
import { i as f } from "./index-DgwAqbjp.js";
|
|
3
|
-
import { useI18n as m } from "vue-i18n";
|
|
4
|
-
import { a9 as d } from "./dataTables-C3xrvV6a.js";
|
|
5
|
-
const D = {
|
|
6
|
-
__name: "RefreshTable",
|
|
7
|
-
setup(u) {
|
|
8
|
-
const a = t("busEmits"), s = t("table_props"), { deleteDataStorage: o } = f(s), { t: r } = m(), c = i(!1), n = () => {
|
|
9
|
-
o(), a("refetchData");
|
|
10
|
-
};
|
|
11
|
-
return (_, b) => (p(), l(d, {
|
|
12
|
-
disabled: e(c),
|
|
13
|
-
"prepend-icon": "mdi-refresh",
|
|
14
|
-
text: e(r)("$datatables.refresh"),
|
|
15
|
-
variant: "text",
|
|
16
|
-
density: "comfortable",
|
|
17
|
-
color: "dark",
|
|
18
|
-
stacked: "",
|
|
19
|
-
class: "text-capitalize",
|
|
20
|
-
onClick: n
|
|
21
|
-
}, null, 8, ["disabled", "text"]));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
D as default
|
|
26
|
-
};
|
package/dist/Search-6OIEj95Z.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D5UVkV64.cjs"),p=require("@vueuse/core"),u=require("./dataTables-N06kO-u5.cjs"),b={__name:"Search",setup(h){const i=r.useDatatablesStore(),{searchState:c}=r.useTableState(),{setData:d}=i,m=e.inject("table_props"),a=e.ref(null),o=e.ref(!1),s=e.useTemplateRef("searchField"),f=e.computed(()=>c.value);return p.watchDebounced(a,t=>{d({table_id:m.id,name:"search",value:{query:t}})},{debounce:1e3,maxWait:5e3}),e.watch(o,t=>{t&&setTimeout(()=>{s.value?.focus()},250)}),e.onMounted(()=>{a.value=c.value}),(t,n)=>(e.openBlock(),e.createBlock(u.VMenu,{modelValue:e.unref(o),"onUpdate:modelValue":n[1]||(n[1]=l=>e.isRef(o)?o.value=l:null),"close-on-content-click":!1,location:"bottom center"},{activator:e.withCtx(({props:l})=>[e.createVNode(u.VBtn,e.mergeProps({"prepend-icon":"mdi-magnify",text:t.$t("$datatables.search"),variant:"text",density:"comfortable",color:e.unref(f)?"primary":"dark",stacked:"",class:"text-capitalize"},l),null,16,["text","color"])]),default:e.withCtx(()=>[e.createVNode(r.VCard,{"min-width":"300"},{default:e.withCtx(()=>[e.createVNode(r.VCardText,null,{default:e.withCtx(()=>[e.createVNode(r.VTextField,{ref_key:"searchField",ref:s,modelValue:e.unref(a),"onUpdate:modelValue":n[0]||(n[0]=l=>e.isRef(a)?a.value=l:null),density:"comfortable",label:t.$t("$datatables.search"),variant:"outlined",clearable:"","hide-details":"","prepend-inner-icon":"mdi-magnify"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}};exports.default=b;
|