mgv-backoffice 1.0.4 → 1.0.7
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/README.md +111 -0
- package/dist/components/BaseBreadcrumb.vue.d.ts +31 -0
- package/dist/index.d.ts +2 -0
- package/dist/ui-lib.mjs +345 -276
- package/dist/ui-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/BaseBadge.vue +18 -6
- package/src/components/BaseBreadcrumb.vue +67 -0
- package/src/components/BaseRow.vue +1 -1
- package/src/index.ts +4 -0
package/dist/ui-lib.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@heroicons/vue/24/outline")):typeof define=="function"&&define.amd?define(["exports","vue","@heroicons/vue/24/outline"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s.UiLib={},s.Vue,s.HeroiconsOutline))})(this,function(s,e,k){"use strict";var y=(t=>(t.WARNING="WARNING",t.ERROR="ERROR",t.SUCCESS="SUCCESS",t.INFROM="INFROM",t))(y||{}),d=(t=>(t.NONE="NONE",t.RED="RED",t.YELLOW="YELLOW",t.BLACK="BLACK",t.GRAY="GRAY",t.GREEN="GREEN",t.BLUE="BLUE",t))(d||{});function N(t){let r="red";switch(t){case y.ERROR:r="red";break;case y.SUCCESS:r="green";break;case y.INFROM:r="gray";break;case y.WARNING:r="yellow";break}return r}function w(t){let r="red";switch(t){case d.GREEN:{r="green";break}case d.RED:{r="red";break}case d.BLUE:{r="blue";break}case d.YELLOW:{r="yellow";break}case d.NONE:{r="";break}}return r}const L={class:"font-medium pl-1"},A=e.defineComponent({__name:"BaseAlert",props:{title:{type:String,required:!1,default:y.ERROR},color:{type:Object,required:!1}},setup(t){const r=t;function l(){let a=N(r.color);return"flex items-center p-4 mb-4 text-sm text-"+a+"-800 border border-"+a+"-300 rounded-lg bg-"+a+"-50 dark:bg-gray-800 dark:text-"+a+"-400 dark:border-"+a+"-800"}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l()),role:"alert"},[e.createVNode(e.unref(k.InformationCircleIcon),{class:"w-6 h-6 text-gray-400"}),e.createElementVNode("div",null,[e.createElementVNode("span",L,e.toDisplayString(t.title),1)])],2))}}),x=e.defineComponent({__name:"BaseBadge",props:{color:{type:String,required:!1}},setup(t){const r=e.useSlots(),l=e.computed(()=>!!r.default),a=t;function o(){let n=w(a.color);return"font-bold bg-"+n+"-100 text-"+n+"-800 text-xs mr-2 px-2.5 py-0.5 rounded-full"}return(n,c)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o())},[e.renderSlot(n.$slots,"default")],2)):e.createCommentVNode("",!0)}});var f=(t=>(t.RED="RED",t.BLUE="BLUE",t.WHITE="WHITE",t.DARK="DARK",t.GREEN="GREEN",t.YELLOW="YELLOW",t.PURPLE="PURPLE",t))(f||{}),b=(t=>(t.EXTRA_SMALL="EXTRA SMALL",t.SMALL="SMALL",t.BASE="BASE",t.LARGE="LARGE",t.EXTRA_LARGE="EXTRA_LARGE",t))(b||{});const O=["type","disabled"],T={key:0},U={key:1},$=["type","disabled"],D={key:0},G={key:1},M={key:2},I=e.defineComponent({__name:"BaseButton",props:{description:{type:String,required:!0},color:{type:String,required:!1,default:f.BLUE},to:{type:String,required:!1},type:{type:String,required:!1,default:"button"},icon:{type:String,required:!1},iconSize:{type:String,required:!1},iconLeft:{type:String,required:!1},isRounded:{type:Boolean,required:!1},isDisable:{type:Boolean,required:!1},size:{type:String,required:!1},isLoading:{type:Boolean,required:!1}},setup(t){const r=t;function l(){let a="inline-flex items-center",o;switch(r.color){case f.BLUE:{o="focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300",r.isDisable&&(o+=" bg-blue-400");break}case f.WHITE:{o="focus:outline-none text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200",r.isDisable&&(o+=" bg-gray-400");break}case f.DARK:{o="focus:outline-none text-white bg-gray-800 hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 ",r.isDisable&&(o+=" bg-gray-400");break}case f.GREEN:{o="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300",r.isDisable&&(o+=" bg-green-400");break}case f.RED:{o="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300",r.isDisable&&(o+=" bg-red-400");break}case f.YELLOW:{o="focus:outline-none text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300",r.isDisable&&(o+=" bg-yellow-400");break}case f.PURPLE:{o="focus:outline-none text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 px-5 py-2.5 mb-2",r.isDisable&&(o+=" bg-purple-400");break}}let n="px-5 py-2.5 mr-2 mb-2 text-sm";switch(r.size){case b.EXTRA_SMALL:{n="px-3 py-2 text-xs";break}case b.SMALL:{n="px-3 py-2 text-sm";break}case b.BASE:{n="px-5 py-2.5 text-sm";break}case b.LARGE:{n="px-5 py-3 text-base";break}case b.EXTRA_LARGE:{n="px-6 py-3.5 text-base";break}}let c="rounded-lg";return r.isRounded&&(c="rounded-full"),r.isDisable&&(o+=" cursor-not-allowed"),a+" "+n+" "+o+" "+"font-medium"+" "+c}return(a,o)=>{const n=e.resolveComponent("router-link");return t.to?(e.openBlock(),e.createBlock(n,{key:0,to:t.to},{default:e.withCtx(()=>[e.createElementVNode("button",{type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",T,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,O)]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("button",{key:1,type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.isLoading?(e.openBlock(),e.createElementBlock("div",D,[...o[0]||(o[0]=[e.createElementVNode("svg",{"aria-hidden":"true",role:"status",class:"inline w-4 h-4 me-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})],-1)])])):e.createCommentVNode("",!0),t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",G,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,$))}}});var u=(t=>(t.BASE="BASE",t.BASE_SHORTER="BASE_SHORTER",t.SQUARE="SQUARE",t))(u||{});const z={key:0,class:"h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"},q={key:1,class:"w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"},P={key:2,class:"w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"},W=e.defineComponent({__name:"BaseLine",props:{mode:{type:String,required:!1,default:u.BASE}},setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.mode===e.unref(u).BASE?(e.openBlock(),e.createElementBlock("hr",z)):e.createCommentVNode("",!0),t.mode===e.unref(u).BASE_SHORTER?(e.openBlock(),e.createElementBlock("hr",q)):e.createCommentVNode("",!0),t.mode===e.unref(u).SQUARE?(e.openBlock(),e.createElementBlock("hr",P)):e.createCommentVNode("",!0)],64))}});var h=(t=>(t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t))(h||{});const F=["height","width"],H=e.defineComponent({__name:"BaseLogo",props:{size:{type:String,required:!1,default:h.MEDIUM}},setup(t){const r=t;function l(){let a="";switch(r.size){case h.SMALL:{a="50px";break}case h.MEDIUM:{a="100px";break}case h.LARGE:{a="150px";break}}return a}return(a,o)=>{const n=e.resolveComponent("router-link");return e.openBlock(),e.createBlock(n,{to:"/",class:"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("svg",{height:l(),width:l(),viewBox:"33.6 130.6 499.7 242.9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[...o[0]||(o[0]=[e.createElementVNode("linearGradient",{id:"a"},[e.createElementVNode("stop",{offset:".085","stop-color":"#469e43"}),e.createElementVNode("stop",{offset:"1","stop-color":"#132d13"})],-1),e.createElementVNode("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:"64.863",x2:"64.863","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"c",gradientUnits:"userSpaceOnUse",x1:"138.367",x2:"138.367","xlink:href":"#a",y1:"308.454",y2:"370.601"},null,-1),e.createElementVNode("linearGradient",{id:"d",gradientUnits:"userSpaceOnUse",x1:"195.475",x2:"195.475","xlink:href":"#a",y1:"288.291",y2:"369.85"},null,-1),e.createElementVNode("linearGradient",{id:"e",gradientUnits:"userSpaceOnUse",x1:"249.634",x2:"249.634","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"f",gradientUnits:"userSpaceOnUse",x1:"302.884",x2:"302.884","xlink:href":"#a",y1:"288.291",y2:"367.857"},null,-1),e.createElementVNode("linearGradient",{id:"g",gradientUnits:"userSpaceOnUse",x1:"354.118",x2:"354.118","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"h",gradientUnits:"userSpaceOnUse",x1:"428.02",x2:"428.02","xlink:href":"#a",y1:"306.156",y2:"367.742"},null,-1),e.createElementVNode("linearGradient",{id:"i",gradientUnits:"userSpaceOnUse",x1:"502.066",x2:"502.066","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"j",gradientUnits:"userSpaceOnUse",x1:"283.264",x2:"283.264","xlink:href":"#a",y1:"131.629",y2:"232.559"},null,-1),e.createElementVNode("linearGradient",{id:"k",gradientUnits:"userSpaceOnUse",x1:"283.46",x2:"283.46",y1:"202.275",y2:"183.785"},[e.createElementVNode("stop",{offset:"0","stop-color":"#969799","stop-opacity":"0"}),e.createElementVNode("stop",{offset:"1","stop-color":"#808183"})],-1),e.createElementVNode("path",{d:"m65 307.2c-6.8 0-13.1 2.2-18.2 5.9v-24.8h-13.2v81.1h31.4c17.2 0 31.1-13.9 31.1-31.1s-13.9-31.1-31.1-31.1zm0 49.3h-18.2v-18.2c0-10.1 8.2-18.2 18.2-18.2 10.1 0 18.2 8.2 18.2 18.2.1 10.1-8.1 18.2-18.2 18.2z",fill:"url(#b)"},null,-1),e.createElementVNode("path",{d:"m168.8 343.9h-46.7c1.4 7.1 6.6 12 14.1 12.7 6.4.6 12.9.1 19.9.1v11.9c-15.2 4.9-33.3.5-42.1-10.4-3.8-4.7-17.3-34.7 11.5-47.4 39-11.4 45.3 22.4 43.3 33.1zm-14.2-12.7c-1.7-8.1-8.8-12.9-17.9-12.3-7.6.5-14 5.8-14.5 12.3z",fill:"url(#c)"},null,-1),e.createElementVNode("path",{d:"m195.5 320.2c0 10.5-.2 20 .1 29.6.2 5.8 4.4 8.4 13.2 8.6v10.5c-13.8 3.9-26.2-4.5-26.4-18-.2-18.7-.1-43.9-.1-62.6h14.1l-.3 18.5 12.7-.1v13.4h-13.3z",fill:"url(#d)"},null,-1),e.createElementVNode("path",{d:"m249.6 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#e)"},null,-1),e.createElementVNode("path",{d:"m296.4 288.3h13v79.6h-13z",fill:"url(#f)"},null,-1),e.createElementVNode("path",{d:"m354.1 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#g)"},null,-1),e.createElementVNode("path",{d:"m442.2 367.7c0-12.3.2-23.6 0-34.9-.2-3.4-3.6-13.8-14.1-13.4-10.3-.3-14.4 10-14.3 12.7.1 10.2.5 35.1.5 35.1l-13.6.1s-.3-25.7.2-36.2c.6-14.1 12.7-25 27.5-25 14.7 0 26.2 10.4 26.7 24.9.4 10.4.5 36.3.5 36.3z",fill:"url(#h)"},null,-1),e.createElementVNode("path",{d:"m501.9 307.2c6.8 0 13.1 2.2 18.2 5.9v-24.8h13.2v81.1h-31.4c-17.2 0-31.1-13.9-31.1-31.1s13.9-31.1 31.1-31.1zm0 49.3h18.2v-18.2c0-10.1-8.2-18.2-18.2-18.2-10.1 0-18.2 8.2-18.2 18.2 0 10.1 8.1 18.2 18.2 18.2z",fill:"url(#i)"},null,-1),e.createElementVNode("path",{d:"m309.2 180.6h-24v-24c0-12.6 10.2-24.1 22.8-25 14.8-1 27.1 11.3 26.1 26.1-.8 12.7-12.3 22.9-24.9 22.9zm-50.7-48.9c-14.8-1-27.1 11.3-26.1 26.1.8 12.6 12.4 22.8 25 22.8h23.9v-24c0-12.6-10.3-24.1-22.8-24.9zm50.7 51.9h-24v23.9c0 12.6 10.2 24.1 22.8 25 14.8 1 27.1-11.3 26.1-26.1-.8-12.6-12.3-22.8-24.9-22.8zm-52.4 0c-14 0-25.3 11.8-24.4 26 .8 12.2 10.7 22.1 22.9 22.9 14.2.9 26-10.4 26-24.4v-24.5z",fill:"url(#j)"},null,-1),e.createElementVNode("path",{d:"m281.7 183.8h3.6v18.5h-3.6z",fill:"url(#k)"},null,-1)])],8,F))]),_:1})}}});var B=(t=>(t.DELETE="DELETE",t.SUCCESS="SUCCESS",t))(B||{});const j={class:"dialog relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white"},Y={key:0,class:"p-6 text-center"},X={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"},K={class:"flex justify-center"},Q=e.defineComponent({__name:"BaseModal",props:{title:{type:String,required:!0},description:{type:String,required:!1},to:{type:String,required:!1,default:"/"},mode:{type:String,required:!1,default:"SUCCESS"}},emits:["closeModal","confirmModal"],setup(t){return(r,l)=>{const a=e.resolveComponent("base-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"outside",onClick:l[0]||(l[0]=o=>r.$emit("closeModal"))}),e.createElementVNode("div",j,[t.mode===e.unref(B).DELETE?(e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(e.unref(k.ExclamationCircleIcon),{class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),e.createElementVNode("h3",X," Are you sure you want to delete this "+e.toDisplayString(t.title)+"? ",1),e.createElementVNode("div",K,[e.createVNode(a,{color:e.unref(f).RED,onClick:l[1]||(l[1]=o=>r.$emit("confirmModal")),description:"Yes, I'm sure"},null,8,["color"]),e.createVNode(a,{color:e.unref(f).WHITE,onClick:l[2]||(l[2]=o=>r.$emit("closeModal")),description:"No, cancel"},null,8,["color"])])])):e.createCommentVNode("",!0)])],64)}}}),S=(t,r)=>{const l=t.__vccOpts||t;for(const[a,o]of r)l[a]=o;return l},Z=S(Q,[["__scopeId","data-v-492169b3"]]),J=e.defineComponent({__name:"BaseRow",props:{bgColor:{type:String,required:!1,default:"white"}},setup(t){const r=t;function l(){return"block p-6 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 global "+r.bgColor}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l())},[e.renderSlot(a.$slots,"default")],2))}}),v={},ee={class:"w-4 h-4 border-2 border-gray-200 border-t-blue-500 rounded-full animate-spin"};function te(t,r){return e.openBlock(),e.createElementBlock("div",ee)}const re=S(v,[["render",te]]);var E=(t=>(t.SUCCESS="SUCCESS",t.WARNING="WARNING",t.ERROR="ERROR",t))(E||{}),C=(t=>(t.TOP_LEFT="TOP_LEFT",t.TOP_RIGHT="TOP_RIGHT",t.BOTTOM_LEFT="BOTTOM_LEFT",t.BOTTOM_RIGHT="BOTTOM_RIGHT",t))(C||{});const oe={class:"flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"},ne={class:"ml-3 text-sm font-normal"},le={key:3,type:"button",class:"ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","data-dismiss-target":"#toast-danger","aria-label":"Close"},ae=e.defineComponent({__name:"BaseToast",props:{mode:{type:Object,required:!0},description:{type:String,required:!0},hasCloseIcon:{type:Boolean,required:!1,default:!0},positioning:{type:String,required:!1,default:"right"}},setup(t){const r=t;function l(){let c="";switch(r.mode){case E.ERROR:c="text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";break;case E.SUCCESS:c="text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";break;case E.WARNING:c="text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";break}return"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 rounded-lg "+c}function a(){let c="top-5 right-5";switch(r.positioning){case C.BOTTOM_LEFT:c="bottom-5";break;case C.TOP_LEFT:c="top-5";break;case C.TOP_RIGHT:c="top-5 right-5";break;case C.BOTTOM_RIGHT:c="bottom-5 right-5";break}return"fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg "+c+" space-x"}const o=e.ref(!0);function n(){setTimeout(()=>o.value=!1,1e6)}return n(),(c,m)=>o.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"toast-top-right",class:e.normalizeClass(a()),role:"alert"},[e.createElementVNode("div",oe,[t.mode==e.unref(E).ERROR?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l())},[e.createVNode(e.unref(k.ExclamationCircleIcon),{class:"h-6 w-6 text-red-500"}),m[1]||(m[1]=e.createElementVNode("span",{class:"sr-only"},"Error icon",-1))],2)):t.mode==e.unref(E).SUCCESS?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l())},[e.createVNode(e.unref(k.CheckCircleIcon),{class:"h-6 w-6 text-green-500"}),m[2]||(m[2]=e.createElementVNode("span",{class:"sr-only"},"Check icon",-1))],2)):t.mode==e.unref(E).WARNING?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l())},[e.createVNode(e.unref(k.ExclamationTriangleIcon),{class:"h-6 w-6 text-yellow-500"}),m[3]||(m[3]=e.createElementVNode("span",{class:"sr-only"},"Warning icon",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",ne,e.toDisplayString(t.description),1),t.hasCloseIcon?(e.openBlock(),e.createElementBlock("button",le,[m[4]||(m[4]=e.createElementVNode("span",{class:"sr-only"},"Close",-1)),e.createVNode(e.unref(k.XMarkIcon),{class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:m[0]||(m[0]=i=>o.value=!o.value)})])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)}}),se={class:"w-13"},ce=e.defineComponent({__name:"ColoredSquares",props:{color:{type:String,required:!1}},setup(t){const r=t,l=["bg-slate-300","bg-zinc-300","bg-neutral-300","bg-stone-300","bg-blue-300","bg-green-300","bg-yellow-300","bg-purple-300","bg-pink-300"],a=e.computed(()=>l[Math.floor(Math.random()*l.length)]);function o(){let n="gray";switch(r.color){case d.GREEN:{n="green";break}case d.RED:{n="red";break}case d.BLUE:{n="blue";break}case d.YELLOW:{n="yellow";break}case d.NONE:{n="";break}}return"font-bold bg-"+n+"-100 text-"+n+"-800 text-xs mr-2 px-2.5 py-0.5 rounded-full"}return(n,c)=>(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",{class:e.normalizeClass(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center",o()])},[e.renderSlot(n.$slots,"default"),e.createElementVNode("div",{class:e.normalizeClass(["absolute bottom-0 left-0 h-1 w-full",a.value])},null,2)],2)]))}}),ie={key:0,class:"font-bold text-green-800"},de={key:0},me={key:0},fe="font-bold",pe=e.defineComponent({__name:"EuroAmount",props:{amount:{type:Number,required:!1},beforeAmount:{type:Number,default:null,required:!1},showCurrency:{type:Boolean,default:!0,required:!1}},setup(t){const r=t,l=e.computed(()=>r.amount!==null&&r.amount!==void 0),a=e.computed(()=>l.value&&r.amount<0),o=e.computed(()=>r.beforeAmount===null||r.beforeAmount===void 0?!1:r.amount<r.beforeAmount),n=e.computed(()=>a.value||o.value),c=e.computed(()=>!a.value&&!o.value&&!(r.beforeAmount===null||r.beforeAmount===void 0));return(m,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.value&&c.value?(e.openBlock(),e.createElementBlock("span",ie,[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",de,"€")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value&&!c.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([fe,n.value?"text-red-800":"text-gray-800"])},[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",me,"€")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))}}),ge=["onClick"],ke={key:1,style:{cursor:"not-allowed"}},Ee=S(e.defineComponent({__name:"Pagination",props:{totalItems:{type:Number,required:!0,default:10},itemsPerPage:{type:Number,default:20}},emits:["page-changed"],setup(t,{emit:r}){const l=t,a=e.ref(1),o=e.ref(0),n=e.ref([]),c=r;function m(i){if(i!==a.value&&i>=1&&i<=o.value&&(a.value=i),o.value>5){n.value=[],i-3>0&&(n.value.push(1),n.value.push(0));for(let p=2;p>=1;p--){let V=i-p;V>0&&n.value.push(V)}n.value.push(a.value);let g=o.value-i,_=g>2,xe=2;if(_){for(let p=1;p<=xe;p++)n.value.push(i+p);n.value.push(0),n.value.push(o.value)}else for(let p=1;p<=g;p++)n.value.push(i+p)}c("page-changed",i)}return e.watch(()=>l.totalItems,()=>{if(o.value=Math.ceil(l.totalItems/l.itemsPerPage),n.value=[],o.value>5){for(let i=1;i<5;i++)n.value.push(i);n.value.push(0),n.value.push(o.value)}else for(let i=1;i<=o.value;i++)n.value.push(i)}),(i,Ce)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,g=>(e.openBlock(),e.createElementBlock("li",{key:g},[g!==0?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:_=>m(g),class:e.normalizeClass({active:g===a.value})},e.toDisplayString(g),11,ge)):e.createCommentVNode("",!0),g===0?(e.openBlock(),e.createElementBlock("span",ke,"...")):e.createCommentVNode("",!0)]))),128))])]))}}),[["__scopeId","data-v-248e09af"]]),ye={key:0},be={key:0,class:"flex items-center space-x-2"},ue={key:1,class:"flex items-center space-x-2"},he=e.defineComponent({__name:"TrendArrow",props:{number:{type:Number,required:!1},icon:{type:String,required:!1}},setup(t){const r=t,l=e.computed(()=>r.number!==null&&r.number!==void 0&&r.number<0);return(a,o)=>t.number?(e.openBlock(),e.createElementBlock("div",ye,[l.value?(e.openBlock(),e.createElementBlock("span",be,[e.createVNode(x,{color:e.unref(d).RED},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(k.ArrowDownIcon),{class:"h-5 w-5 text-red-500"})])):(e.openBlock(),e.createElementBlock("span",ue,[e.createVNode(x,{color:e.unref(d).GREEN},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(k.ArrowUpIcon),{class:"h-5 w-5 text-green-500"})]))])):e.createCommentVNode("",!0)}});var R=(t=>(t.WIN="WIN",t.LOSE="LOSE",t))(R||{});s.AlertEnum=y,s.BaseAlert=A,s.BaseBadge=x,s.BaseBadgeEnum=R,s.BaseButton=I,s.BaseButtonEnum=f,s.BaseButtonSizeEnum=b,s.BaseLine=W,s.BaseLoginEnum=h,s.BaseLogo=H,s.BaseModal=Z,s.BaseModalEnum=B,s.BaseRow=J,s.BaseSpinner=re,s.BaseToast=ae,s.BaseToastEnum=E,s.ColoredSquares=ce,s.ColorsEnums=d,s.EuroAmount=pe,s.LineEnum=u,s.Pagination=Ee,s.PositioningEnum=C,s.TrendArrow=he,s.getBaseColor=N,s.getBaseColorOf=w,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@heroicons/vue/24/outline"),require("@heroicons/vue/24/solid")):typeof define=="function"&&define.amd?define(["exports","vue","@heroicons/vue/24/outline","@heroicons/vue/24/solid"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s.UiLib={},s.Vue,s.HeroiconsOutline,s.HeroiconsSolid))})(this,function(s,e,g,V){"use strict";var h=(t=>(t.WARNING="WARNING",t.ERROR="ERROR",t.SUCCESS="SUCCESS",t.INFROM="INFROM",t))(h||{}),d=(t=>(t.NONE="NONE",t.RED="RED",t.YELLOW="YELLOW",t.BLACK="BLACK",t.GRAY="GRAY",t.GREEN="GREEN",t.BLUE="BLUE",t))(d||{});function S(t){let r="red";switch(t){case h.ERROR:r="red";break;case h.SUCCESS:r="green";break;case h.INFROM:r="gray";break;case h.WARNING:r="yellow";break}return r}function L(t){let r="red";switch(t){case d.GREEN:{r="green";break}case d.RED:{r="red";break}case d.BLUE:{r="blue";break}case d.YELLOW:{r="yellow";break}case d.NONE:{r="";break}}return r}const A={class:"font-medium pl-1"},O=e.defineComponent({__name:"BaseAlert",props:{title:{type:String,required:!1,default:h.ERROR},color:{type:Object,required:!1}},setup(t){const r=t;function l(){let a=S(r.color);return"flex items-center p-4 mb-4 text-sm text-"+a+"-800 border border-"+a+"-300 rounded-lg bg-"+a+"-50 dark:bg-gray-800 dark:text-"+a+"-400 dark:border-"+a+"-800"}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l()),role:"alert"},[e.createVNode(e.unref(g.InformationCircleIcon),{class:"w-6 h-6 text-gray-400"}),e.createElementVNode("div",null,[e.createElementVNode("span",A,e.toDisplayString(t.title),1)])],2))}}),T="bg-red-100 text-red-700 border-red-200",C=e.defineComponent({__name:"BaseBadge",props:{color:{type:String,required:!1}},setup(t){const r=e.useSlots(),l=e.computed(()=>!!r.default),a=t,o={[d.RED]:"bg-red-100 text-red-700 border-red-200",[d.GREEN]:"bg-green-100 text-green-700 border-green-200",[d.BLUE]:"bg-blue-100 text-blue-700 border-blue-200",[d.YELLOW]:"bg-yellow-100 text-yellow-700 border-yellow-200",[d.GRAY]:"bg-gray-100 text-gray-700 border-gray-200",[d.NONE]:"bg-gray-50 text-gray-600 border-gray-200"},n=e.computed(()=>`inline-flex items-center gap-1 font-semibold text-xs leading-none px-3 py-1.5 rounded-full border ${a.color&&o[a.color]||T}`);return(c,m)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(n.value)},[e.renderSlot(c.$slots,"default")],2)):e.createCommentVNode("",!0)}}),$={class:"flex px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 dark:bg-gray-800 dark:border-gray-700","aria-label":"Breadcrumb"},U={class:"inline-flex items-center space-x-1 md:space-x-3"},D={class:"inline-flex items-center",style:{"margin-left":"0"}},G=e.defineComponent({__name:"BaseBreadcrumb",props:{items:{type:Array,required:!1,default:void 0},path:{type:String,required:!1,default:void 0}},setup(t){const r=t,l=e.computed(()=>{if(r.items&&r.items.length>0)return r.items;const o=(r.path??(typeof window<"u"?window.location.pathname:"/")).split("/").filter(c=>c!=="");let n="";return o.map(c=>(n+="/"+c,{name:Number(c)?c:(c.charAt(0).toUpperCase()+c.slice(1)).replaceAll("-"," "),url:n}))});return(a,o)=>{const n=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",$,[e.createElementVNode("ol",U,[e.createElementVNode("li",D,[e.createVNode(n,{to:"/",class:"inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white"},{default:e.withCtx(()=>[e.createVNode(e.unref(V.HomeIcon),{class:"h-4 w-4 text-gray-500 mr-2"}),o[0]||(o[0]=e.createTextVNode(" Home ",-1))]),_:1})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(c,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:"inline-flex items-center",style:{"margin-left":"0"}},[e.createVNode(e.unref(g.ChevronRightIcon),{class:"h-4 w-4 text-gray-500"}),e.createVNode(n,{to:c.url,class:"ml-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ml-2 dark:text-gray-400 dark:hover:text-white"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.name),1)]),_:2},1032,["to"])]))),128))])])}}});var f=(t=>(t.RED="RED",t.BLUE="BLUE",t.WHITE="WHITE",t.DARK="DARK",t.GREEN="GREEN",t.YELLOW="YELLOW",t.PURPLE="PURPLE",t))(f||{}),k=(t=>(t.EXTRA_SMALL="EXTRA SMALL",t.SMALL="SMALL",t.BASE="BASE",t.LARGE="LARGE",t.EXTRA_LARGE="EXTRA_LARGE",t))(k||{});const I=["type","disabled"],M={key:0},q={key:1},z=["type","disabled"],P={key:0},W={key:1},H={key:2},F=e.defineComponent({__name:"BaseButton",props:{description:{type:String,required:!0},color:{type:String,required:!1,default:f.BLUE},to:{type:String,required:!1},type:{type:String,required:!1,default:"button"},icon:{type:String,required:!1},iconSize:{type:String,required:!1},iconLeft:{type:String,required:!1},isRounded:{type:Boolean,required:!1},isDisable:{type:Boolean,required:!1},size:{type:String,required:!1},isLoading:{type:Boolean,required:!1}},setup(t){const r=t;function l(){let a="inline-flex items-center",o;switch(r.color){case f.BLUE:{o="focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300",r.isDisable&&(o+=" bg-blue-400");break}case f.WHITE:{o="focus:outline-none text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200",r.isDisable&&(o+=" bg-gray-400");break}case f.DARK:{o="focus:outline-none text-white bg-gray-800 hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 ",r.isDisable&&(o+=" bg-gray-400");break}case f.GREEN:{o="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300",r.isDisable&&(o+=" bg-green-400");break}case f.RED:{o="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300",r.isDisable&&(o+=" bg-red-400");break}case f.YELLOW:{o="focus:outline-none text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300",r.isDisable&&(o+=" bg-yellow-400");break}case f.PURPLE:{o="focus:outline-none text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 px-5 py-2.5 mb-2",r.isDisable&&(o+=" bg-purple-400");break}}let n="px-5 py-2.5 mr-2 mb-2 text-sm";switch(r.size){case k.EXTRA_SMALL:{n="px-3 py-2 text-xs";break}case k.SMALL:{n="px-3 py-2 text-sm";break}case k.BASE:{n="px-5 py-2.5 text-sm";break}case k.LARGE:{n="px-5 py-3 text-base";break}case k.EXTRA_LARGE:{n="px-6 py-3.5 text-base";break}}let c="rounded-lg";return r.isRounded&&(c="rounded-full"),r.isDisable&&(o+=" cursor-not-allowed"),a+" "+n+" "+o+" "+"font-medium"+" "+c}return(a,o)=>{const n=e.resolveComponent("router-link");return t.to?(e.openBlock(),e.createBlock(n,{key:0,to:t.to},{default:e.withCtx(()=>[e.createElementVNode("button",{type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,I)]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("button",{key:1,type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.isLoading?(e.openBlock(),e.createElementBlock("div",P,[...o[0]||(o[0]=[e.createElementVNode("svg",{"aria-hidden":"true",role:"status",class:"inline w-4 h-4 me-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})],-1)])])):e.createCommentVNode("",!0),t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,z))}}});var u=(t=>(t.BASE="BASE",t.BASE_SHORTER="BASE_SHORTER",t.SQUARE="SQUARE",t))(u||{});const Y={key:0,class:"h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"},j={key:1,class:"w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"},X={key:2,class:"w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"},K=e.defineComponent({__name:"BaseLine",props:{mode:{type:String,required:!1,default:u.BASE}},setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.mode===e.unref(u).BASE?(e.openBlock(),e.createElementBlock("hr",Y)):e.createCommentVNode("",!0),t.mode===e.unref(u).BASE_SHORTER?(e.openBlock(),e.createElementBlock("hr",j)):e.createCommentVNode("",!0),t.mode===e.unref(u).SQUARE?(e.openBlock(),e.createElementBlock("hr",X)):e.createCommentVNode("",!0)],64))}});var E=(t=>(t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t))(E||{});const Q=["height","width"],Z=e.defineComponent({__name:"BaseLogo",props:{size:{type:String,required:!1,default:E.MEDIUM}},setup(t){const r=t;function l(){let a="";switch(r.size){case E.SMALL:{a="50px";break}case E.MEDIUM:{a="100px";break}case E.LARGE:{a="150px";break}}return a}return(a,o)=>{const n=e.resolveComponent("router-link");return e.openBlock(),e.createBlock(n,{to:"/",class:"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("svg",{height:l(),width:l(),viewBox:"33.6 130.6 499.7 242.9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[...o[0]||(o[0]=[e.createElementVNode("linearGradient",{id:"a"},[e.createElementVNode("stop",{offset:".085","stop-color":"#469e43"}),e.createElementVNode("stop",{offset:"1","stop-color":"#132d13"})],-1),e.createElementVNode("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:"64.863",x2:"64.863","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"c",gradientUnits:"userSpaceOnUse",x1:"138.367",x2:"138.367","xlink:href":"#a",y1:"308.454",y2:"370.601"},null,-1),e.createElementVNode("linearGradient",{id:"d",gradientUnits:"userSpaceOnUse",x1:"195.475",x2:"195.475","xlink:href":"#a",y1:"288.291",y2:"369.85"},null,-1),e.createElementVNode("linearGradient",{id:"e",gradientUnits:"userSpaceOnUse",x1:"249.634",x2:"249.634","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"f",gradientUnits:"userSpaceOnUse",x1:"302.884",x2:"302.884","xlink:href":"#a",y1:"288.291",y2:"367.857"},null,-1),e.createElementVNode("linearGradient",{id:"g",gradientUnits:"userSpaceOnUse",x1:"354.118",x2:"354.118","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"h",gradientUnits:"userSpaceOnUse",x1:"428.02",x2:"428.02","xlink:href":"#a",y1:"306.156",y2:"367.742"},null,-1),e.createElementVNode("linearGradient",{id:"i",gradientUnits:"userSpaceOnUse",x1:"502.066",x2:"502.066","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"j",gradientUnits:"userSpaceOnUse",x1:"283.264",x2:"283.264","xlink:href":"#a",y1:"131.629",y2:"232.559"},null,-1),e.createElementVNode("linearGradient",{id:"k",gradientUnits:"userSpaceOnUse",x1:"283.46",x2:"283.46",y1:"202.275",y2:"183.785"},[e.createElementVNode("stop",{offset:"0","stop-color":"#969799","stop-opacity":"0"}),e.createElementVNode("stop",{offset:"1","stop-color":"#808183"})],-1),e.createElementVNode("path",{d:"m65 307.2c-6.8 0-13.1 2.2-18.2 5.9v-24.8h-13.2v81.1h31.4c17.2 0 31.1-13.9 31.1-31.1s-13.9-31.1-31.1-31.1zm0 49.3h-18.2v-18.2c0-10.1 8.2-18.2 18.2-18.2 10.1 0 18.2 8.2 18.2 18.2.1 10.1-8.1 18.2-18.2 18.2z",fill:"url(#b)"},null,-1),e.createElementVNode("path",{d:"m168.8 343.9h-46.7c1.4 7.1 6.6 12 14.1 12.7 6.4.6 12.9.1 19.9.1v11.9c-15.2 4.9-33.3.5-42.1-10.4-3.8-4.7-17.3-34.7 11.5-47.4 39-11.4 45.3 22.4 43.3 33.1zm-14.2-12.7c-1.7-8.1-8.8-12.9-17.9-12.3-7.6.5-14 5.8-14.5 12.3z",fill:"url(#c)"},null,-1),e.createElementVNode("path",{d:"m195.5 320.2c0 10.5-.2 20 .1 29.6.2 5.8 4.4 8.4 13.2 8.6v10.5c-13.8 3.9-26.2-4.5-26.4-18-.2-18.7-.1-43.9-.1-62.6h14.1l-.3 18.5 12.7-.1v13.4h-13.3z",fill:"url(#d)"},null,-1),e.createElementVNode("path",{d:"m249.6 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#e)"},null,-1),e.createElementVNode("path",{d:"m296.4 288.3h13v79.6h-13z",fill:"url(#f)"},null,-1),e.createElementVNode("path",{d:"m354.1 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#g)"},null,-1),e.createElementVNode("path",{d:"m442.2 367.7c0-12.3.2-23.6 0-34.9-.2-3.4-3.6-13.8-14.1-13.4-10.3-.3-14.4 10-14.3 12.7.1 10.2.5 35.1.5 35.1l-13.6.1s-.3-25.7.2-36.2c.6-14.1 12.7-25 27.5-25 14.7 0 26.2 10.4 26.7 24.9.4 10.4.5 36.3.5 36.3z",fill:"url(#h)"},null,-1),e.createElementVNode("path",{d:"m501.9 307.2c6.8 0 13.1 2.2 18.2 5.9v-24.8h13.2v81.1h-31.4c-17.2 0-31.1-13.9-31.1-31.1s13.9-31.1 31.1-31.1zm0 49.3h18.2v-18.2c0-10.1-8.2-18.2-18.2-18.2-10.1 0-18.2 8.2-18.2 18.2 0 10.1 8.1 18.2 18.2 18.2z",fill:"url(#i)"},null,-1),e.createElementVNode("path",{d:"m309.2 180.6h-24v-24c0-12.6 10.2-24.1 22.8-25 14.8-1 27.1 11.3 26.1 26.1-.8 12.7-12.3 22.9-24.9 22.9zm-50.7-48.9c-14.8-1-27.1 11.3-26.1 26.1.8 12.6 12.4 22.8 25 22.8h23.9v-24c0-12.6-10.3-24.1-22.8-24.9zm50.7 51.9h-24v23.9c0 12.6 10.2 24.1 22.8 25 14.8 1 27.1-11.3 26.1-26.1-.8-12.6-12.3-22.8-24.9-22.8zm-52.4 0c-14 0-25.3 11.8-24.4 26 .8 12.2 10.7 22.1 22.9 22.9 14.2.9 26-10.4 26-24.4v-24.5z",fill:"url(#j)"},null,-1),e.createElementVNode("path",{d:"m281.7 183.8h3.6v18.5h-3.6z",fill:"url(#k)"},null,-1)])],8,Q))]),_:1})}}});var B=(t=>(t.DELETE="DELETE",t.SUCCESS="SUCCESS",t))(B||{});const J={class:"dialog relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white"},v={key:0,class:"p-6 text-center"},ee={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"},te={class:"flex justify-center"},re=e.defineComponent({__name:"BaseModal",props:{title:{type:String,required:!0},description:{type:String,required:!1},to:{type:String,required:!1,default:"/"},mode:{type:String,required:!1,default:"SUCCESS"}},emits:["closeModal","confirmModal"],setup(t){return(r,l)=>{const a=e.resolveComponent("base-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"outside",onClick:l[0]||(l[0]=o=>r.$emit("closeModal"))}),e.createElementVNode("div",J,[t.mode===e.unref(B).DELETE?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(g.ExclamationCircleIcon),{class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),e.createElementVNode("h3",ee," Are you sure you want to delete this "+e.toDisplayString(t.title)+"? ",1),e.createElementVNode("div",te,[e.createVNode(a,{color:e.unref(f).RED,onClick:l[1]||(l[1]=o=>r.$emit("confirmModal")),description:"Yes, I'm sure"},null,8,["color"]),e.createVNode(a,{color:e.unref(f).WHITE,onClick:l[2]||(l[2]=o=>r.$emit("closeModal")),description:"No, cancel"},null,8,["color"])])])):e.createCommentVNode("",!0)])],64)}}}),N=(t,r)=>{const l=t.__vccOpts||t;for(const[a,o]of r)l[a]=o;return l},oe=N(re,[["__scopeId","data-v-492169b3"]]),ne=e.defineComponent({__name:"BaseRow",props:{bgColor:{type:String,required:!1,default:"white"}},setup(t){const r=t;function l(){return"block p-8 border border-gray-200 rounded-xl shadow-sm dark:bg-gray-800 dark:border-gray-700 "+r.bgColor}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l())},[e.renderSlot(a.$slots,"default")],2))}}),ae={},le={class:"w-4 h-4 border-2 border-gray-200 border-t-blue-500 rounded-full animate-spin"};function se(t,r){return e.openBlock(),e.createElementBlock("div",le)}const ce=N(ae,[["render",se]]);var b=(t=>(t.SUCCESS="SUCCESS",t.WARNING="WARNING",t.ERROR="ERROR",t))(b||{}),x=(t=>(t.TOP_LEFT="TOP_LEFT",t.TOP_RIGHT="TOP_RIGHT",t.BOTTOM_LEFT="BOTTOM_LEFT",t.BOTTOM_RIGHT="BOTTOM_RIGHT",t))(x||{});const ie={class:"flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"},de={class:"ml-3 text-sm font-normal"},me={key:3,type:"button",class:"ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","data-dismiss-target":"#toast-danger","aria-label":"Close"},fe=e.defineComponent({__name:"BaseToast",props:{mode:{type:Object,required:!0},description:{type:String,required:!0},hasCloseIcon:{type:Boolean,required:!1,default:!0},positioning:{type:String,required:!1,default:"right"}},setup(t){const r=t;function l(){let c="";switch(r.mode){case b.ERROR:c="text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";break;case b.SUCCESS:c="text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";break;case b.WARNING:c="text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";break}return"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 rounded-lg "+c}function a(){let c="top-5 right-5";switch(r.positioning){case x.BOTTOM_LEFT:c="bottom-5";break;case x.TOP_LEFT:c="top-5";break;case x.TOP_RIGHT:c="top-5 right-5";break;case x.BOTTOM_RIGHT:c="bottom-5 right-5";break}return"fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg "+c+" space-x"}const o=e.ref(!0);function n(){setTimeout(()=>o.value=!1,1e6)}return n(),(c,m)=>o.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"toast-top-right",class:e.normalizeClass(a()),role:"alert"},[e.createElementVNode("div",ie,[t.mode==e.unref(b).ERROR?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l())},[e.createVNode(e.unref(g.ExclamationCircleIcon),{class:"h-6 w-6 text-red-500"}),m[1]||(m[1]=e.createElementVNode("span",{class:"sr-only"},"Error icon",-1))],2)):t.mode==e.unref(b).SUCCESS?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l())},[e.createVNode(e.unref(g.CheckCircleIcon),{class:"h-6 w-6 text-green-500"}),m[2]||(m[2]=e.createElementVNode("span",{class:"sr-only"},"Check icon",-1))],2)):t.mode==e.unref(b).WARNING?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l())},[e.createVNode(e.unref(g.ExclamationTriangleIcon),{class:"h-6 w-6 text-yellow-500"}),m[3]||(m[3]=e.createElementVNode("span",{class:"sr-only"},"Warning icon",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",de,e.toDisplayString(t.description),1),t.hasCloseIcon?(e.openBlock(),e.createElementBlock("button",me,[m[4]||(m[4]=e.createElementVNode("span",{class:"sr-only"},"Close",-1)),e.createVNode(e.unref(g.XMarkIcon),{class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:m[0]||(m[0]=i=>o.value=!o.value)})])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)}}),pe={class:"w-13"},ge=e.defineComponent({__name:"ColoredSquares",props:{color:{type:String,required:!1}},setup(t){const r=t,l=["bg-slate-300","bg-zinc-300","bg-neutral-300","bg-stone-300","bg-blue-300","bg-green-300","bg-yellow-300","bg-purple-300","bg-pink-300"],a=e.computed(()=>l[Math.floor(Math.random()*l.length)]);function o(){let n="gray";switch(r.color){case d.GREEN:{n="green";break}case d.RED:{n="red";break}case d.BLUE:{n="blue";break}case d.YELLOW:{n="yellow";break}case d.NONE:{n="";break}}return"font-bold bg-"+n+"-100 text-"+n+"-800 text-xs mr-2 px-2.5 py-0.5 rounded-full"}return(n,c)=>(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",{class:e.normalizeClass(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center",o()])},[e.renderSlot(n.$slots,"default"),e.createElementVNode("div",{class:e.normalizeClass(["absolute bottom-0 left-0 h-1 w-full",a.value])},null,2)],2)]))}}),ye={key:0,class:"font-bold text-green-800"},be={key:0},he={key:0},ke="font-bold",ue=e.defineComponent({__name:"EuroAmount",props:{amount:{type:Number,required:!1},beforeAmount:{type:Number,default:null,required:!1},showCurrency:{type:Boolean,default:!0,required:!1}},setup(t){const r=t,l=e.computed(()=>r.amount!==null&&r.amount!==void 0),a=e.computed(()=>l.value&&r.amount<0),o=e.computed(()=>r.beforeAmount===null||r.beforeAmount===void 0?!1:r.amount<r.beforeAmount),n=e.computed(()=>a.value||o.value),c=e.computed(()=>!a.value&&!o.value&&!(r.beforeAmount===null||r.beforeAmount===void 0));return(m,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.value&&c.value?(e.openBlock(),e.createElementBlock("span",ye,[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",be,"€")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value&&!c.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([ke,n.value?"text-red-800":"text-gray-800"])},[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",he,"€")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))}}),Ee=["onClick"],xe={key:1,style:{cursor:"not-allowed"}},Ce=N(e.defineComponent({__name:"Pagination",props:{totalItems:{type:Number,required:!0,default:10},itemsPerPage:{type:Number,default:20}},emits:["page-changed"],setup(t,{emit:r}){const l=t,a=e.ref(1),o=e.ref(0),n=e.ref([]),c=r;function m(i){if(i!==a.value&&i>=1&&i<=o.value&&(a.value=i),o.value>5){n.value=[],i-3>0&&(n.value.push(1),n.value.push(0));for(let p=2;p>=1;p--){let R=i-p;R>0&&n.value.push(R)}n.value.push(a.value);let y=o.value-i,_=y>2,Re=2;if(_){for(let p=1;p<=Re;p++)n.value.push(i+p);n.value.push(0),n.value.push(o.value)}else for(let p=1;p<=y;p++)n.value.push(i+p)}c("page-changed",i)}return e.watch(()=>l.totalItems,()=>{if(o.value=Math.ceil(l.totalItems/l.itemsPerPage),n.value=[],o.value>5){for(let i=1;i<5;i++)n.value.push(i);n.value.push(0),n.value.push(o.value)}else for(let i=1;i<=o.value;i++)n.value.push(i)}),(i,_e)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,y=>(e.openBlock(),e.createElementBlock("li",{key:y},[y!==0?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:_=>m(y),class:e.normalizeClass({active:y===a.value})},e.toDisplayString(y),11,Ee)):e.createCommentVNode("",!0),y===0?(e.openBlock(),e.createElementBlock("span",xe,"...")):e.createCommentVNode("",!0)]))),128))])]))}}),[["__scopeId","data-v-248e09af"]]),Be={key:0},Ne={key:0,class:"flex items-center space-x-2"},Se={key:1,class:"flex items-center space-x-2"},we=e.defineComponent({__name:"TrendArrow",props:{number:{type:Number,required:!1},icon:{type:String,required:!1}},setup(t){const r=t,l=e.computed(()=>r.number!==null&&r.number!==void 0&&r.number<0);return(a,o)=>t.number?(e.openBlock(),e.createElementBlock("div",Be,[l.value?(e.openBlock(),e.createElementBlock("span",Ne,[e.createVNode(C,{color:e.unref(d).RED},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(g.ArrowDownIcon),{class:"h-5 w-5 text-red-500"})])):(e.openBlock(),e.createElementBlock("span",Se,[e.createVNode(C,{color:e.unref(d).GREEN},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(g.ArrowUpIcon),{class:"h-5 w-5 text-green-500"})]))])):e.createCommentVNode("",!0)}});var w=(t=>(t.WIN="WIN",t.LOSE="LOSE",t))(w||{});s.AlertEnum=h,s.BaseAlert=O,s.BaseBadge=C,s.BaseBadgeEnum=w,s.BaseBreadcrumb=G,s.BaseButton=F,s.BaseButtonEnum=f,s.BaseButtonSizeEnum=k,s.BaseLine=K,s.BaseLoginEnum=E,s.BaseLogo=Z,s.BaseModal=oe,s.BaseModalEnum=B,s.BaseRow=ne,s.BaseSpinner=ce,s.BaseToast=fe,s.BaseToastEnum=b,s.ColoredSquares=ge,s.ColorsEnums=d,s.EuroAmount=ue,s.LineEnum=u,s.Pagination=Ce,s.PositioningEnum=x,s.TrendArrow=we,s.getBaseColor=S,s.getBaseColorOf=L,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span v-if="hasDefaultSlot" :class="
|
|
2
|
+
<span v-if="hasDefaultSlot" :class="badgeClasses">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</span>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script lang="ts" setup>
|
|
8
8
|
import { computed, useSlots } from 'vue'
|
|
9
|
-
import {
|
|
10
|
-
const slots = useSlots()
|
|
9
|
+
import { ColorsEnums } from "../enums/ColorsEnums";
|
|
11
10
|
|
|
11
|
+
const slots = useSlots()
|
|
12
12
|
const hasDefaultSlot = computed(() => !!slots.default)
|
|
13
|
+
|
|
13
14
|
const props = defineProps({
|
|
14
15
|
color: {
|
|
15
16
|
type: String,
|
|
@@ -17,8 +18,19 @@ const props = defineProps({
|
|
|
17
18
|
}
|
|
18
19
|
})
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const colorMap: Record<string, string> = {
|
|
22
|
+
[ColorsEnums.RED]: 'bg-red-100 text-red-700 border-red-200',
|
|
23
|
+
[ColorsEnums.GREEN]: 'bg-green-100 text-green-700 border-green-200',
|
|
24
|
+
[ColorsEnums.BLUE]: 'bg-blue-100 text-blue-700 border-blue-200',
|
|
25
|
+
[ColorsEnums.YELLOW]: 'bg-yellow-100 text-yellow-700 border-yellow-200',
|
|
26
|
+
[ColorsEnums.GRAY]: 'bg-gray-100 text-gray-700 border-gray-200',
|
|
27
|
+
[ColorsEnums.NONE]: 'bg-gray-50 text-gray-600 border-gray-200',
|
|
23
28
|
}
|
|
29
|
+
|
|
30
|
+
const defaultColor = 'bg-red-100 text-red-700 border-red-200'
|
|
31
|
+
|
|
32
|
+
const badgeClasses = computed(() => {
|
|
33
|
+
const colorClasses = (props.color && colorMap[props.color]) || defaultColor
|
|
34
|
+
return `inline-flex items-center gap-1 font-semibold text-xs leading-none px-3 py-1.5 rounded-full border ${colorClasses}`
|
|
35
|
+
})
|
|
24
36
|
</script>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<nav class="flex px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 dark:bg-gray-800 dark:border-gray-700" aria-label="Breadcrumb">
|
|
3
|
+
<ol class="inline-flex items-center space-x-1 md:space-x-3">
|
|
4
|
+
|
|
5
|
+
<li class="inline-flex items-center" style="margin-left: 0;">
|
|
6
|
+
<router-link to="/" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white">
|
|
7
|
+
<HomeIcon class="h-4 w-4 text-gray-500 mr-2" />
|
|
8
|
+
Home
|
|
9
|
+
</router-link>
|
|
10
|
+
</li>
|
|
11
|
+
|
|
12
|
+
<li v-for="(crumb, index) in crumbs" :key="index" class="inline-flex items-center" style="margin-left: 0;">
|
|
13
|
+
<ChevronRightIcon class="h-4 w-4 text-gray-500" />
|
|
14
|
+
<router-link :to="crumb.url" class="ml-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ml-2 dark:text-gray-400 dark:hover:text-white">
|
|
15
|
+
{{ crumb.name }}
|
|
16
|
+
</router-link>
|
|
17
|
+
</li>
|
|
18
|
+
|
|
19
|
+
</ol>
|
|
20
|
+
</nav>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script lang="ts" setup>
|
|
24
|
+
import { computed } from 'vue'
|
|
25
|
+
import { HomeIcon } from '@heroicons/vue/24/solid'
|
|
26
|
+
import { ChevronRightIcon } from '@heroicons/vue/24/outline'
|
|
27
|
+
|
|
28
|
+
export interface BreadCrumb {
|
|
29
|
+
name: string
|
|
30
|
+
url: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const props = defineProps({
|
|
34
|
+
items: {
|
|
35
|
+
type: Array as () => BreadCrumb[],
|
|
36
|
+
required: false,
|
|
37
|
+
default: undefined
|
|
38
|
+
},
|
|
39
|
+
path: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false,
|
|
42
|
+
default: undefined
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
const crumbs = computed<BreadCrumb[]>(() => {
|
|
47
|
+
// If explicit items are provided, use them directly
|
|
48
|
+
if (props.items && props.items.length > 0) {
|
|
49
|
+
return props.items
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Otherwise, auto-generate from the path prop (or current URL)
|
|
53
|
+
const pathname = props.path ?? (typeof window !== 'undefined' ? window.location.pathname : '/')
|
|
54
|
+
const segments = pathname.split('/').filter(s => s !== '')
|
|
55
|
+
|
|
56
|
+
let accumulated = ''
|
|
57
|
+
return segments.map(segment => {
|
|
58
|
+
accumulated += '/' + segment
|
|
59
|
+
|
|
60
|
+
const name = !Number(segment)
|
|
61
|
+
? (segment.charAt(0).toUpperCase() + segment.slice(1)).replaceAll('-', ' ')
|
|
62
|
+
: segment
|
|
63
|
+
|
|
64
|
+
return { name, url: accumulated }
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
</script>
|
|
@@ -14,6 +14,6 @@ const props = defineProps({
|
|
|
14
14
|
})
|
|
15
15
|
|
|
16
16
|
function computeCss() {
|
|
17
|
-
return 'block p-
|
|
17
|
+
return 'block p-8 border border-gray-200 rounded-xl shadow-sm dark:bg-gray-800 dark:border-gray-700 ' + props.bgColor;
|
|
18
18
|
}
|
|
19
19
|
</script>
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Components
|
|
2
2
|
export { default as BaseAlert } from './components/BaseAlert.vue'
|
|
3
3
|
export { default as BaseBadge } from './components/BaseBadge.vue'
|
|
4
|
+
export { default as BaseBreadcrumb } from './components/BaseBreadcrumb.vue'
|
|
4
5
|
export { default as BaseButton } from './components/BaseButton.vue'
|
|
5
6
|
export { default as BaseLine } from './components/BaseLine.vue'
|
|
6
7
|
export { default as BaseLogo } from './components/BaseLogo.vue'
|
|
@@ -25,5 +26,8 @@ export { ColorsEnums } from './enums/ColorsEnums'
|
|
|
25
26
|
export { LineEnum } from './enums/LineEnum'
|
|
26
27
|
export { PositioningEnum } from './enums/PositioningEnum'
|
|
27
28
|
|
|
29
|
+
// Types
|
|
30
|
+
export type { BreadCrumb } from './components/BaseBreadcrumb.vue'
|
|
31
|
+
|
|
28
32
|
// Utils
|
|
29
33
|
export { getBaseColor, getBaseColorOf } from './utils/util'
|