@validol4ik/uikit 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- .app-btn[data-v-0d548105] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_md[data-v-0d548105]{font-size:14px;border-radius:8px}.app-btn_md[data-v-0d548105] .q-btn__content{line-height:22px}.app-btn_md[data-v-0d548105] .icon-kl{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-0d548105]{padding-left:9px!important}.app-btn_md.app-btn_icon-left[data-v-0d548105] .icon-kl{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-0d548105]{padding-right:9px!important}.app-btn_md.app-btn_icon-right[data-v-0d548105] .icon-kl{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-0d548105]{padding:6px!important}.app-btn_lg[data-v-0d548105]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-0d548105] .q-btn__content{line-height:26px}.app-btn_lg[data-v-0d548105] .icon-kl{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-0d548105]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left[data-v-0d548105] .icon-kl{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-0d548105]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right[data-v-0d548105] .icon-kl{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-0d548105]{padding:11px!important}.app-btn_default.app-btn_primary[data-v-0d548105]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-0d548105]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-0d548105]{background-color:#ff4757;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-0d548105]{background-color:#1a5cff26;color:#1a5cff}.app-btn_trans.app-btn_info[data-v-0d548105]{background-color:#3993;color:#2e757c}.app-btn_trans.app-btn_negative[data-v-0d548105]{background-color:#ff475733;color:#ff4757}.app-btn_rounded[data-v-0d548105]{border-radius:50px}.icon-kl[data-v-73419357]{font-size:24px}
1
+ .app-btn[data-v-44701e49] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_md[data-v-44701e49]{font-size:14px;border-radius:8px}.app-btn_md[data-v-44701e49] .q-btn__content{line-height:22px}.app-btn_md[data-v-44701e49] .icon-kl{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-44701e49]{padding-left:9px!important}.app-btn_md.app-btn_icon-left[data-v-44701e49] .icon-kl{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-44701e49]{padding-right:9px!important}.app-btn_md.app-btn_icon-right[data-v-44701e49] .icon-kl{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-44701e49]{padding:6px!important}.app-btn_lg[data-v-44701e49]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-44701e49] .q-btn__content{line-height:26px}.app-btn_lg[data-v-44701e49] .icon-kl{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-44701e49]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left[data-v-44701e49] .icon-kl{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-44701e49]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right[data-v-44701e49] .icon-kl{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-44701e49]{padding:11px!important}.app-btn_default.app-btn_primary[data-v-44701e49]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-44701e49]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-44701e49]{background-color:#ff4757;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-44701e49]{background-color:#1a5cff26;color:#1a5cff}.app-btn_trans.app-btn_info[data-v-44701e49]{background-color:#3993;color:#2e757c}.app-btn_trans.app-btn_negative[data-v-44701e49]{background-color:#ff475733;color:#ff4757}.app-btn_rounded[data-v-44701e49]{border-radius:50px}.icon-kl[data-v-73419357]{font-size:24px}
package/dist/uikit.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),D={MD:"md",LG:"lg"};var ne=(e=>(e.md="5px 12px",e.lg="9px 20px",e))(ne||{});const de={PRIMARY:"primary",INFO:"info",NEGATIVE:"negative"},V={xs:18,sm:24,md:32,lg:38,xl:46},ae={size:String};function re(e,t=V){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return n.markRaw(n.defineComponent(e))}function fe(e){return n.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function A(e,t){return e!==void 0?t.concat(e()):t}const U="0 0 24 24",Y=e=>e,N=e=>`ionicons ${e}`,oe={"mdi-":e=>`mdi ${e}`,"icon-":Y,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":N,"ion-ios":N,"ion-logo":N,"iconfont ":Y,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ie={o_:"-outlined",r_:"-round",s_:"-sharp"},ue={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(oe).join("|")+")"),ge=new RegExp("^("+Object.keys(ie).join("|")+")"),G=new RegExp("^("+Object.keys(ue).join("|")+")"),pe=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=Q({name:"QIcon",props:{...ae,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:r}}=n.getCurrentInstance(),a=re(e),i=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),f=n.computed(()=>{let c,u=e.name;if(u==="none"||!u)return{none:!0};if(r.iconMapFn!==null){const s=r.iconMapFn(u);if(s!==void 0)if(s.icon!==void 0){if(u=s.icon,u==="none"||!u)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(pe.test(u)===!0){const[s,h=U]=u.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(l=>{const[b,g,y]=l.split("@@");return n.h("path",{style:g,d:b,transform:y})})}}if(he.test(u)===!0)return{img:!0,src:u.substring(4)};if(be.test(u)===!0){const[s,h=U]=u.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let _=" ";const p=u.match(me);if(p!==null)c=oe[p[1]](u);else if(ke.test(u)===!0)c=u;else if(ye.test(u)===!0)c=`ionicons ion-${r.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(G.test(u)===!0){c="notranslate material-symbols";const s=u.match(G);s!==null&&(u=u.substring(6),c+=ue[s[1]]),_=u}else{c="notranslate material-icons";const s=u.match(ge);s!==null&&(u=u.substring(2),c+=ie[s[1]]),_=u}return{cls:c,content:_}});return()=>{const c={class:i.value,style:a.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?n.h(e.tag,c,ve(t.default)):f.value.img===!0?n.h(e.tag,c,A(t.default,[n.h("img",{src:f.value.src})])):f.value.svg===!0?n.h(e.tag,c,A(t.default,[n.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?n.h(e.tag,c,A(t.default,[n.h("svg",{viewBox:f.value.viewBox},[n.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(c.class+=" "+f.value.cls),n.h(e.tag,c,A(t.default,[f.value.content])))}}}),_e={size:{type:[String,Number],default:"1em"},color:String};function qe(e){return{cSize:n.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const $e=Q({name:"QSpinner",props:{..._e,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:r}=qe(e);return()=>n.h("svg",{class:r.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ee(e,t){const r=e.style;for(const a in t)r[a]=t[a]}const K={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(K,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function xe(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function le(e){e.stopPropagation()}function Ce(e){e.cancelable!==!1&&e.preventDefault()}function R(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Se(e,t,r){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(r):r,r.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],K[i[3]])})}function we(e,t){const r=`__q_${t}_evt`;e[r]!==void 0&&(e[r].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],K[a[3]])}),e[r]=void 0)}function Be(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return Be(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Le(e,t=250){let r=!1,a;return function(){return r===!1&&(r=!0,setTimeout(()=>{r=!1},t),a=e.apply(this,arguments)),a}}function W(e,t,r,a){r.modifiers.stop===!0&&le(e);const i=r.modifiers.color;let f=r.modifiers.center;f=f===!0||a===!0;const c=document.createElement("span"),u=document.createElement("span"),_=xe(e),{left:p,top:s,width:h,height:l}=t.getBoundingClientRect(),b=Math.sqrt(h*h+l*l),g=b/2,y=`${(h-b)/2}px`,d=f?y:`${_.left-p-g}px`,k=`${(l-b)/2}px`,L=f?k:`${_.top-s-g}px`;u.className="q-ripple__inner",Ee(u,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${d},${L},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${i?" text-"+i:""}`,c.setAttribute("dir","ltr"),c.appendChild(u),t.appendChild(c);const w=()=>{c.remove(),clearTimeout(B)};r.abort.push(w);let B=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,u.style.opacity=.2,B=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,B=setTimeout(()=>{c.remove(),r.abort.splice(r.abort.indexOf(w),1)},275)},250)},50)}function X(e,{modifiers:t,value:r,arg:a}){const i=Object.assign({},e.cfg.ripple,t,r);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||a,keyCodes:[].concat(i.keyCodes||13)}}const Re=fe({name:"ripple",beforeMount(e,t){const r=t.instance.$.appContext.config.globalProperties.$q.config||{};if(r.ripple===!1)return;const a={cfg:r,enabled:t.value!==!1,modifiers:{},abort:[],start(i){a.enabled===!0&&i.qSkipRipple!==!0&&i.type===(a.modifiers.early===!0?"pointerdown":"click")&&W(i,e,a,i.qKeyEvent===!0)},keystart:Le(i=>{a.enabled===!0&&i.qSkipRipple!==!0&&F(i,a.modifiers.keyCodes)===!0&&i.type===`key${a.modifiers.early===!0?"down":"up"}`&&W(i,e,a,!0)},300)};X(a,t),e.__qripple=a,Se(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const r=e.__qripple;r!==void 0&&(r.enabled=t.value!==!1,r.enabled===!0&&Object(t.value)===t.value&&X(r,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(r=>{r()}),we(t,"main"),delete e._qripple)}}),se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(se),Te={align:{type:String,validator:e=>Pe.includes(e)}};function Oe(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${se[t]}`})}function Me(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){for(const r in t){const a=t[r],i=e[r];if(typeof a=="string"){if(a!==i)return!1}else if(Array.isArray(i)===!1||i.length!==a.length||a.some((f,c)=>f!==i[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((r,a)=>r===t[a]):e.length===1&&e[0]===t}function Ae(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(Ae(e[r],t[r])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function De({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const r=n.getCurrentInstance(),{props:a,proxy:i,emit:f}=r,c=Me(r),u=n.computed(()=>a.disable!==!0&&a.href!==void 0),_=t===!0?n.computed(()=>c===!0&&a.disable!==!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):n.computed(()=>c===!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),p=n.computed(()=>_.value===!0?L(a.to):null),s=n.computed(()=>p.value!==null),h=n.computed(()=>u.value===!0||s.value===!0),l=n.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),b=n.computed(()=>u.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:p.value.href,target:a.target}:{}),g=n.computed(()=>{if(s.value===!1)return-1;const{matched:v}=p.value,{length:q}=v,E=v[q-1];if(E===void 0)return-1;const C=i.$route.matched;if(C.length===0)return-1;const S=C.findIndex(J.bind(null,E));if(S!==-1)return S;const j=Z(v[q-2]);return q>1&&Z(E)===j&&C[C.length-1].path!==j?C.findIndex(J.bind(null,v[q-2])):S}),y=n.computed(()=>s.value===!0&&g.value!==-1&&ze(i.$route.params,p.value.params)),d=n.computed(()=>y.value===!0&&g.value===i.$route.matched.length-1&&je(i.$route.params,p.value.params)),k=n.computed(()=>s.value===!0?d.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":y.value===!0?` ${a.activeClass}`:"":"");function L(v){try{return i.$router.resolve(v)}catch{}return null}function w(v,{returnRouterError:q,to:E=a.to,replace:C=a.replace}={}){if(a.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||a.target==="_blank")return Promise.resolve(!1);v.preventDefault();const S=i.$router[C===!0?"replace":"push"](E);return q===!0?S:S.then(()=>{}).catch(()=>{})}function B(v){if(s.value===!0){const q=E=>w(v,E);f("click",v,q),v.defaultPrevented!==!0&&q()}else f("click",v)}return{hasRouterLink:s,hasHrefLink:u,hasLink:h,linkTag:l,resolvedLink:p,linkIsActive:y,linkIsExactActive:d,linkClass:k,linkAttrs:b,getLink:L,navigateToRouterLink:w,navigateOnClick:B}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ke={xs:8,sm:10,md:14,lg:20,xl:24},Ne=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ue={...ae,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Te.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function Ge(e){const t=re(e,Ke),r=Oe(e),{hasRouterLink:a,hasLink:i,linkTag:f,linkAttrs:c,navigateOnClick:u}=De({fallbackTag:"button"}),_=n.computed(()=>{const d=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},d,{padding:e.padding.split(/\s+/).map(k=>k in te?te[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):d}),p=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>s.value===!0?e.tabindex||0:-1),l=n.computed(()=>Qe(e,"standard")),b=n.computed(()=>{const d={tabindex:h.value};return i.value===!0?Object.assign(d,c.value):Ne.includes(e.type)===!0&&(d.type=e.type),f.value==="a"?(e.disable===!0?d["aria-disabled"]="true":d.href===void 0&&(d.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(d.type=e.type)):e.disable===!0&&(d.disabled="",d["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(d,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),d}),g=n.computed(()=>{let d;e.color!==void 0?e.flat===!0||e.outline===!0?d=`text-${e.textColor||e.color}`:d=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(d=`text-${e.textColor}`);const k=e.round===!0?"round":`rectangle${p.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${l.value} q-btn--${k}`+(d!==void 0?" "+d:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),y=n.computed(()=>r.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:g,style:_,innerClasses:y,attributes:b,hasLink:i,linkTag:f,navigateOnClick:u,isActionable:s}}const{passiveCapture:$}=K;let P=null,T=null,O=null;const He=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:r}){const{proxy:a}=n.getCurrentInstance(),{classes:i,style:f,innerClasses:c,attributes:u,hasLink:_,linkTag:p,navigateOnClick:s,isActionable:h}=Ge(e),l=n.ref(null),b=n.ref(null);let g=null,y,d=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),L=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:_.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),w=n.computed(()=>({center:e.round})),B=n.computed(()=>{const o=Math.max(0,Math.min(100,e.percentage));return o>0?{transition:"transform 0.6s",transform:`translateX(${o-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(h.value===!0){const o={onClick:E,onKeydown:C,onMousedown:j};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";o[`onTouchstart${m}`]=S}return o}return{onClick:R}}),q=n.computed(()=>({ref:l,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:f.value,...u.value,...v.value}));function E(o){if(l.value!==null){if(o!==void 0){if(o.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&l.value.contains(m)===!1&&m.contains(l.value)===!1){l.value.focus();const I=()=>{document.removeEventListener("keydown",R,!0),document.removeEventListener("keyup",I,$),l.value!==null&&l.value.removeEventListener("blur",I,$)};document.addEventListener("keydown",R,!0),document.addEventListener("keyup",I,$),l.value.addEventListener("blur",I,$)}}s(o)}}function C(o){l.value!==null&&(r("keydown",o),F(o,[13,32])===!0&&T!==l.value&&(T!==null&&M(),o.defaultPrevented!==!0&&(l.value.focus(),T=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("keyup",x,!0),l.value.addEventListener("blur",x,$)),R(o)))}function S(o){l.value!==null&&(r("touchstart",o),o.defaultPrevented!==!0&&(P!==l.value&&(P!==null&&M(),P=l.value,g=o.target,g.addEventListener("touchcancel",x,$),g.addEventListener("touchend",x,$)),y=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,y=!1},200)))}function j(o){l.value!==null&&(o.qSkipRipple=y===!0,r("mousedown",o),o.defaultPrevented!==!0&&O!==l.value&&(O!==null&&M(),O=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("mouseup",x,$)))}function x(o){if(l.value!==null&&!(o!==void 0&&o.type==="blur"&&document.activeElement===l.value)){if(o!==void 0&&o.type==="keyup"){if(T===l.value&&F(o,[13,32])===!0){const m=new MouseEvent("click",o);m.qKeyEvent=!0,o.defaultPrevented===!0&&Ce(m),o.cancelBubble===!0&&le(m),l.value.dispatchEvent(m),R(o),o.qKeyEvent=!0}r("keyup",o)}M()}}function M(o){const m=b.value;o!==!0&&(P===l.value||O===l.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),P===l.value&&(g!==null&&(g.removeEventListener("touchcancel",x,$),g.removeEventListener("touchend",x,$)),P=g=null),O===l.value&&(document.removeEventListener("mouseup",x,$),O=null),T===l.value&&(document.removeEventListener("keyup",x,!0),l.value!==null&&l.value.removeEventListener("blur",x,$),T=null),l.value!==null&&l.value.classList.remove("q-btn--active")}function z(o){R(o),o.qSkipRipple=!0}return n.onBeforeUnmount(()=>{M(!0)}),Object.assign(a,{click:o=>{h.value===!0&&E(o)}}),()=>{let o=[];e.icon!==void 0&&o.push(n.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img","aria-hidden":"true"})),k.value===!0&&o.push(n.h("span",{class:"block"},[e.label])),o=A(t.default,o),e.iconRight!==void 0&&e.round===!1&&o.push(n.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img","aria-hidden":"true"}));const m=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:B.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},o)),e.loading!==null&&m.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h($e)])]:null)),n.withDirectives(n.h(p.value,q.value,m),[[Re,L.value,void 0,w.value]])}}}),We=n.defineComponent({__name:"index",props:{size:{default:D.MD},transparent:{type:Boolean},rounded:{type:Boolean},color:{default:de.PRIMARY},iconPosition:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,r=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent,"app-btn_trans":t.transparent,"app-btn_rounded":t.rounded,"app-btn_md":t.size===D.MD,"app-btn_lg":t.size===D.LG,"app-btn_icon-left":t.iconPosition==="left","app-btn_icon-right":t.iconPosition==="right","app-btn_icon-middle":t.iconPosition==="middle"},`app-btn_${t.color}`]);return(a,i)=>(n.openBlock(),n.createBlock(n.unref(He),{"no-caps":"",unelevated:"",class:n.normalizeClass(r.value),padding:n.unref(ne)[t.size||n.unref(D).MD],loading:a.loading,disabled:a.disabled||void 0,to:a.to,href:a.href,target:a.target,type:a.submit?"submit":void 0,"aria-label":a.ariaLabel,onClick:i[0]||(i[0]=f=>a.$emit("click"))},{default:n.withCtx(()=>[n.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),ce=(e,t)=>{const r=e.__vccOpts||e;for(const[a,i]of t)r[a]=i;return r},Xe=ce(We,[["__scopeId","data-v-0d548105"]]),Ze=n.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:n.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),Je=ce(Ze,[["__scopeId","data-v-73419357"]]);exports.AppButton=Xe;exports.AppIcon=Je;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),D={MD:"md",LG:"lg"};var ne=(e=>(e.md="5px 12px",e.lg="9px 20px",e))(ne||{});const de={PRIMARY:"primary",INFO:"info",NEGATIVE:"negative"},V={xs:18,sm:24,md:32,lg:38,xl:46},ae={size:String};function re(e,t=V){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return n.markRaw(n.defineComponent(e))}function fe(e){return n.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function A(e,t){return e!==void 0?t.concat(e()):t}const U="0 0 24 24",Y=e=>e,N=e=>`ionicons ${e}`,oe={"mdi-":e=>`mdi ${e}`,"icon-":Y,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":N,"ion-ios":N,"ion-logo":N,"iconfont ":Y,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ie={o_:"-outlined",r_:"-round",s_:"-sharp"},ue={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(oe).join("|")+")"),ge=new RegExp("^("+Object.keys(ie).join("|")+")"),G=new RegExp("^("+Object.keys(ue).join("|")+")"),pe=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=Q({name:"QIcon",props:{...ae,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:r}}=n.getCurrentInstance(),a=re(e),i=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=n.computed(()=>{let c,u=e.name;if(u==="none"||!u)return{none:!0};if(r.iconMapFn!==null){const s=r.iconMapFn(u);if(s!==void 0)if(s.icon!==void 0){if(u=s.icon,u==="none"||!u)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(pe.test(u)===!0){const[s,h=U]=u.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(l=>{const[b,g,y]=l.split("@@");return n.h("path",{style:g,d:b,transform:y})})}}if(he.test(u)===!0)return{img:!0,src:u.substring(4)};if(be.test(u)===!0){const[s,h=U]=u.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let _=" ";const p=u.match(me);if(p!==null)c=oe[p[1]](u);else if(ke.test(u)===!0)c=u;else if(ye.test(u)===!0)c=`ionicons ion-${r.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(G.test(u)===!0){c="notranslate material-symbols";const s=u.match(G);s!==null&&(u=u.substring(6),c+=ue[s[1]]),_=u}else{c="notranslate material-icons";const s=u.match(ge);s!==null&&(u=u.substring(2),c+=ie[s[1]]),_=u}return{cls:c,content:_}});return()=>{const c={class:i.value,style:a.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?n.h(e.tag,c,ve(t.default)):d.value.img===!0?n.h(e.tag,c,A(t.default,[n.h("img",{src:d.value.src})])):d.value.svg===!0?n.h(e.tag,c,A(t.default,[n.h("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?n.h(e.tag,c,A(t.default,[n.h("svg",{viewBox:d.value.viewBox},[n.h("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(c.class+=" "+d.value.cls),n.h(e.tag,c,A(t.default,[d.value.content])))}}}),_e={size:{type:[String,Number],default:"1em"},color:String};function qe(e){return{cSize:n.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const $e=Q({name:"QSpinner",props:{..._e,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:r}=qe(e);return()=>n.h("svg",{class:r.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ee(e,t){const r=e.style;for(const a in t)r[a]=t[a]}const K={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(K,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function xe(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function le(e){e.stopPropagation()}function Ce(e){e.cancelable!==!1&&e.preventDefault()}function R(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Se(e,t,r){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(r):r,r.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],K[i[3]])})}function we(e,t){const r=`__q_${t}_evt`;e[r]!==void 0&&(e[r].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],K[a[3]])}),e[r]=void 0)}function Be(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return Be(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Le(e,t=250){let r=!1,a;return function(){return r===!1&&(r=!0,setTimeout(()=>{r=!1},t),a=e.apply(this,arguments)),a}}function W(e,t,r,a){r.modifiers.stop===!0&&le(e);const i=r.modifiers.color;let d=r.modifiers.center;d=d===!0||a===!0;const c=document.createElement("span"),u=document.createElement("span"),_=xe(e),{left:p,top:s,width:h,height:l}=t.getBoundingClientRect(),b=Math.sqrt(h*h+l*l),g=b/2,y=`${(h-b)/2}px`,f=d?y:`${_.left-p-g}px`,k=`${(l-b)/2}px`,L=d?k:`${_.top-s-g}px`;u.className="q-ripple__inner",Ee(u,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${L},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${i?" text-"+i:""}`,c.setAttribute("dir","ltr"),c.appendChild(u),t.appendChild(c);const w=()=>{c.remove(),clearTimeout(B)};r.abort.push(w);let B=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,u.style.opacity=.2,B=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,B=setTimeout(()=>{c.remove(),r.abort.splice(r.abort.indexOf(w),1)},275)},250)},50)}function X(e,{modifiers:t,value:r,arg:a}){const i=Object.assign({},e.cfg.ripple,t,r);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||a,keyCodes:[].concat(i.keyCodes||13)}}const Re=fe({name:"ripple",beforeMount(e,t){const r=t.instance.$.appContext.config.globalProperties.$q.config||{};if(r.ripple===!1)return;const a={cfg:r,enabled:t.value!==!1,modifiers:{},abort:[],start(i){a.enabled===!0&&i.qSkipRipple!==!0&&i.type===(a.modifiers.early===!0?"pointerdown":"click")&&W(i,e,a,i.qKeyEvent===!0)},keystart:Le(i=>{a.enabled===!0&&i.qSkipRipple!==!0&&F(i,a.modifiers.keyCodes)===!0&&i.type===`key${a.modifiers.early===!0?"down":"up"}`&&W(i,e,a,!0)},300)};X(a,t),e.__qripple=a,Se(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const r=e.__qripple;r!==void 0&&(r.enabled=t.value!==!1,r.enabled===!0&&Object(t.value)===t.value&&X(r,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(r=>{r()}),we(t,"main"),delete e._qripple)}}),se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(se),Te={align:{type:String,validator:e=>Pe.includes(e)}};function Oe(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${se[t]}`})}function Me(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){for(const r in t){const a=t[r],i=e[r];if(typeof a=="string"){if(a!==i)return!1}else if(Array.isArray(i)===!1||i.length!==a.length||a.some((d,c)=>d!==i[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((r,a)=>r===t[a]):e.length===1&&e[0]===t}function Ae(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(Ae(e[r],t[r])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function De({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const r=n.getCurrentInstance(),{props:a,proxy:i,emit:d}=r,c=Me(r),u=n.computed(()=>a.disable!==!0&&a.href!==void 0),_=t===!0?n.computed(()=>c===!0&&a.disable!==!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):n.computed(()=>c===!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),p=n.computed(()=>_.value===!0?L(a.to):null),s=n.computed(()=>p.value!==null),h=n.computed(()=>u.value===!0||s.value===!0),l=n.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),b=n.computed(()=>u.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:p.value.href,target:a.target}:{}),g=n.computed(()=>{if(s.value===!1)return-1;const{matched:v}=p.value,{length:q}=v,E=v[q-1];if(E===void 0)return-1;const C=i.$route.matched;if(C.length===0)return-1;const S=C.findIndex(J.bind(null,E));if(S!==-1)return S;const j=Z(v[q-2]);return q>1&&Z(E)===j&&C[C.length-1].path!==j?C.findIndex(J.bind(null,v[q-2])):S}),y=n.computed(()=>s.value===!0&&g.value!==-1&&ze(i.$route.params,p.value.params)),f=n.computed(()=>y.value===!0&&g.value===i.$route.matched.length-1&&je(i.$route.params,p.value.params)),k=n.computed(()=>s.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":y.value===!0?` ${a.activeClass}`:"":"");function L(v){try{return i.$router.resolve(v)}catch{}return null}function w(v,{returnRouterError:q,to:E=a.to,replace:C=a.replace}={}){if(a.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||a.target==="_blank")return Promise.resolve(!1);v.preventDefault();const S=i.$router[C===!0?"replace":"push"](E);return q===!0?S:S.then(()=>{}).catch(()=>{})}function B(v){if(s.value===!0){const q=E=>w(v,E);d("click",v,q),v.defaultPrevented!==!0&&q()}else d("click",v)}return{hasRouterLink:s,hasHrefLink:u,hasLink:h,linkTag:l,resolvedLink:p,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:L,navigateToRouterLink:w,navigateOnClick:B}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ke={xs:8,sm:10,md:14,lg:20,xl:24},Ne=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ue={...ae,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Te.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function Ge(e){const t=re(e,Ke),r=Oe(e),{hasRouterLink:a,hasLink:i,linkTag:d,linkAttrs:c,navigateOnClick:u}=De({fallbackTag:"button"}),_=n.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in te?te[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),p=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>s.value===!0?e.tabindex||0:-1),l=n.computed(()=>Qe(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return i.value===!0?Object.assign(f,c.value):Ne.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),g=n.computed(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const k=e.round===!0?"round":`rectangle${p.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${l.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),y=n.computed(()=>r.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:g,style:_,innerClasses:y,attributes:b,hasLink:i,linkTag:d,navigateOnClick:u,isActionable:s}}const{passiveCapture:$}=K;let P=null,T=null,O=null;const He=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:r}){const{proxy:a}=n.getCurrentInstance(),{classes:i,style:d,innerClasses:c,attributes:u,hasLink:_,linkTag:p,navigateOnClick:s,isActionable:h}=Ge(e),l=n.ref(null),b=n.ref(null);let g=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),L=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:_.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),w=n.computed(()=>({center:e.round})),B=n.computed(()=>{const o=Math.max(0,Math.min(100,e.percentage));return o>0?{transition:"transform 0.6s",transform:`translateX(${o-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(h.value===!0){const o={onClick:E,onKeydown:C,onMousedown:j};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";o[`onTouchstart${m}`]=S}return o}return{onClick:R}}),q=n.computed(()=>({ref:l,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:d.value,...u.value,...v.value}));function E(o){if(l.value!==null){if(o!==void 0){if(o.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&l.value.contains(m)===!1&&m.contains(l.value)===!1){l.value.focus();const I=()=>{document.removeEventListener("keydown",R,!0),document.removeEventListener("keyup",I,$),l.value!==null&&l.value.removeEventListener("blur",I,$)};document.addEventListener("keydown",R,!0),document.addEventListener("keyup",I,$),l.value.addEventListener("blur",I,$)}}s(o)}}function C(o){l.value!==null&&(r("keydown",o),F(o,[13,32])===!0&&T!==l.value&&(T!==null&&M(),o.defaultPrevented!==!0&&(l.value.focus(),T=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("keyup",x,!0),l.value.addEventListener("blur",x,$)),R(o)))}function S(o){l.value!==null&&(r("touchstart",o),o.defaultPrevented!==!0&&(P!==l.value&&(P!==null&&M(),P=l.value,g=o.target,g.addEventListener("touchcancel",x,$),g.addEventListener("touchend",x,$)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function j(o){l.value!==null&&(o.qSkipRipple=y===!0,r("mousedown",o),o.defaultPrevented!==!0&&O!==l.value&&(O!==null&&M(),O=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("mouseup",x,$)))}function x(o){if(l.value!==null&&!(o!==void 0&&o.type==="blur"&&document.activeElement===l.value)){if(o!==void 0&&o.type==="keyup"){if(T===l.value&&F(o,[13,32])===!0){const m=new MouseEvent("click",o);m.qKeyEvent=!0,o.defaultPrevented===!0&&Ce(m),o.cancelBubble===!0&&le(m),l.value.dispatchEvent(m),R(o),o.qKeyEvent=!0}r("keyup",o)}M()}}function M(o){const m=b.value;o!==!0&&(P===l.value||O===l.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),P===l.value&&(g!==null&&(g.removeEventListener("touchcancel",x,$),g.removeEventListener("touchend",x,$)),P=g=null),O===l.value&&(document.removeEventListener("mouseup",x,$),O=null),T===l.value&&(document.removeEventListener("keyup",x,!0),l.value!==null&&l.value.removeEventListener("blur",x,$),T=null),l.value!==null&&l.value.classList.remove("q-btn--active")}function z(o){R(o),o.qSkipRipple=!0}return n.onBeforeUnmount(()=>{M(!0)}),Object.assign(a,{click:o=>{h.value===!0&&E(o)}}),()=>{let o=[];e.icon!==void 0&&o.push(n.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img","aria-hidden":"true"})),k.value===!0&&o.push(n.h("span",{class:"block"},[e.label])),o=A(t.default,o),e.iconRight!==void 0&&e.round===!1&&o.push(n.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img","aria-hidden":"true"}));const m=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:B.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},o)),e.loading!==null&&m.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h($e)])]:null)),n.withDirectives(n.h(p.value,q.value,m),[[Re,L.value,void 0,w.value]])}}}),We=n.defineComponent({__name:"index",props:{size:{default:D.MD},transparent:{type:Boolean},rounded:{type:Boolean},color:{default:de.PRIMARY},iconPosition:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,r=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent,"app-btn_trans":t.transparent,"app-btn_rounded":t.rounded,"app-btn_md":t.size===D.MD,"app-btn_lg":t.size===D.LG,"app-btn_icon-left":t.iconPosition==="left","app-btn_icon-right":t.iconPosition==="right","app-btn_icon-middle":t.iconPosition==="middle"},`app-btn_${t.color}`]);return(a,i)=>(n.openBlock(),n.createBlock(n.unref(He),{"no-caps":"",unelevated:"",class:n.normalizeClass(r.value),padding:n.unref(ne)[t.size||n.unref(D).MD],loading:a.loading,disabled:a.disabled||void 0,to:a.to,href:a.href,target:a.target,type:a.submit?"submit":void 0,"aria-label":a.ariaLabel,onClick:i[0]||(i[0]=d=>a.$emit("click",d))},{default:n.withCtx(()=>[n.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),ce=(e,t)=>{const r=e.__vccOpts||e;for(const[a,i]of t)r[a]=i;return r},Xe=ce(We,[["__scopeId","data-v-44701e49"]]),Ze=n.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:n.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),Je=ce(Ze,[["__scopeId","data-v-73419357"]]);exports.AppButton=Xe;exports.AppIcon=Je;
package/dist/uikit.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { computed as u, markRaw as le, defineComponent as Y, getCurrentInstance as G, h as v, ref as W, onBeforeUnmount as ye, Transition as ke, withDirectives as _e, openBlock as ue, createBlock as $e, unref as V, normalizeClass as se, withCtx as qe, renderSlot as Ee, createElementBlock as xe, normalizeStyle as Ce } from "vue";
1
+ import { computed as u, markRaw as le, defineComponent as Y, getCurrentInstance as G, h as v, ref as W, onBeforeUnmount as ye, Transition as ke, withDirectives as _e, openBlock as ue, createBlock as qe, unref as V, normalizeClass as se, withCtx as $e, renderSlot as Ee, createElementBlock as xe, normalizeStyle as Ce } from "vue";
2
2
  const K = {
3
3
  MD: "md",
4
4
  LG: "lg"
@@ -68,7 +68,7 @@ const X = "0 0 24 24", Z = (e) => e, F = (e) => `ionicons ${e}`, ve = {
68
68
  setup(e, { slots: t }) {
69
69
  const { proxy: { $q: a } } = G(), n = fe(e), i = u(
70
70
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
71
- ), f = u(() => {
71
+ ), d = u(() => {
72
72
  let c, o = e.name;
73
73
  if (o === "none" || !o)
74
74
  return { none: !0 };
@@ -108,7 +108,7 @@ const X = "0 0 24 24", Z = (e) => e, F = (e) => `ionicons ${e}`, ve = {
108
108
  viewBox: p
109
109
  };
110
110
  }
111
- let $ = " ";
111
+ let q = " ";
112
112
  const h = o.match(Be);
113
113
  if (h !== null)
114
114
  c = ve[h[1]](o);
@@ -119,15 +119,15 @@ const X = "0 0 24 24", Z = (e) => e, F = (e) => `ionicons ${e}`, ve = {
119
119
  else if (J.test(o) === !0) {
120
120
  c = "notranslate material-symbols";
121
121
  const s = o.match(J);
122
- s !== null && (o = o.substring(6), c += me[s[1]]), $ = o;
122
+ s !== null && (o = o.substring(6), c += me[s[1]]), q = o;
123
123
  } else {
124
124
  c = "notranslate material-icons";
125
125
  const s = o.match(Re);
126
- s !== null && (o = o.substring(2), c += ge[s[1]]), $ = o;
126
+ s !== null && (o = o.substring(2), c += ge[s[1]]), q = o;
127
127
  }
128
128
  return {
129
129
  cls: c,
130
- content: $
130
+ content: q
131
131
  };
132
132
  });
133
133
  return () => {
@@ -137,20 +137,20 @@ const X = "0 0 24 24", Z = (e) => e, F = (e) => `ionicons ${e}`, ve = {
137
137
  "aria-hidden": "true",
138
138
  role: "presentation"
139
139
  };
140
- return f.value.none === !0 ? v(e.tag, c, we(t.default)) : f.value.img === !0 ? v(e.tag, c, j(t.default, [
141
- v("img", { src: f.value.src })
142
- ])) : f.value.svg === !0 ? v(e.tag, c, j(t.default, [
140
+ return d.value.none === !0 ? v(e.tag, c, we(t.default)) : d.value.img === !0 ? v(e.tag, c, j(t.default, [
141
+ v("img", { src: d.value.src })
142
+ ])) : d.value.svg === !0 ? v(e.tag, c, j(t.default, [
143
143
  v("svg", {
144
- viewBox: f.value.viewBox || "0 0 24 24"
145
- }, f.value.nodes)
146
- ])) : f.value.svguse === !0 ? v(e.tag, c, j(t.default, [
144
+ viewBox: d.value.viewBox || "0 0 24 24"
145
+ }, d.value.nodes)
146
+ ])) : d.value.svguse === !0 ? v(e.tag, c, j(t.default, [
147
147
  v("svg", {
148
- viewBox: f.value.viewBox
148
+ viewBox: d.value.viewBox
149
149
  }, [
150
- v("use", { "xlink:href": f.value.src })
150
+ v("use", { "xlink:href": d.value.src })
151
151
  ])
152
- ])) : (f.value.cls !== void 0 && (c.class += " " + f.value.cls), v(e.tag, c, j(t.default, [
153
- f.value.content
152
+ ])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c, j(t.default, [
153
+ d.value.content
154
154
  ])));
155
155
  };
156
156
  }
@@ -268,13 +268,13 @@ function Ue(e, t = 250) {
268
268
  function te(e, t, a, n) {
269
269
  a.modifiers.stop === !0 && be(e);
270
270
  const i = a.modifiers.color;
271
- let f = a.modifiers.center;
272
- f = f === !0 || n === !0;
273
- const c = document.createElement("span"), o = document.createElement("span"), $ = Ke(e), { left: h, top: s, width: p, height: l } = t.getBoundingClientRect(), y = Math.sqrt(p * p + l * l), b = y / 2, k = `${(p - y) / 2}px`, d = f ? k : `${$.left - h - b}px`, _ = `${(l - y) / 2}px`, R = f ? _ : `${$.top - s - b}px`;
271
+ let d = a.modifiers.center;
272
+ d = d === !0 || n === !0;
273
+ const c = document.createElement("span"), o = document.createElement("span"), q = Ke(e), { left: h, top: s, width: p, height: l } = t.getBoundingClientRect(), y = Math.sqrt(p * p + l * l), b = y / 2, k = `${(p - y) / 2}px`, f = d ? k : `${q.left - h - b}px`, _ = `${(l - y) / 2}px`, R = d ? _ : `${q.top - s - b}px`;
274
274
  o.className = "q-ripple__inner", De(o, {
275
275
  height: `${y}px`,
276
276
  width: `${y}px`,
277
- transform: `translate3d(${d},${R},0) scale3d(.2,.2,1)`,
277
+ transform: `translate3d(${f},${R},0) scale3d(.2,.2,1)`,
278
278
  opacity: 0
279
279
  }), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(o), t.appendChild(c);
280
280
  const w = () => {
@@ -373,7 +373,7 @@ function Ze(e, t) {
373
373
  if (typeof n == "string") {
374
374
  if (n !== i)
375
375
  return !1;
376
- } else if (Array.isArray(i) === !1 || i.length !== n.length || n.some((f, c) => f !== i[c]))
376
+ } else if (Array.isArray(i) === !1 || i.length !== n.length || n.some((d, c) => d !== i[c]))
377
377
  return !1;
378
378
  }
379
379
  return !0;
@@ -403,11 +403,11 @@ const tt = {
403
403
  disable: Boolean
404
404
  };
405
405
  function nt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
406
- const a = G(), { props: n, proxy: i, emit: f } = a, c = Xe(a), o = u(() => n.disable !== !0 && n.href !== void 0), $ = t === !0 ? u(
406
+ const a = G(), { props: n, proxy: i, emit: d } = a, c = Xe(a), o = u(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? u(
407
407
  () => c === !0 && n.disable !== !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
408
408
  ) : u(
409
409
  () => c === !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
410
- ), h = u(() => $.value === !0 ? R(n.to) : null), s = u(() => h.value !== null), p = u(() => o.value === !0 || s.value === !0), l = u(() => n.type === "a" || p.value === !0 ? "a" : n.tag || e || "div"), y = u(() => o.value === !0 ? {
410
+ ), h = u(() => q.value === !0 ? R(n.to) : null), s = u(() => h.value !== null), p = u(() => o.value === !0 || s.value === !0), l = u(() => n.type === "a" || p.value === !0 ? "a" : n.tag || e || "div"), y = u(() => o.value === !0 ? {
411
411
  href: n.href,
412
412
  target: n.target
413
413
  } : s.value === !0 ? {
@@ -416,7 +416,7 @@ function nt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
416
416
  } : {}), b = u(() => {
417
417
  if (s.value === !1)
418
418
  return -1;
419
- const { matched: g } = h.value, { length: q } = g, x = g[q - 1];
419
+ const { matched: g } = h.value, { length: $ } = g, x = g[$ - 1];
420
420
  if (x === void 0)
421
421
  return -1;
422
422
  const L = i.$route.matched;
@@ -427,18 +427,18 @@ function nt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
427
427
  );
428
428
  if (S !== -1)
429
429
  return S;
430
- const I = ae(g[q - 2]);
430
+ const I = ae(g[$ - 2]);
431
431
  return (
432
432
  // we are dealing with nested routes
433
- q > 1 && ae(x) === I && L[L.length - 1].path !== I ? L.findIndex(
434
- re.bind(null, g[q - 2])
433
+ $ > 1 && ae(x) === I && L[L.length - 1].path !== I ? L.findIndex(
434
+ re.bind(null, g[$ - 2])
435
435
  ) : S
436
436
  );
437
437
  }), k = u(
438
438
  () => s.value === !0 && b.value !== -1 && Ze(i.$route.params, h.value.params)
439
- ), d = u(
439
+ ), f = u(
440
440
  () => k.value === !0 && b.value === i.$route.matched.length - 1 && et(i.$route.params, h.value.params)
441
- ), _ = u(() => s.value === !0 ? d.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
441
+ ), _ = u(() => s.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
442
442
  function R(g) {
443
443
  try {
444
444
  return i.$router.resolve(g);
@@ -446,7 +446,7 @@ function nt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
446
446
  }
447
447
  return null;
448
448
  }
449
- function w(g, { returnRouterError: q, to: x = n.to, replace: L = n.replace } = {}) {
449
+ function w(g, { returnRouterError: $, to: x = n.to, replace: L = n.replace } = {}) {
450
450
  if (n.disable === !0)
451
451
  return g.preventDefault(), Promise.resolve(!1);
452
452
  if (
@@ -457,16 +457,16 @@ function nt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
457
457
  return Promise.resolve(!1);
458
458
  g.preventDefault();
459
459
  const S = i.$router[L === !0 ? "replace" : "push"](x);
460
- return q === !0 ? S : S.then(() => {
460
+ return $ === !0 ? S : S.then(() => {
461
461
  }).catch(() => {
462
462
  });
463
463
  }
464
464
  function B(g) {
465
465
  if (s.value === !0) {
466
- const q = (x) => w(g, x);
467
- f("click", g, q), g.defaultPrevented !== !0 && q();
466
+ const $ = (x) => w(g, x);
467
+ d("click", g, $), g.defaultPrevented !== !0 && $();
468
468
  } else
469
- f("click", g);
469
+ d("click", g);
470
470
  }
471
471
  return {
472
472
  hasRouterLink: s,
@@ -475,7 +475,7 @@ function nt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
475
475
  linkTag: l,
476
476
  resolvedLink: h,
477
477
  linkIsActive: k,
478
- linkIsExactActive: d,
478
+ linkIsExactActive: f,
479
479
  linkClass: _,
480
480
  linkAttrs: y,
481
481
  getLink: R,
@@ -547,42 +547,42 @@ const ut = {
547
547
  round: Boolean
548
548
  };
549
549
  function ct(e) {
550
- const t = fe(e, at), a = We(e), { hasRouterLink: n, hasLink: i, linkTag: f, linkAttrs: c, navigateOnClick: o } = nt({
550
+ const t = fe(e, at), a = We(e), { hasRouterLink: n, hasLink: i, linkTag: d, linkAttrs: c, navigateOnClick: o } = nt({
551
551
  fallbackTag: "button"
552
- }), $ = u(() => {
553
- const d = e.fab === !1 && e.fabMini === !1 ? t.value : {};
554
- return e.padding !== void 0 ? Object.assign({}, d, {
552
+ }), q = u(() => {
553
+ const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
554
+ return e.padding !== void 0 ? Object.assign({}, f, {
555
555
  padding: e.padding.split(/\s+/).map((_) => _ in oe ? oe[_] + "px" : _).join(" "),
556
556
  minWidth: "0",
557
557
  minHeight: "0"
558
- }) : d;
558
+ }) : f;
559
559
  }), h = u(
560
560
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
561
561
  ), s = u(
562
562
  () => e.disable !== !0 && e.loading !== !0
563
563
  ), p = u(() => s.value === !0 ? e.tabindex || 0 : -1), l = u(() => lt(e, "standard")), y = u(() => {
564
- const d = { tabindex: p.value };
565
- return i.value === !0 ? Object.assign(d, c.value) : rt.includes(e.type) === !0 && (d.type = e.type), f.value === "a" ? (e.disable === !0 ? d["aria-disabled"] = "true" : d.href === void 0 && (d.role = "button"), n.value !== !0 && it.test(e.type) === !0 && (d.type = e.type)) : e.disable === !0 && (d.disabled = "", d["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(d, {
564
+ const f = { tabindex: p.value };
565
+ return i.value === !0 ? Object.assign(f, c.value) : rt.includes(e.type) === !0 && (f.type = e.type), d.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), n.value !== !0 && it.test(e.type) === !0 && (f.type = e.type)) : e.disable === !0 && (f.disabled = "", f["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(f, {
566
566
  role: "progressbar",
567
567
  "aria-valuemin": 0,
568
568
  "aria-valuemax": 100,
569
569
  "aria-valuenow": e.percentage
570
- }), d;
570
+ }), f;
571
571
  }), b = u(() => {
572
- let d;
573
- e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? d = `text-${e.textColor || e.color}` : d = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (d = `text-${e.textColor}`);
572
+ let f;
573
+ e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? f = `text-${e.textColor || e.color}` : f = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (f = `text-${e.textColor}`);
574
574
  const _ = e.round === !0 ? "round" : `rectangle${h.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
575
- return `q-btn--${l.value} q-btn--${_}` + (d !== void 0 ? " " + d : "") + (s.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
575
+ return `q-btn--${l.value} q-btn--${_}` + (f !== void 0 ? " " + f : "") + (s.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
576
576
  }), k = u(
577
577
  () => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
578
578
  );
579
579
  return {
580
580
  classes: b,
581
- style: $,
581
+ style: q,
582
582
  innerClasses: k,
583
583
  attributes: y,
584
584
  hasLink: i,
585
- linkTag: f,
585
+ linkTag: d,
586
586
  navigateOnClick: o,
587
587
  isActionable: s
588
588
  };
@@ -601,19 +601,19 @@ const dt = H({
601
601
  setup(e, { slots: t, emit: a }) {
602
602
  const { proxy: n } = G(), {
603
603
  classes: i,
604
- style: f,
604
+ style: d,
605
605
  innerClasses: c,
606
606
  attributes: o,
607
- hasLink: $,
607
+ hasLink: q,
608
608
  linkTag: h,
609
609
  navigateOnClick: s,
610
610
  isActionable: p
611
611
  } = ct(e), l = W(null), y = W(null);
612
- let b = null, k, d = null;
612
+ let b = null, k, f = null;
613
613
  const _ = u(
614
614
  () => e.label !== void 0 && e.label !== null && e.label !== ""
615
615
  ), R = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
616
- keyCodes: $.value === !0 ? [13, 32] : [13],
616
+ keyCodes: q.value === !0 ? [13, 32] : [13],
617
617
  ...e.ripple === !0 ? {} : e.ripple
618
618
  }), w = u(() => ({ center: e.round })), B = u(() => {
619
619
  const r = Math.max(0, Math.min(100, e.percentage));
@@ -643,10 +643,10 @@ const dt = H({
643
643
  // needed; especially for disabled <a> tags
644
644
  onClick: P
645
645
  };
646
- }), q = u(() => ({
646
+ }), $ = u(() => ({
647
647
  ref: l,
648
648
  class: "q-btn q-btn-item non-selectable no-outline " + i.value,
649
- style: f.value,
649
+ style: d.value,
650
650
  ...o.value,
651
651
  ...g.value
652
652
  }));
@@ -671,8 +671,8 @@ const dt = H({
671
671
  l.value !== null && (a("keydown", r), U(r, [13, 32]) === !0 && O !== l.value && (O !== null && z(), r.defaultPrevented !== !0 && (l.value.focus(), O = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", C, !0), l.value.addEventListener("blur", C, E)), P(r)));
672
672
  }
673
673
  function S(r) {
674
- l.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== l.value && (T !== null && z(), T = l.value, b = r.target, b.addEventListener("touchcancel", C, E), b.addEventListener("touchend", C, E)), k = !0, d !== null && clearTimeout(d), d = setTimeout(() => {
675
- d = null, k = !1;
674
+ l.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== l.value && (T !== null && z(), T = l.value, b = r.target, b.addEventListener("touchcancel", C, E), b.addEventListener("touchend", C, E)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
675
+ f = null, k = !1;
676
676
  }, 200)));
677
677
  }
678
678
  function I(r) {
@@ -753,7 +753,7 @@ const dt = H({
753
753
  ), _e(
754
754
  v(
755
755
  h.value,
756
- q.value,
756
+ $.value,
757
757
  m
758
758
  ),
759
759
  [[
@@ -797,7 +797,7 @@ const dt = H({
797
797
  },
798
798
  `app-btn_${t.color}`
799
799
  ]);
800
- return (n, i) => (ue(), $e(V(dt), {
800
+ return (n, i) => (ue(), qe(V(dt), {
801
801
  "no-caps": "",
802
802
  unelevated: "",
803
803
  class: se(a.value),
@@ -809,9 +809,9 @@ const dt = H({
809
809
  target: n.target,
810
810
  type: n.submit ? "submit" : void 0,
811
811
  "aria-label": n.ariaLabel,
812
- onClick: i[0] || (i[0] = (f) => n.$emit("click"))
812
+ onClick: i[0] || (i[0] = (d) => n.$emit("click", d))
813
813
  }, {
814
- default: qe(() => [
814
+ default: $e(() => [
815
815
  Ee(n.$slots, "default", {}, void 0, !0)
816
816
  ]),
817
817
  _: 3
@@ -822,7 +822,7 @@ const dt = H({
822
822
  for (const [n, i] of t)
823
823
  a[n] = i;
824
824
  return a;
825
- }, mt = /* @__PURE__ */ pe(ft, [["__scopeId", "data-v-0d548105"]]), vt = /* @__PURE__ */ Y({
825
+ }, mt = /* @__PURE__ */ pe(ft, [["__scopeId", "data-v-44701e49"]]), vt = /* @__PURE__ */ Y({
826
826
  __name: "index",
827
827
  props: {
828
828
  name: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@validol4ik/uikit",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/uikit.cjs",
6
6
  "module": "./dist/uikit.es.js",