edvoyui-component-library-test-flight 0.0.179 → 0.0.180
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/EUISelectSearch.vue.d.ts.map +1 -0
- package/dist/{library-vue-ts.cjs.js → edvoy-ui.cjs.js} +1 -1
- package/dist/{library-vue-ts.css → edvoy-ui.css} +1 -1
- package/dist/{library-vue-ts.es.js → edvoy-ui.es.js} +2 -2
- package/dist/edvoy-ui.umd.js +168 -0
- package/package.json +17 -16
- package/src/components/searchTagSelect/EUISearchTagSelect.vue +2 -2
- package/dist/library-vue-ts.umd.js +0 -168
- package/dist/selectSearch/EUISelectSearch.vue.d.ts.map +0 -1
- /package/dist/{selectSearch/EUISelectSearch.vue.d.ts → EUISelectSearch.vue.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EUISelectSearch.vue.d.ts","sourceRoot":"","sources":["../src/components/selectSearch/EUISelectSearch.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oHAAoH,CAAC;AAC3I,cAAc,oHAAoH,CAAC;AACnI,eAAe,SAAS,CAAC"}
|
|
@@ -164,4 +164,4 @@ You passed in: '`+this.raw_options[a]+"'");return c},t.prototype._is_valid_selec
|
|
|
164
164
|
.fade-leave-to[data-v-5784ed69] {
|
|
165
165
|
opacity: 0;
|
|
166
166
|
}
|
|
167
|
-
`;Vm(XT);Om.__scopeId="data-v-5784ed69";var QT=(()=>{const t=Om;return t.install=r=>{r.component("Popper",t)},t})();const qT={},JT={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ZT(t,r){return e.openBlock(),e.createElementBlock("svg",JT,r[0]||(r[0]=[e.createElementVNode("path",{d:"M5 12.7132L10.0168 17.7247L10.4177 17.0238C12.5668 13.2658 15.541 10.0448 19.1161 7.60354L20 7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const eI=qe(qT,[["render",ZT]]),tI={key:0,for:"search-input",class:"block text-sm font-medium text-gray-700"},nI={key:0,class:"text-red-500"},rI={class:"flex-1 min-w-0"},aI={key:0,class:"text-sm font-semibold text-current truncate"},oI={key:1,class:"inline-flex items-center gap-2 py-1 pl-2 pr-1 text-xs font-semibold text-current bg-gray-100 rounded-3xl"},iI={class:"show-count"},lI={key:2,class:"text-sm font-normal text-gray-400"},sI={class:"inset-y-0 m-auto right-2.5 flex items-center gap-2"},uI={key:0,class:"w-full p-4 overflow-y-auto text-sm bg-white border-2 border-gray-100 border-solid shadow-lg rounded-3xl max-h-72 scrollbar--hide"},cI={key:0},dI={key:0,class:"px-2 py-4 mb-6 text-sm font-medium text-center text-gray-500 min-h-32"},fI=["onClick"],pI={key:0,class:"absolute inset-y-0 right-0 flex items-center pr-4"},hI={class:"ms-2 first-letter:capitalize"},mI={key:3,class:"px-0.5 my-2 inline-flex gap-x-3 gap-y-2 items-center flex-wrap"},vI=e.defineComponent({__name:"EUISearchTagSelect",props:{modelValue:{},items:{default:()=>[]},label:{},name:{default:""},placement:{default:"bottom-start"},itemText:{default:"name"},placeholder:{default:"Please Select"},offsetSkid:{default:"0"},offsetDistance:{default:"4"},errors:{},selectType:{default:"single"},filterFunction:{type:Function,default:()=>{}},searchable:{type:Boolean,default:!0},backendPagination:{type:Boolean,default:!1},hideNoData:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tag:{default:""},tagColor:{default:"None"},required:{type:Boolean,default:!1},classes:{default:""},searchIcon:{type:Boolean,default:!1},showTags:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},ignoreDeselect:{type:Boolean,default:!1},popperClasses:{default:""},showCount:{type:Boolean,default:!1}},emits:["update:modelValue","blur","search","create","on-change","on-deselect","toggle"],setup(t,{emit:r}){const n=t,a=r,i=e.ref(""),s=e.ref(!1),c=e.ref(),u=e.ref(),f=e.ref(),p=e.ref(!1),h=e.computed({get(){const m=n.modelValue;return m?[].concat(m):[]},set(m){a("update:modelValue",m)}}),v=e.computed(()=>m=>{if(typeof m=="object")return!!h.value.find(I=>I[n.itemText]===m[n.itemText]);if(typeof m=="string")return h.value.includes(m)});function _(m,I,P){const re=I.length-1;if(re<0)return m===void 0?P:m;for(let z=0;z<re;z++){if(m==null)return P;m=m[I[z]]}return m==null||m[I[re]]===void 0?P:m[I[re]]}function w(m,I,P){return m==null||!I||typeof I!="string"?P:m[I]!==void 0?m[I]:(I=I.replace(/\[(\w+)\]/g,".$1"),I=I.replace(/^\./,""),_(m,I.split("."),P))}function C(m,I,P){if(I==null)return m===void 0?P:m;if(m!==Object(m))return m;if(typeof I=="string")return w(m,I,P);if(Array.isArray(I))return _(m,I,P);if(typeof I!="function")return P;const re=I(m,P);return typeof re>"u"?P:re}const V=e.computed(()=>{var P;let m=(P=n.items)==null?void 0:P.slice();const I=i.value.trim().toLowerCase();if(i.value!==""){if(I==="")return[];if(n.backendPagination)return n.items;m=n.items.filter(re=>{const z=C(re,n.itemText);return(z!=null?String(z).toLowerCase():"").includes(I)})}return m}),k=m=>{if(n.ignoreDeselect)return;let I=-1;if(typeof m=="object"&&m[n.itemText]?I=h.value.findIndex(P=>P[n.itemText]===m[n.itemText]):I=h.value.indexOf(m),I>-1){const P=[...h.value];P.splice(I,1),a("update:modelValue",P),e.nextTick(()=>{h.value.length!==P.length&&(h.value=P)})}(!n.selectType||n.selectType==="single")&&N(),a("on-deselect",m),a("toggle")},b=()=>{a("update:modelValue",[]),a("toggle")},x=m=>{k(m)},O=(m,I)=>{I?A(m):k(m)},B=m=>{typeof m=="object"?Array.isArray(m)&&m.length==0?a("update:modelValue",""):a("update:modelValue",m):m.length>0?a("update:modelValue",m):a("update:modelValue","")},A=m=>{let I;if(n.selectType==="multiple"&&typeof m=="object")h.value.find(re=>re[n.itemText]===m[n.itemText])?I=h.value.filter(re=>re[n.itemText]!==m[n.itemText]):I=h.value.concat(m),a("on-change",[...I]);else if(n.selectType==="multiple"&&typeof m=="string"){if(h.value.includes(m))return k(m);I=h.value.concat(m),a("on-change",[...I])}else I=m;n.selectType==="single"&&(i.value=""),B(I),(!n.selectType||n.selectType==="single")&&N(),a("toggle",I)},S=()=>{p.value=!0,n.selectType==="single"&&(i.value=""),s.value=!0,e.nextTick(()=>{setTimeout(()=>{var m,I;if(i.value="",p.value=!1,(m=u.value)!=null&&m.searchInput)u.value.searchInput.focus();else if((I=u.value)!=null&&I.$el){const P=u.value.$el.querySelector("input");P&&P.focus()}},50)})},N=()=>{s.value&&a("blur"),s.value=!1,n.selectType==="single"&&(i.value="")},T=()=>{i.value=""},R=m=>{if(p.value)return;const I=m.target;if(s.value&&f.value){const P=!f.value.contains(I),re=document.querySelectorAll('[data-popper-placement], .popper-defaultstyle, [role="tooltip"]'),z=Array.from(re).every(Q=>!Q.contains(I));P&&z&&N()}};return e.onMounted(()=>{document.addEventListener("click",R)}),e.onUnmounted(()=>{document.removeEventListener("click",R)}),e.watch(i,m=>{a("search",m)}),e.watch(()=>n.modelValue,(m,I)=>{console.log("changed from:",I,"to:",m)},{deep:!0}),(m,I)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"componentRef",ref:f,class:"relative w-full"},[m.$slots.label?e.renderSlot(m.$slots,"label",{key:0},()=>[m.label?(e.openBlock(),e.createElementBlock("label",tI,[e.createTextVNode(e.toDisplayString(m.label)+" ",1),m.required?(e.openBlock(),e.createElementBlock("span",nI,"*")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]):e.createCommentVNode("",!0),e.createVNode(e.unref(QT),e.mergeProps({class:[`popper-defaultstyle w-full ${m.popperClasses}`]},m.$attrs,{show:s.value,arrow:"",closeDelay:"100",offsetSkid:m.offsetSkid,offsetDistance:m.offsetDistance,placement:m.placement,interactive:!0,"auto-hide":!0,"onOpen:popper":S,"onClose:popper":N}),{content:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",uI,[I[5]||(I[5]=e.createElementVNode("h3",{class:"sticky z-10 p-2 mb-2 -mx-px -mt-3 font-semibold text-gray-500 bg-white text-sm/4 -top-4"}," Search Results ",-1)),e.createElementVNode("ul",{ref_key:"options",ref:c,tabindex:"-1",role:"listbox","aria-labelledby":"listbox-label","aria-activedescendant":"listbox-option-3",class:"space-y-0.5"},[V.value.length===0&&!m.hideNoData?(e.openBlock(),e.createElementBlock("li",cI,[e.renderSlot(m.$slots,"no-items",{},()=>[i.value.length>0?(e.openBlock(),e.createElementBlock("div",dI,[I[3]||(I[3]=e.createTextVNode(' No results found for "')),e.createElementVNode("strong",null,e.toDisplayString(i.value),1),I[4]||(I[4]=e.createTextVNode('" '))])):e.createCommentVNode("",!0)])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(V.value,(P,re)=>(e.openBlock(),e.createElementBlock("li",{key:`items-${re}`,role:"option",class:e.normalizeClass(["transition-all duration-100 ease-in-out",m.selectType==="single"?"cursor-pointer":""]),onClick:[z=>m.selectType==="single"?v.value(P)?k(P):A(P):null,I[1]||(I[1]=e.withModifiers(()=>{},["stop"]))]},[m.selectType==="single"?e.renderSlot(m.$slots,"item",{key:0,item:P},()=>[e.createElementVNode("div",{class:e.normalizeClass([v.value(P)?"bg-purple-50 text-purple-600":"text-gray-600 hover:bg-gray-50 hover:text-gray-800","relative py-2 px-4 flex items-center capitalize text-sm transition-colors duration-75 rounded"])},[e.createElementVNode("span",{class:e.normalizeClass([v.value(P)?"font-semibold mr-5":"font-medium","block tracking-tight"])},e.toDisplayString(e.unref(Lt.startCase)(P[m.itemText]||P)),3),v.value(P)?(e.openBlock(),e.createElementBlock("span",pI,[e.createVNode(eI,{class:"text-current size-5","aria-hidden":"true"})])):e.createCommentVNode("",!0)],2)]):m.selectType==="multiple"?e.renderSlot(m.$slots,"item",{key:1,item:P},()=>[e.createVNode(qh,{"model-value":v.value(P),name:"checkbox",class:e.normalizeClass([v.value(P)?"text-gray-800 hover:bg-purple-50 hover:text-purple-600":"text-gray-600 hover:bg-gray-50 hover:text-gray-800","relative flex items-center capitalize text-sm transition-colors duration-75 w-full multiple-select rounded-md font-medium [&_label]:w-full [&_label]:p-2.5"]),"onUpdate:modelValue":z=>O(P,z)},{label:e.withCtx(()=>[e.createElementVNode("span",hI,e.toDisplayString(e.unref(Lt.startCase)(P[m.itemText]||P)),1)]),_:2},1032,["model-value","class","onUpdate:modelValue"])]):e.createCommentVNode("",!0)],10,fI))),128))],512)])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[s.value||h.value.length===0?(e.openBlock(),e.createBlock(AN,{key:0,ref_key:"searchInputRef",ref:u,id:"search-input","model-value":i.value,"onUpdate:modelValue":I[0]||(I[0]=P=>i.value=P),"input-type":"defaultInput",icon:Vl,placeholder:m.placeholder,disabled:m.disabled,onFocus:T,onClick:S},null,8,["model-value","placeholder","disabled"])):!s.value&&h.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"flex items-center justify-between w-full h-10 gap-2 px-4 py-2 text-left bg-white border border-gray-200 border-solid cursor-pointer search-textstyle rounded-3xl",onClick:S},[m.searchIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Vl),{key:0,class:"flex-shrink-0 w-5 h-5 text-gray-500"})):e.createCommentVNode("",!0),e.createElementVNode("div",rI,[m.selectType==="single"?(e.openBlock(),e.createElementBlock("span",aI,e.toDisplayString(e.unref(Lt.startCase)(h.value[0][m.itemText]||h.value[0])),1)):m.selectType==="multiple"&&m.showCount?(e.openBlock(),e.createElementBlock("div",oI,[I[2]||(I[2]=e.createTextVNode(" Selected Cities ")),e.createElementVNode("span",iI,e.toDisplayString(h.value.length),1)])):(e.openBlock(),e.createElementBlock("span",lI,e.toDisplayString(m.placeholder),1))]),e.createElementVNode("div",sI,[h.value.length>0&&m.clearable?(e.openBlock(),e.createBlock(e.unref(Cl),{key:0,class:"w-4 h-4 text-gray-300 cursor-pointer hover:text-gray-500",onClick:e.withModifiers(b,["stop"])})):(e.openBlock(),e.createBlock(Bn,{key:1,class:e.normalizeClass(["w-5 h-5 transform transition duration-200 ease-in-out",s.value?"text-gray-800 rotate-180":"text-gray-300 rotate-0"])},null,8,["class"]))])])):e.createCommentVNode("",!0)]),_:3},16,["class","show","offsetSkid","offsetDistance","placement"]),m.errors&&m.errors.length&&!s.value?(e.openBlock(),e.createBlock(zn,{key:1,errors:m.errors,name:m.name,class:"mt-2"},null,8,["errors","name"])):e.createCommentVNode("",!0),m.$slots.labelhint?e.renderSlot(m.$slots,"labelhint",{key:2}):e.createCommentVNode("",!0),m.selectType==="multiple"&&h.value.length>0&&m.showTags?(e.openBlock(),e.createElementBlock("div",mI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(P,re)=>e.renderSlot(m.$slots,"selection",{item:P,clear:()=>k(P),key:`selected-values-${re}`},()=>[e.createVNode(mm,{class:"capitalize",disabled:m.disabled,closeIcon:"",size:"md",color:"secondary",onRemove:z=>x(P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(Lt.startCase)(P[m.itemText]||P)),1)]),_:2},1032,["disabled","onRemove"])])),128))])):e.createCommentVNode("",!0),m.tag?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["absolute top-0 px-2 text-xs text-white rounded right-6",[{"bg-gray-400":m.tagColor==="None"},{"bg-green-400":m.tagColor==="Success"},{"bg-red-400":m.tagColor==="Error"}]])},e.toDisplayString(m.tag),3)):e.createCommentVNode("",!0)],512))}}),gI={"aria-label":"breadcrumb",class:"my-2"},yI={role:"list",class:"flex items-center justify-start max-w-full space-x-1"},bI=["href","aria-current"],_I=e.defineComponent({__name:"EUIBreadcrumb",props:{pages:{type:Array,default:[]}},setup(t){const r=t,{pages:n}=e.toRefs(r);return(a,i)=>(e.openBlock(),e.createElementBlock("nav",gI,[e.createElementVNode("ol",yI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),(s,c)=>(e.openBlock(),e.createElementBlock("li",{key:s.name,class:"flex flex-row items-center justify-start space-x-1"},[e.createElementVNode("a",{href:s.href,class:e.normalizeClass(["inline-flex items-center gap-2 text-sm font-medium font-inter",e.unref(n).length-1!==c?"text-gray-600 hover:text-gray-700":"text-gray-500"]),"aria-current":s.current?"page":void 0},[s!=null&&s.showIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s==null?void 0:s.showIcon),{key:0,class:"text-current size-4"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.name),1)],10,bI),e.unref(n).length-1!==c?(e.openBlock(),e.createBlock(Bn,{key:0,class:"flex-shrink-0 w-5 h-5 text-gray-400 transform -rotate-90","aria-hidden":"true"})):e.createCommentVNode("",!0)]))),128))])]))}}),wI={class:"shrink-0"},kI={class:"ml-3"},xI={key:0,class:"mt-4"},CI={class:"-mx-2 -my-1.5 flex"},EI={key:0,class:"ms-auto ps-3"},$I={class:"-mx-1.5 -my-1.5 pt-1"},BI=e.defineComponent({__name:"EUIAlerts",props:{showAlert:{type:Boolean,default:!0},heading:{type:String,default:""},textMessage:{type:String,default:""},alertType:{type:String,default:"Default"},alertIcon:{type:[String,Object,Function],default:""},actionItems:Boolean,closeIcon:Boolean},emits:["update:showAlert","alertAction","alertDismiss"],setup(t,{emit:r}){const n=t,{showAlert:a}=e.toRefs(n),i=r,s=()=>{i("alertAction",!0),i("update:showAlert",!1)},c=()=>{i("alertDismiss",!1),i("update:showAlert",!1)},u=e.computed(()=>({Default:{bgColor:"bg-blue-50",leftIcon:{icon:ic,color:"text-blue-400"},titleColor:"text-blue-800",textColor:"text-blue-700",btnPrimary:"bg-blue-700 hover:bg-blue-800 focus:ring-blue-600 focus:ring-offset-blue-50",btnTertiary:"text-blue-500 bg-blue-50 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",btnClose:"bg-blue-50 text-blue-500 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50"},Warning:{bgColor:"bg-yellow-50",leftIcon:{icon:HB,color:"text-yellow-400"},titleColor:"text-yellow-800",textColor:"text-yellow-700",btnPrimary:"bg-yellow-700 hover:bg-yellow-800 focus:ring-yellow-600 focus:ring-offset-yellow-50",btnTertiary:"text-yellow-500 bg-yellow-50 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50",btnClose:"bg-yellow-50 text-yellow-500 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50"},Success:{bgColor:"bg-green-50",leftIcon:{icon:ic,color:"text-green-400"},titleColor:"text-green-800",textColor:"text-green-700",btnPrimary:"bg-green-700 hover:bg-green-800 focus:ring-green-600 focus:ring-offset-green-50",btnTertiary:"text-green-500 bg-green-50 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50",btnClose:"bg-green-50 text-green-500 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50"},Error:{bgColor:"bg-red-50",leftIcon:{icon:WB,color:"text-red-400"},titleColor:"text-red-800",textColor:"text-red-700",btnPrimary:"bg-red-700 hover:bg-red-800 focus:ring-red-600 focus:ring-offset-red-50",btnTertiary:"text-red-500 bg-red-50 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",btnClose:"bg-red-50 text-red-500 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50"}})[n.alertType]||"");return(f,p)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"transition duration-300 ease-out transform","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["p-4 rounded-md",u.value.bgColor])},[e.createElementVNode("div",{class:e.normalizeClass([t.closeIcon&&!t.textMessage?"items-center pr-2 flex":"flex items-start"])},[e.createElementVNode("div",wI,[e.renderSlot(f.$slots,"icon",{},()=>{var h,v;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.alertIcon||((h=u.value.leftIcon)==null?void 0:h.icon)),{class:e.normalizeClass(["size-5",(v=u.value.leftIcon)==null?void 0:v.color]),"aria-hidden":"true"},null,8,["class"]))]})]),e.createElementVNode("div",kI,[e.createElementVNode("h3",{class:e.normalizeClass(["text-sm font-medium",u.value.titleColor])},[e.renderSlot(f.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.heading||"Alert Title"),1)])],2),e.renderSlot(f.$slots,"content",{},()=>[t.textMessage?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mt-2 text-sm",u.value.textColor])},e.toDisplayString(t.textMessage||"your description here..."),3)):e.createCommentVNode("",!0)]),e.renderSlot(f.$slots,"actionButtons",{},()=>[t.actionItems?(e.openBlock(),e.createElementBlock("div",xI,[e.createElementVNode("div",CI,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["rounded-md px-3 py-1.5 text-sm font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2",u.value.btnPrimary]),onClick:s}," View status ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["ml-3 rounded-md px-3 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",u.value.btnTertiary]),onClick:c}," Dismiss ",2)])])):e.createCommentVNode("",!0)])]),t.closeIcon?(e.openBlock(),e.createElementBlock("div",EI,[e.renderSlot(f.$slots,"xclose",{},()=>[e.createElementVNode("div",$I,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["inline-flex rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2",u.value.btnClose]),onClick:p[0]||(p[0]=h=>c())},[p[1]||(p[1]=e.createElementVNode("span",{class:"sr-only"},"Dismiss",-1)),e.createVNode(e.unref(jB),{class:"size-5","aria-hidden":"true"})],2)])])])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)]),_:3}))}}),SI={},VI={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function OI(t,r){return e.openBlock(),e.createElementBlock("svg",VI,r[0]||(r[0]=[e.createElementVNode("path",{d:"M5.45312 7.5C6.7673 9.31733 8.30557 10.947 10.028 12.3476C10.2779 12.5508 10.6284 12.5508 10.8782 12.3476C12.6007 10.947 14.139 9.31733 15.4531 7.5",stroke:"currentColor","stroke-opacity":"0.5","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const NI=qe(SI,[["render",OI]]),TI={class:"flex items-center gap-4"},II={key:0,class:"px-4 py-3 mt-4 overflow-y-auto border border-gray-100 border-solid rounded-lg bg-gray-50"},MI={class:"mt-4 text-right"},DI=e.defineComponent({__name:"EUIDrag",setup(t){const r=e.ref(!0),n=e.ref(!0),a=e.ref(null),i=e.ref(20),s=e.ref(80),c=e.ref(!1),u=e.ref(0),f=e.ref(0),p=e.ref(0),h=e.ref(0),v=()=>{n.value=!n.value,n.value&&(s.value=s.value<=284?s.value:284)},_=k=>{const b=k.target.tagName.toLowerCase();if(["input","textarea","select","button","svg","path"].includes(b))return;const{pageX:x,pageY:O}="touches"in k?k.touches[0]:k;c.value=!0,u.value=x,f.value=O,p.value=i.value,h.value=s.value,window.addEventListener("mousemove",w),window.addEventListener("mouseup",C),window.addEventListener("touchmove",w),window.addEventListener("touchend",C)},w=k=>{if(!c.value)return;const{pageX:b,pageY:x}="touches"in k?k.touches[0]:k,O=b-u.value,B=x-f.value;let A=p.value-O,S=h.value+B;const N=a.value;if(N){const{offsetWidth:T,offsetHeight:R}=N;A=Math.min(Math.max(0,A),window.innerWidth-T),S=Math.min(Math.max(0,S),window.innerHeight-R)}i.value=A,s.value=S},C=()=>{c.value=!1,window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",C),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",C)};e.onBeforeUnmount(C),e.watch(n,k=>{!k&&s.value>300&&(s.value=300)});const V=e.computed(()=>({position:"fixed",right:`${i.value}px`,top:`${s.value}px`,cursor:c.value?"grabbing":"grab",zIndex:999}));return(k,b)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"containerRef",ref:a,class:"draggable-card",style:e.normalizeStyle(V.value)},[e.createElementVNode("div",{class:"flex items-center justify-between flex-shrink-0 px-2 bg-white cursor-grab",onMousedown:e.withModifiers(_,["prevent"]),onTouchstart:e.withModifiers(_,["prevent"])},[e.createElementVNode("div",TI,[e.createVNode(Jh,{"image-url":"https://tinyurl.com/43e5fxh9",profile:!0,"full-name":"JohnCena","show-status":!0,status:"Online",size:"sm"},{name:e.withCtx(()=>b[1]||(b[1]=[e.createTextVNode("John Cena")])),designation:e.withCtx(()=>b[2]||(b[2]=[e.createTextVNode("Actor")])),_:1})]),e.createVNode(Ho,{color:"white",size:"xs",rounded:"","icon-type":"icon",icon:NI,class:e.normalizeClass(n.value?"rotate-0":"-rotate-90"),onClick:v},null,8,["class"])],32),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",II,[b[4]||(b[4]=e.createElementVNode("h3",{class:"mb-2 text-lg font-semibold text-gray-900"}," Card Title Here.... ",-1)),b[5]||(b[5]=e.createElementVNode("p",{class:"mb-4 text-sm text-gray-500"}," Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corporis non velit doloremque sint repellat beatae accusamus? Recusandae possimus voluptas beatae, labore dolor dolorem necessitatibus architecto laudantium deserunt ipsam autem. Dignissimos? ",-1)),b[6]||(b[6]=e.createElementVNode("p",{class:"text-sm text-gray-500"}," Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dicta minima ullam porro voluptate ea, amet accusamus et debitis. ",-1)),e.createElementVNode("div",MI,[e.createVNode(Ho,{color:"primary",size:"sm","icon-type":"endIcon",icon:e.unref(zB),rounded:"",onClick:b[0]||(b[0]=x=>r.value=!1)},{default:e.withCtx(()=>b[3]||(b[3]=[e.createTextVNode(" Close ")])),_:1},8,["icon"])])])):e.createCommentVNode("",!0)]),_:1})],4)):e.createCommentVNode("",!0)}}),AI=qe(DI,[["__scopeId","data-v-06123933"]]);exports.ColumnResizeTable=FO;exports.EUIAccordion=W8;exports.EUIAlerts=BI;exports.EUIAvatar=Jh;exports.EUIBreadcrumb=_I;exports.EUIButton=Ho;exports.EUIButtonGroup=l_;exports.EUICheckbox=qh;exports.EUICircleLoader=_a;exports.EUICubeLoader=ym;exports.EUIDashboardTable=fV;exports.EUIDatepicker=wB;exports.EUIDrag=AI;exports.EUIErrorMessage=zn;exports.EUIInput=h_;exports.EUILoader=GO;exports.EUIModal=i7;exports.EUIMultiDropdown=US;exports.EUINumberInput=Q5;exports.EUIPageLimit=lo;exports.EUIPagination=qc;exports.EUIPillSelect=PB;exports.EUIPopover=a1;exports.EUIRadio=Zk;exports.EUISearch=gN;exports.EUISearchExpand=$N;exports.EUISearchTagSelect=vI;exports.EUISearchToggle=NN;exports.EUISelect=Hk;exports.EUISelectSearch=jk;exports.EUISlideover=p7;exports.EUISquareLoader=bm;exports.EUIStepperHorizontal=Zh;exports.EUIStepperTimeline=L8;exports.EUIStepperVertical=e1;exports.EUIStudentPagination=Ll;exports.EUITabOutline=MB;exports.EUITable=ZV;exports.EUITableCheckbox=ya;exports.EUITabs=VB;exports.EUITag=mm;exports.EUITelephone=F5;exports.EUITextArea=j5;exports.EUITimeLine=sS;exports.EUIToggle=a8;exports.EUITooltip=lc;exports.GrowthTable=_O;exports.UCheckbox=qo;exports.UTable=IV;
|
|
167
|
+
`;Vm(XT);Om.__scopeId="data-v-5784ed69";var QT=(()=>{const t=Om;return t.install=r=>{r.component("Popper",t)},t})();const qT={},JT={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ZT(t,r){return e.openBlock(),e.createElementBlock("svg",JT,r[0]||(r[0]=[e.createElementVNode("path",{d:"M5 12.7132L10.0168 17.7247L10.4177 17.0238C12.5668 13.2658 15.541 10.0448 19.1161 7.60354L20 7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const eI=qe(qT,[["render",ZT]]),tI={key:0,for:"search-input",class:"block text-sm font-medium text-gray-700"},nI={key:0,class:"text-red-500"},rI={class:"flex-1 min-w-0"},aI={key:0,class:"text-sm font-semibold text-current truncate"},oI={key:1,class:"inline-flex items-center gap-2 py-1 pl-2 pr-1 text-xs font-semibold text-current bg-gray-100 rounded-3xl"},iI={class:"show-count"},lI={key:2,class:"text-sm font-normal text-gray-400"},sI={class:"flex items-center flex-shrink-0 gap-2 m-auto"},uI={key:0,class:"w-full p-4 overflow-y-auto text-sm bg-white border-2 border-gray-100 border-solid shadow-lg rounded-3xl max-h-72 scrollbar--hide"},cI={key:0},dI={key:0,class:"px-2 py-4 mb-6 text-sm font-medium text-center text-gray-500 min-h-32"},fI=["onClick"],pI={key:0,class:"absolute inset-y-0 right-0 flex items-center pr-4"},hI={class:"ms-2 first-letter:capitalize"},mI={key:3,class:"px-0.5 my-2 inline-flex gap-x-3 gap-y-2 items-center flex-wrap"},vI=e.defineComponent({__name:"EUISearchTagSelect",props:{modelValue:{},items:{default:()=>[]},label:{},name:{default:""},placement:{default:"bottom-start"},itemText:{default:"name"},placeholder:{default:"Please Select"},offsetSkid:{default:"0"},offsetDistance:{default:"4"},errors:{},selectType:{default:"single"},filterFunction:{type:Function,default:()=>{}},searchable:{type:Boolean,default:!0},backendPagination:{type:Boolean,default:!1},hideNoData:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tag:{default:""},tagColor:{default:"None"},required:{type:Boolean,default:!1},classes:{default:""},searchIcon:{type:Boolean,default:!1},showTags:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},ignoreDeselect:{type:Boolean,default:!1},popperClasses:{default:""},showCount:{type:Boolean,default:!1}},emits:["update:modelValue","blur","search","create","on-change","on-deselect","toggle"],setup(t,{emit:r}){const n=t,a=r,i=e.ref(""),s=e.ref(!1),c=e.ref(),u=e.ref(),f=e.ref(),p=e.ref(!1),h=e.computed({get(){const m=n.modelValue;return m?[].concat(m):[]},set(m){a("update:modelValue",m)}}),v=e.computed(()=>m=>{if(typeof m=="object")return!!h.value.find(I=>I[n.itemText]===m[n.itemText]);if(typeof m=="string")return h.value.includes(m)});function _(m,I,P){const re=I.length-1;if(re<0)return m===void 0?P:m;for(let z=0;z<re;z++){if(m==null)return P;m=m[I[z]]}return m==null||m[I[re]]===void 0?P:m[I[re]]}function w(m,I,P){return m==null||!I||typeof I!="string"?P:m[I]!==void 0?m[I]:(I=I.replace(/\[(\w+)\]/g,".$1"),I=I.replace(/^\./,""),_(m,I.split("."),P))}function C(m,I,P){if(I==null)return m===void 0?P:m;if(m!==Object(m))return m;if(typeof I=="string")return w(m,I,P);if(Array.isArray(I))return _(m,I,P);if(typeof I!="function")return P;const re=I(m,P);return typeof re>"u"?P:re}const V=e.computed(()=>{var P;let m=(P=n.items)==null?void 0:P.slice();const I=i.value.trim().toLowerCase();if(i.value!==""){if(I==="")return[];if(n.backendPagination)return n.items;m=n.items.filter(re=>{const z=C(re,n.itemText);return(z!=null?String(z).toLowerCase():"").includes(I)})}return m}),k=m=>{if(n.ignoreDeselect)return;let I=-1;if(typeof m=="object"&&m[n.itemText]?I=h.value.findIndex(P=>P[n.itemText]===m[n.itemText]):I=h.value.indexOf(m),I>-1){const P=[...h.value];P.splice(I,1),a("update:modelValue",P),e.nextTick(()=>{h.value.length!==P.length&&(h.value=P)})}(!n.selectType||n.selectType==="single")&&N(),a("on-deselect",m),a("toggle")},b=()=>{a("update:modelValue",[]),a("toggle")},x=m=>{k(m)},O=(m,I)=>{I?A(m):k(m)},B=m=>{typeof m=="object"?Array.isArray(m)&&m.length==0?a("update:modelValue",""):a("update:modelValue",m):m.length>0?a("update:modelValue",m):a("update:modelValue","")},A=m=>{let I;if(n.selectType==="multiple"&&typeof m=="object")h.value.find(re=>re[n.itemText]===m[n.itemText])?I=h.value.filter(re=>re[n.itemText]!==m[n.itemText]):I=h.value.concat(m),a("on-change",[...I]);else if(n.selectType==="multiple"&&typeof m=="string"){if(h.value.includes(m))return k(m);I=h.value.concat(m),a("on-change",[...I])}else I=m;n.selectType==="single"&&(i.value=""),B(I),(!n.selectType||n.selectType==="single")&&N(),a("toggle",I)},S=()=>{p.value=!0,n.selectType==="single"&&(i.value=""),s.value=!0,e.nextTick(()=>{setTimeout(()=>{var m,I;if(i.value="",p.value=!1,(m=u.value)!=null&&m.searchInput)u.value.searchInput.focus();else if((I=u.value)!=null&&I.$el){const P=u.value.$el.querySelector("input");P&&P.focus()}},50)})},N=()=>{s.value&&a("blur"),s.value=!1,n.selectType==="single"&&(i.value="")},T=()=>{i.value=""},R=m=>{if(p.value)return;const I=m.target;if(s.value&&f.value){const P=!f.value.contains(I),re=document.querySelectorAll('[data-popper-placement], .popper-defaultstyle, [role="tooltip"]'),z=Array.from(re).every(Q=>!Q.contains(I));P&&z&&N()}};return e.onMounted(()=>{document.addEventListener("click",R)}),e.onUnmounted(()=>{document.removeEventListener("click",R)}),e.watch(i,m=>{a("search",m)}),e.watch(()=>n.modelValue,(m,I)=>{console.log("changed from:",I,"to:",m)},{deep:!0}),(m,I)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"componentRef",ref:f,class:"relative w-full"},[m.$slots.label?e.renderSlot(m.$slots,"label",{key:0},()=>[m.label?(e.openBlock(),e.createElementBlock("label",tI,[e.createTextVNode(e.toDisplayString(m.label)+" ",1),m.required?(e.openBlock(),e.createElementBlock("span",nI,"*")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]):e.createCommentVNode("",!0),e.createVNode(e.unref(QT),e.mergeProps({class:[`popper-defaultstyle w-full ${m.popperClasses}`]},m.$attrs,{show:s.value,arrow:"",closeDelay:"100",offsetSkid:m.offsetSkid,offsetDistance:m.offsetDistance,placement:m.placement,interactive:!0,"auto-hide":!0,"onOpen:popper":S,"onClose:popper":N}),{content:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",uI,[I[5]||(I[5]=e.createElementVNode("h3",{class:"sticky z-10 p-2 mb-2 -mx-px -mt-3 font-semibold text-gray-500 bg-white text-sm/4 -top-4"}," Search Results ",-1)),e.createElementVNode("ul",{ref_key:"options",ref:c,tabindex:"-1",role:"listbox","aria-labelledby":"listbox-label","aria-activedescendant":"listbox-option-3",class:"space-y-0.5"},[V.value.length===0&&!m.hideNoData?(e.openBlock(),e.createElementBlock("li",cI,[e.renderSlot(m.$slots,"no-items",{},()=>[i.value.length>0?(e.openBlock(),e.createElementBlock("div",dI,[I[3]||(I[3]=e.createTextVNode(' No results found for "')),e.createElementVNode("strong",null,e.toDisplayString(i.value),1),I[4]||(I[4]=e.createTextVNode('" '))])):e.createCommentVNode("",!0)])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(V.value,(P,re)=>(e.openBlock(),e.createElementBlock("li",{key:`items-${re}`,role:"option",class:e.normalizeClass(["transition-all duration-100 ease-in-out",m.selectType==="single"?"cursor-pointer":""]),onClick:[z=>m.selectType==="single"?v.value(P)?k(P):A(P):null,I[1]||(I[1]=e.withModifiers(()=>{},["stop"]))]},[m.selectType==="single"?e.renderSlot(m.$slots,"item",{key:0,item:P},()=>[e.createElementVNode("div",{class:e.normalizeClass([v.value(P)?"bg-purple-50 text-purple-600":"text-gray-600 hover:bg-gray-50 hover:text-gray-800","relative py-2 px-4 flex items-center capitalize text-sm transition-colors duration-75 rounded"])},[e.createElementVNode("span",{class:e.normalizeClass([v.value(P)?"font-semibold mr-5":"font-medium","block tracking-tight"])},e.toDisplayString(e.unref(Lt.startCase)(P[m.itemText]||P)),3),v.value(P)?(e.openBlock(),e.createElementBlock("span",pI,[e.createVNode(eI,{class:"text-current size-5","aria-hidden":"true"})])):e.createCommentVNode("",!0)],2)]):m.selectType==="multiple"?e.renderSlot(m.$slots,"item",{key:1,item:P},()=>[e.createVNode(qh,{"model-value":v.value(P),name:"checkbox",class:e.normalizeClass([v.value(P)?"text-gray-800 hover:bg-purple-50 hover:text-purple-600":"text-gray-600 hover:bg-gray-50 hover:text-gray-800","relative flex items-center capitalize text-sm transition-colors duration-75 w-full multiple-select rounded-md font-medium [&_label]:w-full [&_label]:p-2.5"]),"onUpdate:modelValue":z=>O(P,z)},{label:e.withCtx(()=>[e.createElementVNode("span",hI,e.toDisplayString(e.unref(Lt.startCase)(P[m.itemText]||P)),1)]),_:2},1032,["model-value","class","onUpdate:modelValue"])]):e.createCommentVNode("",!0)],10,fI))),128))],512)])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[s.value||h.value.length===0?(e.openBlock(),e.createBlock(AN,{key:0,ref_key:"searchInputRef",ref:u,id:"search-input","model-value":i.value,"onUpdate:modelValue":I[0]||(I[0]=P=>i.value=P),"input-type":"defaultInput",icon:Vl,placeholder:m.placeholder,disabled:m.disabled,onFocus:T,onClick:S},null,8,["model-value","placeholder","disabled"])):!s.value&&h.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"flex items-center justify-between w-full h-10 gap-2 px-4 py-2 text-left bg-white border border-gray-200 border-solid cursor-pointer search-textstyle rounded-3xl",onClick:S},[m.searchIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Vl),{key:0,class:"flex-shrink-0 w-5 h-5 text-gray-500"})):e.createCommentVNode("",!0),e.createElementVNode("div",rI,[m.selectType==="single"?(e.openBlock(),e.createElementBlock("span",aI,e.toDisplayString(e.unref(Lt.startCase)(h.value[0][m.itemText]||h.value[0])),1)):m.selectType==="multiple"&&m.showCount?(e.openBlock(),e.createElementBlock("div",oI,[I[2]||(I[2]=e.createTextVNode(" Selected Cities ")),e.createElementVNode("span",iI,e.toDisplayString(h.value.length),1)])):(e.openBlock(),e.createElementBlock("span",lI,e.toDisplayString(m.placeholder),1))]),e.createElementVNode("div",sI,[h.value.length>0&&m.clearable?(e.openBlock(),e.createBlock(e.unref(Cl),{key:0,class:"w-4 h-4 text-gray-300 cursor-pointer hover:text-gray-500",onClick:e.withModifiers(b,["stop"])})):(e.openBlock(),e.createBlock(Bn,{key:1,class:e.normalizeClass(["w-5 h-5 transform transition duration-200 ease-in-out",s.value?"text-gray-800 rotate-180":"text-gray-400 rotate-0"])},null,8,["class"]))])])):e.createCommentVNode("",!0)]),_:3},16,["class","show","offsetSkid","offsetDistance","placement"]),m.errors&&m.errors.length&&!s.value?(e.openBlock(),e.createBlock(zn,{key:1,errors:m.errors,name:m.name,class:"mt-2"},null,8,["errors","name"])):e.createCommentVNode("",!0),m.$slots.labelhint?e.renderSlot(m.$slots,"labelhint",{key:2}):e.createCommentVNode("",!0),m.selectType==="multiple"&&h.value.length>0&&m.showTags?(e.openBlock(),e.createElementBlock("div",mI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(P,re)=>e.renderSlot(m.$slots,"selection",{item:P,clear:()=>k(P),key:`selected-values-${re}`},()=>[e.createVNode(mm,{class:"capitalize",disabled:m.disabled,closeIcon:"",size:"md",color:"secondary",onRemove:z=>x(P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(Lt.startCase)(P[m.itemText]||P)),1)]),_:2},1032,["disabled","onRemove"])])),128))])):e.createCommentVNode("",!0),m.tag?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["absolute top-0 px-2 text-xs text-white rounded right-6",[{"bg-gray-400":m.tagColor==="None"},{"bg-green-400":m.tagColor==="Success"},{"bg-red-400":m.tagColor==="Error"}]])},e.toDisplayString(m.tag),3)):e.createCommentVNode("",!0)],512))}}),gI={"aria-label":"breadcrumb",class:"my-2"},yI={role:"list",class:"flex items-center justify-start max-w-full space-x-1"},bI=["href","aria-current"],_I=e.defineComponent({__name:"EUIBreadcrumb",props:{pages:{type:Array,default:[]}},setup(t){const r=t,{pages:n}=e.toRefs(r);return(a,i)=>(e.openBlock(),e.createElementBlock("nav",gI,[e.createElementVNode("ol",yI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),(s,c)=>(e.openBlock(),e.createElementBlock("li",{key:s.name,class:"flex flex-row items-center justify-start space-x-1"},[e.createElementVNode("a",{href:s.href,class:e.normalizeClass(["inline-flex items-center gap-2 text-sm font-medium font-inter",e.unref(n).length-1!==c?"text-gray-600 hover:text-gray-700":"text-gray-500"]),"aria-current":s.current?"page":void 0},[s!=null&&s.showIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s==null?void 0:s.showIcon),{key:0,class:"text-current size-4"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.name),1)],10,bI),e.unref(n).length-1!==c?(e.openBlock(),e.createBlock(Bn,{key:0,class:"flex-shrink-0 w-5 h-5 text-gray-400 transform -rotate-90","aria-hidden":"true"})):e.createCommentVNode("",!0)]))),128))])]))}}),wI={class:"shrink-0"},kI={class:"ml-3"},xI={key:0,class:"mt-4"},CI={class:"-mx-2 -my-1.5 flex"},EI={key:0,class:"ms-auto ps-3"},$I={class:"-mx-1.5 -my-1.5 pt-1"},BI=e.defineComponent({__name:"EUIAlerts",props:{showAlert:{type:Boolean,default:!0},heading:{type:String,default:""},textMessage:{type:String,default:""},alertType:{type:String,default:"Default"},alertIcon:{type:[String,Object,Function],default:""},actionItems:Boolean,closeIcon:Boolean},emits:["update:showAlert","alertAction","alertDismiss"],setup(t,{emit:r}){const n=t,{showAlert:a}=e.toRefs(n),i=r,s=()=>{i("alertAction",!0),i("update:showAlert",!1)},c=()=>{i("alertDismiss",!1),i("update:showAlert",!1)},u=e.computed(()=>({Default:{bgColor:"bg-blue-50",leftIcon:{icon:ic,color:"text-blue-400"},titleColor:"text-blue-800",textColor:"text-blue-700",btnPrimary:"bg-blue-700 hover:bg-blue-800 focus:ring-blue-600 focus:ring-offset-blue-50",btnTertiary:"text-blue-500 bg-blue-50 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",btnClose:"bg-blue-50 text-blue-500 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50"},Warning:{bgColor:"bg-yellow-50",leftIcon:{icon:HB,color:"text-yellow-400"},titleColor:"text-yellow-800",textColor:"text-yellow-700",btnPrimary:"bg-yellow-700 hover:bg-yellow-800 focus:ring-yellow-600 focus:ring-offset-yellow-50",btnTertiary:"text-yellow-500 bg-yellow-50 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50",btnClose:"bg-yellow-50 text-yellow-500 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50"},Success:{bgColor:"bg-green-50",leftIcon:{icon:ic,color:"text-green-400"},titleColor:"text-green-800",textColor:"text-green-700",btnPrimary:"bg-green-700 hover:bg-green-800 focus:ring-green-600 focus:ring-offset-green-50",btnTertiary:"text-green-500 bg-green-50 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50",btnClose:"bg-green-50 text-green-500 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50"},Error:{bgColor:"bg-red-50",leftIcon:{icon:WB,color:"text-red-400"},titleColor:"text-red-800",textColor:"text-red-700",btnPrimary:"bg-red-700 hover:bg-red-800 focus:ring-red-600 focus:ring-offset-red-50",btnTertiary:"text-red-500 bg-red-50 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",btnClose:"bg-red-50 text-red-500 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50"}})[n.alertType]||"");return(f,p)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"transition duration-300 ease-out transform","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["p-4 rounded-md",u.value.bgColor])},[e.createElementVNode("div",{class:e.normalizeClass([t.closeIcon&&!t.textMessage?"items-center pr-2 flex":"flex items-start"])},[e.createElementVNode("div",wI,[e.renderSlot(f.$slots,"icon",{},()=>{var h,v;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.alertIcon||((h=u.value.leftIcon)==null?void 0:h.icon)),{class:e.normalizeClass(["size-5",(v=u.value.leftIcon)==null?void 0:v.color]),"aria-hidden":"true"},null,8,["class"]))]})]),e.createElementVNode("div",kI,[e.createElementVNode("h3",{class:e.normalizeClass(["text-sm font-medium",u.value.titleColor])},[e.renderSlot(f.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.heading||"Alert Title"),1)])],2),e.renderSlot(f.$slots,"content",{},()=>[t.textMessage?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mt-2 text-sm",u.value.textColor])},e.toDisplayString(t.textMessage||"your description here..."),3)):e.createCommentVNode("",!0)]),e.renderSlot(f.$slots,"actionButtons",{},()=>[t.actionItems?(e.openBlock(),e.createElementBlock("div",xI,[e.createElementVNode("div",CI,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["rounded-md px-3 py-1.5 text-sm font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2",u.value.btnPrimary]),onClick:s}," View status ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["ml-3 rounded-md px-3 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",u.value.btnTertiary]),onClick:c}," Dismiss ",2)])])):e.createCommentVNode("",!0)])]),t.closeIcon?(e.openBlock(),e.createElementBlock("div",EI,[e.renderSlot(f.$slots,"xclose",{},()=>[e.createElementVNode("div",$I,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["inline-flex rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2",u.value.btnClose]),onClick:p[0]||(p[0]=h=>c())},[p[1]||(p[1]=e.createElementVNode("span",{class:"sr-only"},"Dismiss",-1)),e.createVNode(e.unref(jB),{class:"size-5","aria-hidden":"true"})],2)])])])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)]),_:3}))}}),SI={},VI={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function OI(t,r){return e.openBlock(),e.createElementBlock("svg",VI,r[0]||(r[0]=[e.createElementVNode("path",{d:"M5.45312 7.5C6.7673 9.31733 8.30557 10.947 10.028 12.3476C10.2779 12.5508 10.6284 12.5508 10.8782 12.3476C12.6007 10.947 14.139 9.31733 15.4531 7.5",stroke:"currentColor","stroke-opacity":"0.5","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const NI=qe(SI,[["render",OI]]),TI={class:"flex items-center gap-4"},II={key:0,class:"px-4 py-3 mt-4 overflow-y-auto border border-gray-100 border-solid rounded-lg bg-gray-50"},MI={class:"mt-4 text-right"},DI=e.defineComponent({__name:"EUIDrag",setup(t){const r=e.ref(!0),n=e.ref(!0),a=e.ref(null),i=e.ref(20),s=e.ref(80),c=e.ref(!1),u=e.ref(0),f=e.ref(0),p=e.ref(0),h=e.ref(0),v=()=>{n.value=!n.value,n.value&&(s.value=s.value<=284?s.value:284)},_=k=>{const b=k.target.tagName.toLowerCase();if(["input","textarea","select","button","svg","path"].includes(b))return;const{pageX:x,pageY:O}="touches"in k?k.touches[0]:k;c.value=!0,u.value=x,f.value=O,p.value=i.value,h.value=s.value,window.addEventListener("mousemove",w),window.addEventListener("mouseup",C),window.addEventListener("touchmove",w),window.addEventListener("touchend",C)},w=k=>{if(!c.value)return;const{pageX:b,pageY:x}="touches"in k?k.touches[0]:k,O=b-u.value,B=x-f.value;let A=p.value-O,S=h.value+B;const N=a.value;if(N){const{offsetWidth:T,offsetHeight:R}=N;A=Math.min(Math.max(0,A),window.innerWidth-T),S=Math.min(Math.max(0,S),window.innerHeight-R)}i.value=A,s.value=S},C=()=>{c.value=!1,window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",C),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",C)};e.onBeforeUnmount(C),e.watch(n,k=>{!k&&s.value>300&&(s.value=300)});const V=e.computed(()=>({position:"fixed",right:`${i.value}px`,top:`${s.value}px`,cursor:c.value?"grabbing":"grab",zIndex:999}));return(k,b)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"containerRef",ref:a,class:"draggable-card",style:e.normalizeStyle(V.value)},[e.createElementVNode("div",{class:"flex items-center justify-between flex-shrink-0 px-2 bg-white cursor-grab",onMousedown:e.withModifiers(_,["prevent"]),onTouchstart:e.withModifiers(_,["prevent"])},[e.createElementVNode("div",TI,[e.createVNode(Jh,{"image-url":"https://tinyurl.com/43e5fxh9",profile:!0,"full-name":"JohnCena","show-status":!0,status:"Online",size:"sm"},{name:e.withCtx(()=>b[1]||(b[1]=[e.createTextVNode("John Cena")])),designation:e.withCtx(()=>b[2]||(b[2]=[e.createTextVNode("Actor")])),_:1})]),e.createVNode(Ho,{color:"white",size:"xs",rounded:"","icon-type":"icon",icon:NI,class:e.normalizeClass(n.value?"rotate-0":"-rotate-90"),onClick:v},null,8,["class"])],32),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",II,[b[4]||(b[4]=e.createElementVNode("h3",{class:"mb-2 text-lg font-semibold text-gray-900"}," Card Title Here.... ",-1)),b[5]||(b[5]=e.createElementVNode("p",{class:"mb-4 text-sm text-gray-500"}," Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corporis non velit doloremque sint repellat beatae accusamus? Recusandae possimus voluptas beatae, labore dolor dolorem necessitatibus architecto laudantium deserunt ipsam autem. Dignissimos? ",-1)),b[6]||(b[6]=e.createElementVNode("p",{class:"text-sm text-gray-500"}," Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dicta minima ullam porro voluptate ea, amet accusamus et debitis. ",-1)),e.createElementVNode("div",MI,[e.createVNode(Ho,{color:"primary",size:"sm","icon-type":"endIcon",icon:e.unref(zB),rounded:"",onClick:b[0]||(b[0]=x=>r.value=!1)},{default:e.withCtx(()=>b[3]||(b[3]=[e.createTextVNode(" Close ")])),_:1},8,["icon"])])])):e.createCommentVNode("",!0)]),_:1})],4)):e.createCommentVNode("",!0)}}),AI=qe(DI,[["__scopeId","data-v-06123933"]]);exports.ColumnResizeTable=FO;exports.EUIAccordion=W8;exports.EUIAlerts=BI;exports.EUIAvatar=Jh;exports.EUIBreadcrumb=_I;exports.EUIButton=Ho;exports.EUIButtonGroup=l_;exports.EUICheckbox=qh;exports.EUICircleLoader=_a;exports.EUICubeLoader=ym;exports.EUIDashboardTable=fV;exports.EUIDatepicker=wB;exports.EUIDrag=AI;exports.EUIErrorMessage=zn;exports.EUIInput=h_;exports.EUILoader=GO;exports.EUIModal=i7;exports.EUIMultiDropdown=US;exports.EUINumberInput=Q5;exports.EUIPageLimit=lo;exports.EUIPagination=qc;exports.EUIPillSelect=PB;exports.EUIPopover=a1;exports.EUIRadio=Zk;exports.EUISearch=gN;exports.EUISearchExpand=$N;exports.EUISearchTagSelect=vI;exports.EUISearchToggle=NN;exports.EUISelect=Hk;exports.EUISelectSearch=jk;exports.EUISlideover=p7;exports.EUISquareLoader=bm;exports.EUIStepperHorizontal=Zh;exports.EUIStepperTimeline=L8;exports.EUIStepperVertical=e1;exports.EUIStudentPagination=Ll;exports.EUITabOutline=MB;exports.EUITable=ZV;exports.EUITableCheckbox=ya;exports.EUITabs=VB;exports.EUITag=mm;exports.EUITelephone=F5;exports.EUITextArea=j5;exports.EUITimeLine=sS;exports.EUIToggle=a8;exports.EUITooltip=lc;exports.GrowthTable=_O;exports.UCheckbox=qo;exports.UTable=IV;
|