@ianicdev/datatables2 0.11.0 → 0.11.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/{Comparison-C2hZMBq4.js → Comparison-C4t1CoQN.js} +1 -1
- package/dist/{Comparison-tLPSEm-Q.cjs → Comparison-K_C8fK5q.cjs} +1 -1
- package/dist/{Datepicker-BA4mQx6C.cjs → Datepicker-8vMCYK64.cjs} +1 -1
- package/dist/{Datepicker-BO2Ixl4r.js → Datepicker-CvoUCd6e.js} +2 -2
- package/dist/{Options-C7EAVB8f.cjs → Options-CLwvsyYI.cjs} +1 -1
- package/dist/{Options-DrhE_fto.js → Options-DtOz8dqa.js} +5 -5
- package/dist/{RefreshTable-BNy_MWZg.js → RefreshTable-03hYqy0d.js} +2 -2
- package/dist/{RefreshTable-C-AgoC97.cjs → RefreshTable-BDCdK574.cjs} +1 -1
- package/dist/{Search-D_zU2pXl.cjs → Search-BfHfgRqm.cjs} +1 -1
- package/dist/{Search-CdHQz2KW.js → Search-DCvbaw38.js} +2 -2
- package/dist/Table-BdiBnyG7.js +59 -0
- package/dist/Table-hSaWsE5Z.cjs +1 -0
- package/dist/TableServer-DfNCjOUI.cjs +20 -0
- package/dist/{TableServer-D4Q_9dET.js → TableServer-eOtGylb9.js} +415 -402
- package/dist/{cellRender-LGC_k50e.js → cellRender-B7hkYbUV.js} +2 -2
- package/dist/{cellRender-DuBdvYbh.cjs → cellRender-BN5jkrLA.cjs} +1 -1
- package/dist/{dataTables-DV00l1p8.cjs → dataTables-B51qe1LD.cjs} +1 -1
- package/dist/{dataTables-j8j4naMl.js → dataTables-EUusYEBd.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/{index-CXUreMkK.cjs → index-9hGXBnYN.cjs} +1 -1
- package/dist/{index-CU-Eak9-.cjs → index-BSh8Y0C1.cjs} +1 -1
- package/dist/{index-zhSEiNN0.js → index-BTwaqzMN.js} +2 -2
- package/dist/{index-DzyBRRkM.js → index-B_fG3b5A.js} +2 -2
- package/dist/{index-BjbhnehN.js → index-CsgCe_gz.js} +906 -901
- package/dist/{index-BU9rb0Q-.js → index-DG3Vs3j9.js} +2 -2
- package/dist/{index-_cYryjRU.cjs → index-Hcb-nE49.cjs} +1 -1
- package/dist/index-sB-PMcO7.cjs +1 -0
- package/dist/{index.es-CtLP1GTc.js → index.es-D48oZl91.js} +4 -4
- package/dist/{index.es-BCJd8pS0.cjs → index.es-DQaLNvpD.cjs} +1 -1
- package/dist/{jspdf-DyYqWhF9.cjs → jspdf-D8dTvh2d.cjs} +1 -1
- package/dist/{jspdf-3qJBK9tP.js → jspdf-v7nU-ziX.js} +1 -1
- package/dist/{useColumns-CCJ04VF-.cjs → useColumns-DV---ndr.cjs} +1 -1
- package/dist/{useColumns-Dfrb9p8A.js → useColumns-UM_zCt0D.js} +2 -2
- package/dist/{useDownload-DgATsbOV.js → useDownload-CR3A1-nS.js} +1 -1
- package/dist/{useDownload-CL90ZIqP.cjs → useDownload-wLFMGFcn.cjs} +1 -1
- package/dist/{useRefreshTable-Cf0gpIuT.js → useRefreshTable-CRquY8ZU.js} +1 -1
- package/dist/{useRefreshTable-BhEgI00Z.cjs → useRefreshTable-Dg9LI59z.cjs} +1 -1
- package/lib/index.d.ts +26 -0
- package/package.json +7 -7
- package/dist/Table-B2iOe4P0.cjs +0 -1
- package/dist/Table-DHHVRPoA.js +0 -63
- package/dist/TableServer-k8aRa4f5.cjs +0 -20
- package/dist/index-CEe--P_C.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./useDownload-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./useDownload-wLFMGFcn.cjs"),o=require("./dataTables-B51qe1LD.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),F=require("./dataTables-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),F=require("./dataTables-B51qe1LD.cjs"),u=require("./index-sB-PMcO7.cjs"),S={__name:"Selected",props:{modelValue:{},modelModifiers:{}},emits:e.mergeModels(["save"],["update:modelValue"]),setup(h,{emit:b}){const o=e.inject("table_props"),n=e.inject("datatablesPluginOptions"),p=e.useModel(h,"modelValue"),{hardFiltersState:f}=u.useTableState(),{registerHook:m}=u.useDatatablesHooksStore(),l=e.ref([]),s=b,d=e.inject("busEmits"),c=e.computed(()=>F.defu(o.options,n.options));e.watch(l,r=>{const t={};r.forEach(a=>{let i=o.hardFilters?.[a]??null;isNaN(a)&&(i=o.hardFilters.find(y=>y.value===a)),t[a]=i}),p.value=t,d("hardFilters:update",{keys:r,filters:t}),s("save")}),e.onMounted(()=>{l.value=Object.keys(f.value),l.value.length||o.hardFilters.forEach((r,t)=>{r.active&&l.value.push(r.value??t)}),m("hardFilters:activate",_),m("hardFilters:deactivate",v)});const _=r=>{const t=JSON.parse(JSON.stringify(l.value));t.push(r),l.value=t},v=r=>{const t=JSON.parse(JSON.stringify(l.value)),a=t.findIndex(i=>i===r);a!==-1&&(t.splice(a,1),l.value=t)};return(r,t)=>(e.openBlock(),e.createBlock(u.VSheet,null,{default:e.withCtx(()=>[e.createVNode(u.VChipGroup,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(l)?l.value=a:null),"selected-class":`text-${e.unref(c).color}`,color:e.unref(c).color,multiple:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).hardFilters,(a,i)=>(e.openBlock(),e.createBlock(u.VChip,e.mergeProps({key:i,class:"my-0"},{ref_for:!0},a,{density:"comfortable"}),null,16))),128))]),_:1},8,["modelValue","selected-class","color"])]),_:1}))}},k={__name:"index",setup(h){const b=u.useDatatablesStore(),{setData:o}=b,n=e.ref({}),p=e.inject("table_props"),f=e.ref(0),m=()=>{const l=Object.entries(n.value).filter(([,s])=>Array.isArray(s)||typeof s=="string"?s.length>0:s!=null&&s!=="").reduce((s,[d,c])=>(s[d]=c,s),{});o({table_id:p.id,name:"hardFilters",value:{query:l}})};return e.watch(()=>p.hardFilters,()=>{f.value++}),(l,s)=>{const d=S;return e.openBlock(),e.createBlock(d,{key:e.unref(f),modelValue:e.unref(n),"onUpdate:modelValue":s[0]||(s[0]=c=>e.isRef(n)?n.value=c:null),onSave:m},null,8,["modelValue"])}}};exports.default=k;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, createBlock as r, openBlock as o, withCtx as s, createElementBlock as _, Fragment as x, renderList as g, unref as a, mergeProps as m, inject as k, ref as V, isRef as b, createVNode as i } from "vue";
|
|
2
|
-
import { u as w } from "./useDownload-
|
|
3
|
-
import { au as L, av as v, at as h, aL as B } from "./dataTables-
|
|
2
|
+
import { u as w } from "./useDownload-CR3A1-nS.js";
|
|
3
|
+
import { au as L, av as v, at as h, aL as B } from "./dataTables-EUusYEBd.js";
|
|
4
4
|
import { useI18n as y } from "vue-i18n";
|
|
5
5
|
const D = /* @__PURE__ */ u({
|
|
6
6
|
__name: "List",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as c, _ as l } from "./useColumns-
|
|
1
|
+
import { u as c, _ as l } from "./useColumns-UM_zCt0D.js";
|
|
2
2
|
import { defineComponent as m, createElementBlock as o, openBlock as e, createVNode as u, Fragment as i, renderList as _, unref as f, createBlock as d, mergeProps as p } from "vue";
|
|
3
|
-
import { aL as k } from "./dataTables-
|
|
3
|
+
import { aL as k } from "./dataTables-EUusYEBd.js";
|
|
4
4
|
const x = { class: "d-inline-block" }, v = /* @__PURE__ */ m({
|
|
5
5
|
__name: "index",
|
|
6
6
|
setup(B) {
|