@oneb/ui-vue 0.2.17 → 0.2.18

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.
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),x=require("./OneAvatar.vue_vue_type_script_setup_true_lang-2d9f44f1.cjs"),$=require("./XMarkIcon-f94baa4c.cjs"),_=require("./ChevronRightIcon-6aa413c4.cjs"),j=require("./button/index.cjs"),A=require("./_plugin-vue_export-helper-f246444f.cjs"),F={title:{type:String},stick:{type:String,default:"right"}},O={variant:{type:String,default:"primary"},label:{type:String},icon:{type:[Function,Object]}},P={modelValue:{type:[Object,Array],default:null},multiple:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},title:{type:String},placeholder:{type:String,default:"Select"},searchPlaceholder:{type:String,default:"Search"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"id"},stick:{type:String,default:"bottom-start"},allowEmpty:{type:Boolean,default:!1},emptyLabel:{type:String},createLabel:{type:String},searchable:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!1},groupKey:{type:String},maxWidth:{type:String},view:{type:String,default:"default"}},q=["data-opened"],I={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},L=e.defineComponent({__name:"OneDropdown",props:F,emits:["open","close"],setup(f,{emit:a}){const d=e.ref(!1),i=e.ref(null),s=a,r=f,c=()=>{d.value=!d.value,d.value?s("open"):s("close")};e.provide("OneDropdown",{onToggle:c});const n=e.computed(()=>{var k;const t=(k=i.value)==null?void 0:k.getBoundingClientRect(),p=t?t.x<270:!1;return t&&t.top+270>window.innerHeight?"up"+(p?"-right":"-left"):"down"+(p?"-right":"-left")}),h=e.computed(()=>{const t=["absolute z-10 w-fit rounded-md bg-white","py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none","overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"];return n.value.startsWith("up")?t.push("bottom-1 mb-10"):n.value.startsWith("down")&&t.push("top-1 mt-10"),r.stick==="right"?t.push("right-0"):r.stick==="left"&&t.push("left-0"),t});return(t,p)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"menuRef",ref:i,"data-opened":d.value},[e.renderSlot(t.$slots,"button",e.normalizeProps(e.guardReactiveProps({onToggle:c,isExpanded:d.value}))),d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:c})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["menu",h.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[t.title?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:c})))],2)):e.createCommentVNode("",!0)]),_:3})],8,q))}}),B=e.defineComponent({__name:"OneDropdownItem",props:O,emits:["click"],setup(f,{emit:a}){const d=a,i=f,s=e.inject("OneDropdown"),r=()=>{s!==void 0&&s.onToggle(),d("click")},c=e.computed(()=>{const n=[];return i.variant==="secondary"?n.push("text-secondary-content hover:bg-secondary-body-hover"):i.variant==="danger"?n.push("text-danger-content hover:bg-danger-10"):i.variant==="warning"?n.push("text-warning-content hover:bg-warning-10"):i.variant==="info"?n.push("text-info-content hover:bg-info-10"):n.push("hover:bg-secondary-body-hover"),n});return(n,h)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap",c.value]),onClick:e.withModifiers(r,["prevent"])},[n.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(n.label),1)],2))}});function H(f,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})])}const T={user:{type:Object,required:!0},menu:{type:Array,default:()=>[]},iconSize:{type:String,default:"34"},app:{type:Object},accountLabel:{type:String,default:"Account"},logoutLabel:{type:String,default:"Logout"},versionLabel:{type:String,default:""},onAccount:{type:Function},onLogout:{type:Function}},D={workspace:{type:Object,required:!0},workspaces:{type:Array},apps:{type:Array,required:!0},iconSize:{type:String,default:"24"},appsTitle:{type:String,default:"Ваші додатки"},changeLabel:{type:String,default:"Керувати робочими просторами"},onChange:{type:Function},onApp:{type:Function}},R={help:{type:Object,required:!0}},W=["onClick"],K={class:"flex flex-col items-center pt-5 pb-2 h-full"},U={class:"flex flex-col px-10 py-1 mt-2 text-center"},X={class:"self-center text-base font-medium tracking-wide text-black"},G={class:"mt-1 text-xs leading-5 text-blue-500 font-light"},J={class:"text-left w-full mt-5 px-3"},Q={class:"-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400"},Y=e.defineComponent({__name:"OneUserMenu",props:T,setup(f){const a=f,d=e.computed(()=>{var r;return(r=a.menu)==null?void 0:r.map(c=>{let n={label:c.label};c.icon!=null&&(n={...n,icon:c.icon});const h=typeof c.click=="function"?c.click:()=>{};return{key:c.label,args:n,click:h}})}),i=()=>{typeof a.onAccount=="function"&&a.onAccount()},s=()=>{typeof a.onLogout=="function"&&a.onLogout()};return(r,c)=>(e.openBlock(),e.createBlock(L,{stick:"right"},{button:e.withCtx(({onToggle:n,isExpanded:h})=>{var t,p;return[e.createElementVNode("button",{onClick:n,class:e.normalizeClass(["p-1 rounded-full hover:bg-secondary-10",[h?"bg-secondary-25":""]])},[e.createVNode(x._sfc_main,{text:((t=r.user)==null?void 0:t.name)||"",size:r.iconSize,src:(p=r.user)==null?void 0:p.photo_url,rounded:!0},null,8,["text","size","src"])],10,W)]}),menu:e.withCtx(()=>{var n,h,t,p,k;return[e.createElementVNode("div",K,[e.createVNode(x._sfc_main,{text:((n=r.user)==null?void 0:n.name)||"",size:80,src:(h=r.user)==null?void 0:h.photo_url,rounded:!0,class:"mx-auto"},null,8,["text","src"]),e.createElementVNode("div",U,[e.createElementVNode("div",X,e.toDisplayString((t=r.user)==null?void 0:t.name),1),e.createElementVNode("div",G,e.toDisplayString((p=r.user)==null?void 0:p.email),1)]),typeof a.onAccount=="function"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i,class:"cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"},e.toDisplayString(r.accountLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,v=>(e.openBlock(),e.createBlock(B,e.mergeProps({key:v.key,ref_for:!0},v.args,{onClick:v.click}),null,16,["onClick"]))),128)),typeof r.onLogout=="function"?(e.openBlock(),e.createBlock(B,{key:0,icon:e.unref(H),label:r.logoutLabel,class:"rounded py-3",onClick:s},null,8,["icon","label"])):e.createCommentVNode("",!0)]),c[0]||(c[0]=e.createElementVNode("div",{class:"space-y-2 text-center",style:{width:"240px"}},null,-1)),e.createElementVNode("div",Q,e.toDisplayString((k=r.app)==null?void 0:k.version),1)])]}),_:1}))}});function z(f,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"})])}const Z=["data-opened"],ee={key:1,class:"absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"},te={class:"flex justify-between items-center pt-3 mb-3"},oe={class:"font-semibold text-xl px-3"},ne={class:"grid"},le={class:"rounded-lg m-3 border"},re={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},se={class:"flex justify-between relative"},ce={class:"flex items-center justify-between w-full text-left text-sm font-semibold"},ae={key:0},ie={class:"text-xs font-semibold"},de={class:"px-3 py-2"},pe={class:"text-secondary-content text-left pb-1 text-xs uppercase"},ue={class:"overflow-auto max-h-full"},me={key:0,class:"space-y-2"},he=["onClick"],fe={class:"flex"},ke={class:"border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center"},ge={class:"pl-2"},ve={class:"text-sm mt-1 font-semibold"},ye={class:"text9 mt-1"},xe={key:1,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"},_e=e.defineComponent({__name:"OneBrowserMenu",props:D,emits:["open","close"],setup(f,{emit:a}){const d=a,i=f,s=e.ref(!1),r=()=>{s.value=!s.value,s.value?d("open"):d("close")},c=e.ref(!1);e.computed(()=>c.value?_.render:_.render$1);const n=()=>{typeof i.onChange=="function"&&i.onChange()},h=t=>{typeof i.onApp=="function"&&i.onApp(t)};return(t,p)=>{var k,v,l,u,g,y;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:r,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(z),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",onClick:r})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("div",oe,e.toDisplayString((k=t.workspace)==null?void 0:k.title),1),e.createVNode(e.unref($.render),{class:"w-6 cursor-pointer",onClick:r})]),e.createElementVNode("div",ne,[e.createElementVNode("div",le,[e.createElementVNode("div",re,[e.createElementVNode("div",se,[e.createVNode(x._sfc_main,{text:((v=t.workspace)==null?void 0:v.name)||"",src:(l=t.workspace)==null?void 0:l.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",ce,e.toDisplayString((u=t.workspace)==null?void 0:u.name),1)]),c.value?(e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.workspaces,m=>(e.openBlock(),e.createElementBlock("div",{key:m.name,class:"flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"},[e.createVNode(x._sfc_main,{text:m.name,src:m.photo_url,size:30,rounded:!1},null,8,["text","src"]),e.createElementVNode("span",ie,e.toDisplayString(m.name),1)]))),128))])):e.createCommentVNode("",!0),p[0]||(p[0]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",{onClick:n,class:"text-center py-2 cursor-pointer",style:{"font-size":"10px"}},e.toDisplayString((g=t.workspace)==null?void 0:g.changeLabel),1)])]),e.createElementVNode("div",de,[e.createElementVNode("div",pe,e.toDisplayString((y=t.workspace)==null?void 0:y.appsLabel),1),e.createElementVNode("div",ue,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.apps,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,onClick:w=>h(m),class:"flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"},[e.createElementVNode("div",fe,[e.createElementVNode("div",ke,[e.createVNode(x._sfc_main,{text:m.name,src:m.photo_url,size:44,rounded:!1},null,8,["text","src"])]),e.createElementVNode("div",ge,[e.createElementVNode("p",ve,e.toDisplayString(m.name),1),e.createElementVNode("p",ye,e.toDisplayString(m==null?void 0:m.short),1)])]),e.createElementVNode("div",null,[e.createVNode(j.OneButton,{variant:"touch",icon:e.unref(_.render$2),onClick:w=>h(m)},null,8,["icon","onClick"])])],8,he))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("button",xe,e.toDisplayString("Дивитися всі"))):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],8,Z)}}});const we=A._export_sfc(_e,[["__scopeId","data-v-2628df74"]]);function be(f,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}function Be(f,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 010 .656l-5.603 3.113a.375.375 0 01-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112z"})])}function M(f,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}const Ee=["data-opened"],Ve={key:1,class:"absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"},Ne={class:"flex justify-between items-center pt-3 mb-3"},Ce={class:"font-semibold text-xl px-3"},Se={key:0,class:"grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"},$e=["onClick"],Ae={class:"uppercase text-[8px]"},Fe={class:"overflow-y-auto grid rounded-xl"},Le={class:"max-h-full bg-[#FAFAFA]"},De={key:0,class:"space-y-2"},ze=["onClick"],Me={class:"flex"},je={class:"pl-2"},Oe={class:"text-sm mt-1 font-semibold"},Pe={class:"text-[10px] mt-1 text-[#979CA9]"},qe={class:"mt-auto"},Ie={key:0},He=["onClick"],Te={class:"flex items-center space-x-3"},Re={class:"h-16"},We={key:0,class:"bg-[#FAFAFA] rounded-lg p-3"},Ke={class:"flex justify-between"},Ue=["onClick"],Xe={key:0,class:"tooltip-text min-w-[70px]"},Ge={class:"flex justify-between mb-4"},Je=["href"],Qe={class:"flex flex-nowrap items-center w-max h-[24px]"},Ye={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},Ze={class:"py-[8px] pl-0 pr-[8px]"},et=e.defineComponent({__name:"OneHelpMenu",props:R,emits:["open","close"],setup(f,{emit:a}){const d=a,i=f,s=e.ref(!1),r=()=>{s.value=!s.value,s.value?d("open"):d("close")},c=e.computed(()=>k.value?_.render:_.render$1),n=e.ref(3),h=e.computed(()=>{var u,g;const l=((g=(u=i.help)==null?void 0:u.helpList)==null?void 0:g.length)||0;return n.value===l});e.computed(()=>{var u;return(((u=i.help)==null?void 0:u.helpList)||[]).slice(0,n.value)});const t=()=>{var u,g;const l=((g=(u=i.help)==null?void 0:u.helpList)==null?void 0:g.length)||0;n.value=h.value?3:l},p=(l,u)=>{l&&u&&typeof u.openLink=="function"?u.openLink(u):l&&window.open(l,"_blank")},k=e.ref(!1),v=()=>{k.value=!k.value};return(l,u)=>{var g,y,m,w,E,V,N,C,S;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:r,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(be),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",onClick:r})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",Ne,[e.createElementVNode("div",Ce,e.toDisplayString((g=l.help)==null?void 0:g.label),1),e.createVNode(e.unref($.render),{class:"w-6 cursor-pointer",onClick:r})]),(y=l.help)!=null&&y.helpButton?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((m=l.help)==null?void 0:m.helpButton,o=>(e.openBlock(),e.createElementBlock("button",{key:o.name,onClick:b=>p(o.link,o),class:"grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o==null?void 0:o.icon),{class:"w-[16px] h-[16px] mx-auto"}))]),e.createElementVNode("span",Ae,e.toDisplayString(o.name),1)],8,$e))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Fe,[e.createElementVNode("div",Le,[(w=l.help)!=null&&w.helpList&&l.help.helpList.length?(e.openBlock(),e.createElementBlock("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.help.helpList,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,onClick:b=>p(o.link,o),class:"flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"},[e.createElementVNode("div",Me,[e.createElementVNode("div",je,[e.createElementVNode("p",Oe,e.toDisplayString(o.name),1),e.createElementVNode("p",Pe,e.toDisplayString(o.category),1)])])],8,ze))),128))])):e.createCommentVNode("",!0)])]),(E=l.help)!=null&&E.helpList&&l.help.helpList.length<0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:t,class:"h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"},e.toDisplayString(h.value?l.help.buttNoMore:l.help.buttMore),1)):e.createCommentVNode("",!0),e.createElementVNode("div",qe,[(V=l.help)!=null&&V.video?(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.help.video,o=>(e.openBlock(),e.createElementBlock("button",{key:o.id,onClick:b=>p(o.link,o),class:"flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createVNode(e.unref(Be),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(o.name),1)],8,He))),128))])):e.createCommentVNode("",!0),(N=l.help)!=null&&N.socialList?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createElementVNode("div",Te,[e.createVNode(e.unref(M),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(l.help.socialButt),1)]),e.createVNode(e.unref(c),{class:"w-4 h-4"})])):e.createCommentVNode("",!0),e.createElementVNode("div",Re,[k.value?(e.openBlock(),e.createElementBlock("div",We,[e.createElementVNode("div",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((C=l.help)==null?void 0:C.socialList,o=>(e.openBlock(),e.createElementBlock("button",{key:o.id,onClick:b=>p(o.link,o),class:"flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"},[e.createElementVNode("div",null,[o.name?(e.openBlock(),e.createElementBlock("div",Xe,e.toDisplayString(o.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o==null?void 0:o.icon),{class:"w-[24px] h-[24px] mx-auto"}))])],8,Ue))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=l.help)==null?void 0:S.termsOffer,o=>(e.openBlock(),e.createElementBlock("a",{key:o.name,target:"_blank",href:o.link,class:"ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"},[e.createElementVNode("div",Qe,[e.createElementVNode("div",Ye,[e.createElementVNode("span",Ze,e.toDisplayString(o.name),1)])])],8,Je))),128))])])])):e.createCommentVNode("",!0)],8,Ee)}}});const tt=A._export_sfc(et,[["__scopeId","data-v-071eaf70"]]);exports.OneBrowserMenu=we;exports.OneHelpMenu=tt;exports._sfc_main=L;exports._sfc_main$1=B;exports._sfc_main$2=Y;exports.browserMenuProps=D;exports.dropdownProps=F;exports.dropdownSelectProps=P;exports.render=z;exports.render$1=M;
@@ -82,6 +82,10 @@ const se = {
82
82
  },
83
83
  maxWidth: {
84
84
  type: String
85
+ },
86
+ view: {
87
+ type: String,
88
+ default: "default"
85
89
  }
86
90
  }, re = ["data-opened"], ie = {
87
91
  key: 0,
@@ -101,7 +105,7 @@ const se = {
101
105
  var w;
102
106
  const n = (w = h.value) == null ? void 0 : w.getBoundingClientRect(), v = n ? n.x < 270 : !1;
103
107
  return n && n.top + 270 > window.innerHeight ? "up" + (v ? "-right" : "-left") : "down" + (v ? "-right" : "-left");
104
- }), g = S(() => {
108
+ }), x = S(() => {
105
109
  const n = [
106
110
  "absolute z-10 w-fit rounded-md bg-white",
107
111
  "py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
@@ -132,7 +136,7 @@ const se = {
132
136
  default: P(() => [
133
137
  f.value ? (t(), o("div", {
134
138
  key: 0,
135
- class: M(["menu", g.value]),
139
+ class: M(["menu", x.value]),
136
140
  role: "menu",
137
141
  "aria-orientation": "vertical",
138
142
  tabindex: "-1"
@@ -156,7 +160,7 @@ const se = {
156
160
  const l = [];
157
161
  return h.variant === "secondary" ? l.push("text-secondary-content hover:bg-secondary-body-hover") : h.variant === "danger" ? l.push("text-danger-content hover:bg-danger-10") : h.variant === "warning" ? l.push("text-warning-content hover:bg-warning-10") : h.variant === "info" ? l.push("text-info-content hover:bg-info-10") : l.push("hover:bg-secondary-body-hover"), l;
158
162
  });
159
- return (l, g) => (t(), o("button", {
163
+ return (l, x) => (t(), o("button", {
160
164
  class: M(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", d.value]),
161
165
  onClick: ee(i, ["prevent"])
162
166
  }, [
@@ -253,7 +257,7 @@ const de = {
253
257
  type: Object,
254
258
  required: !0
255
259
  }
256
- }, he = ["onClick"], fe = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, ve = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, me = { class: "self-center text-base font-medium tracking-wide text-black" }, xe = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, ge = { class: "text-left w-full mt-5 px-3" }, ye = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, Bt = /* @__PURE__ */ z({
260
+ }, he = ["onClick"], fe = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, ve = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, me = { class: "self-center text-base font-medium tracking-wide text-black" }, ge = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, xe = { class: "text-left w-full mt-5 px-3" }, ye = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, Bt = /* @__PURE__ */ z({
257
261
  __name: "OneUserMenu",
258
262
  props: de,
259
263
  setup(y) {
@@ -262,12 +266,12 @@ const de = {
262
266
  return (i = p.menu) == null ? void 0 : i.map((d) => {
263
267
  let l = { label: d.label };
264
268
  d.icon != null && (l = { ...l, icon: d.icon });
265
- const g = typeof d.click == "function" ? d.click : () => {
269
+ const x = typeof d.click == "function" ? d.click : () => {
266
270
  };
267
271
  return {
268
272
  key: d.label,
269
273
  args: l,
270
- click: g
274
+ click: x
271
275
  };
272
276
  });
273
277
  }), h = () => {
@@ -276,12 +280,12 @@ const de = {
276
280
  typeof p.onLogout == "function" && p.onLogout();
277
281
  };
278
282
  return (i, d) => (t(), L(ae, { stick: "right" }, {
279
- button: P(({ onToggle: l, isExpanded: g }) => {
283
+ button: P(({ onToggle: l, isExpanded: x }) => {
280
284
  var n, v;
281
285
  return [
282
286
  e("button", {
283
287
  onClick: l,
284
- class: M(["p-1 rounded-full hover:bg-secondary-10", [g ? "bg-secondary-25" : ""]])
288
+ class: M(["p-1 rounded-full hover:bg-secondary-10", [x ? "bg-secondary-25" : ""]])
285
289
  }, [
286
290
  _(j, {
287
291
  text: ((n = i.user) == null ? void 0 : n.name) || "",
@@ -293,26 +297,26 @@ const de = {
293
297
  ];
294
298
  }),
295
299
  menu: P(() => {
296
- var l, g, n, v, w;
300
+ var l, x, n, v, w;
297
301
  return [
298
302
  e("div", fe, [
299
303
  _(j, {
300
304
  text: ((l = i.user) == null ? void 0 : l.name) || "",
301
305
  size: 80,
302
- src: (g = i.user) == null ? void 0 : g.photo_url,
306
+ src: (x = i.user) == null ? void 0 : x.photo_url,
303
307
  rounded: !0,
304
308
  class: "mx-auto"
305
309
  }, null, 8, ["text", "src"]),
306
310
  e("div", ve, [
307
311
  e("div", me, c((n = i.user) == null ? void 0 : n.name), 1),
308
- e("div", xe, c((v = i.user) == null ? void 0 : v.email), 1)
312
+ e("div", ge, c((v = i.user) == null ? void 0 : v.email), 1)
309
313
  ]),
310
314
  typeof p.onAccount == "function" ? (t(), o("a", {
311
315
  key: 0,
312
316
  onClick: h,
313
317
  class: "cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"
314
318
  }, c(i.accountLabel), 1)) : u("", !0),
315
- e("div", ge, [
319
+ e("div", xe, [
316
320
  (t(!0), o($, null, A(f.value, (C) => (t(), L(K, te({
317
321
  key: C.key,
318
322
  ref_for: !0
@@ -454,7 +458,7 @@ const we = ["data-opened"], ke = {
454
458
  S(() => d.value ? G : J);
455
459
  const l = () => {
456
460
  typeof h.onChange == "function" && h.onChange();
457
- }, g = (n) => {
461
+ }, x = (n) => {
458
462
  typeof h.onApp == "function" && h.onApp(n);
459
463
  };
460
464
  return (n, v) => {
@@ -494,17 +498,17 @@ const we = ["data-opened"], ke = {
494
498
  e("div", Le, c((m = n.workspace) == null ? void 0 : m.name), 1)
495
499
  ]),
496
500
  d.value ? (t(), o("div", Be, [
497
- (t(!0), o($, null, A(n.workspaces, (x) => (t(), o("div", {
498
- key: x.name,
501
+ (t(!0), o($, null, A(n.workspaces, (g) => (t(), o("div", {
502
+ key: g.name,
499
503
  class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
500
504
  }, [
501
505
  _(j, {
502
- text: x.name,
503
- src: x.photo_url,
506
+ text: g.name,
507
+ src: g.photo_url,
504
508
  size: 30,
505
509
  rounded: !1
506
510
  }, null, 8, ["text", "src"]),
507
- e("span", je, c(x.name), 1)
511
+ e("span", je, c(g.name), 1)
508
512
  ]))), 128))
509
513
  ])) : u("", !0),
510
514
  v[0] || (v[0] = e("hr", null, null, -1)),
@@ -519,30 +523,30 @@ const we = ["data-opened"], ke = {
519
523
  e("div", Me, c((B = n.workspace) == null ? void 0 : B.appsLabel), 1),
520
524
  e("div", Oe, [
521
525
  n.apps && n.apps.length ? (t(), o("div", Ee, [
522
- (t(!0), o($, null, A(n.apps, (x) => (t(), o("div", {
523
- key: x.id,
524
- onClick: (O) => g(x),
526
+ (t(!0), o($, null, A(n.apps, (g) => (t(), o("div", {
527
+ key: g.id,
528
+ onClick: (O) => x(g),
525
529
  class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
526
530
  }, [
527
531
  e("div", Ie, [
528
532
  e("div", Ve, [
529
533
  _(j, {
530
- text: x.name,
531
- src: x.photo_url,
534
+ text: g.name,
535
+ src: g.photo_url,
532
536
  size: 44,
533
537
  rounded: !1
534
538
  }, null, 8, ["text", "src"])
535
539
  ]),
536
540
  e("div", He, [
537
- e("p", Te, c(x.name), 1),
538
- e("p", De, c(x == null ? void 0 : x.short), 1)
541
+ e("p", Te, c(g.name), 1),
542
+ e("p", De, c(g == null ? void 0 : g.short), 1)
539
543
  ])
540
544
  ]),
541
545
  e("div", null, [
542
546
  _(ne, {
543
547
  variant: "touch",
544
548
  icon: b(oe),
545
- onClick: (O) => g(x)
549
+ onClick: (O) => x(g)
546
550
  }, null, 8, ["icon", "onClick"])
547
551
  ])
548
552
  ], 8, Pe))), 128))
@@ -624,14 +628,14 @@ const Ue = ["data-opened"], Ge = {
624
628
  }, ft = { class: "flex justify-between" }, vt = ["onClick"], mt = {
625
629
  key: 0,
626
630
  class: "tooltip-text min-w-[70px]"
627
- }, xt = { class: "flex justify-between mb-4" }, gt = ["href"], yt = { class: "flex flex-nowrap items-center w-max h-[24px]" }, _t = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, wt = { class: "py-[8px] pl-0 pr-[8px]" }, kt = /* @__PURE__ */ z({
631
+ }, gt = { class: "flex justify-between mb-4" }, xt = ["href"], yt = { class: "flex flex-nowrap items-center w-max h-[24px]" }, _t = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, wt = { class: "py-[8px] pl-0 pr-[8px]" }, kt = /* @__PURE__ */ z({
628
632
  __name: "OneHelpMenu",
629
633
  props: pe,
630
634
  emits: ["open", "close"],
631
635
  setup(y, { emit: p }) {
632
636
  const f = p, h = y, a = F(!1), i = () => {
633
637
  a.value = !a.value, a.value ? f("open") : f("close");
634
- }, d = S(() => w.value ? G : J), l = F(3), g = S(() => {
638
+ }, d = S(() => w.value ? G : J), l = F(3), x = S(() => {
635
639
  var m, k;
636
640
  const r = ((k = (m = h.help) == null ? void 0 : m.helpList) == null ? void 0 : k.length) || 0;
637
641
  return l.value === r;
@@ -643,14 +647,14 @@ const Ue = ["data-opened"], Ge = {
643
647
  const n = () => {
644
648
  var m, k;
645
649
  const r = ((k = (m = h.help) == null ? void 0 : m.helpList) == null ? void 0 : k.length) || 0;
646
- l.value = g.value ? 3 : r;
650
+ l.value = x.value ? 3 : r;
647
651
  }, v = (r, m) => {
648
652
  r && m && typeof m.openLink == "function" ? m.openLink(m) : r && window.open(r, "_blank");
649
653
  }, w = F(!1), C = () => {
650
654
  w.value = !w.value;
651
655
  };
652
656
  return (r, m) => {
653
- var k, B, x, O, V, H, T, D, q;
657
+ var k, B, g, O, V, H, T, D, q;
654
658
  return t(), o("div", { "data-opened": a.value }, [
655
659
  e("button", {
656
660
  onClick: i,
@@ -672,7 +676,7 @@ const Ue = ["data-opened"], Ge = {
672
676
  })
673
677
  ]),
674
678
  (B = r.help) != null && B.helpButton ? (t(), o("div", Xe, [
675
- (t(!0), o($, null, A((x = r.help) == null ? void 0 : x.helpButton, (s) => (t(), o("button", {
679
+ (t(!0), o($, null, A((g = r.help) == null ? void 0 : g.helpButton, (s) => (t(), o("button", {
676
680
  key: s.name,
677
681
  onClick: (E) => v(s.link, s),
678
682
  class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
@@ -705,7 +709,7 @@ const Ue = ["data-opened"], Ge = {
705
709
  key: 1,
706
710
  onClick: n,
707
711
  class: "h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"
708
- }, c(g.value ? r.help.buttNoMore : r.help.buttMore), 1)) : u("", !0),
712
+ }, c(x.value ? r.help.buttNoMore : r.help.buttMore), 1)) : u("", !0),
709
713
  e("div", at, [
710
714
  (H = r.help) != null && H.video ? (t(), o("div", ct, [
711
715
  (t(!0), o($, null, A(r.help.video, (s) => (t(), o("button", {
@@ -744,7 +748,7 @@ const Ue = ["data-opened"], Ge = {
744
748
  ])
745
749
  ])) : u("", !0)
746
750
  ]),
747
- e("div", xt, [
751
+ e("div", gt, [
748
752
  (t(!0), o($, null, A((q = r.help) == null ? void 0 : q.termsOffer, (s) => (t(), o("a", {
749
753
  key: s.name,
750
754
  target: "_blank",
@@ -756,7 +760,7 @@ const Ue = ["data-opened"], Ge = {
756
760
  e("span", wt, c(s.name), 1)
757
761
  ])
758
762
  ])
759
- ], 8, gt))), 128))
763
+ ], 8, xt))), 128))
760
764
  ])
761
765
  ])
762
766
  ])) : u("", !0)
@@ -82,5 +82,9 @@ export declare const dropdownSelectProps: {
82
82
  maxWidth: {
83
83
  type: StringConstructor;
84
84
  };
85
+ view: {
86
+ type: PropType<"default" | "pill">;
87
+ default: string;
88
+ };
85
89
  };
86
90
  export type DropdownSelectProps = ExtractPropTypes<typeof dropdownSelectProps>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../OneHelpMenu-b8924dc6.cjs"),r=require("../index-ed5c16e5.cjs");require("vue");require("../OneAvatar.vue_vue_type_script_setup_true_lang-2d9f44f1.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../ChevronRightIcon-6aa413c4.cjs");require("../button/index.cjs");require("../SpinnerIcon-89c60210.cjs");require("../_plugin-vue_export-helper-f246444f.cjs");exports.OneBrowserMenu=e.OneBrowserMenu;exports.OneDropdown=e._sfc_main;exports.OneDropdownItem=e._sfc_main$1;exports.OneHelpMenu=e.OneHelpMenu;exports.OneUserMenu=e._sfc_main$2;exports.OneBrowserMenuGrid=r._sfc_main$1;exports.OneDropdownAuto=r._sfc_main;exports.OneDropdownDivider=r.OneDropdownDivider;exports.OneDropdownSelect=r._sfc_main$2;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../OneHelpMenu-06a4d617.cjs"),r=require("../index-5b76a8d3.cjs");require("vue");require("../OneAvatar.vue_vue_type_script_setup_true_lang-2d9f44f1.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../ChevronRightIcon-6aa413c4.cjs");require("../button/index.cjs");require("../SpinnerIcon-89c60210.cjs");require("../_plugin-vue_export-helper-f246444f.cjs");exports.OneBrowserMenu=e.OneBrowserMenu;exports.OneDropdown=e._sfc_main;exports.OneDropdownItem=e._sfc_main$1;exports.OneHelpMenu=e.OneHelpMenu;exports.OneUserMenu=e._sfc_main$2;exports.OneBrowserMenuGrid=r._sfc_main$1;exports.OneDropdownAuto=r._sfc_main;exports.OneDropdownDivider=r.OneDropdownDivider;exports.OneDropdownSelect=r._sfc_main$2;
@@ -1,5 +1,5 @@
1
- import { O as m, _ as O, a as d, c as w, b as D } from "../OneHelpMenu-82d727ab.js";
2
- import { b as M, _ as c, a as b, c as f } from "../index-663366e8.js";
1
+ import { O as m, _ as O, a as d, c as w, b as D } from "../OneHelpMenu-a2630b46.js";
2
+ import { b as M, _ as c, a as b, c as f } from "../index-19198b60.js";
3
3
  import "vue";
4
4
  import "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
5
5
  import "../XMarkIcon-51ef0691.js";
@@ -156,7 +156,7 @@ export declare const entityPickerProps: {
156
156
  default: boolean;
157
157
  };
158
158
  variant: {
159
- type: PropType<"default" | "compact" | "minimal" | "pill">;
159
+ type: PropType<"default" | "pill" | "compact" | "minimal">;
160
160
  default: string;
161
161
  validator: (v: string) => boolean;
162
162
  };