@validol4ik/uikit 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { computed as c, markRaw as Se, defineComponent as F, h as m, withDirectives as se, getCurrentInstance as Z, unref as W, ref as J, onBeforeUnmount as Oe, Transition as De, createBlock as Be, openBlock as B, normalizeClass as R, withCtx as Ie, createElementBlock as C, createCommentVNode as T, renderSlot as re, Fragment as ie, createTextVNode as Ce, toDisplayString as H, createElementVNode as D, normalizeStyle as ue, watch as je, onMounted as xe, renderList as we, withKeys as Ve, vModelText as Ke, nextTick as ve, mergeModels as Ne, useModel as Fe, defineAsyncComponent as ce } from "vue";
2
- const Xt = ({ app: e }) => {
1
+ import { computed as c, markRaw as Se, defineComponent as F, h as m, withDirectives as se, getCurrentInstance as Z, unref as W, ref as J, onBeforeUnmount as Oe, Transition as De, createBlock as Ce, openBlock as S, normalizeClass as M, withCtx as Ie, createElementBlock as C, createCommentVNode as T, renderSlot as re, Fragment as ie, createTextVNode as we, toDisplayString as H, createElementVNode as D, normalizeStyle as ue, watch as xe, onMounted as je, renderList as Be, withKeys as Ve, vModelText as Ke, nextTick as ve, mergeModels as Ne, useModel as Fe, defineAsyncComponent as ce } from "vue";
2
+ const Gt = ({ app: e }) => {
3
3
  const t = e.config.globalProperties.$q;
4
4
  t.iconMapFn = (a) => {
5
5
  if (a.startsWith("icon-kl:"))
@@ -10,14 +10,16 @@ const Xt = ({ app: e }) => {
10
10
  }, Le = {
11
11
  PRIMARY: "primary",
12
12
  INFO: "info"
13
- }, k = {
13
+ }, B = {
14
14
  SM: "sm",
15
15
  MD: "md",
16
- LG: "lg"
16
+ LG: "lg",
17
+ XL: "xl"
17
18
  }, Qe = {
18
- [k.SM]: "3px 9px",
19
- [k.MD]: "5px 12px",
20
- [k.LG]: "9px 20px"
19
+ [B.SM]: "3px 9px",
20
+ [B.MD]: "5px 12px",
21
+ [B.LG]: "6px 15px",
22
+ [B.XL]: "9px 20px"
21
23
  }, le = {
22
24
  xs: 18,
23
25
  sm: 24,
@@ -33,10 +35,10 @@ function fe(e, t = le) {
33
35
  function ee(e) {
34
36
  return Se(F(e));
35
37
  }
36
- function Ge(e) {
38
+ function Ue(e) {
37
39
  return Se(e);
38
40
  }
39
- function Ue(e, t) {
41
+ function Xe(e, t) {
40
42
  return e !== void 0 && e() || t;
41
43
  }
42
44
  function Yt(e, t) {
@@ -72,15 +74,15 @@ const ge = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ee = {
72
74
  "bi-": (e) => `bootstrap-icons ${e}`,
73
75
  "i-": ne
74
76
  // UnoCSS pure icons
75
- }, Me = {
77
+ }, Re = {
76
78
  o_: "-outlined",
77
79
  r_: "-round",
78
80
  s_: "-sharp"
79
- }, Re = {
81
+ }, Me = {
80
82
  sym_o_: "-outlined",
81
83
  sym_r_: "-rounded",
82
84
  sym_s_: "-sharp"
83
- }, He = new RegExp("^(" + Object.keys(Ee).join("|") + ")"), Xe = new RegExp("^(" + Object.keys(Me).join("|") + ")"), pe = new RegExp("^(" + Object.keys(Re).join("|") + ")"), Ye = /^[Mm]\s?[-+]?\.?\d/, We = /^img:/, Je = /^svguse:/, Ze = /^ion-/, et = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = ee({
85
+ }, He = new RegExp("^(" + Object.keys(Ee).join("|") + ")"), Ge = new RegExp("^(" + Object.keys(Re).join("|") + ")"), pe = new RegExp("^(" + Object.keys(Me).join("|") + ")"), Ye = /^[Mm]\s?[-+]?\.?\d/, We = /^img:/, Je = /^svguse:/, Ze = /^ion-/, et = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = ee({
84
86
  name: "QIcon",
85
87
  props: {
86
88
  ...de,
@@ -113,13 +115,13 @@ const ge = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ee = {
113
115
  };
114
116
  }
115
117
  if (Ye.test(s) === !0) {
116
- const [f, $ = ge] = s.split("|");
118
+ const [f, _ = ge] = s.split("|");
117
119
  return {
118
120
  svg: !0,
119
- viewBox: $,
121
+ viewBox: _,
120
122
  nodes: f.split("&&").map((d) => {
121
- const [S, u, g] = d.split("@@");
122
- return m("path", { style: u, d: S, transform: g });
123
+ const [q, u, g] = d.split("@@");
124
+ return m("path", { style: u, d: q, transform: g });
123
125
  })
124
126
  };
125
127
  }
@@ -129,14 +131,14 @@ const ge = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ee = {
129
131
  src: s.substring(4)
130
132
  };
131
133
  if (Je.test(s) === !0) {
132
- const [f, $ = ge] = s.split("|");
134
+ const [f, _ = ge] = s.split("|");
133
135
  return {
134
136
  svguse: !0,
135
137
  src: f.substring(7),
136
- viewBox: $
138
+ viewBox: _
137
139
  };
138
140
  }
139
- let _ = " ";
141
+ let k = " ";
140
142
  const b = s.match(He);
141
143
  if (b !== null)
142
144
  l = Ee[b[1]](s);
@@ -147,15 +149,15 @@ const ge = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ee = {
147
149
  else if (pe.test(s) === !0) {
148
150
  l = "notranslate material-symbols";
149
151
  const f = s.match(pe);
150
- f !== null && (s = s.substring(6), l += Re[f[1]]), _ = s;
152
+ f !== null && (s = s.substring(6), l += Me[f[1]]), k = s;
151
153
  } else {
152
154
  l = "notranslate material-icons";
153
- const f = s.match(Xe);
154
- f !== null && (s = s.substring(2), l += Me[f[1]]), _ = s;
155
+ const f = s.match(Ge);
156
+ f !== null && (s = s.substring(2), l += Re[f[1]]), k = s;
155
157
  }
156
158
  return {
157
159
  cls: l,
158
- content: _
160
+ content: k
159
161
  };
160
162
  });
161
163
  return () => {
@@ -164,7 +166,7 @@ const ge = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ee = {
164
166
  style: n.value,
165
167
  "aria-hidden": "true"
166
168
  };
167
- return r.value.none === !0 ? m(e.tag, l, Ue(t.default)) : r.value.img === !0 ? m(e.tag, l, N(t.default, [
169
+ return r.value.none === !0 ? m(e.tag, l, Xe(t.default)) : r.value.img === !0 ? m(e.tag, l, N(t.default, [
168
170
  m("img", { src: r.value.src })
169
171
  ])) : r.value.svg === !0 ? m(e.tag, l, N(t.default, [
170
172
  m("svg", {
@@ -299,7 +301,7 @@ function Pe(e) {
299
301
  function st(e) {
300
302
  e.cancelable !== !1 && e.preventDefault();
301
303
  }
302
- function j(e) {
304
+ function x(e) {
303
305
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
304
306
  }
305
307
  function rt(e, t, a) {
@@ -333,11 +335,11 @@ function he(e, t, a, n) {
333
335
  const o = a.modifiers.color;
334
336
  let r = a.modifiers.center;
335
337
  r = r === !0 || n === !0;
336
- const l = document.createElement("span"), s = document.createElement("span"), _ = ot(e), { left: b, top: f, width: $, height: d } = t.getBoundingClientRect(), S = Math.sqrt($ * $ + d * d), u = S / 2, g = `${($ - S) / 2}px`, v = r ? g : `${_.left - b - u}px`, p = `${(d - S) / 2}px`, q = r ? p : `${_.top - f - u}px`;
338
+ const l = document.createElement("span"), s = document.createElement("span"), k = ot(e), { left: b, top: f, width: _, height: d } = t.getBoundingClientRect(), q = Math.sqrt(_ * _ + d * d), u = q / 2, g = `${(_ - q) / 2}px`, v = r ? g : `${k.left - b - u}px`, p = `${(d - q) / 2}px`, $ = r ? p : `${k.top - f - u}px`;
337
339
  s.className = "q-ripple__inner", lt(s, {
338
- height: `${S}px`,
339
- width: `${S}px`,
340
- transform: `translate3d(${v},${q},0) scale3d(.2,.2,1)`,
340
+ height: `${q}px`,
341
+ width: `${q}px`,
342
+ transform: `translate3d(${v},${$},0) scale3d(.2,.2,1)`,
341
343
  opacity: 0
342
344
  }), l.className = `q-ripple${o ? " text-" + o : ""}`, l.setAttribute("dir", "ltr"), l.appendChild(s), t.appendChild(l);
343
345
  const w = () => {
@@ -362,7 +364,7 @@ function be(e, { modifiers: t, value: a, arg: n }) {
362
364
  keyCodes: [].concat(o.keyCodes || 13)
363
365
  };
364
366
  }
365
- const dt = Ge(
367
+ const dt = Ue(
366
368
  {
367
369
  name: "ripple",
368
370
  beforeMount(e, t) {
@@ -490,11 +492,11 @@ const ze = {
490
492
  }
491
493
  };
492
494
  function yt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
493
- const a = Z(), { props: n, proxy: o, emit: r } = a, l = pt(a), s = c(() => n.disable !== !0 && n.href !== void 0), _ = t === !0 ? c(
495
+ const a = Z(), { props: n, proxy: o, emit: r } = a, l = pt(a), s = c(() => n.disable !== !0 && n.href !== void 0), k = t === !0 ? c(
494
496
  () => l === !0 && n.disable !== !0 && s.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
495
497
  ) : c(
496
498
  () => l === !0 && s.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
497
- ), b = c(() => _.value === !0 ? q(n.to) : null), f = c(() => b.value !== null), $ = c(() => s.value === !0 || f.value === !0), d = c(() => n.type === "a" || $.value === !0 ? "a" : n.tag || e || "div"), S = c(() => s.value === !0 ? {
499
+ ), b = c(() => k.value === !0 ? $(n.to) : null), f = c(() => b.value !== null), _ = c(() => s.value === !0 || f.value === !0), d = c(() => n.type === "a" || _.value === !0 ? "a" : n.tag || e || "div"), q = c(() => s.value === !0 ? {
498
500
  href: n.href,
499
501
  target: n.target
500
502
  } : f.value === !0 ? {
@@ -526,7 +528,7 @@ function yt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
526
528
  ), v = c(
527
529
  () => g.value === !0 && u.value === o.$route.matched.length - 1 && bt(o.$route.params, b.value.params)
528
530
  ), p = c(() => f.value === !0 ? v.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : g.value === !0 ? ` ${n.activeClass}` : "" : "");
529
- function q(h) {
531
+ function $(h) {
530
532
  try {
531
533
  return o.$router.resolve(h);
532
534
  } catch {
@@ -558,14 +560,14 @@ function yt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
558
560
  return {
559
561
  hasRouterLink: f,
560
562
  hasHrefLink: s,
561
- hasLink: $,
563
+ hasLink: _,
562
564
  linkTag: d,
563
565
  resolvedLink: b,
564
566
  linkIsActive: g,
565
567
  linkIsExactActive: v,
566
568
  linkClass: p,
567
- linkAttrs: S,
568
- getLink: q,
569
+ linkAttrs: q,
570
+ getLink: $,
569
571
  navigateToRouterLink: w,
570
572
  navigateOnClick: L
571
573
  };
@@ -633,14 +635,14 @@ const St = {
633
635
  default: null
634
636
  },
635
637
  disable: Boolean
636
- }, Bt = {
638
+ }, Ct = {
637
639
  ...St,
638
640
  round: Boolean
639
641
  };
640
- function Ct(e) {
642
+ function wt(e) {
641
643
  const t = fe(e, kt), a = gt(e), { hasRouterLink: n, hasLink: o, linkTag: r, linkAttrs: l, navigateOnClick: s } = yt({
642
644
  fallbackTag: "button"
643
- }), _ = c(() => {
645
+ }), k = c(() => {
644
646
  const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
645
647
  return e.padding !== void 0 ? Object.assign({}, v, {
646
648
  padding: e.padding.split(/\s+/).map((p) => p in $e ? $e[p] + "px" : p).join(" "),
@@ -651,8 +653,8 @@ function Ct(e) {
651
653
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
652
654
  ), f = c(
653
655
  () => e.disable !== !0 && e.loading !== !0
654
- ), $ = c(() => f.value === !0 ? e.tabindex || 0 : -1), d = c(() => Te(e, "standard")), S = c(() => {
655
- const v = { tabindex: $.value };
656
+ ), _ = c(() => f.value === !0 ? e.tabindex || 0 : -1), d = c(() => Te(e, "standard")), q = c(() => {
657
+ const v = { tabindex: _.value };
656
658
  return o.value === !0 ? Object.assign(v, l.value) : _t.includes(e.type) === !0 && (v.type = e.type), r.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), n.value !== !0 && $t.test(e.type) === !0 && (v.type = e.type)) : e.disable === !0 && (v.disabled = "", v["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(v, {
657
659
  role: "progressbar",
658
660
  "aria-valuemin": 0,
@@ -669,21 +671,21 @@ function Ct(e) {
669
671
  );
670
672
  return {
671
673
  classes: u,
672
- style: _,
674
+ style: k,
673
675
  innerClasses: g,
674
- attributes: S,
676
+ attributes: q,
675
677
  hasLink: o,
676
678
  linkTag: r,
677
679
  navigateOnClick: s,
678
680
  isActionable: f
679
681
  };
680
682
  }
681
- const { passiveCapture: M } = te;
682
- let x = null, V = null, K = null;
683
- const wt = ee({
683
+ const { passiveCapture: R } = te;
684
+ let j = null, V = null, K = null;
685
+ const Bt = ee({
684
686
  name: "QBtn",
685
687
  props: {
686
- ...Bt,
688
+ ...Ct,
687
689
  percentage: Number,
688
690
  darkPercentage: Boolean,
689
691
  onTouchstart: [Function, Array]
@@ -695,16 +697,16 @@ const wt = ee({
695
697
  style: r,
696
698
  innerClasses: l,
697
699
  attributes: s,
698
- hasLink: _,
700
+ hasLink: k,
699
701
  linkTag: b,
700
702
  navigateOnClick: f,
701
- isActionable: $
702
- } = Ct(e), d = J(null), S = J(null);
703
+ isActionable: _
704
+ } = wt(e), d = J(null), q = J(null);
703
705
  let u = null, g, v = null;
704
706
  const p = c(
705
707
  () => e.label !== void 0 && e.label !== null && e.label !== ""
706
- ), q = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
707
- keyCodes: _.value === !0 ? [13, 32] : [13],
708
+ ), $ = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
709
+ keyCodes: k.value === !0 ? [13, 32] : [13],
708
710
  ...e.ripple === !0 ? {} : e.ripple
709
711
  }), w = c(() => ({ center: e.round })), L = c(() => {
710
712
  const i = Math.max(0, Math.min(100, e.percentage));
@@ -712,13 +714,13 @@ const wt = ee({
712
714
  }), h = c(() => {
713
715
  if (e.loading === !0)
714
716
  return {
715
- onMousedown: G,
716
- onTouchstart: G,
717
- onClick: G,
718
- onKeydown: G,
719
- onKeyup: G
717
+ onMousedown: U,
718
+ onTouchstart: U,
719
+ onClick: U,
720
+ onKeydown: U,
721
+ onKeyup: U
720
722
  };
721
- if ($.value === !0) {
723
+ if (_.value === !0) {
722
724
  const i = {
723
725
  onClick: P,
724
726
  onKeydown: z,
@@ -732,7 +734,7 @@ const wt = ee({
732
734
  }
733
735
  return {
734
736
  // needed; especially for disabled <a> tags
735
- onClick: j
737
+ onClick: x
736
738
  };
737
739
  }), E = c(() => ({
738
740
  ref: d,
@@ -749,32 +751,32 @@ const wt = ee({
749
751
  if (e.type === "submit" && y !== document.body && d.value.contains(y) === !1 && y.contains(d.value) === !1) {
750
752
  i.qAvoidFocus !== !0 && d.value.focus();
751
753
  const I = () => {
752
- var U;
753
- document.removeEventListener("keydown", j, !0), document.removeEventListener("keyup", I, M), (U = d.value) == null || U.removeEventListener("blur", I, M);
754
+ var X;
755
+ document.removeEventListener("keydown", x, !0), document.removeEventListener("keyup", I, R), (X = d.value) == null || X.removeEventListener("blur", I, R);
754
756
  };
755
- document.addEventListener("keydown", j, !0), document.addEventListener("keyup", I, M), d.value.addEventListener("blur", I, M);
757
+ document.addEventListener("keydown", x, !0), document.addEventListener("keyup", I, R), d.value.addEventListener("blur", I, R);
756
758
  }
757
759
  }
758
760
  f(i);
759
761
  }
760
762
  }
761
763
  function z(i) {
762
- d.value !== null && (a("keydown", i), oe(i, [13, 32]) === !0 && V !== d.value && (V !== null && Q(), i.defaultPrevented !== !0 && (i.qAvoidFocus !== !0 && d.value.focus(), V = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", A, !0), d.value.addEventListener("blur", A, M)), j(i)));
764
+ d.value !== null && (a("keydown", i), oe(i, [13, 32]) === !0 && V !== d.value && (V !== null && Q(), i.defaultPrevented !== !0 && (i.qAvoidFocus !== !0 && d.value.focus(), V = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", A, !0), d.value.addEventListener("blur", A, R)), x(i)));
763
765
  }
764
766
  function O(i) {
765
- d.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (x !== d.value && (x !== null && Q(), x = d.value, u = i.target, u.addEventListener("touchcancel", A, M), u.addEventListener("touchend", A, M)), g = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
767
+ d.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (j !== d.value && (j !== null && Q(), j = d.value, u = i.target, u.addEventListener("touchcancel", A, R), u.addEventListener("touchend", A, R)), g = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
766
768
  v = null, g = !1;
767
769
  }, 200)));
768
770
  }
769
771
  function Y(i) {
770
- d.value !== null && (i.qSkipRipple = g === !0, a("mousedown", i), i.defaultPrevented !== !0 && K !== d.value && (K !== null && Q(), K = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", A, M)));
772
+ d.value !== null && (i.qSkipRipple = g === !0, a("mousedown", i), i.defaultPrevented !== !0 && K !== d.value && (K !== null && Q(), K = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", A, R)));
771
773
  }
772
774
  function A(i) {
773
775
  if (d.value !== null && !((i == null ? void 0 : i.type) === "blur" && document.activeElement === d.value)) {
774
776
  if ((i == null ? void 0 : i.type) === "keyup") {
775
777
  if (V === d.value && oe(i, [13, 32]) === !0) {
776
778
  const y = new MouseEvent("click", i);
777
- y.qKeyEvent = !0, i.defaultPrevented === !0 && st(y), i.cancelBubble === !0 && Pe(y), d.value.dispatchEvent(y), j(i), i.qKeyEvent = !0;
779
+ y.qKeyEvent = !0, i.defaultPrevented === !0 && st(y), i.cancelBubble === !0 && Pe(y), d.value.dispatchEvent(y), x(i), i.qKeyEvent = !0;
778
780
  }
779
781
  a("keyup", i);
780
782
  }
@@ -782,18 +784,18 @@ const wt = ee({
782
784
  }
783
785
  }
784
786
  function Q(i) {
785
- var I, U;
786
- const y = S.value;
787
- i !== !0 && (x === d.value || K === d.value) && y !== null && y !== document.activeElement && (y.setAttribute("tabindex", -1), y.focus()), x === d.value && (u !== null && (u.removeEventListener("touchcancel", A, M), u.removeEventListener("touchend", A, M)), x = u = null), K === d.value && (document.removeEventListener("mouseup", A, M), K = null), V === d.value && (document.removeEventListener("keyup", A, !0), (I = d.value) == null || I.removeEventListener("blur", A, M), V = null), (U = d.value) == null || U.classList.remove("q-btn--active");
787
+ var I, X;
788
+ const y = q.value;
789
+ i !== !0 && (j === d.value || K === d.value) && y !== null && y !== document.activeElement && (y.setAttribute("tabindex", -1), y.focus()), j === d.value && (u !== null && (u.removeEventListener("touchcancel", A, R), u.removeEventListener("touchend", A, R)), j = u = null), K === d.value && (document.removeEventListener("mouseup", A, R), K = null), V === d.value && (document.removeEventListener("keyup", A, !0), (I = d.value) == null || I.removeEventListener("blur", A, R), V = null), (X = d.value) == null || X.classList.remove("q-btn--active");
788
790
  }
789
- function G(i) {
790
- j(i), i.qSkipRipple = !0;
791
+ function U(i) {
792
+ x(i), i.qSkipRipple = !0;
791
793
  }
792
794
  return Oe(() => {
793
795
  Q(!0);
794
796
  }), Object.assign(n, {
795
797
  click: (i) => {
796
- $.value === !0 && P(i);
798
+ _.value === !0 && P(i);
797
799
  }
798
800
  }), () => {
799
801
  let i = [];
@@ -815,7 +817,7 @@ const wt = ee({
815
817
  const y = [
816
818
  m("span", {
817
819
  class: "q-focus-helper",
818
- ref: S
820
+ ref: q
819
821
  })
820
822
  ];
821
823
  return e.loading === !0 && e.percentage !== void 0 && y.push(
@@ -848,7 +850,7 @@ const wt = ee({
848
850
  ),
849
851
  [[
850
852
  dt,
851
- q.value,
853
+ $.value,
852
854
  void 0,
853
855
  w.value
854
856
  ]]
@@ -858,7 +860,7 @@ const wt = ee({
858
860
  }), Lt = /* @__PURE__ */ F({
859
861
  __name: "AppButton",
860
862
  props: {
861
- size: { default: k.MD },
863
+ size: { default: B.MD },
862
864
  transparent: { type: Boolean },
863
865
  flat: { type: Boolean },
864
866
  rounded: { type: Boolean },
@@ -885,20 +887,18 @@ const wt = ee({
885
887
  "app-btn_trans": t.transparent,
886
888
  "app-btn_flat": t.flat,
887
889
  "app-btn_rounded": t.rounded,
888
- "app-btn_sm": t.size === k.SM,
889
- "app-btn_md": t.size === k.MD,
890
- "app-btn_lg": t.size === k.LG,
891
890
  "app-btn_icon-left": t.iconLeft,
892
891
  "app-btn_icon-right": t.iconRight,
893
892
  "app-btn_icon-middle": t.iconMiddle
894
893
  },
894
+ `app-btn_${t.size}`,
895
895
  `app-btn_${t.color}`
896
896
  ]);
897
- return (n, o) => (B(), Be(W(wt), {
897
+ return (n, o) => (S(), Ce(W(Bt), {
898
898
  "no-caps": "",
899
899
  unelevated: "",
900
- class: R(a.value),
901
- padding: W(Qe)[n.size || W(k).MD],
900
+ class: M(a.value),
901
+ padding: W(Qe)[n.size || W(B).MD],
902
902
  loading: n.loading,
903
903
  disable: n.disabled || void 0,
904
904
  to: n.to,
@@ -910,9 +910,9 @@ const wt = ee({
910
910
  onClick: o[0] || (o[0] = (r) => n.$emit("click", r))
911
911
  }, {
912
912
  default: Ie(() => [
913
- n.iconLeft || n.iconMiddle ? (B(), C("i", {
913
+ n.iconLeft || n.iconMiddle ? (S(), C("i", {
914
914
  key: 0,
915
- class: R([
915
+ class: M([
916
916
  "icon-kl",
917
917
  n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
918
918
  `icon-kl-${n.iconLeft || n.iconMiddle}`,
@@ -920,12 +920,12 @@ const wt = ee({
920
920
  ])
921
921
  }, null, 2)) : T("", !0),
922
922
  re(n.$slots, "default", {}, void 0, !0),
923
- n.label ? (B(), C(ie, { key: 1 }, [
924
- Ce(H(n.label), 1)
923
+ n.label ? (S(), C(ie, { key: 1 }, [
924
+ we(H(n.label), 1)
925
925
  ], 64)) : T("", !0),
926
- n.iconRight ? (B(), C("i", {
926
+ n.iconRight ? (S(), C("i", {
927
927
  key: 2,
928
- class: R([
928
+ class: M([
929
929
  "icon-kl",
930
930
  "icon-kl_right",
931
931
  `icon-kl-${n.iconRight}`,
@@ -936,22 +936,22 @@ const wt = ee({
936
936
  _: 3
937
937
  }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
938
938
  }
939
- }), X = (e, t) => {
939
+ }), G = (e, t) => {
940
940
  const a = e.__vccOpts || e;
941
941
  for (const [n, o] of t)
942
942
  a[n] = o;
943
943
  return a;
944
- }, rn = /* @__PURE__ */ X(Lt, [["__scopeId", "data-v-99788ad1"]]), Et = {
944
+ }, rn = /* @__PURE__ */ G(Lt, [["__scopeId", "data-v-44d5548c"]]), Et = {
945
945
  key: 0,
946
946
  class: "app-toggle__label app-toggle__label_left"
947
- }, Mt = { class: "app-toggle__container" }, Rt = ["checked", "disabled"], Pt = { class: "app-toggle__thumb" }, At = {
947
+ }, Rt = { class: "app-toggle__container" }, Mt = ["checked", "disabled"], Pt = { class: "app-toggle__thumb" }, At = {
948
948
  key: 1,
949
949
  class: "app-toggle__label"
950
950
  }, zt = /* @__PURE__ */ F({
951
951
  __name: "AppToggle",
952
952
  props: {
953
953
  modelValue: { type: Boolean },
954
- size: { default: k.MD },
954
+ size: { default: B.MD },
955
955
  label: {},
956
956
  disabled: { type: Boolean },
957
957
  color: { default: Le.PRIMARY },
@@ -970,37 +970,37 @@ const wt = ee({
970
970
  }), r = c(() => [
971
971
  "app-toggle",
972
972
  {
973
- "app-toggle_sm": a.size === k.SM,
974
- "app-toggle_md": a.size === k.MD,
975
- "app-toggle_lg": a.size === k.LG,
973
+ "app-toggle_sm": a.size === B.SM,
974
+ "app-toggle_md": a.size === B.MD,
975
+ "app-toggle_lg": a.size === B.LG,
976
976
  "app-toggle_active": o.value,
977
977
  "app-toggle_disabled": a.disabled
978
978
  },
979
979
  `app-toggle_${a.color}`
980
980
  ]);
981
- return (l, s) => (B(), C("div", {
982
- class: R(r.value)
981
+ return (l, s) => (S(), C("div", {
982
+ class: M(r.value)
983
983
  }, [
984
- l.label && l.labelLeft ? (B(), C("span", Et, H(l.label), 1)) : T("", !0),
985
- D("label", Mt, [
984
+ l.label && l.labelLeft ? (S(), C("span", Et, H(l.label), 1)) : T("", !0),
985
+ D("label", Rt, [
986
986
  D("input", {
987
987
  type: "checkbox",
988
988
  checked: o.value,
989
- onChange: s[0] || (s[0] = (_) => o.value = !o.value),
989
+ onChange: s[0] || (s[0] = (k) => o.value = !o.value),
990
990
  disabled: l.disabled,
991
991
  class: "app-toggle__input"
992
- }, null, 40, Rt),
992
+ }, null, 40, Mt),
993
993
  D("span", {
994
- class: R(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
994
+ class: M(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
995
995
  }, [
996
996
  D("span", Pt, [
997
- l.icon && !l.modelValue ? (B(), C("i", {
997
+ l.icon && !l.modelValue ? (S(), C("i", {
998
998
  key: 0,
999
- class: R(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
999
+ class: M(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
1000
1000
  }, null, 2)) : T("", !0),
1001
- l.modelValue && (l.iconActive || l.icon) ? (B(), C("i", {
1001
+ l.modelValue && (l.iconActive || l.icon) ? (S(), C("i", {
1002
1002
  key: 1,
1003
- class: R([
1003
+ class: M([
1004
1004
  "icon-kl",
1005
1005
  `icon-kl-${l.iconActive || l.icon}`,
1006
1006
  "app-toggle__icon",
@@ -1011,10 +1011,10 @@ const wt = ee({
1011
1011
  ], 2),
1012
1012
  re(l.$slots, "default", {}, void 0, !0)
1013
1013
  ]),
1014
- l.label && !l.labelLeft ? (B(), C("span", At, H(l.label), 1)) : T("", !0)
1014
+ l.label && !l.labelLeft ? (S(), C("span", At, H(l.label), 1)) : T("", !0)
1015
1015
  ], 2));
1016
1016
  }
1017
- }), un = /* @__PURE__ */ X(zt, [["__scopeId", "data-v-e0e56123"]]), Tt = /* @__PURE__ */ F({
1017
+ }), un = /* @__PURE__ */ G(zt, [["__scopeId", "data-v-e0e56123"]]), Tt = /* @__PURE__ */ F({
1018
1018
  __name: "AppIcon",
1019
1019
  props: {
1020
1020
  name: {},
@@ -1022,12 +1022,12 @@ const wt = ee({
1022
1022
  color: {}
1023
1023
  },
1024
1024
  setup(e) {
1025
- return (t, a) => (B(), C("i", {
1026
- class: R(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1025
+ return (t, a) => (S(), C("i", {
1026
+ class: M(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1027
1027
  style: ue(t.size ? `font-size: ${t.size}` : void 0)
1028
1028
  }, null, 6));
1029
1029
  }
1030
- }), cn = /* @__PURE__ */ X(Tt, [["__scopeId", "data-v-941765ee"]]), Ot = {
1030
+ }), cn = /* @__PURE__ */ G(Tt, [["__scopeId", "data-v-941765ee"]]), Ot = {
1031
1031
  dark: {
1032
1032
  type: Boolean,
1033
1033
  default: null
@@ -1048,7 +1048,7 @@ function qe(e, t, a) {
1048
1048
  transform: t === !0 ? `translateX(${a.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
1049
1049
  };
1050
1050
  }
1051
- const jt = ee({
1051
+ const xt = ee({
1052
1052
  name: "QLinearProgress",
1053
1053
  props: {
1054
1054
  ...Ot,
@@ -1075,11 +1075,11 @@ const jt = ee({
1075
1075
  const { proxy: a } = Z(), n = Dt(e, a.$q), o = fe(e, It), r = c(() => e.indeterminate === !0 || e.query === !0), l = c(() => e.reverse !== e.query), s = c(() => ({
1076
1076
  ...o.value !== null ? o.value : {},
1077
1077
  "--q-linear-progress-speed": `${e.animationSpeed}ms`
1078
- })), _ = c(
1078
+ })), k = c(
1079
1079
  () => "q-linear-progress" + (e.color !== void 0 ? ` text-${e.color}` : "") + (e.reverse === !0 || e.query === !0 ? " q-linear-progress--reverse" : "") + (e.rounded === !0 ? " rounded-borders" : "")
1080
- ), b = c(() => qe(e.buffer !== void 0 ? e.buffer : 1, l.value, a.$q)), f = c(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), $ = c(
1080
+ ), b = c(() => qe(e.buffer !== void 0 ? e.buffer : 1, l.value, a.$q)), f = c(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), _ = c(
1081
1081
  () => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${n.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
1082
- ), d = c(() => qe(r.value === !0 ? 1 : e.value, l.value, a.$q)), S = c(
1082
+ ), d = c(() => qe(r.value === !0 ? 1 : e.value, l.value, a.$q)), q = c(
1083
1083
  () => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${r.value === !0 ? "in" : ""}determinate`
1084
1084
  ), u = c(() => ({ width: `${e.value * 100}%` })), g = c(
1085
1085
  () => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
@@ -1087,11 +1087,11 @@ const jt = ee({
1087
1087
  return () => {
1088
1088
  const v = [
1089
1089
  m("div", {
1090
- class: $.value,
1090
+ class: _.value,
1091
1091
  style: b.value
1092
1092
  }),
1093
1093
  m("div", {
1094
- class: S.value,
1094
+ class: q.value,
1095
1095
  style: d.value
1096
1096
  })
1097
1097
  ];
@@ -1101,7 +1101,7 @@ const jt = ee({
1101
1101
  style: u.value
1102
1102
  })
1103
1103
  ), m("div", {
1104
- class: _.value,
1104
+ class: k.value,
1105
1105
  style: s.value,
1106
1106
  role: "progressbar",
1107
1107
  "aria-valuemin": 0,
@@ -1110,14 +1110,14 @@ const jt = ee({
1110
1110
  }, N(t.default, v));
1111
1111
  };
1112
1112
  }
1113
- }), xt = {
1113
+ }), jt = {
1114
1114
  key: 0,
1115
1115
  class: "code-field__label"
1116
1116
  }, Vt = { class: "code-field__inputs" }, Kt = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Nt = /* @__PURE__ */ F({
1117
1117
  __name: "AppCodeInput",
1118
1118
  props: {
1119
1119
  length: { default: 5 },
1120
- size: { default: k.MD },
1120
+ size: { default: B.MD },
1121
1121
  label: {},
1122
1122
  disabled: { type: Boolean },
1123
1123
  loading: { type: Boolean },
@@ -1129,20 +1129,18 @@ const jt = ee({
1129
1129
  const n = e, o = a, r = J(Array(n.length).fill("")), l = J([]), s = c(() => [
1130
1130
  "code-field",
1131
1131
  {
1132
- "code-field_sm": n.size === k.SM,
1133
- "code-field_md": n.size === k.MD,
1134
- "code-field_lg": n.size === k.LG,
1135
1132
  "code-field_disabled": n.disabled || n.loading
1136
1133
  },
1134
+ `code-field_${n.size}`,
1137
1135
  `code-field_${n.color}`
1138
- ]), _ = c(() => {
1136
+ ]), k = c(() => {
1139
1137
  let u = "";
1140
- return n.size == k.SM && (u += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == k.MD && (u += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == k.LG && (u += `width: ${n.length * 44 + (n.length - 1) * 10}px`), u;
1138
+ return n.size == B.SM && (u += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == B.MD && (u += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == B.LG && (u += `width: ${n.length * 44 + (n.length - 1) * 10}px`), u;
1141
1139
  }), b = (u, g) => {
1142
- var q;
1140
+ var $;
1143
1141
  const p = u.target.value;
1144
1142
  if (p.length === 1)
1145
- g < n.length - 1 && l.value && ((q = l.value[g + 1]) == null || q.focus());
1143
+ g < n.length - 1 && l.value && (($ = l.value[g + 1]) == null || $.focus());
1146
1144
  else if (p.length > 1) {
1147
1145
  const w = p.slice(0, n.length - g).split("");
1148
1146
  w.forEach((L, h) => {
@@ -1155,10 +1153,10 @@ const jt = ee({
1155
1153
  }, f = (u) => {
1156
1154
  var g;
1157
1155
  r.value[u] === "" && l.value && u > 0 && ((g = l.value[u - 1]) == null || g.focus());
1158
- }, $ = (u, g) => {
1159
- var q;
1156
+ }, _ = (u, g) => {
1157
+ var $;
1160
1158
  u.preventDefault();
1161
- const v = ((q = u.clipboardData) == null ? void 0 : q.getData("text")) ?? "";
1159
+ const v = (($ = u.clipboardData) == null ? void 0 : $.getData("text")) ?? "";
1162
1160
  if (!v) return;
1163
1161
  const p = v.slice(0, n.length - g).split("");
1164
1162
  p.forEach((w, L) => {
@@ -1168,7 +1166,7 @@ const jt = ee({
1168
1166
  l.value && ((w = l.value[Math.min(g + p.length, n.length - 1)]) == null || w.focus());
1169
1167
  });
1170
1168
  };
1171
- je(
1169
+ xe(
1172
1170
  r,
1173
1171
  (u) => {
1174
1172
  const g = u.join("");
@@ -1178,22 +1176,22 @@ const jt = ee({
1178
1176
  );
1179
1177
  const d = (u) => {
1180
1178
  o("update:modelValue", u), u.length === n.length && !u.includes(" ") && o("completed", u);
1181
- }, S = (u) => {
1179
+ }, q = (u) => {
1182
1180
  u && (r.value = u.split("").slice(0, n.length));
1183
1181
  };
1184
- return xe(() => {
1182
+ return je(() => {
1185
1183
  n.autofocus && l.value && l.value[0] && l.value[0].focus();
1186
1184
  }), t({
1187
- injectCode: S
1188
- }), (u, g) => (B(), C("div", {
1189
- class: R(s.value),
1190
- style: ue(_.value)
1185
+ injectCode: q
1186
+ }), (u, g) => (S(), C("div", {
1187
+ class: M(s.value),
1188
+ style: ue(k.value)
1191
1189
  }, [
1192
- u.label ? (B(), C("label", xt, H(u.label), 1)) : T("", !0),
1190
+ u.label ? (S(), C("label", jt, H(u.label), 1)) : T("", !0),
1193
1191
  D("div", Vt, [
1194
- (B(!0), C(ie, null, we(u.length, (v, p) => se((B(), C("input", {
1192
+ (S(!0), C(ie, null, Be(u.length, (v, p) => se((S(), C("input", {
1195
1193
  key: p,
1196
- "onUpdate:modelValue": (q) => r.value[p] = q,
1194
+ "onUpdate:modelValue": ($) => r.value[p] = $,
1197
1195
  ref_for: !0,
1198
1196
  ref_key: "inputRefs",
1199
1197
  ref: l,
@@ -1201,14 +1199,14 @@ const jt = ee({
1201
1199
  maxlength: "1",
1202
1200
  class: "code-field__input",
1203
1201
  disabled: u.disabled || u.loading,
1204
- onInput: (q) => b(q, p),
1205
- onKeydown: Ve((q) => f(p), ["backspace"]),
1206
- onPaste: (q) => $(q, p)
1202
+ onInput: ($) => b($, p),
1203
+ onKeydown: Ve(($) => f(p), ["backspace"]),
1204
+ onPaste: ($) => _($, p)
1207
1205
  }, null, 40, Kt)), [
1208
1206
  [Ke, r.value[p]]
1209
1207
  ])), 128))
1210
1208
  ]),
1211
- u.loading ? (B(), Be(jt, {
1209
+ u.loading ? (S(), Ce(xt, {
1212
1210
  key: 1,
1213
1211
  indeterminate: "",
1214
1212
  rounded: "",
@@ -1217,12 +1215,12 @@ const jt = ee({
1217
1215
  }, null, 8, ["color"])) : T("", !0)
1218
1216
  ], 6));
1219
1217
  }
1220
- }), dn = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-8d579e24"]]), Ft = { class: "app-segment__track" }, Qt = { class: "app-segment__buttons" }, Gt = ["onClick", "disabled"], Ut = /* @__PURE__ */ F({
1218
+ }), dn = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4e11db87"]]), Ft = { class: "app-segment__track" }, Qt = { class: "app-segment__buttons" }, Ut = ["onClick", "disabled"], Xt = /* @__PURE__ */ F({
1221
1219
  __name: "AppSegment",
1222
1220
  props: /* @__PURE__ */ Ne({
1223
1221
  options: {},
1224
1222
  disabled: { type: Boolean },
1225
- size: { default: k.MD }
1223
+ size: { default: B.MD }
1226
1224
  }, {
1227
1225
  modelValue: {},
1228
1226
  modelModifiers: {}
@@ -1235,8 +1233,8 @@ const jt = ee({
1235
1233
  function o(r) {
1236
1234
  a.disabled || (t.value = r);
1237
1235
  }
1238
- return (r, l) => (B(), C("div", {
1239
- class: R(["app-segment", [{ "app-segment_disabled": r.disabled }, `app-segment_${r.size}`]])
1236
+ return (r, l) => (S(), C("div", {
1237
+ class: M(["app-segment", [{ "app-segment_disabled": r.disabled }, `app-segment_${r.size}`]])
1240
1238
  }, [
1241
1239
  D("div", Ft, [
1242
1240
  D("div", {
@@ -1248,25 +1246,25 @@ const jt = ee({
1248
1246
  }, null, 4)
1249
1247
  ]),
1250
1248
  D("div", Qt, [
1251
- (B(!0), C(ie, null, we(r.options, (s, _) => (B(), C("button", {
1252
- key: _,
1253
- class: R(["app-segment__btn", { active: t.value === s.value }]),
1249
+ (S(!0), C(ie, null, Be(r.options, (s, k) => (S(), C("button", {
1250
+ key: k,
1251
+ class: M(["app-segment__btn", { active: t.value === s.value }]),
1254
1252
  onClick: (b) => o(s.value),
1255
1253
  disabled: r.disabled
1256
1254
  }, [
1257
1255
  re(r.$slots, "option", { option: s }, () => [
1258
- Ce(H(s.label), 1)
1256
+ we(H(s.label), 1)
1259
1257
  ], !0)
1260
- ], 10, Gt))), 128))
1258
+ ], 10, Ut))), 128))
1261
1259
  ])
1262
1260
  ], 2));
1263
1261
  }
1264
- }), fn = /* @__PURE__ */ X(Ut, [["__scopeId", "data-v-ff56abdf"]]), vn = ce(
1265
- () => import("./AppButtonCopy-BAsaHaa4.js")
1262
+ }), fn = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-ff56abdf"]]), vn = ce(
1263
+ () => import("./AppButtonCopy-Dj46pNGB.js")
1266
1264
  ), gn = ce(
1267
- () => import("./AppSelect-WIENN4a-.js")
1265
+ () => import("./AppSelect-ztwsDF-p.js")
1268
1266
  ), pn = ce(
1269
- () => import("./DropdownButton-DUUK14vz.js")
1267
+ () => import("./DropdownButton-BE2k1gTw.js")
1270
1268
  );
1271
1269
  export {
1272
1270
  rn as A,
@@ -1287,9 +1285,9 @@ export {
1287
1285
  cn as P,
1288
1286
  me as Q,
1289
1287
  dt as R,
1290
- k as S,
1291
- Xt as T,
1292
- X as _,
1288
+ B as S,
1289
+ Gt as T,
1290
+ G as _,
1293
1291
  Ot as a,
1294
1292
  Dt as b,
1295
1293
  ee as c,
@@ -1297,7 +1295,7 @@ export {
1297
1295
  N as e,
1298
1296
  on as f,
1299
1297
  yt as g,
1300
- Ue as h,
1298
+ Xe as h,
1301
1299
  oe as i,
1302
1300
  Yt as j,
1303
1301
  at as k,
@@ -1308,12 +1306,12 @@ export {
1308
1306
  st as p,
1309
1307
  en as q,
1310
1308
  tn as r,
1311
- j as s,
1309
+ x as s,
1312
1310
  ut as t,
1313
1311
  de as u,
1314
1312
  Pe as v,
1315
1313
  St as w,
1316
1314
  sn as x,
1317
- wt as y,
1315
+ Bt as y,
1318
1316
  rt as z
1319
1317
  };