@ianicdev/datatables2 0.8.15 → 0.9.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 (45) hide show
  1. package/dist/{Columns-CbCyHqIz.cjs → Columns-BcKul1XU.cjs} +1 -1
  2. package/dist/{Columns-yWAGrf5J.js → Columns-WV_XTcfk.js} +1 -1
  3. package/dist/{Comparison-aai1XuBD.cjs → Comparison-B-0lzZby.cjs} +1 -1
  4. package/dist/{Comparison-Bnnoe8Bt.js → Comparison-CS3dbw7-.js} +1 -1
  5. package/dist/{Datepicker-NgLRJwEn.js → Datepicker-CBF5JWDm.js} +2 -2
  6. package/dist/{Datepicker-CLnsGSS6.cjs → Datepicker-DayGtvzT.cjs} +1 -1
  7. package/dist/{Download-C5jSumSU.cjs → Download-DObh-0qf.cjs} +1 -1
  8. package/dist/{Download-CgMeWjIL.js → Download-HnSkTpjH.js} +3 -3
  9. package/dist/{Options-BJIkNcEi.js → Options-B6aA6OT0.js} +1 -1
  10. package/dist/{Options-DMUT5noM.cjs → Options-CrhimulB.cjs} +1 -1
  11. package/dist/{RefreshTable-BsupAIBX.js → RefreshTable-Doiv_YZB.js} +2 -2
  12. package/dist/{RefreshTable-C3ZiDeOk.cjs → RefreshTable-s7gqKe6b.cjs} +1 -1
  13. package/dist/{Search-CrCOD6gZ.js → Search-CTLGwT0r.js} +2 -2
  14. package/dist/{Search-wlws1Tg-.cjs → Search-Dz0QZMXz.cjs} +1 -1
  15. package/dist/{Table-BAXZWtzv.cjs → Table-ClcPfYL5.cjs} +1 -1
  16. package/dist/{Table-BjmvxzG6.js → Table-DUoBK9K2.js} +2 -2
  17. package/dist/{TableServer-ByWJDF4y.cjs → TableServer-CP_gJg6t.cjs} +1 -8
  18. package/dist/{TableServer-9e0SnBbT.js → TableServer-DlguQn9Z.js} +3 -11
  19. package/dist/{cellRender-D-TK2Vx6.cjs → cellRender-DPw3VrGL.cjs} +1 -1
  20. package/dist/{cellRender-Dh1TBBCc.js → cellRender-O1eaCIAB.js} +2 -2
  21. package/dist/{dataTables-BEt0Mho4.js → dataTables-CPyO3-V6.js} +160 -160
  22. package/dist/dataTables-DqovKov-.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/{html2canvas.esm-CUkZERmf.cjs → html2canvas.esm-CNmnTSlr.cjs} +1 -18
  27. package/dist/{html2canvas.esm-Dmi1NfiH.js → html2canvas.esm-DQ00cQCm.js} +0 -19
  28. package/dist/{index-B4ImFSQF.js → index-BUe_gyg1.js} +12 -12
  29. package/dist/{index-SVP6CdDP.cjs → index-Bj2papn9.cjs} +1 -1
  30. package/dist/{index-B6n9PS9m.js → index-CAZtJOlN.js} +1 -1
  31. package/dist/{index-eV98ePHW.cjs → index-CBmwmlHg.cjs} +1 -1
  32. package/dist/{index.es-sKSodxcW.js → index.es-BXudRhtE.js} +1 -15
  33. package/dist/{index.es-B0GUE7KM.cjs → index.es-DbLPWyn6.cjs} +2 -15
  34. package/dist/{jspdf-BDkAtFGI.cjs → jspdf-DQdhUPLM.cjs} +3 -118
  35. package/dist/{jspdf-CzuJJB6C.js → jspdf-Dt---f5Z.js} +3 -125
  36. package/dist/{purify.es-DHbHSKL1.js → purify.es-BwLardii.js} +0 -1
  37. package/dist/purify.es-ClceE12G.cjs +2 -0
  38. package/dist/{sortablejs-DSHM8iDp.js → sortablejs-C0WJhxmJ.js} +0 -6
  39. package/dist/sortablejs-Da6TYh39.cjs +1 -0
  40. package/dist/{xlsx-vtl6oPEm.js → xlsx-Beik4N2o.js} +0 -2
  41. package/dist/{xlsx-BBXALOAs.cjs → xlsx-BiH37OJz.cjs} +2 -2
  42. package/package.json +12 -12
  43. package/dist/dataTables-codcCcM8.cjs +0 -4
  44. package/dist/purify.es-D1I7B1hP.cjs +0 -2
  45. package/dist/sortablejs-BhPwT7wS.cjs +0 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-SVP6CdDP.cjs"),b={__name:"Selected",props:{modelValue:{},modelModifiers:{}},emits:e.mergeModels(["save"],["update:modelValue"]),setup(_,{emit:h}){const n=e.inject("table_props"),o=e.useModel(_,"modelValue"),{hardFiltersState:f}=c.useTableState(),{registerHook:u}=c.useDatatablesHooksStore(),r=e.ref([]),m=h,l=e.inject("busEmits");e.watch(r,s=>{const t={};s.forEach(a=>{let i=n.hardFilters?.[a]??null;isNaN(a)&&(i=n.hardFilters.find(v=>v.value===a)),t[a]=i}),o.value=t,l("hardFilters:update",{keys:s,filters:t}),m("save")}),e.onMounted(()=>{r.value=Object.keys(f.value),r.value.length||n.hardFilters.forEach((s,t)=>{s.active&&r.value.push(s.value??t)}),u("hardFilters:activate",d),u("hardFilters:deactivate",p)});const d=s=>{const t=JSON.parse(JSON.stringify(r.value));t.push(s),r.value=t},p=s=>{const t=JSON.parse(JSON.stringify(r.value)),a=t.findIndex(i=>i===s);a!==-1&&(t.splice(a,1),r.value=t)};return(s,t)=>(e.openBlock(),e.createBlock(c.VSheet,null,{default:e.withCtx(()=>[e.createVNode(c.VChipGroup,{modelValue:e.unref(r),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(r)?r.value=a:null),"selected-class":"text-primary",multiple:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).hardFilters,(a,i)=>(e.openBlock(),e.createBlock(c.VChip,e.mergeProps({key:i,class:"my-0"},{ref_for:!0},a,{density:"comfortable"}),null,16))),128))]),_:1},8,["modelValue"])]),_:1}))}},y={__name:"index",setup(_){const h=c.useDatatablesStore(),{setData:n}=h,o=e.ref({}),f=e.inject("table_props"),u=e.ref(0),r=()=>{const m=Object.entries(o.value).filter(([,l])=>Array.isArray(l)||typeof l=="string"?l.length>0:l!=null&&l!=="").reduce((l,[d,p])=>(l[d]=p,l),{});n({table_id:f.id,name:"hardFilters",value:{query:m}})};return e.watch(()=>f.hardFilters,()=>{u.value++}),(m,l)=>{const d=b;return e.openBlock(),e.createBlock(d,{key:e.unref(u),modelValue:e.unref(o),"onUpdate:modelValue":l[0]||(l[0]=p=>e.isRef(o)?o.value=p:null),onSave:r},null,8,["modelValue"])}}};exports.default=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-Bj2papn9.cjs"),b={__name:"Selected",props:{modelValue:{},modelModifiers:{}},emits:e.mergeModels(["save"],["update:modelValue"]),setup(_,{emit:h}){const n=e.inject("table_props"),o=e.useModel(_,"modelValue"),{hardFiltersState:f}=c.useTableState(),{registerHook:u}=c.useDatatablesHooksStore(),r=e.ref([]),m=h,l=e.inject("busEmits");e.watch(r,s=>{const t={};s.forEach(a=>{let i=n.hardFilters?.[a]??null;isNaN(a)&&(i=n.hardFilters.find(v=>v.value===a)),t[a]=i}),o.value=t,l("hardFilters:update",{keys:s,filters:t}),m("save")}),e.onMounted(()=>{r.value=Object.keys(f.value),r.value.length||n.hardFilters.forEach((s,t)=>{s.active&&r.value.push(s.value??t)}),u("hardFilters:activate",d),u("hardFilters:deactivate",p)});const d=s=>{const t=JSON.parse(JSON.stringify(r.value));t.push(s),r.value=t},p=s=>{const t=JSON.parse(JSON.stringify(r.value)),a=t.findIndex(i=>i===s);a!==-1&&(t.splice(a,1),r.value=t)};return(s,t)=>(e.openBlock(),e.createBlock(c.VSheet,null,{default:e.withCtx(()=>[e.createVNode(c.VChipGroup,{modelValue:e.unref(r),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(r)?r.value=a:null),"selected-class":"text-primary",multiple:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).hardFilters,(a,i)=>(e.openBlock(),e.createBlock(c.VChip,e.mergeProps({key:i,class:"my-0"},{ref_for:!0},a,{density:"comfortable"}),null,16))),128))]),_:1},8,["modelValue"])]),_:1}))}},y={__name:"index",setup(_){const h=c.useDatatablesStore(),{setData:n}=h,o=e.ref({}),f=e.inject("table_props"),u=e.ref(0),r=()=>{const m=Object.entries(o.value).filter(([,l])=>Array.isArray(l)||typeof l=="string"?l.length>0:l!=null&&l!=="").reduce((l,[d,p])=>(l[d]=p,l),{});n({table_id:f.id,name:"hardFilters",value:{query:m}})};return e.watch(()=>f.hardFilters,()=>{u.value++}),(m,l)=>{const d=b;return e.openBlock(),e.createBlock(d,{key:e.unref(u),modelValue:e.unref(o),"onUpdate:modelValue":l[0]||(l[0]=p=>e.isRef(o)?o.value=p:null),onSave:r},null,8,["modelValue"])}}};exports.default=y;
@@ -1,5 +1,5 @@
1
1
  import { c as Da, g as il } from "./printjs-kC3Qmb-l.js";
2
- import { _ as Va } from "./jspdf-CzuJJB6C.js";
2
+ import { _ as Va } from "./jspdf-Dt---f5Z.js";
3
3
  var fn = {}, cn = {}, cr, vn;
4
4
  function Q() {
5
5
  if (vn) return cr;
@@ -2757,20 +2757,6 @@ function mf() {
2757
2757
  }), _u;
2758
2758
  }
2759
2759
  mf();
2760
- /*! *****************************************************************************
2761
- Copyright (c) Microsoft Corporation.
2762
-
2763
- Permission to use, copy, modify, and/or distribute this software for any
2764
- purpose with or without fee is hereby granted.
2765
-
2766
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2767
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2768
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2769
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2770
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2771
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2772
- PERFORMANCE OF THIS SOFTWARE.
2773
- ***************************************************************************** */
2774
2760
  var ql = function(n, e) {
2775
2761
  return (ql = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, t) {
2776
2762
  r.__proto__ = t;