@quidgest/ui 0.2.0 → 0.3.0
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/ui.esm.js +1022 -833
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +4 -4
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +223 -201
- package/dist/ui.min.js.map +1 -1
- package/lib/components/QButtonToggle/QButtonToggle.vue.d.ts +2 -2
- package/lib/components/QButtonToggle/QButtonToggle.vue.d.ts.map +1 -1
- package/lib/components/QIcon/InlineSvg.d.ts +72 -0
- package/lib/components/QIcon/InlineSvg.d.ts.map +1 -0
- package/lib/components/QIcon/QIcon.vue.d.ts +42 -0
- package/lib/components/QIcon/QIcon.vue.d.ts.map +1 -0
- package/lib/components/QIcon/QIconFont.vue.d.ts +59 -0
- package/lib/components/QIcon/QIconFont.vue.d.ts.map +1 -0
- package/lib/components/QIcon/QIconImg.vue.d.ts +19 -0
- package/lib/components/QIcon/QIconImg.vue.d.ts.map +1 -0
- package/lib/components/QIcon/QIconSvg.vue.d.ts +38 -0
- package/lib/components/QIcon/QIconSvg.vue.d.ts.map +1 -0
- package/lib/components/QIcon/index.d.ts +6 -0
- package/lib/components/QIcon/index.d.ts.map +1 -0
- package/lib/components/QSpinnerLoader/QSpinnerLoader.vue.d.ts.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/composables/theme.d.ts +6 -6
- package/lib/composables/theme.d.ts.map +1 -1
- package/lib/framework.d.ts +2 -2
- package/lib/framework.d.ts.map +1 -1
- package/lib/styles/ui.css +11 -2
- package/lib/styles/ui.min.css +1 -1
- package/lib/styles/ui.scss +10 -2
- package/lib/utils/color.d.ts +2 -2
- package/lib/utils/color.d.ts.map +1 -1
- package/package.json +6 -3
package/dist/ui.min.js
CHANGED
|
@@ -1,305 +1,327 @@
|
|
|
1
1
|
!function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=typeof globalThis<"u"?globalThis:e||self)["Quid UI"]={},e.Vue)}(this,(function(e,t){"use strict"
|
|
2
|
-
const n=[t.createElementVNode("svg",{viewBox:"25 25 50 50"},[t.createElementVNode("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10"})],-1)],
|
|
3
|
-
return(e,
|
|
2
|
+
const n=[t.createElementVNode("svg",{viewBox:"25 25 50 50"},[t.createElementVNode("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10"})],-1)],o=t.defineComponent({__name:"QSpinnerLoader",props:{size:{default:48}},setup(e){const o=e,r=t.computed((()=>({"font-size":48!==o.size?`${o.size}px`:void 0})))
|
|
3
|
+
return(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:"q-spinner-loader",style:t.normalizeStyle(r.value)},n,4))}}),r=["disabled","onClick"],a={key:0,class:"q-btn__spinner"},c={class:"q-btn__content"},i=t.defineComponent({__name:"QButton",props:{active:{type:Boolean},bStyle:{default:"secondary"},label:{default:""},disabled:{type:Boolean},iconOnRight:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},loading:{type:Boolean},size:{default:"regular"}},emits:["click"],setup(e,{emit:n}){const i=e,l=t.computed((()=>i.disabled||i.loading))
|
|
4
4
|
function s(e){l.value||n("click",e)}const u=t.computed((()=>{const e=t.computed((()=>i.bStyle?`q-btn--${i.bStyle}`:void 0)),n=t.computed((()=>"regular"!==i.size?`q-btn--${i.size}`:void 0))
|
|
5
5
|
return["q-btn",e.value,n.value,{"q-btn--active":i.active,"q-btn--borderless":i.borderless,"q-btn--elevated":i.elevated,"q-btn--block":i.block,"q-btn--loading":i.loading}]}))
|
|
6
|
-
return(e,n)=>(t.openBlock(),t.createElementBlock("button",{type:"button",class:t.normalizeClass(u.value),disabled:l.value,onClick:t.withModifiers(s,["stop","prevent"])},[e.loading?(t.openBlock(),t.createElementBlock("div",a,[t.createVNode(t.unref(
|
|
6
|
+
return(e,n)=>(t.openBlock(),t.createElementBlock("button",{type:"button",class:t.normalizeClass(u.value),disabled:l.value,onClick:t.withModifiers(s,["stop","prevent"])},[e.loading?(t.openBlock(),t.createElementBlock("div",a,[t.createVNode(t.unref(o),{size:23})])):t.createCommentVNode("",!0),t.createElementVNode("span",c,[e.iconOnRight?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.label),1)],64)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.iconOnRight?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(i.label),1)],64))])],10,r))}})
|
|
7
7
|
const l="object"==typeof global&&global&&global.Object===Object&&global
|
|
8
8
|
var s="object"==typeof self&&self&&self.Object===Object&&self
|
|
9
9
|
const u=l||s||Function("return this")()
|
|
10
10
|
const f=u.Symbol
|
|
11
11
|
var d=Object.prototype,p=d.hasOwnProperty,h=d.toString,y=f?f.toStringTag:void 0
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
function _(e){return null==e?void 0===e?m:
|
|
12
|
+
var v=Object.prototype.toString
|
|
13
|
+
var b="[object Null]",m="[object Undefined]",g=f?f.toStringTag:void 0
|
|
14
|
+
function _(e){return null==e?void 0===e?m:b:g&&g in Object(e)?function(e){var t=p.call(e,y),n=e[y]
|
|
15
15
|
try{e[y]=void 0
|
|
16
|
-
var
|
|
17
|
-
return
|
|
16
|
+
var o=!0}catch{}var r=h.call(e)
|
|
17
|
+
return o&&(t?e[y]=n:delete e[y]),r}(e):function(e){return v.call(e)}(e)}function w(e){return null!=e&&"object"==typeof e}const j=Array.isArray
|
|
18
18
|
function k(e){var t=typeof e
|
|
19
|
-
return null!=e&&("object"==t||"function"==t)}function B(e){return e}var
|
|
20
|
-
function
|
|
19
|
+
return null!=e&&("object"==t||"function"==t)}function B(e){return e}var S="[object AsyncFunction]",O="[object Function]",E="[object GeneratorFunction]",C="[object Proxy]"
|
|
20
|
+
function x(e){if(!k(e))return!1
|
|
21
21
|
var t=_(e)
|
|
22
|
-
return t==
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
function
|
|
27
|
-
return
|
|
28
|
-
var
|
|
29
|
-
if(
|
|
22
|
+
return t==O||t==E||t==S||t==C}const A=u["__core-js_shared__"]
|
|
23
|
+
var z,$=(z=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+z:""
|
|
24
|
+
var D=Function.prototype.toString
|
|
25
|
+
function T(e){if(null!=e){try{return D.call(e)}catch{}try{return e+""}catch{}}return""}var L=/^\[object .+?Constructor\]$/,I=Function.prototype,q=Object.prototype,F=I.toString,M=q.hasOwnProperty,P=RegExp("^"+F.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$")
|
|
26
|
+
function V(e){return!(!k(e)||function(e){return!!$&&$ in e}(e))&&(x(e)?P:L).test(T(e))}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t)
|
|
27
|
+
return V(n)?n:void 0}const Q=N(u,"WeakMap")
|
|
28
|
+
var U=Object.create,R=function(){function e(){}return function(t){if(!k(t))return{}
|
|
29
|
+
if(U)return U(t)
|
|
30
30
|
e.prototype=t
|
|
31
31
|
var n=new e
|
|
32
32
|
return e.prototype=void 0,n}}()
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
for(t||(t=Array(
|
|
33
|
+
const H=R
|
|
34
|
+
function W(e,t){var n=-1,o=e.length
|
|
35
|
+
for(t||(t=Array(o));++n<o;)t[n]=e[n]
|
|
36
36
|
return t}var G=Date.now
|
|
37
37
|
function Y(e){return function(){return e}}var X=function(){try{var e=N(Object,"defineProperty")
|
|
38
38
|
return e({},"",{}),e}catch{}}()
|
|
39
39
|
const Z=X
|
|
40
40
|
var J=Z?function(e,t){return Z(e,"toString",{configurable:!0,enumerable:!1,value:Y(t),writable:!0})}:B,K=function(e){var t=0,n=0
|
|
41
|
-
return function(){var
|
|
42
|
-
if(n=r
|
|
41
|
+
return function(){var o=G(),r=16-(o-n)
|
|
42
|
+
if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0
|
|
43
43
|
return e.apply(void 0,arguments)}}(J)
|
|
44
44
|
const ee=K
|
|
45
45
|
var te=9007199254740991,ne=/^(?:0|[1-9]\d*)$/
|
|
46
|
-
function
|
|
47
|
-
return!!(t=t??te)&&("number"==n||"symbol"!=n&&ne.test(e))&&e>-1&&e%1==0&&e<t}function
|
|
48
|
-
function ie(e,t,n){var
|
|
46
|
+
function oe(e,t){var n=typeof e
|
|
47
|
+
return!!(t=t??te)&&("number"==n||"symbol"!=n&&ne.test(e))&&e>-1&&e%1==0&&e<t}function re(e,t,n){"__proto__"==t&&Z?Z(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ae(e,t){return e===t||e!=e&&t!=t}var ce=Object.prototype.hasOwnProperty
|
|
48
|
+
function ie(e,t,n){var o=e[t];(!ce.call(e,t)||!ae(o,n)||void 0===n&&!(t in e))&&re(e,t,n)}function le(e,t,n,o){var r=!n
|
|
49
49
|
n||(n={})
|
|
50
|
-
for(var a=-1,c=t.length;++a<c;){var i=t[a],l=
|
|
51
|
-
void 0===l&&(l=e[i]),
|
|
52
|
-
function ue(e,t){return ee(function(e,t,n){return t=se(void 0===t?e.length-1:t,0),function(){for(var
|
|
53
|
-
|
|
54
|
-
for(var i=Array(t+1);++
|
|
50
|
+
for(var a=-1,c=t.length;++a<c;){var i=t[a],l=o?o(n[i],e[i],i,n,e):void 0
|
|
51
|
+
void 0===l&&(l=e[i]),r?re(n,i,l):ie(n,i,l)}return n}var se=Math.max
|
|
52
|
+
function ue(e,t){return ee(function(e,t,n){return t=se(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,a=se(o.length-t,0),c=Array(a);++r<a;)c[r]=o[t+r]
|
|
53
|
+
r=-1
|
|
54
|
+
for(var i=Array(t+1);++r<t;)i[r]=o[r]
|
|
55
55
|
return i[t]=n(c),function(e,t,n){switch(n.length){case 0:return e.call(t)
|
|
56
56
|
case 1:return e.call(t,n[0])
|
|
57
57
|
case 2:return e.call(t,n[0],n[1])
|
|
58
58
|
case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,i)}}(e,t,B),e+"")}var fe=9007199254740991
|
|
59
|
-
function de(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=fe}function pe(e){return null!=e&&de(e.length)&&!
|
|
59
|
+
function de(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=fe}function pe(e){return null!=e&&de(e.length)&&!x(e)}var he=Object.prototype
|
|
60
60
|
function ye(e){var t=e&&e.constructor
|
|
61
|
-
return e===("function"==typeof t&&t.prototype||he)}function
|
|
62
|
-
const
|
|
63
|
-
var
|
|
64
|
-
const
|
|
65
|
-
var
|
|
66
|
-
function
|
|
67
|
-
var
|
|
68
|
-
const
|
|
69
|
-
var
|
|
70
|
-
const
|
|
71
|
-
var
|
|
72
|
-
function
|
|
73
|
-
return
|
|
74
|
-
for(var s in e)(t
|
|
75
|
-
return i}function
|
|
76
|
-
var
|
|
77
|
-
function
|
|
61
|
+
return e===("function"==typeof t&&t.prototype||he)}function ve(e){return w(e)&&"[object Arguments]"==_(e)}var be=Object.prototype,me=be.hasOwnProperty,ge=be.propertyIsEnumerable,_e=ve(function(){return arguments}())?ve:function(e){return w(e)&&me.call(e,"callee")&&!ge.call(e,"callee")}
|
|
62
|
+
const we=_e
|
|
63
|
+
var je="object"==typeof e&&e&&!e.nodeType&&e,ke=je&&"object"==typeof module&&module&&!module.nodeType&&module,Be=ke&&ke.exports===je?u.Buffer:void 0
|
|
64
|
+
const Se=(Be?Be.isBuffer:void 0)||function(){return!1}
|
|
65
|
+
var Oe={}
|
|
66
|
+
function Ee(e){return function(t){return e(t)}}Oe["[object Float32Array]"]=Oe["[object Float64Array]"]=Oe["[object Int8Array]"]=Oe["[object Int16Array]"]=Oe["[object Int32Array]"]=Oe["[object Uint8Array]"]=Oe["[object Uint8ClampedArray]"]=Oe["[object Uint16Array]"]=Oe["[object Uint32Array]"]=!0,Oe["[object Arguments]"]=Oe["[object Array]"]=Oe["[object ArrayBuffer]"]=Oe["[object Boolean]"]=Oe["[object DataView]"]=Oe["[object Date]"]=Oe["[object Error]"]=Oe["[object Function]"]=Oe["[object Map]"]=Oe["[object Number]"]=Oe["[object Object]"]=Oe["[object RegExp]"]=Oe["[object Set]"]=Oe["[object String]"]=Oe["[object WeakMap]"]=!1
|
|
67
|
+
var Ce="object"==typeof e&&e&&!e.nodeType&&e,xe=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,Ae=xe&&xe.exports===Ce&&l.process
|
|
68
|
+
const ze=function(){try{return xe&&xe.require&&xe.require("util").types||Ae&&Ae.binding&&Ae.binding("util")}catch{}}()
|
|
69
|
+
var $e=ze&&ze.isTypedArray,De=$e?Ee($e):function(e){return w(e)&&de(e.length)&&!!Oe[_(e)]}
|
|
70
|
+
const Te=De
|
|
71
|
+
var Le=Object.prototype.hasOwnProperty
|
|
72
|
+
function Ie(e,t){var n=j(e),o=!n&&we(e),r=!n&&!o&&Se(e),a=!n&&!o&&!r&&Te(e),c=n||o||r||a,i=c?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n)
|
|
73
|
+
return o}(e.length,String):[],l=i.length
|
|
74
|
+
for(var s in e)(t||Le.call(e,s))&&(!c||!("length"==s||r&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||oe(s,l)))&&i.push(s)
|
|
75
|
+
return i}function qe(e,t){return function(n){return e(t(n))}}const Fe=qe(Object.keys,Object)
|
|
76
|
+
var Me=Object.prototype.hasOwnProperty
|
|
77
|
+
function Pe(e){if(!ye(e))return Fe(e)
|
|
78
78
|
var t=[]
|
|
79
|
-
for(var n in Object(e))
|
|
80
|
-
return t}function
|
|
81
|
-
function
|
|
79
|
+
for(var n in Object(e))Me.call(e,n)&&"constructor"!=n&&t.push(n)
|
|
80
|
+
return t}function Ve(e){return pe(e)?Ie(e):Pe(e)}var Ne=Object.prototype.hasOwnProperty
|
|
81
|
+
function Qe(e){if(!k(e))return function(e){var t=[]
|
|
82
82
|
if(null!=e)for(var n in Object(e))t.push(n)
|
|
83
83
|
return t}(e)
|
|
84
84
|
var t=ye(e),n=[]
|
|
85
|
-
for(var
|
|
86
|
-
return n}function
|
|
87
|
-
var We=Object.prototype.hasOwnProperty
|
|
85
|
+
for(var o in e)"constructor"==o&&(t||!Ne.call(e,o))||n.push(o)
|
|
86
|
+
return n}function Ue(e){return pe(e)?Ie(e,!0):Qe(e)}const Re=N(Object,"create")
|
|
88
87
|
var He=Object.prototype.hasOwnProperty
|
|
88
|
+
var We=Object.prototype.hasOwnProperty
|
|
89
89
|
function Ge(e){var t=-1,n=null==e?0:e.length
|
|
90
|
-
for(this.clear();++t<n;){var
|
|
91
|
-
this.set(
|
|
90
|
+
for(this.clear();++t<n;){var o=e[t]
|
|
91
|
+
this.set(o[0],o[1])}}function Ye(e,t){for(var n=e.length;n--;)if(ae(e[n][0],t))return n
|
|
92
92
|
return-1}Ge.prototype.clear=function(){this.__data__=Re?Re(null):{},this.size=0},Ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e]
|
|
93
93
|
return this.size-=t?1:0,t},Ge.prototype.get=function(e){var t=this.__data__
|
|
94
94
|
if(Re){var n=t[e]
|
|
95
|
-
return"__lodash_hash_undefined__"===n?void 0:n}return
|
|
96
|
-
return Re?void 0!==t[e]:
|
|
95
|
+
return"__lodash_hash_undefined__"===n?void 0:n}return He.call(t,e)?t[e]:void 0},Ge.prototype.has=function(e){var t=this.__data__
|
|
96
|
+
return Re?void 0!==t[e]:We.call(t,e)},Ge.prototype.set=function(e,t){var n=this.__data__
|
|
97
97
|
return this.size+=this.has(e)?0:1,n[e]=Re&&void 0===t?"__lodash_hash_undefined__":t,this}
|
|
98
98
|
var Xe=Array.prototype.splice
|
|
99
99
|
function Ze(e){var t=-1,n=null==e?0:e.length
|
|
100
|
-
for(this.clear();++t<n;){var
|
|
101
|
-
this.set(
|
|
100
|
+
for(this.clear();++t<n;){var o=e[t]
|
|
101
|
+
this.set(o[0],o[1])}}Ze.prototype.clear=function(){this.__data__=[],this.size=0},Ze.prototype.delete=function(e){var t=this.__data__,n=Ye(t,e)
|
|
102
102
|
return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Ze.prototype.get=function(e){var t=this.__data__,n=Ye(t,e)
|
|
103
|
-
return n<0?void 0:t[n][1]},Ze.prototype.has=function(e){return Ye(this.__data__,e)>-1},Ze.prototype.set=function(e,t){var n=this.__data__,
|
|
104
|
-
return
|
|
103
|
+
return n<0?void 0:t[n][1]},Ze.prototype.has=function(e){return Ye(this.__data__,e)>-1},Ze.prototype.set=function(e,t){var n=this.__data__,o=Ye(n,e)
|
|
104
|
+
return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}
|
|
105
105
|
const Je=N(u,"Map")
|
|
106
106
|
function Ke(e,t){var n=e.__data__
|
|
107
107
|
return function(e){var t=typeof e
|
|
108
108
|
return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function et(e){var t=-1,n=null==e?0:e.length
|
|
109
|
-
for(this.clear();++t<n;){var
|
|
110
|
-
this.set(
|
|
109
|
+
for(this.clear();++t<n;){var o=e[t]
|
|
110
|
+
this.set(o[0],o[1])}}function tt(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n]
|
|
111
111
|
return e}et.prototype.clear=function(){this.size=0,this.__data__={hash:new Ge,map:new(Je||Ze),string:new Ge}},et.prototype.delete=function(e){var t=Ke(this,e).delete(e)
|
|
112
|
-
return this.size-=t?1:0,t},et.prototype.get=function(e){return Ke(this,e).get(e)},et.prototype.has=function(e){return Ke(this,e).has(e)},et.prototype.set=function(e,t){var n=Ke(this,e),
|
|
113
|
-
return n.set(e,t),this.size+=n.size==
|
|
114
|
-
const nt=
|
|
115
|
-
var
|
|
112
|
+
return this.size-=t?1:0,t},et.prototype.get=function(e){return Ke(this,e).get(e)},et.prototype.has=function(e){return Ke(this,e).has(e)},et.prototype.set=function(e,t){var n=Ke(this,e),o=n.size
|
|
113
|
+
return n.set(e,t),this.size+=n.size==o?0:1,this}
|
|
114
|
+
const nt=qe(Object.getPrototypeOf,Object)
|
|
115
|
+
var ot="[object Object]",rt=Function.prototype,at=Object.prototype,ct=rt.toString,it=at.hasOwnProperty,lt=ct.call(Object)
|
|
116
116
|
function st(e){var t=this.__data__=new Ze(e)
|
|
117
117
|
this.size=t.size}st.prototype.clear=function(){this.__data__=new Ze,this.size=0},st.prototype.delete=function(e){var t=this.__data__,n=t.delete(e)
|
|
118
118
|
return this.size=t.size,n},st.prototype.get=function(e){return this.__data__.get(e)},st.prototype.has=function(e){return this.__data__.has(e)},st.prototype.set=function(e,t){var n=this.__data__
|
|
119
|
-
if(n instanceof Ze){var
|
|
120
|
-
if(!Je||
|
|
121
|
-
n=this.__data__=new et(
|
|
119
|
+
if(n instanceof Ze){var o=n.__data__
|
|
120
|
+
if(!Je||o.length<199)return o.push([e,t]),this.size=++n.size,this
|
|
121
|
+
n=this.__data__=new et(o)}return n.set(e,t),this.size=n.size,this}
|
|
122
122
|
var ut="object"==typeof e&&e&&!e.nodeType&&e,ft=ut&&"object"==typeof module&&module&&!module.nodeType&&module,dt=ft&&ft.exports===ut?u.Buffer:void 0,pt=dt?dt.allocUnsafe:void 0
|
|
123
123
|
function ht(e,t){if(t)return e.slice()
|
|
124
|
-
var n=e.length,
|
|
125
|
-
return e.copy(
|
|
126
|
-
t(c,n,e)&&(a[
|
|
124
|
+
var n=e.length,o=pt?pt(n):new e.constructor(n)
|
|
125
|
+
return e.copy(o),o}function yt(){return[]}var vt=Object.prototype.propertyIsEnumerable,bt=Object.getOwnPropertySymbols,mt=bt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,a=[];++n<o;){var c=e[n]
|
|
126
|
+
t(c,n,e)&&(a[r++]=c)}return a}(bt(e),(function(t){return vt.call(e,t)})))}:yt
|
|
127
127
|
const gt=mt
|
|
128
128
|
var _t=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)tt(t,gt(e)),e=nt(e)
|
|
129
129
|
return t}:yt
|
|
130
|
-
const
|
|
131
|
-
function
|
|
132
|
-
return
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
var
|
|
136
|
-
if(
|
|
137
|
-
case
|
|
138
|
-
case
|
|
139
|
-
case
|
|
140
|
-
case
|
|
141
|
-
const
|
|
142
|
-
var
|
|
143
|
-
const
|
|
130
|
+
const wt=_t
|
|
131
|
+
function jt(e,t,n){var o=t(e)
|
|
132
|
+
return j(e)?o:tt(o,n(e))}function kt(e){return jt(e,Ve,gt)}function Bt(e){return jt(e,Ue,wt)}const St=N(u,"DataView")
|
|
133
|
+
const Ot=N(u,"Promise")
|
|
134
|
+
const Et=N(u,"Set")
|
|
135
|
+
var Ct="[object Map]",xt="[object Promise]",At="[object Set]",zt="[object WeakMap]",$t="[object DataView]",Dt=T(St),Tt=T(Je),Lt=T(Ot),It=T(Et),qt=T(Q),Ft=_;(St&&Ft(new St(new ArrayBuffer(1)))!=$t||Je&&Ft(new Je)!=Ct||Ot&&Ft(Ot.resolve())!=xt||Et&&Ft(new Et)!=At||Q&&Ft(new Q)!=zt)&&(Ft=function(e){var t=_(e),n="[object Object]"==t?e.constructor:void 0,o=n?T(n):""
|
|
136
|
+
if(o)switch(o){case Dt:return $t
|
|
137
|
+
case Tt:return Ct
|
|
138
|
+
case Lt:return xt
|
|
139
|
+
case It:return At
|
|
140
|
+
case qt:return zt}return t})
|
|
141
|
+
const Mt=Ft
|
|
142
|
+
var Pt=Object.prototype.hasOwnProperty
|
|
143
|
+
const Vt=u.Uint8Array
|
|
144
144
|
function Nt(e){var t=new e.constructor(e.byteLength)
|
|
145
|
-
return new
|
|
146
|
-
var
|
|
147
|
-
function
|
|
148
|
-
return new e.constructor(n,e.byteOffset,e.length)}var
|
|
149
|
-
function pn(e,t,n){var
|
|
145
|
+
return new Vt(t).set(new Vt(e)),t}var Qt=/\w*$/
|
|
146
|
+
var Ut=f?f.prototype:void 0,Rt=Ut?Ut.valueOf:void 0
|
|
147
|
+
function Ht(e,t){var n=t?Nt(e.buffer):e.buffer
|
|
148
|
+
return new e.constructor(n,e.byteOffset,e.length)}var Wt="[object Boolean]",Gt="[object Date]",Yt="[object Map]",Xt="[object Number]",Zt="[object RegExp]",Jt="[object Set]",Kt="[object String]",en="[object Symbol]",tn="[object ArrayBuffer]",nn="[object DataView]",on="[object Float32Array]",rn="[object Float64Array]",an="[object Int8Array]",cn="[object Int16Array]",ln="[object Int32Array]",sn="[object Uint8Array]",un="[object Uint8ClampedArray]",fn="[object Uint16Array]",dn="[object Uint32Array]"
|
|
149
|
+
function pn(e,t,n){var o=e.constructor
|
|
150
150
|
switch(t){case tn:return Nt(e)
|
|
151
|
-
case
|
|
151
|
+
case Wt:case Gt:return new o(+e)
|
|
152
152
|
case nn:return function(e,t){var n=t?Nt(e.buffer):e.buffer
|
|
153
153
|
return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n)
|
|
154
|
-
case
|
|
155
|
-
case Yt:return new
|
|
156
|
-
case Xt:case Kt:return new
|
|
157
|
-
case Zt:return function(e){var t=new e.constructor(e.source,
|
|
154
|
+
case on:case rn:case an:case cn:case ln:case sn:case un:case fn:case dn:return Ht(e,n)
|
|
155
|
+
case Yt:return new o
|
|
156
|
+
case Xt:case Kt:return new o(e)
|
|
157
|
+
case Zt:return function(e){var t=new e.constructor(e.source,Qt.exec(e))
|
|
158
158
|
return t.lastIndex=e.lastIndex,t}(e)
|
|
159
|
-
case Jt:return new
|
|
160
|
-
case en:return function(e){return Rt?Object(Rt.call(e)):{}}(e)}}function hn(e){return"function"!=typeof e.constructor||ye(e)?{}:
|
|
161
|
-
const vn
|
|
162
|
-
var mn=
|
|
159
|
+
case Jt:return new o
|
|
160
|
+
case en:return function(e){return Rt?Object(Rt.call(e)):{}}(e)}}function hn(e){return"function"!=typeof e.constructor||ye(e)?{}:H(nt(e))}var yn=ze&&ze.isMap,vn=yn?Ee(yn):function(e){return w(e)&&"[object Map]"==Mt(e)}
|
|
161
|
+
const bn=vn
|
|
162
|
+
var mn=ze&&ze.isSet,gn=mn?Ee(mn):function(e){return w(e)&&"[object Set]"==Mt(e)}
|
|
163
163
|
const _n=gn
|
|
164
|
-
var
|
|
165
|
-
function
|
|
166
|
-
if(n&&(c=
|
|
164
|
+
var wn=1,jn=2,kn=4,Bn="[object Arguments]",Sn="[object Function]",On="[object GeneratorFunction]",En="[object Object]",Cn={}
|
|
165
|
+
function xn(e,t,n,o,r,a){var c,i=t&wn,l=t&jn,s=t&kn
|
|
166
|
+
if(n&&(c=r?n(e,o,r,a):n(e)),void 0!==c)return c
|
|
167
167
|
if(!k(e))return e
|
|
168
|
-
var u=
|
|
168
|
+
var u=j(e)
|
|
169
169
|
if(u){if(c=function(e){var t=e.length,n=new e.constructor(t)
|
|
170
|
-
return t&&"string"==typeof e[0]&&
|
|
171
|
-
if(
|
|
172
|
-
if(f==
|
|
170
|
+
return t&&"string"==typeof e[0]&&Pt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!i)return W(e,c)}else{var f=Mt(e),d=f==Sn||f==On
|
|
171
|
+
if(Se(e))return ht(e,i)
|
|
172
|
+
if(f==En||f==Bn||d&&!r){if(c=l||d?{}:hn(e),!i)return l?function(e,t){return le(e,wt(e),t)}(e,function(e,t){return e&&le(t,Ue(t),e)}(c,e)):function(e,t){return le(e,gt(e),t)}(e,function(e,t){return e&&le(t,Ve(t),e)}(c,e))}else{if(!Cn[f])return r?e:{}
|
|
173
173
|
c=pn(e,f,i)}}a||(a=new st)
|
|
174
174
|
var p=a.get(e)
|
|
175
175
|
if(p)return p
|
|
176
|
-
a.set(e,c),_n(e)?e.forEach((function(
|
|
177
|
-
var h=u?void 0:(s?l?Bt:kt:l?
|
|
178
|
-
return function(e,t){for(var n=-1,
|
|
179
|
-
var
|
|
180
|
-
var
|
|
176
|
+
a.set(e,c),_n(e)?e.forEach((function(o){c.add(xn(o,t,n,o,e,a))})):bn(e)&&e.forEach((function(o,r){c.set(r,xn(o,t,n,r,e,a))}))
|
|
177
|
+
var h=u?void 0:(s?l?Bt:kt:l?Ue:Ve)(e)
|
|
178
|
+
return function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););}(h||e,(function(o,r){h&&(o=e[r=o]),ie(c,r,xn(o,t,n,r,e,a))})),c}Cn[Bn]=Cn["[object Array]"]=Cn["[object ArrayBuffer]"]=Cn["[object DataView]"]=Cn["[object Boolean]"]=Cn["[object Date]"]=Cn["[object Float32Array]"]=Cn["[object Float64Array]"]=Cn["[object Int8Array]"]=Cn["[object Int16Array]"]=Cn["[object Int32Array]"]=Cn["[object Map]"]=Cn["[object Number]"]=Cn[En]=Cn["[object RegExp]"]=Cn["[object Set]"]=Cn["[object String]"]=Cn["[object Symbol]"]=Cn["[object Uint8Array]"]=Cn["[object Uint8ClampedArray]"]=Cn["[object Uint16Array]"]=Cn["[object Uint32Array]"]=!0,Cn["[object Error]"]=Cn[Sn]=Cn["[object WeakMap]"]=!1
|
|
179
|
+
var An=1,zn=4
|
|
180
|
+
var $n=function(e){return function(t,n,o){for(var r=-1,a=Object(t),c=o(t),i=c.length;i--;){var l=c[e?i:++r]
|
|
181
181
|
if(!1===n(a[l],l,a))break}return t}}()
|
|
182
|
-
const
|
|
183
|
-
function
|
|
184
|
-
if(s)
|
|
182
|
+
const Dn=$n
|
|
183
|
+
function Tn(e,t,n){(void 0!==n&&!ae(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function Ln(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function In(e,t,n,o,r,a,c){var i=Ln(e,n),l=Ln(t,n),s=c.get(l)
|
|
184
|
+
if(s)Tn(e,n,s)
|
|
185
185
|
else{var u=a?a(i,l,n+"",e,t,c):void 0,f=void 0===u
|
|
186
|
-
if(f){var d=
|
|
187
|
-
u=l,d||p||h?
|
|
186
|
+
if(f){var d=j(l),p=!d&&Se(l),h=!d&&!p&&Te(l)
|
|
187
|
+
u=l,d||p||h?j(i)?u=i:function(e){return w(e)&&pe(e)}(i)?u=W(i):p?(f=!1,u=ht(l,!0)):h?(f=!1,u=Ht(l,!0)):u=[]:function(e){if(!w(e)||_(e)!=ot)return!1
|
|
188
188
|
var t=nt(e)
|
|
189
189
|
if(null===t)return!0
|
|
190
190
|
var n=it.call(t,"constructor")&&t.constructor
|
|
191
|
-
return"function"==typeof n&&n instanceof n&&ct.call(n)==lt}(l)||
|
|
192
|
-
else{var i=
|
|
193
|
-
void 0===i&&(i=a),
|
|
194
|
-
var
|
|
195
|
-
for(a=e.length>3&&"function"==typeof a?(
|
|
196
|
-
var
|
|
197
|
-
return!!("number"==
|
|
198
|
-
i&&e(t,i,
|
|
199
|
-
const Nn=
|
|
200
|
-
function
|
|
191
|
+
return"function"==typeof n&&n instanceof n&&ct.call(n)==lt}(l)||we(l)?(u=i,we(i)?u=function(e){return le(e,Ue(e))}(i):(!k(i)||x(i))&&(u=hn(l))):f=!1}f&&(c.set(l,u),r(u,l,o,a,c),c.delete(l)),Tn(e,n,u)}}function qn(e,t,n,o,r){e!==t&&Dn(t,(function(a,c){if(r||(r=new st),k(a))In(e,t,c,n,qn,o,r)
|
|
192
|
+
else{var i=o?o(Ln(e,c),a,c+"",e,t,r):void 0
|
|
193
|
+
void 0===i&&(i=a),Tn(e,c,i)}}),Ue)}var Fn="[object Map]",Mn="[object Set]",Pn=Object.prototype.hasOwnProperty
|
|
194
|
+
var Vn=function(e){return ue((function(t,n){var o=-1,r=n.length,a=r>1?n[r-1]:void 0,c=r>2?n[2]:void 0
|
|
195
|
+
for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,c&&function(e,t,n){if(!k(n))return!1
|
|
196
|
+
var o=typeof t
|
|
197
|
+
return!!("number"==o?pe(n)&&oe(t,n.length):"string"==o&&t in n)&&ae(n[t],e)}(n[0],n[1],c)&&(a=r<3?void 0:a,r=1),t=Object(t);++o<r;){var i=n[o]
|
|
198
|
+
i&&e(t,i,o,a)}return t}))}((function(e,t,n){qn(e,t,n)}))
|
|
199
|
+
const Nn=Vn,Qn="q-defaults"
|
|
200
|
+
function Un(){const e=t.getCurrentInstance()
|
|
201
201
|
if(!e)throw new Error("[framework] useDefaults must be called from inside a setup function")
|
|
202
202
|
const n=e.type.name??e.type.__name
|
|
203
203
|
if(!n)throw new Error("[framework] Could not determine component name")
|
|
204
|
-
return
|
|
205
|
-
t.provide(
|
|
204
|
+
return Hn()[n]||{}}function Rn(e){const n=function(e){return xn(e,An|zn)}(Hn()),o=Nn(n,e)
|
|
205
|
+
t.provide(Qn,o)}function Hn(){const e=t.inject(Qn,void 0)
|
|
206
206
|
if(!e)throw new Error("[framework] Could not find defaults instance")
|
|
207
|
-
return e}const
|
|
207
|
+
return e}const Wn=t.defineComponent({__name:"QButtonGroup",props:{bStyle:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean}},setup(e){const n=e
|
|
208
208
|
Rn({QButton:{bStyle:t.toRef(n,"bStyle"),disabled:t.toRef(n,"disabled"),borderless:t.toRef(n,"borderless"),elevated:!1}})
|
|
209
|
-
const
|
|
210
|
-
return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(
|
|
211
|
-
t.watch((()=>
|
|
212
|
-
const a=t.computed({get:()=>
|
|
213
|
-
return(e,n)=>(t.openBlock(),t.createBlock(t.unref(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
return
|
|
217
|
-
|
|
209
|
+
const o=t.computed((()=>["q-btn-group",{"q-btn-group--elevated":n.elevated}]))
|
|
210
|
+
return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(o.value)},[t.renderSlot(e.$slots,"default")],2))}}),Gn=t.defineComponent({__name:"QButtonToggle",props:{modelValue:{},options:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},mandatory:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:n}){const o=e,r=t.ref(o.modelValue)
|
|
211
|
+
t.watch((()=>o.modelValue),(e=>r.value=e))
|
|
212
|
+
const a=t.computed({get:()=>r.value,set(e){r.value=e,n("update:modelValue",e)}})
|
|
213
|
+
return(e,n)=>(t.openBlock(),t.createBlock(t.unref(Wn),{"b-style":"secondary",disabled:o.disabled,borderless:o.borderless,elevated:o.elevated},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.options,(n=>(t.openBlock(),t.createBlock(t.unref(i),{key:n.key,title:n.title,label:n.label,active:a.value===n.key,onClick:e=>function(e){a.value!==e.key||o.mandatory?a.value=e.key:a.value=void 0}(n)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,n.key)])),_:2},1032,["title","label","active","onClick"])))),128))])),_:3},8,["disabled","borderless","elevated"]))}}),Yn=t.defineComponent({__name:"QIcon",props:{icon:{default:""},iconImg:{default:""},iconSvg:{default:""},size:{default:void 0}},setup(e){const n=e,o=t.computed((()=>n.iconImg?"q-icon-img":n.iconSvg?"q-icon-svg":"q-icon-font")),r=t.computed((()=>n.iconImg?n.iconImg:n.iconSvg?n.iconSvg:n.icon))
|
|
214
|
+
return(e,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{icon:r.value,size:n.size},null,8,["icon","size"]))}}),Xn=t.defineComponent({__name:"QIconFont",props:{icon:{},library:{default:"glyphicons"},variant:{default:""},size:{default:void 0}},setup(e){const n=e,o=t.computed((()=>n.variant?`${n.library}-${n.variant}`:n.library)),r=t.computed((()=>({"font-size":void 0!==n.size?`${n.size}px`:void 0})))
|
|
215
|
+
return(e,a)=>n.icon?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["q-icon","q-icon__font",o.value,`${n.library}-${n.icon}`]),style:t.normalizeStyle(r.value)},null,6)):t.createCommentVNode("",!0)}}),Zn=["src"],Jn=t.defineComponent({__name:"QIconImg",props:{icon:{},size:{}},setup(e){const n=e,o=t.computed((()=>({"font-size":void 0!==n.size?`${n.size}px`:void 0})))
|
|
216
|
+
return(e,r)=>n.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.icon,class:"q-icon",style:t.normalizeStyle(o.value)},null,12,Zn)):t.createCommentVNode("",!0)}}),Kn={},eo=t.defineComponent({name:"InlineSvg",emits:["loaded","unloaded","error"],inheritAttrs:!1,render(){if(!this.svgElSource)return null
|
|
217
|
+
const e=this.getSvgContent(this.svgElSource)
|
|
218
|
+
if(!e)return t.h("div",this.$attrs)
|
|
219
|
+
const n={}
|
|
220
|
+
return this.copySvgAttrs(n,this.svgElSource),this.copySvgAttrs(n,e),this.copyComponentAttrs(n,this.$attrs),n.innerHTML=e.innerHTML,t.h("svg",n)},props:{src:{type:String,required:!0},symbol:{type:String,default:""},title:{type:String,default:""},transformSource:{type:Function,default:void 0},keepDuringLoading:{type:Boolean,default:!0}},data:()=>({svgElSource:null}),async mounted(){await this.getSource(this.src)},methods:{copySvgAttrs(e,t){const n=t.attributes
|
|
221
|
+
if(n)for(const t of n)e[t.name]=t.value},copyComponentAttrs(e,t){for(const[n,o]of Object.entries(t))!1!==o&&null!=o&&(e[n]=o)},getSvgContent(e){return this.symbol&&!(e=e.getElementById(this.symbol))?null:(this.transformSource&&(e=e.cloneNode(!0),e=this.transformSource(e)),this.title&&(this.transformSource||(e=e.cloneNode(!0)),function(e,t){const n=e.getElementsByTagName("title")
|
|
222
|
+
if(n.length)n[0].textContent=t
|
|
223
|
+
else{const n=document.createElementNS("http://www.w3.org/2000/svg","title")
|
|
224
|
+
n.textContent=t,e.insertBefore(n,e.firstChild)}}(e,this.title)),e)},async getSource(e){try{Kn[e]||(Kn[e]=function(e){if(e.getIsPending)return e
|
|
225
|
+
let t=!0
|
|
226
|
+
const n=e.then((e=>(t=!1,e)),(e=>{throw t=!1,e}))
|
|
227
|
+
return n.getIsPending=()=>t,n}(this.download(e))),this.svgElSource&&Kn[e].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded"))
|
|
228
|
+
const t=await Kn[e]
|
|
229
|
+
this.svgElSource=t,await this.$nextTick(),this.$emit("loaded",this.$el)}catch(t){this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete Kn[e],this.$emit("error",t)}},async download(e){const t=await fetch(e)
|
|
230
|
+
if(!t.ok)throw new Error("Error loading SVG")
|
|
231
|
+
const n=await t.text(),o=(new DOMParser).parseFromString(n,"text/xml").getElementsByTagName("svg")[0]
|
|
232
|
+
if(!o)throw new Error("Loaded file is not a valid SVG")
|
|
233
|
+
return o}},watch:{src(e){this.getSource(e)}}})
|
|
234
|
+
const to=t.defineComponent({__name:"QIconSvg",props:{icon:{},bundle:{default:""},size:{default:void 0}},emits:["loaded","unloaded"],setup(e,{emit:n}){const o=e,r=t.computed((()=>({"font-size":void 0!==o.size?`${o.size}px`:void 0})))
|
|
235
|
+
return(e,a)=>o.icon?(t.openBlock(),t.createBlock(t.unref(eo),{key:0,class:"q-icon q-icon__svg",src:o.bundle,symbol:o.icon,style:t.normalizeStyle(r.value),onLoaded:a[0]||(a[0]=e=>n("loaded",e)),onUnloaded:a[1]||(a[1]=e=>n("unloaded",e))},null,8,["src","symbol","style"])):t.createCommentVNode("",!0)}}),no={class:"q-line-loader"}
|
|
236
|
+
const oo=((e,t)=>{const n=e.__vccOpts||e
|
|
237
|
+
for(const[e,o]of t)n[e]=o
|
|
238
|
+
return n})({},[["render",function(e,n){return t.openBlock(),t.createElementBlock("div",no)}]])
|
|
239
|
+
function ro(e,t,n="right"){const o=e.getBoundingClientRect(),r=o.x+window.scrollX,a=o.y+window.scrollY,c=t.getBoundingClientRect()
|
|
218
240
|
let i=n
|
|
219
|
-
!
|
|
220
|
-
for(const
|
|
221
|
-
return n}(
|
|
241
|
+
!ao(o,c,i)&&(i=function(e,t,n){const o={top:["bottom","left","right"],bottom:["top","left","right"],left:["right","top","bottom"],right:["left","top","bottom"]}
|
|
242
|
+
for(const r of o[n])if(ao(e,t,r))return r
|
|
243
|
+
return n}(o,c,i))
|
|
222
244
|
const l={x:0,y:0,placement:i}
|
|
223
|
-
switch(i){case"top":l.x=o
|
|
245
|
+
switch(i){case"top":l.x=r+o.width/2,l.y=a-c.height
|
|
224
246
|
break
|
|
225
|
-
case"bottom":l.x=o
|
|
247
|
+
case"bottom":l.x=r+o.width/2,l.y=a+o.height
|
|
226
248
|
break
|
|
227
|
-
case"left":l.x=
|
|
249
|
+
case"left":l.x=r-c.width/2,l.y=a+o.height/2-c.height/2
|
|
228
250
|
break
|
|
229
|
-
case"right":l.x=o
|
|
230
|
-
switch(n){case"top":
|
|
251
|
+
case"right":l.x=r+o.width+c.width/2,l.y=a+o.height/2-c.height/2}return l}function ao(e,t,n){let o=!1,r=!1
|
|
252
|
+
switch(n){case"top":o=io(e,t),r=e.top>t.height
|
|
231
253
|
break
|
|
232
|
-
case"bottom":
|
|
254
|
+
case"bottom":o=io(e,t),r=window.innerHeight-e.top-e.height>t.height
|
|
233
255
|
break
|
|
234
|
-
case"left":
|
|
256
|
+
case"left":o=e.left>t.width,r=co(e,t)
|
|
235
257
|
break
|
|
236
|
-
case"right":
|
|
237
|
-
switch(
|
|
258
|
+
case"right":o=window.innerWidth-e.left-e.width>t.width,r=co(e,t)}return o&&r}function co(e,t){return window.innerHeight-e.top-e.height/2>t.height/2&&e.top+e.height/2>t.height/2}function io(e,t){return window.innerWidth-e.left-e.width/2>t.width/2&&e.left+e.width/2>t.width/2}function lo(e){return"string"==typeof e?document.querySelector(e):e&&"$el"in e?e.$el:e}const so={key:0,class:"q-overlay__arrow"},uo=t.defineComponent({__name:"QOverlay",props:{anchor:{},appearance:{default:"regular"},arrow:{type:Boolean,default:!1},attach:{default:"body"},contentClasses:{default:[]},delay:{default:500},disabled:{type:Boolean},offset:{default:8},persistent:{type:Boolean},placement:{default:"right"},spy:{type:Boolean,default:!1},transition:{default:"fade"},trigger:{default:"click"}},setup(e){const n=e,o=t.computed((()=>["q-overlay",`q-overlay--${r.placement}`,{"q-overlay--inverted":"inverted"===n.appearance},...n.contentClasses])),r=t.reactive({visible:!1,top:0,left:0,placement:n.placement}),a=t.computed((()=>(r.visible||n.persistent)&&!n.disabled)),c=t.computed((()=>{let e=0,t=0
|
|
259
|
+
switch(r.placement){case"top":t=-(n.offset||0)
|
|
238
260
|
break
|
|
239
261
|
case"bottom":t=n.offset||0
|
|
240
262
|
break
|
|
241
263
|
case"left":e=-(n.offset||0)
|
|
242
264
|
break
|
|
243
|
-
case"right":e=n.offset||0}return{top:
|
|
244
|
-
function l(){const e=
|
|
245
|
-
if(e&&i.value){const t=
|
|
246
|
-
|
|
265
|
+
case"right":e=n.offset||0}return{top:r.top+t+"px",left:r.left+e+"px"}})),i=t.ref(null)
|
|
266
|
+
function l(){const e=lo(n.anchor)
|
|
267
|
+
if(e&&i.value){const t=ro(e,i.value,n.placement)
|
|
268
|
+
r.left=t.x,r.top=t.y,r.placement=t.placement}}let s,u,f
|
|
247
269
|
function d(){const e="hover"===n.trigger?n.delay:0
|
|
248
|
-
s||(s=window.setTimeout((()=>
|
|
249
|
-
e&&(window.addEventListener("scroll",l),window.addEventListener("resize",l),u=new MutationObserver(l),u.observe(e,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),l())})),n.spy&&y()}function
|
|
270
|
+
s||(s=window.setTimeout((()=>r.visible=!0),e))}function p(){clearTimeout(s),s=void 0,r.visible=!1}function h(){a.value?p():d()}function y(){lo(n.anchor)?(l(),f=window.setTimeout(y,100)):p()}function v(){t.nextTick((()=>{const e=lo(n.anchor)
|
|
271
|
+
e&&(window.addEventListener("scroll",l),window.addEventListener("resize",l),u=new MutationObserver(l),u.observe(e,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),l())})),n.spy&&y()}function b(){window.removeEventListener("scroll",l),window.removeEventListener("resize",l),null==u||u.disconnect(),n.spy&&(clearTimeout(f),f=void 0)}return t.watch([()=>a.value,()=>n.placement],l),t.onBeforeUnmount(b),t.watch((()=>n.disabled),(e=>{e||t.nextTick((()=>{const e=lo(n.anchor)
|
|
250
272
|
if(e)switch(n.trigger){case"click":e.addEventListener("click",h)
|
|
251
273
|
break
|
|
252
|
-
case"hover":e.addEventListener("mouseenter",d),e.addEventListener("mouseleave",p)}}))}),{immediate:!0}),t.watch((()=>a.value),(e=>{e?
|
|
253
|
-
return(e,
|
|
254
|
-
return(e,
|
|
255
|
-
class
|
|
274
|
+
case"hover":e.addEventListener("mouseenter",d),e.addEventListener("mouseleave",p)}}))}),{immediate:!0}),t.watch((()=>a.value),(e=>{e?v():b()}),{immediate:!0}),(e,r)=>(t.openBlock(),t.createBlock(t.Teleport,{to:n.attach},[t.createVNode(t.Transition,{name:n.transition,appear:""},{default:t.withCtx((()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.value),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",{class:"q-overlay__content",ref_key:"overlay",ref:i},[n.arrow?(t.openBlock(),t.createElementBlock("div",so)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")],512)],6)):t.createCommentVNode("",!0)])),_:3},8,["name"])],8,["to"]))}}),fo={key:0,class:"q-popover__header"},po={key:1,class:"q-popover__body"},ho=["innerHTML"],yo={key:1},vo=t.defineComponent({__name:"QPopover",props:{anchor:{},arrow:{type:Boolean,default:!0},attach:{default:"body"},disabled:{type:Boolean},html:{type:Boolean,default:!0},persistent:{type:Boolean},placement:{default:"right"},spy:{type:Boolean,default:!0},text:{},title:{}},setup(e){const n=e
|
|
275
|
+
return(e,o)=>(t.openBlock(),t.createBlock(t.unref(uo),{trigger:"click",anchor:n.anchor,arrow:n.arrow,attach:n.attach,"content-classes":["q-popover"],disabled:n.disabled,persistent:n.persistent,placement:n.placement,spy:n.spy},{default:t.withCtx((()=>[n.title||e.$slots.header?(t.openBlock(),t.createElementBlock("h3",fo,[t.createTextVNode(t.toDisplayString(n.title)+" ",1),t.renderSlot(e.$slots,"header")])):t.createCommentVNode("",!0),n.text||e.$slots.body?(t.openBlock(),t.createElementBlock("div",po,[n.html?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:n.text},null,8,ho)):(t.openBlock(),t.createElementBlock("span",yo,t.toDisplayString(n.text),1)),t.renderSlot(e.$slots,"body")])):t.createCommentVNode("",!0)])),_:3},8,["anchor","arrow","attach","disabled","persistent","placement","spy"]))}}),bo=["innerHTML"],mo={key:1},go=Object.freeze(Object.defineProperty({__proto__:null,QButton:i,QButtonGroup:Wn,QButtonToggle:Gn,QIcon:Yn,QIconFont:Xn,QIconImg:Jn,QIconSvg:to,QLineLoader:oo,QOverlay:uo,QPopover:vo,QSpinnerLoader:o,QTooltip:t.defineComponent({__name:"QTooltip",props:{anchor:{},appearance:{default:"inverted"},arrow:{type:Boolean,default:!0},attach:{default:"body"},delay:{default:500},disabled:{type:Boolean},html:{type:Boolean,default:!0},persistent:{type:Boolean},placement:{default:"right"},text:{},trigger:{default:"hover"}},setup(e){const n=e
|
|
276
|
+
return(e,o)=>(t.openBlock(),t.createBlock(t.unref(uo),{anchor:n.anchor,appearance:n.appearance,arrow:n.arrow,attach:n.attach,"content-classes":["q-tooltip"],delay:n.delay,disabled:n.disabled,persistent:n.persistent,placement:n.placement,trigger:n.trigger},{default:t.withCtx((()=>[n.html?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:n.text},null,8,bo)):(t.openBlock(),t.createElementBlock("span",mo,t.toDisplayString(n.text),1))])),_:1},8,["anchor","appearance","arrow","attach","delay","disabled","persistent","placement","trigger"]))}})},Symbol.toStringTag,{value:"Module"})),_o={primary:"#00a1f8",primaryLight:"#d8f1ff",primaryDark:"#0079ba",secondary:"#11294d",secondaryLight:"#3d495c",secondaryDark:"#040911",highlight:"#DF640A",background:"#fff",container:"#fff",info:"#17a2b8",infoLight:"#87cedb",infoDark:"#135970",success:"#28a745",successLight:"#a6e3aa",successDark:"#206227",warning:"#ffa900",warningLight:"#ffda78",warningDark:"#995c00",danger:"#b71c1c",dangerLight:"#e13c3c",dangerDark:"#891515",onBackground:"#1e2436",onPrimary:"#fff",onSecondary:"#fff",onHighlight:"#fff",onSuccess:"#fff",onWarning:"#fff",onDanger:"#fff",onInfo:"#fff"},wo={primary:"#018BD2",primaryLight:"#cce7f6",primaryDark:"#006fac",secondary:"#11294d",secondaryLight:"#707f94",secondaryDark:"#040a13",highlight:"#FFAD54",background:"#1e2436",container:"#21323d",info:"#3DB6D1",infoLight:"#5aa2bc",infoDark:"#0c616a",success:"#00C781",successLight:"#6bae78",successDark:"#0f3b16",warning:"#FFD860",warningLight:"#ffd07a",warningDark:"#cc8000",danger:"#FC4B6C",dangerLight:"#FF7A88",dangerDark:"#B21929",onBackground:"#fff",onPrimary:"#fff",onSecondary:"#fff",onHighlight:"#fff",onSuccess:"#fff",onWarning:"#fff",onDanger:"#fff",onInfo:"#fff"}
|
|
277
|
+
class jo{constructor(e,t,n){this.r=e,this.g=t,this.b=n}}function ko(e){if(!/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(e))throw new Error("Invalid color format")
|
|
256
278
|
4===e.length&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3])
|
|
257
|
-
const t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),
|
|
258
|
-
return new
|
|
259
|
-
return n.l+=t/100,n.l=
|
|
260
|
-
return n.l-=t/100,n.l=
|
|
279
|
+
const t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16)
|
|
280
|
+
return new jo(t,n,o)}function Bo(e){return`#${e.r.toString(16).padStart(2,"0")}${e.g.toString(16).padStart(2,"0")}${e.b.toString(16).padStart(2,"0")}`}function So(e){return Math.min(Math.max(0,e),1)}function Oo(e,t){const n=Co(e)
|
|
281
|
+
return n.l+=t/100,n.l=So(n.l),xo(n)}function Eo(e,t){const n=Co(e)
|
|
282
|
+
return n.l-=t/100,n.l=So(n.l),xo(n)}function Co(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),a=Math.min(t,n,o)
|
|
261
283
|
let c=0,i=0
|
|
262
|
-
const l=(
|
|
263
|
-
if(
|
|
264
|
-
switch(i=l>.5?e/(2-
|
|
284
|
+
const l=(r+a)/2
|
|
285
|
+
if(r!==a){const e=r-a
|
|
286
|
+
switch(i=l>.5?e/(2-r-a):e/(r+a),r){case t:c=(n-o)/e+(n<o?6:0)
|
|
265
287
|
break
|
|
266
|
-
case n:c=(
|
|
288
|
+
case n:c=(o-t)/e+2
|
|
267
289
|
break
|
|
268
|
-
case
|
|
269
|
-
if(0===t)r=
|
|
290
|
+
case o:c=(t-n)/e+4}c/=6}return{h:c,s:i,l}}function xo({h:e,s:t,l:n}){let o,r,a
|
|
291
|
+
if(0===t)o=r=a=n
|
|
270
292
|
else{const c=n<.5?n*(1+t):n+t-n*t,i=2*n-c
|
|
271
|
-
|
|
272
|
-
function
|
|
273
|
-
if(n)for(const e of n.themes){const t="light"===e.mode?
|
|
293
|
+
o=Ao(i,c,e+1/3),r=Ao(i,c,e),a=Ao(i,c,e-1/3)}return new jo(Math.round(255*o),Math.round(255*r),Math.round(255*a))}function Ao(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const zo="q-theme"
|
|
294
|
+
function $o(e,n){let o=null
|
|
295
|
+
if(n)for(const e of n.themes){const t="light"===e.mode?_o:wo
|
|
274
296
|
if(e.colors){let t
|
|
275
297
|
for(t in e.colors){const n=e.colors[t]
|
|
276
|
-
if(n&&!t.startsWith("on")&&!t.endsWith("Light")&&!t.endsWith("Dark")){const
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
t.watch((()=>
|
|
280
|
-
t&&
|
|
281
|
-
t||(t=document.createElement("style"),t.type="text/css",t.id=
|
|
282
|
-
let n,
|
|
298
|
+
if(n&&!t.startsWith("on")&&!t.endsWith("Light")&&!t.endsWith("Dark")){const o=ko(n),r=`${t}Light`,a=`${t}Dark`
|
|
299
|
+
r in e.colors||(e.colors[r]=Bo(Oo(o,43))),a in e.colors||(e.colors[a]=Bo(Eo(o,17)))}}}e.colors=Nn(t,e.colors),e.name===n.defaultTheme&&(o=e)}else{const e="default"
|
|
300
|
+
o={name:e,mode:"light",colors:_o},n={defaultTheme:e,themes:[o]}}if(o){const r=t.ref({activeTheme:o.name,themes:n.themes})
|
|
301
|
+
t.watch((()=>r.value.activeTheme),(e=>{const t=r.value.themes.find((t=>t.name===e))
|
|
302
|
+
t&&Do(t.colors)}),{immediate:!0}),e.provide(zo,r)}}function Do(e){let t=document.getElementById(zo)
|
|
303
|
+
t||(t=document.createElement("style"),t.type="text/css",t.id=zo,document.head.appendChild(t))
|
|
304
|
+
let n,o=":root {\n"
|
|
283
305
|
for(n in e){const t=e[n]
|
|
284
|
-
if(t){
|
|
285
|
-
const e=
|
|
286
|
-
|
|
287
|
-
return n&&(e.setup=(e,
|
|
306
|
+
if(t){o+=` ${To(n)}: ${t};\n`
|
|
307
|
+
const e=ko(t)
|
|
308
|
+
o+=` ${To(n)}-rgb: ${e.r} ${e.g} ${e.b};\n`}}o+="}",t.textContent=o}function To(e){return e?`--q-theme-${e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}`:""}function Lo(e){const n=e.setup
|
|
309
|
+
return n&&(e.setup=(e,o)=>{const r=Un()
|
|
288
310
|
if(function(e){if(null==e)return!0
|
|
289
|
-
if(pe(e)&&(
|
|
290
|
-
var t=
|
|
291
|
-
if(t==
|
|
292
|
-
if(ye(e))return!
|
|
293
|
-
for(var n in e)if(
|
|
294
|
-
return!0}(
|
|
311
|
+
if(pe(e)&&(j(e)||"string"==typeof e||"function"==typeof e.splice||Se(e)||Te(e)||we(e)))return!e.length
|
|
312
|
+
var t=Mt(e)
|
|
313
|
+
if(t==Fn||t==Mn)return!e.size
|
|
314
|
+
if(ye(e))return!Pe(e).length
|
|
315
|
+
for(var n in e)if(Pn.call(e,n))return!1
|
|
316
|
+
return!0}(r))return n(e,o)
|
|
295
317
|
const a=t.getCurrentInstance()
|
|
296
|
-
if(null===a)return n(e,
|
|
297
|
-
const c=new Proxy(e,{get(e,n){const
|
|
298
|
-
return"class"===n||"style"===n?[c,
|
|
299
|
-
return typeof(null==(n=e.props)?void 0:n[t])<"u"}(a.vnode,n)?
|
|
300
|
-
return n(c,
|
|
301
|
-
const
|
|
302
|
-
n.provide(
|
|
318
|
+
if(null===a)return n(e,o)
|
|
319
|
+
const c=new Proxy(e,{get(e,n){const o=Reflect.get(e,n),c=t.unref(r[n])
|
|
320
|
+
return"class"===n||"style"===n?[c,o].filter((e=>null!=e)):"string"!=typeof n||function(e,t){var n
|
|
321
|
+
return typeof(null==(n=e.props)?void 0:n[t])<"u"}(a.vnode,n)?o:c??o}})
|
|
322
|
+
return n(c,o)}),e}e.DEFAULTS_SYMBOL=Qn,e.THEME_SYMBOL=zo,e.computePosition=ro,e.createFramework=e=>function(e,t){return{install:n=>{for(const t in e)n.component(t,Lo(e[t]))
|
|
323
|
+
const o=(null==t?void 0:t.defaults)||{}
|
|
324
|
+
n.provide(Qn,o),$o(n,null==t?void 0:t.themes)}}}(go,e),e.generateRootStyle=Do,e.injectDefaults=Hn,e.installThemes=$o,e.provideDefaults=Rn,e.toProperty=To,e.useDefaults=Un,e.useTheme=function(){const e=t.inject(zo)
|
|
303
325
|
if(!e)throw new Error("[framework] Could not find theme instance")
|
|
304
326
|
return e},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}))
|
|
305
327
|
//# sourceMappingURL=ui.min.js.map
|