File manager - Edit - /home/autoph/public_html/projects/ahg-connect/assets/index.4a5bff94.js
Back
import{I as w}from"./index.4b7607b5.js";import{_ as m,o as s,c as l,n as i,t as u,b as o,d as n,F as y,I as v,J as I,N as x,r as g,X as _,a0 as B,g as c,f,a as h,K as V,L as N}from"./index.c8fd93d6.js";const T={props:{placeholder:{type:String,default:"Select Option"},label:{type:String},classLabel:{type:String,default:" "},classInput:{type:String,default:"classinput"},name:{type:String},modelValue:{default:""},error:{type:String},isReadonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},validate:{type:String},msgTooltip:{type:Boolean,default:!1},formatter:{type:Function,default:e=>e},description:{type:String},size:{type:String},multiple:{type:Boolean,default:!1},options:{type:Array,default:()=>[{value:"",label:"Select Option"},{value:"",label:"Select Option2"}]}}},F=["for"],$={class:"relative"},z=["name","value","error","id","readonly","disabled","validate","formatter","size","multiple"],L={value:"",disabled:"",selected:""},E=["value"],O={key:3,class:"block text-secondary-500 font-light leading-4 text-xs mt-2"};function G(e,a,t,P,k,S){return s(),l("div",{class:i(["fromGroup relative",`${t.error?"has-error":""} ${t.horizontal?"flex":""} ${t.validate?"is-valid":""} `])},[t.label?(s(),l("label",{key:0,class:i(`${t.classLabel} inline-block input-label `),for:t.name},u(t.label),11,F)):o("",!0),n("div",$,[n("select",{name:t.name,class:i(`${t.classInput} input-control block w-full focus:outline-none min-h-[40px] `),value:t.modelValue,onInput:a[0]||(a[0]=d=>e.$emit("update:modelValue",d.target.value)),error:t.error,id:t.name,readonly:t.isReadonly,disabled:t.disabled,validate:t.validate,formatter:t.formatter,size:t.size,multiple:t.multiple},[n("option",L,u(t.placeholder),1),!e.$slots.default&&t.options?(s(!0),l(y,{key:0},v(t.options,(d,p)=>(s(),l("option",{value:d.value,key:p},u(d.label),9,E))),128)):o("",!0),e.$slots.default?I(e.$slots,"default",{key:1},void 0,!0):o("",!0)],42,z)]),t.error?(s(),l("span",{key:1,class:i(["mt-2",t.msgTooltip?" inline-block bg-danger-500 text-white text-[10px] px-2 py-1 rounded":" text-danger-500 block text-sm"])},u(t.error),3)):o("",!0),t.validate?(s(),l("span",{key:2,class:i(["mt-2",t.msgTooltip?" inline-block bg-success-500 text-white text-[10px] px-2 py-1 rounded":" text-success-500 block text-sm"])},u(t.validate),3)):o("",!0),t.description?(s(),l("span",O,u(t.description),1)):o("",!0)],2)}const M=m(T,[["render",G],["__scopeId","data-v-da55253b"]]);const R=x({name:"Pagination",components:{Icon:w,Select:M},props:{options:{type:Array,default:()=>[{}]},perPageOptions:{type:Array,default:()=>[{}]},enableText:{type:Boolean,default:!1},enableInput:{type:Boolean,default:!1},enableSelect:{type:Boolean,default:!1},enableSearch:{type:Boolean,default:!1},pageChanged:{type:Function},perPageChanged:{type:Function},current:{type:Number,default:1},total:{type:Number,default:0},perPage:{type:Number,default:10},pageRange:{type:Number,default:2},textBeforeInput:{type:String,default:"Go to page"},textAfterInput:{type:String,default:"Go"},paginationClass:{type:String,default:"default"},searchClasss:{type:String,default:"default"},wrapperClass:{type:String,default:"justify-between"}},data(){return{input:"",input2:null,input3:this.perPage??null}},methods:{hasFirst:function(){return this.rangeStart!==1},hasLast:function(){return this.rangeEnd<this.totalPages},hasPrev:function(){return this.current>1},hasNext:function(){return this.current<this.totalPages},changePage:function(e){e>0&&e<=this.totalPages&&this.$emit("page-changed",e),this.pageChanged&&this.pageChanged({currentPage:e})},changePerPage:function(e){e>0&&this.$emit("change-per-page",e)},customPerPageChange(e){this.perPageChanged({currentPerPage:e})}},computed:{pages:function(){for(var e=[],a=this.rangeStart;a<=this.rangeEnd;a++)e.push(a);return e},rangeStart:function(){var e=this.current-this.pageRange;return e>0?e:1},rangeEnd:function(){var e=this.current+this.pageRange;return e<this.totalPages?e:this.totalPages},totalPages:function(){return Math.ceil(this.total/this.perPage)},nextPage:function(){return this.current+1},prevPage:function(){return this.current-1},countStart:function(){return(this.current-1)*this.perPage+1},countEnd:function(){let e=this.current*this.perPage;return e>this.total?this.total:e}},mounted(){}}),b=e=>(V("data-v-cb11ac10"),e=e(),N(),e),A={key:0,class:"flex items-center space-x-2 rtl:space-x-reverse"},U={key:1,class:"flex items-center"},j={class:"text-sm text-slate-500 inline-block ltr:ml-2 rtl:mr-2"},D={class:"flex items-start space-x-4 rtl:space-x-reverse"},J={class:"self-center text-slate-700"},K={key:0,class:"flex items-start gap-1"},X=b(()=>n("span",{class:"self-center text-slate-400"},"rows per page ",-1)),q={class:"text-xl leading-4 text-slate-900 dark:text-white rtl:rotate-180"},H=["disabled"],Q={key:1,class:"text-sm inline-block rtl:-rotate-180"},W={key:0,class:""},Y=b(()=>n("div",null,[n("span",null," 1 ")],-1)),Z=[Y],ee={key:1,class:"text-slate-600 dark:text-slate-300"},te=["onClick"],ae={class:""},ne={key:2,class:"text-slate-600 dark:text-slate-300"},se={key:3,class:""},le={class:"text-xl leading-4 text-slate-900 dark:text-white rtl:rotate-180"},oe=["disabled"],re={key:1,class:"text-sm rtl:-rotate-180 inline-block"};function ie(e,a,t,P,k,S){const d=g("Select"),p=g("Icon");return e.total>0?(s(),l("div",{key:0,class:i(["md:flex md:space-y-0 space-y-5",e.wrapperClass])},[e.enableSearch?(s(),l("div",{key:0,class:i(["flex items-center space-x-4 rtl:space-x-reverse",e.searchClasss])},[e.enableSearch&&e.enableInput?(s(),l("div",A,[_(n("input",{"onUpdate:modelValue":a[0]||(a[0]=r=>e.input=r),class:"form-control w-9 overflow-auto h-9",type:"text",placeholder:"0"},null,512),[[B,e.input,void 0,{number:!0}]]),n("div",{onClick:a[1]||(a[1]=c(r=>e.changePage(e.input),["prevent"])),class:"flex-0 cursor-pointer text-sm h-9 w-9 bg-slate-900 text-white flex items-center justify-center rounded"}," Go ")])):o("",!0),e.enableSearch&&e.enableSelect?(s(),l("div",U,[f(d,{modelValue:e.input2,"onUpdate:modelValue":a[2]||(a[2]=r=>e.input2=r),modelModifiers:{number:!0},onChange:a[3]||(a[3]=r=>e.changePage(e.input2)),placeholder:"Go",classInput:" w-[60px] h-9 ",options:e.options},null,8,["modelValue","options"]),n("span",j," of "+u(e.perPage)+" entries",1)])):o("",!0)],2)):o("",!0),n("div",D,[n("div",J,u(`${e.countStart}-${e.countEnd}`)+" of "+u(e.total),1),e.perPageOptions?(s(),l("div",K,[X,f(d,{modelValue:e.input3,"onUpdate:modelValue":a[4]||(a[4]=r=>e.input3=r),modelModifiers:{number:!0},placeholder:"rows",onChange:a[5]||(a[5]=r=>e.changePerPage(e.input3)),classInput:" w-[60px] h-9 ",options:e.perPageOptions},null,8,["modelValue","options"])])):o("",!0)]),n("ul",{class:i(["pagination",e.paginationClass])},[n("li",q,[n("button",{onClick:a[6]||(a[6]=c(r=>e.changePage(e.prevPage),["prevent"])),disabled:e.current===1,class:i(e.current===1?" opacity-50 cursor-not-allowed":"")},[e.enableText?o("",!0):(s(),h(p,{key:0,icon:"heroicons-outline:chevron-left"})),e.enableText?(s(),l("span",Q,"Previous")):o("",!0)],10,H)]),e.hasFirst()?(s(),l("li",W,[n("button",{onClick:a[7]||(a[7]=c(r=>e.changePage(1),["prevent"]))},Z)])):o("",!0),e.hasFirst()?(s(),l("li",ee," ... ")):o("",!0),(s(!0),l(y,null,v(e.pages,(r,C)=>(s(),l("li",{class:"",key:C},[n("button",{onClick:c(ue=>e.changePage(r),["prevent"])},[n("div",{class:i([{active:e.current===r},""])},[n("span",ae,u(r),1)],2)],8,te)]))),128)),e.hasLast()?(s(),l("li",ne," ... ")):o("",!0),e.hasLast()?(s(),l("li",se,[n("button",{onClick:a[8]||(a[8]=c(r=>e.changePage(e.totalPages),["prevent"]))},[n("div",null,[n("span",null,u(e.totalPages),1)])])])):o("",!0),n("li",le,[n("button",{onClick:a[9]||(a[9]=c(r=>e.changePage(e.nextPage),["prevent"])),disabled:e.current===e.totalPages,class:i(e.current===e.totalPages?" opacity-50 cursor-not-allowed":"")},[e.enableText?o("",!0):(s(),h(p,{key:0,icon:"heroicons-outline:chevron-right"})),e.enableText?(s(),l("span",re,"Next")):o("",!0)],10,oe)])],2)],2)):o("",!0)}const pe=m(R,[["render",ie],["__scopeId","data-v-cb11ac10"]]);export{pe as P};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings