@validol4ik/uikit 0.3.28 → 0.3.30
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/style.css +1 -1
- package/dist/types/index.d.ts +2 -11
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +4484 -6
- package/package.json +2 -2
- package/dist/AppButtonCopy-CBiI1PFG.js +0 -61
- package/dist/AppButtonCopy-CzEFYWZ_.cjs +0 -1
- package/dist/AppSelect-DkpvIHUg.js +0 -3326
- package/dist/AppSelect-DyDlPz00.cjs +0 -1
- package/dist/focusout-DjvPXP_b.js +0 -135
- package/dist/focusout-DzWGke-4.cjs +0 -1
- package/dist/index-Ccvx5Q-3.js +0 -985
- package/dist/index-DnduCzlS.cjs +0 -1
package/dist/index-DnduCzlS.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),qe=n.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(t,o)=>(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))}}),U=(e,t)=>{const o=e.__vccOpts||e;for(const[r,a]of t)o[r]=a;return o},Ce=U(qe,[["__scopeId","data-v-24fca0cf"]]),ie={PRIMARY:"primary",INFO:"info"},L={SM:"sm",MD:"md",LG:"lg"},$e={[L.SM]:"3px 9px",[L.MD]:"5px 12px",[L.LG]:"9px 20px"},Q={xs:18,sm:24,md:32,lg:38,xl:46},Y={size:String};function G(e,t=Q){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function V(e){return n.markRaw(n.defineComponent(e))}function Be(e){return n.markRaw(e)}function ue(e,t){return e!==void 0&&e()||t}function Le(e,t){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return t}function T(e,t){return e!==void 0?t.concat(e()):t}function Re(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Pe(e,t,o,r,a,d){t.key=r+a;const s=n.h(e,t,o);return a===!0?n.withDirectives(s,d()):s}const X="0 0 24 24",Z=e=>e,F=e=>`ionicons ${e}`,le={"mdi-":e=>`mdi ${e}`,"icon-":Z,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":F,"ion-ios":F,"ion-logo":F,"iconfont ":Z,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},se={o_:"-outlined",r_:"-round",s_:"-sharp"},ce={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},_e=new RegExp("^("+Object.keys(le).join("|")+")"),we=new RegExp("^("+Object.keys(se).join("|")+")"),J=new RegExp("^("+Object.keys(ce).join("|")+")"),xe=/^[Mm]\s?[-+]?\.?\d/,Me=/^img:/,Ae=/^svguse:/,Oe=/^ion-/,Te=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=V({name:"QIcon",props:{...Y,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),r=G(e),a=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 s,u=e.name;if(u==="none"||!u)return{none:!0};if(o.iconMapFn!==null){const c=o.iconMapFn(u);if(c!==void 0)if(c.icon!==void 0){if(u=c.icon,u==="none"||!u)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(xe.test(u)===!0){const[c,h=X]=u.split("|");return{svg:!0,viewBox:h,nodes:c.split("&&").map(l=>{const[b,p,y]=l.split("@@");return n.h("path",{style:p,d:b,transform:y})})}}if(Me.test(u)===!0)return{img:!0,src:u.substring(4)};if(Ae.test(u)===!0){const[c,h=X]=u.split("|");return{svguse:!0,src:c.substring(7),viewBox:h}}let S=" ";const g=u.match(_e);if(g!==null)s=le[g[1]](u);else if(Te.test(u)===!0)s=u;else if(Oe.test(u)===!0)s=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(J.test(u)===!0){s="notranslate material-symbols";const c=u.match(J);c!==null&&(u=u.substring(6),s+=ce[c[1]]),S=u}else{s="notranslate material-icons";const c=u.match(we);c!==null&&(u=u.substring(2),s+=se[c[1]]),S=u}return{cls:s,content:S}});return()=>{const s={class:a.value,style:r.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?n.h(e.tag,s,ue(t.default)):d.value.img===!0?n.h(e.tag,s,T(t.default,[n.h("img",{src:d.value.src})])):d.value.svg===!0?n.h(e.tag,s,T(t.default,[n.h("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?n.h(e.tag,s,T(t.default,[n.h("svg",{viewBox:d.value.viewBox},[n.h("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(s.class+=" "+d.value.cls),n.h(e.tag,s,T(t.default,[d.value.content])))}}}),ze={size:{type:[String,Number],default:"1em"},color:String};function je(e){return{cSize:n.computed(()=>e.size in Q?`${Q[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const de=V({name:"QSpinner",props:{...ze,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=je(e);return()=>n.h("svg",{class:o.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 fe(e,t){const o=e.style;for(const r in t)o[r]=t[r]}function Ie(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=n.unref(e);if(t)return t.$el||t}function De(e,t){if(e==null||e.contains(t)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}const I={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(I,{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 Ke(){}function ve(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 Ne(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;for(;o;){if(t.push(o),o.tagName==="HTML")return t.push(document),t.push(window),t;o=o.parentElement}}function W(e){e.stopPropagation()}function me(e){e.cancelable!==!1&&e.preventDefault()}function w(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function pe(e,t,o){const r=`__q_${t}_evt`;e[r]=e[r]!==void 0?e[r].concat(o):o,o.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],I[a[3]])})}function ge(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],I[r[3]])}),e[o]=void 0)}function he(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function N(e,t){return he(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Ve(e,t=250){let o=!1,r;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),r=e.apply(this,arguments)),r}}function ee(e,t,o,r){o.modifiers.stop===!0&&W(e);const a=o.modifiers.color;let d=o.modifiers.center;d=d===!0||r===!0;const s=document.createElement("span"),u=document.createElement("span"),S=ve(e),{left:g,top:c,width:h,height:l}=t.getBoundingClientRect(),b=Math.sqrt(h*h+l*l),p=b/2,y=`${(h-b)/2}px`,f=d?y:`${S.left-g-p}px`,k=`${(l-b)/2}px`,x=d?k:`${S.top-c-p}px`;u.className="q-ripple__inner",fe(u,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${x},0) scale3d(.2,.2,1)`,opacity:0}),s.className=`q-ripple${a?" text-"+a:""}`,s.setAttribute("dir","ltr"),s.appendChild(u),t.appendChild(s);const P=()=>{s.remove(),clearTimeout(_)};o.abort.push(P);let _=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,u.style.opacity=.2,_=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,_=setTimeout(()=>{s.remove(),o.abort.splice(o.abort.indexOf(P),1)},275)},250)},50)}function te(e,{modifiers:t,value:o,arg:r}){const a=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||r,keyCodes:[].concat(a.keyCodes||13)}}const be=Be({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const r={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(a){r.enabled===!0&&a.qSkipRipple!==!0&&a.type===(r.modifiers.early===!0?"pointerdown":"click")&&ee(a,e,r,a.qKeyEvent===!0)},keystart:Ve(a=>{r.enabled===!0&&a.qSkipRipple!==!0&&N(a,r.modifiers.keyCodes)===!0&&a.type===`key${r.modifiers.early===!0?"down":"up"}`&&ee(a,e,r,!0)},300)};te(r,t),e.__qripple=r,pe(r,"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 o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&te(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),ge(t,"main"),delete e._qripple)}}),ye={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Fe=Object.keys(ye),Qe={align:{type:String,validator:e=>Fe.includes(e)}};function He(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ye[t]}`})}function Ue(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function ke(e){return e.appContext.config.globalProperties.$router!==void 0}function Ye(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function re(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ge(e,t){for(const o in t){const r=t[o],a=e[o];if(typeof r=="string"){if(r!==a)return!1}else if(Array.isArray(a)===!1||a.length!==r.length||r.some((d,s)=>d!==a[s]))return!1}return!0}function oe(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function We(e,t){return Array.isArray(e)===!0?oe(e,t):Array.isArray(t)===!0?oe(t,e):e===t}function Xe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(We(e[o],t[o])===!1)return!1;return!0}const Se={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Ze={...Se,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ee({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:r,proxy:a,emit:d}=o,s=ke(o),u=n.computed(()=>r.disable!==!0&&r.href!==void 0),S=t===!0?n.computed(()=>s===!0&&r.disable!==!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""):n.computed(()=>s===!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),g=n.computed(()=>S.value===!0?x(r.to):null),c=n.computed(()=>g.value!==null),h=n.computed(()=>u.value===!0||c.value===!0),l=n.computed(()=>r.type==="a"||h.value===!0?"a":r.tag||e||"div"),b=n.computed(()=>u.value===!0?{href:r.href,target:r.target}:c.value===!0?{href:g.value.href,target:r.target}:{}),p=n.computed(()=>{if(c.value===!1)return-1;const{matched:v}=g.value,{length:E}=v,C=v[E-1];if(C===void 0)return-1;const B=a.$route.matched;if(B.length===0)return-1;const R=B.findIndex(re.bind(null,C));if(R!==-1)return R;const D=ne(v[E-2]);return E>1&&ne(C)===D&&B[B.length-1].path!==D?B.findIndex(re.bind(null,v[E-2])):R}),y=n.computed(()=>c.value===!0&&p.value!==-1&&Ge(a.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&p.value===a.$route.matched.length-1&&Xe(a.$route.params,g.value.params)),k=n.computed(()=>c.value===!0?f.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":y.value===!0?` ${r.activeClass}`:"":"");function x(v){try{return a.$router.resolve(v)}catch{}return null}function P(v,{returnRouterError:E,to:C=r.to,replace:B=r.replace}={}){if(r.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||r.target==="_blank")return Promise.resolve(!1);v.preventDefault();const R=a.$router[B===!0?"replace":"push"](C);return E===!0?R:R.then(()=>{}).catch(()=>{})}function _(v){if(c.value===!0){const E=C=>P(v,C);d("click",v,E),v.defaultPrevented!==!0&&E()}else d("click",v)}return{hasRouterLink:c,hasHrefLink:u,hasLink:h,linkTag:l,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:x,navigateToRouterLink:P,navigateOnClick:_}}const ae={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Je={xs:8,sm:10,md:14,lg:20,xl:24},et=["button","submit","reset"],tt=/[^\s]\/[^\s]/,nt=["flat","outline","push","unelevated"];function rt(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const ot={...Y,...Se,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...nt.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:{...Qe.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},at={...ot,round:Boolean};function it(e){const t=G(e,Je),o=He(e),{hasRouterLink:r,hasLink:a,linkTag:d,linkAttrs:s,navigateOnClick:u}=Ee({fallbackTag:"button"}),S=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 ae?ae[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>c.value===!0?e.tabindex||0:-1),l=n.computed(()=>rt(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return a.value===!0?Object.assign(f,s.value):et.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"),r.value!==!0&&tt.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}),p=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${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${l.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(c.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(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:S,innerClasses:y,attributes:b,hasLink:a,linkTag:d,navigateOnClick:u,isActionable:c}}const{passiveCapture:q}=I;let M=null,A=null,O=null;const ut=V({name:"QBtn",props:{...at,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:r}=n.getCurrentInstance(),{classes:a,style:d,innerClasses:s,attributes:u,hasLink:S,linkTag:g,navigateOnClick:c,isActionable:h}=it(e),l=n.ref(null),b=n.ref(null);let p=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),x=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:S.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),P=n.computed(()=>({center:e.round})),_=n.computed(()=>{const i=Math.max(0,Math.min(100,e.percentage));return i>0?{transition:"transform 0.6s",transform:`translateX(${i-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(h.value===!0){const i={onClick:C,onKeydown:B,onMousedown:D};if(r.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";i[`onTouchstart${m}`]=R}return i}return{onClick:w}}),E=n.computed(()=>({ref:l,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:d.value,...u.value,...v.value}));function C(i){if(l.value!==null){if(i!==void 0){if(i.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 K=()=>{document.removeEventListener("keydown",w,!0),document.removeEventListener("keyup",K,q),l.value!==null&&l.value.removeEventListener("blur",K,q)};document.addEventListener("keydown",w,!0),document.addEventListener("keyup",K,q),l.value.addEventListener("blur",K,q)}}c(i)}}function B(i){l.value!==null&&(o("keydown",i),N(i,[13,32])===!0&&A!==l.value&&(A!==null&&z(),i.defaultPrevented!==!0&&(l.value.focus(),A=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),l.value.addEventListener("blur",$,q)),w(i)))}function R(i){l.value!==null&&(o("touchstart",i),i.defaultPrevented!==!0&&(M!==l.value&&(M!==null&&z(),M=l.value,p=i.target,p.addEventListener("touchcancel",$,q),p.addEventListener("touchend",$,q)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function D(i){l.value!==null&&(i.qSkipRipple=y===!0,o("mousedown",i),i.defaultPrevented!==!0&&O!==l.value&&(O!==null&&z(),O=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,q)))}function $(i){if(l.value!==null&&!(i!==void 0&&i.type==="blur"&&document.activeElement===l.value)){if(i!==void 0&&i.type==="keyup"){if(A===l.value&&N(i,[13,32])===!0){const m=new MouseEvent("click",i);m.qKeyEvent=!0,i.defaultPrevented===!0&&me(m),i.cancelBubble===!0&&W(m),l.value.dispatchEvent(m),w(i),i.qKeyEvent=!0}o("keyup",i)}z()}}function z(i){const m=b.value;i!==!0&&(M===l.value||O===l.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),M===l.value&&(p!==null&&(p.removeEventListener("touchcancel",$,q),p.removeEventListener("touchend",$,q)),M=p=null),O===l.value&&(document.removeEventListener("mouseup",$,q),O=null),A===l.value&&(document.removeEventListener("keyup",$,!0),l.value!==null&&l.value.removeEventListener("blur",$,q),A=null),l.value!==null&&l.value.classList.remove("q-btn--active")}function j(i){w(i),i.qSkipRipple=!0}return n.onBeforeUnmount(()=>{z(!0)}),Object.assign(r,{click:i=>{h.value===!0&&C(i)}}),()=>{let i=[];e.icon!==void 0&&i.push(n.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&i.push(n.h("span",{class:"block"},[e.label])),i=T(t.default,i),e.iconRight!==void 0&&e.round===!1&&i.push(n.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));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:_.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+s.value},i)),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(de)])]:null)),n.withDirectives(n.h(g.value,E.value,m),[[be,x.value,void 0,P.value]])}}}),lt=n.defineComponent({__name:"AppButton",props:{size:{default:L.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:ie.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},emits:["click"],setup(e){const t=e,o=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===L.SM,"app-btn_md":t.size===L.MD,"app-btn_lg":t.size===L.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(r,a)=>(n.openBlock(),n.createBlock(n.unref(ut),{"no-caps":"",unelevated:"",class:n.normalizeClass(o.value),padding:n.unref($e)[r.size||n.unref(L).MD],loading:r.loading,disable:r.disabled||void 0,to:r.to,href:r.href,target:r.target,type:r.submit?"submit":void 0,"aria-label":r.ariaLabel,onClick:a[0]||(a[0]=d=>r.$emit("click",d))},{default:n.withCtx(()=>[r.iconLeft||r.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",r.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${r.iconLeft||r.iconMiddle}`,r.transparent||r.flat?`text-${r.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(r.$slots,"default",{},void 0,!0),r.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(r.label),1)],64)):n.createCommentVNode("",!0),r.iconRight?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${r.iconRight}`,r.transparent?`text-${r.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label"]))}}),st=U(lt,[["__scopeId","data-v-64785508"]]),ct=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-CzEFYWZ_.cjs"))),dt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-DyDlPz00.cjs")));exports.AppButton=st;exports.AppButtonCopy=ct;exports.AppIcon=Ce;exports.AppSelect=dt;exports.COLORS=ie;exports.QIcon=H;exports.QSpinner=de;exports.Ripple=be;exports.SIZES=L;exports._export_sfc=U;exports.addEvt=pe;exports.childHasFocus=De;exports.cleanEvt=ge;exports.createComponent=V;exports.css=fe;exports.getElement=Ie;exports.getEventPath=Ne;exports.getParentProxy=Ue;exports.hDir=Pe;exports.hMergeSlot=T;exports.hMergeSlotSafely=Re;exports.hSlot=ue;exports.hUniqueSlot=Le;exports.isKeyCode=N;exports.listenOpts=I;exports.noop=Ke;exports.position=ve;exports.prevent=me;exports.shouldIgnoreKey=he;exports.stop=W;exports.stopAndPrevent=w;exports.useRouterLink=Ee;exports.useRouterLinkProps=Ze;exports.useSize=G;exports.useSizeProps=Y;exports.vmHasRouter=ke;exports.vmIsDestroyed=Ye;
|