v-datatable-plus 0.0.19 → 0.0.21

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.
@@ -13,4 +13,4 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
13
13
  </table>
14
14
  </div></div>
15
15
  </body>
16
- </html>`,N=window.open("","","width= 800, height = 500, resizable = 1, scrollbars = 1");N==null||N.document.write(L),N==null||N.document.close(),N==null||N.focus(),N==null||N.print()}return(P,V)=>(t.openBlock(),t.createBlock(hl,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(st,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":V[2]||(V[2]=p=>P.$emit("columnMenuOpened",p))},{activator:t.withCtx(({props:p})=>[t.createVNode(ue,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},p),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Ra),{modelValue:g.value,"onUpdate:modelValue":V[0]||(V[0]=p=>g.value=p),"item-key":"key",handle:".cursor-move",onChange:V[1]||(V[1]=p=>P.$emit("columnMenuDragChange",p))},{item:t.withCtx(({element:p})=>[t.createVNode(Be,null,{prepend:t.withCtx(()=>[t.createVNode(Kl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:p.isShow,"onUpdate:modelValue":S=>p.isShow=S,onChange:S=>P.$emit("columnMenuChecked",{element:p,$event:S})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(p.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(Hn,null,{default:t.withCtx(()=>[t.renderSlot(P.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(P.$slots,"pre-header-commands"),e.showPrint?(t.openBlock(),t.createBlock(ue,{key:1,onClick:U,"prepend-icon":e.printIcon},{default:t.withCtx(()=>[t.createTextVNode("PRINT")]),_:1},8,["prepend-icon"])):t.createCommentVNode("",!0),t.renderSlot(P.$slots,"post-header-commands")]),_:3})),t.renderSlot(P.$slots,"header-expand-section"),t.createVNode(Ht,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(wu,{"fixed-header":"",hover:"",ref_key:"customDataTable",ref:o,class:"dt-header-border",height:e.tableHeight,density:e.density,headers:d.value,items:m.value,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:e.search,page:s.page,"onUpdate:page":V[7]||(V[7]=p=>s.page=p),modelValue:c.value,"onUpdate:modelValue":V[8]||(V[8]=p=>c.value=p),"onClick:row":M},t.createSlots({top:t.withCtx(p=>[t.renderSlot(P.$slots,"top",t.normalizeProps(t.guardReactiveProps(p)))]),headers:t.withCtx(p=>[t.renderSlot(P.$slots,"headers",t.normalizeProps(t.guardReactiveProps(p)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.headers,(S,L)=>(t.openBlock(),t.createElementBlock("tr",{key:L},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S,N=>t.renderSlot(P.$slots,`header.${N.key}`,t.normalizeProps(t.mergeProps({key:N.key},S)),()=>[N.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(N)]),rowspan:N.rowspan,colspan:N.colspan},[A(N)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(y.value),onClick:()=>p.toggleSort(N)},t.toDisplayString(N.title),13,Bu)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(y.value)},t.toDisplayString(N.title),5)),p.isSorted(N)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:p.getSortIcon(N)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(N)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(N.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:_(N.key),onClick:w=>B(N.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:w=>x(N.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Iu)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:N.rowspan,colspan:N.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(p),onClick:w=>D(p)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,Tu))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Au,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(p.columns),(S,L)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:L},[S.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S.filterMode===t.unref(tt).SELECTION?(t.openBlock(),t.createBlock(qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:S.filterItems,modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N,"list-props":{lines:!1,density:"compact"}},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock($t,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N},{append:t.withCtx(()=>[t.createVNode(st,null,{activator:t.withCtx(({props:N})=>[t.createVNode(ue,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},N),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,N=>(t.openBlock(),t.createBlock(Be,{key:N.value,title:N.title,active:S.filterType===N.value,onClick:w=>S.filterType=N.value},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(p=>[t.renderSlot(P.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(p)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:p.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${p.item.depth*3}`),size:"small",onClick:S=>p.toggleGroup(p.item),icon:p.isGroupOpen(p.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(p.item,p.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:S=>T(p.item.key),icon:"$delete"},null,8,["onClick"])],8,Eu)])])]),"expanded-row":t.withCtx(p=>[t.renderSlot(P.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(p)))]),"no-data":t.withCtx(()=>[t.renderSlot(P.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[Ru,t.createElementVNode("div",Ou,[t.createVNode(qe,{"hide-details":"",density:"compact",variant:"outlined",modelValue:s.itemsPerPage,"onUpdate:modelValue":[V[3]||(V[3]=p=>s.itemsPerPage=p),V[4]||(V[4]=p=>s.page=1)],"item-title":"title","item-value":"value",items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Rt,{class:"ml-2",density:"comfortable",rounded:"circle","active-color":e.color,"total-visible":"7","first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,modelValue:s.page,"onUpdate:modelValue":V[5]||(V[5]=p=>s.page=p),length:f.value},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","modelValue","length"]),t.createVNode(_o),t.createElementVNode("span",$u,t.toDisplayString(h.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ue,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:V[6]||(V[6]=p=>P.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(d.value,p=>({name:`item.${p.key}`,fn:t.withCtx(S=>[t.renderSlot(P.$slots,`item.${p.key}`,t.normalizeProps(t.guardReactiveProps(S)),()=>[typeof p.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.formatCellValue(S.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(S.value),1)],64))])])}))]),1032,["height","density","headers","items","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(P.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(P.$slots,"bottom-area")]),_:3},8,["color"]))}},Fu=["rowspan","colspan"],Lu=["onClick"],Du=["rowspan","colspan"],_u={key:0},Mu=["colspan"],zu=t.createElementVNode("span",{class:"text-caption mx-1"},"Items per page",-1),Hu={style:{width:"100px"}},ju={class:"pr-2"},zo={__name:"VDatatableServerPlus",props:{hideTitleBar:{type:Boolean,default:!1},hideColumnMenu:{type:Boolean,default:!1},showRightPane:{type:Boolean,default:!1},hideFilterRow:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideRefreshButton:{type:Boolean,default:!1},showExpand:{type:Boolean,default:!1},showSelect:{type:Boolean,default:!1},selectOnRow:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},highlightRow:{type:Boolean,default:!1},rightPaneFixed:{type:Boolean,default:!0},rightPaneWidth:{type:Number,default:20},dragMenuHeight:{type:Number,default:250},itemsPerPage:{type:Number,default:10},tableHeight:{type:[String,Number],default:"50vh"},loading:{type:[String,Boolean],default:!1},title:String,color:String,itemValue:String,itemsLength:Number,headerTextSize:String,headerIconSize:String,sortByColumn:String,search:String,modelValue:{type:Array,default:[]},selectedRow:{type:[Object,String,Number,Boolean],default:null},rowProps:{type:[Object,Function]},items:{type:Array,default:[]},headers:{required:!0,type:Array,default:[]},itemsPerPageOptions:{type:Array,default:[{value:50,title:"50"},{value:100,title:"100"},{value:200,title:"200"},{value:300,title:"300"},{value:500,title:"500"}]},density:{type:String,default:"compact"},selectStrategy:{type:String,default:"page"},dragMenuIcon:{type:String,default:"$menu"},removeSearchIcon:{type:String,default:"mdi-magnify-minus"},dragItemIcon:{type:String,default:"mdi-drag-vertical"},refreshIcon:{type:String,default:"$loading"},filterIcon:{type:String,default:"mdi-filter"},sortAscIcon:{type:String,default:"$sortAsc"},sortDescIcon:{type:String,default:"$sortDesc"},groupByIcon:{type:String,default:"mdi-table-plus"},groupSortAscIcon:{type:String,default:"mdi-sort-ascending"},groupSortDescIcon:{type:String,default:"mdi-sort-descending"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"}},emits:["update:modelValue","update:headers","update:selectedRow","update:expanded","update:groupBy","update:itemsPerPage","update:options","update:page","update:sortBy","columnMenuOpened","columnMenuDragChange","columnMenuChecked","refreshClick","row"],setup(e,{emit:l}){const n=e,a=l,o=t.ref(""),r=t.ref([]),i=t.ref(null),s=t.reactive({page:1,itemsPerPage:n.itemsPerPage}),u=t.reactive([{title:"Contains",value:oe.CONTAINS},{title:"Does not contain",value:oe.NOT_CONTAINS},{title:"Is equal to",value:oe.IS_EQUAL_TO},{title:"Is not equal to",value:oe.IS_NOT_EQUAL_TO},{title:"Starts with",value:oe.START_WITH},{title:"Ends with",value:oe.END_WITH}]),c=t.computed({get(){return n.modelValue},set(w){a("update:modelValue",w)}}),v=t.computed({get(){return n.search||o},set(w){o=w}}),g=t.computed({get(){return n.selectedRow},set(w){a("update:selectedRow",w)}}),d=t.computed({get(){return n.headers},set(w){a("update:headers",w)}}),f=t.computed(()=>d.value.filter(w=>w.isShow)),h=t.computed(()=>{let w=1;return s.itemsPerPage==null||n.itemsLength<=0?w:(w=Math.ceil(n.itemsLength/s.itemsPerPage),w>0?w:1)}),m=t.computed(()=>{if(n.itemsLength<=0)return`${n.itemsLength} items`;if(s.itemsPerPage<=0||s.itemsPerPage>n.itemsLength)return`1 - ${n.itemsLength} items`;const w=(s.page-1)*s.itemsPerPage+1;let R=s.page*s.itemsPerPage;return R>n.itemsLength&&(R=n.itemsLength),`${w} - ${R} of ${n.itemsLength} items`}),y=t.computed(()=>{var w;if(((w=n.headerTextSize)==null?void 0:w.length)>0)return{fontSize:n.headerTextSize}}),b=t.computed(()=>{var w;return((w=n.headerIconSize)==null?void 0:w.length)>0?{fontSize:n.headerIconSize}:{fontSize:"12px"}});function k(w){return w&&w.length>0?w.map(R=>{const C=d.value.find(H=>H.key===R.key);return C||(R.filterable=!1,R)}):w}function A(w){return w.sortable&&!(w.children&&w.children.length>0)}function $(w){return w.groupable===!0&&!(w.children&&w.children.length>0)}function E(w){return w.allSelected&&w.someSelected?"$checkboxOn":w.someSelected&&!w.allSelected?"$checkboxIndeterminate":"$checkboxOff"}function D(w){w.allSelected&&w.someSelected?w.selectAll(!1):w.selectAll(!0)}function x(w){var R,C;((R=r.value)==null?void 0:R.findIndex(H=>H.key===w))===-1&&((C=r.value)==null||C.push({key:w,order:"asc"}))}function T(w){var C,H;const R=(C=r.value)==null?void 0:C.findIndex(J=>J.key===w);R!==-1&&((H=r.value)==null||H.splice(R,1))}function B(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);R.order=R.order==="asc"?"desc":"asc"}function _(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);return R?R.order==="asc"?n.groupSortAscIcon:n.groupSortDescIcon:n.groupSortAscIcon}function F(w){var R;return((R=r.value)==null?void 0:R.findIndex(C=>C.key===w))!==-1}function I(w,R){const C=R.find(H=>H.key===w.key);return C?`${C.title} : ${typeof C.formatCellValue=="function"?C.formatCellValue(w.value,C.formatParameter):w.value} (${w.items.length})`:`${w.value} (${w.items.length})`}function O(w){if(w){const R=w.width;if(R>0||typeof R=="string"&&R.length>0)return{width:`${R}px`,minWidth:`${R}px`,textAlign:w.align}}return{}}function M(w,R){var C;w.filterType=R.value,((C=w.filterValue)==null?void 0:C.length)>0&&(this.dtSearchModel=`!${this.dtSearchModel}`)}function j(){this.tableHeaders.forEach(w=>{w.filterValue=w.filterMode===tt.SELECTION?w.allFilterValue:null}),this.dtSearchModel=""}function U(w,R){var C,H,J,G;if(a("row",{$event:w,param:R}),n.highlightRow){if((C=i.value)==null||C.classList.remove("dt-row-highlight"),i.value===w.currentTarget){n.selectOnRow&&R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem),i.value=null,g.value=null;return}i.value=w.currentTarget,(H=i.value)==null||H.classList.add("dt-row-highlight"),n.selectOnRow&&!R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem)}else n.selectOnRow&&R.toggleSelect(R.internalItem);n.returnObject&&(g.value=R.item),((J=n.itemValue)==null?void 0:J.length)>0&&(g.value=((G=R.item)==null?void 0:G[n.itemValue])??null)}function P(w){a("update:expanded",w)}function V(w){a("update:groupBy",w)}function p(w){a("update:itemsPerPage",w)}function S(w){a("update:options",w)}function L(w){a("update:page",w)}function N(w){a("update:sortBy",w)}return(w,R)=>(t.openBlock(),t.createBlock(hl,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(st,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":R[2]||(R[2]=C=>w.$emit("columnMenuOpened",C))},{activator:t.withCtx(({props:C})=>[t.createVNode(ue,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},C),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Ra),{modelValue:d.value,"onUpdate:modelValue":R[0]||(R[0]=C=>d.value=C),"item-key":"key",handle:".cursor-move",onChange:R[1]||(R[1]=C=>w.$emit("columnMenuDragChange",C))},{item:t.withCtx(({element:C})=>[t.createVNode(Be,null,{prepend:t.withCtx(()=>[t.createVNode(Kl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:C.isShow,"onUpdate:modelValue":H=>C.isShow=H,onChange:H=>w.$emit("columnMenuChecked",{element:C,$event:H})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(C.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(Hn,null,{default:t.withCtx(()=>[t.renderSlot(w.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(w.$slots,"pre-header-commands"),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ue,{key:1,onClick:j,"prepend-icon":e.removeSearchIcon},{default:t.withCtx(()=>[t.createTextVNode("REMOVE SEARCH")]),_:1},8,["prepend-icon"])),t.renderSlot(w.$slots,"post-header-commands")]),_:3})),t.renderSlot(w.$slots,"header-expand-section"),t.createVNode(Ht,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(Cu,{"fixed-header":"",hover:"",class:"dt-header-border",height:e.tableHeight,density:e.density,headers:f.value,items:e.items,"items-length":e.itemsLength,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:v.value,page:s.page,"onUpdate:page":[R[7]||(R[7]=C=>s.page=C),L],modelValue:c.value,"onUpdate:modelValue":R[8]||(R[8]=C=>c.value=C),"onClick:row":U,"onUpdate:expanded":P,"onUpdate:groupBy":V,"onUpdate:itemsPerPage":p,"onUpdate:options":S,"onUpdate:sortBy":N},t.createSlots({top:t.withCtx(C=>[t.renderSlot(w.$slots,"top",t.normalizeProps(t.guardReactiveProps(C)))]),headers:t.withCtx(C=>[t.renderSlot(w.$slots,"headers",t.normalizeProps(t.guardReactiveProps(C)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.headers,(H,J)=>(t.openBlock(),t.createElementBlock("tr",{key:J},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(H,G=>t.renderSlot(w.$slots,`header.${G.key}`,t.normalizeProps(t.mergeProps({key:G.key},H)),()=>[G.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(G)]),rowspan:G.rowspan,colspan:G.colspan},[A(G)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(y.value),onClick:()=>C.toggleSort(G)},t.toDisplayString(G.title),13,Lu)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(y.value)},t.toDisplayString(G.title),5)),C.isSorted(G)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:C.getSortIcon(G)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(G)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(G.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:_(G.key),onClick:le=>B(G.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:le=>x(G.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Fu)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:G.rowspan,colspan:G.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(C),onClick:le=>D(C)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,Du))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",_u,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(C.columns),(H,J)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:J},[H.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[H.filterMode===t.unref(tt).SELECTION?(t.openBlock(),t.createBlock(qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:H.filterItems,"list-props":{lines:!1,density:"compact"},modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>v.value=H.filterValue]},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock($t,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>v.value=H.filterValue]},{append:t.withCtx(()=>[t.createVNode(st,null,{activator:t.withCtx(({props:G})=>[t.createVNode(ue,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},G),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,G=>(t.openBlock(),t.createBlock(Be,{key:G.value,title:G.title,active:H.filterType===G.value,onClick:le=>M(H,G)},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(C=>[t.renderSlot(w.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(C)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:C.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${C.item.depth*3}`),size:"small",onClick:H=>C.toggleGroup(C.item),icon:C.isGroupOpen(C.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(C.item,C.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:H=>T(C.item.key),icon:"$delete"},null,8,["onClick"])],8,Mu)])])]),"expanded-row":t.withCtx(C=>[t.renderSlot(w.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(C)))]),"no-data":t.withCtx(()=>[t.renderSlot(w.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[zu,t.createElementVNode("div",Hu,[t.createVNode(qe,{"hide-details":"",density:"compact",variant:"outlined","item-title":"title","item-value":"value",modelValue:s.itemsPerPage,"onUpdate:modelValue":[R[3]||(R[3]=C=>s.itemsPerPage=C),R[4]||(R[4]=C=>s.page=1)],items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Rt,{class:"ml-2",density:"comfortable",rounded:"circle","total-visible":"7","active-color":e.color,"first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,length:h.value,modelValue:s.page,"onUpdate:modelValue":R[5]||(R[5]=C=>s.page=C)},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","length","modelValue"]),t.createVNode(_o),t.createElementVNode("span",ju,t.toDisplayString(m.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ue,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:R[6]||(R[6]=C=>w.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(f.value,C=>({name:`item.${C.key}`,fn:t.withCtx(H=>[t.renderSlot(w.$slots,`item.${C.key}`,t.normalizeProps(t.guardReactiveProps(H)),()=>[typeof C.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(C.formatCellValue(H.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(H.value),1)],64))])])}))]),1032,["height","density","headers","items","items-length","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(w.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(w.$slots,"bottom-area")]),_:3},8,["color"]))}},Wu={install:e=>{e.component("VDatatablePlus",Mo),e.component("VDatatableServerPlus",zo),e.component("ResizeableSplitter",Ht)}};exports.FILTER_MODE=tt;exports.FILTER_TYPE=oe;exports.ResizeableSplitter=Ht;exports.VDatatablePlus=Mo;exports.VDatatableServerPlus=zo;exports.default=Wu;
16
+ </html>`,N=window.open("","","width= 800, height = 500, resizable = 1, scrollbars = 1");N==null||N.document.write(L),N==null||N.document.close(),N==null||N.focus(),N==null||N.print()}return(P,V)=>(t.openBlock(),t.createBlock(hl,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(st,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":V[2]||(V[2]=p=>P.$emit("columnMenuOpened",p))},{activator:t.withCtx(({props:p})=>[t.createVNode(ue,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},p),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Ra),{modelValue:g.value,"onUpdate:modelValue":V[0]||(V[0]=p=>g.value=p),"item-key":"key",handle:".cursor-move",onChange:V[1]||(V[1]=p=>P.$emit("columnMenuDragChange",p))},{item:t.withCtx(({element:p})=>[t.createVNode(Be,null,{prepend:t.withCtx(()=>[t.createVNode(Kl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:p.isShow,"onUpdate:modelValue":S=>p.isShow=S,onChange:S=>P.$emit("columnMenuChecked",{element:p,$event:S})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(p.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(Hn,null,{default:t.withCtx(()=>[t.renderSlot(P.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(P.$slots,"pre-header-commands"),e.showPrint?(t.openBlock(),t.createBlock(ue,{key:1,onClick:U,"prepend-icon":e.printIcon},{default:t.withCtx(()=>[t.createTextVNode("PRINT")]),_:1},8,["prepend-icon"])):t.createCommentVNode("",!0),t.renderSlot(P.$slots,"post-header-commands")]),_:3})),t.renderSlot(P.$slots,"header-expand-section"),t.createVNode(Ht,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(wu,{"fixed-header":"",hover:"",ref_key:"customDataTable",ref:o,class:"dt-header-border",height:e.tableHeight,density:e.density,headers:d.value,items:m.value,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:e.search,page:s.page,"onUpdate:page":V[7]||(V[7]=p=>s.page=p),modelValue:c.value,"onUpdate:modelValue":V[8]||(V[8]=p=>c.value=p),"onClick:row":M},t.createSlots({top:t.withCtx(p=>[t.renderSlot(P.$slots,"top",t.normalizeProps(t.guardReactiveProps(p)))]),headers:t.withCtx(p=>[t.renderSlot(P.$slots,"headers",t.normalizeProps(t.guardReactiveProps(p)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.headers,(S,L)=>(t.openBlock(),t.createElementBlock("tr",{key:L},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S,N=>t.renderSlot(P.$slots,`header.${N.key}`,t.normalizeProps(t.mergeProps({key:N.key},S)),()=>[N.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(N)]),rowspan:N.rowspan,colspan:N.colspan},[A(N)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(y.value),onClick:()=>p.toggleSort(N)},t.toDisplayString(N.title),13,Bu)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(y.value)},t.toDisplayString(N.title),5)),p.isSorted(N)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:p.getSortIcon(N)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(N)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(N.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:_(N.key),onClick:w=>B(N.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:w=>x(N.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Iu)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:N.rowspan,colspan:N.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(p),onClick:w=>D(p)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,Tu))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Au,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(p.columns),(S,L)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:L},[S.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S.filterMode===t.unref(tt).SELECTION?(t.openBlock(),t.createBlock(qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:S.filterItems,modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N,"list-props":{lines:!1,density:"compact"}},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock($t,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N},{append:t.withCtx(()=>[t.createVNode(st,null,{activator:t.withCtx(({props:N})=>[t.createVNode(ue,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},N),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,N=>(t.openBlock(),t.createBlock(Be,{key:N.value,title:N.title,active:S.filterType===N.value,onClick:w=>S.filterType=N.value},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(p=>[t.renderSlot(P.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(p)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:p.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${p.item.depth*3}`),size:"small",onClick:S=>p.toggleGroup(p.item),icon:p.isGroupOpen(p.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(p.item,p.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:S=>T(p.item.key),icon:"$delete"},null,8,["onClick"])],8,Eu)])])]),"expanded-row":t.withCtx(p=>[t.renderSlot(P.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(p)))]),"no-data":t.withCtx(()=>[t.renderSlot(P.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[Ru,t.createElementVNode("div",Ou,[t.createVNode(qe,{"hide-details":"",density:"compact",variant:"outlined",modelValue:s.itemsPerPage,"onUpdate:modelValue":[V[3]||(V[3]=p=>s.itemsPerPage=p),V[4]||(V[4]=p=>s.page=1)],"item-title":"title","item-value":"value",items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Rt,{class:"ml-2",density:"comfortable",rounded:"circle","active-color":e.color,"total-visible":"7","first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,modelValue:s.page,"onUpdate:modelValue":V[5]||(V[5]=p=>s.page=p),length:f.value},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","modelValue","length"]),t.createVNode(_o),t.createElementVNode("span",$u,t.toDisplayString(h.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ue,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:V[6]||(V[6]=p=>P.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(d.value,p=>({name:`item.${p.key}`,fn:t.withCtx(S=>[t.renderSlot(P.$slots,`item.${p.key}`,t.normalizeProps(t.guardReactiveProps(S)),()=>[typeof p.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.formatCellValue(S.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(S.value),1)],64))])])}))]),1032,["height","density","headers","items","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(P.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(P.$slots,"bottom-area")]),_:3},8,["color"]))}},Fu=["rowspan","colspan"],Lu=["onClick"],Du=["rowspan","colspan"],_u={key:0},Mu=["colspan"],zu=t.createElementVNode("span",{class:"text-caption mx-1"},"Items per page",-1),Hu={style:{width:"100px"}},ju={class:"pr-2"},zo={__name:"VDatatableServerPlus",props:{hideTitleBar:{type:Boolean,default:!1},hideColumnMenu:{type:Boolean,default:!1},showRightPane:{type:Boolean,default:!1},hideFilterRow:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideRefreshButton:{type:Boolean,default:!1},showExpand:{type:Boolean,default:!1},showSelect:{type:Boolean,default:!1},selectOnRow:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},highlightRow:{type:Boolean,default:!1},rightPaneFixed:{type:Boolean,default:!0},rightPaneWidth:{type:Number,default:20},dragMenuHeight:{type:Number,default:250},itemsPerPage:{type:Number,default:50},tableHeight:{type:[String,Number],default:"50vh"},loading:{type:[String,Boolean],default:!1},title:String,color:String,itemValue:String,itemsLength:Number,headerTextSize:String,headerIconSize:String,sortByColumn:String,search:String,modelValue:{type:Array,default:[]},selectedRow:{type:[Object,String,Number,Boolean],default:null},rowProps:{type:[Object,Function]},items:{type:Array,default:[]},headers:{required:!0,type:Array,default:[]},itemsPerPageOptions:{type:Array,default:[{value:50,title:"50"},{value:100,title:"100"},{value:200,title:"200"},{value:300,title:"300"},{value:500,title:"500"}]},density:{type:String,default:"compact"},selectStrategy:{type:String,default:"page"},dragMenuIcon:{type:String,default:"$menu"},removeSearchIcon:{type:String,default:"mdi-magnify-minus"},dragItemIcon:{type:String,default:"mdi-drag-vertical"},refreshIcon:{type:String,default:"$loading"},filterIcon:{type:String,default:"mdi-filter"},sortAscIcon:{type:String,default:"$sortAsc"},sortDescIcon:{type:String,default:"$sortDesc"},groupByIcon:{type:String,default:"mdi-table-plus"},groupSortAscIcon:{type:String,default:"mdi-sort-ascending"},groupSortDescIcon:{type:String,default:"mdi-sort-descending"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"}},emits:["update:modelValue","update:headers","update:selectedRow","update:expanded","update:groupBy","update:itemsPerPage","update:options","update:page","update:sortBy","columnMenuOpened","columnMenuDragChange","columnMenuChecked","refreshClick","row"],setup(e,{emit:l}){const n=e,a=l,o=t.ref(""),r=t.ref([]),i=t.ref(null),s=t.reactive({page:1,itemsPerPage:n.itemsPerPage}),u=t.reactive([{title:"Contains",value:oe.CONTAINS},{title:"Does not contain",value:oe.NOT_CONTAINS},{title:"Is equal to",value:oe.IS_EQUAL_TO},{title:"Is not equal to",value:oe.IS_NOT_EQUAL_TO},{title:"Starts with",value:oe.START_WITH},{title:"Ends with",value:oe.END_WITH}]),c=t.computed({get(){return n.modelValue},set(w){a("update:modelValue",w)}}),v=t.computed({get(){return n.search||o.value},set(w){o.value=w}}),g=t.computed({get(){return n.selectedRow},set(w){a("update:selectedRow",w)}}),d=t.computed({get(){return n.headers},set(w){a("update:headers",w)}}),f=t.computed(()=>d.value.filter(w=>w.isShow)),h=t.computed(()=>{let w=1;return s.itemsPerPage==null||n.itemsLength<=0?w:(w=Math.ceil(n.itemsLength/s.itemsPerPage),w>0?w:1)}),m=t.computed(()=>{if(n.itemsLength<=0)return`${n.itemsLength} items`;if(s.itemsPerPage<=0||s.itemsPerPage>n.itemsLength)return`1 - ${n.itemsLength} items`;const w=(s.page-1)*s.itemsPerPage+1;let R=s.page*s.itemsPerPage;return R>n.itemsLength&&(R=n.itemsLength),`${w} - ${R} of ${n.itemsLength} items`}),y=t.computed(()=>{var w;if(((w=n.headerTextSize)==null?void 0:w.length)>0)return{fontSize:n.headerTextSize}}),b=t.computed(()=>{var w;return((w=n.headerIconSize)==null?void 0:w.length)>0?{fontSize:n.headerIconSize}:{fontSize:"12px"}});function k(w){return w&&w.length>0?w.map(R=>{const C=d.value.find(H=>H.key===R.key);return C||(R.filterable=!1,R)}):w}function A(w){return w.sortable&&!(w.children&&w.children.length>0)}function $(w){return w.groupable===!0&&!(w.children&&w.children.length>0)}function E(w){return w.allSelected&&w.someSelected?"$checkboxOn":w.someSelected&&!w.allSelected?"$checkboxIndeterminate":"$checkboxOff"}function D(w){w.allSelected&&w.someSelected?w.selectAll(!1):w.selectAll(!0)}function x(w){var R,C;((R=r.value)==null?void 0:R.findIndex(H=>H.key===w))===-1&&((C=r.value)==null||C.push({key:w,order:"asc"}))}function T(w){var C,H;const R=(C=r.value)==null?void 0:C.findIndex(J=>J.key===w);R!==-1&&((H=r.value)==null||H.splice(R,1))}function B(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);R.order=R.order==="asc"?"desc":"asc"}function _(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);return R?R.order==="asc"?n.groupSortAscIcon:n.groupSortDescIcon:n.groupSortAscIcon}function F(w){var R;return((R=r.value)==null?void 0:R.findIndex(C=>C.key===w))!==-1}function I(w,R){const C=R.find(H=>H.key===w.key);return C?`${C.title} : ${typeof C.formatCellValue=="function"?C.formatCellValue(w.value,C.formatParameter):w.value} (${w.items.length})`:`${w.value} (${w.items.length})`}function O(w){if(w){const R=w.width;if(R>0||typeof R=="string"&&R.length>0)return{width:`${R}px`,minWidth:`${R}px`,textAlign:w.align}}return{}}function M(w,R){var C;w.filterType=R.value,((C=w.filterValue)==null?void 0:C.length)>0&&(this.dtSearchModel=`!${this.dtSearchModel}`)}function j(){this.tableHeaders.forEach(w=>{w.filterValue=w.filterMode===tt.SELECTION?w.allFilterValue:null}),this.dtSearchModel=""}function U(w,R){var C,H,J,G;if(a("row",{$event:w,param:R}),n.highlightRow){if((C=i.value)==null||C.classList.remove("dt-row-highlight"),i.value===w.currentTarget){n.selectOnRow&&R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem),i.value=null,g.value=null;return}i.value=w.currentTarget,(H=i.value)==null||H.classList.add("dt-row-highlight"),n.selectOnRow&&!R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem)}else n.selectOnRow&&R.toggleSelect(R.internalItem);n.returnObject&&(g.value=R.item),((J=n.itemValue)==null?void 0:J.length)>0&&(g.value=((G=R.item)==null?void 0:G[n.itemValue])??null)}function P(w){a("update:expanded",w)}function V(w){a("update:groupBy",w)}function p(w){a("update:itemsPerPage",w)}function S(w){a("update:options",w)}function L(w){a("update:page",w)}function N(w){a("update:sortBy",w)}return(w,R)=>(t.openBlock(),t.createBlock(hl,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(st,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":R[2]||(R[2]=C=>w.$emit("columnMenuOpened",C))},{activator:t.withCtx(({props:C})=>[t.createVNode(ue,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},C),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Ra),{modelValue:d.value,"onUpdate:modelValue":R[0]||(R[0]=C=>d.value=C),"item-key":"key",handle:".cursor-move",onChange:R[1]||(R[1]=C=>w.$emit("columnMenuDragChange",C))},{item:t.withCtx(({element:C})=>[t.createVNode(Be,null,{prepend:t.withCtx(()=>[t.createVNode(Kl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:C.isShow,"onUpdate:modelValue":H=>C.isShow=H,onChange:H=>w.$emit("columnMenuChecked",{element:C,$event:H})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(C.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(Hn,null,{default:t.withCtx(()=>[t.renderSlot(w.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(w.$slots,"pre-header-commands"),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ue,{key:1,onClick:j,"prepend-icon":e.removeSearchIcon},{default:t.withCtx(()=>[t.createTextVNode("REMOVE SEARCH")]),_:1},8,["prepend-icon"])),t.renderSlot(w.$slots,"post-header-commands")]),_:3})),t.renderSlot(w.$slots,"header-expand-section"),t.createVNode(Ht,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(Cu,{"fixed-header":"",hover:"",class:"dt-header-border",height:e.tableHeight,density:e.density,headers:f.value,items:e.items,"items-length":e.itemsLength,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:v.value,page:s.page,"onUpdate:page":[R[7]||(R[7]=C=>s.page=C),L],modelValue:c.value,"onUpdate:modelValue":R[8]||(R[8]=C=>c.value=C),"onClick:row":U,"onUpdate:expanded":P,"onUpdate:groupBy":V,"onUpdate:itemsPerPage":p,"onUpdate:options":S,"onUpdate:sortBy":N},t.createSlots({top:t.withCtx(C=>[t.renderSlot(w.$slots,"top",t.normalizeProps(t.guardReactiveProps(C)))]),headers:t.withCtx(C=>[t.renderSlot(w.$slots,"headers",t.normalizeProps(t.guardReactiveProps(C)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.headers,(H,J)=>(t.openBlock(),t.createElementBlock("tr",{key:J},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(H,G=>t.renderSlot(w.$slots,`header.${G.key}`,t.normalizeProps(t.mergeProps({key:G.key},H)),()=>[G.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(G)]),rowspan:G.rowspan,colspan:G.colspan},[A(G)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(y.value),onClick:()=>C.toggleSort(G)},t.toDisplayString(G.title),13,Lu)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(y.value)},t.toDisplayString(G.title),5)),C.isSorted(G)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:C.getSortIcon(G)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(G)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(G.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:_(G.key),onClick:le=>B(G.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:le=>x(G.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Fu)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:G.rowspan,colspan:G.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(C),onClick:le=>D(C)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,Du))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",_u,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(C.columns),(H,J)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:J},[H.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[H.filterMode===t.unref(tt).SELECTION?(t.openBlock(),t.createBlock(qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:H.filterItems,"list-props":{lines:!1,density:"compact"},modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>v.value=H.filterValue]},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock($t,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>v.value=H.filterValue]},{append:t.withCtx(()=>[t.createVNode(st,null,{activator:t.withCtx(({props:G})=>[t.createVNode(ue,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},G),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(it,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,G=>(t.openBlock(),t.createBlock(Be,{key:G.value,title:G.title,active:H.filterType===G.value,onClick:le=>M(H,G)},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(C=>[t.renderSlot(w.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(C)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:C.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${C.item.depth*3}`),size:"small",onClick:H=>C.toggleGroup(C.item),icon:C.isGroupOpen(C.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(C.item,C.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:H=>T(C.item.key),icon:"$delete"},null,8,["onClick"])],8,Mu)])])]),"expanded-row":t.withCtx(C=>[t.renderSlot(w.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(C)))]),"no-data":t.withCtx(()=>[t.renderSlot(w.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(zt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[zu,t.createElementVNode("div",Hu,[t.createVNode(qe,{"hide-details":"",density:"compact",variant:"outlined","item-title":"title","item-value":"value",modelValue:s.itemsPerPage,"onUpdate:modelValue":[R[3]||(R[3]=C=>s.itemsPerPage=C),R[4]||(R[4]=C=>s.page=1)],items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Rt,{class:"ml-2",density:"comfortable",rounded:"circle","total-visible":"7","active-color":e.color,"first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,length:h.value,modelValue:s.page,"onUpdate:modelValue":R[5]||(R[5]=C=>s.page=C)},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","length","modelValue"]),t.createVNode(_o),t.createElementVNode("span",ju,t.toDisplayString(m.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ue,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:R[6]||(R[6]=C=>w.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(f.value,C=>({name:`item.${C.key}`,fn:t.withCtx(H=>[t.renderSlot(w.$slots,`item.${C.key}`,t.normalizeProps(t.guardReactiveProps(H)),()=>[typeof C.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(C.formatCellValue(H.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(H.value),1)],64))])])}))]),1032,["height","density","headers","items","items-length","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(w.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(w.$slots,"bottom-area")]),_:3},8,["color"]))}},Wu={install:e=>{e.component("VDatatablePlus",Mo),e.component("VDatatableServerPlus",zo),e.component("ResizeableSplitter",Ht)}};exports.FILTER_MODE=tt;exports.FILTER_TYPE=oe;exports.ResizeableSplitter=Ht;exports.VDatatablePlus=Mo;exports.VDatatableServerPlus=zo;exports.default=Wu;
@@ -11377,7 +11377,7 @@ const Br = H({
11377
11377
  },
11378
11378
  itemsPerPage: {
11379
11379
  type: Number,
11380
- default: 10
11380
+ default: 50
11381
11381
  },
11382
11382
  tableHeight: {
11383
11383
  type: [String, Number],
@@ -11526,10 +11526,10 @@ const Br = H({
11526
11526
  }
11527
11527
  }), v = b({
11528
11528
  get() {
11529
- return t.search || l;
11529
+ return t.search || l.value;
11530
11530
  },
11531
11531
  set(x) {
11532
- l = x;
11532
+ l.value = x;
11533
11533
  }
11534
11534
  }), m = b({
11535
11535
  get() {
@@ -13,4 +13,4 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
13
13
  </table>
14
14
  </div></div>
15
15
  </body>
16
- </html>`,N=window.open("","","width= 800, height = 500, resizable = 1, scrollbars = 1");N==null||N.document.write(L),N==null||N.document.close(),N==null||N.focus(),N==null||N.print()}return(P,V)=>(t.openBlock(),t.createBlock(el,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(gt,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":V[2]||(V[2]=p=>P.$emit("columnMenuOpened",p))},{activator:t.withCtx(({props:p})=>[t.createVNode(ce,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},p),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=p=>h.value=p),"item-key":"key",handle:".cursor-move",onChange:V[1]||(V[1]=p=>P.$emit("columnMenuDragChange",p))},{item:t.withCtx(({element:p})=>[t.createVNode($e,null,{prepend:t.withCtx(()=>[t.createVNode(zl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:p.isShow,"onUpdate:modelValue":S=>p.isShow=S,onChange:S=>P.$emit("columnMenuChecked",{element:p,$event:S})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(p.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(jn,null,{default:t.withCtx(()=>[t.renderSlot(P.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(P.$slots,"pre-header-commands"),e.showPrint?(t.openBlock(),t.createBlock(ce,{key:1,onClick:U,"prepend-icon":e.printIcon},{default:t.withCtx(()=>[t.createTextVNode("PRINT")]),_:1},8,["prepend-icon"])):t.createCommentVNode("",!0),t.renderSlot(P.$slots,"post-header-commands")]),_:3})),t.renderSlot(P.$slots,"header-expand-section"),t.createVNode(yt,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(kc,{"fixed-header":"",hover:"",ref_key:"customDataTable",ref:o,class:"dt-header-border",height:e.tableHeight,density:e.density,headers:d.value,items:g.value,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:e.search,page:s.page,"onUpdate:page":V[7]||(V[7]=p=>s.page=p),modelValue:u.value,"onUpdate:modelValue":V[8]||(V[8]=p=>u.value=p),"onClick:row":z},t.createSlots({top:t.withCtx(p=>[t.renderSlot(P.$slots,"top",t.normalizeProps(t.guardReactiveProps(p)))]),headers:t.withCtx(p=>[t.renderSlot(P.$slots,"headers",t.normalizeProps(t.guardReactiveProps(p)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.headers,(S,L)=>(t.openBlock(),t.createElementBlock("tr",{key:L},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S,N=>t.renderSlot(P.$slots,`header.${N.key}`,t.normalizeProps(t.mergeProps({key:N.key},S)),()=>[N.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(N)]),rowspan:N.rowspan,colspan:N.colspan},[A(N)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(v.value),onClick:()=>p.toggleSort(N)},t.toDisplayString(N.title),13,Tc)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(v.value)},t.toDisplayString(N.title),5)),p.isSorted(N)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:p.getSortIcon(N)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(N)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(N.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:M(N.key),onClick:w=>B(N.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:w=>x(N.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Bc)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:N.rowspan,colspan:N.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(p),onClick:w=>D(p)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,Ac))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Ec,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(p.columns),(S,L)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:L},[S.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S.filterMode===t.unref(Je).SELECTION?(t.openBlock(),t.createBlock(Qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:S.filterItems,modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N,"list-props":{lines:!1,density:"compact"}},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock(Ht,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N},{append:t.withCtx(()=>[t.createVNode(gt,null,{activator:t.withCtx(({props:N})=>[t.createVNode(ce,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},N),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c,N=>(t.openBlock(),t.createBlock($e,{key:N.value,title:N.title,active:S.filterType===N.value,onClick:w=>S.filterType=N.value},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(p=>[t.renderSlot(P.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(p)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:p.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${p.item.depth*3}`),size:"small",onClick:S=>p.toggleGroup(p.item),icon:p.isGroupOpen(p.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(p.item,p.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:S=>T(p.item.key),icon:"$delete"},null,8,["onClick"])],8,Rc)])])]),"expanded-row":t.withCtx(p=>[t.renderSlot(P.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(p)))]),"no-data":t.withCtx(()=>[t.renderSlot(P.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[Oc,t.createElementVNode("div",$c,[t.createVNode(Qe,{"hide-details":"",density:"compact",variant:"outlined",modelValue:s.itemsPerPage,"onUpdate:modelValue":[V[3]||(V[3]=p=>s.itemsPerPage=p),V[4]||(V[4]=p=>s.page=1)],"item-title":"title","item-value":"value",items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Dt,{class:"ml-2",density:"comfortable",rounded:"circle","active-color":e.color,"total-visible":"7","first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,modelValue:s.page,"onUpdate:modelValue":V[5]||(V[5]=p=>s.page=p),length:f.value},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","modelValue","length"]),t.createVNode(Do),t.createElementVNode("span",Fc,t.toDisplayString(y.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ce,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:V[6]||(V[6]=p=>P.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(d.value,p=>({name:`item.${p.key}`,fn:t.withCtx(S=>[t.renderSlot(P.$slots,`item.${p.key}`,t.normalizeProps(t.guardReactiveProps(S)),()=>[typeof p.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.formatCellValue(S.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(S.value),1)],64))])])}))]),1032,["height","density","headers","items","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(P.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(P.$slots,"bottom-area")]),_:3},8,["color"]))}},Lc=["rowspan","colspan"],Dc=["onClick"],_c=["rowspan","colspan"],Mc={key:0},zc=["colspan"],Hc=t.createElementVNode("span",{class:"text-caption mx-1"},"Items per page",-1),jc={style:{width:"100px"}},Wc={class:"pr-2"},Mo={__name:"VDatatableServerPlus",props:{hideTitleBar:{type:Boolean,default:!1},hideColumnMenu:{type:Boolean,default:!1},showRightPane:{type:Boolean,default:!1},hideFilterRow:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideRefreshButton:{type:Boolean,default:!1},showExpand:{type:Boolean,default:!1},showSelect:{type:Boolean,default:!1},selectOnRow:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},highlightRow:{type:Boolean,default:!1},rightPaneFixed:{type:Boolean,default:!0},rightPaneWidth:{type:Number,default:20},dragMenuHeight:{type:Number,default:250},itemsPerPage:{type:Number,default:10},tableHeight:{type:[String,Number],default:"50vh"},loading:{type:[String,Boolean],default:!1},title:String,color:String,itemValue:String,itemsLength:Number,headerTextSize:String,headerIconSize:String,sortByColumn:String,search:String,modelValue:{type:Array,default:[]},selectedRow:{type:[Object,String,Number,Boolean],default:null},rowProps:{type:[Object,Function]},items:{type:Array,default:[]},headers:{required:!0,type:Array,default:[]},itemsPerPageOptions:{type:Array,default:[{value:50,title:"50"},{value:100,title:"100"},{value:200,title:"200"},{value:300,title:"300"},{value:500,title:"500"}]},density:{type:String,default:"compact"},selectStrategy:{type:String,default:"page"},dragMenuIcon:{type:String,default:"$menu"},removeSearchIcon:{type:String,default:"mdi-magnify-minus"},dragItemIcon:{type:String,default:"mdi-drag-vertical"},refreshIcon:{type:String,default:"$loading"},filterIcon:{type:String,default:"mdi-filter"},sortAscIcon:{type:String,default:"$sortAsc"},sortDescIcon:{type:String,default:"$sortDesc"},groupByIcon:{type:String,default:"mdi-table-plus"},groupSortAscIcon:{type:String,default:"mdi-sort-ascending"},groupSortDescIcon:{type:String,default:"mdi-sort-descending"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"}},emits:["update:modelValue","update:headers","update:selectedRow","update:expanded","update:groupBy","update:itemsPerPage","update:options","update:page","update:sortBy","columnMenuOpened","columnMenuDragChange","columnMenuChecked","refreshClick","row"],setup(e,{emit:l}){const n=e,a=l,o=t.ref(""),r=t.ref([]),i=t.ref(null),s=t.reactive({page:1,itemsPerPage:n.itemsPerPage}),c=t.reactive([{title:"Contains",value:le.CONTAINS},{title:"Does not contain",value:le.NOT_CONTAINS},{title:"Is equal to",value:le.IS_EQUAL_TO},{title:"Is not equal to",value:le.IS_NOT_EQUAL_TO},{title:"Starts with",value:le.START_WITH},{title:"Ends with",value:le.END_WITH}]),u=t.computed({get(){return n.modelValue},set(w){a("update:modelValue",w)}}),m=t.computed({get(){return n.search||o},set(w){o=w}}),h=t.computed({get(){return n.selectedRow},set(w){a("update:selectedRow",w)}}),d=t.computed({get(){return n.headers},set(w){a("update:headers",w)}}),f=t.computed(()=>d.value.filter(w=>w.isShow)),y=t.computed(()=>{let w=1;return s.itemsPerPage==null||n.itemsLength<=0?w:(w=Math.ceil(n.itemsLength/s.itemsPerPage),w>0?w:1)}),g=t.computed(()=>{if(n.itemsLength<=0)return`${n.itemsLength} items`;if(s.itemsPerPage<=0||s.itemsPerPage>n.itemsLength)return`1 - ${n.itemsLength} items`;const w=(s.page-1)*s.itemsPerPage+1;let R=s.page*s.itemsPerPage;return R>n.itemsLength&&(R=n.itemsLength),`${w} - ${R} of ${n.itemsLength} items`}),v=t.computed(()=>{var w;if(((w=n.headerTextSize)==null?void 0:w.length)>0)return{fontSize:n.headerTextSize}}),b=t.computed(()=>{var w;return((w=n.headerIconSize)==null?void 0:w.length)>0?{fontSize:n.headerIconSize}:{fontSize:"12px"}});function k(w){return w&&w.length>0?w.map(R=>{const C=d.value.find(H=>H.key===R.key);return C||(R.filterable=!1,R)}):w}function A(w){return w.sortable&&!(w.children&&w.children.length>0)}function $(w){return w.groupable===!0&&!(w.children&&w.children.length>0)}function E(w){return w.allSelected&&w.someSelected?"$checkboxOn":w.someSelected&&!w.allSelected?"$checkboxIndeterminate":"$checkboxOff"}function D(w){w.allSelected&&w.someSelected?w.selectAll(!1):w.selectAll(!0)}function x(w){var R,C;((R=r.value)==null?void 0:R.findIndex(H=>H.key===w))===-1&&((C=r.value)==null||C.push({key:w,order:"asc"}))}function T(w){var C,H;const R=(C=r.value)==null?void 0:C.findIndex(J=>J.key===w);R!==-1&&((H=r.value)==null||H.splice(R,1))}function B(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);R.order=R.order==="asc"?"desc":"asc"}function M(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);return R?R.order==="asc"?n.groupSortAscIcon:n.groupSortDescIcon:n.groupSortAscIcon}function F(w){var R;return((R=r.value)==null?void 0:R.findIndex(C=>C.key===w))!==-1}function I(w,R){const C=R.find(H=>H.key===w.key);return C?`${C.title} : ${typeof C.formatCellValue=="function"?C.formatCellValue(w.value,C.formatParameter):w.value} (${w.items.length})`:`${w.value} (${w.items.length})`}function O(w){if(w){const R=w.width;if(R>0||typeof R=="string"&&R.length>0)return{width:`${R}px`,minWidth:`${R}px`,textAlign:w.align}}return{}}function z(w,R){var C;w.filterType=R.value,((C=w.filterValue)==null?void 0:C.length)>0&&(this.dtSearchModel=`!${this.dtSearchModel}`)}function j(){this.tableHeaders.forEach(w=>{w.filterValue=w.filterMode===Je.SELECTION?w.allFilterValue:null}),this.dtSearchModel=""}function U(w,R){var C,H,J,G;if(a("row",{$event:w,param:R}),n.highlightRow){if((C=i.value)==null||C.classList.remove("dt-row-highlight"),i.value===w.currentTarget){n.selectOnRow&&R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem),i.value=null,h.value=null;return}i.value=w.currentTarget,(H=i.value)==null||H.classList.add("dt-row-highlight"),n.selectOnRow&&!R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem)}else n.selectOnRow&&R.toggleSelect(R.internalItem);n.returnObject&&(h.value=R.item),((J=n.itemValue)==null?void 0:J.length)>0&&(h.value=((G=R.item)==null?void 0:G[n.itemValue])??null)}function P(w){a("update:expanded",w)}function V(w){a("update:groupBy",w)}function p(w){a("update:itemsPerPage",w)}function S(w){a("update:options",w)}function L(w){a("update:page",w)}function N(w){a("update:sortBy",w)}return(w,R)=>(t.openBlock(),t.createBlock(el,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(gt,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":R[2]||(R[2]=C=>w.$emit("columnMenuOpened",C))},{activator:t.withCtx(({props:C})=>[t.createVNode(ce,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},C),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{modelValue:d.value,"onUpdate:modelValue":R[0]||(R[0]=C=>d.value=C),"item-key":"key",handle:".cursor-move",onChange:R[1]||(R[1]=C=>w.$emit("columnMenuDragChange",C))},{item:t.withCtx(({element:C})=>[t.createVNode($e,null,{prepend:t.withCtx(()=>[t.createVNode(zl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:C.isShow,"onUpdate:modelValue":H=>C.isShow=H,onChange:H=>w.$emit("columnMenuChecked",{element:C,$event:H})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(C.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(jn,null,{default:t.withCtx(()=>[t.renderSlot(w.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(w.$slots,"pre-header-commands"),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ce,{key:1,onClick:j,"prepend-icon":e.removeSearchIcon},{default:t.withCtx(()=>[t.createTextVNode("REMOVE SEARCH")]),_:1},8,["prepend-icon"])),t.renderSlot(w.$slots,"post-header-commands")]),_:3})),t.renderSlot(w.$slots,"header-expand-section"),t.createVNode(yt,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(xc,{"fixed-header":"",hover:"",class:"dt-header-border",height:e.tableHeight,density:e.density,headers:f.value,items:e.items,"items-length":e.itemsLength,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:m.value,page:s.page,"onUpdate:page":[R[7]||(R[7]=C=>s.page=C),L],modelValue:u.value,"onUpdate:modelValue":R[8]||(R[8]=C=>u.value=C),"onClick:row":U,"onUpdate:expanded":P,"onUpdate:groupBy":V,"onUpdate:itemsPerPage":p,"onUpdate:options":S,"onUpdate:sortBy":N},t.createSlots({top:t.withCtx(C=>[t.renderSlot(w.$slots,"top",t.normalizeProps(t.guardReactiveProps(C)))]),headers:t.withCtx(C=>[t.renderSlot(w.$slots,"headers",t.normalizeProps(t.guardReactiveProps(C)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.headers,(H,J)=>(t.openBlock(),t.createElementBlock("tr",{key:J},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(H,G=>t.renderSlot(w.$slots,`header.${G.key}`,t.normalizeProps(t.mergeProps({key:G.key},H)),()=>[G.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(G)]),rowspan:G.rowspan,colspan:G.colspan},[A(G)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(v.value),onClick:()=>C.toggleSort(G)},t.toDisplayString(G.title),13,Dc)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(v.value)},t.toDisplayString(G.title),5)),C.isSorted(G)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:C.getSortIcon(G)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(G)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(G.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:M(G.key),onClick:oe=>B(G.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:oe=>x(G.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Lc)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:G.rowspan,colspan:G.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(C),onClick:oe=>D(C)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,_c))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Mc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(C.columns),(H,J)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:J},[H.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[H.filterMode===t.unref(Je).SELECTION?(t.openBlock(),t.createBlock(Qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:H.filterItems,"list-props":{lines:!1,density:"compact"},modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>m.value=H.filterValue]},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock(Ht,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>m.value=H.filterValue]},{append:t.withCtx(()=>[t.createVNode(gt,null,{activator:t.withCtx(({props:G})=>[t.createVNode(ce,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},G),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c,G=>(t.openBlock(),t.createBlock($e,{key:G.value,title:G.title,active:H.filterType===G.value,onClick:oe=>z(H,G)},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(C=>[t.renderSlot(w.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(C)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:C.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${C.item.depth*3}`),size:"small",onClick:H=>C.toggleGroup(C.item),icon:C.isGroupOpen(C.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(C.item,C.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:H=>T(C.item.key),icon:"$delete"},null,8,["onClick"])],8,zc)])])]),"expanded-row":t.withCtx(C=>[t.renderSlot(w.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(C)))]),"no-data":t.withCtx(()=>[t.renderSlot(w.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[Hc,t.createElementVNode("div",jc,[t.createVNode(Qe,{"hide-details":"",density:"compact",variant:"outlined","item-title":"title","item-value":"value",modelValue:s.itemsPerPage,"onUpdate:modelValue":[R[3]||(R[3]=C=>s.itemsPerPage=C),R[4]||(R[4]=C=>s.page=1)],items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Dt,{class:"ml-2",density:"comfortable",rounded:"circle","total-visible":"7","active-color":e.color,"first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,length:y.value,modelValue:s.page,"onUpdate:modelValue":R[5]||(R[5]=C=>s.page=C)},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","length","modelValue"]),t.createVNode(Do),t.createElementVNode("span",Wc,t.toDisplayString(g.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ce,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:R[6]||(R[6]=C=>w.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(f.value,C=>({name:`item.${C.key}`,fn:t.withCtx(H=>[t.renderSlot(w.$slots,`item.${C.key}`,t.normalizeProps(t.guardReactiveProps(H)),()=>[typeof C.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(C.formatCellValue(H.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(H.value),1)],64))])])}))]),1032,["height","density","headers","items","items-length","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(w.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(w.$slots,"bottom-area")]),_:3},8,["color"]))}},Gc={install:e=>{e.component("VDatatablePlus",_o),e.component("VDatatableServerPlus",Mo),e.component("ResizeableSplitter",yt)}};fe.FILTER_MODE=Je,fe.FILTER_TYPE=le,fe.ResizeableSplitter=yt,fe.VDatatablePlus=_o,fe.VDatatableServerPlus=Mo,fe.default=Gc,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
16
+ </html>`,N=window.open("","","width= 800, height = 500, resizable = 1, scrollbars = 1");N==null||N.document.write(L),N==null||N.document.close(),N==null||N.focus(),N==null||N.print()}return(P,V)=>(t.openBlock(),t.createBlock(el,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(gt,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":V[2]||(V[2]=p=>P.$emit("columnMenuOpened",p))},{activator:t.withCtx(({props:p})=>[t.createVNode(ce,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},p),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=p=>h.value=p),"item-key":"key",handle:".cursor-move",onChange:V[1]||(V[1]=p=>P.$emit("columnMenuDragChange",p))},{item:t.withCtx(({element:p})=>[t.createVNode($e,null,{prepend:t.withCtx(()=>[t.createVNode(zl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:p.isShow,"onUpdate:modelValue":S=>p.isShow=S,onChange:S=>P.$emit("columnMenuChecked",{element:p,$event:S})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(p.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(jn,null,{default:t.withCtx(()=>[t.renderSlot(P.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(P.$slots,"pre-header-commands"),e.showPrint?(t.openBlock(),t.createBlock(ce,{key:1,onClick:U,"prepend-icon":e.printIcon},{default:t.withCtx(()=>[t.createTextVNode("PRINT")]),_:1},8,["prepend-icon"])):t.createCommentVNode("",!0),t.renderSlot(P.$slots,"post-header-commands")]),_:3})),t.renderSlot(P.$slots,"header-expand-section"),t.createVNode(yt,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(kc,{"fixed-header":"",hover:"",ref_key:"customDataTable",ref:o,class:"dt-header-border",height:e.tableHeight,density:e.density,headers:d.value,items:g.value,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:e.search,page:s.page,"onUpdate:page":V[7]||(V[7]=p=>s.page=p),modelValue:u.value,"onUpdate:modelValue":V[8]||(V[8]=p=>u.value=p),"onClick:row":z},t.createSlots({top:t.withCtx(p=>[t.renderSlot(P.$slots,"top",t.normalizeProps(t.guardReactiveProps(p)))]),headers:t.withCtx(p=>[t.renderSlot(P.$slots,"headers",t.normalizeProps(t.guardReactiveProps(p)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.headers,(S,L)=>(t.openBlock(),t.createElementBlock("tr",{key:L},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S,N=>t.renderSlot(P.$slots,`header.${N.key}`,t.normalizeProps(t.mergeProps({key:N.key},S)),()=>[N.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(N)]),rowspan:N.rowspan,colspan:N.colspan},[A(N)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(v.value),onClick:()=>p.toggleSort(N)},t.toDisplayString(N.title),13,Tc)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(v.value)},t.toDisplayString(N.title),5)),p.isSorted(N)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:p.getSortIcon(N)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(N)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(N.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:M(N.key),onClick:w=>B(N.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:w=>x(N.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Bc)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:N.rowspan,colspan:N.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(p),onClick:w=>D(p)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,Ac))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Ec,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(p.columns),(S,L)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:L},[S.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S.filterMode===t.unref(Je).SELECTION?(t.openBlock(),t.createBlock(Qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:S.filterItems,modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N,"list-props":{lines:!1,density:"compact"}},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock(Ht,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:S.filterValue,"onUpdate:modelValue":N=>S.filterValue=N},{append:t.withCtx(()=>[t.createVNode(gt,null,{activator:t.withCtx(({props:N})=>[t.createVNode(ce,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},N),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c,N=>(t.openBlock(),t.createBlock($e,{key:N.value,title:N.title,active:S.filterType===N.value,onClick:w=>S.filterType=N.value},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(p=>[t.renderSlot(P.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(p)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:p.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${p.item.depth*3}`),size:"small",onClick:S=>p.toggleGroup(p.item),icon:p.isGroupOpen(p.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(p.item,p.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:S=>T(p.item.key),icon:"$delete"},null,8,["onClick"])],8,Rc)])])]),"expanded-row":t.withCtx(p=>[t.renderSlot(P.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(p)))]),"no-data":t.withCtx(()=>[t.renderSlot(P.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[Oc,t.createElementVNode("div",$c,[t.createVNode(Qe,{"hide-details":"",density:"compact",variant:"outlined",modelValue:s.itemsPerPage,"onUpdate:modelValue":[V[3]||(V[3]=p=>s.itemsPerPage=p),V[4]||(V[4]=p=>s.page=1)],"item-title":"title","item-value":"value",items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Dt,{class:"ml-2",density:"comfortable",rounded:"circle","active-color":e.color,"total-visible":"7","first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,modelValue:s.page,"onUpdate:modelValue":V[5]||(V[5]=p=>s.page=p),length:f.value},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","modelValue","length"]),t.createVNode(Do),t.createElementVNode("span",Fc,t.toDisplayString(y.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ce,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:V[6]||(V[6]=p=>P.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(d.value,p=>({name:`item.${p.key}`,fn:t.withCtx(S=>[t.renderSlot(P.$slots,`item.${p.key}`,t.normalizeProps(t.guardReactiveProps(S)),()=>[typeof p.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.formatCellValue(S.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(S.value),1)],64))])])}))]),1032,["height","density","headers","items","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(P.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(P.$slots,"bottom-area")]),_:3},8,["color"]))}},Lc=["rowspan","colspan"],Dc=["onClick"],_c=["rowspan","colspan"],Mc={key:0},zc=["colspan"],Hc=t.createElementVNode("span",{class:"text-caption mx-1"},"Items per page",-1),jc={style:{width:"100px"}},Wc={class:"pr-2"},Mo={__name:"VDatatableServerPlus",props:{hideTitleBar:{type:Boolean,default:!1},hideColumnMenu:{type:Boolean,default:!1},showRightPane:{type:Boolean,default:!1},hideFilterRow:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideRefreshButton:{type:Boolean,default:!1},showExpand:{type:Boolean,default:!1},showSelect:{type:Boolean,default:!1},selectOnRow:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},highlightRow:{type:Boolean,default:!1},rightPaneFixed:{type:Boolean,default:!0},rightPaneWidth:{type:Number,default:20},dragMenuHeight:{type:Number,default:250},itemsPerPage:{type:Number,default:50},tableHeight:{type:[String,Number],default:"50vh"},loading:{type:[String,Boolean],default:!1},title:String,color:String,itemValue:String,itemsLength:Number,headerTextSize:String,headerIconSize:String,sortByColumn:String,search:String,modelValue:{type:Array,default:[]},selectedRow:{type:[Object,String,Number,Boolean],default:null},rowProps:{type:[Object,Function]},items:{type:Array,default:[]},headers:{required:!0,type:Array,default:[]},itemsPerPageOptions:{type:Array,default:[{value:50,title:"50"},{value:100,title:"100"},{value:200,title:"200"},{value:300,title:"300"},{value:500,title:"500"}]},density:{type:String,default:"compact"},selectStrategy:{type:String,default:"page"},dragMenuIcon:{type:String,default:"$menu"},removeSearchIcon:{type:String,default:"mdi-magnify-minus"},dragItemIcon:{type:String,default:"mdi-drag-vertical"},refreshIcon:{type:String,default:"$loading"},filterIcon:{type:String,default:"mdi-filter"},sortAscIcon:{type:String,default:"$sortAsc"},sortDescIcon:{type:String,default:"$sortDesc"},groupByIcon:{type:String,default:"mdi-table-plus"},groupSortAscIcon:{type:String,default:"mdi-sort-ascending"},groupSortDescIcon:{type:String,default:"mdi-sort-descending"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"}},emits:["update:modelValue","update:headers","update:selectedRow","update:expanded","update:groupBy","update:itemsPerPage","update:options","update:page","update:sortBy","columnMenuOpened","columnMenuDragChange","columnMenuChecked","refreshClick","row"],setup(e,{emit:l}){const n=e,a=l,o=t.ref(""),r=t.ref([]),i=t.ref(null),s=t.reactive({page:1,itemsPerPage:n.itemsPerPage}),c=t.reactive([{title:"Contains",value:le.CONTAINS},{title:"Does not contain",value:le.NOT_CONTAINS},{title:"Is equal to",value:le.IS_EQUAL_TO},{title:"Is not equal to",value:le.IS_NOT_EQUAL_TO},{title:"Starts with",value:le.START_WITH},{title:"Ends with",value:le.END_WITH}]),u=t.computed({get(){return n.modelValue},set(w){a("update:modelValue",w)}}),m=t.computed({get(){return n.search||o.value},set(w){o.value=w}}),h=t.computed({get(){return n.selectedRow},set(w){a("update:selectedRow",w)}}),d=t.computed({get(){return n.headers},set(w){a("update:headers",w)}}),f=t.computed(()=>d.value.filter(w=>w.isShow)),y=t.computed(()=>{let w=1;return s.itemsPerPage==null||n.itemsLength<=0?w:(w=Math.ceil(n.itemsLength/s.itemsPerPage),w>0?w:1)}),g=t.computed(()=>{if(n.itemsLength<=0)return`${n.itemsLength} items`;if(s.itemsPerPage<=0||s.itemsPerPage>n.itemsLength)return`1 - ${n.itemsLength} items`;const w=(s.page-1)*s.itemsPerPage+1;let R=s.page*s.itemsPerPage;return R>n.itemsLength&&(R=n.itemsLength),`${w} - ${R} of ${n.itemsLength} items`}),v=t.computed(()=>{var w;if(((w=n.headerTextSize)==null?void 0:w.length)>0)return{fontSize:n.headerTextSize}}),b=t.computed(()=>{var w;return((w=n.headerIconSize)==null?void 0:w.length)>0?{fontSize:n.headerIconSize}:{fontSize:"12px"}});function k(w){return w&&w.length>0?w.map(R=>{const C=d.value.find(H=>H.key===R.key);return C||(R.filterable=!1,R)}):w}function A(w){return w.sortable&&!(w.children&&w.children.length>0)}function $(w){return w.groupable===!0&&!(w.children&&w.children.length>0)}function E(w){return w.allSelected&&w.someSelected?"$checkboxOn":w.someSelected&&!w.allSelected?"$checkboxIndeterminate":"$checkboxOff"}function D(w){w.allSelected&&w.someSelected?w.selectAll(!1):w.selectAll(!0)}function x(w){var R,C;((R=r.value)==null?void 0:R.findIndex(H=>H.key===w))===-1&&((C=r.value)==null||C.push({key:w,order:"asc"}))}function T(w){var C,H;const R=(C=r.value)==null?void 0:C.findIndex(J=>J.key===w);R!==-1&&((H=r.value)==null||H.splice(R,1))}function B(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);R.order=R.order==="asc"?"desc":"asc"}function M(w){var C;const R=(C=r.value)==null?void 0:C.find(H=>H.key===w);return R?R.order==="asc"?n.groupSortAscIcon:n.groupSortDescIcon:n.groupSortAscIcon}function F(w){var R;return((R=r.value)==null?void 0:R.findIndex(C=>C.key===w))!==-1}function I(w,R){const C=R.find(H=>H.key===w.key);return C?`${C.title} : ${typeof C.formatCellValue=="function"?C.formatCellValue(w.value,C.formatParameter):w.value} (${w.items.length})`:`${w.value} (${w.items.length})`}function O(w){if(w){const R=w.width;if(R>0||typeof R=="string"&&R.length>0)return{width:`${R}px`,minWidth:`${R}px`,textAlign:w.align}}return{}}function z(w,R){var C;w.filterType=R.value,((C=w.filterValue)==null?void 0:C.length)>0&&(this.dtSearchModel=`!${this.dtSearchModel}`)}function j(){this.tableHeaders.forEach(w=>{w.filterValue=w.filterMode===Je.SELECTION?w.allFilterValue:null}),this.dtSearchModel=""}function U(w,R){var C,H,J,G;if(a("row",{$event:w,param:R}),n.highlightRow){if((C=i.value)==null||C.classList.remove("dt-row-highlight"),i.value===w.currentTarget){n.selectOnRow&&R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem),i.value=null,h.value=null;return}i.value=w.currentTarget,(H=i.value)==null||H.classList.add("dt-row-highlight"),n.selectOnRow&&!R.isSelected(R.internalItem)&&R.toggleSelect(R.internalItem)}else n.selectOnRow&&R.toggleSelect(R.internalItem);n.returnObject&&(h.value=R.item),((J=n.itemValue)==null?void 0:J.length)>0&&(h.value=((G=R.item)==null?void 0:G[n.itemValue])??null)}function P(w){a("update:expanded",w)}function V(w){a("update:groupBy",w)}function p(w){a("update:itemsPerPage",w)}function S(w){a("update:options",w)}function L(w){a("update:page",w)}function N(w){a("update:sortBy",w)}return(w,R)=>(t.openBlock(),t.createBlock(el,{variant:"outlined",color:e.color},{default:t.withCtx(()=>[e.hideTitleBar?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"compact"},{default:t.withCtx(()=>[e.hideColumnMenu?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(gt,{key:0,"close-on-content-click":!1,"onUpdate:modelValue":R[2]||(R[2]=C=>w.$emit("columnMenuOpened",C))},{activator:t.withCtx(({props:C})=>[t.createVNode(ce,t.mergeProps({size:"small",color:e.color,icon:e.dragMenuIcon},C),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:"one","max-height":e.dragMenuHeight},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{modelValue:d.value,"onUpdate:modelValue":R[0]||(R[0]=C=>d.value=C),"item-key":"key",handle:".cursor-move",onChange:R[1]||(R[1]=C=>w.$emit("columnMenuDragChange",C))},{item:t.withCtx(({element:C})=>[t.createVNode($e,null,{prepend:t.withCtx(()=>[t.createVNode(zl,{start:""},{default:t.withCtx(()=>[t.createVNode(Xe,{color:e.color,modelValue:C.isShow,"onUpdate:modelValue":H=>C.isShow=H,onChange:H=>w.$emit("columnMenuChecked",{element:C,$event:H})},null,8,["color","modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),append:t.withCtx(()=>[t.createVNode(Q,{size:"small",density:"compact",class:"cursor-move",icon:e.dragItemIcon},null,8,["icon"])]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(C.title)+" ",1)]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})),t.createVNode(jn,null,{default:t.withCtx(()=>[t.renderSlot(w.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),_:3}),t.renderSlot(w.$slots,"pre-header-commands"),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ce,{key:1,onClick:j,"prepend-icon":e.removeSearchIcon},{default:t.withCtx(()=>[t.createTextVNode("REMOVE SEARCH")]),_:1},8,["prepend-icon"])),t.renderSlot(w.$slots,"post-header-commands")]),_:3})),t.renderSlot(w.$slots,"header-expand-section"),t.createVNode(yt,{"splitter-position":100-(e.rightPaneWidth>100?80:e.rightPaneWidth),"show-splitter":e.showRightPane,"is-fixed":e.rightPaneFixed},{"left-pane":t.withCtx(()=>[t.createVNode(xc,{"fixed-header":"",hover:"",class:"dt-header-border",height:e.tableHeight,density:e.density,headers:f.value,items:e.items,"items-length":e.itemsLength,"group-by":r.value,"show-expand":e.showExpand,"show-select":e.showSelect,"select-strategy":e.selectStrategy,"return-object":e.returnObject,"item-value":e.itemValue,"items-per-page":s.itemsPerPage,"row-props":e.rowProps,"sort-asc-icon":e.sortAscIcon,"sort-desc-icon":e.sortDescIcon,loading:e.loading,color:e.color,search:m.value,page:s.page,"onUpdate:page":[R[7]||(R[7]=C=>s.page=C),L],modelValue:u.value,"onUpdate:modelValue":R[8]||(R[8]=C=>u.value=C),"onClick:row":U,"onUpdate:expanded":P,"onUpdate:groupBy":V,"onUpdate:itemsPerPage":p,"onUpdate:options":S,"onUpdate:sortBy":N},t.createSlots({top:t.withCtx(C=>[t.renderSlot(w.$slots,"top",t.normalizeProps(t.guardReactiveProps(C)))]),headers:t.withCtx(C=>[t.renderSlot(w.$slots,"headers",t.normalizeProps(t.guardReactiveProps(C)),()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.headers,(H,J)=>(t.openBlock(),t.createElementBlock("tr",{key:J},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(H,G=>t.renderSlot(w.$slots,`header.${G.key}`,t.normalizeProps(t.mergeProps({key:G.key},H)),()=>[G.key!=="data-table-select"?(t.openBlock(),t.createElementBlock("th",{key:0,class:"bg-grey-lighten-4 dt-header-border",style:t.normalizeStyle([O(G)]),rowspan:G.rowspan,colspan:G.colspan},[A(G)?(t.openBlock(),t.createElementBlock("span",{key:0,class:"mr-2 cursor-pointer",style:t.normalizeStyle(v.value),onClick:()=>C.toggleSort(G)},t.toDisplayString(G.title),13,Dc)):(t.openBlock(),t.createElementBlock("span",{key:1,style:t.normalizeStyle(v.value)},t.toDisplayString(G.title),5)),C.isSorted(G)?(t.openBlock(),t.createBlock(Q,{key:2,style:t.normalizeStyle(b.value),icon:C.getSortIcon(G)},null,8,["style","icon"])):t.createCommentVNode("",!0),$(G)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[F(G.key)?(t.openBlock(),t.createBlock(Q,{key:0,class:"cursor-pointer",style:t.normalizeStyle(b.value),icon:M(G.key),onClick:oe=>B(G.key)},null,8,["style","icon","onClick"])):(t.openBlock(),t.createBlock(Q,{key:1,style:t.normalizeStyle(b.value),class:"cursor-pointer",icon:e.groupByIcon,onClick:oe=>x(G.key)},null,8,["style","icon","onClick"]))],64)):t.createCommentVNode("",!0)],12,Lc)):(t.openBlock(),t.createElementBlock("th",{key:1,class:"bg-grey-lighten-4 dt-header-border",rowspan:G.rowspan,colspan:G.colspan},[t.withDirectives(t.createVNode(Q,{icon:E(C),onClick:oe=>D(C)},null,8,["icon","onClick"]),[[t.vShow,e.selectStrategy!=="single"]])],8,_c))])),128))]))),128))]),e.hideFilterRow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Mc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k(C.columns),(H,J)=>(t.openBlock(),t.createElementBlock("th",{class:"bg-grey-lighten-4 dt-header-border",key:J},[H.filterable!==!1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[H.filterMode===t.unref(Je).SELECTION?(t.openBlock(),t.createBlock(Qe,{key:0,"hide-details":"","center-affix":"",variant:"plain",density:"compact",color:e.color,"item-value":"value","item-title":"title",items:H.filterItems,"list-props":{lines:!1,density:"compact"},modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>m.value=H.filterValue]},null,8,["color","items","modelValue","onUpdate:modelValue"])):(t.openBlock(),t.createBlock(Ht,{key:1,"hide-details":"","center-affix":"",variant:"plain",density:"compact",placeholder:"Search",modelValue:H.filterValue,"onUpdate:modelValue":[G=>H.filterValue=G,G=>m.value=H.filterValue]},{append:t.withCtx(()=>[t.createVNode(gt,null,{activator:t.withCtx(({props:G})=>[t.createVNode(ce,t.mergeProps({color:e.color,variant:"text",size:"x-small",icon:e.filterIcon},G),null,16,["color","icon"])]),default:t.withCtx(()=>[t.createVNode(ft,{density:"compact",lines:!1,color:e.color},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c,G=>(t.openBlock(),t.createBlock($e,{key:G.value,title:G.title,active:H.filterType===G.value,onClick:oe=>z(H,G)},null,8,["title","active","onClick"]))),128))]),_:2},1032,["color"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):t.createCommentVNode("",!0)]))),128))]))]),"group-header":t.withCtx(C=>[t.renderSlot(w.$slots,"group-header",t.normalizeProps(t.guardReactiveProps(C)),()=>[t.createElementVNode("tr",null,[t.createElementVNode("td",{colspan:C.columns.length},[t.createVNode(Q,{class:t.normalizeClass(`ml-${C.item.depth*3}`),size:"small",onClick:H=>C.toggleGroup(C.item),icon:C.isGroupOpen(C.item)?"$expand":"$next"},null,8,["class","onClick","icon"]),t.createElementVNode("span",null,t.toDisplayString(I(C.item,C.columns)),1),t.createVNode(Q,{size:"small",class:"ml-4",onClick:H=>T(C.item.key),icon:"$delete"},null,8,["onClick"])],8,zc)])])]),"expanded-row":t.withCtx(C=>[t.renderSlot(w.$slots,"expanded-row",t.normalizeProps(t.guardReactiveProps(C)))]),"no-data":t.withCtx(()=>[t.renderSlot(w.$slots,"no-data",{},()=>[t.createTextVNode("No data available")])]),bottom:t.withCtx(()=>[e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Xt,{key:0,density:"comfortable"},{default:t.withCtx(()=>[Hc,t.createElementVNode("div",jc,[t.createVNode(Qe,{"hide-details":"",density:"compact",variant:"outlined","item-title":"title","item-value":"value",modelValue:s.itemsPerPage,"onUpdate:modelValue":[R[3]||(R[3]=C=>s.itemsPerPage=C),R[4]||(R[4]=C=>s.page=1)],items:e.itemsPerPageOptions},null,8,["modelValue","items"])]),t.createVNode(Dt,{class:"ml-2",density:"comfortable",rounded:"circle","total-visible":"7","active-color":e.color,"first-icon":e.firstIcon,"last-icon":e.lastIcon,"next-icon":e.nextIcon,"prev-icon":e.prevIcon,length:y.value,modelValue:s.page,"onUpdate:modelValue":R[5]||(R[5]=C=>s.page=C)},null,8,["active-color","first-icon","last-icon","next-icon","prev-icon","length","modelValue"]),t.createVNode(Do),t.createElementVNode("span",Wc,t.toDisplayString(g.value),1),e.hideRefreshButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ce,{key:0,variant:"text",icon:e.refreshIcon,size:"small",onClick:R[6]||(R[6]=C=>w.$emit("refreshClick"))},null,8,["icon"]))]),_:1}))]),_:2},[t.renderList(f.value,C=>({name:`item.${C.key}`,fn:t.withCtx(H=>[t.renderSlot(w.$slots,`item.${C.key}`,t.normalizeProps(t.guardReactiveProps(H)),()=>[typeof C.formatCellValue=="function"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(C.formatCellValue(H.value)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(H.value),1)],64))])])}))]),1032,["height","density","headers","items","items-length","group-by","show-expand","show-select","select-strategy","return-object","item-value","items-per-page","row-props","sort-asc-icon","sort-desc-icon","loading","color","search","page","modelValue"])]),"right-pane":t.withCtx(()=>[t.renderSlot(w.$slots,"right-area")]),_:3},8,["splitter-position","show-splitter","is-fixed"]),t.renderSlot(w.$slots,"bottom-area")]),_:3},8,["color"]))}},Gc={install:e=>{e.component("VDatatablePlus",_o),e.component("VDatatableServerPlus",Mo),e.component("ResizeableSplitter",yt)}};fe.FILTER_MODE=Je,fe.FILTER_TYPE=le,fe.ResizeableSplitter=yt,fe.VDatatablePlus=_o,fe.VDatatableServerPlus=Mo,fe.default=Gc,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "v-datatable-plus",
3
3
  "private": false,
4
- "version": "0.0.19",
4
+ "version": "0.0.21",
5
5
  "description": "This is a derived component which enahaced features of Vuetify VDataTable and VDataTableServer. It's also expose a ResizeableSplitter component which is useful for split horizontal contents with or without user interaction.",
6
6
  "type": "module",
7
7
  "keywords": [