@eaera-com/eaera-widgets-v2 0.1.70 → 0.1.72

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eaera-com/eaera-widgets-v2",
3
- "version": "0.1.70",
3
+ "version": "0.1.72",
4
4
  "description": "Vue 3 UI widget library shared across Eaera CRM products",
5
5
  "keywords": [
6
6
  "vue",
@@ -1 +0,0 @@
1
- import{ElDropdown as e,ElDropdownMenu as o,ElDropdownItem as s,ElIcon as t}from"element-plus/es";import{defineComponent as p,computed as l,openBlock as i,createBlock as d,normalizeClass as r,withCtx as a,createElementVNode as n,renderSlot as c,createVNode as u,createElementBlock as m,Fragment as f,renderList as _,toDisplayString as w,unref as g,createCommentVNode as k}from"vue";import{Check as v}from"@lucide/vue";const x={class:"el-dropdown-link"},y={class:"custom-popper__option-prefix"},b=p({__name:"EaeraDropdown",props:{trigger:{default:"hover"},options:{default:()=>[]},data:{default:()=>({})},className:{},size:{default:"md"},selectedId:{default:void 0},popperOptions:{default:{modifiers:[{name:"offset",options:{offset:[0,4]}}]}},showArrow:{type:Boolean,default:!1},danger:{type:Boolean}},emits:["click-option"],setup(p,{emit:b}){const I=p,$=b,z=l(()=>["custom-popper custom-dropdown__popper",I.size,I.danger&&"danger"]),A=l(()=>[I.className]);return(l,b)=>{const B=t,C=s,N=o,O=e;return i(),d(O,{trigger:p.trigger,class:r(["custom-dropdown",A.value]),"popper-class":z.value,"popper-options":p.popperOptions,"show-arrow":p.showArrow},{dropdown:a(()=>[u(N,null,{default:a(()=>[(i(!0),m(f,null,_(p.options,e=>(i(),d(C,{key:e.id,onClick:o=>(e=>{e.clickFunc?.(),$("click-option",e)})(e),item:p.data,disabled:e.disabled,class:r({"is-selected":e.id===I.selectedId})},{default:a(()=>[n("div",null,[e.custom?c(l.$slots,`${e.id}`,{},void 0,void 0,0):l.$slots["option-prefix"]?(i(),m(f,{key:1},[n("div",y,[c(l.$slots,"option-prefix",{option:e})]),n("span",{class:r(["custom-popper__option-text",{"is-selected":e.id===I.selectedId}])},w(e.label),3)],64)):(i(),m("span",{key:2,class:r(["custom-popper__option-text",{"is-selected":e.id===I.selectedId}])},w(e.label),3))]),e.id===I.selectedId?(i(),d(B,{key:0,class:"custom-popper__option-tick"},{default:a(()=>[u(g(v))]),_:1})):k("",!0)]),_:2},1032,["onClick","item","disabled","class"]))),128))]),_:3})]),default:a(()=>[n("span",x,[c(l.$slots,"title")])]),_:3},8,["trigger","class","popper-class","popper-options","show-arrow"])}}});export{b as _};