@validol4ik/uikit 0.2.7 → 0.2.10

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.
@@ -17,6 +17,7 @@ export interface AppButtonProps {
17
17
  target?: QBtnProps["target"];
18
18
  submit?: boolean;
19
19
  ariaLabel?: string;
20
+ label?: string;
20
21
  }
21
22
  export declare const ButtonPaddings: {
22
23
  [x: string]: string;
@@ -1,7 +1,8 @@
1
1
  import { default as AppButton } from './buttons/AppButton/index.vue';
2
+ import { AppButtonProps } from './buttons/AppButton/types';
2
3
  import { default as AppIcon } from './AppIcon/index.vue';
3
4
  declare const AppButtonCopy: import('vue').DefineComponent<import('./buttons/CopyButton/types').default, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./buttons/CopyButton/types').default> & Readonly<{}>, {
4
5
  transparent: boolean;
5
6
  color: import('quasar').NamedColor;
6
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
- export { AppButton, AppIcon, AppButtonCopy };
8
+ export { AppButton, AppButtonProps, AppIcon, AppButtonCopy };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./index-HASh7-WD.cjs");function h(o,i,t,r){return Object.defineProperty(o,i,{get:t,set:r,enumerable:!0}),o}const l=a.ref(!1);let u;function x(o,i){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:i[0]||""}}function k(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const m="ontouchstart"in window||window.navigator.maxTouchPoints>0;function y(o){const i=o.toLowerCase(),t=k(i),r=x(i,t),e={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};r.browser&&(e[r.browser]=!0,e.version=r.version,e.versionNumber=parseInt(r.version,10)),r.platform&&(e[r.platform]=!0);const s=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(s===!0||i.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,r.browser="edge"):e.crios?(e.chrome=!0,r.browser="chrome"):e.fxios&&(e.firefox=!0,r.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(r.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&s!==!0)&&(e.webkit=!0),e.opr&&(r.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(r.browser="blackberry",e.blackberry=!0):e.playbook?(r.browser="playbook",e.playbook=!0):e.android?(r.browser="android",e.android=!0):e.kindle?(r.browser="kindle",e.kindle=!0):e.silk&&(r.browser="silk",e.silk=!0)),e.name=r.browser,e.platform=r.platform,i.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),l.value===!0&&(u={is:{...e}}),m===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const b=navigator.userAgent||navigator.vendor||window.opera,g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:b,is:y(b),has:{touch:m},within:{iframe:window.self!==window.top}},w={install(o){const{$q:i}=o;l.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(i.platform,c),l.value=!1}),i.platform=a.reactive(this)):i.platform=this}};{let o;h(c.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(w,c),l.value===!0&&(Object.assign(w,u,g),u=null)}const n=[];function v(o){n[n.length-1](o)}function O(o){c.is.desktop===!0&&(n.push(o),n.length===1&&document.body.addEventListener("focusin",v))}function C(o){const i=n.indexOf(o);i!==-1&&(n.splice(i,1),n.length===0&&document.body.removeEventListener("focusin",v))}function P(o){const i=document.createElement("textarea");i.value=o,i.contentEditable="true",i.style.position="fixed";const t=()=>{};O(t),document.body.appendChild(i),i.focus(),i.select();const r=document.execCommand("copy");return i.remove(),C(t),r}function M(o){return navigator.clipboard!==void 0?navigator.clipboard.writeText(o):new Promise((i,t)=>{const r=P(o);r?i(!0):t(r)})}const f={COPY:"copy_o",COPIED:"copied_o"},S=a.defineComponent({__name:"index",props:{text:{},size:{},transparent:{type:Boolean,default:!0},flat:{type:Boolean},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},setup(o){const i=o,t=a.ref(f.COPY),r=()=>{t.value=f.COPIED,setTimeout(()=>{t.value=f.COPY},2e3)},e=()=>{M(i.text).then(r).catch(s=>{console.log(s)})};return(s,d)=>(a.openBlock(),a.createBlock(a.unref(p.AppButton),a.mergeProps(i,{"icon-middle":t.value,onClick:a.withModifiers(e,["prevent"])}),null,16,["icon-middle"]))}});exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./index-DrV_ZMzg.cjs");function h(o,i,t,r){return Object.defineProperty(o,i,{get:t,set:r,enumerable:!0}),o}const l=a.ref(!1);let u;function x(o,i){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:i[0]||""}}function k(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const m="ontouchstart"in window||window.navigator.maxTouchPoints>0;function y(o){const i=o.toLowerCase(),t=k(i),r=x(i,t),e={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};r.browser&&(e[r.browser]=!0,e.version=r.version,e.versionNumber=parseInt(r.version,10)),r.platform&&(e[r.platform]=!0);const s=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(s===!0||i.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,r.browser="edge"):e.crios?(e.chrome=!0,r.browser="chrome"):e.fxios&&(e.firefox=!0,r.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(r.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&s!==!0)&&(e.webkit=!0),e.opr&&(r.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(r.browser="blackberry",e.blackberry=!0):e.playbook?(r.browser="playbook",e.playbook=!0):e.android?(r.browser="android",e.android=!0):e.kindle?(r.browser="kindle",e.kindle=!0):e.silk&&(r.browser="silk",e.silk=!0)),e.name=r.browser,e.platform=r.platform,i.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),l.value===!0&&(u={is:{...e}}),m===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const b=navigator.userAgent||navigator.vendor||window.opera,g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:b,is:y(b),has:{touch:m},within:{iframe:window.self!==window.top}},w={install(o){const{$q:i}=o;l.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(i.platform,c),l.value=!1}),i.platform=a.reactive(this)):i.platform=this}};{let o;h(c.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(w,c),l.value===!0&&(Object.assign(w,u,g),u=null)}const n=[];function v(o){n[n.length-1](o)}function O(o){c.is.desktop===!0&&(n.push(o),n.length===1&&document.body.addEventListener("focusin",v))}function C(o){const i=n.indexOf(o);i!==-1&&(n.splice(i,1),n.length===0&&document.body.removeEventListener("focusin",v))}function P(o){const i=document.createElement("textarea");i.value=o,i.contentEditable="true",i.style.position="fixed";const t=()=>{};O(t),document.body.appendChild(i),i.focus(),i.select();const r=document.execCommand("copy");return i.remove(),C(t),r}function M(o){return navigator.clipboard!==void 0?navigator.clipboard.writeText(o):new Promise((i,t)=>{const r=P(o);r?i(!0):t(r)})}const f={COPY:"copy_o",COPIED:"copied_o"},S=a.defineComponent({__name:"index",props:{text:{},size:{},transparent:{type:Boolean,default:!0},flat:{type:Boolean},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},setup(o){const i=o,t=a.ref(f.COPY),r=()=>{t.value=f.COPIED,setTimeout(()=>{t.value=f.COPY},2e3)},e=()=>{M(i.text).then(r).catch(s=>{console.log(s)})};return(s,d)=>(a.openBlock(),a.createBlock(a.unref(p.AppButton),a.mergeProps(i,{"icon-middle":t.value,onClick:a.withModifiers(e,["prevent"])}),null,16,["icon-middle"]))}});exports.default=S;
@@ -1,5 +1,5 @@
1
1
  import { ref as b, reactive as v, defineComponent as h, openBlock as x, createBlock as k, unref as y, mergeProps as g, withModifiers as O } from "vue";
2
- import { A as C, C as P } from "./index-Cuy6nlop.js";
2
+ import { A as C, C as P } from "./index-DJKTz3jw.js";
3
3
  function M(o, i, t, r) {
4
4
  return Object.defineProperty(o, i, {
5
5
  get: t,
@@ -162,7 +162,8 @@ const d = {
162
162
  href: {},
163
163
  target: {},
164
164
  submit: { type: Boolean },
165
- ariaLabel: {}
165
+ ariaLabel: {},
166
+ label: {}
166
167
  },
167
168
  setup(o) {
168
169
  const i = o, t = b(d.COPY), r = () => {
@@ -1,16 +1,16 @@
1
- import { computed as u, markRaw as de, defineComponent as W, getCurrentInstance as X, h as v, ref as J, onBeforeUnmount as ke, Transition as $e, withDirectives as qe, openBlock as N, createBlock as Ee, unref as Q, normalizeClass as V, withCtx as _e, createElementBlock as Y, createCommentVNode as ee, renderSlot as Le, normalizeStyle as Ce, defineAsyncComponent as Be } from "vue";
2
- const S = {
1
+ import { computed as u, markRaw as de, defineComponent as X, getCurrentInstance as Z, h as v, ref as ee, onBeforeUnmount as ke, Transition as $e, withDirectives as qe, openBlock as I, createBlock as Ee, unref as U, normalizeClass as V, withCtx as Le, createElementBlock as F, createCommentVNode as Y, renderSlot as Ce, Fragment as _e, createTextVNode as Se, toDisplayString as Be, normalizeStyle as Re, defineAsyncComponent as xe } from "vue";
2
+ const R = {
3
3
  SM: "sm",
4
4
  MD: "md",
5
5
  LG: "lg"
6
- }, Re = {
7
- [S.SM]: "3px 9px",
8
- [S.MD]: "5px 12px",
9
- [S.LG]: "9px 20px"
10
- }, Se = {
6
+ }, we = {
7
+ [R.SM]: "3px 9px",
8
+ [R.MD]: "5px 12px",
9
+ [R.LG]: "9px 20px"
10
+ }, Pe = {
11
11
  PRIMARY: "primary",
12
12
  INFO: "info"
13
- }, G = {
13
+ }, H = {
14
14
  xs: 18,
15
15
  sm: 24,
16
16
  md: 32,
@@ -19,30 +19,30 @@ const S = {
19
19
  }, fe = {
20
20
  size: String
21
21
  };
22
- function ve(e, t = G) {
22
+ function ve(e, t = H) {
23
23
  return u(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
24
24
  }
25
- function Z(e) {
26
- return de(W(e));
25
+ function J(e) {
26
+ return de(X(e));
27
27
  }
28
- function xe(e) {
28
+ function Me(e) {
29
29
  return de(e);
30
30
  }
31
- function we(e, t) {
31
+ function Te(e, t) {
32
32
  return e !== void 0 && e() || t;
33
33
  }
34
- function I(e, t) {
34
+ function D(e, t) {
35
35
  return e !== void 0 ? t.concat(e()) : t;
36
36
  }
37
- const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
37
+ const te = "0 0 24 24", ne = (e) => e, G = (e) => `ionicons ${e}`, ge = {
38
38
  "mdi-": (e) => `mdi ${e}`,
39
39
  "icon-": ne,
40
40
  // fontawesome equiv
41
41
  "bt-": (e) => `bt ${e}`,
42
42
  "eva-": (e) => `eva ${e}`,
43
- "ion-md": U,
44
- "ion-ios": U,
45
- "ion-logo": U,
43
+ "ion-md": G,
44
+ "ion-ios": G,
45
+ "ion-logo": G,
46
46
  "iconfont ": ne,
47
47
  "ti-": (e) => `themify-icon ${e}`,
48
48
  "bi-": (e) => `bootstrap-icons ${e}`
@@ -54,7 +54,7 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
54
54
  sym_o_: "-outlined",
55
55
  sym_r_: "-rounded",
56
56
  sym_s_: "-sharp"
57
- }, Pe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), Me = new RegExp("^(" + Object.keys(me).join("|") + ")"), ae = new RegExp("^(" + Object.keys(pe).join("|") + ")"), Te = /^[Mm]\s?[-+]?\.?\d/, Oe = /^img:/, ze = /^svguse:/, Ae = /^ion-/, je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
57
+ }, Oe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), ze = new RegExp("^(" + Object.keys(me).join("|") + ")"), ae = new RegExp("^(" + Object.keys(pe).join("|") + ")"), Ae = /^[Mm]\s?[-+]?\.?\d/, je = /^img:/, Ie = /^svguse:/, De = /^ion-/, Ke = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = J({
58
58
  name: "QIcon",
59
59
  props: {
60
60
  ...fe,
@@ -68,17 +68,17 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
68
68
  right: Boolean
69
69
  },
70
70
  setup(e, { slots: t }) {
71
- const { proxy: { $q: a } } = X(), n = ve(e), i = u(
71
+ const { proxy: { $q: a } } = Z(), n = ve(e), i = u(
72
72
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
73
73
  ), d = u(() => {
74
- let c, o = e.name;
75
- if (o === "none" || !o)
74
+ let c, l = e.name;
75
+ if (l === "none" || !l)
76
76
  return { none: !0 };
77
77
  if (a.iconMapFn !== null) {
78
- const s = a.iconMapFn(o);
78
+ const s = a.iconMapFn(l);
79
79
  if (s !== void 0)
80
80
  if (s.icon !== void 0) {
81
- if (o = s.icon, o === "none" || !o)
81
+ if (l = s.icon, l === "none" || !l)
82
82
  return { none: !0 };
83
83
  } else
84
84
  return {
@@ -86,24 +86,24 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
86
86
  content: s.content !== void 0 ? s.content : " "
87
87
  };
88
88
  }
89
- if (Te.test(o) === !0) {
90
- const [s, h = te] = o.split("|");
89
+ if (Ae.test(l) === !0) {
90
+ const [s, h = te] = l.split("|");
91
91
  return {
92
92
  svg: !0,
93
93
  viewBox: h,
94
- nodes: s.split("&&").map((l) => {
95
- const [y, p, k] = l.split("@@");
94
+ nodes: s.split("&&").map((o) => {
95
+ const [y, p, k] = o.split("@@");
96
96
  return v("path", { style: p, d: y, transform: k });
97
97
  })
98
98
  };
99
99
  }
100
- if (Oe.test(o) === !0)
100
+ if (je.test(l) === !0)
101
101
  return {
102
102
  img: !0,
103
- src: o.substring(4)
103
+ src: l.substring(4)
104
104
  };
105
- if (ze.test(o) === !0) {
106
- const [s, h = te] = o.split("|");
105
+ if (Ie.test(l) === !0) {
106
+ const [s, h = te] = l.split("|");
107
107
  return {
108
108
  svguse: !0,
109
109
  src: s.substring(7),
@@ -111,21 +111,21 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
111
111
  };
112
112
  }
113
113
  let q = " ";
114
- const b = o.match(Pe);
114
+ const b = l.match(Oe);
115
115
  if (b !== null)
116
- c = ge[b[1]](o);
117
- else if (je.test(o) === !0)
118
- c = o;
119
- else if (Ae.test(o) === !0)
120
- c = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${o.substring(3)}`;
121
- else if (ae.test(o) === !0) {
116
+ c = ge[b[1]](l);
117
+ else if (Ke.test(l) === !0)
118
+ c = l;
119
+ else if (De.test(l) === !0)
120
+ c = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${l.substring(3)}`;
121
+ else if (ae.test(l) === !0) {
122
122
  c = "notranslate material-symbols";
123
- const s = o.match(ae);
124
- s !== null && (o = o.substring(6), c += pe[s[1]]), q = o;
123
+ const s = l.match(ae);
124
+ s !== null && (l = l.substring(6), c += pe[s[1]]), q = l;
125
125
  } else {
126
126
  c = "notranslate material-icons";
127
- const s = o.match(Me);
128
- s !== null && (o = o.substring(2), c += me[s[1]]), q = o;
127
+ const s = l.match(ze);
128
+ s !== null && (l = l.substring(2), c += me[s[1]]), q = l;
129
129
  }
130
130
  return {
131
131
  cls: c,
@@ -139,49 +139,49 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
139
139
  "aria-hidden": "true",
140
140
  role: "presentation"
141
141
  };
142
- return d.value.none === !0 ? v(e.tag, c, we(t.default)) : d.value.img === !0 ? v(e.tag, c, I(t.default, [
142
+ return d.value.none === !0 ? v(e.tag, c, Te(t.default)) : d.value.img === !0 ? v(e.tag, c, D(t.default, [
143
143
  v("img", { src: d.value.src })
144
- ])) : d.value.svg === !0 ? v(e.tag, c, I(t.default, [
144
+ ])) : d.value.svg === !0 ? v(e.tag, c, D(t.default, [
145
145
  v("svg", {
146
146
  viewBox: d.value.viewBox || "0 0 24 24"
147
147
  }, d.value.nodes)
148
- ])) : d.value.svguse === !0 ? v(e.tag, c, I(t.default, [
148
+ ])) : d.value.svguse === !0 ? v(e.tag, c, D(t.default, [
149
149
  v("svg", {
150
150
  viewBox: d.value.viewBox
151
151
  }, [
152
152
  v("use", { "xlink:href": d.value.src })
153
153
  ])
154
- ])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c, I(t.default, [
154
+ ])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c, D(t.default, [
155
155
  d.value.content
156
156
  ])));
157
157
  };
158
158
  }
159
- }), Ie = {
159
+ }), Ne = {
160
160
  size: {
161
161
  type: [String, Number],
162
162
  default: "1em"
163
163
  },
164
164
  color: String
165
165
  };
166
- function De(e) {
166
+ function Ve(e) {
167
167
  return {
168
- cSize: u(() => e.size in G ? `${G[e.size]}px` : e.size),
168
+ cSize: u(() => e.size in H ? `${H[e.size]}px` : e.size),
169
169
  classes: u(
170
170
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
171
171
  )
172
172
  };
173
173
  }
174
- const Ke = Z({
174
+ const Fe = J({
175
175
  name: "QSpinner",
176
176
  props: {
177
- ...Ie,
177
+ ...Ne,
178
178
  thickness: {
179
179
  type: Number,
180
180
  default: 5
181
181
  }
182
182
  },
183
183
  setup(e) {
184
- const { cSize: t, classes: a } = De(e);
184
+ const { cSize: t, classes: a } = Ve(e);
185
185
  return () => v("svg", {
186
186
  class: a.value + " q-spinner-mat",
187
187
  width: t.value,
@@ -201,12 +201,12 @@ const Ke = Z({
201
201
  ]);
202
202
  }
203
203
  });
204
- function Ne(e, t) {
204
+ function Qe(e, t) {
205
205
  const a = e.style;
206
206
  for (const n in t)
207
207
  a[n] = t[n];
208
208
  }
209
- const F = {
209
+ const Q = {
210
210
  hasPassive: !1,
211
211
  passiveCapture: !0,
212
212
  notPassiveCapture: !0
@@ -214,7 +214,7 @@ const F = {
214
214
  try {
215
215
  const e = Object.defineProperty({}, "passive", {
216
216
  get() {
217
- Object.assign(F, {
217
+ Object.assign(Q, {
218
218
  hasPassive: !0,
219
219
  passive: { passive: !0 },
220
220
  notPassive: { passive: !1 },
@@ -226,7 +226,7 @@ try {
226
226
  window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
227
227
  } catch {
228
228
  }
229
- function Ve(e) {
229
+ function Ue(e) {
230
230
  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]), {
231
231
  top: e.clientY,
232
232
  left: e.clientX
@@ -235,31 +235,31 @@ function Ve(e) {
235
235
  function be(e) {
236
236
  e.stopPropagation();
237
237
  }
238
- function Fe(e) {
238
+ function Ye(e) {
239
239
  e.cancelable !== !1 && e.preventDefault();
240
240
  }
241
241
  function M(e) {
242
242
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
243
243
  }
244
- function Qe(e, t, a) {
244
+ function Ge(e, t, a) {
245
245
  const n = `__q_${t}_evt`;
246
246
  e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((i) => {
247
- i[0].addEventListener(i[1], e[i[2]], F[i[3]]);
247
+ i[0].addEventListener(i[1], e[i[2]], Q[i[3]]);
248
248
  });
249
249
  }
250
- function Ue(e, t) {
250
+ function He(e, t) {
251
251
  const a = `__q_${t}_evt`;
252
252
  e[a] !== void 0 && (e[a].forEach((n) => {
253
- n[0].removeEventListener(n[1], e[n[2]], F[n[3]]);
253
+ n[0].removeEventListener(n[1], e[n[2]], Q[n[3]]);
254
254
  }), e[a] = void 0);
255
255
  }
256
- function Ye(e) {
256
+ function We(e) {
257
257
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
258
258
  }
259
- function H(e, t) {
260
- return Ye(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
259
+ function W(e, t) {
260
+ return We(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
261
261
  }
262
- function Ge(e, t = 250) {
262
+ function Xe(e, t = 250) {
263
263
  let a = !1, n;
264
264
  return function() {
265
265
  return a === !1 && (a = !0, setTimeout(() => {
@@ -272,26 +272,26 @@ function ie(e, t, a, n) {
272
272
  const i = a.modifiers.color;
273
273
  let d = a.modifiers.center;
274
274
  d = d === !0 || n === !0;
275
- const c = document.createElement("span"), o = document.createElement("span"), q = Ve(e), { left: b, top: s, width: h, height: l } = t.getBoundingClientRect(), y = Math.sqrt(h * h + l * l), p = y / 2, k = `${(h - y) / 2}px`, f = d ? k : `${q.left - b - p}px`, $ = `${(l - y) / 2}px`, P = d ? $ : `${q.top - s - p}px`;
276
- o.className = "q-ripple__inner", Ne(o, {
275
+ const c = document.createElement("span"), l = document.createElement("span"), q = Ue(e), { left: b, top: s, width: h, height: o } = t.getBoundingClientRect(), y = Math.sqrt(h * h + o * o), p = y / 2, k = `${(h - y) / 2}px`, f = d ? k : `${q.left - b - p}px`, $ = `${(o - y) / 2}px`, P = d ? $ : `${q.top - s - p}px`;
276
+ l.className = "q-ripple__inner", Qe(l, {
277
277
  height: `${y}px`,
278
278
  width: `${y}px`,
279
279
  transform: `translate3d(${f},${P},0) scale3d(.2,.2,1)`,
280
280
  opacity: 0
281
- }), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(o), t.appendChild(c);
281
+ }), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(l), t.appendChild(c);
282
282
  const x = () => {
283
283
  c.remove(), clearTimeout(w);
284
284
  };
285
285
  a.abort.push(x);
286
286
  let w = setTimeout(() => {
287
- o.classList.add("q-ripple__inner--enter"), o.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, o.style.opacity = 0.2, w = setTimeout(() => {
288
- o.classList.remove("q-ripple__inner--enter"), o.classList.add("q-ripple__inner--leave"), o.style.opacity = 0, w = setTimeout(() => {
287
+ l.classList.add("q-ripple__inner--enter"), l.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, l.style.opacity = 0.2, w = setTimeout(() => {
288
+ l.classList.remove("q-ripple__inner--enter"), l.classList.add("q-ripple__inner--leave"), l.style.opacity = 0, w = setTimeout(() => {
289
289
  c.remove(), a.abort.splice(a.abort.indexOf(x), 1);
290
290
  }, 275);
291
291
  }, 250);
292
292
  }, 50);
293
293
  }
294
- function oe(e, { modifiers: t, value: a, arg: n }) {
294
+ function le(e, { modifiers: t, value: a, arg: n }) {
295
295
  const i = Object.assign({}, e.cfg.ripple, t, a);
296
296
  e.modifiers = {
297
297
  early: i.early === !0,
@@ -301,7 +301,7 @@ function oe(e, { modifiers: t, value: a, arg: n }) {
301
301
  keyCodes: [].concat(i.keyCodes || 13)
302
302
  };
303
303
  }
304
- const He = xe(
304
+ const Ze = Me(
305
305
  {
306
306
  name: "ripple",
307
307
  beforeMount(e, t) {
@@ -316,11 +316,11 @@ const He = xe(
316
316
  start(i) {
317
317
  n.enabled === !0 && i.qSkipRipple !== !0 && i.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ie(i, e, n, i.qKeyEvent === !0);
318
318
  },
319
- keystart: Ge((i) => {
320
- n.enabled === !0 && i.qSkipRipple !== !0 && H(i, n.modifiers.keyCodes) === !0 && i.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(i, e, n, !0);
319
+ keystart: Xe((i) => {
320
+ n.enabled === !0 && i.qSkipRipple !== !0 && W(i, n.modifiers.keyCodes) === !0 && i.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(i, e, n, !0);
321
321
  }, 300)
322
322
  };
323
- oe(n, t), e.__qripple = n, Qe(n, "main", [
323
+ le(n, t), e.__qripple = n, Ge(n, "main", [
324
324
  [e, "pointerdown", "start", "passive"],
325
325
  [e, "click", "start", "passive"],
326
326
  [e, "keydown", "keystart", "passive"],
@@ -330,14 +330,14 @@ const He = xe(
330
330
  updated(e, t) {
331
331
  if (t.oldValue !== t.value) {
332
332
  const a = e.__qripple;
333
- a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && oe(a, t));
333
+ a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && le(a, t));
334
334
  }
335
335
  },
336
336
  beforeUnmount(e) {
337
337
  const t = e.__qripple;
338
338
  t !== void 0 && (t.abort.forEach((a) => {
339
339
  a();
340
- }), Ue(t, "main"), delete e._qripple);
340
+ }), He(t, "main"), delete e._qripple);
341
341
  }
342
342
  }
343
343
  ), he = {
@@ -348,28 +348,28 @@ const He = xe(
348
348
  around: "around",
349
349
  evenly: "evenly",
350
350
  stretch: "stretch"
351
- }, We = Object.keys(he), Xe = {
351
+ }, Je = Object.keys(he), et = {
352
352
  align: {
353
353
  type: String,
354
- validator: (e) => We.includes(e)
354
+ validator: (e) => Je.includes(e)
355
355
  }
356
356
  };
357
- function Ze(e) {
357
+ function tt(e) {
358
358
  return u(() => {
359
359
  const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
360
360
  return `${e.vertical === !0 ? "items" : "justify"}-${he[t]}`;
361
361
  });
362
362
  }
363
- function Je(e) {
363
+ function nt(e) {
364
364
  return e.appContext.config.globalProperties.$router !== void 0;
365
365
  }
366
- function le(e) {
366
+ function oe(e) {
367
367
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
368
368
  }
369
369
  function ue(e, t) {
370
370
  return (e.aliasOf || e) === (t.aliasOf || t);
371
371
  }
372
- function et(e, t) {
372
+ function at(e, t) {
373
373
  for (const a in t) {
374
374
  const n = t[a], i = e[a];
375
375
  if (typeof n == "string") {
@@ -383,18 +383,18 @@ function et(e, t) {
383
383
  function se(e, t) {
384
384
  return Array.isArray(t) === !0 ? e.length === t.length && e.every((a, n) => a === t[n]) : e.length === 1 && e[0] === t;
385
385
  }
386
- function tt(e, t) {
386
+ function rt(e, t) {
387
387
  return Array.isArray(e) === !0 ? se(e, t) : Array.isArray(t) === !0 ? se(t, e) : e === t;
388
388
  }
389
- function nt(e, t) {
389
+ function it(e, t) {
390
390
  if (Object.keys(e).length !== Object.keys(t).length)
391
391
  return !1;
392
392
  for (const a in e)
393
- if (tt(e[a], t[a]) === !1)
393
+ if (rt(e[a], t[a]) === !1)
394
394
  return !1;
395
395
  return !0;
396
396
  }
397
- const at = {
397
+ const lt = {
398
398
  // router-link
399
399
  to: [String, Object],
400
400
  replace: Boolean,
@@ -404,12 +404,12 @@ const at = {
404
404
  // state
405
405
  disable: Boolean
406
406
  };
407
- function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
408
- const a = X(), { props: n, proxy: i, emit: d } = a, c = Je(a), o = u(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? u(
409
- () => c === !0 && n.disable !== !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
407
+ function ot({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
408
+ const a = Z(), { props: n, proxy: i, emit: d } = a, c = nt(a), l = u(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? u(
409
+ () => c === !0 && n.disable !== !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
410
410
  ) : u(
411
- () => c === !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
412
- ), b = u(() => q.value === !0 ? P(n.to) : null), s = u(() => b.value !== null), h = u(() => o.value === !0 || s.value === !0), l = u(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = u(() => o.value === !0 ? {
411
+ () => c === !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
412
+ ), b = u(() => q.value === !0 ? P(n.to) : null), s = u(() => b.value !== null), h = u(() => l.value === !0 || s.value === !0), o = u(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = u(() => l.value === !0 ? {
413
413
  href: n.href,
414
414
  target: n.target
415
415
  } : s.value === !0 ? {
@@ -418,28 +418,28 @@ function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
418
418
  } : {}), p = u(() => {
419
419
  if (s.value === !1)
420
420
  return -1;
421
- const { matched: g } = b.value, { length: E } = g, L = g[E - 1];
422
- if (L === void 0)
421
+ const { matched: g } = b.value, { length: E } = g, C = g[E - 1];
422
+ if (C === void 0)
423
423
  return -1;
424
- const B = i.$route.matched;
425
- if (B.length === 0)
424
+ const S = i.$route.matched;
425
+ if (S.length === 0)
426
426
  return -1;
427
- const R = B.findIndex(
428
- ue.bind(null, L)
427
+ const B = S.findIndex(
428
+ ue.bind(null, C)
429
429
  );
430
- if (R !== -1)
431
- return R;
432
- const D = le(g[E - 2]);
430
+ if (B !== -1)
431
+ return B;
432
+ const K = oe(g[E - 2]);
433
433
  return (
434
434
  // we are dealing with nested routes
435
- E > 1 && le(L) === D && B[B.length - 1].path !== D ? B.findIndex(
435
+ E > 1 && oe(C) === K && S[S.length - 1].path !== K ? S.findIndex(
436
436
  ue.bind(null, g[E - 2])
437
- ) : R
437
+ ) : B
438
438
  );
439
439
  }), k = u(
440
- () => s.value === !0 && p.value !== -1 && et(i.$route.params, b.value.params)
440
+ () => s.value === !0 && p.value !== -1 && at(i.$route.params, b.value.params)
441
441
  ), f = u(
442
- () => k.value === !0 && p.value === i.$route.matched.length - 1 && nt(i.$route.params, b.value.params)
442
+ () => k.value === !0 && p.value === i.$route.matched.length - 1 && it(i.$route.params, b.value.params)
443
443
  ), $ = u(() => s.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
444
444
  function P(g) {
445
445
  try {
@@ -448,7 +448,7 @@ function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
448
448
  }
449
449
  return null;
450
450
  }
451
- function x(g, { returnRouterError: E, to: L = n.to, replace: B = n.replace } = {}) {
451
+ function x(g, { returnRouterError: E, to: C = n.to, replace: S = n.replace } = {}) {
452
452
  if (n.disable === !0)
453
453
  return g.preventDefault(), Promise.resolve(!1);
454
454
  if (
@@ -458,23 +458,23 @@ function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
458
458
  )
459
459
  return Promise.resolve(!1);
460
460
  g.preventDefault();
461
- const R = i.$router[B === !0 ? "replace" : "push"](L);
462
- return E === !0 ? R : R.then(() => {
461
+ const B = i.$router[S === !0 ? "replace" : "push"](C);
462
+ return E === !0 ? B : B.then(() => {
463
463
  }).catch(() => {
464
464
  });
465
465
  }
466
466
  function w(g) {
467
467
  if (s.value === !0) {
468
- const E = (L) => x(g, L);
468
+ const E = (C) => x(g, C);
469
469
  d("click", g, E), g.defaultPrevented !== !0 && E();
470
470
  } else
471
471
  d("click", g);
472
472
  }
473
473
  return {
474
474
  hasRouterLink: s,
475
- hasHrefLink: o,
475
+ hasHrefLink: l,
476
476
  hasLink: h,
477
- linkTag: l,
477
+ linkTag: o,
478
478
  resolvedLink: b,
479
479
  linkIsActive: k,
480
480
  linkIsExactActive: f,
@@ -492,19 +492,19 @@ const ce = {
492
492
  md: 16,
493
493
  lg: 24,
494
494
  xl: 32
495
- }, it = {
495
+ }, ut = {
496
496
  xs: 8,
497
497
  sm: 10,
498
498
  md: 14,
499
499
  lg: 20,
500
500
  xl: 24
501
- }, ot = ["button", "submit", "reset"], lt = /[^\s]\/[^\s]/, ut = ["flat", "outline", "push", "unelevated"];
502
- function st(e, t) {
501
+ }, st = ["button", "submit", "reset"], ct = /[^\s]\/[^\s]/, dt = ["flat", "outline", "push", "unelevated"];
502
+ function ft(e, t) {
503
503
  return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
504
504
  }
505
- const ct = {
505
+ const vt = {
506
506
  ...fe,
507
- ...at,
507
+ ...lt,
508
508
  type: {
509
509
  type: String,
510
510
  default: "button"
@@ -512,7 +512,7 @@ const ct = {
512
512
  label: [Number, String],
513
513
  icon: String,
514
514
  iconRight: String,
515
- ...ut.reduce(
515
+ ...dt.reduce(
516
516
  (e, t) => (e[t] = Boolean) && e,
517
517
  {}
518
518
  ),
@@ -534,7 +534,7 @@ const ct = {
534
534
  default: !0
535
535
  },
536
536
  align: {
537
- ...Xe.align,
537
+ ...et.align,
538
538
  default: "center"
539
539
  },
540
540
  stack: Boolean,
@@ -544,12 +544,12 @@ const ct = {
544
544
  default: null
545
545
  },
546
546
  disable: Boolean
547
- }, dt = {
548
- ...ct,
547
+ }, gt = {
548
+ ...vt,
549
549
  round: Boolean
550
550
  };
551
- function ft(e) {
552
- const t = ve(e, it), a = Ze(e), { hasRouterLink: n, hasLink: i, linkTag: d, linkAttrs: c, navigateOnClick: o } = rt({
551
+ function mt(e) {
552
+ const t = ve(e, ut), a = tt(e), { hasRouterLink: n, hasLink: i, linkTag: d, linkAttrs: c, navigateOnClick: l } = ot({
553
553
  fallbackTag: "button"
554
554
  }), q = u(() => {
555
555
  const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
@@ -562,9 +562,9 @@ function ft(e) {
562
562
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
563
563
  ), s = u(
564
564
  () => e.disable !== !0 && e.loading !== !0
565
- ), h = u(() => s.value === !0 ? e.tabindex || 0 : -1), l = u(() => st(e, "standard")), y = u(() => {
565
+ ), h = u(() => s.value === !0 ? e.tabindex || 0 : -1), o = u(() => ft(e, "standard")), y = u(() => {
566
566
  const f = { tabindex: h.value };
567
- return i.value === !0 ? Object.assign(f, c.value) : ot.includes(e.type) === !0 && (f.type = e.type), d.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), n.value !== !0 && lt.test(e.type) === !0 && (f.type = e.type)) : e.disable === !0 && (f.disabled = "", f["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(f, {
567
+ return i.value === !0 ? Object.assign(f, c.value) : st.includes(e.type) === !0 && (f.type = e.type), d.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), n.value !== !0 && ct.test(e.type) === !0 && (f.type = e.type)) : e.disable === !0 && (f.disabled = "", f["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(f, {
568
568
  role: "progressbar",
569
569
  "aria-valuemin": 0,
570
570
  "aria-valuemax": 100,
@@ -574,7 +574,7 @@ function ft(e) {
574
574
  let f;
575
575
  e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? f = `text-${e.textColor || e.color}` : f = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (f = `text-${e.textColor}`);
576
576
  const $ = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
577
- return `q-btn--${l.value} q-btn--${$}` + (f !== void 0 ? " " + f : "") + (s.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
577
+ return `q-btn--${o.value} q-btn--${$}` + (f !== void 0 ? " " + f : "") + (s.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
578
578
  }), k = u(
579
579
  () => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
580
580
  );
@@ -585,32 +585,32 @@ function ft(e) {
585
585
  attributes: y,
586
586
  hasLink: i,
587
587
  linkTag: d,
588
- navigateOnClick: o,
588
+ navigateOnClick: l,
589
589
  isActionable: s
590
590
  };
591
591
  }
592
- const { passiveCapture: _ } = F;
592
+ const { passiveCapture: L } = Q;
593
593
  let T = null, O = null, z = null;
594
- const vt = Z({
594
+ const pt = J({
595
595
  name: "QBtn",
596
596
  props: {
597
- ...dt,
597
+ ...gt,
598
598
  percentage: Number,
599
599
  darkPercentage: Boolean,
600
600
  onTouchstart: [Function, Array]
601
601
  },
602
602
  emits: ["click", "keydown", "mousedown", "keyup"],
603
603
  setup(e, { slots: t, emit: a }) {
604
- const { proxy: n } = X(), {
604
+ const { proxy: n } = Z(), {
605
605
  classes: i,
606
606
  style: d,
607
607
  innerClasses: c,
608
- attributes: o,
608
+ attributes: l,
609
609
  hasLink: q,
610
610
  linkTag: b,
611
611
  navigateOnClick: s,
612
612
  isActionable: h
613
- } = ft(e), l = J(null), y = J(null);
613
+ } = mt(e), o = ee(null), y = ee(null);
614
614
  let p = null, k, f = null;
615
615
  const $ = u(
616
616
  () => e.label !== void 0 && e.label !== null && e.label !== ""
@@ -631,13 +631,13 @@ const vt = Z({
631
631
  };
632
632
  if (h.value === !0) {
633
633
  const r = {
634
- onClick: L,
635
- onKeydown: B,
636
- onMousedown: D
634
+ onClick: C,
635
+ onKeydown: S,
636
+ onMousedown: K
637
637
  };
638
638
  if (n.$q.platform.has.touch === !0) {
639
639
  const m = e.onTouchstart !== void 0 ? "" : "Passive";
640
- r[`onTouchstart${m}`] = R;
640
+ r[`onTouchstart${m}`] = B;
641
641
  }
642
642
  return r;
643
643
  }
@@ -646,46 +646,46 @@ const vt = Z({
646
646
  onClick: M
647
647
  };
648
648
  }), E = u(() => ({
649
- ref: l,
649
+ ref: o,
650
650
  class: "q-btn q-btn-item non-selectable no-outline " + i.value,
651
651
  style: d.value,
652
- ...o.value,
652
+ ...l.value,
653
653
  ...g.value
654
654
  }));
655
- function L(r) {
656
- if (l.value !== null) {
655
+ function C(r) {
656
+ if (o.value !== null) {
657
657
  if (r !== void 0) {
658
658
  if (r.defaultPrevented === !0)
659
659
  return;
660
660
  const m = document.activeElement;
661
- if (e.type === "submit" && m !== document.body && l.value.contains(m) === !1 && m.contains(l.value) === !1) {
662
- l.value.focus();
663
- const K = () => {
664
- document.removeEventListener("keydown", M, !0), document.removeEventListener("keyup", K, _), l.value !== null && l.value.removeEventListener("blur", K, _);
661
+ if (e.type === "submit" && m !== document.body && o.value.contains(m) === !1 && m.contains(o.value) === !1) {
662
+ o.value.focus();
663
+ const N = () => {
664
+ document.removeEventListener("keydown", M, !0), document.removeEventListener("keyup", N, L), o.value !== null && o.value.removeEventListener("blur", N, L);
665
665
  };
666
- document.addEventListener("keydown", M, !0), document.addEventListener("keyup", K, _), l.value.addEventListener("blur", K, _);
666
+ document.addEventListener("keydown", M, !0), document.addEventListener("keyup", N, L), o.value.addEventListener("blur", N, L);
667
667
  }
668
668
  }
669
669
  s(r);
670
670
  }
671
671
  }
672
- function B(r) {
673
- l.value !== null && (a("keydown", r), H(r, [13, 32]) === !0 && O !== l.value && (O !== null && A(), r.defaultPrevented !== !0 && (l.value.focus(), O = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", C, !0), l.value.addEventListener("blur", C, _)), M(r)));
672
+ function S(r) {
673
+ o.value !== null && (a("keydown", r), W(r, [13, 32]) === !0 && O !== o.value && (O !== null && A(), r.defaultPrevented !== !0 && (o.value.focus(), O = o.value, o.value.classList.add("q-btn--active"), document.addEventListener("keyup", _, !0), o.value.addEventListener("blur", _, L)), M(r)));
674
674
  }
675
- function R(r) {
676
- l.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== l.value && (T !== null && A(), T = l.value, p = r.target, p.addEventListener("touchcancel", C, _), p.addEventListener("touchend", C, _)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
675
+ function B(r) {
676
+ o.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== o.value && (T !== null && A(), T = o.value, p = r.target, p.addEventListener("touchcancel", _, L), p.addEventListener("touchend", _, L)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
677
677
  f = null, k = !1;
678
678
  }, 200)));
679
679
  }
680
- function D(r) {
681
- l.value !== null && (r.qSkipRipple = k === !0, a("mousedown", r), r.defaultPrevented !== !0 && z !== l.value && (z !== null && A(), z = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("mouseup", C, _)));
680
+ function K(r) {
681
+ o.value !== null && (r.qSkipRipple = k === !0, a("mousedown", r), r.defaultPrevented !== !0 && z !== o.value && (z !== null && A(), z = o.value, o.value.classList.add("q-btn--active"), document.addEventListener("mouseup", _, L)));
682
682
  }
683
- function C(r) {
684
- if (l.value !== null && !(r !== void 0 && r.type === "blur" && document.activeElement === l.value)) {
683
+ function _(r) {
684
+ if (o.value !== null && !(r !== void 0 && r.type === "blur" && document.activeElement === o.value)) {
685
685
  if (r !== void 0 && r.type === "keyup") {
686
- if (O === l.value && H(r, [13, 32]) === !0) {
686
+ if (O === o.value && W(r, [13, 32]) === !0) {
687
687
  const m = new MouseEvent("click", r);
688
- m.qKeyEvent = !0, r.defaultPrevented === !0 && Fe(m), r.cancelBubble === !0 && be(m), l.value.dispatchEvent(m), M(r), r.qKeyEvent = !0;
688
+ m.qKeyEvent = !0, r.defaultPrevented === !0 && Ye(m), r.cancelBubble === !0 && be(m), o.value.dispatchEvent(m), M(r), r.qKeyEvent = !0;
689
689
  }
690
690
  a("keyup", r);
691
691
  }
@@ -694,7 +694,7 @@ const vt = Z({
694
694
  }
695
695
  function A(r) {
696
696
  const m = y.value;
697
- r !== !0 && (T === l.value || z === l.value) && m !== null && m !== document.activeElement && (m.setAttribute("tabindex", -1), m.focus()), T === l.value && (p !== null && (p.removeEventListener("touchcancel", C, _), p.removeEventListener("touchend", C, _)), T = p = null), z === l.value && (document.removeEventListener("mouseup", C, _), z = null), O === l.value && (document.removeEventListener("keyup", C, !0), l.value !== null && l.value.removeEventListener("blur", C, _), O = null), l.value !== null && l.value.classList.remove("q-btn--active");
697
+ r !== !0 && (T === o.value || z === o.value) && m !== null && m !== document.activeElement && (m.setAttribute("tabindex", -1), m.focus()), T === o.value && (p !== null && (p.removeEventListener("touchcancel", _, L), p.removeEventListener("touchend", _, L)), T = p = null), z === o.value && (document.removeEventListener("mouseup", _, L), z = null), O === o.value && (document.removeEventListener("keyup", _, !0), o.value !== null && o.value.removeEventListener("blur", _, L), O = null), o.value !== null && o.value.classList.remove("q-btn--active");
698
698
  }
699
699
  function j(r) {
700
700
  M(r), r.qSkipRipple = !0;
@@ -703,7 +703,7 @@ const vt = Z({
703
703
  A(!0);
704
704
  }), Object.assign(n, {
705
705
  click: (r) => {
706
- h.value === !0 && L(r);
706
+ h.value === !0 && C(r);
707
707
  }
708
708
  }), () => {
709
709
  let r = [];
@@ -715,7 +715,7 @@ const vt = Z({
715
715
  })
716
716
  ), $.value === !0 && r.push(
717
717
  v("span", { class: "block" }, [e.label])
718
- ), r = I(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
718
+ ), r = D(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
719
719
  v(re, {
720
720
  name: e.iconRight,
721
721
  right: e.stack !== !0 && $.value === !0,
@@ -748,7 +748,7 @@ const vt = Z({
748
748
  v("span", {
749
749
  key: "loading",
750
750
  class: "absolute-full flex flex-center"
751
- }, t.loading !== void 0 ? t.loading() : [v(Ke)])
751
+ }, t.loading !== void 0 ? t.loading() : [v(Fe)])
752
752
  ] : null)
753
753
  ), qe(
754
754
  v(
@@ -757,7 +757,7 @@ const vt = Z({
757
757
  m
758
758
  ),
759
759
  [[
760
- He,
760
+ Ze,
761
761
  P.value,
762
762
  void 0,
763
763
  x.value
@@ -765,14 +765,14 @@ const vt = Z({
765
765
  );
766
766
  };
767
767
  }
768
- }), gt = /* @__PURE__ */ W({
768
+ }), bt = /* @__PURE__ */ X({
769
769
  __name: "index",
770
770
  props: {
771
- size: { default: S.MD },
771
+ size: { default: R.MD },
772
772
  transparent: { type: Boolean },
773
773
  flat: { type: Boolean },
774
774
  rounded: { type: Boolean },
775
- color: { default: Se.PRIMARY },
775
+ color: { default: Pe.PRIMARY },
776
776
  iconLeft: {},
777
777
  iconRight: {},
778
778
  iconMiddle: {},
@@ -782,7 +782,8 @@ const vt = Z({
782
782
  href: {},
783
783
  target: {},
784
784
  submit: { type: Boolean },
785
- ariaLabel: {}
785
+ ariaLabel: {},
786
+ label: {}
786
787
  },
787
788
  emits: ["click"],
788
789
  setup(e) {
@@ -793,20 +794,20 @@ const vt = Z({
793
794
  "app-btn_trans": t.transparent,
794
795
  "app-btn_flat": t.flat,
795
796
  "app-btn_rounded": t.rounded,
796
- "app-btn_sm": t.size === S.SM,
797
- "app-btn_md": t.size === S.MD,
798
- "app-btn_lg": t.size === S.LG,
797
+ "app-btn_sm": t.size === R.SM,
798
+ "app-btn_md": t.size === R.MD,
799
+ "app-btn_lg": t.size === R.LG,
799
800
  "app-btn_icon-left": t.iconLeft,
800
801
  "app-btn_icon-right": t.iconRight,
801
802
  "app-btn_icon-middle": t.iconMiddle
802
803
  },
803
804
  `app-btn_${t.color}`
804
805
  ]);
805
- return (n, i) => (N(), Ee(Q(vt), {
806
+ return (n, i) => (I(), Ee(U(pt), {
806
807
  "no-caps": "",
807
808
  unelevated: "",
808
809
  class: V(a.value),
809
- padding: Q(Re)[n.size || Q(S).MD],
810
+ padding: U(we)[n.size || U(R).MD],
810
811
  loading: n.loading,
811
812
  disabled: n.disabled || void 0,
812
813
  to: n.to,
@@ -816,8 +817,8 @@ const vt = Z({
816
817
  "aria-label": n.ariaLabel,
817
818
  onClick: i[0] || (i[0] = (d) => n.$emit("click", d))
818
819
  }, {
819
- default: _e(() => [
820
- n.iconLeft || n.iconMiddle ? (N(), Y("i", {
820
+ default: Le(() => [
821
+ n.iconLeft || n.iconMiddle ? (I(), F("i", {
821
822
  key: 0,
822
823
  class: V([
823
824
  "icon-kl",
@@ -825,17 +826,20 @@ const vt = Z({
825
826
  `icon-kl-${n.iconLeft || n.iconMiddle}`,
826
827
  n.transparent || n.flat ? `text-${n.color}` : "text-secondary"
827
828
  ])
828
- }, null, 2)) : ee("", !0),
829
- Le(n.$slots, "default", {}, void 0, !0),
830
- n.iconRight ? (N(), Y("i", {
831
- key: 1,
829
+ }, null, 2)) : Y("", !0),
830
+ Ce(n.$slots, "default", {}, void 0, !0),
831
+ n.label ? (I(), F(_e, { key: 1 }, [
832
+ Se(Be(n.label), 1)
833
+ ], 64)) : Y("", !0),
834
+ n.iconRight ? (I(), F("i", {
835
+ key: 2,
832
836
  class: V([
833
837
  "icon-kl",
834
838
  "icon-kl_right",
835
839
  `icon-kl-${n.iconRight}`,
836
840
  n.transparent ? `text-${n.color}` : "text-secondary"
837
841
  ])
838
- }, null, 2)) : ee("", !0)
842
+ }, null, 2)) : Y("", !0)
839
843
  ]),
840
844
  _: 3
841
845
  }, 8, ["class", "padding", "loading", "disabled", "to", "href", "target", "type", "aria-label"]));
@@ -845,7 +849,7 @@ const vt = Z({
845
849
  for (const [n, i] of t)
846
850
  a[n] = i;
847
851
  return a;
848
- }, bt = /* @__PURE__ */ ye(gt, [["__scopeId", "data-v-8de6ba17"]]), mt = /* @__PURE__ */ W({
852
+ }, kt = /* @__PURE__ */ ye(bt, [["__scopeId", "data-v-c543ecd6"]]), ht = /* @__PURE__ */ X({
849
853
  __name: "index",
850
854
  props: {
851
855
  name: {},
@@ -853,17 +857,17 @@ const vt = Z({
853
857
  color: {}
854
858
  },
855
859
  setup(e) {
856
- return (t, a) => (N(), Y("i", {
860
+ return (t, a) => (I(), F("i", {
857
861
  class: V(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
858
- style: Ce(t.size ? `font-size: ${t.size}` : void 0)
862
+ style: Re(t.size ? `font-size: ${t.size}` : void 0)
859
863
  }, null, 6));
860
864
  }
861
- }), ht = /* @__PURE__ */ ye(mt, [["__scopeId", "data-v-73419357"]]), yt = Be(
862
- () => import("./index-BOmfU6c3.js")
865
+ }), $t = /* @__PURE__ */ ye(ht, [["__scopeId", "data-v-73419357"]]), qt = xe(
866
+ () => import("./index-BM69ZAgD.js")
863
867
  );
864
868
  export {
865
- bt as A,
866
- Se as C,
867
- yt as a,
868
- ht as i
869
+ kt as A,
870
+ Pe as C,
871
+ qt as a,
872
+ $t as i
869
873
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("vue"),S={SM:"sm",MD:"md",LG:"lg"},de={[S.SM]:"3px 9px",[S.MD]:"5px 12px",[S.LG]:"9px 20px"},ne={PRIMARY:"primary",INFO:"info"},V={xs:18,sm:24,md:32,lg:38,xl:46},ae={size:String};function oe(e,t=V){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return n.markRaw(n.defineComponent(e))}function fe(e){return n.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function j(e,t){return e!==void 0?t.concat(e()):t}const U="0 0 24 24",Y=e=>e,K=e=>`ionicons ${e}`,re={"mdi-":e=>`mdi ${e}`,"icon-":Y,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":K,"ion-ios":K,"ion-logo":K,"iconfont ":Y,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ie={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(re).join("|")+")"),pe=new RegExp("^("+Object.keys(ie).join("|")+")"),G=new RegExp("^("+Object.keys(le).join("|")+")"),ge=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=Q({name:"QIcon",props:{...ae,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),a=oe(e),i=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=n.computed(()=>{let c,l=e.name;if(l==="none"||!l)return{none:!0};if(o.iconMapFn!==null){const s=o.iconMapFn(l);if(s!==void 0)if(s.icon!==void 0){if(l=s.icon,l==="none"||!l)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(ge.test(l)===!0){const[s,h=U]=l.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(u=>{const[b,p,y]=u.split("@@");return n.h("path",{style:p,d:b,transform:y})})}}if(he.test(l)===!0)return{img:!0,src:l.substring(4)};if(be.test(l)===!0){const[s,h=U]=l.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let C=" ";const g=l.match(me);if(g!==null)c=re[g[1]](l);else if(ke.test(l)===!0)c=l;else if(ye.test(l)===!0)c=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(G.test(l)===!0){c="notranslate material-symbols";const s=l.match(G);s!==null&&(l=l.substring(6),c+=le[s[1]]),C=l}else{c="notranslate material-icons";const s=l.match(pe);s!==null&&(l=l.substring(2),c+=ie[s[1]]),C=l}return{cls:c,content:C}});return()=>{const c={class:i.value,style:a.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?n.h(e.tag,c,ve(t.default)):d.value.img===!0?n.h(e.tag,c,j(t.default,[n.h("img",{src:d.value.src})])):d.value.svg===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:d.value.viewBox},[n.h("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(c.class+=" "+d.value.cls),n.h(e.tag,c,j(t.default,[d.value.content])))}}}),Ce={size:{type:[String,Number],default:"1em"},color:String};function $e(e){return{cSize:n.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const qe=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=$e(e);return()=>n.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Be(e,t){const o=e.style;for(const a in t)o[a]=t[a]}const N={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(N,{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 Ee(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 ue(e){e.stopPropagation()}function Le(e){e.cancelable!==!1&&e.preventDefault()}function P(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Re(e,t,o){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(o):o,o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],N[i[3]])})}function Se(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],N[a[3]])}),e[o]=void 0)}function _e(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return _e(e)===!0?!1:[].concat(t).includes(e.keyCode)}function we(e,t=250){let o=!1,a;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),a=e.apply(this,arguments)),a}}function W(e,t,o,a){o.modifiers.stop===!0&&ue(e);const i=o.modifiers.color;let d=o.modifiers.center;d=d===!0||a===!0;const c=document.createElement("span"),l=document.createElement("span"),C=Ee(e),{left:g,top:s,width:h,height:u}=t.getBoundingClientRect(),b=Math.sqrt(h*h+u*u),p=b/2,y=`${(h-b)/2}px`,f=d?y:`${C.left-g-p}px`,k=`${(u-b)/2}px`,x=d?k:`${C.top-s-p}px`;l.className="q-ripple__inner",Be(l,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${x},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${i?" text-"+i:""}`,c.setAttribute("dir","ltr"),c.appendChild(l),t.appendChild(c);const _=()=>{c.remove(),clearTimeout(w)};o.abort.push(_);let w=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,l.style.opacity=.2,w=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,w=setTimeout(()=>{c.remove(),o.abort.splice(o.abort.indexOf(_),1)},275)},250)},50)}function X(e,{modifiers:t,value:o,arg:a}){const i=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||a,keyCodes:[].concat(i.keyCodes||13)}}const xe=fe({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const a={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(i){a.enabled===!0&&i.qSkipRipple!==!0&&i.type===(a.modifiers.early===!0?"pointerdown":"click")&&W(i,e,a,i.qKeyEvent===!0)},keystart:we(i=>{a.enabled===!0&&i.qSkipRipple!==!0&&F(i,a.modifiers.keyCodes)===!0&&i.type===`key${a.modifiers.early===!0?"down":"up"}`&&W(i,e,a,!0)},300)};X(a,t),e.__qripple=a,Re(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&X(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),Se(t,"main"),delete e._qripple)}}),se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(se),Me={align:{type:String,validator:e=>Pe.includes(e)}};function Te(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${se[t]}`})}function Oe(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){for(const o in t){const a=t[o],i=e[o];if(typeof a=="string"){if(a!==i)return!1}else if(Array.isArray(i)===!1||i.length!==a.length||a.some((d,c)=>d!==i[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,a)=>o===t[a]):e.length===1&&e[0]===t}function Ae(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(Ae(e[o],t[o])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function De({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:a,proxy:i,emit:d}=o,c=Oe(o),l=n.computed(()=>a.disable!==!0&&a.href!==void 0),C=t===!0?n.computed(()=>c===!0&&a.disable!==!0&&l.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):n.computed(()=>c===!0&&l.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),g=n.computed(()=>C.value===!0?x(a.to):null),s=n.computed(()=>g.value!==null),h=n.computed(()=>l.value===!0||s.value===!0),u=n.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),b=n.computed(()=>l.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:g.value.href,target:a.target}:{}),p=n.computed(()=>{if(s.value===!1)return-1;const{matched:v}=g.value,{length:$}=v,B=v[$-1];if(B===void 0)return-1;const L=i.$route.matched;if(L.length===0)return-1;const R=L.findIndex(J.bind(null,B));if(R!==-1)return R;const I=Z(v[$-2]);return $>1&&Z(B)===I&&L[L.length-1].path!==I?L.findIndex(J.bind(null,v[$-2])):R}),y=n.computed(()=>s.value===!0&&p.value!==-1&&ze(i.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&p.value===i.$route.matched.length-1&&je(i.$route.params,g.value.params)),k=n.computed(()=>s.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":y.value===!0?` ${a.activeClass}`:"":"");function x(v){try{return i.$router.resolve(v)}catch{}return null}function _(v,{returnRouterError:$,to:B=a.to,replace:L=a.replace}={}){if(a.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||a.target==="_blank")return Promise.resolve(!1);v.preventDefault();const R=i.$router[L===!0?"replace":"push"](B);return $===!0?R:R.then(()=>{}).catch(()=>{})}function w(v){if(s.value===!0){const $=B=>_(v,B);d("click",v,$),v.defaultPrevented!==!0&&$()}else d("click",v)}return{hasRouterLink:s,hasHrefLink:l,hasLink:h,linkTag:u,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:x,navigateToRouterLink:_,navigateOnClick:w}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ne={xs:8,sm:10,md:14,lg:20,xl:24},Ke=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ue={...ae,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function Ge(e){const t=oe(e,Ne),o=Te(e),{hasRouterLink:a,hasLink:i,linkTag:d,linkAttrs:c,navigateOnClick:l}=De({fallbackTag:"button"}),C=n.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in te?te[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>s.value===!0?e.tabindex||0:-1),u=n.computed(()=>Qe(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return i.value===!0?Object.assign(f,c.value):Ke.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),p=n.computed(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const k=e.round===!0?"round":`rectangle${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),y=n.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:C,innerClasses:y,attributes:b,hasLink:i,linkTag:d,navigateOnClick:l,isActionable:s}}const{passiveCapture:q}=N;let M=null,T=null,O=null;const He=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:a}=n.getCurrentInstance(),{classes:i,style:d,innerClasses:c,attributes:l,hasLink:C,linkTag:g,navigateOnClick:s,isActionable:h}=Ge(e),u=n.ref(null),b=n.ref(null);let p=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),x=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),_=n.computed(()=>({center:e.round})),w=n.computed(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(h.value===!0){const r={onClick:B,onKeydown:L,onMousedown:I};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=R}return r}return{onClick:P}}),$=n.computed(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:d.value,...l.value,...v.value}));function B(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const D=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",D,q),u.value!==null&&u.value.removeEventListener("blur",D,q)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",D,q),u.value.addEventListener("blur",D,q)}}s(r)}}function L(r){u.value!==null&&(o("keydown",r),F(r,[13,32])===!0&&T!==u.value&&(T!==null&&z(),r.defaultPrevented!==!0&&(u.value.focus(),T=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",E,!0),u.value.addEventListener("blur",E,q)),P(r)))}function R(r){u.value!==null&&(o("touchstart",r),r.defaultPrevented!==!0&&(M!==u.value&&(M!==null&&z(),M=u.value,p=r.target,p.addEventListener("touchcancel",E,q),p.addEventListener("touchend",E,q)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(r){u.value!==null&&(r.qSkipRipple=y===!0,o("mousedown",r),r.defaultPrevented!==!0&&O!==u.value&&(O!==null&&z(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",E,q)))}function E(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(T===u.value&&F(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&Le(m),r.cancelBubble===!0&&ue(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}o("keyup",r)}z()}}function z(r){const m=b.value;r!==!0&&(M===u.value||O===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),M===u.value&&(p!==null&&(p.removeEventListener("touchcancel",E,q),p.removeEventListener("touchend",E,q)),M=p=null),O===u.value&&(document.removeEventListener("mouseup",E,q),O=null),T===u.value&&(document.removeEventListener("keyup",E,!0),u.value!==null&&u.value.removeEventListener("blur",E,q),T=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function A(r){P(r),r.qSkipRipple=!0}return n.onBeforeUnmount(()=>{z(!0)}),Object.assign(a,{click:r=>{h.value===!0&&B(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(n.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&r.push(n.h("span",{class:"block"},[e.label])),r=j(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(n.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const m=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:w.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},r)),e.loading!==null&&m.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(qe)])]:null)),n.withDirectives(n.h(g.value,$.value,m),[[xe,x.value,void 0,_.value]])}}}),We=n.defineComponent({__name:"index",props:{size:{default:S.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:ne.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},emits:["click"],setup(e){const t=e,o=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===S.SM,"app-btn_md":t.size===S.MD,"app-btn_lg":t.size===S.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(a,i)=>(n.openBlock(),n.createBlock(n.unref(He),{"no-caps":"",unelevated:"",class:n.normalizeClass(o.value),padding:n.unref(de)[a.size||n.unref(S).MD],loading:a.loading,disabled:a.disabled||void 0,to:a.to,href:a.href,target:a.target,type:a.submit?"submit":void 0,"aria-label":a.ariaLabel,onClick:i[0]||(i[0]=d=>a.$emit("click",d))},{default:n.withCtx(()=>[a.iconLeft||a.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",a.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${a.iconLeft||a.iconMiddle}`,a.transparent||a.flat?`text-${a.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default",{},void 0,!0),a.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(a.label),1)],64)):n.createCommentVNode("",!0),a.iconRight?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${a.iconRight}`,a.transparent?`text-${a.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),ce=(e,t)=>{const o=e.__vccOpts||e;for(const[a,i]of t)o[a]=i;return o},Xe=ce(We,[["__scopeId","data-v-c543ecd6"]]),Ze=n.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,o)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:n.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),Je=ce(Ze,[["__scopeId","data-v-73419357"]]),et=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B7ZhDJ0x.cjs")));exports.AppButton=Xe;exports.AppButtonCopy=et;exports.COLORS=ne;exports.index=Je;
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .app-btn[data-v-8de6ba17] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_sm[data-v-8de6ba17]{font-size:12px;border-radius:7px}.app-btn_sm[data-v-8de6ba17] .q-btn__content{line-height:20px}.app-btn_sm .icon-kl[data-v-8de6ba17]{font-size:18px}.app-btn_sm.app-btn_icon-left[data-v-8de6ba17]{padding-left:5px!important}.app-btn_sm.app-btn_icon-left .icon-kl_left[data-v-8de6ba17]{margin-right:2px}.app-btn_sm.app-btn_icon-right[data-v-8de6ba17]{padding-right:5px!important}.app-btn_sm.app-btn_icon-right .icon-kl_right[data-v-8de6ba17]{margin-left:2px}.app-btn_sm.app-btn_icon-middle[data-v-8de6ba17]{padding:4px!important}.app-btn_md[data-v-8de6ba17]{font-size:14px;border-radius:8px}.app-btn_md[data-v-8de6ba17] .q-btn__content{line-height:22px}.app-btn_md .icon-kl[data-v-8de6ba17]{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-8de6ba17]{padding-left:9px!important}.app-btn_md.app-btn_icon-left .icon-kl_left[data-v-8de6ba17]{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-8de6ba17]{padding-right:9px!important}.app-btn_md.app-btn_icon-right .icon-kl_right[data-v-8de6ba17]{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-8de6ba17]{padding:5px!important}.app-btn_lg[data-v-8de6ba17]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-8de6ba17] .q-btn__content{line-height:26px}.app-btn_lg .icon-kl[data-v-8de6ba17]{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-8de6ba17]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left .icon-kl_left[data-v-8de6ba17]{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-8de6ba17]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right .icon-kl_right[data-v-8de6ba17]{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-8de6ba17]{padding:11px!important}.app-btn_primary[data-v-8de6ba17]{color:#1a5cff}.app-btn_info[data-v-8de6ba17]{color:#399}.app-btn_negative[data-v-8de6ba17]{color:#ff4757}.app-btn_positive[data-v-8de6ba17]{color:#46c93a}.app-btn_default.app-btn_primary[data-v-8de6ba17]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-8de6ba17]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-8de6ba17]{background-color:#ff4757;color:#fdfffc}.app-btn_default.app-btn_positive[data-v-8de6ba17]{background-color:#46c93a;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-8de6ba17]{background-color:#1a5cff26}.app-btn_trans.app-btn_info[data-v-8de6ba17]{background-color:#33999926}.app-btn_trans.app-btn_negative[data-v-8de6ba17]{background-color:#ff475726}.app-btn_trans.app-btn_positive[data-v-8de6ba17]{background-color:#46c93a26}.app-btn_flat[data-v-8de6ba17]{background-color:transparent}.app-btn_flat:hover.app-btn_primary[data-v-8de6ba17]{background-color:#1a5cff05}.app-btn_flat:hover.app-btn_info[data-v-8de6ba17]{background-color:#33999905}.app-btn_flat:hover.app-btn_negative[data-v-8de6ba17]{background-color:#ff475705}.app-btn_flat:hover.app-btn_positive[data-v-8de6ba17]{background-color:#46c93a05}.app-btn_rounded[data-v-8de6ba17]{border-radius:50px}.icon-kl[data-v-73419357]{font-size:24px}
1
+ .app-btn[data-v-c543ecd6] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_sm[data-v-c543ecd6]{font-size:12px;border-radius:7px}.app-btn_sm[data-v-c543ecd6] .q-btn__content{line-height:20px}.app-btn_sm .icon-kl[data-v-c543ecd6]{font-size:18px}.app-btn_sm.app-btn_icon-left[data-v-c543ecd6]{padding-left:5px!important}.app-btn_sm.app-btn_icon-left .icon-kl_left[data-v-c543ecd6]{margin-right:2px}.app-btn_sm.app-btn_icon-right[data-v-c543ecd6]{padding-right:5px!important}.app-btn_sm.app-btn_icon-right .icon-kl_right[data-v-c543ecd6]{margin-left:2px}.app-btn_sm.app-btn_icon-middle[data-v-c543ecd6]{padding:4px!important}.app-btn_md[data-v-c543ecd6]{font-size:14px;border-radius:8px}.app-btn_md[data-v-c543ecd6] .q-btn__content{line-height:22px}.app-btn_md .icon-kl[data-v-c543ecd6]{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-c543ecd6]{padding-left:9px!important}.app-btn_md.app-btn_icon-left .icon-kl_left[data-v-c543ecd6]{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-c543ecd6]{padding-right:9px!important}.app-btn_md.app-btn_icon-right .icon-kl_right[data-v-c543ecd6]{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-c543ecd6]{padding:5px!important}.app-btn_lg[data-v-c543ecd6]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-c543ecd6] .q-btn__content{line-height:26px}.app-btn_lg .icon-kl[data-v-c543ecd6]{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-c543ecd6]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left .icon-kl_left[data-v-c543ecd6]{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-c543ecd6]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right .icon-kl_right[data-v-c543ecd6]{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-c543ecd6]{padding:11px!important}.app-btn_primary[data-v-c543ecd6]{color:#1a5cff}.app-btn_info[data-v-c543ecd6]{color:#399}.app-btn_negative[data-v-c543ecd6]{color:#ff4757}.app-btn_positive[data-v-c543ecd6]{color:#46c93a}.app-btn_default.app-btn_primary[data-v-c543ecd6]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-c543ecd6]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-c543ecd6]{background-color:#ff4757;color:#fdfffc}.app-btn_default.app-btn_positive[data-v-c543ecd6]{background-color:#46c93a;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-c543ecd6]{background-color:#1a5cff26}.app-btn_trans.app-btn_info[data-v-c543ecd6]{background-color:#33999926}.app-btn_trans.app-btn_negative[data-v-c543ecd6]{background-color:#ff475726}.app-btn_trans.app-btn_positive[data-v-c543ecd6]{background-color:#46c93a26}.app-btn_flat[data-v-c543ecd6]{background-color:transparent}.app-btn_flat:hover.app-btn_primary[data-v-c543ecd6]{background-color:#1a5cff05}.app-btn_flat:hover.app-btn_info[data-v-c543ecd6]{background-color:#33999905}.app-btn_flat:hover.app-btn_negative[data-v-c543ecd6]{background-color:#ff475705}.app-btn_flat:hover.app-btn_positive[data-v-c543ecd6]{background-color:#46c93a05}.app-btn_rounded[data-v-c543ecd6]{border-radius:50px}.icon-kl[data-v-73419357]{font-size:24px}
package/dist/uikit.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const t=require("./index-HASh7-WD.cjs");exports.AppButton=t.AppButton;exports.AppButtonCopy=t.AppButtonCopy;exports.AppIcon=t.index;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const t=require("./index-DrV_ZMzg.cjs");exports.AppButton=t.AppButton;exports.AppButtonCopy=t.AppButtonCopy;exports.AppIcon=t.index;
package/dist/uikit.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { A as a, a as A, i as n } from "./index-Cuy6nlop.js";
2
+ import { A as a, a as A, i as n } from "./index-DJKTz3jw.js";
3
3
  export {
4
4
  a as AppButton,
5
5
  A as AppButtonCopy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@validol4ik/uikit",
3
- "version": "0.2.7",
3
+ "version": "0.2.10",
4
4
  "type": "module",
5
5
  "main": "./dist/uikit.cjs",
6
6
  "module": "./dist/uikit.es.js",
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),R={SM:"sm",MD:"md",LG:"lg"},de={[R.SM]:"3px 9px",[R.MD]:"5px 12px",[R.LG]:"9px 20px"},ne={PRIMARY:"primary",INFO:"info"},V={xs:18,sm:24,md:32,lg:38,xl:46},ae={size:String};function oe(e,t=V){return a.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return a.markRaw(a.defineComponent(e))}function fe(e){return a.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function j(e,t){return e!==void 0?t.concat(e()):t}const U="0 0 24 24",Y=e=>e,N=e=>`ionicons ${e}`,re={"mdi-":e=>`mdi ${e}`,"icon-":Y,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":N,"ion-ios":N,"ion-logo":N,"iconfont ":Y,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ie={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(re).join("|")+")"),pe=new RegExp("^("+Object.keys(ie).join("|")+")"),G=new RegExp("^("+Object.keys(le).join("|")+")"),ge=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=Q({name:"QIcon",props:{...ae,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=a.getCurrentInstance(),n=oe(e),i=a.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=a.computed(()=>{let c,l=e.name;if(l==="none"||!l)return{none:!0};if(o.iconMapFn!==null){const s=o.iconMapFn(l);if(s!==void 0)if(s.icon!==void 0){if(l=s.icon,l==="none"||!l)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(ge.test(l)===!0){const[s,h=U]=l.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(u=>{const[b,p,y]=u.split("@@");return a.h("path",{style:p,d:b,transform:y})})}}if(he.test(l)===!0)return{img:!0,src:l.substring(4)};if(be.test(l)===!0){const[s,h=U]=l.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let $=" ";const g=l.match(me);if(g!==null)c=re[g[1]](l);else if(ke.test(l)===!0)c=l;else if(ye.test(l)===!0)c=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(G.test(l)===!0){c="notranslate material-symbols";const s=l.match(G);s!==null&&(l=l.substring(6),c+=le[s[1]]),$=l}else{c="notranslate material-icons";const s=l.match(pe);s!==null&&(l=l.substring(2),c+=ie[s[1]]),$=l}return{cls:c,content:$}});return()=>{const c={class:i.value,style:n.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?a.h(e.tag,c,ve(t.default)):d.value.img===!0?a.h(e.tag,c,j(t.default,[a.h("img",{src:d.value.src})])):d.value.svg===!0?a.h(e.tag,c,j(t.default,[a.h("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?a.h(e.tag,c,j(t.default,[a.h("svg",{viewBox:d.value.viewBox},[a.h("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(c.class+=" "+d.value.cls),a.h(e.tag,c,j(t.default,[d.value.content])))}}}),$e={size:{type:[String,Number],default:"1em"},color:String};function qe(e){return{cSize:a.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:a.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Ce=Q({name:"QSpinner",props:{...$e,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=qe(e);return()=>a.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[a.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ee(e,t){const o=e.style;for(const n in t)o[n]=t[n]}const K={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(K,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Be(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 ue(e){e.stopPropagation()}function Le(e){e.cancelable!==!1&&e.preventDefault()}function P(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function _e(e,t,o){const n=`__q_${t}_evt`;e[n]=e[n]!==void 0?e[n].concat(o):o,o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],K[i[3]])})}function Re(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(n=>{n[0].removeEventListener(n[1],e[n[2]],K[n[3]])}),e[o]=void 0)}function Se(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return Se(e)===!0?!1:[].concat(t).includes(e.keyCode)}function xe(e,t=250){let o=!1,n;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),n=e.apply(this,arguments)),n}}function W(e,t,o,n){o.modifiers.stop===!0&&ue(e);const i=o.modifiers.color;let d=o.modifiers.center;d=d===!0||n===!0;const c=document.createElement("span"),l=document.createElement("span"),$=Be(e),{left:g,top:s,width:h,height:u}=t.getBoundingClientRect(),b=Math.sqrt(h*h+u*u),p=b/2,y=`${(h-b)/2}px`,f=d?y:`${$.left-g-p}px`,k=`${(u-b)/2}px`,w=d?k:`${$.top-s-p}px`;l.className="q-ripple__inner",Ee(l,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${w},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${i?" text-"+i:""}`,c.setAttribute("dir","ltr"),c.appendChild(l),t.appendChild(c);const S=()=>{c.remove(),clearTimeout(x)};o.abort.push(S);let x=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,l.style.opacity=.2,x=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,x=setTimeout(()=>{c.remove(),o.abort.splice(o.abort.indexOf(S),1)},275)},250)},50)}function X(e,{modifiers:t,value:o,arg:n}){const i=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||n,keyCodes:[].concat(i.keyCodes||13)}}const we=fe({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const n={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(i){n.enabled===!0&&i.qSkipRipple!==!0&&i.type===(n.modifiers.early===!0?"pointerdown":"click")&&W(i,e,n,i.qKeyEvent===!0)},keystart:xe(i=>{n.enabled===!0&&i.qSkipRipple!==!0&&F(i,n.modifiers.keyCodes)===!0&&i.type===`key${n.modifiers.early===!0?"down":"up"}`&&W(i,e,n,!0)},300)};X(n,t),e.__qripple=n,_e(n,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&X(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),Re(t,"main"),delete e._qripple)}}),se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(se),Me={align:{type:String,validator:e=>Pe.includes(e)}};function Te(e){return a.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${se[t]}`})}function Oe(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){for(const o in t){const n=t[o],i=e[o];if(typeof n=="string"){if(n!==i)return!1}else if(Array.isArray(i)===!1||i.length!==n.length||n.some((d,c)=>d!==i[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function Ae(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(Ae(e[o],t[o])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function De({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=a.getCurrentInstance(),{props:n,proxy:i,emit:d}=o,c=Oe(o),l=a.computed(()=>n.disable!==!0&&n.href!==void 0),$=t===!0?a.computed(()=>c===!0&&n.disable!==!0&&l.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""):a.computed(()=>c===!0&&l.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""),g=a.computed(()=>$.value===!0?w(n.to):null),s=a.computed(()=>g.value!==null),h=a.computed(()=>l.value===!0||s.value===!0),u=a.computed(()=>n.type==="a"||h.value===!0?"a":n.tag||e||"div"),b=a.computed(()=>l.value===!0?{href:n.href,target:n.target}:s.value===!0?{href:g.value.href,target:n.target}:{}),p=a.computed(()=>{if(s.value===!1)return-1;const{matched:v}=g.value,{length:q}=v,E=v[q-1];if(E===void 0)return-1;const L=i.$route.matched;if(L.length===0)return-1;const _=L.findIndex(J.bind(null,E));if(_!==-1)return _;const I=Z(v[q-2]);return q>1&&Z(E)===I&&L[L.length-1].path!==I?L.findIndex(J.bind(null,v[q-2])):_}),y=a.computed(()=>s.value===!0&&p.value!==-1&&ze(i.$route.params,g.value.params)),f=a.computed(()=>y.value===!0&&p.value===i.$route.matched.length-1&&je(i.$route.params,g.value.params)),k=a.computed(()=>s.value===!0?f.value===!0?` ${n.exactActiveClass} ${n.activeClass}`:n.exact===!0?"":y.value===!0?` ${n.activeClass}`:"":"");function w(v){try{return i.$router.resolve(v)}catch{}return null}function S(v,{returnRouterError:q,to:E=n.to,replace:L=n.replace}={}){if(n.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||n.target==="_blank")return Promise.resolve(!1);v.preventDefault();const _=i.$router[L===!0?"replace":"push"](E);return q===!0?_:_.then(()=>{}).catch(()=>{})}function x(v){if(s.value===!0){const q=E=>S(v,E);d("click",v,q),v.defaultPrevented!==!0&&q()}else d("click",v)}return{hasRouterLink:s,hasHrefLink:l,hasLink:h,linkTag:u,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:w,navigateToRouterLink:S,navigateOnClick:x}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ke={xs:8,sm:10,md:14,lg:20,xl:24},Ne=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ue={...ae,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function Ge(e){const t=oe(e,Ke),o=Te(e),{hasRouterLink:n,hasLink:i,linkTag:d,linkAttrs:c,navigateOnClick:l}=De({fallbackTag:"button"}),$=a.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in te?te[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=a.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=a.computed(()=>e.disable!==!0&&e.loading!==!0),h=a.computed(()=>s.value===!0?e.tabindex||0:-1),u=a.computed(()=>Qe(e,"standard")),b=a.computed(()=>{const f={tabindex:h.value};return i.value===!0?Object.assign(f,c.value):Ne.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),n.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),p=a.computed(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const k=e.round===!0?"round":`rectangle${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),y=a.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:$,innerClasses:y,attributes:b,hasLink:i,linkTag:d,navigateOnClick:l,isActionable:s}}const{passiveCapture:C}=K;let M=null,T=null,O=null;const He=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:n}=a.getCurrentInstance(),{classes:i,style:d,innerClasses:c,attributes:l,hasLink:$,linkTag:g,navigateOnClick:s,isActionable:h}=Ge(e),u=a.ref(null),b=a.ref(null);let p=null,y,f=null;const k=a.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),w=a.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:$.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),S=a.computed(()=>({center:e.round})),x=a.computed(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),v=a.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(h.value===!0){const r={onClick:E,onKeydown:L,onMousedown:I};if(n.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=_}return r}return{onClick:P}}),q=a.computed(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:d.value,...l.value,...v.value}));function E(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const D=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",D,C),u.value!==null&&u.value.removeEventListener("blur",D,C)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",D,C),u.value.addEventListener("blur",D,C)}}s(r)}}function L(r){u.value!==null&&(o("keydown",r),F(r,[13,32])===!0&&T!==u.value&&(T!==null&&z(),r.defaultPrevented!==!0&&(u.value.focus(),T=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",B,!0),u.value.addEventListener("blur",B,C)),P(r)))}function _(r){u.value!==null&&(o("touchstart",r),r.defaultPrevented!==!0&&(M!==u.value&&(M!==null&&z(),M=u.value,p=r.target,p.addEventListener("touchcancel",B,C),p.addEventListener("touchend",B,C)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(r){u.value!==null&&(r.qSkipRipple=y===!0,o("mousedown",r),r.defaultPrevented!==!0&&O!==u.value&&(O!==null&&z(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",B,C)))}function B(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(T===u.value&&F(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&Le(m),r.cancelBubble===!0&&ue(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}o("keyup",r)}z()}}function z(r){const m=b.value;r!==!0&&(M===u.value||O===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),M===u.value&&(p!==null&&(p.removeEventListener("touchcancel",B,C),p.removeEventListener("touchend",B,C)),M=p=null),O===u.value&&(document.removeEventListener("mouseup",B,C),O=null),T===u.value&&(document.removeEventListener("keyup",B,!0),u.value!==null&&u.value.removeEventListener("blur",B,C),T=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function A(r){P(r),r.qSkipRipple=!0}return a.onBeforeUnmount(()=>{z(!0)}),Object.assign(n,{click:r=>{h.value===!0&&E(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(a.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&r.push(a.h("span",{class:"block"},[e.label])),r=j(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(a.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const m=[a.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.push(a.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[a.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),m.push(a.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},r)),e.loading!==null&&m.push(a.h(a.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[a.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[a.h(Ce)])]:null)),a.withDirectives(a.h(g.value,q.value,m),[[we,w.value,void 0,S.value]])}}}),We=a.defineComponent({__name:"index",props:{size:{default:R.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:ne.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,o=a.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===R.SM,"app-btn_md":t.size===R.MD,"app-btn_lg":t.size===R.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(n,i)=>(a.openBlock(),a.createBlock(a.unref(He),{"no-caps":"",unelevated:"",class:a.normalizeClass(o.value),padding:a.unref(de)[n.size||a.unref(R).MD],loading:n.loading,disabled:n.disabled||void 0,to:n.to,href:n.href,target:n.target,type:n.submit?"submit":void 0,"aria-label":n.ariaLabel,onClick:i[0]||(i[0]=d=>n.$emit("click",d))},{default:a.withCtx(()=>[n.iconLeft||n.iconMiddle?(a.openBlock(),a.createElementBlock("i",{key:0,class:a.normalizeClass(["icon-kl",n.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${n.iconLeft||n.iconMiddle}`,n.transparent||n.flat?`text-${n.color}`:"text-secondary"])},null,2)):a.createCommentVNode("",!0),a.renderSlot(n.$slots,"default",{},void 0,!0),n.iconRight?(a.openBlock(),a.createElementBlock("i",{key:1,class:a.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${n.iconRight}`,n.transparent?`text-${n.color}`:"text-secondary"])},null,2)):a.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),ce=(e,t)=>{const o=e.__vccOpts||e;for(const[n,i]of t)o[n]=i;return o},Xe=ce(We,[["__scopeId","data-v-8de6ba17"]]),Ze=a.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,o)=>(a.openBlock(),a.createElementBlock("i",{class:a.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:a.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),Je=ce(Ze,[["__scopeId","data-v-73419357"]]),et=a.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BLy5VJlc.cjs")));exports.AppButton=Xe;exports.AppButtonCopy=et;exports.COLORS=ne;exports.index=Je;