admins-components 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admins-components.cjs.js +1 -1
- package/dist/admins-components.es.js +306 -287
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P={class:"form-check"},j=["checked","id"],G=["for"],V=e.defineComponent({__name:"CheckBox",props:{id:{},label:{},checked:{type:Boolean}},emits:["changed"],setup(c){return(a,s)=>(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("input",{class:"form-check-input",type:"checkbox",checked:a.checked,value:"",id:a.id,onChange:s[0]||(s[0]=o=>a.$emit("changed",{id:a.id,checked:o.target.checked}))},null,40,j),e.createElementVNode("label",{class:"form-check-label",for:a.id},e.toDisplayString(a.label),9,G)]))}}),O={class:"cbl-childrend-container"},W=e.defineComponent({__name:"CheckBoxList",props:{items:{},callback:{type:Function}},setup(c){return(a,s)=>{const o=e.resolveComponent("CheckBoxList",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id,class:"cbl-container"},[e.createVNode(V,{id:t.id,label:t.label,checked:t.checked,onChanged:s[0]||(s[0]=r=>a.callback(r.id,r.checked))},null,8,["id","label","checked"]),e.createElementVNode("div",O,[t.childrend?(e.openBlock(),e.createBlock(o,{key:0,items:t.childrend,callback:a.callback},null,8,["items","callback"])):e.createCommentVNode("",!0)])]))),128)}}}),A=(c,a)=>{const s=c.__vccOpts||c;for(const[o,t]of a)s[o]=t;return s},I=A(W,[["__scopeId","data-v-ae2832c5"]]),q=["id"],K=["disabled"],U={class:"dd-label"},J={class:"dd-item-list"},Q=["onClick"],b=e.defineComponent({__name:"DropDown",props:{id:{},label:{},selected:{},options:{},opentop:{type:Boolean},disableFilter:{type:Boolean},storeselected:{type:Boolean},filterevent:{type:Boolean},disabled:{type:Boolean}},emits:["selected","filtered"],setup(c,{emit:a}){const s=c;e.watch(s.options,()=>{s.filterevent&&(i.value=s.options.value)}),e.watch(()=>s.selected,()=>{m()}),e.watch(()=>s.label,()=>{m()});const o=a,t=f=>{s.storeselected||(u.value=f.label),o("selected",f)},r="törlés",u=e.ref(""),m=()=>{if(s.options.value){const f=s.options.value.find(v=>v.id==s.selected);f?u.value=f.label:(n(""),u.value=s.label)}};e.onMounted(()=>{s.label&&(u.value=s.label),m(),p="",document.addEventListener("click",function(){y.value=="block"&&(y.value="none")}),window.addEventListener("scrolled",function(){y.value=="block"&&(y.value="none")}),k()});let p="";const n=f=>{p=f,s.filterevent?o("filtered",f):f==""?i.value=s.options.value:i.value=s.options.value.filter(v=>v.label.toLowerCase().includes(f.toLowerCase()))},i=e.ref([]),l=()=>{t({label:s.label,id:""}),n("")},d=()=>{if(y.value=="block"){y.value="none";return}setTimeout(()=>{y.value="block"},10),setTimeout(k,20)},k=()=>{const f=B.value,v=L.value;s.opentop?v.style.top=f.getBoundingClientRect().y-v.offsetHeight+"px":(v.style.top=f.getBoundingClientRect().y+f.offsetHeight+"px",f.getBoundingClientRect().y-v.getBoundingClientRect().y!=-f.offsetHeight&&(v.style.top=parseInt(v.style.top.substring(0,v.style.top.length-2))+(f.getBoundingClientRect().y-v.getBoundingClientRect().y)+f.offsetHeight+"px")),E.value&&E.value.focus()},B=e.ref(null),L=e.ref(null),y=e.ref("none"),E=e.ref(null);return(f,v)=>(e.openBlock(),e.createElementBlock("div",{id:f.id,class:"dd-flex"},[e.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:B,class:"btn btn-outline-secondary dd-toggle dd-flex",type:"button",disabled:f.disabled,onClick:v[0]||(v[0]=g=>{n(e.unref(p)),d()})},[e.createElementVNode("div",U,e.toDisplayString(u.value),1)],8,K),e.createElementVNode("div",{class:"dd-menu",style:e.normalizeStyle({display:y.value}),ref_key:"DropDownMenu",ref:L},[u.value!=s.label?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"btn btn-outline-secondary dd-button",onClick:v[1]||(v[1]=g=>l())},e.toDisplayString(r))):e.createCommentVNode("",!0),f.disableFilter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"ddSearch",ref:E,type:"text ",class:"form-control",placeholder:"keresés",onInput:v[2]||(v[2]=g=>n(g.target.value)),onClick:v[3]||(v[3]=g=>g.stopPropagation())},null,544)),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"dd-item",onClick:dt=>t(g)},[g.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([g.icon,"dd-item__icon"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(g.label),1)],8,Q))),128))])],4)],8,q))}}),X=["id"],Y=["disabled"],Z={class:"ddc-row"},ee={class:"ddc-label"},te={class:"dd-item-list"},oe=["onClick"],le={class:"ddc-item"},ne={class:"ddc-label"},se="törlés",N=e.defineComponent({__name:"DropDownCallBack",props:{id:{},default:{},selected:{},enabled:{type:Boolean},options:{}},setup(c){const a=c,s=i=>{i==a.default&&o.value.callback(""),o.value=i,o.value.callback(o.value.value)},o=e.ref(a.default),t=()=>{if(a.selected&&a.options.value){const i=a.options.value.find(l=>l.value==a.selected);i&&(o.value=i)}};e.onMounted(()=>{t(),document.addEventListener("click",function(){n.value=="block"&&(n.value="none")})});const r=()=>{setTimeout(()=>{n.value="block"},10),setTimeout(()=>{p.value=u.value.offsetHeight},20)},u=e.ref(null),m=e.ref(null),p=e.ref(0),n=e.ref("none");return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:"ddc-flex",id:i.id},[e.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:u,class:"btn btn-outline-secondary ddc-button",type:"button",disabled:!i.enabled,onClick:l[0]||(l[0]=d=>r())},[e.createElementVNode("span",Z,[e.createElementVNode("i",{class:e.normalizeClass([o.value.icon,"ddc-icon"])},null,2),e.createElementVNode("span",ee,e.toDisplayString(o.value.label),1)])],8,Y),e.createElementVNode("div",{class:"ddc-menu",style:e.normalizeStyle({display:n.value,"margin-top":p.value+"px"}),ref_key:"DropDownMenu",ref:m},[o.value!=a.default?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"btn btn-outline-secondary ddc-button",onClick:l[1]||(l[1]=d=>s(a.default))},e.toDisplayString(se))):e.createCommentVNode("",!0),e.createElementVNode("div",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options.value,d=>(e.openBlock(),e.createElementBlock("div",{key:d.label,class:"ddc-item",onClick:k=>s(d)},[e.createElementVNode("span",le,[e.createElementVNode("i",{class:e.normalizeClass([d.icon,"ddc-icon"])},null,2),e.createElementVNode("span",ne,e.toDisplayString(d.label),1)])],8,oe))),128))])],4)],8,X))}}),ae=["id"],re={key:0,class:"ddm-label"},ie={key:1,class:"ddm-label"},ce=["onClick"],C=e.defineComponent({__name:"DropDownMenu",props:{label:{},icon:{},options:{},item:{},id:{},right:{type:Boolean}},setup(c){const a=c;e.onMounted(()=>{document.addEventListener("click",function(){s.value&&(s.value=!1)})});const s=e.ref(!1),o=()=>{setTimeout(()=>{s.value=!0},10),setTimeout(t,20)},t=()=>{const p=r.value,n=u.value;n.style.top=p.getBoundingClientRect().y+p.offsetHeight+"px",p.getBoundingClientRect().y-n.getBoundingClientRect().y!=-p.offsetHeight&&(n.style.top=parseInt(n.style.top.substring(0,n.style.top.length-2))+(p.getBoundingClientRect().y-n.getBoundingClientRect().y)+p.offsetHeight+"px"),n.style.left=p.getBoundingClientRect().x-(a.right?100:0)+"px"},r=e.ref(null),u=e.ref(null),m=e.ref(0);return(p,n)=>(e.openBlock(),e.createElementBlock("div",{class:"d-flex",id:p.id},[e.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:r,class:"btn btn-outline-secondary",type:"button",onClick:n[0]||(n[0]=i=>o())},[p.label?(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(p.label),1)):e.createCommentVNode("",!0),p.icon?(e.openBlock(),e.createElementBlock("span",ie,[e.createElementVNode("i",{class:e.normalizeClass(p.icon)},null,2)])):e.createCommentVNode("",!0)],512),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ddm-menu",ref_key:"DropDownMenu",ref:u,style:e.normalizeStyle({"margin-top":m.value+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.options,i=>(e.openBlock(),e.createElementBlock("div",{key:i.icon,class:"ddm-item",onClick:l=>i.command(p.item)},[e.createElementVNode("i",{class:e.normalizeClass(i.icon)},null,2),e.createTextVNode(e.toDisplayString(i.label),1)],8,ce))),128))],4)):e.createCommentVNode("",!0)],8,ae))}}),de={class:"fltrc-container"},ue={class:"fltrc-container"},pe=["placeholder","value"],me={key:1,class:"d-flex flex-row input-group align-items-center"},fe=["value"],ve=["value"],D=e.defineComponent({__name:"FilterCompact",props:{items:{}},setup(c){const a=c,s=e.ref(0),o=e.ref(0),t=e.computed(()=>a.items[s.value].filter),r=i=>{let l=a.items[o.value];l.filter.filtered(l.filter.key,""),s.value=i,o.value=i,n.value+=1},u=e.ref(void 0);e.onMounted(()=>{let i=[];for(let l=0;l<a.items.length;l++)i.push({icon:a.items[l].icon,label:a.items[l].label,command:()=>r(l)});u.value=i});const m=e.ref({}),p=e.ref(void 0),n=e.ref(0);return(i,l)=>(e.openBlock(),e.createElementBlock("div",de,[u.value?(e.openBlock(),e.createBlock(C,{key:0,id:"ddm",icon:i.items[s.value].icon,item:i.items[s.value],label:"",options:u.value},null,8,["icon","item","options"])):e.createCommentVNode("",!0),e.createElementVNode("div",ue,[t.value.type=="text"?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:t.value.placeholder,value:t.value.defaultv??"",onInput:l[0]||(l[0]=d=>{t.value.filtered(t.value.key,d.target.value),t.value.defaultv=d.target.value})},null,40,pe)):e.createCommentVNode("",!0),t.value.type=="date"?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("input",{type:"date",class:"form-control",value:t.value.defFrom??"",onInput:l[1]||(l[1]=d=>{m.value.from=d.target.value==""?null:d.target.value,t.value.defFrom=d.target.value==""?null:d.target.value,t.value.filtered(t.value.key,m.value)})},null,40,fe),l[5]||(l[5]=e.createElementVNode("span",{class:"input-group-text"},"-",-1)),e.createElementVNode("input",{type:"date",class:"form-control",value:t.value.defTill??"",onInput:l[2]||(l[2]=d=>{m.value.untill=d.target.value==""?null:d.target.value,t.value.defTill=d.target.value==""?null:d.target.value,t.value.filtered(t.value.key,m.value)})},null,40,ve)])):e.createCommentVNode("",!0),t.value.type=="dropdown"?(e.openBlock(),e.createBlock(b,{key:n.value,selected:p.value,options:t.value.options,filterevent:t.value.filterevent,onFiltered:l[3]||(l[3]=d=>{t.value.onfiltered&&t.value.onfiltered(d)}),id:t.value.key,label:t.value.label,onSelected:l[4]||(l[4]=d=>t.value.filtered(t.value.key,d.id))},null,8,["selected","options","filterevent","id","label"])):e.createCommentVNode("",!0)])]))}}),ke={class:"fltrctrl-container"},ge=["placeholder","value"],Be={key:1,class:"d-flex flex-row input-group align-items-center"},ye=["value"],be=["value"],h=e.ref({}),$=e.defineComponent({__name:"FilterControl",props:{item:{}},setup(c){const a=c;e.onMounted(()=>{var o;if(a.item.type=="dropdown"){const t=a.item;s.value=(o=t.options.value.find(r=>r.id==a.item.defaultv))==null?void 0:o.id}});const s=e.ref(void 0);return(o,t)=>(e.openBlock(),e.createElementBlock("div",ke,[o.item.type=="text"?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:o.item.placeholder,value:o.item.defaultv??"",onInput:t[0]||(t[0]=r=>o.item.filtered(o.item.key,r.target.value))},null,40,ge)):e.createCommentVNode("",!0),o.item.type=="date"?(e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("input",{type:"date",class:"form-control",value:o.item.defFrom??"",onInput:t[1]||(t[1]=r=>{h.value.from=r.target.value==""?null:r.target.value,o.item.filtered(o.item.key,h.value)})},null,40,ye),t[5]||(t[5]=e.createElementVNode("span",{class:"input-group-text"},"-",-1)),e.createElementVNode("input",{type:"date",class:"form-control",value:o.item.defTill??"",onInput:t[2]||(t[2]=r=>{h.value.untill=r.target.value==""?null:r.target.value,o.item.filtered(o.item.key,h.value)})},null,40,be)])):e.createCommentVNode("",!0),o.item.type=="dropdown"?(e.openBlock(),e.createBlock(b,{key:2,selected:s.value,options:e.ref(o.item.options),filterevent:o.item.filterevent,onFiltered:t[3]||(t[3]=r=>{o.item.onfiltered&&o.item.onfiltered(r)}),id:o.item.key,label:o.item.label,onSelected:t[4]||(t[4]=r=>o.item.filtered(o.item.key,r.id))},null,8,["selected","options","filterevent","id","label"])):e.createCommentVNode("",!0)]))}}),_=e.defineComponent({__name:"IconButton",props:{icon:{},active:{type:Boolean},big:{type:Boolean}},emits:["click"],setup(c,{emit:a}){const s=c,o=e.computed(()=>`${s.icon} ${s.big?"ib-button-big":""}`),t=a;return(r,u)=>(e.openBlock(),e.createElementBlock("div",{onClick:u[0]||(u[0]=m=>t("click")),class:"ib-container"},[e.createElementVNode("div",{class:e.normalizeClass(["ib-button",{"ib-button-active":r.active}])},[e.createElementVNode("i",{class:e.normalizeClass(o.value)},null,2)],2)]))}}),he={class:"pc-container"},Ce=["value","max"],w=e.defineComponent({__name:"PaginatorControl",props:{settings:{}},emits:["pagesize","page"],setup(c,{emit:a}){const s=c,o=a,t=()=>{let n=e.ref([]);return s.settings.value.sizes.forEach(i=>n.value.push({label:i.toString(),id:i.toString()})),n},r=e.ref(1);e.watch(()=>s.settings.value,()=>{r.value=1});const u=e.computed(()=>Math.floor(s.settings.value.total/s.settings.value.pagesize)+1),m=()=>{r.value>1&&(r.value-=1,o("page",r.value))},p=()=>{r.value<u.value&&(r.value+=1,o("page",r.value))};return(n,i)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:m},"<"),e.createElementVNode("input",{class:"form-control pc-input",type:"number",value:r.value,min:"1",max:u.value,onChange:i[0]||(i[0]=l=>n.$emit("page",l.target.value))},null,40,Ce),e.createTextVNode("/"+e.toDisplayString(u.value)+" ",1),e.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:p},">"),e.createVNode(b,{opentop:!0,class:"pc-dropdown",id:"pagecount",label:"10",selected:n.settings.value.pagesize.toString(),options:t(),onSelected:i[1]||(i[1]=l=>{r.value=1,n.$emit("pagesize",parseInt(l.id))})},null,8,["selected","options"])]))}}),_e={class:"form-check"},Ee=["name","id","checked"],Ve=["for"],T=e.defineComponent({__name:"RadioButton",props:{group:{},label:{},id:{},selected:{type:Boolean}},emits:["selected"],setup(c){return(a,s)=>(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("input",{class:"form-check-input",type:"radio",name:a.group,id:a.id,checked:a.selected,onChange:s[0]||(s[0]=o=>a.$emit("selected",a.id))},null,40,Ee),e.createElementVNode("label",{class:"form-check-label",for:a.id},e.toDisplayString(a.label),9,Ve)]))}}),Ne={class:"d-flex flex-column gap-2 justify-content-around"},M=e.defineComponent({__name:"RadioButtonGroup",props:{group:{},items:{}},emits:["selected"],setup(c){return(a,s)=>(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,o=>(e.openBlock(),e.createBlock(T,{key:o.id,id:o.id,label:o.label,group:a.group,selected:o.selected,onSelected:s[0]||(s[0]=t=>a.$emit("selected",t))},null,8,["id","label","group","selected"]))),128))]))}}),De={key:0,class:"spinner-border",role:"status"},z=e.defineComponent({__name:"SpinningProgress",props:{loading:{type:Boolean}},setup(c){return(a,s)=>a.loading?(e.openBlock(),e.createElementBlock("div",De,s[0]||(s[0]=[e.createElementVNode("span",{class:"visually-hidden"},"Loading...",-1)]))):e.createCommentVNode("",!0)}}),$e={class:"t2l-table-view t2l-table-header-label"},we={key:0,class:"t2l-select"},Te={key:1,class:"t2l-cell"},Se={class:"t2l-table-view t2l-table-header-filter"},Le={key:0,class:"t2l-select"},Fe={key:1,class:"t2l-cell"},Ie={class:"t2l-table-view t2l-rows"},Me={key:0,class:"t2l-select"},ze=["id","onChange"],Re=["innerHTML"],He={key:1,class:"t2l-cell t2l-actions"},xe=["title","disabled","onClick"],Pe={class:"t2l-card-view t2l-card-filters"},je={class:"t2l-card-filter-order"},Ge={class:"t2l-card-filter-search"},Oe={class:"t2l-card-view t2l-rows"},We={key:0,class:"t2l-card-select"},Ae=["id","onChange"],qe={key:0,class:"t2l-property"},Ke={class:"t2l-label"},Ue=["innerHTML"],Je={class:"d-flex align-items-center"},Qe={key:1,class:"d-flex justify-content-center t2l-footer"},R=e.defineComponent({__name:"TableToList",props:{items:{},config:{}},emits:["pagesize","page"],setup(c){const a=c,s=e.computed(()=>a.config.columns.filter(n=>n.visible!=!1)),o=e.computed(()=>a.config.columns.filter(n=>n.visible!=!1&&n.filter)),t=e.computed(()=>s.value.filter(n=>n.sort&&n.sort.active&&n.sort.active.value)),r=e.computed(()=>Math.ceil(s.value.length/a.config.smColCount)),u=(n,i)=>{var l=n-1+(i-1)*r.value;return l<s.value.length?s.value[l]:null},m=(n,i)=>n.converter?n.converter(i[n.property],i):i[n.property],p=n=>{if(n.sort&&n.sort.active){let i=!n.sort.active.value;a.config.columns.forEach(l=>{l.sort&&l.sort.active&&(l.sort.active.value=!1)}),n.sort.active.value=i,n.sort.callback(i?n.property:"")}};return(n,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$e,[n.config.selectableId?(e.openBlock(),e.createElementBlock("span",we)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>{var d,k;return e.openBlock(),e.createElementBlock("span",{class:"t2l-cell",key:l.property},[l.sort?(e.openBlock(),e.createBlock(_,{key:0,icon:l.sort.icon,onClick:B=>p(l),active:(k=(d=l.sort)==null?void 0:d.active)==null?void 0:k.value},null,8,["icon","onClick","active"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.label),1)])}),128)),n.config.actionHeader?(e.openBlock(),e.createElementBlock("span",Te,e.toDisplayString(n.config.actionHeader),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Se,[n.config.selectableId?(e.openBlock(),e.createElementBlock("span",Le)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>(e.openBlock(),e.createElementBlock("span",{class:"t2l-cell",key:l.label},[l.filter?(e.openBlock(),e.createBlock($,{key:0,item:l.filter},null,8,["item"])):e.createCommentVNode("",!0)]))),128)),n.config.actionHeader?(e.openBlock(),e.createElementBlock("span",Fe)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"t2l-row"},[n.config.selectableId?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:l[n.config.selectableId],onChange:d=>l.selected=!l.selected},null,40,ze)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,d=>(e.openBlock(),e.createElementBlock("div",{class:"t2l-cell",key:d.property,innerHTML:m(d,l)},null,8,Re))),128)),n.config.actions?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.config.actions,d=>(e.openBlock(),e.createElementBlock("button",{key:d,type:"button",class:"btn btn-outline-secondary",title:d.label,disabled:!d.enabled(l),onClick:k=>d.command(l)},[e.createElementVNode("i",{class:e.normalizeClass(d.icon)},null,2)],8,xe))),128))])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Pe,[e.createElementVNode("div",je,[e.createVNode(N,{id:"card-filter-order",default:{icon:"fa-solid fa-chevron-down",label:"rendezés"},selected:t.value.length>0?t.value[0].property:"",enabled:n.config.sortEnabled,options:e.ref(s.value.filter(l=>l.sort).map(l=>({icon:l.sort.icon,label:l.sort.label,value:l.property,callback:l.sort.callback})))},null,8,["selected","enabled","options"])]),e.createElementVNode("div",Ge,[e.createVNode(D,{items:o.value.map(l=>({filter:l.filter,icon:l.filterIcon,label:l.label}))},null,8,["items"])])]),e.createElementVNode("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:"t2l-row",key:d},[n.config.selectableId?(e.openBlock(),e.createElementBlock("div",We,[e.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:l[n.config.selectableId],onChange:k=>l.selected=!l.selected},null,40,Ae)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.config.smColCount,k=>(e.openBlock(),e.createElementBlock("div",{class:"t2l-card-col",key:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,B=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:B},[u(B,k)?(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("span",Ke,e.toDisplayString(u(B,k).label),1),e.createElementVNode("div",{innerHTML:m(u(B,k),l)},null,8,Ue)])):e.createCommentVNode("",!0)],64))),128))]))),128)),e.createElementVNode("div",Je,[a.config.actions?(e.openBlock(),e.createBlock(C,{key:0,item:l,options:a.config.actions,label:"...",id:d.toString(),right:!0},null,8,["item","options","id"])):e.createCommentVNode("",!0)])]))),128))]),n.config.paginatorSettings?(e.openBlock(),e.createBlock(w,{key:0,settings:n.config.paginatorSettings,onPagesize:i[0]||(i[0]=l=>n.$emit("pagesize",l)),onPage:i[1]||(i[1]=l=>n.$emit("page",l))},null,8,["settings"])):e.createCommentVNode("",!0),n.config.paginatorSettings?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qe," Elemek: "+e.toDisplayString(a.items.length),1))],64))}}),Xe={class:"tlb-container d-flex flex-column flex-grow-1"},Ye={class:"d-flex flex-row tlb-item"},Ze={class:"d-flex flex-column flex-grow-1 flex-sm-row justify-content-between tlb-item"},et=["id"],tt={key:0,class:"d-flex id"},ot={class:"d-flex flex-row align-items-center tlb-children-container"},H=e.defineComponent({__name:"TextListBox",props:{items:{}},emits:["deleted"],setup(c){return(a,s)=>{const o=e.resolveComponent("TextListBox",!0);return e.openBlock(),e.createElementBlock("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,t=>(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column",key:t.id},[e.createElementVNode("div",Ye,[e.createElementVNode("div",Ze,[e.createElementVNode("div",{class:"d-flex flex-grow-1",id:t.id},e.toDisplayString(t.label),9,et),t.showId?(e.openBlock(),e.createElementBlock("div",tt,e.toDisplayString(t.id),1)):e.createCommentVNode("",!0)]),t.hideDelete?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_,{key:0,icon:"fa-solid fa-trash",onClick:r=>a.$emit("deleted",t.id)},null,8,["onClick"]))]),e.createElementVNode("div",ot,[t.childrend?(e.openBlock(),e.createBlock(o,{key:0,items:t.childrend,showId:t.showId,hideDelete:t.hideDelete},null,8,["items","showId","hideDelete"])):e.createCommentVNode("",!0)])]))),128))])}}}),lt={key:0,class:"toast-container position-fixed bottom-0 start-50 translate-middle-x p-4 toast-zindex"},nt={class:"toast-header"},st={class:"me-auto"},at={class:"text-body-secondary"},rt=["onClick"],it=["innerHTML"],F=500,S=e.defineComponent({__name:"ToastComponent",props:{defaultDisplayDuration:{}},setup(c,{expose:a}){const s=c,o=e.ref([]);return a({addToast:r=>{r.displayDuration||(r.displayDuration=s.defaultDisplayDuration),r.id=new Date,o.value.filter(function(u){return u.id!==r.id}),o.value.push(r)}}),setInterval(()=>{o.value=o.value.map(r=>(r.displayDuration-=F,r)),o.value=o.value.filter(r=>r.displayDuration>0)},F),(r,u)=>o.value.length>0?(e.openBlock(),e.createElementBlock("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,m=>(e.openBlock(),e.createElementBlock("div",{key:m.message,class:e.normalizeClass(["toast d-block",{"toast-info":m.type==="info","toast-success":m.type==="success","toast-warning":m.type==="warning","toast-error":m.type==="error"}]),role:"alert","aria-live":"assertive","aria-atomic":"true"},[e.createElementVNode("div",nt,[e.createElementVNode("strong",st,e.toDisplayString(m.title),1),e.createElementVNode("small",at,e.toDisplayString(m.id.toLocaleTimeString()),1),e.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close",onClick:p=>o.value=o.value.filter(n=>n.id!==m.id)},null,8,rt)]),e.createElementVNode("div",{class:"toast-body",innerHTML:m.message},null,8,it)],2))),128))])):e.createCommentVNode("",!0)}}),x=e.defineComponent({__name:"ToastWrapper",setup(c){const a=e.ref(),s=[{id:"toast-notification-message",handler:o=>{let t=o.detail;a.value.addToast({title:t.title,message:t.message,type:t.severity,displayDuration:t.displayDuration})}},{id:"fetch-error",handler:o=>{let t=o.detail;a.value.addToast({title:t.title,message:t.message,type:"error",displayDuration:1e4})}}];return e.onMounted(()=>{s.forEach(o=>window.addEventListener(o.id,o.handler))}),e.onUnmounted(()=>{s.forEach(o=>window.removeEventListener(o.id,o.handler))}),(o,t)=>(e.openBlock(),e.createBlock(S,{ref_key:"toast",ref:a,defaultDisplayDuration:5e3},null,512))}}),ct={install(c){c.component("CheckBox",V),c.component("CheckBoxList",I),c.component("DropDown",b),c.component("DropDownMenu",C),c.component("DropDownCallBack",N),c.component("FilterCompact",D),c.component("FilterControl",$),c.component("IconButton",_),c.component("PaginatorControl",w),c.component("RadioButton",T),c.component("RadioButtonGroup",M),c.component("SpinningProgress",z),c.component("TableToList",R),c.component("TextListBox",H),c.component("ToastComponent",S),c.component("ToastWrapper",x)}};exports.CheckBox=V;exports.CheckBoxList=I;exports.DropDown=b;exports.DropDownCallBack=N;exports.DropDownMenu=C;exports.FilterCompact=D;exports.FilterControl=$;exports.IconButton=_;exports.PaginatorControl=w;exports.RadioButton=T;exports.RadioButtonGroup=M;exports.SpinningProgress=z;exports.TableToList=R;exports.TextListBox=H;exports.ToastComponent=S;exports.ToastWrapper=x;exports.default=ct;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x={class:"form-check"},j=["checked","id"],O=["for"],V=e.defineComponent({__name:"CheckBox",props:{id:{},label:{},checked:{type:Boolean}},emits:["changed"],setup(u){return(a,n)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("input",{class:"form-check-input",type:"checkbox",checked:a.checked,value:"",id:a.id,onChange:n[0]||(n[0]=o=>a.$emit("changed",{id:a.id,checked:o.target.checked}))},null,40,j),e.createElementVNode("label",{class:"form-check-label",for:a.id},e.toDisplayString(a.label),9,O)]))}}),G={class:"cbl-childrend-container"},W=e.defineComponent({__name:"CheckBoxList",props:{items:{},callback:{type:Function}},setup(u){return(a,n)=>{const o=e.resolveComponent("CheckBoxList",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id,class:"cbl-container"},[e.createVNode(V,{id:t.id,label:t.label,checked:t.checked,onChanged:n[0]||(n[0]=r=>a.callback(r.id,r.checked))},null,8,["id","label","checked"]),e.createElementVNode("div",G,[t.childrend?(e.openBlock(),e.createBlock(o,{key:0,items:t.childrend,callback:a.callback},null,8,["items","callback"])):e.createCommentVNode("",!0)])]))),128)}}}),A=(u,a)=>{const n=u.__vccOpts||u;for(const[o,t]of a)n[o]=t;return n},I=A(W,[["__scopeId","data-v-ae2832c5"]]),q=["id"],K=["disabled"],U={class:"dd-label"},J={class:"dd-item-list"},Q=["onClick"],b=e.defineComponent({__name:"DropDown",props:{id:{},label:{},selected:{},options:{},opentop:{type:Boolean},disableFilter:{type:Boolean},storeselected:{type:Boolean},filterevent:{type:Boolean},disabled:{type:Boolean}},emits:["selected","filtered"],setup(u,{emit:a}){const n=u;e.watch(n.options,()=>{n.filterevent&&(i.value=n.options.value)}),e.watch(()=>n.selected,()=>{m()}),e.watch(()=>n.label,()=>{m()});const o=a,t=f=>{n.storeselected||(d.value=f.label),o("selected",f)},r="törlés",d=e.ref(""),m=()=>{if(n.options.value){const f=n.options.value.find(v=>v.id==n.selected);f?d.value=f.label:(s(""),d.value=n.label)}};e.onMounted(()=>{n.label&&(d.value=n.label),m(),p="",document.addEventListener("click",function(){y.value=="block"&&(y.value="none")}),window.addEventListener("scrolled",function(){y.value=="block"&&(y.value="none")}),k()});let p="";const s=f=>{p=f,n.filterevent?o("filtered",f):f==""?i.value=n.options.value:i.value=n.options.value.filter(v=>v.label.toLowerCase().includes(f.toLowerCase()))},i=e.ref([]),l=()=>{t({label:n.label,id:""}),s("")},c=()=>{if(y.value=="block"){y.value="none";return}setTimeout(()=>{y.value="block"},10),setTimeout(k,20)},k=()=>{const f=B.value,v=L.value;n.opentop?v.style.top=f.getBoundingClientRect().y-v.offsetHeight+"px":(v.style.top=f.getBoundingClientRect().y+f.offsetHeight+"px",f.getBoundingClientRect().y-v.getBoundingClientRect().y!=-f.offsetHeight&&(v.style.top=parseInt(v.style.top.substring(0,v.style.top.length-2))+(f.getBoundingClientRect().y-v.getBoundingClientRect().y)+f.offsetHeight+"px")),E.value&&E.value.focus()},B=e.ref(null),L=e.ref(null),y=e.ref("none"),E=e.ref(null);return(f,v)=>(e.openBlock(),e.createElementBlock("div",{id:f.id,class:"dd-flex"},[e.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:B,class:"btn btn-outline-secondary dd-toggle dd-flex",type:"button",disabled:f.disabled,onClick:v[0]||(v[0]=g=>{s(e.unref(p)),c()})},[e.createElementVNode("div",U,e.toDisplayString(d.value),1)],8,K),e.createElementVNode("div",{class:"dd-menu",style:e.normalizeStyle({display:y.value}),ref_key:"DropDownMenu",ref:L},[d.value!=n.label?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"btn btn-outline-secondary dd-button",onClick:v[1]||(v[1]=g=>l())},e.toDisplayString(r))):e.createCommentVNode("",!0),f.disableFilter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"ddSearch",ref:E,type:"text ",class:"form-control",placeholder:"keresés",onInput:v[2]||(v[2]=g=>s(g.target.value)),onClick:v[3]||(v[3]=g=>g.stopPropagation())},null,544)),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"dd-item",onClick:ut=>t(g)},[g.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([g.icon,"dd-item__icon"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(g.label),1)],8,Q))),128))])],4)],8,q))}}),X=["id"],Y=["disabled"],Z={class:"ddc-row"},ee={class:"ddc-label"},te={class:"dd-item-list"},oe=["onClick"],le={class:"ddc-item"},ne={class:"ddc-label"},se="törlés",N=e.defineComponent({__name:"DropDownCallBack",props:{id:{},default:{},selected:{},enabled:{type:Boolean},options:{}},setup(u){const a=u,n=i=>{i==a.default&&o.value.callback(""),o.value=i,o.value.callback(o.value.value)},o=e.ref(a.default),t=()=>{if(a.selected&&a.options.value){const i=a.options.value.find(l=>l.value==a.selected);i&&(o.value=i)}};e.onMounted(()=>{t(),document.addEventListener("click",function(){s.value=="block"&&(s.value="none")})});const r=()=>{setTimeout(()=>{s.value="block"},10),setTimeout(()=>{p.value=d.value.offsetHeight},20)},d=e.ref(null),m=e.ref(null),p=e.ref(0),s=e.ref("none");return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:"ddc-flex",id:i.id},[e.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:d,class:"btn btn-outline-secondary ddc-button",type:"button",disabled:!i.enabled,onClick:l[0]||(l[0]=c=>r())},[e.createElementVNode("span",Z,[e.createElementVNode("i",{class:e.normalizeClass([o.value.icon,"ddc-icon"])},null,2),e.createElementVNode("span",ee,e.toDisplayString(o.value.label),1)])],8,Y),e.createElementVNode("div",{class:"ddc-menu",style:e.normalizeStyle({display:s.value,"margin-top":p.value+"px"}),ref_key:"DropDownMenu",ref:m},[o.value!=a.default?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"btn btn-outline-secondary ddc-button",onClick:l[1]||(l[1]=c=>n(a.default))},e.toDisplayString(se))):e.createCommentVNode("",!0),e.createElementVNode("div",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options.value,c=>(e.openBlock(),e.createElementBlock("div",{key:c.label,class:"ddc-item",onClick:k=>n(c)},[e.createElementVNode("span",le,[e.createElementVNode("i",{class:e.normalizeClass([c.icon,"ddc-icon"])},null,2),e.createElementVNode("span",ne,e.toDisplayString(c.label),1)])],8,oe))),128))])],4)],8,X))}}),ae=["id"],re={key:0,class:"ddm-label"},ie={key:1,class:"ddm-label"},ce=["onClick"],_=e.defineComponent({__name:"DropDownMenu",props:{label:{},icon:{},options:{},item:{},id:{},right:{type:Boolean}},setup(u){const a=u;e.onMounted(()=>{document.addEventListener("click",function(){n.value&&(n.value=!1)})});const n=e.ref(!1),o=()=>{setTimeout(()=>{n.value=!0},10),setTimeout(t,20)},t=()=>{const p=r.value,s=d.value;s.style.top=p.getBoundingClientRect().y+p.offsetHeight+"px",p.getBoundingClientRect().y-s.getBoundingClientRect().y!=-p.offsetHeight&&(s.style.top=parseInt(s.style.top.substring(0,s.style.top.length-2))+(p.getBoundingClientRect().y-s.getBoundingClientRect().y)+p.offsetHeight+"px"),s.style.left=p.getBoundingClientRect().x-(a.right?100:0)+"px"},r=e.ref(null),d=e.ref(null),m=e.ref(0);return(p,s)=>(e.openBlock(),e.createElementBlock("div",{class:"d-flex",id:p.id},[e.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:r,class:"btn btn-outline-secondary",type:"button",onClick:s[0]||(s[0]=i=>o())},[p.label?(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(p.label),1)):e.createCommentVNode("",!0),p.icon?(e.openBlock(),e.createElementBlock("span",ie,[e.createElementVNode("i",{class:e.normalizeClass(p.icon)},null,2)])):e.createCommentVNode("",!0)],512),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ddm-menu",ref_key:"DropDownMenu",ref:d,style:e.normalizeStyle({"margin-top":m.value+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.options,i=>(e.openBlock(),e.createElementBlock("div",{key:i.icon,class:"ddm-item",onClick:l=>i.command(p.item)},[e.createElementVNode("i",{class:e.normalizeClass(i.icon)},null,2),e.createTextVNode(e.toDisplayString(i.label),1)],8,ce))),128))],4)):e.createCommentVNode("",!0)],8,ae))}}),de={class:"fltrc-container"},ue={class:"fltrc-container"},pe=["placeholder","value"],me={key:1,class:"d-flex flex-row input-group align-items-center"},fe=["value"],ve=["value"],D=e.defineComponent({__name:"FilterCompact",props:{items:{}},setup(u){const a=u,n=e.ref(0),o=e.ref(0),t=e.computed(()=>a.items[n.value].filter),r=i=>{let l=a.items[o.value];l.filter.filtered(l.filter.key,""),n.value=i,o.value=i,s.value+=1},d=e.ref(void 0);e.onMounted(()=>{let i=[];for(let l=0;l<a.items.length;l++)i.push({icon:a.items[l].icon,label:a.items[l].label,command:()=>r(l)});d.value=i});const m=e.ref({}),p=e.ref(void 0),s=e.ref(0);return(i,l)=>(e.openBlock(),e.createElementBlock("div",de,[d.value?(e.openBlock(),e.createBlock(_,{key:0,id:"ddm",icon:i.items[n.value].icon,item:i.items[n.value],label:"",options:d.value},null,8,["icon","item","options"])):e.createCommentVNode("",!0),e.createElementVNode("div",ue,[t.value.type=="text"?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:t.value.placeholder,value:t.value.defaultv??"",onInput:l[0]||(l[0]=c=>{t.value.filtered(t.value.key,c.target.value),t.value.defaultv=c.target.value})},null,40,pe)):e.createCommentVNode("",!0),t.value.type=="date"?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("input",{type:"date",class:"form-control",value:t.value.defFrom??"",onInput:l[1]||(l[1]=c=>{m.value.from=c.target.value==""?null:c.target.value,t.value.defFrom=c.target.value==""?null:c.target.value,t.value.filtered(t.value.key,m.value)})},null,40,fe),l[5]||(l[5]=e.createElementVNode("span",{class:"input-group-text"},"-",-1)),e.createElementVNode("input",{type:"date",class:"form-control",value:t.value.defTill??"",onInput:l[2]||(l[2]=c=>{m.value.untill=c.target.value==""?null:c.target.value,t.value.defTill=c.target.value==""?null:c.target.value,t.value.filtered(t.value.key,m.value)})},null,40,ve)])):e.createCommentVNode("",!0),t.value.type=="dropdown"?(e.openBlock(),e.createBlock(b,{key:s.value,selected:p.value,options:t.value.options,filterevent:t.value.filterevent,onFiltered:l[3]||(l[3]=c=>{t.value.onfiltered&&t.value.onfiltered(c)}),id:t.value.key,label:t.value.label,onSelected:l[4]||(l[4]=c=>t.value.filtered(t.value.key,c.id))},null,8,["selected","options","filterevent","id","label"])):e.createCommentVNode("",!0)])]))}}),ke={class:"fltrctrl-container"},ge=["placeholder","value"],Be={key:1,class:"d-flex flex-row input-group align-items-center"},ye=["value"],be=["value"],h=e.ref({}),$=e.defineComponent({__name:"FilterControl",props:{item:{}},setup(u){const a=u;e.onMounted(()=>{var o;if(a.item.type=="dropdown"){const t=a.item;n.value=(o=t.options.value.find(r=>r.id==a.item.defaultv))==null?void 0:o.id}});const n=e.ref(void 0);return(o,t)=>(e.openBlock(),e.createElementBlock("div",ke,[o.item.type=="text"?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:o.item.placeholder,value:o.item.defaultv??"",onInput:t[0]||(t[0]=r=>o.item.filtered(o.item.key,r.target.value))},null,40,ge)):e.createCommentVNode("",!0),o.item.type=="date"?(e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("input",{type:"date",class:"form-control",value:o.item.defFrom??"",onInput:t[1]||(t[1]=r=>{h.value.from=r.target.value==""?null:r.target.value,o.item.filtered(o.item.key,h.value)})},null,40,ye),t[5]||(t[5]=e.createElementVNode("span",{class:"input-group-text"},"-",-1)),e.createElementVNode("input",{type:"date",class:"form-control",value:o.item.defTill??"",onInput:t[2]||(t[2]=r=>{h.value.untill=r.target.value==""?null:r.target.value,o.item.filtered(o.item.key,h.value)})},null,40,be)])):e.createCommentVNode("",!0),o.item.type=="dropdown"?(e.openBlock(),e.createBlock(b,{key:2,selected:n.value,options:e.ref(o.item.options),filterevent:o.item.filterevent,onFiltered:t[3]||(t[3]=r=>{o.item.onfiltered&&o.item.onfiltered(r)}),id:o.item.key,label:o.item.label,onSelected:t[4]||(t[4]=r=>o.item.filtered(o.item.key,r.id))},null,8,["selected","options","filterevent","id","label"])):e.createCommentVNode("",!0)]))}}),C=e.defineComponent({__name:"IconButton",props:{icon:{},active:{type:Boolean},big:{type:Boolean}},emits:["click"],setup(u,{emit:a}){const n=u,o=e.computed(()=>`${n.icon} ${n.big?"ib-button-big":""}`),t=a;return(r,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:d[0]||(d[0]=m=>t("click")),class:"ib-container"},[e.createElementVNode("div",{class:e.normalizeClass(["ib-button",{"ib-button-active":r.active}])},[e.createElementVNode("i",{class:e.normalizeClass(o.value)},null,2)],2)]))}}),he={class:"pc-container"},_e=["value","max"],w=e.defineComponent({__name:"PaginatorControl",props:{settings:{}},emits:["pagesize","page"],setup(u,{emit:a}){const n=u,o=a,t=()=>{let s=e.ref([]);return n.settings.value.sizes.forEach(i=>s.value.push({label:i.toString(),id:i.toString()})),s},r=e.ref(1);e.watch(()=>n.settings.value,()=>{r.value=1});const d=e.computed(()=>Math.floor(n.settings.value.total/n.settings.value.pagesize)+1),m=()=>{r.value>1&&(r.value-=1,o("page",r.value))},p=()=>{r.value<d.value&&(r.value+=1,o("page",r.value))};return(s,i)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:m},"<"),e.createElementVNode("input",{class:"form-control pc-input",type:"number",value:r.value,min:"1",max:d.value,onChange:i[0]||(i[0]=l=>s.$emit("page",l.target.value))},null,40,_e),e.createTextVNode("/"+e.toDisplayString(d.value)+" ",1),e.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:p},">"),e.createVNode(b,{opentop:!0,class:"pc-dropdown",id:"pagecount",label:"10",selected:s.settings.value.pagesize.toString(),options:t(),onSelected:i[1]||(i[1]=l=>{r.value=1,s.$emit("pagesize",parseInt(l.id))})},null,8,["selected","options"])]))}}),Ce={class:"form-check"},Ee=["name","id","checked"],Ve=["for"],T=e.defineComponent({__name:"RadioButton",props:{group:{},label:{},id:{},selected:{type:Boolean}},emits:["selected"],setup(u){return(a,n)=>(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("input",{class:"form-check-input",type:"radio",name:a.group,id:a.id,checked:a.selected,onChange:n[0]||(n[0]=o=>a.$emit("selected",a.id))},null,40,Ee),e.createElementVNode("label",{class:"form-check-label",for:a.id},e.toDisplayString(a.label),9,Ve)]))}}),Ne={class:"d-flex flex-column gap-2 justify-content-around"},M=e.defineComponent({__name:"RadioButtonGroup",props:{group:{},items:{}},emits:["selected"],setup(u){return(a,n)=>(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,o=>(e.openBlock(),e.createBlock(T,{key:o.id,id:o.id,label:o.label,group:a.group,selected:o.selected,onSelected:n[0]||(n[0]=t=>a.$emit("selected",t))},null,8,["id","label","group","selected"]))),128))]))}}),De={key:0,class:"spinner-border",role:"status"},z=e.defineComponent({__name:"SpinningProgress",props:{loading:{type:Boolean}},setup(u){return(a,n)=>a.loading?(e.openBlock(),e.createElementBlock("div",De,n[0]||(n[0]=[e.createElementVNode("span",{class:"visually-hidden"},"Loading...",-1)]))):e.createCommentVNode("",!0)}}),$e={class:"t2l-table-view t2l-table-header-label"},we={key:0,class:"t2l-select"},Te={key:1,class:"t2l-cell"},Se={class:"t2l-table-view t2l-table-header-filter"},Le={key:0,class:"t2l-select"},Fe={key:1,class:"t2l-cell"},Ie={class:"t2l-table-view t2l-rows"},Me={key:0,class:"t2l-select"},ze=["id","onChange"],Re=["innerHTML"],He={key:1,class:"t2l-cell t2l-actions"},Pe=["title","disabled","onClick"],xe={class:"t2l-card-view t2l-card-filters"},je={class:"t2l-card-filter-order"},Oe={class:"t2l-card-filter-search"},Ge={class:"t2l-card-view t2l-rows"},We={key:0,class:"t2l-card-select"},Ae=["id","onChange"],qe={key:0,class:"t2l-property"},Ke={class:"t2l-label"},Ue=["innerHTML"],Je={class:"d-flex align-items-center"},Qe={key:1,class:"d-flex justify-content-center t2l-footer"},R=e.defineComponent({__name:"TableToList",props:{items:{},config:{}},emits:["pagesize","page"],setup(u){const a=u,n=e.computed(()=>a.config.columns.filter(s=>s.visible!=!1)),o=e.computed(()=>a.config.columns.filter(s=>s.visible!=!1&&s.filter)),t=e.computed(()=>n.value.filter(s=>s.sort&&s.sort.active&&s.sort.active.value)),r=e.computed(()=>Math.ceil(n.value.length/a.config.smColCount)),d=(s,i)=>{var l=s-1+(i-1)*r.value;return l<n.value.length?n.value[l]:null},m=(s,i)=>s.converter?s.converter(i[s.property],i):i[s.property],p=s=>{if(s.sort&&s.sort.active){let i=!s.sort.active.value;a.config.columns.forEach(l=>{l.sort&&l.sort.active&&(l.sort.active.value=!1)}),s.sort.active.value=i,s.sort.callback(i?s.property:"")}};return(s,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$e,[s.config.selectableId?(e.openBlock(),e.createElementBlock("span",we)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,l=>{var c,k;return e.openBlock(),e.createElementBlock("span",{class:"t2l-cell",key:l.property},[l.sort?(e.openBlock(),e.createBlock(C,{key:0,icon:l.sort.icon,onClick:B=>p(l),active:(k=(c=l.sort)==null?void 0:c.active)==null?void 0:k.value},null,8,["icon","onClick","active"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.label),1)])}),128)),s.config.actionHeader?(e.openBlock(),e.createElementBlock("span",Te,e.toDisplayString(s.config.actionHeader),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Se,[s.config.selectableId?(e.openBlock(),e.createElementBlock("span",Le)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,l=>(e.openBlock(),e.createElementBlock("span",{class:"t2l-cell",key:l.label},[l.filter?(e.openBlock(),e.createBlock($,{key:0,item:l.filter},null,8,["item"])):e.createCommentVNode("",!0)]))),128)),s.config.actionHeader?(e.openBlock(),e.createElementBlock("span",Fe)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"t2l-row"},[s.config.selectableId?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:l[s.config.selectableId],onChange:c=>l.selected=!l.selected},null,40,ze)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,c=>(e.openBlock(),e.createElementBlock("div",{class:"t2l-cell",key:c.property,innerHTML:m(c,l)},null,8,Re))),128)),s.config.actions?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.config.actions,c=>(e.openBlock(),e.createElementBlock("button",{key:c,type:"button",class:"btn btn-outline-secondary",title:c.label,disabled:!c.enabled(l),onClick:k=>c.command(l)},[e.createElementVNode("i",{class:e.normalizeClass(c.icon)},null,2)],8,Pe))),128))])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",xe,[e.createElementVNode("div",je,[e.createVNode(N,{id:"card-filter-order",default:{icon:"fa-solid fa-chevron-down",label:"rendezés"},selected:t.value.length>0?t.value[0].property:"",enabled:s.config.sortEnabled,options:e.ref(n.value.filter(l=>l.sort).map(l=>({icon:l.sort.icon,label:l.sort.label,value:l.property,callback:l.sort.callback})))},null,8,["selected","enabled","options"])]),e.createElementVNode("div",Oe,[e.createVNode(D,{items:o.value.map(l=>({filter:l.filter,icon:l.filterIcon,label:l.label}))},null,8,["items"])])]),e.createElementVNode("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"t2l-row",key:c},[s.config.selectableId?(e.openBlock(),e.createElementBlock("div",We,[e.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:l[s.config.selectableId],onChange:k=>l.selected=!l.selected},null,40,Ae)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.config.smColCount,k=>(e.openBlock(),e.createElementBlock("div",{class:"t2l-card-col",key:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,B=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:B},[d(B,k)?(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("span",Ke,e.toDisplayString(d(B,k).label),1),e.createElementVNode("div",{innerHTML:m(d(B,k),l)},null,8,Ue)])):e.createCommentVNode("",!0)],64))),128))]))),128)),e.createElementVNode("div",Je,[a.config.actions?(e.openBlock(),e.createBlock(_,{key:0,item:l,options:a.config.actions,label:"...",id:c.toString(),right:!0},null,8,["item","options","id"])):e.createCommentVNode("",!0)])]))),128))]),s.config.paginatorSettings?(e.openBlock(),e.createBlock(w,{key:0,settings:s.config.paginatorSettings,onPagesize:i[0]||(i[0]=l=>s.$emit("pagesize",l)),onPage:i[1]||(i[1]=l=>s.$emit("page",l))},null,8,["settings"])):e.createCommentVNode("",!0),s.config.paginatorSettings?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qe," Elemek: "+e.toDisplayString(a.items.length),1))],64))}}),Xe={class:"tlb-container d-flex flex-column flex-grow-1"},Ye={class:"d-flex flex-row tlb-item"},Ze={class:"d-flex flex-column flex-grow-1 flex-sm-row justify-content-between tlb-item"},et=["id"],tt={key:0,class:"d-flex id"},ot={class:"d-flex flex-row align-items-center tlb-children-container"},H=e.defineComponent({__name:"TextListBox",props:{items:{}},emits:["deleted"],setup(u){return(a,n)=>{const o=e.resolveComponent("TextListBox",!0);return e.openBlock(),e.createElementBlock("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,t=>(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column",key:t.id},[e.createElementVNode("div",Ye,[e.createElementVNode("div",Ze,[e.createElementVNode("div",{class:"d-flex flex-grow-1",id:t.id},e.toDisplayString(t.label),9,et),t.showId?(e.openBlock(),e.createElementBlock("div",tt,e.toDisplayString(t.id),1)):e.createCommentVNode("",!0)]),t.hideDelete?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:0,icon:"fa-solid fa-trash",onClick:r=>a.$emit("deleted",t.id)},null,8,["onClick"]))]),e.createElementVNode("div",ot,[t.childrend?(e.openBlock(),e.createBlock(o,{key:0,items:t.childrend,showId:t.showId,hideDelete:t.hideDelete},null,8,["items","showId","hideDelete"])):e.createCommentVNode("",!0)])]))),128))])}}}),lt={key:0,class:"toast-container position-fixed bottom-0 start-50 translate-middle-x p-4 toast-zindex"},nt={class:"toast-header"},st={class:"me-auto"},at={class:"text-body-secondary"},rt=["onClick"],it=["innerHTML"],F=500,S=e.defineComponent({__name:"ToastComponent",props:{defaultDisplayDuration:{}},setup(u,{expose:a}){const n=u,o=e.ref([]);return a({addToast:r=>{r.displayDuration||(r.displayDuration=n.defaultDisplayDuration),r.id=new Date,o.value.filter(function(d){return d.id!==r.id}),o.value.push(r)}}),setInterval(()=>{o.value=o.value.map(r=>(r.displayDuration-=F,r)),o.value=o.value.filter(r=>r.displayDuration>0)},F),(r,d)=>o.value.length>0?(e.openBlock(),e.createElementBlock("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,m=>(e.openBlock(),e.createElementBlock("div",{key:m.message,class:e.normalizeClass(["toast d-block",{"toast-info":m.type==="info","toast-success":m.type==="success","toast-warning":m.type==="warning","toast-error":m.type==="error"}]),role:"alert","aria-live":"assertive","aria-atomic":"true"},[e.createElementVNode("div",nt,[e.createElementVNode("strong",st,e.toDisplayString(m.title),1),e.createElementVNode("small",at,e.toDisplayString(m.id.toLocaleTimeString()),1),e.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close",onClick:p=>o.value=o.value.filter(s=>s.id!==m.id)},null,8,rt)]),e.createElementVNode("div",{class:"toast-body",innerHTML:m.message},null,8,it)],2))),128))])):e.createCommentVNode("",!0)}}),P=e.defineComponent({__name:"ToastWrapper",setup(u){const a=e.ref(),n=[{id:"toast-notification-message",handler:o=>{let t=o.detail;a.value.addToast({title:t.title,message:t.message,type:t.severity,displayDuration:t.displayDuration})}},{id:"fetch-error",handler:o=>{let t=o.detail;a.value.addToast({title:t.title,message:t.message,type:"error",displayDuration:1e4})}}];return e.onMounted(()=>{n.forEach(o=>window.addEventListener(o.id,o.handler))}),e.onUnmounted(()=>{n.forEach(o=>window.removeEventListener(o.id,o.handler))}),(o,t)=>(e.openBlock(),e.createBlock(S,{ref_key:"toast",ref:a,defaultDisplayDuration:5e3},null,512))}}),ct={CheckBox:V,CheckBoxList:I,DropDown:b,DropDownMenu:_,DropDownCallBack:N,FilterCompact:D,FilterControl:$,IconButton:C,PaginatorControl:w,RadioButton:T,RadioButtonGroup:M,SpinningProgress:z,TableToList:R,TextListBox:H,ToastComponent:S,ToastWrapper:P},dt={install(u){Object.entries(ct).forEach(([a,n])=>{u.component(a,n)})}};exports.CheckBox=V;exports.CheckBoxList=I;exports.DropDown=b;exports.DropDownCallBack=N;exports.DropDownMenu=_;exports.FilterCompact=D;exports.FilterControl=$;exports.IconButton=C;exports.PaginatorControl=w;exports.RadioButton=T;exports.RadioButtonGroup=M;exports.SpinningProgress=z;exports.TableToList=R;exports.TextListBox=H;exports.ToastComponent=S;exports.ToastWrapper=P;exports.default=dt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as C, createElementBlock as a, openBlock as
|
|
2
|
-
const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"],
|
|
1
|
+
import { defineComponent as C, createElementBlock as a, openBlock as s, createElementVNode as r, toDisplayString as h, resolveComponent as O, Fragment as _, renderList as $, createVNode as E, createBlock as D, createCommentVNode as p, watch as R, ref as g, onMounted as M, unref as X, normalizeStyle as x, createTextVNode as H, normalizeClass as T, computed as S, onUnmounted as Y } from "vue";
|
|
2
|
+
const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], W = /* @__PURE__ */ C({
|
|
3
3
|
__name: "CheckBox",
|
|
4
4
|
props: {
|
|
5
5
|
id: {},
|
|
@@ -7,15 +7,15 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
7
7
|
checked: { type: Boolean }
|
|
8
8
|
},
|
|
9
9
|
emits: ["changed"],
|
|
10
|
-
setup(
|
|
11
|
-
return (i,
|
|
10
|
+
setup(f) {
|
|
11
|
+
return (i, n) => (s(), a("div", Z, [
|
|
12
12
|
r("input", {
|
|
13
13
|
class: "form-check-input",
|
|
14
14
|
type: "checkbox",
|
|
15
15
|
checked: i.checked,
|
|
16
16
|
value: "",
|
|
17
17
|
id: i.id,
|
|
18
|
-
onChange:
|
|
18
|
+
onChange: n[0] || (n[0] = (t) => i.$emit("changed", {
|
|
19
19
|
id: i.id,
|
|
20
20
|
checked: t.target.checked
|
|
21
21
|
}))
|
|
@@ -32,34 +32,34 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
32
32
|
items: {},
|
|
33
33
|
callback: { type: Function }
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
return (i,
|
|
37
|
-
const t =
|
|
38
|
-
return
|
|
35
|
+
setup(f) {
|
|
36
|
+
return (i, n) => {
|
|
37
|
+
const t = O("CheckBoxList", !0);
|
|
38
|
+
return s(!0), a(_, null, $(i.items, (e) => (s(), a("div", {
|
|
39
39
|
key: e.id,
|
|
40
40
|
class: "cbl-container"
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
E(W, {
|
|
43
43
|
id: e.id,
|
|
44
44
|
label: e.label,
|
|
45
45
|
checked: e.checked,
|
|
46
|
-
onChanged:
|
|
46
|
+
onChanged: n[0] || (n[0] = (d) => i.callback(d.id, d.checked))
|
|
47
47
|
}, null, 8, ["id", "label", "checked"]),
|
|
48
48
|
r("div", le, [
|
|
49
|
-
e.childrend ? (
|
|
49
|
+
e.childrend ? (s(), D(t, {
|
|
50
50
|
key: 0,
|
|
51
51
|
items: e.childrend,
|
|
52
52
|
callback: i.callback
|
|
53
|
-
}, null, 8, ["items", "callback"])) :
|
|
53
|
+
}, null, 8, ["items", "callback"])) : p("", !0)
|
|
54
54
|
])
|
|
55
55
|
]))), 128);
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
}), oe = (
|
|
59
|
-
const
|
|
58
|
+
}), oe = (f, i) => {
|
|
59
|
+
const n = f.__vccOpts || f;
|
|
60
60
|
for (const [t, e] of i)
|
|
61
|
-
|
|
62
|
-
return
|
|
61
|
+
n[t] = e;
|
|
62
|
+
return n;
|
|
63
63
|
}, se = /* @__PURE__ */ oe(ne, [["__scopeId", "data-v-ae2832c5"]]), ie = ["id"], ae = ["disabled"], re = { class: "dd-label" }, de = { class: "dd-item-list" }, ue = ["onClick"], z = /* @__PURE__ */ C({
|
|
64
64
|
__name: "DropDown",
|
|
65
65
|
props: {
|
|
@@ -74,44 +74,44 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
74
74
|
disabled: { type: Boolean }
|
|
75
75
|
},
|
|
76
76
|
emits: ["selected", "filtered"],
|
|
77
|
-
setup(
|
|
78
|
-
const
|
|
79
|
-
R(
|
|
80
|
-
|
|
77
|
+
setup(f, { emit: i }) {
|
|
78
|
+
const n = f;
|
|
79
|
+
R(n.options, () => {
|
|
80
|
+
n.filterevent && (u.value = n.options.value);
|
|
81
81
|
}), R(
|
|
82
|
-
() =>
|
|
82
|
+
() => n.selected,
|
|
83
83
|
() => {
|
|
84
|
-
|
|
84
|
+
b();
|
|
85
85
|
}
|
|
86
86
|
), R(
|
|
87
|
-
() =>
|
|
87
|
+
() => n.label,
|
|
88
88
|
() => {
|
|
89
|
-
|
|
89
|
+
b();
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
const t = i, e = (
|
|
93
|
-
|
|
94
|
-
}, d = "törlés",
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
|
|
92
|
+
const t = i, e = (y) => {
|
|
93
|
+
n.storeselected || (v.value = y.label), t("selected", y);
|
|
94
|
+
}, d = "törlés", v = g(""), b = () => {
|
|
95
|
+
if (n.options.value) {
|
|
96
|
+
const y = n.options.value.find((k) => k.id == n.selected);
|
|
97
|
+
y ? v.value = y.label : (o(""), v.value = n.label);
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
M(() => {
|
|
101
|
-
|
|
101
|
+
n.label && (v.value = n.label), b(), m = "", document.addEventListener("click", function() {
|
|
102
102
|
I.value == "block" && (I.value = "none");
|
|
103
103
|
}), window.addEventListener("scrolled", function() {
|
|
104
104
|
I.value == "block" && (I.value = "none");
|
|
105
105
|
}), w();
|
|
106
106
|
});
|
|
107
107
|
let m = "";
|
|
108
|
-
const
|
|
109
|
-
m =
|
|
110
|
-
(k) => k.label.toLowerCase().includes(
|
|
108
|
+
const o = (y) => {
|
|
109
|
+
m = y, n.filterevent ? t("filtered", y) : y == "" ? u.value = n.options.value : u.value = n.options.value.filter(
|
|
110
|
+
(k) => k.label.toLowerCase().includes(y.toLowerCase())
|
|
111
111
|
);
|
|
112
112
|
}, u = g([]), l = () => {
|
|
113
|
-
e({ label:
|
|
114
|
-
},
|
|
113
|
+
e({ label: n.label, id: "" }), o("");
|
|
114
|
+
}, c = () => {
|
|
115
115
|
if (I.value == "block") {
|
|
116
116
|
I.value = "none";
|
|
117
117
|
return;
|
|
@@ -120,11 +120,11 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
120
120
|
I.value = "block";
|
|
121
121
|
}, 10), setTimeout(w, 20);
|
|
122
122
|
}, w = () => {
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
}, L = g(null),
|
|
126
|
-
return (
|
|
127
|
-
id:
|
|
123
|
+
const y = L.value, k = N.value;
|
|
124
|
+
n.opentop ? k.style.top = y.getBoundingClientRect().y - k.offsetHeight + "px" : (k.style.top = y.getBoundingClientRect().y + y.offsetHeight + "px", y.getBoundingClientRect().y - k.getBoundingClientRect().y != -y.offsetHeight && (k.style.top = parseInt(k.style.top.substring(0, k.style.top.length - 2)) + (y.getBoundingClientRect().y - k.getBoundingClientRect().y) + y.offsetHeight + "px")), P.value && P.value.focus();
|
|
125
|
+
}, L = g(null), N = g(null), I = g("none"), P = g(null);
|
|
126
|
+
return (y, k) => (s(), a("div", {
|
|
127
|
+
id: y.id,
|
|
128
128
|
class: "dd-flex"
|
|
129
129
|
}, [
|
|
130
130
|
r("button", {
|
|
@@ -132,52 +132,52 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
132
132
|
ref: L,
|
|
133
133
|
class: "btn btn-outline-secondary dd-toggle dd-flex",
|
|
134
134
|
type: "button",
|
|
135
|
-
disabled:
|
|
135
|
+
disabled: y.disabled,
|
|
136
136
|
onClick: k[0] || (k[0] = (B) => {
|
|
137
|
-
|
|
137
|
+
o(X(m)), c();
|
|
138
138
|
})
|
|
139
139
|
}, [
|
|
140
|
-
r("div", re, h(
|
|
140
|
+
r("div", re, h(v.value), 1)
|
|
141
141
|
], 8, ae),
|
|
142
142
|
r("div", {
|
|
143
143
|
class: "dd-menu",
|
|
144
144
|
style: x({ display: I.value }),
|
|
145
145
|
ref_key: "DropDownMenu",
|
|
146
|
-
ref:
|
|
146
|
+
ref: N
|
|
147
147
|
}, [
|
|
148
|
-
|
|
148
|
+
v.value != n.label ? (s(), a("button", {
|
|
149
149
|
key: 0,
|
|
150
150
|
type: "button",
|
|
151
151
|
class: "btn btn-outline-secondary dd-button",
|
|
152
152
|
onClick: k[1] || (k[1] = (B) => l())
|
|
153
|
-
}, h(d))) :
|
|
154
|
-
|
|
153
|
+
}, h(d))) : p("", !0),
|
|
154
|
+
y.disableFilter ? p("", !0) : (s(), a("input", {
|
|
155
155
|
key: 1,
|
|
156
156
|
ref_key: "ddSearch",
|
|
157
157
|
ref: P,
|
|
158
158
|
type: "text ",
|
|
159
159
|
class: "form-control",
|
|
160
160
|
placeholder: "keresés",
|
|
161
|
-
onInput: k[2] || (k[2] = (B) =>
|
|
161
|
+
onInput: k[2] || (k[2] = (B) => o(B.target.value)),
|
|
162
162
|
onClick: k[3] || (k[3] = (B) => B.stopPropagation())
|
|
163
163
|
}, null, 544)),
|
|
164
164
|
r("div", de, [
|
|
165
|
-
(
|
|
165
|
+
(s(!0), a(_, null, $(u.value, (B) => (s(), a("div", {
|
|
166
166
|
key: B.id,
|
|
167
167
|
class: "dd-item",
|
|
168
|
-
onClick: (
|
|
168
|
+
onClick: (It) => e(B)
|
|
169
169
|
}, [
|
|
170
|
-
B.icon ? (
|
|
170
|
+
B.icon ? (s(), a("i", {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: T([B.icon, "dd-item__icon"])
|
|
173
|
-
}, null, 2)) :
|
|
174
|
-
|
|
173
|
+
}, null, 2)) : p("", !0),
|
|
174
|
+
H(h(B.label), 1)
|
|
175
175
|
], 8, ue))), 128))
|
|
176
176
|
])
|
|
177
177
|
], 4)
|
|
178
178
|
], 8, ie));
|
|
179
179
|
}
|
|
180
|
-
}), ce = ["id"], pe = ["disabled"], ve = { class: "ddc-row" }, fe = { class: "ddc-label" }, me = { class: "dd-item-list" }, ge = ["onClick"],
|
|
180
|
+
}), ce = ["id"], pe = ["disabled"], ve = { class: "ddc-row" }, fe = { class: "ddc-label" }, me = { class: "dd-item-list" }, ge = ["onClick"], be = { class: "ddc-item" }, ye = { class: "ddc-label" }, ke = "törlés", A = /* @__PURE__ */ C({
|
|
181
181
|
__name: "DropDownCallBack",
|
|
182
182
|
props: {
|
|
183
183
|
id: {},
|
|
@@ -186,8 +186,8 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
186
186
|
enabled: { type: Boolean },
|
|
187
187
|
options: {}
|
|
188
188
|
},
|
|
189
|
-
setup(
|
|
190
|
-
const i =
|
|
189
|
+
setup(f) {
|
|
190
|
+
const i = f, n = (u) => {
|
|
191
191
|
u == i.default && t.value.callback(""), t.value = u, t.value.callback(t.value.value);
|
|
192
192
|
}, t = g(i.default), e = () => {
|
|
193
193
|
if (i.selected && i.options.value) {
|
|
@@ -199,27 +199,27 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
199
199
|
};
|
|
200
200
|
M(() => {
|
|
201
201
|
e(), document.addEventListener("click", function() {
|
|
202
|
-
|
|
202
|
+
o.value == "block" && (o.value = "none");
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
205
|
const d = () => {
|
|
206
206
|
setTimeout(() => {
|
|
207
|
-
|
|
207
|
+
o.value = "block";
|
|
208
208
|
}, 10), setTimeout(() => {
|
|
209
|
-
m.value =
|
|
209
|
+
m.value = v.value.offsetHeight;
|
|
210
210
|
}, 20);
|
|
211
|
-
},
|
|
212
|
-
return (u, l) => (
|
|
211
|
+
}, v = g(null), b = g(null), m = g(0), o = g("none");
|
|
212
|
+
return (u, l) => (s(), a("div", {
|
|
213
213
|
class: "ddc-flex",
|
|
214
214
|
id: u.id
|
|
215
215
|
}, [
|
|
216
216
|
r("button", {
|
|
217
217
|
ref_key: "DropDownTriggerButton",
|
|
218
|
-
ref:
|
|
218
|
+
ref: v,
|
|
219
219
|
class: "btn btn-outline-secondary ddc-button",
|
|
220
220
|
type: "button",
|
|
221
221
|
disabled: !u.enabled,
|
|
222
|
-
onClick: l[0] || (l[0] = (
|
|
222
|
+
onClick: l[0] || (l[0] = (c) => d())
|
|
223
223
|
}, [
|
|
224
224
|
r("span", ve, [
|
|
225
225
|
r("i", {
|
|
@@ -230,27 +230,27 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
230
230
|
], 8, pe),
|
|
231
231
|
r("div", {
|
|
232
232
|
class: "ddc-menu",
|
|
233
|
-
style: x({ display:
|
|
233
|
+
style: x({ display: o.value, "margin-top": m.value + "px" }),
|
|
234
234
|
ref_key: "DropDownMenu",
|
|
235
|
-
ref:
|
|
235
|
+
ref: b
|
|
236
236
|
}, [
|
|
237
|
-
t.value != i.default ? (
|
|
237
|
+
t.value != i.default ? (s(), a("button", {
|
|
238
238
|
key: 0,
|
|
239
239
|
type: "button",
|
|
240
240
|
class: "btn btn-outline-secondary ddc-button",
|
|
241
|
-
onClick: l[1] || (l[1] = (
|
|
242
|
-
}, h(ke))) :
|
|
241
|
+
onClick: l[1] || (l[1] = (c) => n(i.default))
|
|
242
|
+
}, h(ke))) : p("", !0),
|
|
243
243
|
r("div", me, [
|
|
244
|
-
(
|
|
245
|
-
key:
|
|
244
|
+
(s(!0), a(_, null, $(u.options.value, (c) => (s(), a("div", {
|
|
245
|
+
key: c.label,
|
|
246
246
|
class: "ddc-item",
|
|
247
|
-
onClick: (w) =>
|
|
247
|
+
onClick: (w) => n(c)
|
|
248
248
|
}, [
|
|
249
|
-
r("span",
|
|
249
|
+
r("span", be, [
|
|
250
250
|
r("i", {
|
|
251
|
-
class: T([
|
|
251
|
+
class: T([c.icon, "ddc-icon"])
|
|
252
252
|
}, null, 2),
|
|
253
|
-
r("span",
|
|
253
|
+
r("span", ye, h(c.label), 1)
|
|
254
254
|
])
|
|
255
255
|
], 8, ge))), 128))
|
|
256
256
|
])
|
|
@@ -273,22 +273,22 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
273
273
|
id: {},
|
|
274
274
|
right: { type: Boolean }
|
|
275
275
|
},
|
|
276
|
-
setup(
|
|
277
|
-
const i =
|
|
276
|
+
setup(f) {
|
|
277
|
+
const i = f;
|
|
278
278
|
M(() => {
|
|
279
279
|
document.addEventListener("click", function() {
|
|
280
|
-
|
|
280
|
+
n.value && (n.value = !1);
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
|
-
const
|
|
283
|
+
const n = g(!1), t = () => {
|
|
284
284
|
setTimeout(() => {
|
|
285
|
-
|
|
285
|
+
n.value = !0;
|
|
286
286
|
}, 10), setTimeout(e, 20);
|
|
287
287
|
}, e = () => {
|
|
288
|
-
const m = d.value,
|
|
289
|
-
|
|
290
|
-
}, d = g(null),
|
|
291
|
-
return (m,
|
|
288
|
+
const m = d.value, o = v.value;
|
|
289
|
+
o.style.top = m.getBoundingClientRect().y + m.offsetHeight + "px", m.getBoundingClientRect().y - o.getBoundingClientRect().y != -m.offsetHeight && (o.style.top = parseInt(o.style.top.substring(0, o.style.top.length - 2)) + (m.getBoundingClientRect().y - o.getBoundingClientRect().y) + m.offsetHeight + "px"), o.style.left = m.getBoundingClientRect().x - (i.right ? 100 : 0) + "px";
|
|
290
|
+
}, d = g(null), v = g(null), b = g(0);
|
|
291
|
+
return (m, o) => (s(), a("div", {
|
|
292
292
|
class: "d-flex",
|
|
293
293
|
id: m.id
|
|
294
294
|
}, [
|
|
@@ -297,23 +297,23 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
297
297
|
ref: d,
|
|
298
298
|
class: "btn btn-outline-secondary",
|
|
299
299
|
type: "button",
|
|
300
|
-
onClick:
|
|
300
|
+
onClick: o[0] || (o[0] = (u) => t())
|
|
301
301
|
}, [
|
|
302
|
-
m.label ? (
|
|
303
|
-
m.icon ? (
|
|
302
|
+
m.label ? (s(), a("span", _e, h(m.label), 1)) : p("", !0),
|
|
303
|
+
m.icon ? (s(), a("span", Ce, [
|
|
304
304
|
r("i", {
|
|
305
305
|
class: T(m.icon)
|
|
306
306
|
}, null, 2)
|
|
307
|
-
])) :
|
|
307
|
+
])) : p("", !0)
|
|
308
308
|
], 512),
|
|
309
|
-
|
|
309
|
+
n.value ? (s(), a("div", {
|
|
310
310
|
key: 0,
|
|
311
311
|
class: "ddm-menu",
|
|
312
312
|
ref_key: "DropDownMenu",
|
|
313
|
-
ref:
|
|
314
|
-
style: x({ "margin-top":
|
|
313
|
+
ref: v,
|
|
314
|
+
style: x({ "margin-top": b.value + "px" })
|
|
315
315
|
}, [
|
|
316
|
-
(
|
|
316
|
+
(s(!0), a(_, null, $(m.options, (u) => (s(), a("div", {
|
|
317
317
|
key: u.icon,
|
|
318
318
|
class: "ddm-item",
|
|
319
319
|
onClick: (l) => u.command(m.item)
|
|
@@ -321,9 +321,9 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
321
321
|
r("i", {
|
|
322
322
|
class: T(u.icon)
|
|
323
323
|
}, null, 2),
|
|
324
|
-
|
|
324
|
+
H(h(u.label), 1)
|
|
325
325
|
], 8, $e))), 128))
|
|
326
|
-
], 4)) :
|
|
326
|
+
], 4)) : p("", !0)
|
|
327
327
|
], 8, he));
|
|
328
328
|
}
|
|
329
329
|
}), we = { class: "fltrc-container" }, De = { class: "fltrc-container" }, Be = ["placeholder", "value"], Te = {
|
|
@@ -334,11 +334,11 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
334
334
|
props: {
|
|
335
335
|
items: {}
|
|
336
336
|
},
|
|
337
|
-
setup(
|
|
338
|
-
const i =
|
|
337
|
+
setup(f) {
|
|
338
|
+
const i = f, n = g(0), t = g(0), e = S(() => i.items[n.value].filter), d = (u) => {
|
|
339
339
|
let l = i.items[t.value];
|
|
340
|
-
l.filter.filtered(l.filter.key, ""),
|
|
341
|
-
},
|
|
340
|
+
l.filter.filtered(l.filter.key, ""), n.value = u, t.value = u, o.value += 1;
|
|
341
|
+
}, v = g(void 0);
|
|
342
342
|
M(() => {
|
|
343
343
|
let u = [];
|
|
344
344
|
for (let l = 0; l < i.items.length; l++)
|
|
@@ -347,39 +347,39 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
347
347
|
label: i.items[l].label,
|
|
348
348
|
command: () => d(l)
|
|
349
349
|
});
|
|
350
|
-
|
|
350
|
+
v.value = u;
|
|
351
351
|
});
|
|
352
|
-
const
|
|
353
|
-
return (u, l) => (
|
|
354
|
-
|
|
352
|
+
const b = g({}), m = g(void 0), o = g(0);
|
|
353
|
+
return (u, l) => (s(), a("div", we, [
|
|
354
|
+
v.value ? (s(), D(V, {
|
|
355
355
|
key: 0,
|
|
356
356
|
id: "ddm",
|
|
357
|
-
icon: u.items[
|
|
358
|
-
item: u.items[
|
|
357
|
+
icon: u.items[n.value].icon,
|
|
358
|
+
item: u.items[n.value],
|
|
359
359
|
label: "",
|
|
360
|
-
options:
|
|
361
|
-
}, null, 8, ["icon", "item", "options"])) :
|
|
360
|
+
options: v.value
|
|
361
|
+
}, null, 8, ["icon", "item", "options"])) : p("", !0),
|
|
362
362
|
r("div", De, [
|
|
363
|
-
e.value.type == "text" ? (
|
|
363
|
+
e.value.type == "text" ? (s(), a("input", {
|
|
364
364
|
key: 0,
|
|
365
365
|
type: "text",
|
|
366
366
|
class: "form-control",
|
|
367
367
|
placeholder: e.value.placeholder,
|
|
368
368
|
value: e.value.defaultv ?? "",
|
|
369
|
-
onInput: l[0] || (l[0] = (
|
|
369
|
+
onInput: l[0] || (l[0] = (c) => {
|
|
370
370
|
e.value.filtered(
|
|
371
371
|
e.value.key,
|
|
372
|
-
|
|
373
|
-
), e.value.defaultv =
|
|
372
|
+
c.target.value
|
|
373
|
+
), e.value.defaultv = c.target.value;
|
|
374
374
|
})
|
|
375
|
-
}, null, 40, Be)) :
|
|
376
|
-
e.value.type == "date" ? (
|
|
375
|
+
}, null, 40, Be)) : p("", !0),
|
|
376
|
+
e.value.type == "date" ? (s(), a("div", Te, [
|
|
377
377
|
r("input", {
|
|
378
378
|
type: "date",
|
|
379
379
|
class: "form-control",
|
|
380
380
|
value: e.value.defFrom ?? "",
|
|
381
|
-
onInput: l[1] || (l[1] = (
|
|
382
|
-
|
|
381
|
+
onInput: l[1] || (l[1] = (c) => {
|
|
382
|
+
b.value.from = c.target.value == "" ? null : c.target.value, e.value.defFrom = c.target.value == "" ? null : c.target.value, e.value.filtered(e.value.key, b.value);
|
|
383
383
|
})
|
|
384
384
|
}, null, 40, Le),
|
|
385
385
|
l[5] || (l[5] = r("span", { class: "input-group-text" }, "-", -1)),
|
|
@@ -387,56 +387,56 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
387
387
|
type: "date",
|
|
388
388
|
class: "form-control",
|
|
389
389
|
value: e.value.defTill ?? "",
|
|
390
|
-
onInput: l[2] || (l[2] = (
|
|
391
|
-
|
|
390
|
+
onInput: l[2] || (l[2] = (c) => {
|
|
391
|
+
b.value.untill = c.target.value == "" ? null : c.target.value, e.value.defTill = c.target.value == "" ? null : c.target.value, e.value.filtered(e.value.key, b.value);
|
|
392
392
|
})
|
|
393
393
|
}, null, 40, Ie)
|
|
394
|
-
])) :
|
|
395
|
-
e.value.type == "dropdown" ? (
|
|
396
|
-
key:
|
|
394
|
+
])) : p("", !0),
|
|
395
|
+
e.value.type == "dropdown" ? (s(), D(z, {
|
|
396
|
+
key: o.value,
|
|
397
397
|
selected: m.value,
|
|
398
398
|
options: e.value.options,
|
|
399
399
|
filterevent: e.value.filterevent,
|
|
400
|
-
onFiltered: l[3] || (l[3] = (
|
|
401
|
-
e.value.onfiltered && e.value.onfiltered(
|
|
400
|
+
onFiltered: l[3] || (l[3] = (c) => {
|
|
401
|
+
e.value.onfiltered && e.value.onfiltered(c);
|
|
402
402
|
}),
|
|
403
403
|
id: e.value.key,
|
|
404
404
|
label: e.value.label,
|
|
405
|
-
onSelected: l[4] || (l[4] = (
|
|
406
|
-
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) :
|
|
405
|
+
onSelected: l[4] || (l[4] = (c) => e.value.filtered(e.value.key, c.id))
|
|
406
|
+
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) : p("", !0)
|
|
407
407
|
])
|
|
408
408
|
]));
|
|
409
409
|
}
|
|
410
410
|
}), Se = { class: "fltrctrl-container" }, Me = ["placeholder", "value"], Fe = {
|
|
411
411
|
key: 1,
|
|
412
412
|
class: "d-flex flex-row input-group align-items-center"
|
|
413
|
-
}, Re = ["value"],
|
|
413
|
+
}, Re = ["value"], Ee = ["value"], F = g({}), U = /* @__PURE__ */ C({
|
|
414
414
|
__name: "FilterControl",
|
|
415
415
|
props: {
|
|
416
416
|
item: {}
|
|
417
417
|
},
|
|
418
|
-
setup(
|
|
419
|
-
const i =
|
|
418
|
+
setup(f) {
|
|
419
|
+
const i = f;
|
|
420
420
|
M(() => {
|
|
421
421
|
var t;
|
|
422
422
|
if (i.item.type == "dropdown") {
|
|
423
423
|
const e = i.item;
|
|
424
|
-
|
|
424
|
+
n.value = (t = e.options.value.find(
|
|
425
425
|
(d) => d.id == i.item.defaultv
|
|
426
426
|
)) == null ? void 0 : t.id;
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
|
-
const
|
|
430
|
-
return (t, e) => (
|
|
431
|
-
t.item.type == "text" ? (
|
|
429
|
+
const n = g(void 0);
|
|
430
|
+
return (t, e) => (s(), a("div", Se, [
|
|
431
|
+
t.item.type == "text" ? (s(), a("input", {
|
|
432
432
|
key: 0,
|
|
433
433
|
type: "text",
|
|
434
434
|
class: "form-control",
|
|
435
435
|
placeholder: t.item.placeholder,
|
|
436
436
|
value: t.item.defaultv ?? "",
|
|
437
437
|
onInput: e[0] || (e[0] = (d) => t.item.filtered(t.item.key, d.target.value))
|
|
438
|
-
}, null, 40, Me)) :
|
|
439
|
-
t.item.type == "date" ? (
|
|
438
|
+
}, null, 40, Me)) : p("", !0),
|
|
439
|
+
t.item.type == "date" ? (s(), a("div", Fe, [
|
|
440
440
|
r("input", {
|
|
441
441
|
type: "date",
|
|
442
442
|
class: "form-control",
|
|
@@ -453,11 +453,11 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
453
453
|
onInput: e[2] || (e[2] = (d) => {
|
|
454
454
|
F.value.untill = d.target.value == "" ? null : d.target.value, t.item.filtered(t.item.key, F.value);
|
|
455
455
|
})
|
|
456
|
-
}, null, 40,
|
|
457
|
-
])) :
|
|
458
|
-
t.item.type == "dropdown" ? (
|
|
456
|
+
}, null, 40, Ee)
|
|
457
|
+
])) : p("", !0),
|
|
458
|
+
t.item.type == "dropdown" ? (s(), D(z, {
|
|
459
459
|
key: 2,
|
|
460
|
-
selected:
|
|
460
|
+
selected: n.value,
|
|
461
461
|
options: g(t.item.options),
|
|
462
462
|
filterevent: t.item.filterevent,
|
|
463
463
|
onFiltered: e[3] || (e[3] = (d) => {
|
|
@@ -466,10 +466,10 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
466
466
|
id: t.item.key,
|
|
467
467
|
label: t.item.label,
|
|
468
468
|
onSelected: e[4] || (e[4] = (d) => t.item.filtered(t.item.key, d.id))
|
|
469
|
-
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) :
|
|
469
|
+
}, null, 8, ["selected", "options", "filterevent", "id", "label"])) : p("", !0)
|
|
470
470
|
]));
|
|
471
471
|
}
|
|
472
|
-
}),
|
|
472
|
+
}), j = /* @__PURE__ */ C({
|
|
473
473
|
__name: "IconButton",
|
|
474
474
|
props: {
|
|
475
475
|
icon: {},
|
|
@@ -477,12 +477,12 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
477
477
|
big: { type: Boolean }
|
|
478
478
|
},
|
|
479
479
|
emits: ["click"],
|
|
480
|
-
setup(
|
|
481
|
-
const
|
|
482
|
-
() => `${
|
|
480
|
+
setup(f, { emit: i }) {
|
|
481
|
+
const n = f, t = S(
|
|
482
|
+
() => `${n.icon} ${n.big ? "ib-button-big" : ""}`
|
|
483
483
|
), e = i;
|
|
484
|
-
return (d,
|
|
485
|
-
onClick:
|
|
484
|
+
return (d, v) => (s(), a("div", {
|
|
485
|
+
onClick: v[0] || (v[0] = (b) => e("click")),
|
|
486
486
|
class: "ib-container"
|
|
487
487
|
}, [
|
|
488
488
|
r("div", {
|
|
@@ -494,59 +494,59 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
494
494
|
], 2)
|
|
495
495
|
]));
|
|
496
496
|
}
|
|
497
|
-
}),
|
|
497
|
+
}), He = { class: "pc-container" }, ze = ["value", "max"], q = /* @__PURE__ */ C({
|
|
498
498
|
__name: "PaginatorControl",
|
|
499
499
|
props: {
|
|
500
500
|
settings: {}
|
|
501
501
|
},
|
|
502
502
|
emits: ["pagesize", "page"],
|
|
503
|
-
setup(
|
|
504
|
-
const
|
|
505
|
-
let
|
|
506
|
-
return
|
|
507
|
-
(u) =>
|
|
508
|
-
),
|
|
503
|
+
setup(f, { emit: i }) {
|
|
504
|
+
const n = f, t = i, e = () => {
|
|
505
|
+
let o = g([]);
|
|
506
|
+
return n.settings.value.sizes.forEach(
|
|
507
|
+
(u) => o.value.push({ label: u.toString(), id: u.toString() })
|
|
508
|
+
), o;
|
|
509
509
|
}, d = g(1);
|
|
510
510
|
R(
|
|
511
|
-
() =>
|
|
511
|
+
() => n.settings.value,
|
|
512
512
|
() => {
|
|
513
513
|
d.value = 1;
|
|
514
514
|
}
|
|
515
515
|
);
|
|
516
|
-
const
|
|
517
|
-
() => Math.floor(
|
|
518
|
-
),
|
|
516
|
+
const v = S(
|
|
517
|
+
() => Math.floor(n.settings.value.total / n.settings.value.pagesize) + 1
|
|
518
|
+
), b = () => {
|
|
519
519
|
d.value > 1 && (d.value -= 1, t("page", d.value));
|
|
520
520
|
}, m = () => {
|
|
521
|
-
d.value <
|
|
521
|
+
d.value < v.value && (d.value += 1, t("page", d.value));
|
|
522
522
|
};
|
|
523
|
-
return (
|
|
523
|
+
return (o, u) => (s(), a("div", He, [
|
|
524
524
|
r("button", {
|
|
525
525
|
class: "btn btn-outline-secondary",
|
|
526
|
-
onClick:
|
|
526
|
+
onClick: b
|
|
527
527
|
}, "<"),
|
|
528
528
|
r("input", {
|
|
529
529
|
class: "form-control pc-input",
|
|
530
530
|
type: "number",
|
|
531
531
|
value: d.value,
|
|
532
532
|
min: "1",
|
|
533
|
-
max:
|
|
534
|
-
onChange: u[0] || (u[0] = (l) =>
|
|
533
|
+
max: v.value,
|
|
534
|
+
onChange: u[0] || (u[0] = (l) => o.$emit("page", l.target.value))
|
|
535
535
|
}, null, 40, ze),
|
|
536
|
-
|
|
536
|
+
H("/" + h(v.value) + " ", 1),
|
|
537
537
|
r("button", {
|
|
538
538
|
class: "btn btn-outline-secondary",
|
|
539
539
|
onClick: m
|
|
540
540
|
}, ">"),
|
|
541
|
-
|
|
541
|
+
E(z, {
|
|
542
542
|
opentop: !0,
|
|
543
543
|
class: "pc-dropdown",
|
|
544
544
|
id: "pagecount",
|
|
545
545
|
label: "10",
|
|
546
|
-
selected:
|
|
546
|
+
selected: o.settings.value.pagesize.toString(),
|
|
547
547
|
options: e(),
|
|
548
548
|
onSelected: u[1] || (u[1] = (l) => {
|
|
549
|
-
d.value = 1,
|
|
549
|
+
d.value = 1, o.$emit("pagesize", parseInt(l.id));
|
|
550
550
|
})
|
|
551
551
|
}, null, 8, ["selected", "options"])
|
|
552
552
|
]));
|
|
@@ -560,15 +560,15 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
560
560
|
selected: { type: Boolean }
|
|
561
561
|
},
|
|
562
562
|
emits: ["selected"],
|
|
563
|
-
setup(
|
|
564
|
-
return (i,
|
|
563
|
+
setup(f) {
|
|
564
|
+
return (i, n) => (s(), a("div", Pe, [
|
|
565
565
|
r("input", {
|
|
566
566
|
class: "form-check-input",
|
|
567
567
|
type: "radio",
|
|
568
568
|
name: i.group,
|
|
569
569
|
id: i.id,
|
|
570
570
|
checked: i.selected,
|
|
571
|
-
onChange:
|
|
571
|
+
onChange: n[0] || (n[0] = (t) => i.$emit("selected", i.id))
|
|
572
572
|
}, null, 40, xe),
|
|
573
573
|
r("label", {
|
|
574
574
|
class: "form-check-label",
|
|
@@ -576,22 +576,22 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
576
576
|
}, h(i.label), 9, Ve)
|
|
577
577
|
]));
|
|
578
578
|
}
|
|
579
|
-
}),
|
|
579
|
+
}), je = { class: "d-flex flex-column gap-2 justify-content-around" }, Ne = /* @__PURE__ */ C({
|
|
580
580
|
__name: "RadioButtonGroup",
|
|
581
581
|
props: {
|
|
582
582
|
group: {},
|
|
583
583
|
items: {}
|
|
584
584
|
},
|
|
585
585
|
emits: ["selected"],
|
|
586
|
-
setup(
|
|
587
|
-
return (i,
|
|
588
|
-
(
|
|
586
|
+
setup(f) {
|
|
587
|
+
return (i, n) => (s(), a("div", je, [
|
|
588
|
+
(s(!0), a(_, null, $(i.items, (t) => (s(), D(J, {
|
|
589
589
|
key: t.id,
|
|
590
590
|
id: t.id,
|
|
591
591
|
label: t.label,
|
|
592
592
|
group: i.group,
|
|
593
593
|
selected: t.selected,
|
|
594
|
-
onSelected:
|
|
594
|
+
onSelected: n[0] || (n[0] = (e) => i.$emit("selected", e))
|
|
595
595
|
}, null, 8, ["id", "label", "group", "selected"]))), 128))
|
|
596
596
|
]));
|
|
597
597
|
}
|
|
@@ -599,17 +599,17 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
599
599
|
key: 0,
|
|
600
600
|
class: "spinner-border",
|
|
601
601
|
role: "status"
|
|
602
|
-
},
|
|
602
|
+
}, Oe = /* @__PURE__ */ C({
|
|
603
603
|
__name: "SpinningProgress",
|
|
604
604
|
props: {
|
|
605
605
|
loading: { type: Boolean }
|
|
606
606
|
},
|
|
607
|
-
setup(
|
|
608
|
-
return (i,
|
|
607
|
+
setup(f) {
|
|
608
|
+
return (i, n) => i.loading ? (s(), a("div", Ge, n[0] || (n[0] = [
|
|
609
609
|
r("span", { class: "visually-hidden" }, "Loading...", -1)
|
|
610
|
-
]))) :
|
|
610
|
+
]))) : p("", !0);
|
|
611
611
|
}
|
|
612
|
-
}),
|
|
612
|
+
}), We = { class: "t2l-table-view t2l-table-header-label" }, Ae = {
|
|
613
613
|
key: 0,
|
|
614
614
|
class: "t2l-select"
|
|
615
615
|
}, Ke = {
|
|
@@ -643,105 +643,105 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
643
643
|
config: {}
|
|
644
644
|
},
|
|
645
645
|
emits: ["pagesize", "page"],
|
|
646
|
-
setup(
|
|
647
|
-
const i =
|
|
648
|
-
() => i.config.columns.filter((
|
|
646
|
+
setup(f) {
|
|
647
|
+
const i = f, n = S(
|
|
648
|
+
() => i.config.columns.filter((o) => o.visible != !1)
|
|
649
649
|
), t = S(
|
|
650
|
-
() => i.config.columns.filter((
|
|
650
|
+
() => i.config.columns.filter((o) => o.visible != !1 && o.filter)
|
|
651
651
|
), e = S(
|
|
652
|
-
() =>
|
|
653
|
-
(
|
|
652
|
+
() => n.value.filter(
|
|
653
|
+
(o) => o.sort && o.sort.active && o.sort.active.value
|
|
654
654
|
)
|
|
655
|
-
), d = S(() => Math.ceil(
|
|
656
|
-
var l =
|
|
657
|
-
return l <
|
|
658
|
-
},
|
|
659
|
-
if (
|
|
660
|
-
let u = !
|
|
655
|
+
), d = S(() => Math.ceil(n.value.length / i.config.smColCount)), v = (o, u) => {
|
|
656
|
+
var l = o - 1 + (u - 1) * d.value;
|
|
657
|
+
return l < n.value.length ? n.value[l] : null;
|
|
658
|
+
}, b = (o, u) => o.converter ? o.converter(u[o.property], u) : u[o.property], m = (o) => {
|
|
659
|
+
if (o.sort && o.sort.active) {
|
|
660
|
+
let u = !o.sort.active.value;
|
|
661
661
|
i.config.columns.forEach((l) => {
|
|
662
662
|
l.sort && l.sort.active && (l.sort.active.value = !1);
|
|
663
|
-
}),
|
|
663
|
+
}), o.sort.active.value = u, o.sort.callback(u ? o.property : "");
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
|
-
return (
|
|
667
|
-
r("div",
|
|
668
|
-
|
|
669
|
-
(
|
|
670
|
-
var
|
|
671
|
-
return
|
|
666
|
+
return (o, u) => (s(), a(_, null, [
|
|
667
|
+
r("div", We, [
|
|
668
|
+
o.config.selectableId ? (s(), a("span", Ae)) : p("", !0),
|
|
669
|
+
(s(!0), a(_, null, $(n.value, (l) => {
|
|
670
|
+
var c, w;
|
|
671
|
+
return s(), a("span", {
|
|
672
672
|
class: "t2l-cell",
|
|
673
673
|
key: l.property
|
|
674
674
|
}, [
|
|
675
|
-
l.sort ? (
|
|
675
|
+
l.sort ? (s(), D(j, {
|
|
676
676
|
key: 0,
|
|
677
677
|
icon: l.sort.icon,
|
|
678
678
|
onClick: (L) => m(l),
|
|
679
|
-
active: (w = (
|
|
680
|
-
}, null, 8, ["icon", "onClick", "active"])) :
|
|
681
|
-
|
|
679
|
+
active: (w = (c = l.sort) == null ? void 0 : c.active) == null ? void 0 : w.value
|
|
680
|
+
}, null, 8, ["icon", "onClick", "active"])) : p("", !0),
|
|
681
|
+
H(" " + h(l.label), 1)
|
|
682
682
|
]);
|
|
683
683
|
}), 128)),
|
|
684
|
-
|
|
684
|
+
o.config.actionHeader ? (s(), a("span", Ke, h(o.config.actionHeader), 1)) : p("", !0)
|
|
685
685
|
]),
|
|
686
686
|
r("div", Ue, [
|
|
687
|
-
|
|
688
|
-
(
|
|
687
|
+
o.config.selectableId ? (s(), a("span", qe)) : p("", !0),
|
|
688
|
+
(s(!0), a(_, null, $(n.value, (l) => (s(), a("span", {
|
|
689
689
|
class: "t2l-cell",
|
|
690
690
|
key: l.label
|
|
691
691
|
}, [
|
|
692
|
-
l.filter ? (
|
|
692
|
+
l.filter ? (s(), D(U, {
|
|
693
693
|
key: 0,
|
|
694
694
|
item: l.filter
|
|
695
|
-
}, null, 8, ["item"])) :
|
|
695
|
+
}, null, 8, ["item"])) : p("", !0)
|
|
696
696
|
]))), 128)),
|
|
697
|
-
|
|
697
|
+
o.config.actionHeader ? (s(), a("span", Je)) : p("", !0)
|
|
698
698
|
]),
|
|
699
699
|
r("div", Qe, [
|
|
700
|
-
(
|
|
700
|
+
(s(!0), a(_, null, $(o.items, (l) => (s(), a("div", {
|
|
701
701
|
key: l,
|
|
702
702
|
class: "t2l-row"
|
|
703
703
|
}, [
|
|
704
|
-
|
|
704
|
+
o.config.selectableId ? (s(), a("div", Xe, [
|
|
705
705
|
r("input", {
|
|
706
706
|
class: "form-check-input",
|
|
707
707
|
type: "checkbox",
|
|
708
|
-
id: l[
|
|
709
|
-
onChange: (
|
|
708
|
+
id: l[o.config.selectableId],
|
|
709
|
+
onChange: (c) => l.selected = !l.selected
|
|
710
710
|
}, null, 40, Ye)
|
|
711
|
-
])) :
|
|
712
|
-
(
|
|
711
|
+
])) : p("", !0),
|
|
712
|
+
(s(!0), a(_, null, $(n.value, (c) => (s(), a("div", {
|
|
713
713
|
class: "t2l-cell",
|
|
714
|
-
key:
|
|
715
|
-
innerHTML:
|
|
714
|
+
key: c.property,
|
|
715
|
+
innerHTML: b(c, l)
|
|
716
716
|
}, null, 8, Ze))), 128)),
|
|
717
|
-
|
|
718
|
-
(
|
|
719
|
-
key:
|
|
717
|
+
o.config.actions ? (s(), a("div", et, [
|
|
718
|
+
(s(!0), a(_, null, $(o.config.actions, (c) => (s(), a("button", {
|
|
719
|
+
key: c,
|
|
720
720
|
type: "button",
|
|
721
721
|
class: "btn btn-outline-secondary",
|
|
722
|
-
title:
|
|
723
|
-
disabled: !
|
|
724
|
-
onClick: (w) =>
|
|
722
|
+
title: c.label,
|
|
723
|
+
disabled: !c.enabled(l),
|
|
724
|
+
onClick: (w) => c.command(l)
|
|
725
725
|
}, [
|
|
726
726
|
r("i", {
|
|
727
|
-
class: T(
|
|
727
|
+
class: T(c.icon)
|
|
728
728
|
}, null, 2)
|
|
729
729
|
], 8, tt))), 128))
|
|
730
|
-
])) :
|
|
730
|
+
])) : p("", !0)
|
|
731
731
|
]))), 128))
|
|
732
732
|
]),
|
|
733
733
|
r("div", lt, [
|
|
734
734
|
r("div", nt, [
|
|
735
|
-
|
|
735
|
+
E(A, {
|
|
736
736
|
id: "card-filter-order",
|
|
737
737
|
default: {
|
|
738
738
|
icon: "fa-solid fa-chevron-down",
|
|
739
739
|
label: "rendezés"
|
|
740
740
|
},
|
|
741
741
|
selected: e.value.length > 0 ? e.value[0].property : "",
|
|
742
|
-
enabled:
|
|
742
|
+
enabled: o.config.sortEnabled,
|
|
743
743
|
options: g(
|
|
744
|
-
|
|
744
|
+
n.value.filter((l) => l.sort).map((l) => ({
|
|
745
745
|
icon: l.sort.icon,
|
|
746
746
|
label: l.sort.label,
|
|
747
747
|
value: l.property,
|
|
@@ -751,7 +751,7 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
751
751
|
}, null, 8, ["selected", "enabled", "options"])
|
|
752
752
|
]),
|
|
753
753
|
r("div", ot, [
|
|
754
|
-
|
|
754
|
+
E(K, {
|
|
755
755
|
items: t.value.map((l) => ({
|
|
756
756
|
filter: l.filter,
|
|
757
757
|
icon: l.filterIcon,
|
|
@@ -761,53 +761,53 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
761
761
|
])
|
|
762
762
|
]),
|
|
763
763
|
r("div", st, [
|
|
764
|
-
(
|
|
764
|
+
(s(!0), a(_, null, $(o.items, (l, c) => (s(), a("div", {
|
|
765
765
|
class: "t2l-row",
|
|
766
|
-
key:
|
|
766
|
+
key: c
|
|
767
767
|
}, [
|
|
768
|
-
|
|
768
|
+
o.config.selectableId ? (s(), a("div", it, [
|
|
769
769
|
r("input", {
|
|
770
770
|
class: "form-check-input",
|
|
771
771
|
type: "checkbox",
|
|
772
|
-
id: l[
|
|
772
|
+
id: l[o.config.selectableId],
|
|
773
773
|
onChange: (w) => l.selected = !l.selected
|
|
774
774
|
}, null, 40, at)
|
|
775
|
-
])) :
|
|
776
|
-
(
|
|
775
|
+
])) : p("", !0),
|
|
776
|
+
(s(!0), a(_, null, $(o.config.smColCount, (w) => (s(), a("div", {
|
|
777
777
|
class: "t2l-card-col",
|
|
778
778
|
key: w
|
|
779
779
|
}, [
|
|
780
|
-
(
|
|
781
|
-
|
|
782
|
-
r("span", dt, h(
|
|
780
|
+
(s(!0), a(_, null, $(d.value, (L) => (s(), a(_, { key: L }, [
|
|
781
|
+
v(L, w) ? (s(), a("div", rt, [
|
|
782
|
+
r("span", dt, h(v(L, w).label), 1),
|
|
783
783
|
r("div", {
|
|
784
|
-
innerHTML:
|
|
784
|
+
innerHTML: b(v(L, w), l)
|
|
785
785
|
}, null, 8, ut)
|
|
786
|
-
])) :
|
|
786
|
+
])) : p("", !0)
|
|
787
787
|
], 64))), 128))
|
|
788
788
|
]))), 128)),
|
|
789
789
|
r("div", ct, [
|
|
790
|
-
i.config.actions ? (
|
|
790
|
+
i.config.actions ? (s(), D(V, {
|
|
791
791
|
key: 0,
|
|
792
792
|
item: l,
|
|
793
793
|
options: i.config.actions,
|
|
794
794
|
label: "...",
|
|
795
|
-
id:
|
|
795
|
+
id: c.toString(),
|
|
796
796
|
right: !0
|
|
797
|
-
}, null, 8, ["item", "options", "id"])) :
|
|
797
|
+
}, null, 8, ["item", "options", "id"])) : p("", !0)
|
|
798
798
|
])
|
|
799
799
|
]))), 128))
|
|
800
800
|
]),
|
|
801
|
-
|
|
801
|
+
o.config.paginatorSettings ? (s(), D(q, {
|
|
802
802
|
key: 0,
|
|
803
|
-
settings:
|
|
804
|
-
onPagesize: u[0] || (u[0] = (l) =>
|
|
805
|
-
onPage: u[1] || (u[1] = (l) =>
|
|
806
|
-
}, null, 8, ["settings"])) :
|
|
807
|
-
|
|
803
|
+
settings: o.config.paginatorSettings,
|
|
804
|
+
onPagesize: u[0] || (u[0] = (l) => o.$emit("pagesize", l)),
|
|
805
|
+
onPage: u[1] || (u[1] = (l) => o.$emit("page", l))
|
|
806
|
+
}, null, 8, ["settings"])) : p("", !0),
|
|
807
|
+
o.config.paginatorSettings ? p("", !0) : (s(), a("div", pt, " Elemek: " + h(i.items.length), 1))
|
|
808
808
|
], 64));
|
|
809
809
|
}
|
|
810
|
-
}), ft = { class: "tlb-container d-flex flex-column flex-grow-1" }, mt = { class: "d-flex flex-row tlb-item" }, gt = { class: "d-flex flex-column flex-grow-1 flex-sm-row justify-content-between tlb-item" },
|
|
810
|
+
}), ft = { class: "tlb-container d-flex flex-column flex-grow-1" }, mt = { class: "d-flex flex-row tlb-item" }, gt = { class: "d-flex flex-column flex-grow-1 flex-sm-row justify-content-between tlb-item" }, bt = ["id"], yt = {
|
|
811
811
|
key: 0,
|
|
812
812
|
class: "d-flex id"
|
|
813
813
|
}, kt = { class: "d-flex flex-row align-items-center tlb-children-container" }, ht = /* @__PURE__ */ C({
|
|
@@ -816,11 +816,11 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
816
816
|
items: {}
|
|
817
817
|
},
|
|
818
818
|
emits: ["deleted"],
|
|
819
|
-
setup(
|
|
820
|
-
return (i,
|
|
821
|
-
const t =
|
|
822
|
-
return
|
|
823
|
-
(
|
|
819
|
+
setup(f) {
|
|
820
|
+
return (i, n) => {
|
|
821
|
+
const t = O("TextListBox", !0);
|
|
822
|
+
return s(), a("div", ft, [
|
|
823
|
+
(s(!0), a(_, null, $(i.items, (e) => (s(), a("div", {
|
|
824
824
|
class: "d-flex flex-column",
|
|
825
825
|
key: e.id
|
|
826
826
|
}, [
|
|
@@ -829,22 +829,22 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
829
829
|
r("div", {
|
|
830
830
|
class: "d-flex flex-grow-1",
|
|
831
831
|
id: e.id
|
|
832
|
-
}, h(e.label), 9,
|
|
833
|
-
e.showId ? (
|
|
832
|
+
}, h(e.label), 9, bt),
|
|
833
|
+
e.showId ? (s(), a("div", yt, h(e.id), 1)) : p("", !0)
|
|
834
834
|
]),
|
|
835
|
-
e.hideDelete ?
|
|
835
|
+
e.hideDelete ? p("", !0) : (s(), D(j, {
|
|
836
836
|
key: 0,
|
|
837
837
|
icon: "fa-solid fa-trash",
|
|
838
838
|
onClick: (d) => i.$emit("deleted", e.id)
|
|
839
839
|
}, null, 8, ["onClick"]))
|
|
840
840
|
]),
|
|
841
841
|
r("div", kt, [
|
|
842
|
-
e.childrend ? (
|
|
842
|
+
e.childrend ? (s(), D(t, {
|
|
843
843
|
key: 0,
|
|
844
844
|
items: e.childrend,
|
|
845
845
|
showId: e.showId,
|
|
846
846
|
hideDelete: e.hideDelete
|
|
847
|
-
}, null, 8, ["items", "showId", "hideDelete"])) :
|
|
847
|
+
}, null, 8, ["items", "showId", "hideDelete"])) : p("", !0)
|
|
848
848
|
])
|
|
849
849
|
]))), 128))
|
|
850
850
|
]);
|
|
@@ -858,51 +858,51 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
858
858
|
props: {
|
|
859
859
|
defaultDisplayDuration: {}
|
|
860
860
|
},
|
|
861
|
-
setup(
|
|
862
|
-
const
|
|
861
|
+
setup(f, { expose: i }) {
|
|
862
|
+
const n = f, t = g([]);
|
|
863
863
|
return i({
|
|
864
864
|
addToast: (d) => {
|
|
865
|
-
d.displayDuration || (d.displayDuration =
|
|
866
|
-
return
|
|
865
|
+
d.displayDuration || (d.displayDuration = n.defaultDisplayDuration), d.id = /* @__PURE__ */ new Date(), t.value.filter(function(v) {
|
|
866
|
+
return v.id !== d.id;
|
|
867
867
|
}), t.value.push(d);
|
|
868
868
|
}
|
|
869
869
|
}), setInterval(() => {
|
|
870
870
|
t.value = t.value.map((d) => (d.displayDuration -= G, d)), t.value = t.value.filter((d) => d.displayDuration > 0);
|
|
871
|
-
}, G), (d,
|
|
872
|
-
(
|
|
873
|
-
key:
|
|
871
|
+
}, G), (d, v) => t.value.length > 0 ? (s(), a("div", _t, [
|
|
872
|
+
(s(!0), a(_, null, $(t.value, (b) => (s(), a("div", {
|
|
873
|
+
key: b.message,
|
|
874
874
|
class: T(["toast d-block", {
|
|
875
|
-
"toast-info":
|
|
876
|
-
"toast-success":
|
|
877
|
-
"toast-warning":
|
|
878
|
-
"toast-error":
|
|
875
|
+
"toast-info": b.type === "info",
|
|
876
|
+
"toast-success": b.type === "success",
|
|
877
|
+
"toast-warning": b.type === "warning",
|
|
878
|
+
"toast-error": b.type === "error"
|
|
879
879
|
}]),
|
|
880
880
|
role: "alert",
|
|
881
881
|
"aria-live": "assertive",
|
|
882
882
|
"aria-atomic": "true"
|
|
883
883
|
}, [
|
|
884
884
|
r("div", Ct, [
|
|
885
|
-
r("strong", $t, h(
|
|
886
|
-
r("small", wt, h(
|
|
885
|
+
r("strong", $t, h(b.title), 1),
|
|
886
|
+
r("small", wt, h(b.id.toLocaleTimeString()), 1),
|
|
887
887
|
r("button", {
|
|
888
888
|
type: "button",
|
|
889
889
|
class: "btn-close",
|
|
890
890
|
"data-bs-dismiss": "toast",
|
|
891
891
|
"aria-label": "Close",
|
|
892
|
-
onClick: (m) => t.value = t.value.filter((
|
|
892
|
+
onClick: (m) => t.value = t.value.filter((o) => o.id !== b.id)
|
|
893
893
|
}, null, 8, Dt)
|
|
894
894
|
]),
|
|
895
895
|
r("div", {
|
|
896
896
|
class: "toast-body",
|
|
897
|
-
innerHTML:
|
|
897
|
+
innerHTML: b.message
|
|
898
898
|
}, null, 8, Bt)
|
|
899
899
|
], 2))), 128))
|
|
900
|
-
])) :
|
|
900
|
+
])) : p("", !0);
|
|
901
901
|
}
|
|
902
902
|
}), Tt = /* @__PURE__ */ C({
|
|
903
903
|
__name: "ToastWrapper",
|
|
904
|
-
setup(
|
|
905
|
-
const i = g(),
|
|
904
|
+
setup(f) {
|
|
905
|
+
const i = g(), n = [
|
|
906
906
|
{
|
|
907
907
|
id: "toast-notification-message",
|
|
908
908
|
handler: (t) => {
|
|
@@ -929,36 +929,55 @@ const Z = { class: "form-check" }, ee = ["checked", "id"], te = ["for"], A = /*
|
|
|
929
929
|
}
|
|
930
930
|
];
|
|
931
931
|
return M(() => {
|
|
932
|
-
|
|
932
|
+
n.forEach((t) => window.addEventListener(t.id, t.handler));
|
|
933
933
|
}), Y(() => {
|
|
934
|
-
|
|
935
|
-
}), (t, e) => (
|
|
934
|
+
n.forEach((t) => window.removeEventListener(t.id, t.handler));
|
|
935
|
+
}), (t, e) => (s(), D(Q, {
|
|
936
936
|
ref_key: "toast",
|
|
937
937
|
ref: i,
|
|
938
938
|
defaultDisplayDuration: 5e3
|
|
939
939
|
}, null, 512));
|
|
940
940
|
}
|
|
941
|
-
}),
|
|
942
|
-
|
|
943
|
-
|
|
941
|
+
}), Lt = {
|
|
942
|
+
CheckBox: W,
|
|
943
|
+
CheckBoxList: se,
|
|
944
|
+
DropDown: z,
|
|
945
|
+
DropDownMenu: V,
|
|
946
|
+
DropDownCallBack: A,
|
|
947
|
+
FilterCompact: K,
|
|
948
|
+
FilterControl: U,
|
|
949
|
+
IconButton: j,
|
|
950
|
+
PaginatorControl: q,
|
|
951
|
+
RadioButton: J,
|
|
952
|
+
RadioButtonGroup: Ne,
|
|
953
|
+
SpinningProgress: Oe,
|
|
954
|
+
TableToList: vt,
|
|
955
|
+
TextListBox: ht,
|
|
956
|
+
ToastComponent: Q,
|
|
957
|
+
ToastWrapper: Tt
|
|
958
|
+
}, Mt = {
|
|
959
|
+
install(f) {
|
|
960
|
+
Object.entries(Lt).forEach(([i, n]) => {
|
|
961
|
+
f.component(i, n);
|
|
962
|
+
});
|
|
944
963
|
}
|
|
945
964
|
};
|
|
946
965
|
export {
|
|
947
|
-
|
|
966
|
+
W as CheckBox,
|
|
948
967
|
se as CheckBoxList,
|
|
949
968
|
z as DropDown,
|
|
950
|
-
|
|
969
|
+
A as DropDownCallBack,
|
|
951
970
|
V as DropDownMenu,
|
|
952
971
|
K as FilterCompact,
|
|
953
972
|
U as FilterControl,
|
|
954
|
-
|
|
973
|
+
j as IconButton,
|
|
955
974
|
q as PaginatorControl,
|
|
956
975
|
J as RadioButton,
|
|
957
|
-
|
|
958
|
-
|
|
976
|
+
Ne as RadioButtonGroup,
|
|
977
|
+
Oe as SpinningProgress,
|
|
959
978
|
vt as TableToList,
|
|
960
979
|
ht as TextListBox,
|
|
961
980
|
Q as ToastComponent,
|
|
962
981
|
Tt as ToastWrapper,
|
|
963
|
-
|
|
982
|
+
Mt as default
|
|
964
983
|
};
|