@validol4ik/uikit 0.2.2 → 0.2.4

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.
@@ -11,10 +11,7 @@ declare const __VLS_component: import('vue').DefineComponent<AppButtonProps, {},
11
11
  click: (...args: any[]) => void;
12
12
  }, string, import('vue').PublicProps, Readonly<AppButtonProps> & Readonly<{
13
13
  onClick?: ((...args: any[]) => any) | undefined;
14
- }>, {
15
- size: "sm" | "md" | "lg";
16
- color: import('../../types').Color;
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
16
  export default _default;
20
17
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
- import { AppButtonProps } from './AppButton/types';
1
+ import { ButtonPaddings } from './AppButton/types';
2
2
  declare const _default: {
3
- SM: AppButtonProps["size"];
4
- MD: AppButtonProps["size"];
5
- LG: AppButtonProps["size"];
3
+ SM: keyof typeof ButtonPaddings;
4
+ MD: keyof typeof ButtonPaddings;
5
+ LG: keyof typeof ButtonPaddings;
6
6
  };
7
7
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./index-7IDuiHaN.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},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},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-DQjVfHtn.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},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},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,5 +1,5 @@
1
- import { computed as u, markRaw as de, defineComponent as W, getCurrentInstance as X, h as v, ref as J, onBeforeUnmount as $e, Transition as Ee, withDirectives as qe, openBlock as K, createBlock as _e, unref as Q, normalizeClass as V, withCtx as Ce, createElementBlock as Y, createCommentVNode as ee, renderSlot as Le, normalizeStyle as xe, defineAsyncComponent as Re } from "vue";
2
- const j = {
1
+ import { computed as c, markRaw as de, defineComponent as X, getCurrentInstance as G, h as v, ref as J, onBeforeUnmount as $e, Transition as qe, withDirectives as _e, openBlock as V, createBlock as Ee, unref as P, normalizeClass as F, withCtx as xe, createElementBlock as Y, createCommentVNode as ee, renderSlot as Ce, normalizeStyle as Le, defineAsyncComponent as Re } from "vue";
2
+ const I = {
3
3
  SM: "sm",
4
4
  MD: "md",
5
5
  LG: "lg"
@@ -7,11 +7,8 @@ const j = {
7
7
  var fe = /* @__PURE__ */ ((e) => (e.sm = "3px 9px", e.md = "5px 12px", e.lg = "9px 20px", e))(fe || {});
8
8
  const Se = {
9
9
  PRIMARY: "primary",
10
- INFO: "info",
11
- ACCENT: "accent",
12
- NEGATIVE: "negative",
13
- POSITIVE: "positive"
14
- }, G = {
10
+ INFO: "info"
11
+ }, H = {
15
12
  xs: 18,
16
13
  sm: 24,
17
14
  md: 32,
@@ -20,11 +17,11 @@ const Se = {
20
17
  }, ve = {
21
18
  size: String
22
19
  };
23
- function me(e, t = G) {
24
- return u(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
20
+ function me(e, t = H) {
21
+ return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
25
22
  }
26
23
  function Z(e) {
27
- return de(W(e));
24
+ return de(X(e));
28
25
  }
29
26
  function we(e) {
30
27
  return de(e);
@@ -32,7 +29,7 @@ function we(e) {
32
29
  function Be(e, t) {
33
30
  return e !== void 0 && e() || t;
34
31
  }
35
- function I(e, t) {
32
+ function D(e, t) {
36
33
  return e !== void 0 ? t.concat(e()) : t;
37
34
  }
38
35
  const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
@@ -51,11 +48,11 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
51
48
  o_: "-outlined",
52
49
  r_: "-round",
53
50
  s_: "-sharp"
54
- }, he = {
51
+ }, be = {
55
52
  sym_o_: "-outlined",
56
53
  sym_r_: "-rounded",
57
54
  sym_s_: "-sharp"
58
- }, Pe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), Te = new RegExp("^(" + Object.keys(pe).join("|") + ")"), ae = new RegExp("^(" + Object.keys(he).join("|") + ")"), Me = /^[Mm]\s?[-+]?\.?\d/, Oe = /^img:/, Ae = /^svguse:/, ze = /^ion-/, je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
55
+ }, Pe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), Me = new RegExp("^(" + Object.keys(pe).join("|") + ")"), ae = new RegExp("^(" + Object.keys(be).join("|") + ")"), Te = /^[Mm]\s?[-+]?\.?\d/, Oe = /^img:/, Ae = /^svguse:/, ze = /^ion-/, je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = Z({
59
56
  name: "QIcon",
60
57
  props: {
61
58
  ...ve,
@@ -69,91 +66,91 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
69
66
  right: Boolean
70
67
  },
71
68
  setup(e, { slots: t }) {
72
- const { proxy: { $q: a } } = X(), n = me(e), i = u(
69
+ const { proxy: { $q: a } } = G(), n = me(e), o = c(
73
70
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
74
- ), d = u(() => {
75
- let c, o = e.name;
76
- if (o === "none" || !o)
71
+ ), l = c(() => {
72
+ let s, r = e.name;
73
+ if (r === "none" || !r)
77
74
  return { none: !0 };
78
75
  if (a.iconMapFn !== null) {
79
- const s = a.iconMapFn(o);
80
- if (s !== void 0)
81
- if (s.icon !== void 0) {
82
- if (o = s.icon, o === "none" || !o)
76
+ const d = a.iconMapFn(r);
77
+ if (d !== void 0)
78
+ if (d.icon !== void 0) {
79
+ if (r = d.icon, r === "none" || !r)
83
80
  return { none: !0 };
84
81
  } else
85
82
  return {
86
- cls: s.cls,
87
- content: s.content !== void 0 ? s.content : " "
83
+ cls: d.cls,
84
+ content: d.content !== void 0 ? d.content : " "
88
85
  };
89
86
  }
90
- if (Me.test(o) === !0) {
91
- const [s, b = te] = o.split("|");
87
+ if (Te.test(r) === !0) {
88
+ const [d, h = te] = r.split("|");
92
89
  return {
93
90
  svg: !0,
94
- viewBox: b,
95
- nodes: s.split("&&").map((l) => {
96
- const [y, p, k] = l.split("@@");
91
+ viewBox: h,
92
+ nodes: d.split("&&").map((u) => {
93
+ const [y, p, k] = u.split("@@");
97
94
  return v("path", { style: p, d: y, transform: k });
98
95
  })
99
96
  };
100
97
  }
101
- if (Oe.test(o) === !0)
98
+ if (Oe.test(r) === !0)
102
99
  return {
103
100
  img: !0,
104
- src: o.substring(4)
101
+ src: r.substring(4)
105
102
  };
106
- if (Ae.test(o) === !0) {
107
- const [s, b = te] = o.split("|");
103
+ if (Ae.test(r) === !0) {
104
+ const [d, h = te] = r.split("|");
108
105
  return {
109
106
  svguse: !0,
110
- src: s.substring(7),
111
- viewBox: b
107
+ src: d.substring(7),
108
+ viewBox: h
112
109
  };
113
110
  }
114
- let E = " ";
115
- const h = o.match(Pe);
116
- if (h !== null)
117
- c = ge[h[1]](o);
118
- else if (je.test(o) === !0)
119
- c = o;
120
- else if (ze.test(o) === !0)
121
- c = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${o.substring(3)}`;
122
- else if (ae.test(o) === !0) {
123
- c = "notranslate material-symbols";
124
- const s = o.match(ae);
125
- s !== null && (o = o.substring(6), c += he[s[1]]), E = o;
111
+ let q = " ";
112
+ const b = r.match(Pe);
113
+ if (b !== null)
114
+ s = ge[b[1]](r);
115
+ else if (je.test(r) === !0)
116
+ s = r;
117
+ else if (ze.test(r) === !0)
118
+ s = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${r.substring(3)}`;
119
+ else if (ae.test(r) === !0) {
120
+ s = "notranslate material-symbols";
121
+ const d = r.match(ae);
122
+ d !== null && (r = r.substring(6), s += be[d[1]]), q = r;
126
123
  } else {
127
- c = "notranslate material-icons";
128
- const s = o.match(Te);
129
- s !== null && (o = o.substring(2), c += pe[s[1]]), E = o;
124
+ s = "notranslate material-icons";
125
+ const d = r.match(Me);
126
+ d !== null && (r = r.substring(2), s += pe[d[1]]), q = r;
130
127
  }
131
128
  return {
132
- cls: c,
133
- content: E
129
+ cls: s,
130
+ content: q
134
131
  };
135
132
  });
136
133
  return () => {
137
- const c = {
138
- class: i.value,
134
+ const s = {
135
+ class: o.value,
139
136
  style: n.value,
140
137
  "aria-hidden": "true",
141
138
  role: "presentation"
142
139
  };
143
- return d.value.none === !0 ? v(e.tag, c, Be(t.default)) : d.value.img === !0 ? v(e.tag, c, I(t.default, [
144
- v("img", { src: d.value.src })
145
- ])) : d.value.svg === !0 ? v(e.tag, c, I(t.default, [
140
+ return l.value.none === !0 ? v(e.tag, s, Be(t.default)) : l.value.img === !0 ? v(e.tag, s, D(t.default, [
141
+ v("img", { src: l.value.src })
142
+ ])) : l.value.svg === !0 ? v(e.tag, s, D(t.default, [
146
143
  v("svg", {
147
- viewBox: d.value.viewBox || "0 0 24 24"
148
- }, d.value.nodes)
149
- ])) : d.value.svguse === !0 ? v(e.tag, c, I(t.default, [
144
+ viewBox: l.value.viewBox || "0 0 24 24"
145
+ }, l.value.nodes)
146
+ ])) : l.value.svguse === !0 ? v(e.tag, s, D(t.default, [
150
147
  v("svg", {
151
- viewBox: d.value.viewBox
148
+ viewBox: l.value.viewBox
152
149
  }, [
153
- v("use", { "xlink:href": d.value.src })
150
+ v("use", { "xlink:href": l.value.src })
154
151
  ])
155
- ])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c, I(t.default, [
156
- d.value.content
152
+ ])) : (l.value.cls !== void 0 && (s.class += " " + l.value.cls), v(e.tag, s, D(t.default, [
153
+ l.value.content
157
154
  ])));
158
155
  };
159
156
  }
@@ -164,15 +161,15 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
164
161
  },
165
162
  color: String
166
163
  };
167
- function Ne(e) {
164
+ function De(e) {
168
165
  return {
169
- cSize: u(() => e.size in G ? `${G[e.size]}px` : e.size),
170
- classes: u(
166
+ cSize: c(() => e.size in H ? `${H[e.size]}px` : e.size),
167
+ classes: c(
171
168
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
172
169
  )
173
170
  };
174
171
  }
175
- const De = Z({
172
+ const Ke = Z({
176
173
  name: "QSpinner",
177
174
  props: {
178
175
  ...Ie,
@@ -182,7 +179,7 @@ const De = Z({
182
179
  }
183
180
  },
184
181
  setup(e) {
185
- const { cSize: t, classes: a } = Ne(e);
182
+ const { cSize: t, classes: a } = De(e);
186
183
  return () => v("svg", {
187
184
  class: a.value + " q-spinner-mat",
188
185
  width: t.value,
@@ -202,12 +199,12 @@ const De = Z({
202
199
  ]);
203
200
  }
204
201
  });
205
- function Ke(e, t) {
202
+ function Ne(e, t) {
206
203
  const a = e.style;
207
204
  for (const n in t)
208
205
  a[n] = t[n];
209
206
  }
210
- const F = {
207
+ const Q = {
211
208
  hasPassive: !1,
212
209
  passiveCapture: !0,
213
210
  notPassiveCapture: !0
@@ -215,7 +212,7 @@ const F = {
215
212
  try {
216
213
  const e = Object.defineProperty({}, "passive", {
217
214
  get() {
218
- Object.assign(F, {
215
+ Object.assign(Q, {
219
216
  hasPassive: !0,
220
217
  passive: { passive: !0 },
221
218
  notPassive: { passive: !1 },
@@ -233,34 +230,34 @@ function Ve(e) {
233
230
  left: e.clientX
234
231
  };
235
232
  }
236
- function be(e) {
233
+ function he(e) {
237
234
  e.stopPropagation();
238
235
  }
239
236
  function Fe(e) {
240
237
  e.cancelable !== !1 && e.preventDefault();
241
238
  }
242
- function P(e) {
239
+ function M(e) {
243
240
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
244
241
  }
245
242
  function Qe(e, t, a) {
246
243
  const n = `__q_${t}_evt`;
247
- e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((i) => {
248
- i[0].addEventListener(i[1], e[i[2]], F[i[3]]);
244
+ e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((o) => {
245
+ o[0].addEventListener(o[1], e[o[2]], Q[o[3]]);
249
246
  });
250
247
  }
251
248
  function Ue(e, t) {
252
249
  const a = `__q_${t}_evt`;
253
250
  e[a] !== void 0 && (e[a].forEach((n) => {
254
- n[0].removeEventListener(n[1], e[n[2]], F[n[3]]);
251
+ n[0].removeEventListener(n[1], e[n[2]], Q[n[3]]);
255
252
  }), e[a] = void 0);
256
253
  }
257
254
  function Ye(e) {
258
255
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
259
256
  }
260
- function H(e, t) {
257
+ function W(e, t) {
261
258
  return Ye(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
262
259
  }
263
- function Ge(e, t = 250) {
260
+ function He(e, t = 250) {
264
261
  let a = !1, n;
265
262
  return function() {
266
263
  return a === !1 && (a = !0, setTimeout(() => {
@@ -269,40 +266,40 @@ function Ge(e, t = 250) {
269
266
  };
270
267
  }
271
268
  function ie(e, t, a, n) {
272
- a.modifiers.stop === !0 && be(e);
273
- const i = a.modifiers.color;
274
- let d = a.modifiers.center;
275
- d = d === !0 || n === !0;
276
- const c = document.createElement("span"), o = document.createElement("span"), E = Ve(e), { left: h, top: s, width: b, height: l } = t.getBoundingClientRect(), y = Math.sqrt(b * b + l * l), p = y / 2, k = `${(b - y) / 2}px`, f = d ? k : `${E.left - h - p}px`, $ = `${(l - y) / 2}px`, B = d ? $ : `${E.top - s - p}px`;
277
- o.className = "q-ripple__inner", Ke(o, {
269
+ a.modifiers.stop === !0 && he(e);
270
+ const o = a.modifiers.color;
271
+ let l = a.modifiers.center;
272
+ l = l === !0 || n === !0;
273
+ const s = document.createElement("span"), r = document.createElement("span"), q = Ve(e), { left: b, top: d, width: h, height: u } = t.getBoundingClientRect(), y = Math.sqrt(h * h + u * u), p = y / 2, k = `${(h - y) / 2}px`, f = l ? k : `${q.left - b - p}px`, $ = `${(u - y) / 2}px`, B = l ? $ : `${q.top - d - p}px`;
274
+ r.className = "q-ripple__inner", Ne(r, {
278
275
  height: `${y}px`,
279
276
  width: `${y}px`,
280
277
  transform: `translate3d(${f},${B},0) scale3d(.2,.2,1)`,
281
278
  opacity: 0
282
- }), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(o), t.appendChild(c);
279
+ }), s.className = `q-ripple${o ? " text-" + o : ""}`, s.setAttribute("dir", "ltr"), s.appendChild(r), t.appendChild(s);
283
280
  const S = () => {
284
- c.remove(), clearTimeout(w);
281
+ s.remove(), clearTimeout(w);
285
282
  };
286
283
  a.abort.push(S);
287
284
  let w = setTimeout(() => {
288
- o.classList.add("q-ripple__inner--enter"), o.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, o.style.opacity = 0.2, w = setTimeout(() => {
289
- o.classList.remove("q-ripple__inner--enter"), o.classList.add("q-ripple__inner--leave"), o.style.opacity = 0, w = setTimeout(() => {
290
- c.remove(), a.abort.splice(a.abort.indexOf(S), 1);
285
+ r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, r.style.opacity = 0.2, w = setTimeout(() => {
286
+ r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, w = setTimeout(() => {
287
+ s.remove(), a.abort.splice(a.abort.indexOf(S), 1);
291
288
  }, 275);
292
289
  }, 250);
293
290
  }, 50);
294
291
  }
295
292
  function oe(e, { modifiers: t, value: a, arg: n }) {
296
- const i = Object.assign({}, e.cfg.ripple, t, a);
293
+ const o = Object.assign({}, e.cfg.ripple, t, a);
297
294
  e.modifiers = {
298
- early: i.early === !0,
299
- stop: i.stop === !0,
300
- center: i.center === !0,
301
- color: i.color || n,
302
- keyCodes: [].concat(i.keyCodes || 13)
295
+ early: o.early === !0,
296
+ stop: o.stop === !0,
297
+ center: o.center === !0,
298
+ color: o.color || n,
299
+ keyCodes: [].concat(o.keyCodes || 13)
303
300
  };
304
301
  }
305
- const He = we(
302
+ const We = we(
306
303
  {
307
304
  name: "ripple",
308
305
  beforeMount(e, t) {
@@ -314,11 +311,11 @@ const He = we(
314
311
  enabled: t.value !== !1,
315
312
  modifiers: {},
316
313
  abort: [],
317
- start(i) {
318
- n.enabled === !0 && i.qSkipRipple !== !0 && i.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ie(i, e, n, i.qKeyEvent === !0);
314
+ start(o) {
315
+ n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ie(o, e, n, o.qKeyEvent === !0);
319
316
  },
320
- keystart: Ge((i) => {
321
- 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);
317
+ keystart: He((o) => {
318
+ n.enabled === !0 && o.qSkipRipple !== !0 && W(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(o, e, n, !0);
322
319
  }, 300)
323
320
  };
324
321
  oe(n, t), e.__qripple = n, Qe(n, "main", [
@@ -349,14 +346,14 @@ const He = we(
349
346
  around: "around",
350
347
  evenly: "evenly",
351
348
  stretch: "stretch"
352
- }, We = Object.keys(ye), Xe = {
349
+ }, Xe = Object.keys(ye), Ge = {
353
350
  align: {
354
351
  type: String,
355
- validator: (e) => We.includes(e)
352
+ validator: (e) => Xe.includes(e)
356
353
  }
357
354
  };
358
355
  function Ze(e) {
359
- return u(() => {
356
+ return c(() => {
360
357
  const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
361
358
  return `${e.vertical === !0 ? "items" : "justify"}-${ye[t]}`;
362
359
  });
@@ -372,11 +369,11 @@ function ue(e, t) {
372
369
  }
373
370
  function et(e, t) {
374
371
  for (const a in t) {
375
- const n = t[a], i = e[a];
372
+ const n = t[a], o = e[a];
376
373
  if (typeof n == "string") {
377
- if (n !== i)
374
+ if (n !== o)
378
375
  return !1;
379
- } else if (Array.isArray(i) === !1 || i.length !== n.length || n.some((d, c) => d !== i[c]))
376
+ } else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((l, s) => l !== o[s]))
380
377
  return !1;
381
378
  }
382
379
  return !0;
@@ -406,50 +403,50 @@ const at = {
406
403
  disable: Boolean
407
404
  };
408
405
  function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
409
- const a = X(), { props: n, proxy: i, emit: d } = a, c = Je(a), o = u(() => n.disable !== !0 && n.href !== void 0), E = t === !0 ? u(
410
- () => c === !0 && n.disable !== !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
411
- ) : u(
412
- () => c === !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
413
- ), h = u(() => E.value === !0 ? B(n.to) : null), s = u(() => h.value !== null), b = u(() => o.value === !0 || s.value === !0), l = u(() => n.type === "a" || b.value === !0 ? "a" : n.tag || e || "div"), y = u(() => o.value === !0 ? {
406
+ const a = G(), { props: n, proxy: o, emit: l } = a, s = Je(a), r = c(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? c(
407
+ () => s === !0 && n.disable !== !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
408
+ ) : c(
409
+ () => s === !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
410
+ ), b = c(() => q.value === !0 ? B(n.to) : null), d = c(() => b.value !== null), h = c(() => r.value === !0 || d.value === !0), u = c(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = c(() => r.value === !0 ? {
414
411
  href: n.href,
415
412
  target: n.target
416
- } : s.value === !0 ? {
417
- href: h.value.href,
413
+ } : d.value === !0 ? {
414
+ href: b.value.href,
418
415
  target: n.target
419
- } : {}), p = u(() => {
420
- if (s.value === !1)
416
+ } : {}), p = c(() => {
417
+ if (d.value === !1)
421
418
  return -1;
422
- const { matched: m } = h.value, { length: q } = m, C = m[q - 1];
423
- if (C === void 0)
419
+ const { matched: m } = b.value, { length: _ } = m, x = m[_ - 1];
420
+ if (x === void 0)
424
421
  return -1;
425
- const x = i.$route.matched;
426
- if (x.length === 0)
422
+ const L = o.$route.matched;
423
+ if (L.length === 0)
427
424
  return -1;
428
- const R = x.findIndex(
429
- ue.bind(null, C)
425
+ const R = L.findIndex(
426
+ ue.bind(null, x)
430
427
  );
431
428
  if (R !== -1)
432
429
  return R;
433
- const N = le(m[q - 2]);
430
+ const K = le(m[_ - 2]);
434
431
  return (
435
432
  // we are dealing with nested routes
436
- q > 1 && le(C) === N && x[x.length - 1].path !== N ? x.findIndex(
437
- ue.bind(null, m[q - 2])
433
+ _ > 1 && le(x) === K && L[L.length - 1].path !== K ? L.findIndex(
434
+ ue.bind(null, m[_ - 2])
438
435
  ) : R
439
436
  );
440
- }), k = u(
441
- () => s.value === !0 && p.value !== -1 && et(i.$route.params, h.value.params)
442
- ), f = u(
443
- () => k.value === !0 && p.value === i.$route.matched.length - 1 && nt(i.$route.params, h.value.params)
444
- ), $ = u(() => s.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
437
+ }), k = c(
438
+ () => d.value === !0 && p.value !== -1 && et(o.$route.params, b.value.params)
439
+ ), f = c(
440
+ () => k.value === !0 && p.value === o.$route.matched.length - 1 && nt(o.$route.params, b.value.params)
441
+ ), $ = c(() => d.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
445
442
  function B(m) {
446
443
  try {
447
- return i.$router.resolve(m);
444
+ return o.$router.resolve(m);
448
445
  } catch {
449
446
  }
450
447
  return null;
451
448
  }
452
- function S(m, { returnRouterError: q, to: C = n.to, replace: x = n.replace } = {}) {
449
+ function S(m, { returnRouterError: _, to: x = n.to, replace: L = n.replace } = {}) {
453
450
  if (n.disable === !0)
454
451
  return m.preventDefault(), Promise.resolve(!1);
455
452
  if (
@@ -459,24 +456,24 @@ function rt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
459
456
  )
460
457
  return Promise.resolve(!1);
461
458
  m.preventDefault();
462
- const R = i.$router[x === !0 ? "replace" : "push"](C);
463
- return q === !0 ? R : R.then(() => {
459
+ const R = o.$router[L === !0 ? "replace" : "push"](x);
460
+ return _ === !0 ? R : R.then(() => {
464
461
  }).catch(() => {
465
462
  });
466
463
  }
467
464
  function w(m) {
468
- if (s.value === !0) {
469
- const q = (C) => S(m, C);
470
- d("click", m, q), m.defaultPrevented !== !0 && q();
465
+ if (d.value === !0) {
466
+ const _ = (x) => S(m, x);
467
+ l("click", m, _), m.defaultPrevented !== !0 && _();
471
468
  } else
472
- d("click", m);
469
+ l("click", m);
473
470
  }
474
471
  return {
475
- hasRouterLink: s,
476
- hasHrefLink: o,
477
- hasLink: b,
478
- linkTag: l,
479
- resolvedLink: h,
472
+ hasRouterLink: d,
473
+ hasHrefLink: r,
474
+ hasLink: h,
475
+ linkTag: u,
476
+ resolvedLink: b,
480
477
  linkIsActive: k,
481
478
  linkIsExactActive: f,
482
479
  linkClass: $,
@@ -535,7 +532,7 @@ const ct = {
535
532
  default: !0
536
533
  },
537
534
  align: {
538
- ...Xe.align,
535
+ ...Ge.align,
539
536
  default: "center"
540
537
  },
541
538
  stack: Boolean,
@@ -550,48 +547,48 @@ const ct = {
550
547
  round: Boolean
551
548
  };
552
549
  function ft(e) {
553
- const t = me(e, it), a = Ze(e), { hasRouterLink: n, hasLink: i, linkTag: d, linkAttrs: c, navigateOnClick: o } = rt({
550
+ const t = me(e, it), a = Ze(e), { hasRouterLink: n, hasLink: o, linkTag: l, linkAttrs: s, navigateOnClick: r } = rt({
554
551
  fallbackTag: "button"
555
- }), E = u(() => {
552
+ }), q = c(() => {
556
553
  const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
557
554
  return e.padding !== void 0 ? Object.assign({}, f, {
558
555
  padding: e.padding.split(/\s+/).map(($) => $ in ce ? ce[$] + "px" : $).join(" "),
559
556
  minWidth: "0",
560
557
  minHeight: "0"
561
558
  }) : f;
562
- }), h = u(
559
+ }), b = c(
563
560
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
564
- ), s = u(
561
+ ), d = c(
565
562
  () => e.disable !== !0 && e.loading !== !0
566
- ), b = u(() => s.value === !0 ? e.tabindex || 0 : -1), l = u(() => st(e, "standard")), y = u(() => {
567
- const f = { tabindex: b.value };
568
- 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, {
563
+ ), h = c(() => d.value === !0 ? e.tabindex || 0 : -1), u = c(() => st(e, "standard")), y = c(() => {
564
+ const f = { tabindex: h.value };
565
+ return o.value === !0 ? Object.assign(f, s.value) : ot.includes(e.type) === !0 && (f.type = e.type), l.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, {
569
566
  role: "progressbar",
570
567
  "aria-valuemin": 0,
571
568
  "aria-valuemax": 100,
572
569
  "aria-valuenow": e.percentage
573
570
  }), f;
574
- }), p = u(() => {
571
+ }), p = c(() => {
575
572
  let f;
576
573
  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}`);
577
- const $ = e.round === !0 ? "round" : `rectangle${h.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
578
- 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" : "");
579
- }), k = u(
574
+ const $ = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
575
+ return `q-btn--${u.value} q-btn--${$}` + (f !== void 0 ? " " + f : "") + (d.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" : "");
576
+ }), k = c(
580
577
  () => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
581
578
  );
582
579
  return {
583
580
  classes: p,
584
- style: E,
581
+ style: q,
585
582
  innerClasses: k,
586
583
  attributes: y,
587
- hasLink: i,
588
- linkTag: d,
589
- navigateOnClick: o,
590
- isActionable: s
584
+ hasLink: o,
585
+ linkTag: l,
586
+ navigateOnClick: r,
587
+ isActionable: d
591
588
  };
592
589
  }
593
- const { passiveCapture: _ } = F;
594
- let T = null, M = null, O = null;
590
+ const { passiveCapture: E } = Q;
591
+ let T = null, O = null, A = null;
595
592
  const vt = Z({
596
593
  name: "QBtn",
597
594
  props: {
@@ -602,121 +599,121 @@ const vt = Z({
602
599
  },
603
600
  emits: ["click", "keydown", "mousedown", "keyup"],
604
601
  setup(e, { slots: t, emit: a }) {
605
- const { proxy: n } = X(), {
606
- classes: i,
607
- style: d,
608
- innerClasses: c,
609
- attributes: o,
610
- hasLink: E,
611
- linkTag: h,
612
- navigateOnClick: s,
613
- isActionable: b
614
- } = ft(e), l = J(null), y = J(null);
602
+ const { proxy: n } = G(), {
603
+ classes: o,
604
+ style: l,
605
+ innerClasses: s,
606
+ attributes: r,
607
+ hasLink: q,
608
+ linkTag: b,
609
+ navigateOnClick: d,
610
+ isActionable: h
611
+ } = ft(e), u = J(null), y = J(null);
615
612
  let p = null, k, f = null;
616
- const $ = u(
613
+ const $ = c(
617
614
  () => e.label !== void 0 && e.label !== null && e.label !== ""
618
- ), B = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
619
- keyCodes: E.value === !0 ? [13, 32] : [13],
615
+ ), B = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
616
+ keyCodes: q.value === !0 ? [13, 32] : [13],
620
617
  ...e.ripple === !0 ? {} : e.ripple
621
- }), S = u(() => ({ center: e.round })), w = u(() => {
622
- const r = Math.max(0, Math.min(100, e.percentage));
623
- return r > 0 ? { transition: "transform 0.6s", transform: `translateX(${r - 100}%)` } : {};
624
- }), m = u(() => {
618
+ }), S = c(() => ({ center: e.round })), w = c(() => {
619
+ const i = Math.max(0, Math.min(100, e.percentage));
620
+ return i > 0 ? { transition: "transform 0.6s", transform: `translateX(${i - 100}%)` } : {};
621
+ }), m = c(() => {
625
622
  if (e.loading === !0)
626
623
  return {
627
- onMousedown: z,
628
- onTouchstart: z,
629
- onClick: z,
630
- onKeydown: z,
631
- onKeyup: z
624
+ onMousedown: j,
625
+ onTouchstart: j,
626
+ onClick: j,
627
+ onKeydown: j,
628
+ onKeyup: j
632
629
  };
633
- if (b.value === !0) {
634
- const r = {
635
- onClick: C,
636
- onKeydown: x,
637
- onMousedown: N
630
+ if (h.value === !0) {
631
+ const i = {
632
+ onClick: x,
633
+ onKeydown: L,
634
+ onMousedown: K
638
635
  };
639
636
  if (n.$q.platform.has.touch === !0) {
640
637
  const g = e.onTouchstart !== void 0 ? "" : "Passive";
641
- r[`onTouchstart${g}`] = R;
638
+ i[`onTouchstart${g}`] = R;
642
639
  }
643
- return r;
640
+ return i;
644
641
  }
645
642
  return {
646
643
  // needed; especially for disabled <a> tags
647
- onClick: P
644
+ onClick: M
648
645
  };
649
- }), q = u(() => ({
650
- ref: l,
651
- class: "q-btn q-btn-item non-selectable no-outline " + i.value,
652
- style: d.value,
653
- ...o.value,
646
+ }), _ = c(() => ({
647
+ ref: u,
648
+ class: "q-btn q-btn-item non-selectable no-outline " + o.value,
649
+ style: l.value,
650
+ ...r.value,
654
651
  ...m.value
655
652
  }));
656
- function C(r) {
657
- if (l.value !== null) {
658
- if (r !== void 0) {
659
- if (r.defaultPrevented === !0)
653
+ function x(i) {
654
+ if (u.value !== null) {
655
+ if (i !== void 0) {
656
+ if (i.defaultPrevented === !0)
660
657
  return;
661
658
  const g = document.activeElement;
662
- if (e.type === "submit" && g !== document.body && l.value.contains(g) === !1 && g.contains(l.value) === !1) {
663
- l.value.focus();
664
- const D = () => {
665
- document.removeEventListener("keydown", P, !0), document.removeEventListener("keyup", D, _), l.value !== null && l.value.removeEventListener("blur", D, _);
659
+ if (e.type === "submit" && g !== document.body && u.value.contains(g) === !1 && g.contains(u.value) === !1) {
660
+ u.value.focus();
661
+ const N = () => {
662
+ document.removeEventListener("keydown", M, !0), document.removeEventListener("keyup", N, E), u.value !== null && u.value.removeEventListener("blur", N, E);
666
663
  };
667
- document.addEventListener("keydown", P, !0), document.addEventListener("keyup", D, _), l.value.addEventListener("blur", D, _);
664
+ document.addEventListener("keydown", M, !0), document.addEventListener("keyup", N, E), u.value.addEventListener("blur", N, E);
668
665
  }
669
666
  }
670
- s(r);
667
+ d(i);
671
668
  }
672
669
  }
673
- function x(r) {
674
- l.value !== null && (a("keydown", r), H(r, [13, 32]) === !0 && M !== l.value && (M !== null && A(), r.defaultPrevented !== !0 && (l.value.focus(), M = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", L, !0), l.value.addEventListener("blur", L, _)), P(r)));
670
+ function L(i) {
671
+ u.value !== null && (a("keydown", i), W(i, [13, 32]) === !0 && O !== u.value && (O !== null && z(), i.defaultPrevented !== !0 && (u.value.focus(), O = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("keyup", C, !0), u.value.addEventListener("blur", C, E)), M(i)));
675
672
  }
676
- function R(r) {
677
- l.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== l.value && (T !== null && A(), T = l.value, p = r.target, p.addEventListener("touchcancel", L, _), p.addEventListener("touchend", L, _)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
673
+ function R(i) {
674
+ u.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (T !== u.value && (T !== null && z(), T = u.value, p = i.target, p.addEventListener("touchcancel", C, E), p.addEventListener("touchend", C, E)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
678
675
  f = null, k = !1;
679
676
  }, 200)));
680
677
  }
681
- function N(r) {
682
- l.value !== null && (r.qSkipRipple = k === !0, a("mousedown", r), r.defaultPrevented !== !0 && O !== l.value && (O !== null && A(), O = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("mouseup", L, _)));
678
+ function K(i) {
679
+ u.value !== null && (i.qSkipRipple = k === !0, a("mousedown", i), i.defaultPrevented !== !0 && A !== u.value && (A !== null && z(), A = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("mouseup", C, E)));
683
680
  }
684
- function L(r) {
685
- if (l.value !== null && !(r !== void 0 && r.type === "blur" && document.activeElement === l.value)) {
686
- if (r !== void 0 && r.type === "keyup") {
687
- if (M === l.value && H(r, [13, 32]) === !0) {
688
- const g = new MouseEvent("click", r);
689
- g.qKeyEvent = !0, r.defaultPrevented === !0 && Fe(g), r.cancelBubble === !0 && be(g), l.value.dispatchEvent(g), P(r), r.qKeyEvent = !0;
681
+ function C(i) {
682
+ if (u.value !== null && !(i !== void 0 && i.type === "blur" && document.activeElement === u.value)) {
683
+ if (i !== void 0 && i.type === "keyup") {
684
+ if (O === u.value && W(i, [13, 32]) === !0) {
685
+ const g = new MouseEvent("click", i);
686
+ g.qKeyEvent = !0, i.defaultPrevented === !0 && Fe(g), i.cancelBubble === !0 && he(g), u.value.dispatchEvent(g), M(i), i.qKeyEvent = !0;
690
687
  }
691
- a("keyup", r);
688
+ a("keyup", i);
692
689
  }
693
- A();
690
+ z();
694
691
  }
695
692
  }
696
- function A(r) {
693
+ function z(i) {
697
694
  const g = y.value;
698
- r !== !0 && (T === l.value || O === l.value) && g !== null && g !== document.activeElement && (g.setAttribute("tabindex", -1), g.focus()), T === l.value && (p !== null && (p.removeEventListener("touchcancel", L, _), p.removeEventListener("touchend", L, _)), T = p = null), O === l.value && (document.removeEventListener("mouseup", L, _), O = null), M === l.value && (document.removeEventListener("keyup", L, !0), l.value !== null && l.value.removeEventListener("blur", L, _), M = null), l.value !== null && l.value.classList.remove("q-btn--active");
695
+ i !== !0 && (T === u.value || A === u.value) && g !== null && g !== document.activeElement && (g.setAttribute("tabindex", -1), g.focus()), T === u.value && (p !== null && (p.removeEventListener("touchcancel", C, E), p.removeEventListener("touchend", C, E)), T = p = null), A === u.value && (document.removeEventListener("mouseup", C, E), A = null), O === u.value && (document.removeEventListener("keyup", C, !0), u.value !== null && u.value.removeEventListener("blur", C, E), O = null), u.value !== null && u.value.classList.remove("q-btn--active");
699
696
  }
700
- function z(r) {
701
- P(r), r.qSkipRipple = !0;
697
+ function j(i) {
698
+ M(i), i.qSkipRipple = !0;
702
699
  }
703
700
  return $e(() => {
704
- A(!0);
701
+ z(!0);
705
702
  }), Object.assign(n, {
706
- click: (r) => {
707
- b.value === !0 && C(r);
703
+ click: (i) => {
704
+ h.value === !0 && x(i);
708
705
  }
709
706
  }), () => {
710
- let r = [];
711
- e.icon !== void 0 && r.push(
707
+ let i = [];
708
+ e.icon !== void 0 && i.push(
712
709
  v(re, {
713
710
  name: e.icon,
714
711
  left: e.stack !== !0 && $.value === !0,
715
712
  role: "img"
716
713
  })
717
- ), $.value === !0 && r.push(
714
+ ), $.value === !0 && i.push(
718
715
  v("span", { class: "block" }, [e.label])
719
- ), r = I(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
716
+ ), i = D(t.default, i), e.iconRight !== void 0 && e.round === !1 && i.push(
720
717
  v(re, {
721
718
  name: e.iconRight,
722
719
  right: e.stack !== !0 && $.value === !0,
@@ -740,25 +737,25 @@ const vt = Z({
740
737
  ])
741
738
  ), g.push(
742
739
  v("span", {
743
- class: "q-btn__content text-center col items-center q-anchor--skip " + c.value
744
- }, r)
740
+ class: "q-btn__content text-center col items-center q-anchor--skip " + s.value
741
+ }, i)
745
742
  ), e.loading !== null && g.push(
746
- v(Ee, {
743
+ v(qe, {
747
744
  name: "q-transition--fade"
748
745
  }, () => e.loading === !0 ? [
749
746
  v("span", {
750
747
  key: "loading",
751
748
  class: "absolute-full flex flex-center"
752
- }, t.loading !== void 0 ? t.loading() : [v(De)])
749
+ }, t.loading !== void 0 ? t.loading() : [v(Ke)])
753
750
  ] : null)
754
- ), qe(
751
+ ), _e(
755
752
  v(
756
- h.value,
757
- q.value,
753
+ b.value,
754
+ _.value,
758
755
  g
759
756
  ),
760
757
  [[
761
- He,
758
+ We,
762
759
  B.value,
763
760
  void 0,
764
761
  S.value
@@ -766,13 +763,13 @@ const vt = Z({
766
763
  );
767
764
  };
768
765
  }
769
- }), mt = /* @__PURE__ */ W({
766
+ }), mt = /* @__PURE__ */ X({
770
767
  __name: "index",
771
768
  props: {
772
- size: { default: j.MD },
769
+ size: {},
773
770
  transparent: { type: Boolean },
774
771
  rounded: { type: Boolean },
775
- color: { default: Se.PRIMARY },
772
+ color: {},
776
773
  iconLeft: {},
777
774
  iconRight: {},
778
775
  iconMiddle: {},
@@ -786,53 +783,53 @@ const vt = Z({
786
783
  },
787
784
  emits: ["click"],
788
785
  setup(e) {
789
- const t = e, a = u(() => [
786
+ const t = e, { size: a = I.MD, color: n = Se.PRIMARY } = t, o = c(() => [
790
787
  "app-btn",
791
788
  {
792
789
  "app-btn_default": !t.transparent,
793
790
  "app-btn_trans": t.transparent,
794
791
  "app-btn_rounded": t.rounded,
795
- "app-btn_sm": t.size === j.SM,
796
- "app-btn_md": t.size === j.MD,
797
- "app-btn_lg": t.size === j.LG,
792
+ "app-btn_sm": a === I.SM,
793
+ "app-btn_md": a === I.MD,
794
+ "app-btn_lg": a === I.LG,
798
795
  "app-btn_icon-left": t.iconLeft,
799
796
  "app-btn_icon-right": t.iconRight,
800
797
  "app-btn_icon-middle": t.iconMiddle
801
798
  },
802
- `app-btn_${t.color}`
799
+ `app-btn_${n}`
803
800
  ]);
804
- return (n, i) => (K(), _e(Q(vt), {
801
+ return (l, s) => (V(), Ee(P(vt), {
805
802
  "no-caps": "",
806
803
  unelevated: "",
807
- class: V(a.value),
808
- padding: Q(fe)[t.size || Q(j).MD],
809
- loading: n.loading,
810
- disabled: n.disabled || void 0,
811
- to: n.to,
812
- href: n.href,
813
- target: n.target,
814
- type: n.submit ? "submit" : void 0,
815
- "aria-label": n.ariaLabel,
816
- onClick: i[0] || (i[0] = (d) => n.$emit("click", d))
804
+ class: F(o.value),
805
+ padding: P(fe)[P(a) || P(I).MD],
806
+ loading: l.loading,
807
+ disabled: l.disabled || void 0,
808
+ to: l.to,
809
+ href: l.href,
810
+ target: l.target,
811
+ type: l.submit ? "submit" : void 0,
812
+ "aria-label": l.ariaLabel,
813
+ onClick: s[0] || (s[0] = (r) => l.$emit("click", r))
817
814
  }, {
818
- default: Ce(() => [
819
- n.iconLeft || n.iconMiddle ? (K(), Y("i", {
815
+ default: xe(() => [
816
+ l.iconLeft || l.iconMiddle ? (V(), Y("i", {
820
817
  key: 0,
821
- class: V([
818
+ class: F([
822
819
  "icon-kl",
823
- n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
824
- `icon-kl-${n.iconLeft || n.iconMiddle}`,
825
- n.transparent ? `text-${n.color}` : "text-secondary"
820
+ l.iconLeft ? "icon-kl_left" : "icon-kl_middle",
821
+ `icon-kl-${l.iconLeft || l.iconMiddle}`,
822
+ l.transparent ? `text-${P(n)}` : "text-secondary"
826
823
  ])
827
824
  }, null, 2)) : ee("", !0),
828
- Le(n.$slots, "default", {}, void 0, !0),
829
- n.iconRight ? (K(), Y("i", {
825
+ Ce(l.$slots, "default", {}, void 0, !0),
826
+ l.iconRight ? (V(), Y("i", {
830
827
  key: 1,
831
- class: V([
828
+ class: F([
832
829
  "icon-kl",
833
830
  "icon-kl_right",
834
- `icon-kl-${n.iconRight}`,
835
- n.transparent ? `text-${n.color}` : "text-secondary"
831
+ `icon-kl-${l.iconRight}`,
832
+ l.transparent ? `text-${P(n)}` : "text-secondary"
836
833
  ])
837
834
  }, null, 2)) : ee("", !0)
838
835
  ]),
@@ -841,10 +838,10 @@ const vt = Z({
841
838
  }
842
839
  }), ke = (e, t) => {
843
840
  const a = e.__vccOpts || e;
844
- for (const [n, i] of t)
845
- a[n] = i;
841
+ for (const [n, o] of t)
842
+ a[n] = o;
846
843
  return a;
847
- }, ht = /* @__PURE__ */ ke(mt, [["__scopeId", "data-v-16e02783"]]), gt = /* @__PURE__ */ W({
844
+ }, bt = /* @__PURE__ */ ke(mt, [["__scopeId", "data-v-42f3b7cf"]]), gt = /* @__PURE__ */ X({
848
845
  __name: "index",
849
846
  props: {
850
847
  name: {},
@@ -852,17 +849,17 @@ const vt = Z({
852
849
  color: {}
853
850
  },
854
851
  setup(e) {
855
- return (t, a) => (K(), Y("i", {
856
- class: V(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
857
- style: xe(t.size ? `font-size: ${t.size}` : void 0)
852
+ return (t, a) => (V(), Y("i", {
853
+ class: F(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
854
+ style: Le(t.size ? `font-size: ${t.size}` : void 0)
858
855
  }, null, 6));
859
856
  }
860
- }), bt = /* @__PURE__ */ ke(gt, [["__scopeId", "data-v-73419357"]]), yt = Re(
861
- () => import("./index-DKPlHok-.js")
857
+ }), ht = /* @__PURE__ */ ke(gt, [["__scopeId", "data-v-73419357"]]), yt = Re(
858
+ () => import("./index-qLVhfsl_.js")
862
859
  );
863
860
  export {
864
- ht as A,
861
+ bt as A,
865
862
  Se as C,
866
863
  yt as a,
867
- bt as i
864
+ ht as i
868
865
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("vue"),z={SM:"sm",MD:"md",LG:"lg"};var ne=(e=>(e.sm="3px 9px",e.md="5px 12px",e.lg="9px 20px",e))(ne||{});const ae={PRIMARY:"primary",INFO:"info"},V={xs:18,sm:24,md:32,lg:38,xl:46},re={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,N=e=>`ionicons ${e}`,ie={"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}`},ue={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(ie).join("|")+")"),pe=new RegExp("^("+Object.keys(ue).join("|")+")"),H=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]?) /,W=Q({name:"QIcon",props:{...re,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:r}}=n.getCurrentInstance(),a=oe(e),u=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),l=n.computed(()=>{let c,o=e.name;if(o==="none"||!o)return{none:!0};if(r.iconMapFn!==null){const d=r.iconMapFn(o);if(d!==void 0)if(d.icon!==void 0){if(o=d.icon,o==="none"||!o)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(ge.test(o)===!0){const[d,h=U]=o.split("|");return{svg:!0,viewBox:h,nodes:d.split("&&").map(s=>{const[b,p,y]=s.split("@@");return n.h("path",{style:p,d:b,transform:y})})}}if(he.test(o)===!0)return{img:!0,src:o.substring(4)};if(be.test(o)===!0){const[d,h=U]=o.split("|");return{svguse:!0,src:d.substring(7),viewBox:h}}let $=" ";const g=o.match(me);if(g!==null)c=ie[g[1]](o);else if(ke.test(o)===!0)c=o;else if(ye.test(o)===!0)c=`ionicons ion-${r.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(H.test(o)===!0){c="notranslate material-symbols";const d=o.match(H);d!==null&&(o=o.substring(6),c+=le[d[1]]),$=o}else{c="notranslate material-icons";const d=o.match(pe);d!==null&&(o=o.substring(2),c+=ue[d[1]]),$=o}return{cls:c,content:$}});return()=>{const c={class:u.value,style:a.value,"aria-hidden":"true",role:"presentation"};return l.value.none===!0?n.h(e.tag,c,ve(t.default)):l.value.img===!0?n.h(e.tag,c,j(t.default,[n.h("img",{src:l.value.src})])):l.value.svg===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:l.value.viewBox||"0 0 24 24"},l.value.nodes)])):l.value.svguse===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:l.value.viewBox},[n.h("use",{"xlink:href":l.value.src})])])):(l.value.cls!==void 0&&(c.class+=" "+l.value.cls),n.h(e.tag,c,j(t.default,[l.value.content])))}}}),$e={size:{type:[String,Number],default:"1em"},color:String};function qe(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 Ce=Q({name:"QSpinner",props:{...$e,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:r}=qe(e);return()=>n.h("svg",{class:r.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 Ee(e,t){const r=e.style;for(const a in t)r[a]=t[a]}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 _e(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 se(e){e.stopPropagation()}function Be(e){e.cancelable!==!1&&e.preventDefault()}function w(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Le(e,t,r){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(r):r,r.forEach(u=>{u[0].addEventListener(u[1],e[u[2]],K[u[3]])})}function xe(e,t){const r=`__q_${t}_evt`;e[r]!==void 0&&(e[r].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],K[a[3]])}),e[r]=void 0)}function Re(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return Re(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Se(e,t=250){let r=!1,a;return function(){return r===!1&&(r=!0,setTimeout(()=>{r=!1},t),a=e.apply(this,arguments)),a}}function X(e,t,r,a){r.modifiers.stop===!0&&se(e);const u=r.modifiers.color;let l=r.modifiers.center;l=l===!0||a===!0;const c=document.createElement("span"),o=document.createElement("span"),$=_e(e),{left:g,top:d,width:h,height:s}=t.getBoundingClientRect(),b=Math.sqrt(h*h+s*s),p=b/2,y=`${(h-b)/2}px`,f=l?y:`${$.left-g-p}px`,k=`${(s-b)/2}px`,S=l?k:`${$.top-d-p}px`;o.className="q-ripple__inner",Ee(o,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${S},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${u?" text-"+u:""}`,c.setAttribute("dir","ltr"),c.appendChild(o),t.appendChild(c);const x=()=>{c.remove(),clearTimeout(R)};r.abort.push(x);let R=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,o.style.opacity=.2,R=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,R=setTimeout(()=>{c.remove(),r.abort.splice(r.abort.indexOf(x),1)},275)},250)},50)}function G(e,{modifiers:t,value:r,arg:a}){const u=Object.assign({},e.cfg.ripple,t,r);e.modifiers={early:u.early===!0,stop:u.stop===!0,center:u.center===!0,color:u.color||a,keyCodes:[].concat(u.keyCodes||13)}}const we=fe({name:"ripple",beforeMount(e,t){const r=t.instance.$.appContext.config.globalProperties.$q.config||{};if(r.ripple===!1)return;const a={cfg:r,enabled:t.value!==!1,modifiers:{},abort:[],start(u){a.enabled===!0&&u.qSkipRipple!==!0&&u.type===(a.modifiers.early===!0?"pointerdown":"click")&&X(u,e,a,u.qKeyEvent===!0)},keystart:Se(u=>{a.enabled===!0&&u.qSkipRipple!==!0&&F(u,a.modifiers.keyCodes)===!0&&u.type===`key${a.modifiers.early===!0?"down":"up"}`&&X(u,e,a,!0)},300)};G(a,t),e.__qripple=a,Le(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 r=e.__qripple;r!==void 0&&(r.enabled=t.value!==!1,r.enabled===!0&&Object(t.value)===t.value&&G(r,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(r=>{r()}),xe(t,"main"),delete e._qripple)}}),ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(ce),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"}-${ce[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 Ae(e,t){for(const r in t){const a=t[r],u=e[r];if(typeof a=="string"){if(a!==u)return!1}else if(Array.isArray(u)===!1||u.length!==a.length||a.some((l,c)=>l!==u[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((r,a)=>r===t[a]):e.length===1&&e[0]===t}function ze(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 r in e)if(ze(e[r],t[r])===!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 r=n.getCurrentInstance(),{props:a,proxy:u,emit:l}=r,c=Oe(r),o=n.computed(()=>a.disable!==!0&&a.href!==void 0),$=t===!0?n.computed(()=>c===!0&&a.disable!==!0&&o.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):n.computed(()=>c===!0&&o.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),g=n.computed(()=>$.value===!0?S(a.to):null),d=n.computed(()=>g.value!==null),h=n.computed(()=>o.value===!0||d.value===!0),s=n.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),b=n.computed(()=>o.value===!0?{href:a.href,target:a.target}:d.value===!0?{href:g.value.href,target:a.target}:{}),p=n.computed(()=>{if(d.value===!1)return-1;const{matched:v}=g.value,{length:q}=v,E=v[q-1];if(E===void 0)return-1;const B=u.$route.matched;if(B.length===0)return-1;const L=B.findIndex(J.bind(null,E));if(L!==-1)return L;const I=Z(v[q-2]);return q>1&&Z(E)===I&&B[B.length-1].path!==I?B.findIndex(J.bind(null,v[q-2])):L}),y=n.computed(()=>d.value===!0&&p.value!==-1&&Ae(u.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&p.value===u.$route.matched.length-1&&je(u.$route.params,g.value.params)),k=n.computed(()=>d.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":y.value===!0?` ${a.activeClass}`:"":"");function S(v){try{return u.$router.resolve(v)}catch{}return null}function x(v,{returnRouterError:q,to:E=a.to,replace:B=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 L=u.$router[B===!0?"replace":"push"](E);return q===!0?L:L.then(()=>{}).catch(()=>{})}function R(v){if(d.value===!0){const q=E=>x(v,E);l("click",v,q),v.defaultPrevented!==!0&&q()}else l("click",v)}return{hasRouterLink:d,hasHrefLink:o,hasLink:h,linkTag:s,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:S,navigateToRouterLink:x,navigateOnClick:R}}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={...re,...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 He(e){const t=oe(e,Ke),r=Te(e),{hasRouterLink:a,hasLink:u,linkTag:l,linkAttrs:c,navigateOnClick:o}=De({fallbackTag:"button"}),$=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),d=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>d.value===!0?e.tabindex||0:-1),s=n.computed(()=>Qe(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return u.value===!0?Object.assign(f,c.value):Ne.includes(e.type)===!0&&(f.type=e.type),l.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--${s.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(d.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(()=>r.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:u,linkTag:l,navigateOnClick:o,isActionable:d}}const{passiveCapture:C}=K;let P=null,M=null,T=null;const We=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:r}){const{proxy:a}=n.getCurrentInstance(),{classes:u,style:l,innerClasses:c,attributes:o,hasLink:$,linkTag:g,navigateOnClick:d,isActionable:h}=He(e),s=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!==""),S=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:$.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),x=n.computed(()=>({center:e.round})),R=n.computed(()=>{const i=Math.max(0,Math.min(100,e.percentage));return i>0?{transition:"transform 0.6s",transform:`translateX(${i-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(h.value===!0){const i={onClick:E,onKeydown:B,onMousedown:I};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";i[`onTouchstart${m}`]=L}return i}return{onClick:w}}),q=n.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+u.value,style:l.value,...o.value,...v.value}));function E(i){if(s.value!==null){if(i!==void 0){if(i.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&s.value.contains(m)===!1&&m.contains(s.value)===!1){s.value.focus();const D=()=>{document.removeEventListener("keydown",w,!0),document.removeEventListener("keyup",D,C),s.value!==null&&s.value.removeEventListener("blur",D,C)};document.addEventListener("keydown",w,!0),document.addEventListener("keyup",D,C),s.value.addEventListener("blur",D,C)}}d(i)}}function B(i){s.value!==null&&(r("keydown",i),F(i,[13,32])===!0&&M!==s.value&&(M!==null&&O(),i.defaultPrevented!==!0&&(s.value.focus(),M=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",_,!0),s.value.addEventListener("blur",_,C)),w(i)))}function L(i){s.value!==null&&(r("touchstart",i),i.defaultPrevented!==!0&&(P!==s.value&&(P!==null&&O(),P=s.value,p=i.target,p.addEventListener("touchcancel",_,C),p.addEventListener("touchend",_,C)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(i){s.value!==null&&(i.qSkipRipple=y===!0,r("mousedown",i),i.defaultPrevented!==!0&&T!==s.value&&(T!==null&&O(),T=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",_,C)))}function _(i){if(s.value!==null&&!(i!==void 0&&i.type==="blur"&&document.activeElement===s.value)){if(i!==void 0&&i.type==="keyup"){if(M===s.value&&F(i,[13,32])===!0){const m=new MouseEvent("click",i);m.qKeyEvent=!0,i.defaultPrevented===!0&&Be(m),i.cancelBubble===!0&&se(m),s.value.dispatchEvent(m),w(i),i.qKeyEvent=!0}r("keyup",i)}O()}}function O(i){const m=b.value;i!==!0&&(P===s.value||T===s.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),P===s.value&&(p!==null&&(p.removeEventListener("touchcancel",_,C),p.removeEventListener("touchend",_,C)),P=p=null),T===s.value&&(document.removeEventListener("mouseup",_,C),T=null),M===s.value&&(document.removeEventListener("keyup",_,!0),s.value!==null&&s.value.removeEventListener("blur",_,C),M=null),s.value!==null&&s.value.classList.remove("q-btn--active")}function A(i){w(i),i.qSkipRipple=!0}return n.onBeforeUnmount(()=>{O(!0)}),Object.assign(a,{click:i=>{h.value===!0&&E(i)}}),()=>{let i=[];e.icon!==void 0&&i.push(n.h(W,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&i.push(n.h("span",{class:"block"},[e.label])),i=j(t.default,i),e.iconRight!==void 0&&e.round===!1&&i.push(n.h(W,{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:R.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},i)),e.loading!==null&&m.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(Ce)])]:null)),n.withDirectives(n.h(g.value,q.value,m),[[we,S.value,void 0,x.value]])}}}),Xe=n.defineComponent({__name:"index",props:{size:{},transparent:{type:Boolean},rounded:{type:Boolean},color:{},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,{size:r=z.MD,color:a=ae.PRIMARY}=t,u=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent,"app-btn_trans":t.transparent,"app-btn_rounded":t.rounded,"app-btn_sm":r===z.SM,"app-btn_md":r===z.MD,"app-btn_lg":r===z.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${a}`]);return(l,c)=>(n.openBlock(),n.createBlock(n.unref(We),{"no-caps":"",unelevated:"",class:n.normalizeClass(u.value),padding:n.unref(ne)[n.unref(r)||n.unref(z).MD],loading:l.loading,disabled:l.disabled||void 0,to:l.to,href:l.href,target:l.target,type:l.submit?"submit":void 0,"aria-label":l.ariaLabel,onClick:c[0]||(c[0]=o=>l.$emit("click",o))},{default:n.withCtx(()=>[l.iconLeft||l.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",l.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${l.iconLeft||l.iconMiddle}`,l.transparent?`text-${n.unref(a)}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(l.$slots,"default",{},void 0,!0),l.iconRight?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${l.iconRight}`,l.transparent?`text-${n.unref(a)}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),de=(e,t)=>{const r=e.__vccOpts||e;for(const[a,u]of t)r[a]=u;return r},Ge=de(Xe,[["__scopeId","data-v-42f3b7cf"]]),Ze=n.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,r)=>(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=de(Ze,[["__scopeId","data-v-73419357"]]),et=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D7ru9fT7.cjs")));exports.AppButton=Ge;exports.AppButtonCopy=et;exports.COLORS=ae;exports.index=Je;
@@ -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 { C, A as P } from "./index-D3yc3EET.js";
2
+ import { A as C, C as P } from "./index-D81NIeCb.js";
3
3
  function M(o, i, t, r) {
4
4
  return Object.defineProperty(o, i, {
5
5
  get: t,
@@ -151,7 +151,7 @@ const d = {
151
151
  size: {},
152
152
  transparent: { type: Boolean, default: !0 },
153
153
  rounded: { type: Boolean },
154
- color: { default: C.INFO },
154
+ color: { default: P.INFO },
155
155
  iconLeft: {},
156
156
  iconRight: {},
157
157
  iconMiddle: {},
@@ -173,7 +173,7 @@ const d = {
173
173
  console.log(n);
174
174
  });
175
175
  };
176
- return (n, c) => (x(), k(y(P), g(i, {
176
+ return (n, c) => (x(), k(y(C), g(i, {
177
177
  "icon-middle": t.value,
178
178
  onClick: O(e, ["prevent"])
179
179
  }), null, 16, ["icon-middle"]));
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .app-btn[data-v-16e02783] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_sm[data-v-16e02783]{font-size:12px;border-radius:7px}.app-btn_sm[data-v-16e02783] .q-btn__content{line-height:20px}.app-btn_sm .icon-kl[data-v-16e02783]{font-size:18px}.app-btn_sm.app-btn_icon-left[data-v-16e02783]{padding-left:5px!important}.app-btn_sm.app-btn_icon-left .icon-kl_left[data-v-16e02783]{margin-right:2px}.app-btn_sm.app-btn_icon-right[data-v-16e02783]{padding-right:5px!important}.app-btn_sm.app-btn_icon-right .icon-kl_right[data-v-16e02783]{margin-left:2px}.app-btn_sm.app-btn_icon-middle[data-v-16e02783]{padding:4px!important}.app-btn_md[data-v-16e02783]{font-size:14px;border-radius:8px}.app-btn_md[data-v-16e02783] .q-btn__content{line-height:22px}.app-btn_md .icon-kl[data-v-16e02783]{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-16e02783]{padding-left:9px!important}.app-btn_md.app-btn_icon-left .icon-kl_left[data-v-16e02783]{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-16e02783]{padding-right:9px!important}.app-btn_md.app-btn_icon-right .icon-kl_right[data-v-16e02783]{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-16e02783]{padding:5px!important}.app-btn_lg[data-v-16e02783]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-16e02783] .q-btn__content{line-height:26px}.app-btn_lg .icon-kl[data-v-16e02783]{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-16e02783]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left .icon-kl_left[data-v-16e02783]{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-16e02783]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right .icon-kl_right[data-v-16e02783]{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-16e02783]{padding:11px!important}.app-btn_default.app-btn_primary[data-v-16e02783]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-16e02783]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-16e02783]{background-color:#ff4757;color:#fdfffc}.app-btn_default.app-btn_positive[data-v-16e02783]{background-color:#46c93a;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-16e02783]{background-color:#1a5cff26;color:#1a5cff}.app-btn_trans.app-btn_info[data-v-16e02783]{background-color:#33999926;color:#2e757c}.app-btn_trans.app-btn_negative[data-v-16e02783]{background-color:#ff475726;color:#ff4757}.app-btn_trans.app-btn_positive[data-v-16e02783]{background-color:#46c93a26;color:#46c93a}.app-btn_rounded[data-v-16e02783]{border-radius:50px}.icon-kl[data-v-73419357]{font-size:24px}
1
+ .app-btn[data-v-42f3b7cf] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_sm[data-v-42f3b7cf]{font-size:12px;border-radius:7px}.app-btn_sm[data-v-42f3b7cf] .q-btn__content{line-height:20px}.app-btn_sm .icon-kl[data-v-42f3b7cf]{font-size:18px}.app-btn_sm.app-btn_icon-left[data-v-42f3b7cf]{padding-left:5px!important}.app-btn_sm.app-btn_icon-left .icon-kl_left[data-v-42f3b7cf]{margin-right:2px}.app-btn_sm.app-btn_icon-right[data-v-42f3b7cf]{padding-right:5px!important}.app-btn_sm.app-btn_icon-right .icon-kl_right[data-v-42f3b7cf]{margin-left:2px}.app-btn_sm.app-btn_icon-middle[data-v-42f3b7cf]{padding:4px!important}.app-btn_md[data-v-42f3b7cf]{font-size:14px;border-radius:8px}.app-btn_md[data-v-42f3b7cf] .q-btn__content{line-height:22px}.app-btn_md .icon-kl[data-v-42f3b7cf]{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-42f3b7cf]{padding-left:9px!important}.app-btn_md.app-btn_icon-left .icon-kl_left[data-v-42f3b7cf]{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-42f3b7cf]{padding-right:9px!important}.app-btn_md.app-btn_icon-right .icon-kl_right[data-v-42f3b7cf]{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-42f3b7cf]{padding:5px!important}.app-btn_lg[data-v-42f3b7cf]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-42f3b7cf] .q-btn__content{line-height:26px}.app-btn_lg .icon-kl[data-v-42f3b7cf]{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-42f3b7cf]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left .icon-kl_left[data-v-42f3b7cf]{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-42f3b7cf]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right .icon-kl_right[data-v-42f3b7cf]{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-42f3b7cf]{padding:11px!important}.app-btn_default.app-btn_primary[data-v-42f3b7cf]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-42f3b7cf]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-42f3b7cf]{background-color:#ff4757;color:#fdfffc}.app-btn_default.app-btn_positive[data-v-42f3b7cf]{background-color:#46c93a;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-42f3b7cf]{background-color:#1a5cff26;color:#1a5cff}.app-btn_trans.app-btn_info[data-v-42f3b7cf]{background-color:#33999926;color:#2e757c}.app-btn_trans.app-btn_negative[data-v-42f3b7cf]{background-color:#ff475726;color:#ff4757}.app-btn_trans.app-btn_positive[data-v-42f3b7cf]{background-color:#46c93a26;color:#46c93a}.app-btn_rounded[data-v-42f3b7cf]{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-7IDuiHaN.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-DQjVfHtn.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-D3yc3EET.js";
2
+ import { A as a, a as A, i as n } from "./index-D81NIeCb.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.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "main": "./dist/uikit.cjs",
6
6
  "module": "./dist/uikit.es.js",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@quasar/extras": "^1.16.13",
30
30
  "quasar": "^2.17.2",
31
- "vue": "^3.5.12"
31
+ "vue": "^3.5.13"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@chromatic-com/storybook": "^3.2.2",
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),A={SM:"sm",MD:"md",LG:"lg"};var ne=(e=>(e.sm="3px 9px",e.md="5px 12px",e.lg="9px 20px",e))(ne||{});const ae={PRIMARY:"primary",INFO:"info",ACCENT:"accent",NEGATIVE:"negative",POSITIVE:"positive"},V={xs:18,sm:24,md:32,lg:38,xl:46},oe={size:String};function re(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,K=e=>`ionicons ${e}`,ie={"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}`},ue={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(ie).join("|")+")"),pe=new RegExp("^("+Object.keys(ue).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:{...oe,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=a.getCurrentInstance(),n=re(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,u=e.name;if(u==="none"||!u)return{none:!0};if(o.iconMapFn!==null){const s=o.iconMapFn(u);if(s!==void 0)if(s.icon!==void 0){if(u=s.icon,u==="none"||!u)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(ge.test(u)===!0){const[s,h=U]=u.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(l=>{const[b,p,y]=l.split("@@");return a.h("path",{style:p,d:b,transform:y})})}}if(he.test(u)===!0)return{img:!0,src:u.substring(4)};if(be.test(u)===!0){const[s,h=U]=u.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let C=" ";const g=u.match(me);if(g!==null)c=ie[g[1]](u);else if(ke.test(u)===!0)c=u;else if(ye.test(u)===!0)c=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(G.test(u)===!0){c="notranslate material-symbols";const s=u.match(G);s!==null&&(u=u.substring(6),c+=le[s[1]]),C=u}else{c="notranslate material-icons";const s=u.match(pe);s!==null&&(u=u.substring(2),c+=ue[s[1]]),C=u}return{cls:c,content:C}});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])))}}}),Ce={size:{type:[String,Number],default:"1em"},color:String};function Ee(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 $e=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=Ee(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 qe(e,t){const o=e.style;for(const n in t)o[n]=t[n]}const D={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(D,{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 _e(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 se(e){e.stopPropagation()}function Be(e){e.cancelable!==!1&&e.preventDefault()}function w(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Le(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]],D[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]],D[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&&se(e);const i=o.modifiers.color;let d=o.modifiers.center;d=d===!0||n===!0;const c=document.createElement("span"),u=document.createElement("span"),C=_e(e),{left:g,top:s,width:h,height:l}=t.getBoundingClientRect(),b=Math.sqrt(h*h+l*l),p=b/2,y=`${(h-b)/2}px`,f=d?y:`${C.left-g-p}px`,k=`${(l-b)/2}px`,x=d?k:`${C.top-s-p}px`;u.className="q-ripple__inner",qe(u,{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(u),t.appendChild(c);const R=()=>{c.remove(),clearTimeout(S)};o.abort.push(R);let S=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,u.style.opacity=.2,S=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,S=setTimeout(()=>{c.remove(),o.abort.splice(o.abort.indexOf(R),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,Le(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)}}),ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(ce),Te={align:{type:String,validator:e=>Pe.includes(e)}};function Me(e){return a.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ce[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 Ne({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=a.getCurrentInstance(),{props:n,proxy:i,emit:d}=o,c=Oe(o),u=a.computed(()=>n.disable!==!0&&n.href!==void 0),C=t===!0?a.computed(()=>c===!0&&n.disable!==!0&&u.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""):a.computed(()=>c===!0&&u.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""),g=a.computed(()=>C.value===!0?x(n.to):null),s=a.computed(()=>g.value!==null),h=a.computed(()=>u.value===!0||s.value===!0),l=a.computed(()=>n.type==="a"||h.value===!0?"a":n.tag||e||"div"),b=a.computed(()=>u.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:E}=v,q=v[E-1];if(q===void 0)return-1;const B=i.$route.matched;if(B.length===0)return-1;const L=B.findIndex(J.bind(null,q));if(L!==-1)return L;const I=Z(v[E-2]);return E>1&&Z(q)===I&&B[B.length-1].path!==I?B.findIndex(J.bind(null,v[E-2])):L}),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 x(v){try{return i.$router.resolve(v)}catch{}return null}function R(v,{returnRouterError:E,to:q=n.to,replace:B=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 L=i.$router[B===!0?"replace":"push"](q);return E===!0?L:L.then(()=>{}).catch(()=>{})}function S(v){if(s.value===!0){const E=q=>R(v,q);d("click",v,E),v.defaultPrevented!==!0&&E()}else d("click",v)}return{hasRouterLink:s,hasHrefLink:u,hasLink:h,linkTag:l,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:x,navigateToRouterLink:R,navigateOnClick:S}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},De={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={...oe,...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:{...Te.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function Ge(e){const t=re(e,De),o=Me(e),{hasRouterLink:n,hasLink:i,linkTag:d,linkAttrs:c,navigateOnClick:u}=Ne({fallbackTag:"button"}),C=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),l=a.computed(()=>Qe(e,"standard")),b=a.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"),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--${l.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:C,innerClasses:y,attributes:b,hasLink:i,linkTag:d,navigateOnClick:u,isActionable:s}}const{passiveCapture:$}=D;let P=null,T=null,M=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:u,hasLink:C,linkTag:g,navigateOnClick:s,isActionable:h}=Ge(e),l=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!==""),x=a.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),R=a.computed(()=>({center:e.round})),S=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:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(h.value===!0){const r={onClick:q,onKeydown:B,onMousedown:I};if(n.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=L}return r}return{onClick:w}}),E=a.computed(()=>({ref:l,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:d.value,...u.value,...v.value}));function q(r){if(l.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&l.value.contains(m)===!1&&m.contains(l.value)===!1){l.value.focus();const N=()=>{document.removeEventListener("keydown",w,!0),document.removeEventListener("keyup",N,$),l.value!==null&&l.value.removeEventListener("blur",N,$)};document.addEventListener("keydown",w,!0),document.addEventListener("keyup",N,$),l.value.addEventListener("blur",N,$)}}s(r)}}function B(r){l.value!==null&&(o("keydown",r),F(r,[13,32])===!0&&T!==l.value&&(T!==null&&O(),r.defaultPrevented!==!0&&(l.value.focus(),T=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("keyup",_,!0),l.value.addEventListener("blur",_,$)),w(r)))}function L(r){l.value!==null&&(o("touchstart",r),r.defaultPrevented!==!0&&(P!==l.value&&(P!==null&&O(),P=l.value,p=r.target,p.addEventListener("touchcancel",_,$),p.addEventListener("touchend",_,$)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(r){l.value!==null&&(r.qSkipRipple=y===!0,o("mousedown",r),r.defaultPrevented!==!0&&M!==l.value&&(M!==null&&O(),M=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("mouseup",_,$)))}function _(r){if(l.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===l.value)){if(r!==void 0&&r.type==="keyup"){if(T===l.value&&F(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&Be(m),r.cancelBubble===!0&&se(m),l.value.dispatchEvent(m),w(r),r.qKeyEvent=!0}o("keyup",r)}O()}}function O(r){const m=b.value;r!==!0&&(P===l.value||M===l.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),P===l.value&&(p!==null&&(p.removeEventListener("touchcancel",_,$),p.removeEventListener("touchend",_,$)),P=p=null),M===l.value&&(document.removeEventListener("mouseup",_,$),M=null),T===l.value&&(document.removeEventListener("keyup",_,!0),l.value!==null&&l.value.removeEventListener("blur",_,$),T=null),l.value!==null&&l.value.classList.remove("q-btn--active")}function z(r){w(r),r.qSkipRipple=!0}return a.onBeforeUnmount(()=>{O(!0)}),Object.assign(n,{click:r=>{h.value===!0&&q(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:S.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($e)])]:null)),a.withDirectives(a.h(g.value,E.value,m),[[we,x.value,void 0,R.value]])}}}),We=a.defineComponent({__name:"index",props:{size:{default:A.MD},transparent:{type:Boolean},rounded:{type:Boolean},color:{default:ae.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,o=a.computed(()=>["app-btn",{"app-btn_default":!t.transparent,"app-btn_trans":t.transparent,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===A.SM,"app-btn_md":t.size===A.MD,"app-btn_lg":t.size===A.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(ne)[t.size||a.unref(A).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?`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"]))}}),de=(e,t)=>{const o=e.__vccOpts||e;for(const[n,i]of t)o[n]=i;return o},Xe=de(We,[["__scopeId","data-v-16e02783"]]),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=de(Ze,[["__scopeId","data-v-73419357"]]),et=a.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DGMHft9c.cjs")));exports.AppButton=Xe;exports.AppButtonCopy=et;exports.COLORS=ae;exports.index=Je;