@ianicdev/datatables2 0.9.10 → 0.10.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/{Columns-CPYUVLvE.js → Columns-6xlIFq_S.js} +1 -1
- package/dist/{Columns-BaARuW1m.cjs → Columns-DC9bpj0E.cjs} +1 -1
- package/dist/{Comparison-BiPlTpXM.js → Comparison-Dq4BkohR.js} +1 -1
- package/dist/{Comparison-DDhGIBui.cjs → Comparison-ame-DP3a.cjs} +1 -1
- package/dist/Datepicker--ZUiSi7m.js +1411 -0
- package/dist/Datepicker-COihnScF.cjs +2 -0
- package/dist/{Download-FGUE_z5x.js → Download-2WQpbEfa.js} +2 -2
- package/dist/{Download-DZqwXPMb.cjs → Download-zuQjsbMu.cjs} +1 -1
- package/dist/{Options-B-Vq57w_.cjs → Options-BjAdXS-q.cjs} +1 -1
- package/dist/{Options-CAwRqQpx.js → Options-g9ZSVebW.js} +1 -1
- package/dist/{RefreshTable-C-UPC-U5.cjs → RefreshTable-C3L0Baro.cjs} +1 -1
- package/dist/{RefreshTable-DyLlkCOt.js → RefreshTable-C966AEK4.js} +2 -2
- package/dist/{Search-Tks4mpaH.cjs → Search-BBoxkqD7.cjs} +1 -1
- package/dist/{Search-DBOrKgEi.js → Search-BPB-1_Dp.js} +2 -2
- package/dist/{Table-DYDzb63V.cjs → Table-BulChdHr.cjs} +1 -1
- package/dist/{Table-P8c-sRdr.js → Table-vFGT7Szy.js} +2 -2
- package/dist/{TableServer--svcmINA.js → TableServer-DAj4z8yP.js} +1138 -1134
- package/dist/TableServer-Dc9U14eJ.cjs +20 -0
- package/dist/cellRender-Cfwedens.cjs +1 -0
- package/dist/{cellRender-BPzg8pfq.js → cellRender-Ct6pUDNH.js} +986 -921
- package/dist/{dataTables-CPrc2H_E.js → dataTables-B-LwTPCL.js} +2409 -2263
- package/dist/dataTables-Bk4R-V8b.cjs +4 -0
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/index-3kLkZg7E.js +4101 -0
- package/dist/{index-Dn353bZ1.cjs → index-B6qrTNVx.cjs} +1 -1
- package/dist/index-B_4Yq7Un.cjs +1 -0
- package/dist/{index-CXBiVM0n.js → index-CQy1mX45.js} +1 -1
- package/dist/{index.es-DbLPWyn6.cjs → index.es-Ciudu1vj.cjs} +2 -2
- package/dist/{index.es-BXudRhtE.js → index.es-eRsZ1LFr.js} +10 -6
- package/dist/jspdf-B3ZoDzKb.cjs +79 -0
- package/dist/{jspdf-Dt---f5Z.js → jspdf-ooxm5O8S.js} +3905 -3893
- package/package.json +13 -13
- package/dist/Datepicker-CzJ1wZmm.cjs +0 -1
- package/dist/Datepicker-KGlOP9ck.js +0 -1269
- package/dist/TableServer-ftB17VAQ.cjs +0 -20
- package/dist/cellRender-DpRXHxxv.cjs +0 -1
- package/dist/dataTables-CxQh692H.cjs +0 -4
- package/dist/index-BTfw-D-T.cjs +0 -1
- package/dist/index-BW-yzY3p.js +0 -4106
- package/dist/jspdf-DQdhUPLM.cjs +0 -79
|
@@ -1 +1 @@
|
|
|
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-nS7kXLwu.cjs"),p=require("./dataTables-
|
|
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-nS7kXLwu.cjs"),p=require("./dataTables-Bk4R-V8b.cjs");var g=f.requirePrint();const y=f.getDefaultExportFromCjs(g);function k(){const u=e.inject("table_props"),a=e.inject("tableRef"),l=e.inject("downloadModal"),s=e.computed(()=>u.headers.filter(n=>n?.printable!==!1));return{printTable:async()=>{l.value=!0;const n=await a.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}))}),l.value=!1}}}const v={__name:"Options",setup(u){const a=e.inject("table_props"),l=e.inject("pluginOptions"),{t:s}=b.useI18n(),{printTable:d}=k(),n=e.ref(!1),i=e.computed(()=>[{title:s("$datatables.print"),onClick:d,prependIcon:l.header.icons.print,...a.options.header?.export?.buttons},...a.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(l).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;
|
|
@@ -2,7 +2,7 @@ import { inject as r, computed as v, ref as y, createBlock as b, openBlock as p,
|
|
|
2
2
|
import { useI18n as E } from "vue-i18n";
|
|
3
3
|
import { g as P, r as h } from "./printjs-kC3Qmb-l.js";
|
|
4
4
|
import { e as d, g as I } from "./escapeKeyString-CngwDxKW.js";
|
|
5
|
-
import { aD as j,
|
|
5
|
+
import { aD as j, a9 as C, aa as F, a7 as L } from "./dataTables-B-LwTPCL.js";
|
|
6
6
|
var M = h();
|
|
7
7
|
const O = /* @__PURE__ */ P(M);
|
|
8
8
|
function R() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-B_4Yq7Un.cjs"),l=require("vue-i18n"),u=require("./dataTables-Bk4R-V8b.cjs"),d={__name:"RefreshTable",setup(p){const t=e.inject("busEmits"),n=e.inject("table_props"),s=e.inject("pluginOptions"),{deleteDataStorage:r}=i.useDatastate(n),{t:a}=l.useI18n(),c=e.ref(!1),o=()=>{r(),t("refetchData")};return(f,b)=>(e.openBlock(),e.createBlock(u.VBtn,{disabled:e.unref(c),"prepend-icon":e.unref(s).header.icons.refresh,text:e.unref(a)("$datatables.refresh"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize",onClick:o},null,8,["disabled","prepend-icon","text"]))}};exports.default=d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject as t, ref as l, createBlock as p, openBlock as d, unref as e } from "vue";
|
|
2
|
-
import { h as f } from "./index-
|
|
2
|
+
import { h as f } from "./index-3kLkZg7E.js";
|
|
3
3
|
import { useI18n as m } from "vue-i18n";
|
|
4
|
-
import {
|
|
4
|
+
import { a7 as u } from "./dataTables-B-LwTPCL.js";
|
|
5
5
|
const D = {
|
|
6
6
|
__name: "RefreshTable",
|
|
7
7
|
setup(_) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B_4Yq7Un.cjs"),b=require("@vueuse/core"),i=require("./dataTables-Bk4R-V8b.cjs"),h={__name:"Search",setup(V){const d=e.inject("table_props"),c=e.inject("pluginOptions"),p=n.useDatatablesStore(),{searchState:s}=n.useTableState(),{setData:f}=p,a=e.ref(null),r=e.ref(!1),u=e.useTemplateRef("searchField"),m=e.computed(()=>s.value);return b.watchDebounced(a,t=>{f({table_id:d.id,name:"search",value:{query:t}})},{debounce:1e3,maxWait:5e3}),e.watch(r,t=>{t&&setTimeout(()=>{u.value?.focus()},250)}),e.onMounted(()=>{a.value=s.value}),(t,o)=>(e.openBlock(),e.createBlock(i.VMenu,{modelValue:e.unref(r),"onUpdate:modelValue":o[1]||(o[1]=l=>e.isRef(r)?r.value=l:null),"close-on-content-click":!1,location:"bottom center"},{activator:e.withCtx(({props:l})=>[e.createVNode(i.VBtn,e.mergeProps({"prepend-icon":e.unref(c).header.icons.search,text:t.$t("$datatables.search"),variant:"text",density:"comfortable",color:e.unref(m)?"primary":"dark",stacked:"",class:"text-capitalize"},l),null,16,["prepend-icon","text","color"])]),default:e.withCtx(()=>[e.createVNode(n.VCard,{"min-width":"300"},{default:e.withCtx(()=>[e.createVNode(n.VCardText,null,{default:e.withCtx(()=>[e.createVNode(n.VTextField,{ref_key:"searchField",ref:u,modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=l=>e.isRef(a)?a.value=l:null),density:"comfortable",label:t.$t("$datatables.search"),variant:"outlined",clearable:"","hide-details":"","prepend-inner-icon":e.unref(c).header.icons.search},null,8,["modelValue","label","prepend-inner-icon"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}};exports.default=h;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject as d, ref as p, useTemplateRef as v, computed as _, watch as x, onMounted as k, createBlock as y, openBlock as S, unref as l, isRef as m, withCtx as r, createVNode as s, mergeProps as T } from "vue";
|
|
2
|
-
import { c as g, u as w, e as D, f as F, g as $ } from "./index-
|
|
2
|
+
import { c as g, u as w, e as D, f as F, g as $ } from "./index-3kLkZg7E.js";
|
|
3
3
|
import { watchDebounced as B } from "@vueuse/core";
|
|
4
|
-
import { aD as C,
|
|
4
|
+
import { aD as C, a7 as M } from "./dataTables-B-LwTPCL.js";
|
|
5
5
|
const z = {
|
|
6
6
|
__name: "Search",
|
|
7
7
|
setup(O) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("./index-B_4Yq7Un.cjs"),n=require("./cellRender-Cfwedens.cjs"),S={key:1},x={class:"expandable-row"},w=["colspan"],B={__name:"Table",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(f,{expose:b}){const{tableState:g,searchState:k,headersState:s,saveTableOptions:_}=y.useTableState(),{filteredData:d}=n.useTableData(),a=e.inject("table_props"),c=e.useModel(f,"modelValue"),h=e.ref(null),V=l=>l?.lock?null:`item.${l.key}`;return b({getItemsForPrint:async()=>d.value}),(l,i)=>(e.openBlock(),e.createBlock(n.VDataTable,e.mergeProps({ref_key:"datatable",ref:h,modelValue:c.value,"onUpdate:modelValue":i[0]||(i[0]=t=>c.value=t),color:"primary","show-select":"",items:e.unref(d),headers:e.unref(s),loading:e.unref(a).loading},{...e.unref(a).options,...e.unref(g).options.state},{search:e.unref(k),"onUpdate:options":e.unref(_)}),e.createSlots({loading:e.withCtx(()=>[e.createVNode(n.VSkeletonLoader,{type:"table-row@10"})]),"expanded-row":e.withCtx(({columns:t,item:p})=>[e.createElementVNode("tr",x,[e.createElementVNode("td",{class:"expandable-row--column",colspan:t.length},[e.unref(a).options.expandedRowRenderer?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).options.expandedRowRenderer),{key:0,params:{columns:t,item:p}},null,8,["params"])):e.createCommentVNode("",!0)],8,w)])]),_:2},[e.renderList(e.unref(s),(t,p)=>({name:V(t),fn:e.withCtx(({item:u,internalItem:m,value:o,column:r})=>[e.createElementVNode("div",{class:e.normalizeClass(r.cellClass)},[r?.cell?(e.openBlock(),e.createBlock(e.unref(n.CellRender),{key:0,render:r.cell({item:u,internalItem:m,value:o,column:r}),params:{item:u,internalItem:m,value:o,column:r}},null,8,["render","params"])):(e.openBlock(),e.createElementBlock("span",S,e.toDisplayString(String(o).length||String(o)==="0"?o:"-"),1))],2)])}))]),1040,["modelValue","items","headers","loading","search","onUpdate:options"]))}};exports.default=B;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject as w, useModel as C, ref as D, createBlock as n, openBlock as r, mergeProps as R, unref as e, createSlots as T, withCtx as d, createElementVNode as p, createCommentVNode as B, resolveDynamicComponent as N, createVNode as P, renderList as U, normalizeClass as v, createElementBlock as E, toDisplayString as F } from "vue";
|
|
2
|
-
import { u as I } from "./index-
|
|
3
|
-
import { u as L, V as M, a as j, C as z } from "./cellRender-
|
|
2
|
+
import { u as I } from "./index-3kLkZg7E.js";
|
|
3
|
+
import { u as L, V as M, a as j, C as z } from "./cellRender-Ct6pUDNH.js";
|
|
4
4
|
const O = { key: 1 }, $ = { class: "expandable-row" }, q = ["colspan"], K = {
|
|
5
5
|
__name: "Table",
|
|
6
6
|
props: {
|