shared-ritm 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.SharedRitm={},e.Vue))})(this,function(e,t){"use strict";const i=(n,s)=>{const u=n.__vccOpts||n;for(const[f,d]of s)u[f]=d;return u},c={};function p(n,s){return t.openBlock(),t.createElementBlock("div",null,s[0]||(s[0]=[t.createElementVNode("button",null,"sssssssssssssssss",-1)]))}const o=i(c,[["render",p]]),r={install:function(n){n.component("AppTestButton",o)}};e.AppTestButton=o,e.useAppButton=r,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(_,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(_=typeof globalThis<"u"?globalThis:_||self,l(_.SharedRitm={},_.Vue))})(this,function(_,l){"use strict";function he(e,t,i,o){return Object.defineProperty(e,t,{get:i,set:o,enumerable:!0}),e}function A(e){return l.markRaw(l.defineComponent(e))}function Xe(e){return l.markRaw(e)}function ge(e,t){return e!==void 0&&e()||t}function I(e,t){return e!==void 0?t.concat(e()):t}const Ye=["top","middle","bottom"],Ge=A({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>Ye.includes(e)}},setup(e,{slots:t}){const i=l.computed(()=>e.align!==void 0?{verticalAlign:e.align}:null),o=l.computed(()=>{const n=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(n!==void 0?` text-${n}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>l.h("div",{class:o.value,style:i.value,role:"status","aria-label":e.label},I(t.default,e.label!==void 0?[e.label]:[]))}}),Q=l.ref(!1);let oe;function Je(e,t){const i=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0",platform:t[0]||""}}function Ze(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const pe="ontouchstart"in window||window.navigator.maxTouchPoints>0;function et(e){const t=e.toLowerCase(),i=Ze(t),o=Je(t,i),n={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};o.browser&&(n[o.browser]=!0,n.version=o.version,n.versionNumber=parseInt(o.version,10)),o.platform&&(n[o.platform]=!0);const s=n.android||n.ios||n.bb||n.blackberry||n.ipad||n.iphone||n.ipod||n.kindle||n.playbook||n.silk||n["windows phone"];if(s===!0||t.indexOf("mobile")!==-1?n.mobile=!0:n.desktop=!0,n["windows phone"]&&(n.winphone=!0,delete n["windows phone"]),n.edga||n.edgios||n.edg?(n.edge=!0,o.browser="edge"):n.crios?(n.chrome=!0,o.browser="chrome"):n.fxios&&(n.firefox=!0,o.browser="firefox"),(n.ipod||n.ipad||n.iphone)&&(n.ios=!0),n.vivaldi&&(o.browser="vivaldi",n.vivaldi=!0),(n.chrome||n.opr||n.safari||n.vivaldi||n.mobile===!0&&n.ios!==!0&&s!==!0)&&(n.webkit=!0),n.opr&&(o.browser="opera",n.opera=!0),n.safari&&(n.blackberry||n.bb?(o.browser="blackberry",n.blackberry=!0):n.playbook?(o.browser="playbook",n.playbook=!0):n.android?(o.browser="android",n.android=!0):n.kindle?(o.browser="kindle",n.kindle=!0):n.silk&&(o.browser="silk",n.silk=!0)),n.name=o.browser,n.platform=o.platform,t.indexOf("electron")!==-1)n.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)n.bex=!0;else{if(window.Capacitor!==void 0?(n.capacitor=!0,n.nativeMobile=!0,n.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(n.cordova=!0,n.nativeMobile=!0,n.nativeMobileWrapper="cordova"),Q.value===!0&&(oe={is:{...n}}),pe===!0&&n.mac===!0&&(n.desktop===!0&&n.safari===!0||n.nativeMobile===!0&&n.android!==!0&&n.ios!==!0&&n.ipad!==!0)){delete n.mac,delete n.desktop;const r=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(n,{mobile:!0,ios:!0,platform:r,[r]:!0})}n.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete n.desktop,n.mobile=!0)}return n}const ve=navigator.userAgent||navigator.vendor||window.opera,tt={has:{touch:!1,webStorage:!1},within:{iframe:!1}},X={userAgent:ve,is:et(ve),has:{touch:pe},within:{iframe:window.self!==window.top}},ie={install(e){const{$q:t}=e;Q.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,X),Q.value=!1}),t.platform=l.reactive(this)):t.platform=this}};{let e;he(X.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(ie,X),Q.value===!0&&(Object.assign(ie,oe,tt),oe=null)}function le(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),ie.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const R={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(R,{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 nt(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 be(e){e.stopPropagation()}function ae(e){e.cancelable!==!1&&e.preventDefault()}function H(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function K(e,t,i){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(i):i,i.forEach(n=>{n[0].addEventListener(n[1],e[n[2]],R[n[3]])})}function Y(e,t){const i=`__q_${t}_evt`;e[i]!==void 0&&(e[i].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],R[o[3]])}),e[i]=void 0)}function ot(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function G(e,t){return ot(e)===!0?!1:[].concat(t).includes(e.keyCode)}const it={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean};function lt({showing:e,avoidEmit:t,configureAnchorEl:i}){const{props:o,proxy:n,emit:s}=l.getCurrentInstance(),r=l.ref(null);let a=null;function g(c){return r.value===null?!1:c===void 0||c.touches===void 0||c.touches.length<=1}const f={};i===void 0&&(Object.assign(f,{hide(c){n.hide(c)},toggle(c){n.toggle(c),c.qAnchorHandled=!0},toggleKey(c){G(c,13)===!0&&f.toggle(c)},contextClick(c){n.hide(c),ae(c),l.nextTick(()=>{n.show(c),c.qAnchorHandled=!0})},prevent:ae,mobileTouch(c){if(f.mobileCleanup(c),g(c)!==!0)return;n.hide(c),r.value.classList.add("non-selectable");const m=c.target;K(f,"anchor",[[m,"touchmove","mobileCleanup","passive"],[m,"touchend","mobileCleanup","passive"],[m,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,n.show(c),c.qAnchorHandled=!0},300)},mobileCleanup(c){r.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&c!==void 0&&le()}}),i=function(c=o.contextMenu){if(o.noParentEvent===!0||r.value===null)return;let m;c===!0?n.$q.platform.is.mobile===!0?m=[[r.value,"touchstart","mobileTouch","passive"]]:m=[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:m=[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],K(f,"anchor",m)});function u(){Y(f,"anchor")}function w(c){for(r.value=c;r.value.classList.contains("q-anchor--skip");)r.value=r.value.parentNode;i()}function d(){if(o.target===!1||o.target===""||n.$el.parentNode===null)r.value=null;else if(o.target===!0)w(n.$el.parentNode);else{let c=o.target;if(typeof o.target=="string")try{c=document.querySelector(o.target)}catch{c=void 0}c!=null?(r.value=c.$el||c,i()):(r.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return l.watch(()=>o.contextMenu,c=>{r.value!==null&&(u(),i(c))}),l.watch(()=>o.target,()=>{r.value!==null&&u(),d()}),l.watch(()=>o.noParentEvent,c=>{r.value!==null&&(c===!0?u():i())}),l.onMounted(()=>{d(),t!==!0&&o.modelValue===!0&&r.value===null&&s("update:modelValue",!1)}),l.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),u()}),{anchorEl:r,canShow:g,anchorEvents:f}}function at(e,t){const i=l.ref(null);let o;function n(a,g){const f=`${g!==void 0?"add":"remove"}EventListener`,u=g!==void 0?g:o;a!==window&&a[f]("scroll",u,R.passive),window[f]("scroll",u,R.passive),o=g}function s(){i.value!==null&&(n(i.value),i.value=null)}const r=l.watch(()=>e.noParentEvent,()=>{i.value!==null&&(s(),t())});return l.onBeforeUnmount(r),{localScrollTarget:i,unconfigureScrollTarget:s,changeScrollEvent:n}}function ye(e){return e.appContext.config.globalProperties.$router!==void 0}function we(e){return e.isUnmounted===!0||e.isDeactivated===!0}const rt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},st=["beforeShow","show","beforeHide","hide"];function ut({showing:e,canShow:t,hideOnRouteChange:i,handleShow:o,handleHide:n,processOnMount:s}){const r=l.getCurrentInstance(),{props:a,emit:g,proxy:f}=r;let u;function w(b){e.value===!0?m(b):d(b)}function d(b){if(a.disable===!0||b!==void 0&&b.qAnchorHandled===!0||t!==void 0&&t(b)!==!0)return;const y=a["onUpdate:modelValue"]!==void 0;y===!0&&(g("update:modelValue",!0),u=b,l.nextTick(()=>{u===b&&(u=void 0)})),(a.modelValue===null||y===!1)&&c(b)}function c(b){e.value!==!0&&(e.value=!0,g("beforeShow",b),o!==void 0?o(b):g("show",b))}function m(b){if(a.disable===!0)return;const y=a["onUpdate:modelValue"]!==void 0;y===!0&&(g("update:modelValue",!1),u=b,l.nextTick(()=>{u===b&&(u=void 0)})),(a.modelValue===null||y===!1)&&x(b)}function x(b){e.value!==!1&&(e.value=!1,g("beforeHide",b),n!==void 0?n(b):g("hide",b))}function v(b){a.disable===!0&&b===!0?a["onUpdate:modelValue"]!==void 0&&g("update:modelValue",!1):b===!0!==e.value&&(b===!0?c:x)(u)}l.watch(()=>a.modelValue,v),i!==void 0&&ye(r)===!0&&l.watch(()=>f.$route.fullPath,()=>{i.value===!0&&e.value===!0&&m()}),s===!0&&l.onMounted(()=>{v(a.modelValue)});const C={show:d,hide:m,toggle:w};return Object.assign(f,C),C}let J=[],Z=[];function xe(e){Z=Z.filter(t=>t!==e)}function ct(e){xe(e),Z.push(e)}function ke(e){xe(e),Z.length===0&&J.length!==0&&(J[J.length-1](),J=[])}const Se={};let dt=1,ft=document.body;function mt(e,t){const i=document.createElement("div");if(i.id=`q-portal--${t}--${dt++}`,Se.globalNodes!==void 0){const o=Se.globalNodes.class;o!==void 0&&(i.className=o)}return ft.appendChild(i),i}function ht(e){e.remove()}const U=[],gt=A({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function pt(e,t,i,o){const n=l.ref(!1),s=l.ref(!1);let r=null;const a={};function g(u){if(u===!0){ke(a),s.value=!0;return}s.value=!1,n.value===!1&&(r===null&&(r=mt(!1,o)),n.value=!0,U.push(e.proxy),ct(a))}function f(u){if(s.value=!1,u!==!0)return;ke(a),n.value=!1;const w=U.indexOf(e.proxy);w!==-1&&U.splice(w,1),r!==null&&(ht(r),r=null)}return l.onUnmounted(()=>{f(!0)}),e.proxy.__qPortal=!0,he(e.proxy,"contentEl",()=>t.value),{showPortal:g,hidePortal:f,portalIsActive:n,portalIsAccessible:s,renderPortal:()=>n.value===!0?[l.h(l.Teleport,{to:r},l.h(gt,i))]:void 0}}const re={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function vt(e,t=()=>{},i=()=>{}){return{transitionProps:l.computed(()=>{const o=`q-transition--${e.transitionShow||t()}`,n=`q-transition--${e.transitionHide||i()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${n}-leave-from`,leaveActiveClass:`${n}-leave-active`,leaveToClass:`${n}-leave-to`}}),transitionStyle:l.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function bt(){let e;const t=l.getCurrentInstance();function i(){e=void 0}return l.onDeactivated(i),l.onBeforeUnmount(i),{removeTick:i,registerTick(o){e=o,l.nextTick(()=>{e===o&&(we(t)===!1&&e(),e=void 0)})}}}function yt(){let e=null;const t=l.getCurrentInstance();function i(){e!==null&&(clearTimeout(e),e=null)}return l.onDeactivated(i),l.onBeforeUnmount(i),{removeTimeout:i,registerTimeout(o,n){i(),we(t)===!1&&(e=setTimeout(()=>{e=null,o()},n))}}}function se(e,t){const i=e.style;for(const o in t)i[o]=t[o]}function wt(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=l.unref(e);if(t)return t.$el||t}const xt=[Element,String],kt=[null,document,document.body,document.scrollingElement,document.documentElement];function St(e,t){let i=wt(t);if(i===void 0){if(e==null)return window;i=e.closest(".scroll,.scroll-y,.overflow-auto")}return kt.includes(i)?window:i}let ee;function Ct(){if(ee!==void 0)return ee;const e=document.createElement("p"),t=document.createElement("div");se(e,{width:"100%",height:"200px"}),se(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const i=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return i===o&&(o=t.clientWidth),t.remove(),ee=i-o,ee}const{notPassiveCapture:te}=R,O=[];function ne(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let i=U.length-1;for(;i>=0;){const o=U[i].$;if(o.type.name==="QTooltip"){i--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;i--}for(let o=O.length-1;o>=0;o--){const n=O[o];if((n.anchorEl.value===null||n.anchorEl.value.contains(t)===!1)&&(t===document.body||n.innerRef.value!==null&&n.innerRef.value.contains(t)===!1))e.qClickOutside=!0,n.onClickOutside(e);else return}}function Tt(e){O.push(e),O.length===1&&(document.addEventListener("mousedown",ne,te),document.addEventListener("touchstart",ne,te))}function Ce(e){const t=O.findIndex(i=>i===e);t!==-1&&(O.splice(t,1),O.length===0&&(document.removeEventListener("mousedown",ne,te),document.removeEventListener("touchstart",ne,te)))}let Te,Be;function Ee(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 Bt(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const ue={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{ue[`${e}#ltr`]=e,ue[`${e}#rtl`]=e});function qe(e,t){const i=e.split(" ");return{vertical:i[0],horizontal:ue[`${i[1]}#${t===!0?"rtl":"ltr"}`]}}function Et(e,t){let{top:i,left:o,right:n,bottom:s,width:r,height:a}=e.getBoundingClientRect();return t!==void 0&&(i-=t[1],o-=t[0],s+=t[1],n+=t[0],r+=t[0],a+=t[1]),{top:i,bottom:s,height:a,left:o,right:n,width:r,middle:o+(n-o)/2,center:i+(s-i)/2}}function qt(e,t,i){let{top:o,left:n}=e.getBoundingClientRect();return o+=t.top,n+=t.left,i!==void 0&&(o+=i[1],n+=i[0]),{top:o,bottom:o+1,height:1,left:n,right:n+1,width:1,middle:n,center:o}}function $t(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function $e(e,t,i,o){return{top:e[i.vertical]-t[o.vertical],left:e[i.horizontal]-t[o.horizontal]}}function Pe(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Pe(e,t+1)},10);return}const{targetEl:i,offset:o,anchorEl:n,anchorOrigin:s,selfOrigin:r,absoluteOffset:a,fit:g,cover:f,maxHeight:u,maxWidth:w}=e;if(X.is.ios===!0&&window.visualViewport!==void 0){const T=document.body.style,{offsetLeft:S,offsetTop:B}=window.visualViewport;S!==Te&&(T.setProperty("--q-pe-left",S+"px"),Te=S),B!==Be&&(T.setProperty("--q-pe-top",B+"px"),Be=B)}const{scrollLeft:d,scrollTop:c}=i,m=a===void 0?Et(n,f===!0?[0,0]:o):qt(n,a,o);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:w,maxHeight:u,visibility:"visible"});const{offsetWidth:x,offsetHeight:v}=i,{elWidth:C,elHeight:b}=g===!0||f===!0?{elWidth:Math.max(m.width,x),elHeight:f===!0?Math.max(m.height,v):v}:{elWidth:x,elHeight:v};let y={maxWidth:w,maxHeight:u};(g===!0||f===!0)&&(y.minWidth=m.width+"px",f===!0&&(y.minHeight=m.height+"px")),Object.assign(i.style,y);const q=$t(C,b);let p=$e(m,q,s,r);if(a===void 0||o===void 0)ce(p,m,q,s,r);else{const{top:T,left:S}=p;ce(p,m,q,s,r);let B=!1;if(p.top!==T){B=!0;const E=2*o[1];m.center=m.top-=E,m.bottom-=E+2}if(p.left!==S){B=!0;const E=2*o[0];m.middle=m.left-=E,m.right-=E+2}B===!0&&(p=$e(m,q,s,r),ce(p,m,q,s,r))}y={top:p.top+"px",left:p.left+"px"},p.maxHeight!==void 0&&(y.maxHeight=p.maxHeight+"px",m.height>p.maxHeight&&(y.minHeight=y.maxHeight)),p.maxWidth!==void 0&&(y.maxWidth=p.maxWidth+"px",m.width>p.maxWidth&&(y.minWidth=y.maxWidth)),Object.assign(i.style,y),i.scrollTop!==c&&(i.scrollTop=c),i.scrollLeft!==d&&(i.scrollLeft=d)}function ce(e,t,i,o,n){const s=i.bottom,r=i.right,a=Ct(),g=window.innerHeight-a,f=document.body.clientWidth;if(e.top<0||e.top+s>g)if(n.vertical==="center")e.top=t[o.vertical]>g/2?Math.max(0,g-s):0,e.maxHeight=Math.min(s,g);else if(t[o.vertical]>g/2){const u=Math.min(g,o.vertical==="center"?t.center:o.vertical===n.vertical?t.bottom:t.top);e.maxHeight=Math.min(s,u),e.top=Math.max(0,u-s)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===n.vertical?t.top:t.bottom),e.maxHeight=Math.min(s,g-e.top);if(e.left<0||e.left+r>f)if(e.maxWidth=Math.min(r,f),n.horizontal==="middle")e.left=t[o.horizontal]>f/2?Math.max(0,f-r):0;else if(t[o.horizontal]>f/2){const u=Math.min(f,o.horizontal==="middle"?t.middle:o.horizontal===n.horizontal?t.right:t.left);e.maxWidth=Math.min(r,u),e.left=Math.max(0,u-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===n.horizontal?t.left:t.right),e.maxWidth=Math.min(r,f-e.left)}const Pt=A({name:"QTooltip",inheritAttrs:!1,props:{...it,...rt,...re,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...re.transitionShow,default:"jump-down"},transitionHide:{...re.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Ee},self:{type:String,default:"top middle",validator:Ee},offset:{type:Array,default:()=>[14,14],validator:Bt},scrollTarget:xt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...st],setup(e,{slots:t,emit:i,attrs:o}){let n,s;const r=l.getCurrentInstance(),{proxy:{$q:a}}=r,g=l.ref(null),f=l.ref(!1),u=l.computed(()=>qe(e.anchor,a.lang.rtl)),w=l.computed(()=>qe(e.self,a.lang.rtl)),d=l.computed(()=>e.persistent!==!0),{registerTick:c,removeTick:m}=bt(),{registerTimeout:x}=yt(),{transitionProps:v,transitionStyle:C}=vt(e),{localScrollTarget:b,changeScrollEvent:y,unconfigureScrollTarget:q}=at(e,Ue),{anchorEl:p,canShow:T,anchorEvents:S}=lt({showing:f,configureAnchorEl:un}),{show:B,hide:E}=ut({showing:f,canShow:T,handleShow:z,handleHide:h,hideOnRouteChange:d,processOnMount:!0});Object.assign(S,{delayShow:rn,delayHide:sn});const{showPortal:j,hidePortal:P,renderPortal:W}=pt(r,g,dn,"tooltip");if(a.platform.is.mobile===!0){const $={anchorEl:p,innerRef:g,onClickOutside(V){return E(V),V.target.classList.contains("q-dialog__backdrop")&&H(V),!0}},me=l.computed(()=>e.modelValue===null&&e.persistent!==!0&&f.value===!0);l.watch(me,V=>{(V===!0?Tt:Ce)($)}),l.onBeforeUnmount(()=>{Ce($)})}function z($){j(),c(()=>{s=new MutationObserver(()=>L()),s.observe(g.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),L(),Ue()}),n===void 0&&(n=l.watch(()=>a.screen.width+"|"+a.screen.height+"|"+e.self+"|"+e.anchor+"|"+a.lang.rtl,L)),x(()=>{j(!0),i("show",$)},e.transitionDuration)}function h($){m(),P(),k(),x(()=>{P(!0),i("hide",$)},e.transitionDuration)}function k(){s!==void 0&&(s.disconnect(),s=void 0),n!==void 0&&(n(),n=void 0),q(),Y(S,"tooltipTemp")}function L(){Pe({targetEl:g.value,offset:e.offset,anchorEl:p.value,anchorOrigin:u.value,selfOrigin:w.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function rn($){if(a.platform.is.mobile===!0){le(),document.body.classList.add("non-selectable");const me=p.value,V=["touchmove","touchcancel","touchend","click"].map(Qe=>[me,Qe,"delayHide","passiveCapture"]);K(S,"tooltipTemp",V)}x(()=>{B($)},e.delay)}function sn($){a.platform.is.mobile===!0&&(Y(S,"tooltipTemp"),le(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),x(()=>{E($)},e.hideDelay)}function un(){if(e.noParentEvent===!0||p.value===null)return;const $=a.platform.is.mobile===!0?[[p.value,"touchstart","delayShow","passive"]]:[[p.value,"mouseenter","delayShow","passive"],[p.value,"mouseleave","delayHide","passive"]];K(S,"anchor",$)}function Ue(){if(p.value!==null||e.scrollTarget!==void 0){b.value=St(p.value,e.scrollTarget);const $=e.noParentEvent===!0?L:E;y(b.value,$)}}function cn(){return f.value===!0?l.h("div",{...o,ref:g,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,C.value],role:"tooltip"},ge(t.default)):null}function dn(){return l.h(l.Transition,v.value,cn)}return l.onBeforeUnmount(k),Object.assign(r.proxy,{updatePosition:L}),W}}),de={xs:18,sm:24,md:32,lg:38,xl:46},Me={size:String};function Le(e,t=de){return l.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const _e="0 0 24 24",Re=e=>e,fe=e=>`ionicons ${e}`,He={"mdi-":e=>`mdi ${e}`,"icon-":Re,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":fe,"ion-ios":fe,"ion-logo":fe,"iconfont ":Re,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Oe={o_:"-outlined",r_:"-round",s_:"-sharp"},je={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Mt=new RegExp("^("+Object.keys(He).join("|")+")"),Lt=new RegExp("^("+Object.keys(Oe).join("|")+")"),We=new RegExp("^("+Object.keys(je).join("|")+")"),_t=/^[Mm]\s?[-+]?\.?\d/,Rt=/^img:/,Ht=/^svguse:/,Ot=/^ion-/,jt=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ze=A({name:"QIcon",props:{...Me,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=l.getCurrentInstance(),o=Le(e),n=l.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),s=l.computed(()=>{let r,a=e.name;if(a==="none"||!a)return{none:!0};if(i.iconMapFn!==null){const u=i.iconMapFn(a);if(u!==void 0)if(u.icon!==void 0){if(a=u.icon,a==="none"||!a)return{none:!0}}else return{cls:u.cls,content:u.content!==void 0?u.content:" "}}if(_t.test(a)===!0){const[u,w=_e]=a.split("|");return{svg:!0,viewBox:w,nodes:u.split("&&").map(d=>{const[c,m,x]=d.split("@@");return l.h("path",{style:m,d:c,transform:x})})}}if(Rt.test(a)===!0)return{img:!0,src:a.substring(4)};if(Ht.test(a)===!0){const[u,w=_e]=a.split("|");return{svguse:!0,src:u.substring(7),viewBox:w}}let g=" ";const f=a.match(Mt);if(f!==null)r=He[f[1]](a);else if(jt.test(a)===!0)r=a;else if(Ot.test(a)===!0)r=`ionicons ion-${i.platform.is.ios===!0?"ios":"md"}${a.substring(3)}`;else if(We.test(a)===!0){r="notranslate material-symbols";const u=a.match(We);u!==null&&(a=a.substring(6),r+=je[u[1]]),g=a}else{r="notranslate material-icons";const u=a.match(Lt);u!==null&&(a=a.substring(2),r+=Oe[u[1]]),g=a}return{cls:r,content:g}});return()=>{const r={class:n.value,style:o.value,"aria-hidden":"true",role:"presentation"};return s.value.none===!0?l.h(e.tag,r,ge(t.default)):s.value.img===!0?l.h(e.tag,r,I(t.default,[l.h("img",{src:s.value.src})])):s.value.svg===!0?l.h(e.tag,r,I(t.default,[l.h("svg",{viewBox:s.value.viewBox||"0 0 24 24"},s.value.nodes)])):s.value.svguse===!0?l.h(e.tag,r,I(t.default,[l.h("svg",{viewBox:s.value.viewBox},[l.h("use",{"xlink:href":s.value.src})])])):(s.value.cls!==void 0&&(r.class+=" "+s.value.cls),l.h(e.tag,r,I(t.default,[s.value.content])))}}}),Wt={size:{type:[String,Number],default:"1em"},color:String};function zt(e){return{cSize:l.computed(()=>e.size in de?`${de[e.size]}px`:e.size),classes:l.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Vt=A({name:"QSpinner",props:{...Wt,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:i}=zt(e);return()=>l.h("svg",{class:i.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[l.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function At(e,t=250){let i=!1,o;return function(){return i===!1&&(i=!0,setTimeout(()=>{i=!1},t),o=e.apply(this,arguments)),o}}function Ve(e,t,i,o){i.modifiers.stop===!0&&be(e);const n=i.modifiers.color;let s=i.modifiers.center;s=s===!0||o===!0;const r=document.createElement("span"),a=document.createElement("span"),g=nt(e),{left:f,top:u,width:w,height:d}=t.getBoundingClientRect(),c=Math.sqrt(w*w+d*d),m=c/2,x=`${(w-c)/2}px`,v=s?x:`${g.left-f-m}px`,C=`${(d-c)/2}px`,b=s?C:`${g.top-u-m}px`;a.className="q-ripple__inner",se(a,{height:`${c}px`,width:`${c}px`,transform:`translate3d(${v},${b},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${n?" text-"+n:""}`,r.setAttribute("dir","ltr"),r.appendChild(a),t.appendChild(r);const y=()=>{r.remove(),clearTimeout(q)};i.abort.push(y);let q=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${x},${C},0) scale3d(1,1,1)`,a.style.opacity=.2,q=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,q=setTimeout(()=>{r.remove(),i.abort.splice(i.abort.indexOf(y),1)},275)},250)},50)}function Ae(e,{modifiers:t,value:i,arg:o}){const n=Object.assign({},e.cfg.ripple,t,i);e.modifiers={early:n.early===!0,stop:n.stop===!0,center:n.center===!0,color:n.color||o,keyCodes:[].concat(n.keyCodes||13)}}const It=Xe({name:"ripple",beforeMount(e,t){const i=t.instance.$.appContext.config.globalProperties.$q.config||{};if(i.ripple===!1)return;const o={cfg:i,enabled:t.value!==!1,modifiers:{},abort:[],start(n){o.enabled===!0&&n.qSkipRipple!==!0&&n.type===(o.modifiers.early===!0?"pointerdown":"click")&&Ve(n,e,o,n.qKeyEvent===!0)},keystart:At(n=>{o.enabled===!0&&n.qSkipRipple!==!0&&G(n,o.modifiers.keyCodes)===!0&&n.type===`key${o.modifiers.early===!0?"down":"up"}`&&Ve(n,e,o,!0)},300)};Ae(o,t),e.__qripple=o,K(o,"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 i=e.__qripple;i!==void 0&&(i.enabled=t.value!==!1,i.enabled===!0&&Object(t.value)===t.value&&Ae(i,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(i=>{i()}),Y(t,"main"),delete e._qripple)}}),Ie={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Nt=Object.keys(Ie),Dt={align:{type:String,validator:e=>Nt.includes(e)}};function Ft(e){return l.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Ie[t]}`})}function Ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function De(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Kt(e,t){for(const i in t){const o=t[i],n=e[i];if(typeof o=="string"){if(o!==n)return!1}else if(Array.isArray(n)===!1||n.length!==o.length||o.some((s,r)=>s!==n[r]))return!1}return!0}function Fe(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((i,o)=>i===t[o]):e.length===1&&e[0]===t}function Ut(e,t){return Array.isArray(e)===!0?Fe(e,t):Array.isArray(t)===!0?Fe(t,e):e===t}function Qt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(Ut(e[i],t[i])===!1)return!1;return!0}const Xt={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function Yt({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const i=l.getCurrentInstance(),{props:o,proxy:n,emit:s}=i,r=ye(i),a=l.computed(()=>o.disable!==!0&&o.href!==void 0),g=t===!0?l.computed(()=>r===!0&&o.disable!==!0&&a.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):l.computed(()=>r===!0&&a.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),f=l.computed(()=>g.value===!0?b(o.to):null),u=l.computed(()=>f.value!==null),w=l.computed(()=>a.value===!0||u.value===!0),d=l.computed(()=>o.type==="a"||w.value===!0?"a":o.tag||e||"div"),c=l.computed(()=>a.value===!0?{href:o.href,target:o.target}:u.value===!0?{href:f.value.href,target:o.target}:{}),m=l.computed(()=>{if(u.value===!1)return-1;const{matched:p}=f.value,{length:T}=p,S=p[T-1];if(S===void 0)return-1;const B=n.$route.matched;if(B.length===0)return-1;const E=B.findIndex(De.bind(null,S));if(E!==-1)return E;const j=Ne(p[T-2]);return T>1&&Ne(S)===j&&B[B.length-1].path!==j?B.findIndex(De.bind(null,p[T-2])):E}),x=l.computed(()=>u.value===!0&&m.value!==-1&&Kt(n.$route.params,f.value.params)),v=l.computed(()=>x.value===!0&&m.value===n.$route.matched.length-1&&Qt(n.$route.params,f.value.params)),C=l.computed(()=>u.value===!0?v.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":x.value===!0?` ${o.activeClass}`:"":"");function b(p){try{return n.$router.resolve(p)}catch{}return null}function y(p,{returnRouterError:T,to:S=o.to,replace:B=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 E=n.$router[B===!0?"replace":"push"](S);return T===!0?E:E.then(()=>{}).catch(()=>{})}function q(p){if(u.value===!0){const T=S=>y(p,S);s("click",p,T),p.defaultPrevented!==!0&&T()}else s("click",p)}return{hasRouterLink:u,hasHrefLink:a,hasLink:w,linkTag:d,resolvedLink:f,linkIsActive:x,linkIsExactActive:v,linkClass:C,linkAttrs:c,getLink:b,navigateToRouterLink:y,navigateOnClick:q}}const Ke={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Gt={xs:8,sm:10,md:14,lg:20,xl:24},Jt=["button","submit","reset"],Zt=/[^\s]\/[^\s]/,en=["flat","outline","push","unelevated"];function tn(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const nn={...{...Me,...Xt,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...en.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:{...Dt.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function on(e){const t=Le(e,Gt),i=Ft(e),{hasRouterLink:o,hasLink:n,linkTag:s,linkAttrs:r,navigateOnClick:a}=Yt({fallbackTag:"button"}),g=l.computed(()=>{const v=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},v,{padding:e.padding.split(/\s+/).map(C=>C in Ke?Ke[C]+"px":C).join(" "),minWidth:"0",minHeight:"0"}):v}),f=l.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),u=l.computed(()=>e.disable!==!0&&e.loading!==!0),w=l.computed(()=>u.value===!0?e.tabindex||0:-1),d=l.computed(()=>tn(e,"standard")),c=l.computed(()=>{const v={tabindex:w.value};return n.value===!0?Object.assign(v,r.value):Jt.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&&Zt.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}),m=l.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 C=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${C}`+(v!==void 0?" "+v:"")+(u.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":"")}),x=l.computed(()=>i.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:m,style:g,innerClasses:x,attributes:c,hasLink:n,linkTag:s,navigateOnClick:a,isActionable:u}}const{passiveCapture:M}=R;let N=null,D=null,F=null;const ln=A({name:"QBtn",props:{...nn,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:i}){const{proxy:o}=l.getCurrentInstance(),{classes:n,style:s,innerClasses:r,attributes:a,hasLink:g,linkTag:f,navigateOnClick:u,isActionable:w}=on(e),d=l.ref(null),c=l.ref(null);let m=null,x,v=null;const C=l.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),b=l.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:g.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),y=l.computed(()=>({center:e.round})),q=l.computed(()=>{const h=Math.max(0,Math.min(100,e.percentage));return h>0?{transition:"transform 0.6s",transform:`translateX(${h-100}%)`}:{}}),p=l.computed(()=>{if(e.loading===!0)return{onMousedown:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(w.value===!0){const h={onClick:S,onKeydown:B,onMousedown:j};if(o.$q.platform.has.touch===!0){const k=e.onTouchstart!==void 0?"":"Passive";h[`onTouchstart${k}`]=E}return h}return{onClick:H}}),T=l.computed(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+n.value,style:s.value,...a.value,...p.value}));function S(h){if(d.value!==null){if(h!==void 0){if(h.defaultPrevented===!0)return;const k=document.activeElement;if(e.type==="submit"&&k!==document.body&&d.value.contains(k)===!1&&k.contains(d.value)===!1){d.value.focus();const L=()=>{document.removeEventListener("keydown",H,!0),document.removeEventListener("keyup",L,M),d.value!==null&&d.value.removeEventListener("blur",L,M)};document.addEventListener("keydown",H,!0),document.addEventListener("keyup",L,M),d.value.addEventListener("blur",L,M)}}u(h)}}function B(h){d.value!==null&&(i("keydown",h),G(h,[13,32])===!0&&D!==d.value&&(D!==null&&W(),h.defaultPrevented!==!0&&(d.value.focus(),D=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",P,!0),d.value.addEventListener("blur",P,M)),H(h)))}function E(h){d.value!==null&&(i("touchstart",h),h.defaultPrevented!==!0&&(N!==d.value&&(N!==null&&W(),N=d.value,m=h.target,m.addEventListener("touchcancel",P,M),m.addEventListener("touchend",P,M)),x=!0,v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,x=!1},200)))}function j(h){d.value!==null&&(h.qSkipRipple=x===!0,i("mousedown",h),h.defaultPrevented!==!0&&F!==d.value&&(F!==null&&W(),F=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",P,M)))}function P(h){if(d.value!==null&&!(h!==void 0&&h.type==="blur"&&document.activeElement===d.value)){if(h!==void 0&&h.type==="keyup"){if(D===d.value&&G(h,[13,32])===!0){const k=new MouseEvent("click",h);k.qKeyEvent=!0,h.defaultPrevented===!0&&ae(k),h.cancelBubble===!0&&be(k),d.value.dispatchEvent(k),H(h),h.qKeyEvent=!0}i("keyup",h)}W()}}function W(h){const k=c.value;h!==!0&&(N===d.value||F===d.value)&&k!==null&&k!==document.activeElement&&(k.setAttribute("tabindex",-1),k.focus()),N===d.value&&(m!==null&&(m.removeEventListener("touchcancel",P,M),m.removeEventListener("touchend",P,M)),N=m=null),F===d.value&&(document.removeEventListener("mouseup",P,M),F=null),D===d.value&&(document.removeEventListener("keyup",P,!0),d.value!==null&&d.value.removeEventListener("blur",P,M),D=null),d.value!==null&&d.value.classList.remove("q-btn--active")}function z(h){H(h),h.qSkipRipple=!0}return l.onBeforeUnmount(()=>{W(!0)}),Object.assign(o,{click:h=>{w.value===!0&&S(h)}}),()=>{let h=[];e.icon!==void 0&&h.push(l.h(ze,{name:e.icon,left:e.stack!==!0&&C.value===!0,role:"img"})),C.value===!0&&h.push(l.h("span",{class:"block"},[e.label])),h=I(t.default,h),e.iconRight!==void 0&&e.round===!1&&h.push(l.h(ze,{name:e.iconRight,right:e.stack!==!0&&C.value===!0,role:"img"}));const k=[l.h("span",{class:"q-focus-helper",ref:c})];return e.loading===!0&&e.percentage!==void 0&&k.push(l.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[l.h("span",{class:"q-btn__progress-indicator fit block",style:q.value})])),k.push(l.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},h)),e.loading!==null&&k.push(l.h(l.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[l.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[l.h(Vt)])]:null)),l.withDirectives(l.h(f.value,T.value,k),[[It,b.value,void 0,y.value]])}}}),an=((e,t)=>{const i=e.__vccOpts||e;for(const[o,n]of t)i[o]=n;return i})(l.defineComponent({__name:"AppButton",props:{disable:{type:[Boolean,Function]},tooltip:{},uppercase:{type:Boolean},xSmall:{type:Boolean},small:{type:Boolean},large:{type:Boolean},fullWidth:{type:Boolean},wrap:{type:Boolean},largeIcon:{type:Boolean},modelValue:{type:Boolean},badge:{type:[String,Boolean,Number]},badgeColor:{},badgeInline:{type:Boolean},link:{type:Boolean},size:{},type:{},to:{},replace:{type:Boolean},href:{},target:{},label:{},icon:{},iconRight:{},outline:{type:Boolean},flat:{type:Boolean},unelevated:{type:Boolean},rounded:{type:Boolean},push:{type:Boolean},square:{type:Boolean},glossy:{type:Boolean},fab:{type:Boolean},fabMini:{type:Boolean},padding:{},color:{},textColor:{},noCaps:{type:Boolean},noWrap:{type:Boolean},dense:{type:Boolean},ripple:{type:Boolean},tabindex:{},align:{},stack:{type:Boolean},stretch:{type:Boolean},loading:{type:Boolean},round:{type:Boolean},percentage:{},darkPercentage:{type:Boolean}},emits:["update:modelValue","click"],setup(e,{emit:t}){const i=e,o=t;function n(a){o("click",a),o("update:modelValue",!i.modelValue)}const s=l.computed(()=>i.badge===void 0||i.badge===!1||i.badge===!0||i.badge===""?"":i.badge),r=l.computed(()=>typeof i.disable=="function"?i.disable():i.disable);return(a,g)=>(l.openBlock(),l.createBlock(ln,l.mergeProps(a.$props,{class:[[a.$style.wrapper],"hover-bg-secondary hover-text-black"],disable:r.value,"no-caps":!a.uppercase,"no-wrap":!a.wrap,onClick:n}),{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default"),a.badge?(l.openBlock(),l.createBlock(Ge,{key:0,style:{padding:"6px",top:"-10px",right:"-10px","font-size":"12px"},color:a.badgeColor,floating:!a.badgeInline,rounded:!0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.value),1)]),_:1},8,["color","floating"])):l.createCommentVNode("",!0),a.tooltip?(l.openBlock(),l.createBlock(Pt,{key:1,class:"text-body2",delay:400},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.tooltip),1)]),_:1})):l.createCommentVNode("",!0)]),_:3},16,["class","disable","no-caps","no-wrap"]))}}),[["__cssModules",{$style:{wrapper:"_wrapper_1g76t_1"}}]]);_.AppButton=an,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ ._wrapper_1g76t_1{flex:0 0 auto}._wrapper_1g76t_1.q-btn--rounded{border-radius:14px}._wrapper_1g76t_1.q-btn{color:#0a1629;font-size:16px;font-style:normal;font-weight:700}._wrapper_1g76t_1.--loading span:has(>svg){overflow:hidden}._wrapper_1g76t_1 .q-icon{font-size:1.2em}._wrapper_1g76t_1.--large-icon .q-icon{font-size:1.715em}._wrapper_1g76t_1.--full-width{width:100%}._wrapper_1g76t_1.--link{padding:0 8px;display:inline;min-height:unset;font-size:inherit;text-decoration:underline}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"
@@ -24,17 +24,16 @@
24
24
  "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix"
25
25
  },
26
26
  "dependencies": {
27
- "@quasar/extras": "^1.0.0",
27
+ "@quasar/extras": "^1.16.12",
28
28
  "@vueuse/core": "^10.1.2",
29
29
  "axios": "^1.7.7",
30
- "quasar": "^2.16.0",
31
- "vue": "^3.3.8"
30
+ "quasar": "^2.17.1",
31
+ "vue": "^3.5.12"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@quasar/vite-plugin": "^1.8.0",
35
- "@types/node": "^22.7.4",
35
+ "@types/node": "^22.7.9",
36
36
  "@typescript-eslint/eslint-plugin": "^5.4.0",
37
- "vite-plugin-dts": "^4.3.0",
38
37
  "@typescript-eslint/parser": "^5.62.0",
39
38
  "@vitejs/plugin-vue": "^5.1.4",
40
39
  "@vue/compiler-sfc": "^3.2.6",
@@ -44,9 +43,8 @@
44
43
  "eslint-plugin-prettier": "^4.0.0",
45
44
  "eslint-plugin-vue": "^9.8.0",
46
45
  "prettier": "^2.8.4",
47
- "sass": "^1.32.7",
48
- "sass-loader": "^12.0.0",
49
- "ts-node": "^10.9.2",
46
+ "sass": "^1.80.4",
47
+ "sass-embedded": "^1.80.4",
50
48
  "typescript": "^5.6.2",
51
49
  "vite": "^5.4.9",
52
50
  "vue-tsc": "^2.1.6"
@@ -1,24 +0,0 @@
1
- import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
- export declare enum ApiServiceType {
3
- SERVICE_AUTH = "SERVICE_AUTH"
4
- }
5
- export type ResponseApi<T> = {
6
- count: number;
7
- current_page: number;
8
- data: T;
9
- per_page: number;
10
- total: number;
11
- total_pages: number;
12
- };
13
- export default class ApiService {
14
- private axiosInstance;
15
- constructor();
16
- private getToken;
17
- private removeToken;
18
- private logout;
19
- private handleError;
20
- protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
21
- protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any>>;
22
- protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
23
- protected put<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
24
- }
@@ -1,7 +0,0 @@
1
- import { default as ApiService } from './ApiService';
2
- declare class GanttService extends ApiService {
3
- fetchCriticalPathTasks(params: string): Promise<any>;
4
- fetchGanttList(params: string): Promise<any>;
5
- }
6
- export default function useGanttService(): GanttService;
7
- export {};
@@ -1,21 +0,0 @@
1
- import { default as ApiService, ResponseApi } from './ApiService';
2
- declare class MetricsService extends ApiService {
3
- fetchPieProjects(queryString: string): Promise<ResponseApi<any>>;
4
- fetchPieTasks(queryString: string): Promise<ResponseApi<any>>;
5
- fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>>;
6
- fetchPiePersonnelInfo(params: string): Promise<any>;
7
- fetchPieWorkZone(queryString: string): Promise<ResponseApi<any>>;
8
- fetchPieCriticalPath(queryString: string): Promise<any[]>;
9
- fetchPieCriticalPathInfo(params: string): Promise<any>;
10
- fetchPieTmc(queryString: string): Promise<ResponseApi<any>>;
11
- fetchPieTmcInfo(params: string): Promise<any>;
12
- fetchPieUntimelyClosedTask(queryString: string): Promise<any[]>;
13
- fetchPieUntimelyClosedTaskInfo(params: string): Promise<any>;
14
- fetchPieAdditionalTasks(queryString: string): Promise<any[]>;
15
- fetchPieAdditionalTasksInfo(params: string): Promise<any>;
16
- fetchPersonnel(queryString: string): Promise<any[]>;
17
- fetchPieExpired(queryString: string): Promise<any[]>;
18
- fetchPieExpiredInfo(params: string): Promise<any>;
19
- }
20
- export default function useMetricsService(): MetricsService;
21
- export {};
@@ -1,7 +0,0 @@
1
- import { default as ApiService, ResponseApi } from './ApiService';
2
- import { Api_Tasks_Task_Dto } from './types/Api_Tasks';
3
- declare class ProjectsService extends ApiService {
4
- fetchProjectById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
5
- }
6
- export default function useProjectsService(): ProjectsService;
7
- export {};
@@ -1,15 +0,0 @@
1
- import { default as ApiService, ResponseApi } from './ApiService';
2
- import { Api_Create_Repair_With_Equipments, Api_Equipment_Full_Dto, Api_Repair_Dto, Api_Update_Repair, OptionFilters } from './types/Api_Repairs';
3
- declare class RepairsService extends ApiService {
4
- fetchFilters(fullParams: string): Promise<OptionFilters>;
5
- fetchRepairs(isQuery: boolean, queries?: string, hasTeams?: boolean | string, teamsFilter?: string): Promise<ResponseApi<Api_Repair_Dto[]>>;
6
- fetchEquipment(): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
7
- createRepair(payload: Api_Create_Repair_With_Equipments): Promise<any>;
8
- startRepair(id: string): Promise<void>;
9
- finishRepair(id: string): Promise<void>;
10
- finishPreparationProject(id: string): Promise<void>;
11
- updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
12
- deleteRepair(id: string): Promise<import('axios').AxiosResponse<any, any>>;
13
- }
14
- export default function useRepairsService(): RepairsService;
15
- export {};
@@ -1,7 +0,0 @@
1
- import { default as ApiService, ResponseApi } from './ApiService';
2
- import { Api_Tasks_Task_Dto } from './types/Api_Tasks';
3
- declare class TasksService extends ApiService {
4
- fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
5
- }
6
- export default function useTasksService(): TasksService;
7
- export {};
File without changes
@@ -1,49 +0,0 @@
1
- export type Api_Team = {
2
- id: string;
3
- display_name: string;
4
- };
5
- export type Api_Equipment_Short_Dto = {
6
- id: string;
7
- name: string;
8
- };
9
- export type Api_Repairs = {
10
- id: string;
11
- name: string;
12
- };
13
- export type Api_Projects = {
14
- id: string;
15
- name: string;
16
- };
17
- export type OptionFilters = {
18
- teams?: Api_Team[];
19
- equipments?: Api_Equipment_Short_Dto[];
20
- };
21
- export type Api_Equipment_Full_Dto = {
22
- id: string;
23
- model: null | string;
24
- name: string;
25
- registration_number: string;
26
- repair_frequency: number;
27
- repair_range: number;
28
- };
29
- export type Api_Create_Repair_With_Equipments = {
30
- name: string;
31
- display_name: string;
32
- description: string;
33
- equipment_id: string;
34
- };
35
- export type Api_Update_Repair = {
36
- name?: string;
37
- display_name?: string;
38
- description: string;
39
- };
40
- export type Api_Repair_Dto = {
41
- id: string;
42
- name: string;
43
- display_name: string;
44
- description: string;
45
- start_date: string;
46
- end_date: string;
47
- projects: Api_Projects[];
48
- equipments: Api_Equipment_Full_Dto[];
49
- };
@@ -1,93 +0,0 @@
1
- export type Api_Tasks_Responsible_Dto = {
2
- id: string;
3
- first_name: string;
4
- last_name: string;
5
- patronymic: string;
6
- full_name: string;
7
- };
8
- export type Api_Tasks_Assigned_Dto = {
9
- id: string;
10
- first_name: string;
11
- last_name: string;
12
- patronymic: null | string;
13
- full_name: string;
14
- };
15
- export type Api_Tasks_Status_Dto = {
16
- id: string;
17
- name: string;
18
- title: string;
19
- };
20
- export type Api_Tasks_Project_Dto = {
21
- id: string;
22
- name: string;
23
- teams: string[];
24
- };
25
- export type Api_Tasks_Position_Dto = {
26
- id: string;
27
- name: string;
28
- display_name: string;
29
- };
30
- export type Api_Tasks_Position_Assigned_Dto = {
31
- id: number;
32
- user: {
33
- id: string;
34
- full_name: string;
35
- };
36
- position: Api_Tasks_Position_Dto;
37
- };
38
- export type Api_Tasks_Teams_Dto = {
39
- id: string;
40
- name: string;
41
- display_name: string;
42
- };
43
- export type Api_Tasks_Equipment_Dto = {
44
- id: string;
45
- name: string;
46
- model: string;
47
- registration_number: string;
48
- created_at: string;
49
- updated_at: string;
50
- repair_frequency: number;
51
- repair_range: number;
52
- };
53
- export type Api_Tasks_Task_Dto = {
54
- id: string;
55
- name: string;
56
- type: string;
57
- project_id: string;
58
- description: string;
59
- subtask_counter: number;
60
- subtasks: Api_Tasks_Task_Dto[];
61
- state_id: null | string;
62
- start_date: string;
63
- end_date: string;
64
- deadline: string;
65
- plan_date: string;
66
- time_to_complete: null | string | number;
67
- time_to_complete_sec: number;
68
- priority: number;
69
- work_zone_id: null | string;
70
- location_id: null | string;
71
- target: any;
72
- status: Api_Tasks_Status_Dto;
73
- project: Api_Tasks_Project_Dto;
74
- position: Api_Tasks_Position_Dto[];
75
- assigned: Api_Tasks_Assigned_Dto[];
76
- instruments: any[];
77
- warehouse: any[];
78
- responsible: Api_Tasks_Responsible_Dto[];
79
- position_assigned: Api_Tasks_Position_Assigned_Dto[];
80
- comments: any[];
81
- files: any[];
82
- teams: Api_Tasks_Teams_Dto[];
83
- work_zone: string;
84
- planned_start: null | string;
85
- planned_end: null | string;
86
- fact_start_date: string;
87
- fact_end_date: null | string;
88
- work_sec: number;
89
- pause_sec: number;
90
- repair_object: null | string;
91
- isPause: boolean;
92
- equipment: Api_Tasks_Equipment_Dto[];
93
- };
package/dist/App.vue.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,73 +0,0 @@
1
- interface QBtnProps {
2
- size?: string | undefined;
3
- type?: string | undefined;
4
- to?: string | any | undefined;
5
- replace?: boolean | undefined;
6
- href?: string | undefined;
7
- target?: string | undefined;
8
- label?: string | number | undefined;
9
- icon?: string | undefined;
10
- iconRight?: string | undefined;
11
- outline?: boolean | undefined;
12
- flat?: boolean | undefined;
13
- unelevated?: boolean | undefined;
14
- rounded?: boolean | undefined;
15
- push?: boolean | undefined;
16
- square?: boolean | undefined;
17
- glossy?: boolean | undefined;
18
- fab?: boolean | undefined;
19
- fabMini?: boolean | undefined;
20
- padding?: string | undefined;
21
- color?: string | undefined;
22
- textColor?: string | undefined;
23
- noCaps?: boolean | undefined;
24
- noWrap?: boolean | undefined;
25
- dense?: boolean | undefined;
26
- ripple?: boolean | any | undefined;
27
- tabindex?: number | string | undefined;
28
- align?: 'left' | 'right' | 'center' | 'around' | 'between' | 'evenly' | undefined;
29
- stack?: boolean | undefined;
30
- stretch?: boolean | undefined;
31
- loading?: boolean | undefined;
32
- round?: boolean | undefined;
33
- percentage?: number | undefined;
34
- darkPercentage?: boolean | undefined;
35
- }
36
- interface Props extends QBtnProps {
37
- disable?: boolean | ((...args: any[]) => boolean);
38
- tooltip?: string;
39
- uppercase?: boolean;
40
- xSmall?: boolean;
41
- small?: boolean;
42
- large?: boolean;
43
- fullWidth?: boolean;
44
- wrap?: boolean;
45
- largeIcon?: boolean;
46
- modelValue?: boolean;
47
- badge?: string | boolean | number;
48
- badgeColor?: string;
49
- badgeInline?: boolean;
50
- link?: boolean;
51
- }
52
- declare function __VLS_template(): {
53
- slots: {
54
- default?(_: {}): any;
55
- };
56
- refs: {};
57
- attrs: Partial<{}>;
58
- };
59
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
60
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
- click: (...args: any[]) => void;
62
- "update:modelValue": (...args: any[]) => void;
63
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
64
- onClick?: ((...args: any[]) => any) | undefined;
65
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
67
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
68
- export default _default;
69
- type __VLS_WithTemplateSlots<T, S> = T & {
70
- new (): {
71
- $slots: S;
72
- };
73
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- export default _default;
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { default as AppTestButton } from './common/app-test-button/AppTestButton.vue';
2
- declare const useAppButton: {
3
- install: (app: {
4
- component: (a: string, b: unknown) => void;
5
- }) => void;
6
- };
7
- export { useAppButton, AppTestButton };
package/dist/main.d.ts DELETED
File without changes
@@ -1,21 +0,0 @@
1
- import { openBlock as c, createElementBlock as r, createElementVNode as p } from "vue";
2
- const l = (t, s) => {
3
- const n = t.__vccOpts || t;
4
- for (const [o, e] of s)
5
- n[o] = e;
6
- return n;
7
- }, u = {};
8
- function _(t, s) {
9
- return c(), r("div", null, s[0] || (s[0] = [
10
- p("button", null, "sssssssssssssssss", -1)
11
- ]));
12
- }
13
- const f = /* @__PURE__ */ l(u, [["render", _]]), m = {
14
- install: function(t) {
15
- t.component("AppTestButton", f);
16
- }
17
- };
18
- export {
19
- f as AppTestButton,
20
- m as useAppButton
21
- };
@@ -1 +0,0 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.MyVueLibrary={},e.Vue))})(this,function(e,t){"use strict";const i=(n,s)=>{const u=n.__vccOpts||n;for(const[f,d]of s)u[f]=d;return u},c={};function p(n,s){return t.openBlock(),t.createElementBlock("div",null,s[0]||(s[0]=[t.createElementVNode("button",null,"sssssssssssssssss",-1)]))}const o=i(c,[["render",p]]),r={install:function(n){n.component("AppTestButton",o)}};e.AppTestButton=o,e.useAppButton=r,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
@@ -1,12 +0,0 @@
1
- import { Quasar, Notify, Loading, Dialog } from 'quasar';
2
- declare const quasarUserOptions: {
3
- config: {
4
- dark: boolean;
5
- };
6
- plugins: {
7
- Notify: Notify;
8
- Loading: Loading;
9
- Dialog: Dialog;
10
- };
11
- };
12
- export { Quasar, quasarUserOptions };