@validol4ik/uikit 0.6.5 → 0.6.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/dist/.DS_Store +0 -0
- package/dist/{AppButtonCopy-4GxKBcWx.cjs → AppButtonCopy-BvczyeX-.cjs} +1 -1
- package/dist/{AppButtonCopy-CcsAzDik.js → AppButtonCopy-CT_lXO96.js} +5 -5
- package/dist/{AppSelect-BtUUK2ea.js → AppSelect-B0FVWo0o.js} +893 -900
- package/dist/AppSelect-BbPJo5N3.cjs +1 -0
- package/dist/DropdownButton-DF_WGSQl.cjs +1 -0
- package/dist/{DropdownButton-CZwBMGcA.js → DropdownButton-Ylu19LP3.js} +123 -113
- package/dist/QMenu-BAujF7Kn.cjs +1 -0
- package/dist/{QMenu-P1hqLpnc.js → QMenu-CrIbSuC4.js} +104 -109
- package/dist/index-CDsBnBqp.cjs +1 -0
- package/dist/index-DqEqQq1H.js +1265 -0
- package/dist/kl.woff +0 -0
- package/dist/style.css +1 -1
- package/dist/types/components/AppIcon/AppIcon.vue.d.ts +1 -1
- package/dist/types/components/AppIcon/iconsList.d.ts +2 -2
- package/dist/types/components/buttons/AppButton/AppButton.vue.d.ts +2 -1
- package/dist/types/components/buttons/AppButton/types.d.ts +4 -1
- package/dist/types/components/buttons/DropdownButton/DropdownButton.vue.d.ts +2 -1
- package/dist/types/components/buttons/DropdownButton/types.d.ts +4 -1
- package/dist/types/components/form/AppCodeInput/AppCodeInput.vue.d.ts +3 -1
- package/dist/types/components/form/AppSelect/AppSelect.vue.d.ts +1 -1
- package/dist/types/components/form/AppToggle/AppToggle.vue.d.ts +3 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +2 -2
- package/dist/AppSelect-Tg7_Uj55.cjs +0 -1
- package/dist/DropdownButton-DXQzSYcl.cjs +0 -1
- package/dist/QMenu-cWjMyOHy.cjs +0 -1
- package/dist/index-CNCrt1w6.cjs +0 -1
- package/dist/index-CtoDgaeS.js +0 -1264
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("vue"),B=require("./focusout-DzWGke-4.cjs"),g=require("./index-CDsBnBqp.cjs");let _,R=0;const b=new Array(256);for(let e=0;e<256;e++)b[e]=(e+256).toString(16).substring(1);const De=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return t=>{const o=[];for(let n=t;n>0;n--)o.push(Math.floor(Math.random()*256));return o}})(),le=4096;function j(){(_===void 0||R+16>le)&&(R=0,_=De(le));const e=Array.prototype.slice.call(_,R,R+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,b[e[0]]+b[e[1]]+b[e[2]]+b[e[3]]+"-"+b[e[4]]+b[e[5]]+"-"+b[e[6]]+b[e[7]]+"-"+b[e[8]]+b[e[9]]+"-"+b[e[10]]+b[e[11]]+b[e[12]]+b[e[13]]+b[e[14]]+b[e[15]]}function Re(e){return e??null}function ie(e,t){return e??(t===!0?`f_${j()}`:null)}function Ie({getValue:e,required:t=!0}={}){if(B.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?u.ref(Re(e())):u.ref(null);return t===!0&&o.value===null&&u.onMounted(()=>{o.value=`f_${j()}`}),e!==void 0&&u.watch(e,n=>{o.value=ie(n,t)}),o}return e!==void 0?u.computed(()=>ie(e(),t)):u.ref(`f_${j()}`)}let k=[],D=[];function he(e){D=D.filter(t=>t!==e)}function ze(e){he(e),D.push(e)}function ue(e){he(e),D.length===0&&k.length!==0&&(k[k.length-1](),k=[])}function ve(e){D.length===0?e():k.push(e)}function Oe(e){k=k.filter(t=>t!==e)}function Ve(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),B.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ke={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Qe={...Ke,contextMenu:Boolean};function Ue({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:l,emit:m}=u.getCurrentInstance(),i=u.ref(null);let a=null;function h(r){return i.value===null?!1:r===void 0||r.touches===void 0||r.touches.length<=1}const d={};o===void 0&&(Object.assign(d,{hide(r){l.hide(r)},toggle(r){l.toggle(r),r.qAnchorHandled=!0},toggleKey(r){g.isKeyCode(r,13)===!0&&d.toggle(r)},contextClick(r){l.hide(r),g.prevent(r),u.nextTick(()=>{l.show(r),r.qAnchorHandled=!0})},prevent:g.prevent,mobileTouch(r){if(d.mobileCleanup(r),h(r)!==!0)return;l.hide(r),i.value.classList.add("non-selectable");const f=r.target;g.addEvt(d,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,l.show(r),r.qAnchorHandled=!0},300)},mobileCleanup(r){i.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&r!==void 0&&Ve()}}),o=function(r=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let f;r===!0?l.$q.platform.is.mobile===!0?f=[[i.value,"touchstart","mobileTouch","passive"]]:f=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:f=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],g.addEvt(d,"anchor",f)});function c(){g.cleanEvt(d,"anchor")}function w(r){for(i.value=r;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function y(){if(n.target===!1||n.target===""||l.$el.parentNode===null)i.value=null;else if(n.target===!0)w(l.$el.parentNode);else{let r=n.target;if(typeof n.target=="string")try{r=document.querySelector(n.target)}catch{r=void 0}r!=null?(i.value=r.$el||r,o()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return u.watch(()=>n.contextMenu,r=>{i.value!==null&&(c(),o(r))}),u.watch(()=>n.target,()=>{i.value!==null&&c(),y()}),u.watch(()=>n.noParentEvent,r=>{i.value!==null&&(r===!0?c():o())}),u.onMounted(()=>{y(),t!==!0&&n.modelValue===!0&&i.value===null&&m("update:modelValue",!1)}),u.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),c()}),{anchorEl:i,canShow:h,anchorEvents:d}}function _e(e,t){const o=u.ref(null);let n;function l(a,h){const d=`${h!==void 0?"add":"remove"}EventListener`,c=h!==void 0?h:n;a!==window&&a[d]("scroll",c,g.listenOpts.passive),window[d]("scroll",c,g.listenOpts.passive),n=h}function m(){o.value!==null&&(l(o.value),o.value=null)}const i=u.watch(()=>e.noParentEvent,()=>{o.value!==null&&(m(),t())});return u.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:m,changeScrollEvent:l}}const ge={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},pe=["beforeShow","show","beforeHide","hide"];function we({showing:e,canShow:t,hideOnRouteChange:o,handleShow:n,handleHide:l,processOnMount:m}){const i=u.getCurrentInstance(),{props:a,emit:h,proxy:d}=i;let c;function w(v){e.value===!0?f(v):y(v)}function y(v){if(a.disable===!0||(v==null?void 0:v.qAnchorHandled)===!0||t!==void 0&&t(v)!==!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!0),c=v,u.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&r(v)}function r(v){e.value!==!0&&(e.value=!0,h("beforeShow",v),n!==void 0?n(v):h("show",v))}function f(v){if(a.disable===!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!1),c=v,u.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&H(v)}function H(v){e.value!==!1&&(e.value=!1,h("beforeHide",v),l!==void 0?l(v):h("hide",v))}function C(v){a.disable===!0&&v===!0?a["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):v===!0!==e.value&&(v===!0?r:H)(c)}u.watch(()=>a.modelValue,C),o!==void 0&&g.vmHasRouter(i)===!0&&u.watch(()=>d.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),u.onMounted(()=>{C(a.modelValue)});const M={show:y,hide:f,toggle:w};return Object.assign(d,M),M}const re={};let Ne=1,je=document.body;function Ge(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Ne++}`:e,re.globalNodes!==void 0){const n=re.globalNodes.class;n!==void 0&&(o.className=n)}return je.appendChild(o),o}function Xe(e){e.remove()}const A=[];function Ye(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return g.getParentProxy(e)}else if(e.__qPortal===!0){const o=g.getParentProxy(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(t),o):e}e=g.getParentProxy(e)}while(e!=null)}const Ze=g.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Je(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function ye(e,t,o,n){const l=u.ref(!1),m=u.ref(!1);let i=null;const a={},h=n==="dialog"&&Je(e);function d(w){if(w===!0){ue(a),m.value=!0;return}m.value=!1,l.value===!1&&(h===!1&&i===null&&(i=Ge(!1,n)),l.value=!0,A.push(e.proxy),ze(a))}function c(w){if(m.value=!1,w!==!0)return;ue(a),l.value=!1;const y=A.indexOf(e.proxy);y!==-1&&A.splice(y,1),i!==null&&(Xe(i),i=null)}return u.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,B.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:l,portalIsAccessible:m,renderPortal:()=>h===!0?o():l.value===!0?[u.h(u.Teleport,{to:i},u.h(Ze,o))]:void 0}}const xe={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function be(e,t=()=>{},o=()=>{}){return{transitionProps:u.computed(()=>{const n=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:u.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Ee(){let e;const t=u.getCurrentInstance();function o(){e=void 0}return u.onDeactivated(o),u.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,u.nextTick(()=>{e===n&&(g.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function Te(){let e=null;const t=u.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return u.onDeactivated(o),u.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,l){o(),g.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,n()},l))}}}const et=[Element,String],tt=[null,document,document.body,document.scrollingElement,document.documentElement];function ot(e,t){let o=g.getElement(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return tt.includes(o)?window:o}function nt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function lt(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let I;function it(){if(I!==void 0)return I;const e=document.createElement("p"),t=document.createElement("div");g.css(e,{width:"100%",height:"200px"}),g.css(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),I=o-n,I}function ut(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const W=[];let $;function rt(e){$=e.keyCode===27}function at(){$===!0&&($=!1)}function st(e){$===!0&&($=!1,g.isKeyCode(e,27)===!0&&W[W.length-1](e))}function Ce(e){window[e]("keydown",rt),window[e]("blur",at),window[e]("keyup",st),$=!1}function Pe(e){B.client.is.desktop===!0&&(W.push(e),W.length===1&&Ce("addEventListener"))}function G(e){const t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&Ce("removeEventListener"))}const{notPassiveCapture:z}=g.listenOpts,q=[];function O(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=A.length-1;for(;o>=0;){const n=A[o].$;if(n.type.name==="QTooltip"){o--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;o--}for(let n=q.length-1;n>=0;n--){const l=q[n];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function ct(e){q.push(e),q.length===1&&(document.addEventListener("mousedown",O,z),document.addEventListener("touchstart",O,z))}function ae(e){const t=q.findIndex(o=>o===e);t!==-1&&(q.splice(t,1),q.length===0&&(document.removeEventListener("mousedown",O,z),document.removeEventListener("touchstart",O,z)))}let se,ce;function de(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function dt(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const X={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{X[`${e}#ltr`]=e,X[`${e}#rtl`]=e});function fe(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:X[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ft(e,t){let{top:o,left:n,right:l,bottom:m,width:i,height:a}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],n-=t[0],m+=t[1],l+=t[0],i+=t[0],a+=t[1]),{top:o,bottom:m,height:a,left:n,right:l,width:i,middle:n+(l-n)/2,center:o+(m-o)/2}}function mt(e,t,o){let{top:n,left:l}=e.getBoundingClientRect();return n+=t.top,l+=t.left,o!==void 0&&(n+=o[1],l+=o[0]),{top:n,bottom:n+1,height:1,left:l,right:l+1,width:1,middle:l,center:n}}function ht(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function me(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function Se(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Se(e,t+1)},10);return}const{targetEl:o,offset:n,anchorEl:l,anchorOrigin:m,selfOrigin:i,absoluteOffset:a,fit:h,cover:d,maxHeight:c,maxWidth:w}=e;if(B.client.is.ios===!0&&window.visualViewport!==void 0){const F=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==se&&(F.setProperty("--q-pe-left",E+"px"),se=E),T!==ce&&(F.setProperty("--q-pe-top",T+"px"),ce=T)}const{scrollLeft:y,scrollTop:r}=o,f=a===void 0?ft(l,d===!0?[0,0]:n):mt(l,a,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:w,maxHeight:c,visibility:"visible"});const{offsetWidth:H,offsetHeight:C}=o,{elWidth:M,elHeight:v}=h===!0||d===!0?{elWidth:Math.max(f.width,H),elHeight:d===!0?Math.max(f.height,C):C}:{elWidth:H,elHeight:C};let p={maxWidth:w,maxHeight:c};(h===!0||d===!0)&&(p.minWidth=f.width+"px",d===!0&&(p.minHeight=f.height+"px")),Object.assign(o.style,p);const P=ht(M,v);let x=me(f,P,m,i);if(a===void 0||n===void 0)N(x,f,P,m,i);else{const{top:F,left:E}=x;N(x,f,P,m,i);let T=!1;if(x.top!==F){T=!0;const S=2*n[1];f.center=f.top-=S,f.bottom-=S+2}if(x.left!==E){T=!0;const S=2*n[0];f.middle=f.left-=S,f.right-=S+2}T===!0&&(x=me(f,P,m,i),N(x,f,P,m,i))}p={top:x.top+"px",left:x.left+"px"},x.maxHeight!==void 0&&(p.maxHeight=x.maxHeight+"px",f.height>x.maxHeight&&(p.minHeight=p.maxHeight)),x.maxWidth!==void 0&&(p.maxWidth=x.maxWidth+"px",f.width>x.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(o.style,p),o.scrollTop!==r&&(o.scrollTop=r),o.scrollLeft!==y&&(o.scrollLeft=y)}function N(e,t,o,n,l){const m=o.bottom,i=o.right,a=it(),h=window.innerHeight-a,d=document.body.clientWidth;if(e.top<0||e.top+m>h)if(l.vertical==="center")e.top=t[n.vertical]>h/2?Math.max(0,h-m):0,e.maxHeight=Math.min(m,h);else if(t[n.vertical]>h/2){const c=Math.min(h,n.vertical==="center"?t.center:n.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(m,c),e.top=Math.max(0,c-m)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(m,h-e.top);if(e.left<0||e.left+i>d)if(e.maxWidth=Math.min(i,d),l.horizontal==="middle")e.left=t[n.horizontal]>d/2?Math.max(0,d-i):0;else if(t[n.horizontal]>d/2){const c=Math.min(d,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,d-e.left)}const vt=g.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Qe,...ge,...g.useDarkProps,...xe,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:de},self:{type:String,validator:de},offset:{type:Array,validator:dt},scrollTarget:et,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...pe,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let l=null,m,i,a;const h=u.getCurrentInstance(),{proxy:d}=h,{$q:c}=d,w=u.ref(null),y=u.ref(!1),r=u.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=g.useDark(e,c),{registerTick:H,removeTick:C}=Ee(),{registerTimeout:M}=Te(),{transitionProps:v,transitionStyle:p}=be(e),{localScrollTarget:P,changeScrollEvent:x,unconfigureScrollTarget:F}=_e(e,oe),{anchorEl:E,canShow:T}=Ue({showing:y}),{hide:S}=we({showing:y,canShow:T,handleShow:qe,handleHide:Be,hideOnRouteChange:r,processOnMount:!0}),{showPortal:Y,hidePortal:Z,renderPortal:He}=ye(h,w,$e,"menu"),V={anchorEl:E,innerRef:w,onClickOutside(s){if(e.persistent!==!0&&y.value===!0)return S(s),(s.type==="touchstart"||s.target.classList.contains("q-dialog__backdrop"))&&g.stopAndPrevent(s),!0}},J=u.computed(()=>fe(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),Me=u.computed(()=>e.cover===!0?J.value:fe(e.self||"top start",c.lang.rtl)),ke=u.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),We=u.computed(()=>e.autoClose===!0?{onClick:Fe}:{}),ee=u.computed(()=>y.value===!0&&e.persistent!==!0);u.watch(ee,s=>{s===!0?(Pe(Q),ct(V)):(G(Q),ae(V))});function K(){ve(()=>{let s=w.value;s&&s.contains(document.activeElement)!==!0&&(s=s.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||s.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||s.querySelector("[autofocus], [data-autofocus]")||s,s.focus({preventScroll:!0}))})}function qe(s){if(l=e.noRefocus===!1?document.activeElement:null,B.addFocusout(ne),Y(),oe(),m=void 0,s!==void 0&&(e.touchPosition||e.contextMenu)){const U=g.position(s);if(U.left!==void 0){const{top:Le,left:Ae}=E.value.getBoundingClientRect();m={left:U.left-Ae,top:U.top-Le}}}i===void 0&&(i=u.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,L)),e.noFocus!==!0&&document.activeElement.blur(),H(()=>{L(),e.noFocus!==!0&&K()}),M(()=>{c.platform.is.ios===!0&&(a=e.autoClose,w.value.click()),L(),Y(!0),o("show",s)},e.transitionDuration)}function Be(s){C(),Z(),te(!0),l!==null&&(s===void 0||s.qClickOutside!==!0)&&((((s==null?void 0:s.type.indexOf("key"))===0?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null),M(()=>{Z(!0),o("hide",s)},e.transitionDuration)}function te(s){m=void 0,i!==void 0&&(i(),i=void 0),(s===!0||y.value===!0)&&(B.removeFocusout(ne),F(),ae(V),G(Q)),s!==!0&&(l=null)}function oe(){(E.value!==null||e.scrollTarget!==void 0)&&(P.value=ot(E.value,e.scrollTarget),x(P.value,L))}function Fe(s){a!==!0?(Ye(d,s),o("click",s)):a=!1}function ne(s){ee.value===!0&&e.noFocus!==!0&&g.childHasFocus(w.value,s.target)!==!0&&K()}function Q(s){e.noEscDismiss!==!0&&(o("escapeKey"),S(s))}function L(){Se({targetEl:w.value,offset:e.offset,anchorEl:E.value,anchorOrigin:J.value,selfOrigin:Me.value,absoluteOffset:m,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function $e(){return u.h(u.Transition,v.value,()=>y.value===!0?u.h("div",{role:"menu",...n,ref:w,tabindex:-1,class:["q-menu q-position-engine scroll"+ke.value,n.class],style:[n.style,p.value],...We.value},g.hSlot(t.default)):null)}return u.onBeforeUnmount(te),Object.assign(d,{focus:K,updatePosition:L}),He}});exports.QMenu=vt;exports.addEscapeKey=Pe;exports.addFocusFn=ve;exports.getHorizontalScrollPosition=lt;exports.getVerticalScrollPosition=nt;exports.hasScrollbar=ut;exports.removeEscapeKey=G;exports.removeFocusFn=Oe;exports.useId=Ie;exports.useModelToggle=we;exports.useModelToggleEmits=pe;exports.useModelToggleProps=ge;exports.usePortal=ye;exports.useTick=Ee;exports.useTimeout=Te;exports.useTransition=be;exports.useTransitionProps=xe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as T, onMounted as oe, watch as S, computed as E, getCurrentInstance as R, nextTick as I, onBeforeUnmount as z, onUnmounted as Ie, h as Q, Teleport as Qe, onDeactivated as Se, Transition as _e } from "vue";
|
|
2
2
|
import { i as Ne, P as Ke, b as je, c as Ce, r as Ue, a as Ge } from "./focusout-DjvPXP_b.js";
|
|
3
|
-
import {
|
|
3
|
+
import { p as ce, z as de, i as Pe, B as Xe, n as J, D as Ye, E as X, c as He, F as ke, G as Ze, H as fe, a as Je, b as et, I as tt, h as ot, q as nt, s as lt } from "./index-DqEqQq1H.js";
|
|
4
4
|
let Y, V = 0;
|
|
5
5
|
const y = new Array(256);
|
|
6
6
|
for (let e = 0; e < 256; e++)
|
|
@@ -102,17 +102,16 @@ function ft({
|
|
|
102
102
|
Pe(u, 13) === !0 && c.toggle(u);
|
|
103
103
|
},
|
|
104
104
|
contextClick(u) {
|
|
105
|
-
l.hide(u),
|
|
105
|
+
l.hide(u), ce(u), I(() => {
|
|
106
106
|
l.show(u), u.qAnchorHandled = !0;
|
|
107
107
|
});
|
|
108
108
|
},
|
|
109
|
-
prevent:
|
|
109
|
+
prevent: ce,
|
|
110
110
|
mobileTouch(u) {
|
|
111
|
-
if (c.mobileCleanup(u), m(u) !== !0)
|
|
112
|
-
return;
|
|
111
|
+
if (c.mobileCleanup(u), m(u) !== !0) return;
|
|
113
112
|
l.hide(u), i.value.classList.add("non-selectable");
|
|
114
113
|
const d = u.target;
|
|
115
|
-
|
|
114
|
+
de(c, "anchor", [
|
|
116
115
|
[d, "touchmove", "mobileCleanup", "passive"],
|
|
117
116
|
[d, "touchend", "mobileCleanup", "passive"],
|
|
118
117
|
[d, "touchcancel", "mobileCleanup", "passive"],
|
|
@@ -135,9 +134,9 @@ function ft({
|
|
|
135
134
|
] : d = [
|
|
136
135
|
[i.value, "click", "toggle", "passive"],
|
|
137
136
|
[i.value, "keyup", "toggleKey", "passive"]
|
|
138
|
-
],
|
|
137
|
+
], de(c, "anchor", d);
|
|
139
138
|
});
|
|
140
|
-
function
|
|
139
|
+
function s() {
|
|
141
140
|
Xe(c, "anchor");
|
|
142
141
|
}
|
|
143
142
|
function g(u) {
|
|
@@ -162,15 +161,15 @@ function ft({
|
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
return S(() => n.contextMenu, (u) => {
|
|
165
|
-
i.value !== null && (
|
|
164
|
+
i.value !== null && (s(), o(u));
|
|
166
165
|
}), S(() => n.target, () => {
|
|
167
|
-
i.value !== null &&
|
|
166
|
+
i.value !== null && s(), p();
|
|
168
167
|
}), S(() => n.noParentEvent, (u) => {
|
|
169
|
-
i.value !== null && (u === !0 ?
|
|
168
|
+
i.value !== null && (u === !0 ? s() : o());
|
|
170
169
|
}), oe(() => {
|
|
171
170
|
p(), t !== !0 && n.modelValue === !0 && i.value === null && f("update:modelValue", !1);
|
|
172
171
|
}), z(() => {
|
|
173
|
-
a !== null && clearTimeout(a),
|
|
172
|
+
a !== null && clearTimeout(a), s();
|
|
174
173
|
}), {
|
|
175
174
|
anchorEl: i,
|
|
176
175
|
canShow: m,
|
|
@@ -181,8 +180,8 @@ function mt(e, t) {
|
|
|
181
180
|
const o = T(null);
|
|
182
181
|
let n;
|
|
183
182
|
function l(a, m) {
|
|
184
|
-
const c = `${m !== void 0 ? "add" : "remove"}EventListener`,
|
|
185
|
-
a !== window && a[c]("scroll",
|
|
183
|
+
const c = `${m !== void 0 ? "add" : "remove"}EventListener`, s = m !== void 0 ? m : n;
|
|
184
|
+
a !== window && a[c]("scroll", s, J.passive), window[c]("scroll", s, J.passive), n = m;
|
|
186
185
|
}
|
|
187
186
|
function f() {
|
|
188
187
|
o.value !== null && (l(o.value), o.value = null);
|
|
@@ -222,34 +221,32 @@ function gt({
|
|
|
222
221
|
// optional
|
|
223
222
|
}) {
|
|
224
223
|
const i = R(), { props: a, emit: m, proxy: c } = i;
|
|
225
|
-
let
|
|
224
|
+
let s;
|
|
226
225
|
function g(h) {
|
|
227
226
|
e.value === !0 ? d(h) : p(h);
|
|
228
227
|
}
|
|
229
228
|
function p(h) {
|
|
230
|
-
if (a.disable === !0 || h
|
|
231
|
-
return;
|
|
229
|
+
if (a.disable === !0 || (h == null ? void 0 : h.qAnchorHandled) === !0 || t !== void 0 && t(h) !== !0) return;
|
|
232
230
|
const v = a["onUpdate:modelValue"] !== void 0;
|
|
233
|
-
v === !0 && (m("update:modelValue", !0),
|
|
234
|
-
|
|
231
|
+
v === !0 && (m("update:modelValue", !0), s = h, I(() => {
|
|
232
|
+
s === h && (s = void 0);
|
|
235
233
|
})), (a.modelValue === null || v === !1) && u(h);
|
|
236
234
|
}
|
|
237
235
|
function u(h) {
|
|
238
236
|
e.value !== !0 && (e.value = !0, m("beforeShow", h), n !== void 0 ? n(h) : m("show", h));
|
|
239
237
|
}
|
|
240
238
|
function d(h) {
|
|
241
|
-
if (a.disable === !0)
|
|
242
|
-
return;
|
|
239
|
+
if (a.disable === !0) return;
|
|
243
240
|
const v = a["onUpdate:modelValue"] !== void 0;
|
|
244
|
-
v === !0 && (m("update:modelValue", !1),
|
|
245
|
-
|
|
241
|
+
v === !0 && (m("update:modelValue", !1), s = h, I(() => {
|
|
242
|
+
s === h && (s = void 0);
|
|
246
243
|
})), (a.modelValue === null || v === !1) && k(h);
|
|
247
244
|
}
|
|
248
245
|
function k(h) {
|
|
249
246
|
e.value !== !1 && (e.value = !1, m("beforeHide", h), l !== void 0 ? l(h) : m("hide", h));
|
|
250
247
|
}
|
|
251
248
|
function C(h) {
|
|
252
|
-
a.disable === !0 && h === !0 ? a["onUpdate:modelValue"] !== void 0 && m("update:modelValue", !1) : h === !0 !== e.value && (h === !0 ? u : k)(
|
|
249
|
+
a.disable === !0 && h === !0 ? a["onUpdate:modelValue"] !== void 0 && m("update:modelValue", !1) : h === !0 !== e.value && (h === !0 ? u : k)(s);
|
|
253
250
|
}
|
|
254
251
|
S(() => a.modelValue, C), o !== void 0 && Ye(i) === !0 && S(() => c.$route.fullPath, () => {
|
|
255
252
|
o.value === !0 && e.value === !0 && d();
|
|
@@ -272,7 +269,7 @@ function yt(e, t) {
|
|
|
272
269
|
function bt(e) {
|
|
273
270
|
e.remove();
|
|
274
271
|
}
|
|
275
|
-
const
|
|
272
|
+
const A = [];
|
|
276
273
|
function xt(e, t) {
|
|
277
274
|
do {
|
|
278
275
|
if (e.$options.name === "QMenu") {
|
|
@@ -280,7 +277,7 @@ function xt(e, t) {
|
|
|
280
277
|
return X(e);
|
|
281
278
|
} else if (e.__qPortal === !0) {
|
|
282
279
|
const o = X(e);
|
|
283
|
-
return o
|
|
280
|
+
return (o == null ? void 0 : o.$options.name) === "QPopupProxy" ? (e.hide(t), o) : e;
|
|
284
281
|
}
|
|
285
282
|
e = X(e);
|
|
286
283
|
} while (e != null);
|
|
@@ -310,19 +307,19 @@ function St(e, t, o, n) {
|
|
|
310
307
|
ve(a), f.value = !0;
|
|
311
308
|
return;
|
|
312
309
|
}
|
|
313
|
-
f.value = !1, l.value === !1 && (m === !1 && i === null && (i = yt(!1, n)), l.value = !0,
|
|
310
|
+
f.value = !1, l.value === !1 && (m === !1 && i === null && (i = yt(!1, n)), l.value = !0, A.push(e.proxy), at(a));
|
|
314
311
|
}
|
|
315
|
-
function
|
|
312
|
+
function s(g) {
|
|
316
313
|
if (f.value = !1, g !== !0) return;
|
|
317
314
|
ve(a), l.value = !1;
|
|
318
|
-
const p =
|
|
319
|
-
p !== -1 &&
|
|
315
|
+
const p = A.indexOf(e.proxy);
|
|
316
|
+
p !== -1 && A.splice(p, 1), i !== null && (bt(i), i = null);
|
|
320
317
|
}
|
|
321
318
|
return Ie(() => {
|
|
322
|
-
|
|
319
|
+
s(!0);
|
|
323
320
|
}), e.proxy.__qPortal = !0, je(e.proxy, "contentEl", () => t.value), {
|
|
324
321
|
showPortal: c,
|
|
325
|
-
hidePortal:
|
|
322
|
+
hidePortal: s,
|
|
326
323
|
portalIsActive: l,
|
|
327
324
|
portalIsAccessible: f,
|
|
328
325
|
renderPortal: () => m === !0 ? o() : l.value === !0 ? [Q(Qe, { to: i }, Q(Et, o))] : void 0
|
|
@@ -433,20 +430,20 @@ function Gt(e, t = !0) {
|
|
|
433
430
|
return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : t ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
|
|
434
431
|
}
|
|
435
432
|
const q = [];
|
|
436
|
-
let
|
|
437
|
-
function
|
|
438
|
-
|
|
433
|
+
let F;
|
|
434
|
+
function Bt(e) {
|
|
435
|
+
F = e.keyCode === 27;
|
|
439
436
|
}
|
|
440
|
-
function
|
|
441
|
-
|
|
437
|
+
function Ft() {
|
|
438
|
+
F === !0 && (F = !1);
|
|
442
439
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
440
|
+
function Lt(e) {
|
|
441
|
+
F === !0 && (F = !1, Pe(e, 27) === !0 && q[q.length - 1](e));
|
|
445
442
|
}
|
|
446
443
|
function We(e) {
|
|
447
|
-
window[e]("keydown",
|
|
444
|
+
window[e]("keydown", Bt), window[e]("blur", Ft), window[e]("keyup", Lt), F = !1;
|
|
448
445
|
}
|
|
449
|
-
function
|
|
446
|
+
function At(e) {
|
|
450
447
|
Ce.is.desktop === !0 && (q.push(e), q.length === 1 && We("addEventListener"));
|
|
451
448
|
}
|
|
452
449
|
function pe(e) {
|
|
@@ -456,19 +453,17 @@ function pe(e) {
|
|
|
456
453
|
const { notPassiveCapture: _ } = J, $ = [];
|
|
457
454
|
function N(e) {
|
|
458
455
|
const t = e.target;
|
|
459
|
-
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
460
|
-
|
|
461
|
-
let o = B.length - 1;
|
|
456
|
+
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0) return;
|
|
457
|
+
let o = A.length - 1;
|
|
462
458
|
for (; o >= 0; ) {
|
|
463
|
-
const n =
|
|
459
|
+
const n = A[o].$;
|
|
464
460
|
if (n.type.name === "QTooltip") {
|
|
465
461
|
o--;
|
|
466
462
|
continue;
|
|
467
463
|
}
|
|
468
464
|
if (n.type.name !== "QDialog")
|
|
469
465
|
break;
|
|
470
|
-
if (n.props.seamless !== !0)
|
|
471
|
-
return;
|
|
466
|
+
if (n.props.seamless !== !0) return;
|
|
472
467
|
o--;
|
|
473
468
|
}
|
|
474
469
|
for (let n = $.length - 1; n >= 0; n--) {
|
|
@@ -553,8 +548,7 @@ function Te(e, t, o, n) {
|
|
|
553
548
|
};
|
|
554
549
|
}
|
|
555
550
|
function qe(e, t = 0) {
|
|
556
|
-
if (e.targetEl === null || e.anchorEl === null || t > 5)
|
|
557
|
-
return;
|
|
551
|
+
if (e.targetEl === null || e.anchorEl === null || t > 5) return;
|
|
558
552
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
559
553
|
setTimeout(() => {
|
|
560
554
|
qe(e, t + 1);
|
|
@@ -570,12 +564,12 @@ function qe(e, t = 0) {
|
|
|
570
564
|
absoluteOffset: a,
|
|
571
565
|
fit: m,
|
|
572
566
|
cover: c,
|
|
573
|
-
maxHeight:
|
|
567
|
+
maxHeight: s,
|
|
574
568
|
maxWidth: g
|
|
575
569
|
} = e;
|
|
576
570
|
if (Ce.is.ios === !0 && window.visualViewport !== void 0) {
|
|
577
|
-
const
|
|
578
|
-
b !== ye && (
|
|
571
|
+
const B = document.body.style, { offsetLeft: b, offsetTop: x } = window.visualViewport;
|
|
572
|
+
b !== ye && (B.setProperty("--q-pe-left", b + "px"), ye = b), x !== be && (B.setProperty("--q-pe-top", x + "px"), be = x);
|
|
579
573
|
}
|
|
580
574
|
const { scrollLeft: p, scrollTop: u } = o, d = a === void 0 ? zt(l, c === !0 ? [0, 0] : n) : Vt(l, a, n);
|
|
581
575
|
Object.assign(o.style, {
|
|
@@ -584,21 +578,21 @@ function qe(e, t = 0) {
|
|
|
584
578
|
minWidth: null,
|
|
585
579
|
minHeight: null,
|
|
586
580
|
maxWidth: g,
|
|
587
|
-
maxHeight:
|
|
581
|
+
maxHeight: s,
|
|
588
582
|
visibility: "visible"
|
|
589
583
|
});
|
|
590
584
|
const { offsetWidth: k, offsetHeight: C } = o, { elWidth: M, elHeight: h } = m === !0 || c === !0 ? { elWidth: Math.max(d.width, k), elHeight: c === !0 ? Math.max(d.height, C) : C } : { elWidth: k, elHeight: C };
|
|
591
|
-
let v = { maxWidth: g, maxHeight:
|
|
585
|
+
let v = { maxWidth: g, maxHeight: s };
|
|
592
586
|
(m === !0 || c === !0) && (v.minWidth = d.width + "px", c === !0 && (v.minHeight = d.height + "px")), Object.assign(o.style, v);
|
|
593
587
|
const P = Ot(M, h);
|
|
594
588
|
let w = Te(d, P, f, i);
|
|
595
589
|
if (a === void 0 || n === void 0)
|
|
596
590
|
Z(w, d, P, f, i);
|
|
597
591
|
else {
|
|
598
|
-
const { top:
|
|
592
|
+
const { top: B, left: b } = w;
|
|
599
593
|
Z(w, d, P, f, i);
|
|
600
594
|
let x = !1;
|
|
601
|
-
if (w.top !==
|
|
595
|
+
if (w.top !== B) {
|
|
602
596
|
x = !0;
|
|
603
597
|
const H = 2 * n[1];
|
|
604
598
|
d.center = d.top -= H, d.bottom -= H + 2;
|
|
@@ -621,11 +615,11 @@ function Z(e, t, o, n, l) {
|
|
|
621
615
|
if (l.vertical === "center")
|
|
622
616
|
e.top = t[n.vertical] > m / 2 ? Math.max(0, m - f) : 0, e.maxHeight = Math.min(f, m);
|
|
623
617
|
else if (t[n.vertical] > m / 2) {
|
|
624
|
-
const
|
|
618
|
+
const s = Math.min(
|
|
625
619
|
m,
|
|
626
620
|
n.vertical === "center" ? t.center : n.vertical === l.vertical ? t.bottom : t.top
|
|
627
621
|
);
|
|
628
|
-
e.maxHeight = Math.min(f,
|
|
622
|
+
e.maxHeight = Math.min(f, s), e.top = Math.max(0, s - f);
|
|
629
623
|
} else
|
|
630
624
|
e.top = Math.max(
|
|
631
625
|
0,
|
|
@@ -635,11 +629,11 @@ function Z(e, t, o, n, l) {
|
|
|
635
629
|
if (e.maxWidth = Math.min(i, c), l.horizontal === "middle")
|
|
636
630
|
e.left = t[n.horizontal] > c / 2 ? Math.max(0, c - i) : 0;
|
|
637
631
|
else if (t[n.horizontal] > c / 2) {
|
|
638
|
-
const
|
|
632
|
+
const s = Math.min(
|
|
639
633
|
c,
|
|
640
634
|
n.horizontal === "middle" ? t.middle : n.horizontal === l.horizontal ? t.right : t.left
|
|
641
635
|
);
|
|
642
|
-
e.maxWidth = Math.min(i,
|
|
636
|
+
e.maxWidth = Math.min(i, s), e.left = Math.max(0, s - e.maxWidth);
|
|
643
637
|
} else
|
|
644
638
|
e.left = Math.max(
|
|
645
639
|
0,
|
|
@@ -652,11 +646,12 @@ const Xt = He({
|
|
|
652
646
|
props: {
|
|
653
647
|
...dt,
|
|
654
648
|
...ht,
|
|
655
|
-
...
|
|
649
|
+
...Je,
|
|
656
650
|
...Ct,
|
|
657
651
|
persistent: Boolean,
|
|
658
652
|
autoClose: Boolean,
|
|
659
653
|
separateClosePopup: Boolean,
|
|
654
|
+
noEscDismiss: Boolean,
|
|
660
655
|
noRouteDismiss: Boolean,
|
|
661
656
|
noRefocus: Boolean,
|
|
662
657
|
noFocus: Boolean,
|
|
@@ -693,87 +688,87 @@ const Xt = He({
|
|
|
693
688
|
],
|
|
694
689
|
setup(e, { slots: t, emit: o, attrs: n }) {
|
|
695
690
|
let l = null, f, i, a;
|
|
696
|
-
const m = R(), { proxy: c } = m, { $q:
|
|
691
|
+
const m = R(), { proxy: c } = m, { $q: s } = c, g = T(null), p = T(!1), u = E(
|
|
697
692
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
698
|
-
), d =
|
|
693
|
+
), d = et(e, s), { registerTick: k, removeTick: C } = Ht(), { registerTimeout: M } = kt(), { transitionProps: h, transitionStyle: v } = Pt(e), { localScrollTarget: P, changeScrollEvent: w, unconfigureScrollTarget: B } = mt(e, re), { anchorEl: b, canShow: x } = ft({ showing: p }), { hide: H } = gt({
|
|
699
694
|
showing: p,
|
|
700
695
|
canShow: x,
|
|
701
|
-
handleShow:
|
|
696
|
+
handleShow: Ae,
|
|
702
697
|
handleHide: De,
|
|
703
698
|
hideOnRouteChange: u,
|
|
704
699
|
processOnMount: !0
|
|
705
700
|
}), { showPortal: ne, hidePortal: le, renderPortal: $e } = St(m, g, ze, "menu"), K = {
|
|
706
701
|
anchorEl: b,
|
|
707
702
|
innerRef: g,
|
|
708
|
-
onClickOutside(
|
|
703
|
+
onClickOutside(r) {
|
|
709
704
|
if (e.persistent !== !0 && p.value === !0)
|
|
710
|
-
return H(
|
|
711
|
-
(
|
|
705
|
+
return H(r), // always prevent touch event
|
|
706
|
+
(r.type === "touchstart" || r.target.classList.contains("q-dialog__backdrop")) && lt(r), !0;
|
|
712
707
|
}
|
|
713
708
|
}, ie = E(
|
|
714
709
|
() => Ee(
|
|
715
710
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
716
|
-
|
|
711
|
+
s.lang.rtl
|
|
717
712
|
)
|
|
718
|
-
),
|
|
713
|
+
), Be = E(() => e.cover === !0 ? ie.value : Ee(e.self || "top start", s.lang.rtl)), Fe = E(
|
|
719
714
|
() => (e.square === !0 ? " q-menu--square" : "") + (d.value === !0 ? " q-menu--dark q-dark" : "")
|
|
720
|
-
),
|
|
715
|
+
), Le = E(() => e.autoClose === !0 ? { onClick: Re } : {}), ue = E(
|
|
721
716
|
() => p.value === !0 && e.persistent !== !0
|
|
722
717
|
);
|
|
723
|
-
S(ue, (
|
|
724
|
-
|
|
718
|
+
S(ue, (r) => {
|
|
719
|
+
r === !0 ? (At(U), Dt(K)) : (pe(U), we(K));
|
|
725
720
|
});
|
|
726
721
|
function j() {
|
|
727
722
|
rt(() => {
|
|
728
|
-
let
|
|
729
|
-
|
|
723
|
+
let r = g.value;
|
|
724
|
+
r && r.contains(document.activeElement) !== !0 && (r = r.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || r.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || r.querySelector("[autofocus], [data-autofocus]") || r, r.focus({ preventScroll: !0 }));
|
|
730
725
|
});
|
|
731
726
|
}
|
|
732
|
-
function
|
|
733
|
-
if (l = e.noRefocus === !1 ? document.activeElement : null, Ge(se), ne(), re(), f = void 0,
|
|
734
|
-
const G = tt(
|
|
727
|
+
function Ae(r) {
|
|
728
|
+
if (l = e.noRefocus === !1 ? document.activeElement : null, Ge(se), ne(), re(), f = void 0, r !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
729
|
+
const G = tt(r);
|
|
735
730
|
if (G.left !== void 0) {
|
|
736
731
|
const { top: Ve, left: Oe } = b.value.getBoundingClientRect();
|
|
737
732
|
f = { left: G.left - Oe, top: G.top - Ve };
|
|
738
733
|
}
|
|
739
734
|
}
|
|
740
735
|
i === void 0 && (i = S(
|
|
741
|
-
() =>
|
|
742
|
-
|
|
736
|
+
() => s.screen.width + "|" + s.screen.height + "|" + e.self + "|" + e.anchor + "|" + s.lang.rtl,
|
|
737
|
+
L
|
|
743
738
|
)), e.noFocus !== !0 && document.activeElement.blur(), k(() => {
|
|
744
|
-
|
|
739
|
+
L(), e.noFocus !== !0 && j();
|
|
745
740
|
}), M(() => {
|
|
746
|
-
|
|
741
|
+
s.platform.is.ios === !0 && (a = e.autoClose, g.value.click()), L(), ne(!0), o("show", r);
|
|
747
742
|
}, e.transitionDuration);
|
|
748
743
|
}
|
|
749
|
-
function De(
|
|
744
|
+
function De(r) {
|
|
750
745
|
C(), le(), ae(!0), l !== null && // menu was hidden from code or ESC plugin
|
|
751
|
-
(
|
|
752
|
-
le(!0), o("hide",
|
|
746
|
+
(r === void 0 || r.qClickOutside !== !0) && ((((r == null ? void 0 : r.type.indexOf("key")) === 0 ? l.closest('[tabindex]:not([tabindex^="-"])') : void 0) || l).focus(), l = null), M(() => {
|
|
747
|
+
le(!0), o("hide", r);
|
|
753
748
|
}, e.transitionDuration);
|
|
754
749
|
}
|
|
755
|
-
function ae(
|
|
756
|
-
f = void 0, i !== void 0 && (i(), i = void 0), (
|
|
750
|
+
function ae(r) {
|
|
751
|
+
f = void 0, i !== void 0 && (i(), i = void 0), (r === !0 || p.value === !0) && (Ue(se), B(), we(K), pe(U)), r !== !0 && (l = null);
|
|
757
752
|
}
|
|
758
753
|
function re() {
|
|
759
|
-
(b.value !== null || e.scrollTarget !== void 0) && (P.value = qt(b.value, e.scrollTarget), w(P.value,
|
|
754
|
+
(b.value !== null || e.scrollTarget !== void 0) && (P.value = qt(b.value, e.scrollTarget), w(P.value, L));
|
|
760
755
|
}
|
|
761
|
-
function Re(
|
|
762
|
-
a !== !0 ? (xt(c,
|
|
756
|
+
function Re(r) {
|
|
757
|
+
a !== !0 ? (xt(c, r), o("click", r)) : a = !1;
|
|
763
758
|
}
|
|
764
|
-
function se(
|
|
765
|
-
ue.value === !0 && e.noFocus !== !0 &&
|
|
759
|
+
function se(r) {
|
|
760
|
+
ue.value === !0 && e.noFocus !== !0 && nt(g.value, r.target) !== !0 && j();
|
|
766
761
|
}
|
|
767
|
-
function U(
|
|
768
|
-
o("escapeKey"), H(
|
|
762
|
+
function U(r) {
|
|
763
|
+
e.noEscDismiss !== !0 && (o("escapeKey"), H(r));
|
|
769
764
|
}
|
|
770
|
-
function
|
|
765
|
+
function L() {
|
|
771
766
|
qe({
|
|
772
767
|
targetEl: g.value,
|
|
773
768
|
offset: e.offset,
|
|
774
769
|
anchorEl: b.value,
|
|
775
770
|
anchorOrigin: ie.value,
|
|
776
|
-
selfOrigin:
|
|
771
|
+
selfOrigin: Be.value,
|
|
777
772
|
absoluteOffset: f,
|
|
778
773
|
fit: e.fit,
|
|
779
774
|
cover: e.cover,
|
|
@@ -791,36 +786,36 @@ const Xt = He({
|
|
|
791
786
|
ref: g,
|
|
792
787
|
tabindex: -1,
|
|
793
788
|
class: [
|
|
794
|
-
"q-menu q-position-engine scroll" +
|
|
789
|
+
"q-menu q-position-engine scroll" + Fe.value,
|
|
795
790
|
n.class
|
|
796
791
|
],
|
|
797
792
|
style: [
|
|
798
793
|
n.style,
|
|
799
794
|
v.value
|
|
800
795
|
],
|
|
801
|
-
...
|
|
802
|
-
},
|
|
796
|
+
...Le.value
|
|
797
|
+
}, ot(t.default)) : null
|
|
803
798
|
);
|
|
804
799
|
}
|
|
805
|
-
return z(ae), Object.assign(c, { focus: j, updatePosition:
|
|
800
|
+
return z(ae), Object.assign(c, { focus: j, updatePosition: L }), $e;
|
|
806
801
|
}
|
|
807
802
|
});
|
|
808
803
|
export {
|
|
809
804
|
Xt as Q,
|
|
810
805
|
rt as a,
|
|
811
806
|
jt as b,
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
807
|
+
vt as c,
|
|
808
|
+
Ct as d,
|
|
809
|
+
ht as e,
|
|
810
|
+
kt as f,
|
|
816
811
|
Ut as g,
|
|
817
812
|
Gt as h,
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
813
|
+
Ht as i,
|
|
814
|
+
Pt as j,
|
|
815
|
+
St as k,
|
|
816
|
+
gt as l,
|
|
817
|
+
pe as m,
|
|
818
|
+
At as n,
|
|
824
819
|
Kt as r,
|
|
825
820
|
Nt as u
|
|
826
821
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),Z={PRIMARY:"primary",INFO:"info"},b={SM:"sm",MD:"md",LG:"lg"},Pe={[b.SM]:"3px 9px",[b.MD]:"5px 12px",[b.LG]:"9px 20px"},X={xs:18,sm:24,md:32,lg:38,xl:46},U={size:String};function H(e,n=X){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function N(e){return t.markRaw(t.defineComponent(e))}function Re(e){return t.markRaw(e)}function se(e,n){return e!==void 0&&e()||n}function _e(e,n){if(e!==void 0){const a=e();if(a!=null)return a.slice()}return n}function M(e,n){return e!==void 0?n.concat(e()):n}function Ae(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function Me(e,n,a,o,l,s){n.key=o+l;const r=t.h(e,n,a);return l===!0?t.withDirectives(r,s()):r}const ee="0 0 24 24",G=e=>e,Y=e=>`ionicons ${e}`,ce={"mdi-":e=>`mdi ${e}`,"icon-":G,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Y,"ion-ios":Y,"ion-logo":Y,"iconfont ":G,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":G},de={o_:"-outlined",r_:"-round",s_:"-sharp"},fe={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ze=new RegExp("^("+Object.keys(ce).join("|")+")"),De=new RegExp("^("+Object.keys(de).join("|")+")"),te=new RegExp("^("+Object.keys(fe).join("|")+")"),Te=/^[Mm]\s?[-+]?\.?\d/,Oe=/^img:/,Ie=/^svguse:/,Ve=/^ion-/,Ne=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,W=N({name:"QIcon",props:{...U,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=H(e),l=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),s=t.computed(()=>{let r,i=e.name;if(i==="none"||!i)return{none:!0};if(a.iconMapFn!==null){const f=a.iconMapFn(i);if(f!==void 0)if(f.icon!==void 0){if(i=f.icon,i==="none"||!i)return{none:!0}}else return{cls:f.cls,content:f.content!==void 0?f.content:" "}}if(Te.test(i)===!0){const[f,k=ee]=i.split("|");return{svg:!0,viewBox:k,nodes:f.split("&&").map(c=>{const[B,d,m]=c.split("@@");return t.h("path",{style:d,d:B,transform:m})})}}if(Oe.test(i)===!0)return{img:!0,src:i.substring(4)};if(Ie.test(i)===!0){const[f,k=ee]=i.split("|");return{svguse:!0,src:f.substring(7),viewBox:k}}let C=" ";const y=i.match(ze);if(y!==null)r=ce[y[1]](i);else if(Ne.test(i)===!0)r=i;else if(Ve.test(i)===!0)r=`ionicons ion-${a.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(te.test(i)===!0){r="notranslate material-symbols";const f=i.match(te);f!==null&&(i=i.substring(6),r+=fe[f[1]]),C=i}else{r="notranslate material-icons";const f=i.match(De);f!==null&&(i=i.substring(2),r+=de[f[1]]),C=i}return{cls:r,content:C}});return()=>{const r={class:l.value,style:o.value,"aria-hidden":"true"};return s.value.none===!0?t.h(e.tag,r,se(n.default)):s.value.img===!0?t.h(e.tag,r,M(n.default,[t.h("img",{src:s.value.src})])):s.value.svg===!0?t.h(e.tag,r,M(n.default,[t.h("svg",{viewBox:s.value.viewBox||"0 0 24 24"},s.value.nodes)])):s.value.svguse===!0?t.h(e.tag,r,M(n.default,[t.h("svg",{viewBox:s.value.viewBox},[t.h("use",{"xlink:href":s.value.src})])])):(s.value.cls!==void 0&&(r.class+=" "+s.value.cls),t.h(e.tag,r,M(n.default,[s.value.content])))}}}),je={size:{type:[String,Number],default:"1em"},color:String};function Ke(e){return{cSize:t.computed(()=>e.size in X?`${X[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const ve=N({name:"QSpinner",props:{...je,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:a}=Ke(e);return()=>t.h("svg",{class:a.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function me(e,n){const a=e.style;for(const o in n)a[o]=n[o]}function Fe(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function Qe(e,n){if(e==null||e.contains(n)===!0)return!0;for(let a=e.nextElementSibling;a!==null;a=a.nextElementSibling)if(a.contains(n))return!0;return!1}const j={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(j,{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 Ue(){}function ge(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 He(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let a=e.target;for(;a;){if(n.push(a),a.tagName==="HTML")return n.push(document),n.push(window),n;a=a.parentElement}}function J(e){e.stopPropagation()}function pe(e){e.cancelable!==!1&&e.preventDefault()}function A(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function he(e,n,a){const o=`__q_${n}_evt`;e[o]=e[o]!==void 0?e[o].concat(a):a,a.forEach(l=>{l[0].addEventListener(l[1],e[l[2]],j[l[3]])})}function be(e,n){const a=`__q_${n}_evt`;e[a]!==void 0&&(e[a].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],j[o[3]])}),e[a]=void 0)}function ye(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Q(e,n){return ye(e)===!0?!1:[].concat(n).includes(e.keyCode)}function Ge(e,n=250){let a=!1,o;return function(){return a===!1&&(a=!0,setTimeout(()=>{a=!1},n),o=e.apply(this,arguments)),o}}function ne(e,n,a,o){a.modifiers.stop===!0&&J(e);const l=a.modifiers.color;let s=a.modifiers.center;s=s===!0||o===!0;const r=document.createElement("span"),i=document.createElement("span"),C=ge(e),{left:y,top:f,width:k,height:c}=n.getBoundingClientRect(),B=Math.sqrt(k*k+c*c),d=B/2,m=`${(k-B)/2}px`,v=s?m:`${C.left-y-d}px`,g=`${(c-B)/2}px`,$=s?g:`${C.top-f-d}px`;i.className="q-ripple__inner",me(i,{height:`${B}px`,width:`${B}px`,transform:`translate3d(${v},${$},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${l?" text-"+l:""}`,r.setAttribute("dir","ltr"),r.appendChild(i),n.appendChild(r);const S=()=>{r.remove(),clearTimeout(q)};a.abort.push(S);let q=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${m},${g},0) scale3d(1,1,1)`,i.style.opacity=.2,q=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,q=setTimeout(()=>{r.remove(),a.abort.splice(a.abort.indexOf(S),1)},275)},250)},50)}function oe(e,{modifiers:n,value:a,arg:o}){const l=Object.assign({},e.cfg.ripple,n,a);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||o,keyCodes:[].concat(l.keyCodes||13)}}const ke=Re({name:"ripple",beforeMount(e,n){const a=n.instance.$.appContext.config.globalProperties.$q.config||{};if(a.ripple===!1)return;const o={cfg:a,enabled:n.value!==!1,modifiers:{},abort:[],start(l){o.enabled===!0&&l.qSkipRipple!==!0&&l.type===(o.modifiers.early===!0?"pointerdown":"click")&&ne(l,e,o,l.qKeyEvent===!0)},keystart:Ge(l=>{o.enabled===!0&&l.qSkipRipple!==!0&&Q(l,o.modifiers.keyCodes)===!0&&l.type===`key${o.modifiers.early===!0?"down":"up"}`&&ne(l,e,o,!0)},300)};oe(o,n),e.__qripple=o,he(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const a=e.__qripple;a!==void 0&&(a.enabled=n.value!==!1,a.enabled===!0&&Object(n.value)===n.value&&oe(a,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(a=>{a()}),be(n,"main"),delete e._qripple)}}),$e={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ye=Object.keys($e),Xe={align:{type:String,validator:e=>Ye.includes(e)}};function We(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${$e[n]}`})}function Ze(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function Be(e){return e.appContext.config.globalProperties.$router!==void 0}function Je(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ae(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function le(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function et(e,n){for(const a in n){const o=n[a],l=e[a];if(typeof o=="string"){if(o!==l)return!1}else if(Array.isArray(l)===!1||l.length!==o.length||o.some((s,r)=>s!==l[r]))return!1}return!0}function re(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((a,o)=>a===n[o]):e.length===1&&e[0]===n}function tt(e,n){return Array.isArray(e)===!0?re(e,n):Array.isArray(n)===!0?re(n,e):e===n}function nt(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(tt(e[a],n[a])===!1)return!1;return!0}const Ce={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ot={...Ce,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Se({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const a=t.getCurrentInstance(),{props:o,proxy:l,emit:s}=a,r=Be(a),i=t.computed(()=>o.disable!==!0&&o.href!==void 0),C=n===!0?t.computed(()=>r===!0&&o.disable!==!0&&i.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):t.computed(()=>r===!0&&i.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),y=t.computed(()=>C.value===!0?$(o.to):null),f=t.computed(()=>y.value!==null),k=t.computed(()=>i.value===!0||f.value===!0),c=t.computed(()=>o.type==="a"||k.value===!0?"a":o.tag||e||"div"),B=t.computed(()=>i.value===!0?{href:o.href,target:o.target}:f.value===!0?{href:y.value.href,target:o.target}:{}),d=t.computed(()=>{if(f.value===!1)return-1;const{matched:p}=y.value,{length:x}=p,w=p[x-1];if(w===void 0)return-1;const P=l.$route.matched;if(P.length===0)return-1;const R=P.findIndex(le.bind(null,w));if(R!==-1)return R;const F=ae(p[x-2]);return x>1&&ae(w)===F&&P[P.length-1].path!==F?P.findIndex(le.bind(null,p[x-2])):R}),m=t.computed(()=>f.value===!0&&d.value!==-1&&et(l.$route.params,y.value.params)),v=t.computed(()=>m.value===!0&&d.value===l.$route.matched.length-1&&nt(l.$route.params,y.value.params)),g=t.computed(()=>f.value===!0?v.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":m.value===!0?` ${o.activeClass}`:"":"");function $(p){try{return l.$router.resolve(p)}catch{}return null}function S(p,{returnRouterError:x,to:w=o.to,replace:P=o.replace}={}){if(o.disable===!0)return p.preventDefault(),Promise.resolve(!1);if(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey||p.button!==void 0&&p.button!==0||o.target==="_blank")return Promise.resolve(!1);p.preventDefault();const R=l.$router[P===!0?"replace":"push"](w);return x===!0?R:R.then(()=>{}).catch(()=>{})}function q(p){if(f.value===!0){const x=w=>S(p,w);s("click",p,x),p.defaultPrevented!==!0&&x()}else s("click",p)}return{hasRouterLink:f,hasHrefLink:i,hasLink:k,linkTag:c,resolvedLink:y,linkIsActive:m,linkIsExactActive:v,linkClass:g,linkAttrs:B,getLink:$,navigateToRouterLink:S,navigateOnClick:q}}const ie={none:0,xs:4,sm:8,md:16,lg:24,xl:32},at={xs:8,sm:10,md:14,lg:20,xl:24},lt=["button","submit","reset"],rt=/[^\s]\/[^\s]/,it=["flat","outline","push","unelevated"];function qe(e,n){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":n}function ut(e){const n=qe(e);return n!==void 0?{[n]:!0}:{}}const xe={...U,...Ce,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...it.reduce((e,n)=>(e[n]=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:{...Xe.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},st={...xe,round:Boolean};function ct(e){const n=H(e,at),a=We(e),{hasRouterLink:o,hasLink:l,linkTag:s,linkAttrs:r,navigateOnClick:i}=Se({fallbackTag:"button"}),C=t.computed(()=>{const v=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},v,{padding:e.padding.split(/\s+/).map(g=>g in ie?ie[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):v}),y=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),f=t.computed(()=>e.disable!==!0&&e.loading!==!0),k=t.computed(()=>f.value===!0?e.tabindex||0:-1),c=t.computed(()=>qe(e,"standard")),B=t.computed(()=>{const v={tabindex:k.value};return l.value===!0?Object.assign(v,r.value):lt.includes(e.type)===!0&&(v.type=e.type),s.value==="a"?(e.disable===!0?v["aria-disabled"]="true":v.href===void 0&&(v.role="button"),o.value!==!0&&rt.test(e.type)===!0&&(v.type=e.type)):e.disable===!0&&(v.disabled="",v["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(v,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),v}),d=t.computed(()=>{let v;e.color!==void 0?e.flat===!0||e.outline===!0?v=`text-${e.textColor||e.color}`:v=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(v=`text-${e.textColor}`);const g=e.round===!0?"round":`rectangle${y.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${c.value} q-btn--${g}`+(v!==void 0?" "+v:"")+(f.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":"")}),m=t.computed(()=>a.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:d,style:C,innerClasses:m,attributes:B,hasLink:l,linkTag:s,navigateOnClick:i,isActionable:f}}const{passiveCapture:E}=j;let z=null,D=null,T=null;const Ee=N({name:"QBtn",props:{...st,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:a}){const{proxy:o}=t.getCurrentInstance(),{classes:l,style:s,innerClasses:r,attributes:i,hasLink:C,linkTag:y,navigateOnClick:f,isActionable:k}=ct(e),c=t.ref(null),B=t.ref(null);let d=null,m,v=null;const g=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),$=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),S=t.computed(()=>({center:e.round})),q=t.computed(()=>{const u=Math.max(0,Math.min(100,e.percentage));return u>0?{transition:"transform 0.6s",transform:`translateX(${u-100}%)`}:{}}),p=t.computed(()=>{if(e.loading===!0)return{onMousedown:I,onTouchstart:I,onClick:I,onKeydown:I,onKeyup:I};if(k.value===!0){const u={onClick:w,onKeydown:P,onMousedown:F};if(o.$q.platform.has.touch===!0){const h=e.onTouchstart!==void 0?"":"Passive";u[`onTouchstart${h}`]=R}return u}return{onClick:A}}),x=t.computed(()=>({ref:c,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:s.value,...i.value,...p.value}));function w(u){if(c.value!==null){if(u!==void 0){if(u.defaultPrevented===!0)return;const h=document.activeElement;if(e.type==="submit"&&h!==document.body&&c.value.contains(h)===!1&&h.contains(c.value)===!1){u.qAvoidFocus!==!0&&c.value.focus();const _=()=>{var V;document.removeEventListener("keydown",A,!0),document.removeEventListener("keyup",_,E),(V=c.value)==null||V.removeEventListener("blur",_,E)};document.addEventListener("keydown",A,!0),document.addEventListener("keyup",_,E),c.value.addEventListener("blur",_,E)}}f(u)}}function P(u){c.value!==null&&(a("keydown",u),Q(u,[13,32])===!0&&D!==c.value&&(D!==null&&O(),u.defaultPrevented!==!0&&(u.qAvoidFocus!==!0&&c.value.focus(),D=c.value,c.value.classList.add("q-btn--active"),document.addEventListener("keyup",L,!0),c.value.addEventListener("blur",L,E)),A(u)))}function R(u){c.value!==null&&(a("touchstart",u),u.defaultPrevented!==!0&&(z!==c.value&&(z!==null&&O(),z=c.value,d=u.target,d.addEventListener("touchcancel",L,E),d.addEventListener("touchend",L,E)),m=!0,v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,m=!1},200)))}function F(u){c.value!==null&&(u.qSkipRipple=m===!0,a("mousedown",u),u.defaultPrevented!==!0&&T!==c.value&&(T!==null&&O(),T=c.value,c.value.classList.add("q-btn--active"),document.addEventListener("mouseup",L,E)))}function L(u){if(c.value!==null&&!((u==null?void 0:u.type)==="blur"&&document.activeElement===c.value)){if((u==null?void 0:u.type)==="keyup"){if(D===c.value&&Q(u,[13,32])===!0){const h=new MouseEvent("click",u);h.qKeyEvent=!0,u.defaultPrevented===!0&&pe(h),u.cancelBubble===!0&&J(h),c.value.dispatchEvent(h),A(u),u.qKeyEvent=!0}a("keyup",u)}O()}}function O(u){var _,V;const h=B.value;u!==!0&&(z===c.value||T===c.value)&&h!==null&&h!==document.activeElement&&(h.setAttribute("tabindex",-1),h.focus()),z===c.value&&(d!==null&&(d.removeEventListener("touchcancel",L,E),d.removeEventListener("touchend",L,E)),z=d=null),T===c.value&&(document.removeEventListener("mouseup",L,E),T=null),D===c.value&&(document.removeEventListener("keyup",L,!0),(_=c.value)==null||_.removeEventListener("blur",L,E),D=null),(V=c.value)==null||V.classList.remove("q-btn--active")}function I(u){A(u),u.qSkipRipple=!0}return t.onBeforeUnmount(()=>{O(!0)}),Object.assign(o,{click:u=>{k.value===!0&&w(u)}}),()=>{let u=[];e.icon!==void 0&&u.push(t.h(W,{name:e.icon,left:e.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&u.push(t.h("span",{class:"block"},[e.label])),u=M(n.default,u),e.iconRight!==void 0&&e.round===!1&&u.push(t.h(W,{name:e.iconRight,right:e.stack!==!0&&g.value===!0,role:"img"}));const h=[t.h("span",{class:"q-focus-helper",ref:B})];return e.loading===!0&&e.percentage!==void 0&&h.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:q.value})])),h.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},u)),e.loading!==null&&h.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(ve)])]:null)),t.withDirectives(t.h(y.value,x.value,h),[[ke,$.value,void 0,S.value]])}}}),dt=t.defineComponent({__name:"AppButton",props:{size:{default:b.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:Z.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},emits:["click"],setup(e){const n=e,a=t.computed(()=>["app-btn",{"app-btn_default":!n.transparent&&!n.flat,"app-btn_trans":n.transparent,"app-btn_flat":n.flat,"app-btn_rounded":n.rounded,"app-btn_sm":n.size===b.SM,"app-btn_md":n.size===b.MD,"app-btn_lg":n.size===b.LG,"app-btn_icon-left":n.iconLeft,"app-btn_icon-right":n.iconRight,"app-btn_icon-middle":n.iconMiddle},`app-btn_${n.color}`]);return(o,l)=>(t.openBlock(),t.createBlock(t.unref(Ee),{"no-caps":"",unelevated:"",class:t.normalizeClass(a.value),padding:t.unref(Pe)[e.size||t.unref(b).MD],loading:e.loading,disable:e.disabled||void 0,to:e.to,href:e.href,target:e.target,type:e.submit?"submit":void 0,"aria-label":e.ariaLabel,download:e.download,onClick:l[0]||(l[0]=s=>o.$emit("click",s))},{default:t.withCtx(()=>[e.iconLeft||e.iconMiddle?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",e.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${e.iconLeft||e.iconMiddle}`,e.transparent||e.flat?`text-${e.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"default",{},void 0,!0),e.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64)):t.createCommentVNode("",!0),e.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${e.iconRight}`,e.transparent?`text-${e.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label","download"]))}}),K=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},ft=K(dt,[["__scopeId","data-v-99788ad1"]]),vt={key:0,class:"app-toggle__label app-toggle__label_left"},mt={class:"app-toggle__container"},gt=["checked","disabled"],pt={class:"app-toggle__thumb"},ht={key:1,class:"app-toggle__label"},bt=t.defineComponent({__name:"AppToggle",props:{modelValue:{type:Boolean},size:{default:b.MD},label:{},disabled:{type:Boolean},color:{default:Z.PRIMARY},iconColor:{},icon:{},iconActive:{},labelLeft:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,o=n,l=t.computed({get:()=>a.modelValue,set:r=>{o("update:modelValue",r)}}),s=t.computed(()=>["app-toggle",{"app-toggle_sm":a.size===b.SM,"app-toggle_md":a.size===b.MD,"app-toggle_lg":a.size===b.LG,"app-toggle_active":l.value,"app-toggle_disabled":a.disabled},`app-toggle_${a.color}`]);return(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value)},[e.label&&e.labelLeft?(t.openBlock(),t.createElementBlock("span",vt,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),t.createElementVNode("label",mt,[t.createElementVNode("input",{type:"checkbox",checked:l.value,onChange:i[0]||(i[0]=C=>l.value=!l.value),disabled:e.disabled,class:"app-toggle__input"},null,40,gt),t.createElementVNode("span",{class:t.normalizeClass(["app-toggle__slider",l.value?`bg-${e.color}`:""])},[t.createElementVNode("span",pt,[e.icon&&!e.modelValue?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",`icon-kl-${e.icon}`,"app-toggle__icon"])},null,2)):t.createCommentVNode("",!0),e.modelValue&&(e.iconActive||e.icon)?(t.openBlock(),t.createElementBlock("i",{key:1,class:t.normalizeClass(["icon-kl",`icon-kl-${e.iconActive||e.icon}`,"app-toggle__icon",l.value?`text-${e.iconColor}`:""])},null,2)):t.createCommentVNode("",!0)])],2),t.renderSlot(r.$slots,"default",{},void 0,!0)]),e.label&&!e.labelLeft?(t.openBlock(),t.createElementBlock("span",ht,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)],2))}}),yt=K(bt,[["__scopeId","data-v-e0e56123"]]),kt=t.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(["icon-kl",`icon-kl-${e.name}`,e.color?`text-${e.color}`:""]),style:t.normalizeStyle(e.size?`font-size: ${e.size}`:void 0)},null,6))}}),$t=K(kt,[["__scopeId","data-v-941765ee"]]),we={dark:{type:Boolean,default:null}};function Le(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}const Bt={xs:2,sm:4,md:6,lg:10,xl:14};function ue(e,n,a){return{transform:n===!0?`translateX(${a.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const Ct=N({name:"QLinearProgress",props:{...we,...U,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:n}){const{proxy:a}=t.getCurrentInstance(),o=Le(e,a.$q),l=H(e,Bt),s=t.computed(()=>e.indeterminate===!0||e.query===!0),r=t.computed(()=>e.reverse!==e.query),i=t.computed(()=>({...l.value!==null?l.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),C=t.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),y=t.computed(()=>ue(e.buffer!==void 0?e.buffer:1,r.value,a.$q)),f=t.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),k=t.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${o.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),c=t.computed(()=>ue(s.value===!0?1:e.value,r.value,a.$q)),B=t.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${s.value===!0?"in":""}determinate`),d=t.computed(()=>({width:`${e.value*100}%`})),m=t.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${f.value}`);return()=>{const v=[t.h("div",{class:k.value,style:y.value}),t.h("div",{class:B.value,style:c.value})];return e.stripe===!0&&s.value===!1&&v.push(t.h("div",{class:m.value,style:d.value})),t.h("div",{class:C.value,style:i.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},M(n.default,v))}}}),St={key:0,class:"code-field__label"},qt={class:"code-field__inputs"},xt=["onUpdate:modelValue","disabled","onInput","onKeydown","onPaste"],Et=t.defineComponent({__name:"AppCodeInput",props:{length:{default:5},size:{default:b.MD},label:{},disabled:{type:Boolean},loading:{type:Boolean},autofocus:{type:Boolean},color:{}},emits:["update:modelValue","completed"],setup(e,{expose:n,emit:a}){const o=e,l=a,s=t.ref(Array(o.length).fill("")),r=t.ref([]),i=t.computed(()=>["code-field",{"code-field_sm":o.size===b.SM,"code-field_md":o.size===b.MD,"code-field_lg":o.size===b.LG,"code-field_disabled":o.disabled||o.loading},`code-field_${o.color}`]),C=t.computed(()=>{let d="";return o.size==b.SM&&(d+=`width: ${o.length*26+(o.length-1)*5}px`),o.size==b.MD&&(d+=`width: ${o.length*32+(o.length-1)*8}px`),o.size==b.LG&&(d+=`width: ${o.length*44+(o.length-1)*10}px`),d}),y=(d,m)=>{var $;const g=d.target.value;if(g.length===1)m<o.length-1&&r.value&&(($=r.value[m+1])==null||$.focus());else if(g.length>1){const S=g.slice(0,o.length-m).split("");S.forEach((q,p)=>{s.value[m+p]=q}),t.nextTick(()=>{var q;r.value&&((q=r.value[Math.min(m+S.length,o.length-1)])==null||q.focus())})}},f=d=>{var m;s.value[d]===""&&r.value&&d>0&&((m=r.value[d-1])==null||m.focus())},k=(d,m)=>{var $;d.preventDefault();const v=(($=d.clipboardData)==null?void 0:$.getData("text"))??"";if(!v)return;const g=v.slice(0,o.length-m).split("");g.forEach((S,q)=>{s.value[m+q]=S}),t.nextTick(()=>{var S;r.value&&((S=r.value[Math.min(m+g.length,o.length-1)])==null||S.focus())})};t.watch(s,d=>{const m=d.join("");c(m)},{deep:!0});const c=d=>{l("update:modelValue",d),d.length===o.length&&!d.includes(" ")&&l("completed",d)},B=d=>{d&&(s.value=d.split("").slice(0,o.length))};return t.onMounted(()=>{o.autofocus&&r.value&&r.value[0]&&r.value[0].focus()}),n({injectCode:B}),(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.value),style:t.normalizeStyle(C.value)},[e.label?(t.openBlock(),t.createElementBlock("label",St,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),t.createElementVNode("div",qt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.length,(v,g)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:g,"onUpdate:modelValue":$=>s.value[g]=$,ref_for:!0,ref_key:"inputRefs",ref:r,type:"text",maxlength:"1",class:"code-field__input",disabled:e.disabled||e.loading,onInput:$=>y($,g),onKeydown:t.withKeys($=>f(g),["backspace"]),onPaste:$=>k($,g)},null,40,xt)),[[t.vModelText,s.value[g]]])),128))]),e.loading?(t.openBlock(),t.createBlock(Ct,{key:1,indeterminate:"",rounded:"",color:e.color,class:"code-field__loading"},null,8,["color"])):t.createCommentVNode("",!0)],6))}}),wt=K(Et,[["__scopeId","data-v-44914130"]]),Lt=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-BvczyeX-.cjs"))),Pt=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-BbPJo5N3.cjs"))),Rt=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DropdownButton-DF_WGSQl.cjs")));exports.AppButton=ft;exports.AppButtonCopy=Lt;exports.AppCodeInput=wt;exports.AppIcon=$t;exports.AppSelect=Pt;exports.AppToggle=yt;exports.COLORS=Z;exports.DropdownButton=Rt;exports.QBtn=Ee;exports.QIcon=W;exports.QSpinner=ve;exports.Ripple=ke;exports.SIZES=b;exports._export_sfc=K;exports.addEvt=he;exports.childHasFocus=Qe;exports.cleanEvt=be;exports.createComponent=N;exports.css=me;exports.getBtnDesignAttr=ut;exports.getElement=Fe;exports.getEventPath=He;exports.getParentProxy=Ze;exports.hDir=Me;exports.hMergeSlot=M;exports.hMergeSlotSafely=Ae;exports.hSlot=se;exports.hUniqueSlot=_e;exports.isKeyCode=Q;exports.listenOpts=j;exports.nonRoundBtnProps=xe;exports.noop=Ue;exports.position=ge;exports.prevent=pe;exports.shouldIgnoreKey=ye;exports.stop=J;exports.stopAndPrevent=A;exports.useDark=Le;exports.useDarkProps=we;exports.useRouterLink=Se;exports.useRouterLinkProps=ot;exports.useSize=H;exports.useSizeProps=U;exports.vmHasRouter=Be;exports.vmIsDestroyed=Je;
|