@ianicdev/datatables2 0.8.13 → 0.8.14

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 (30) hide show
  1. package/dist/{Columns-GBEpMZ5m.js → Columns-CC4nA_Ct.js} +1 -1
  2. package/dist/{Columns-DeJNOLCM.cjs → Columns-DcGC-80C.cjs} +1 -1
  3. package/dist/{Comparison-v57GhUTZ.js → Comparison-C01AKfgw.js} +1 -1
  4. package/dist/{Comparison-gMTr9mHU.cjs → Comparison-Dce7ScjC.cjs} +1 -1
  5. package/dist/{Datepicker-DGQbQ2jD.cjs → Datepicker-DxBdrdTB.cjs} +1 -1
  6. package/dist/{Datepicker-Bv4of4w1.js → Datepicker-mPcniC1A.js} +2 -2
  7. package/dist/{Download-B4zf7Fob.js → Download-BDnoqp1M.js} +1 -1
  8. package/dist/{Download-DFSeQ_uL.cjs → Download-CPzJn-2w.cjs} +1 -1
  9. package/dist/Options-BkF79lwm.cjs +1 -0
  10. package/dist/{Options-C6gv21MY.js → Options-CaFgL3JX.js} +15 -15
  11. package/dist/{RefreshTable-BO7uzuWX.js → RefreshTable-BzqRXqsa.js} +2 -2
  12. package/dist/{RefreshTable-C-5AmxAL.cjs → RefreshTable-y95tbLjN.cjs} +1 -1
  13. package/dist/{Search-ByPG22T-.js → Search-Dc5sTYD8.js} +2 -2
  14. package/dist/{Search-DIUl3vxm.cjs → Search-Deh-nYFV.cjs} +1 -1
  15. package/dist/{Table-0QV9000m.js → Table-Ck19343m.js} +2 -2
  16. package/dist/{Table-xPzhAgpA.cjs → Table-mMCKTOcZ.cjs} +1 -1
  17. package/dist/{TableServer-ByC-EgB4.js → TableServer-BSL5gUMK.js} +3 -3
  18. package/dist/{TableServer-i6_C-Qd2.cjs → TableServer-BgXf9koC.cjs} +1 -1
  19. package/dist/{cellRender-Ru_IZsKe.cjs → cellRender-134wtDl3.cjs} +1 -1
  20. package/dist/{cellRender-L5NaGvf8.js → cellRender-VUoXYbjo.js} +2 -2
  21. package/dist/{dataTables-qd_2hmGP.js → dataTables-Cqxnh1k5.js} +3 -2
  22. package/dist/{dataTables-DP-djHBE.cjs → dataTables-DpKVZNst.cjs} +1 -1
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/{index-CIkwH8Kr.cjs → index-B1GllOYW.cjs} +1 -1
  26. package/dist/{index-BeWDgF_v.cjs → index-BN_4tyjK.cjs} +1 -1
  27. package/dist/{index-Dt2Z193z.js → index-BSg6ffz_.js} +11 -11
  28. package/dist/{index-Drz0TALq.js → index-DKGM8L7F.js} +1 -1
  29. package/package.json +1 -1
  30. package/dist/Options-XytiOb4O.cjs +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ianicdev/datatables2",
3
- "version": "0.8.13",
3
+ "version": "0.8.14",
4
4
  "type": "module",
5
5
  "types": "./lib/index.d.ts",
6
6
  "publishConfig": {
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-i18n"),f=require("./printjs-BbgDICDe.cjs"),c=require("./escapeKeyString-CQVlwp30.cjs"),p=require("./dataTables-DP-djHBE.cjs");var g=f.requirePrint();const y=f.getDefaultExportFromCjs(g);function k(){const u=e.inject("table_props"),l=e.inject("tableRef"),a=e.inject("downloadModal"),s=e.computed(()=>u.headers.filter(n=>n?.printable!==!1));return{printTable:async()=>{a.value=!0;const n=await l.value.getItemsForPrint(),i=[];n.forEach(o=>{let r={};s.value.forEach(t=>{t.value?r[c.escapeKeyString(t.key)]=t.value(o):r[c.escapeKeyString(t.key)]=c.getValueByStringPath(o,t.key)??""}),i.push(r)}),y({printable:i,type:"json",properties:s.value.map(o=>({field:c.escapeKeyString(o.key),displayName:o.title}))}),a.value=!1}}}const v={__name:"Options",setup(u){const l=e.inject("table_props"),a=e.inject("pluginOptions"),{t:s}=b.useI18n(),{printTable:d}=k(),n=e.ref(!1),i=e.computed(()=>[{title:s("$datatables.print"),onClick:d,prependIcon:"mdi-printer",...l.options.header?.export?.buttons},...l.options?.globalButtons??[]]);return(o,r)=>(e.openBlock(),e.createBlock(p.VMenu,{modelValue:e.unref(n),"onUpdate:modelValue":r[0]||(r[0]=t=>e.isRef(n)?n.value=t:null),"close-on-content-click":!1,location:"bottom end"},{activator:e.withCtx(({props:t})=>[e.createVNode(p.VBtn,e.mergeProps({"prepend-icon":e.unref(a).header.icons.options,text:o.$t("$datatables.more"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize"},t),null,16,["prepend-icon","text"])]),default:e.withCtx(()=>[e.createVNode(p.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(i),(t,m)=>(e.openBlock(),e.createBlock(p.VListItem,e.mergeProps({ref_for:!0},t,{key:m,rounded:"lg",link:""}),null,16))),128))]),_:1})]),_:1},8,["modelValue"]))}};exports.default=v;