@validol4ik/uikit 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { computed as r, markRaw as Ee, defineComponent as K, h as m, withDirectives as oe, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as Fe, Transition as Qe, createBlock as ae, openBlock as b, normalizeClass as L, withCtx as Ue, createElementBlock as _, createCommentVNode as A, renderSlot as se, Fragment as ie, createTextVNode as Le, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as He, normalizeStyle as re, watch as Xe, onMounted as We, renderList as Pe, withKeys as Ye, vModelText as Ge, nextTick as he, mergeModels as Je, useModel as Ze, defineAsyncComponent as pe } from "vue";
1
+ import { computed as r, markRaw as Ee, defineComponent as K, h as m, withDirectives as oe, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as Fe, Transition as Qe, createBlock as ae, openBlock as b, normalizeClass as P, withCtx as Ue, createElementBlock as _, createCommentVNode as A, renderSlot as se, Fragment as ie, createTextVNode as Pe, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as He, normalizeStyle as re, watch as Xe, onMounted as We, renderList as Le, withKeys as Ye, vModelText as Ge, nextTick as he, mergeModels as Je, useModel as Ze, defineAsyncComponent as ge } from "vue";
2
2
  const _n = ({ app: e }) => {
3
3
  const t = e.config.globalProperties.$q;
4
4
  t.iconMapFn = (n) => {
@@ -82,7 +82,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
82
82
  sym_o_: "-outlined",
83
83
  sym_r_: "-rounded",
84
84
  sym_s_: "-sharp"
85
- }, tt = new RegExp("^(" + Object.keys(Ve).join("|") + ")"), nt = new RegExp("^(" + Object.keys(Ie).join("|") + ")"), ke = new RegExp("^(" + Object.keys(Te).join("|") + ")"), at = /^[Mm]\s?[-+]?\.?\d/, lt = /^img:/, ot = /^svguse:/, st = /^ion-/, it = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, ge = te({
85
+ }, tt = new RegExp("^(" + Object.keys(Ve).join("|") + ")"), nt = new RegExp("^(" + Object.keys(Ie).join("|") + ")"), ke = new RegExp("^(" + Object.keys(Te).join("|") + ")"), at = /^[Mm]\s?[-+]?\.?\d/, lt = /^img:/, ot = /^svguse:/, st = /^ion-/, it = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, pe = te({
86
86
  name: "QIcon",
87
87
  props: {
88
88
  ...ue,
@@ -120,8 +120,8 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
120
120
  svg: !0,
121
121
  viewBox: S,
122
122
  nodes: f.split("&&").map((d) => {
123
- const [q, u, g] = d.split("@@");
124
- return m("path", { style: u, d: q, transform: g });
123
+ const [q, u, p] = d.split("@@");
124
+ return m("path", { style: u, d: q, transform: p });
125
125
  })
126
126
  };
127
127
  }
@@ -316,13 +316,13 @@ function mt(e, t) {
316
316
  a[0].removeEventListener(a[1], e[a[2]], de[a[3]]);
317
317
  }), e[n] = void 0);
318
318
  }
319
- function gt(e) {
319
+ function pt(e) {
320
320
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
321
321
  }
322
322
  function le(e, t) {
323
- return gt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
323
+ return pt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
324
324
  }
325
- function pt(e, t = 250) {
325
+ function gt(e, t = 250) {
326
326
  let n = !1, a;
327
327
  return function() {
328
328
  return n === !1 && (n = !0, setTimeout(() => {
@@ -335,7 +335,7 @@ function ye(e, t, n, a) {
335
335
  const s = n.modifiers.color;
336
336
  let l = n.modifiers.center;
337
337
  l = l === !0 || a === !0;
338
- const o = document.createElement("span"), i = document.createElement("span"), $ = dt(e), { left: y, top: f, width: S, height: d } = t.getBoundingClientRect(), q = Math.sqrt(S * S + d * d), u = q / 2, g = `${(S - q) / 2}px`, v = l ? g : `${$.left - y - u}px`, h = `${(d - q) / 2}px`, C = l ? h : `${$.top - f - u}px`;
338
+ const o = document.createElement("span"), i = document.createElement("span"), $ = dt(e), { left: y, top: f, width: S, height: d } = t.getBoundingClientRect(), q = Math.sqrt(S * S + d * d), u = q / 2, p = `${(S - q) / 2}px`, v = l ? p : `${$.left - y - u}px`, h = `${(d - q) / 2}px`, C = l ? h : `${$.top - f - u}px`;
339
339
  i.className = "q-ripple__inner", ct(i, {
340
340
  height: `${q}px`,
341
341
  width: `${q}px`,
@@ -347,7 +347,7 @@ function ye(e, t, n, a) {
347
347
  };
348
348
  n.abort.push(w);
349
349
  let E = setTimeout(() => {
350
- i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${g},${h},0) scale3d(1,1,1)`, i.style.opacity = 0.2, E = setTimeout(() => {
350
+ i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${p},${h},0) scale3d(1,1,1)`, i.style.opacity = 0.2, E = setTimeout(() => {
351
351
  i.classList.remove("q-ripple__inner--enter"), i.classList.add("q-ripple__inner--leave"), i.style.opacity = 0, E = setTimeout(() => {
352
352
  o.remove(), n.abort.splice(n.abort.indexOf(w), 1);
353
353
  }, 275);
@@ -378,7 +378,7 @@ const ht = Me(
378
378
  start(s) {
379
379
  a.enabled === !0 && s.qSkipRipple !== !0 && s.type === (a.modifiers.early === !0 ? "pointerdown" : "click") && ye(s, e, a, s.qKeyEvent === !0);
380
380
  },
381
- keystart: pt((s) => {
381
+ keystart: gt((s) => {
382
382
  a.enabled === !0 && s.qSkipRipple !== !0 && le(s, a.modifiers.keyCodes) === !0 && s.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && ye(s, e, a, !0);
383
383
  }, 300)
384
384
  };
@@ -435,7 +435,7 @@ function ne(e) {
435
435
  function _t(e) {
436
436
  return e.appContext.config.globalProperties.$router !== void 0;
437
437
  }
438
- function Ln(e) {
438
+ function Pn(e) {
439
439
  return e.isUnmounted === !0 || e.isDeactivated === !0;
440
440
  }
441
441
  function $e(e) {
@@ -478,7 +478,7 @@ const De = {
478
478
  target: String,
479
479
  // state
480
480
  disable: Boolean
481
- }, Pn = {
481
+ }, Ln = {
482
482
  ...De,
483
483
  // router-link
484
484
  exact: Boolean,
@@ -505,7 +505,7 @@ function Ct({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
505
505
  } : {}), u = r(() => {
506
506
  if (f.value === !1)
507
507
  return -1;
508
- const { matched: k } = y.value, { length: P } = k, R = k[P - 1];
508
+ const { matched: k } = y.value, { length: L } = k, R = k[L - 1];
509
509
  if (R === void 0)
510
510
  return -1;
511
511
  const O = s.$route.matched;
@@ -516,18 +516,18 @@ function Ct({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
516
516
  );
517
517
  if (j !== -1)
518
518
  return j;
519
- const F = $e(k[P - 2]);
519
+ const F = $e(k[L - 2]);
520
520
  return (
521
521
  // we are dealing with nested routes
522
- P > 1 && $e(R) === F && O[O.length - 1].path !== F ? O.findIndex(
523
- qe.bind(null, k[P - 2])
522
+ L > 1 && $e(R) === F && O[O.length - 1].path !== F ? O.findIndex(
523
+ qe.bind(null, k[L - 2])
524
524
  ) : j
525
525
  );
526
- }), g = r(
526
+ }), p = r(
527
527
  () => f.value === !0 && u.value !== -1 && $t(s.$route.params, y.value.params)
528
528
  ), v = r(
529
- () => g.value === !0 && u.value === s.$route.matched.length - 1 && St(s.$route.params, y.value.params)
530
- ), h = r(() => f.value === !0 ? v.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : g.value === !0 ? ` ${a.activeClass}` : "" : "");
529
+ () => p.value === !0 && u.value === s.$route.matched.length - 1 && St(s.$route.params, y.value.params)
530
+ ), h = r(() => f.value === !0 ? v.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : p.value === !0 ? ` ${a.activeClass}` : "" : "");
531
531
  function C(k) {
532
532
  try {
533
533
  return s.$router.resolve(k);
@@ -535,7 +535,7 @@ function Ct({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
535
535
  }
536
536
  return null;
537
537
  }
538
- function w(k, { returnRouterError: P, to: R = a.to, replace: O = a.replace } = {}) {
538
+ function w(k, { returnRouterError: L, to: R = a.to, replace: O = a.replace } = {}) {
539
539
  if (a.disable === !0)
540
540
  return k.preventDefault(), Promise.resolve(!1);
541
541
  if (
@@ -546,14 +546,14 @@ function Ct({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
546
546
  return Promise.resolve(!1);
547
547
  k.preventDefault();
548
548
  const j = s.$router[O === !0 ? "replace" : "push"](R);
549
- return P === !0 ? j : j.then(() => {
549
+ return L === !0 ? j : j.then(() => {
550
550
  }).catch(() => {
551
551
  });
552
552
  }
553
553
  function E(k) {
554
554
  if (f.value === !0) {
555
- const P = (R) => w(k, R);
556
- l("click", k, P), k.defaultPrevented !== !0 && P();
555
+ const L = (R) => w(k, R);
556
+ l("click", k, L), k.defaultPrevented !== !0 && L();
557
557
  } else
558
558
  l("click", k);
559
559
  }
@@ -563,7 +563,7 @@ function Ct({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
563
563
  hasLink: S,
564
564
  linkTag: d,
565
565
  resolvedLink: y,
566
- linkIsActive: g,
566
+ linkIsActive: p,
567
567
  linkIsExactActive: v,
568
568
  linkClass: h,
569
569
  linkAttrs: q,
@@ -585,7 +585,7 @@ const Ce = {
585
585
  md: 14,
586
586
  lg: 20,
587
587
  xl: 24
588
- }, wt = ["button", "submit", "reset"], Et = /[^\s]\/[^\s]/, Lt = ["flat", "outline", "push", "unelevated"];
588
+ }, wt = ["button", "submit", "reset"], Et = /[^\s]\/[^\s]/, Pt = ["flat", "outline", "push", "unelevated"];
589
589
  function xe(e, t) {
590
590
  return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
591
591
  }
@@ -593,7 +593,7 @@ function Rn(e) {
593
593
  const t = xe(e);
594
594
  return t !== void 0 ? { [t]: !0 } : {};
595
595
  }
596
- const Pt = {
596
+ const Lt = {
597
597
  ...ue,
598
598
  ...De,
599
599
  type: {
@@ -603,7 +603,7 @@ const Pt = {
603
603
  label: [Number, String],
604
604
  icon: String,
605
605
  iconRight: String,
606
- ...Lt.reduce(
606
+ ...Pt.reduce(
607
607
  (e, t) => (e[t] = Boolean) && e,
608
608
  {}
609
609
  ),
@@ -636,7 +636,7 @@ const Pt = {
636
636
  },
637
637
  disable: Boolean
638
638
  }, Rt = {
639
- ...Pt,
639
+ ...Lt,
640
640
  round: Boolean
641
641
  };
642
642
  function Mt(e) {
@@ -666,13 +666,13 @@ function Mt(e) {
666
666
  e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? v = `text-${e.textColor || e.color}` : v = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (v = `text-${e.textColor}`);
667
667
  const h = e.round === !0 ? "round" : `rectangle${y.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
668
668
  return `q-btn--${d.value} q-btn--${h}` + (v !== void 0 ? " " + v : "") + (f.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" : "");
669
- }), g = r(
669
+ }), p = r(
670
670
  () => n.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
671
671
  );
672
672
  return {
673
673
  classes: u,
674
674
  style: $,
675
- innerClasses: g,
675
+ innerClasses: p,
676
676
  attributes: q,
677
677
  hasLink: s,
678
678
  linkTag: l,
@@ -702,7 +702,7 @@ const At = te({
702
702
  navigateOnClick: f,
703
703
  isActionable: S
704
704
  } = Mt(e), d = W(null), q = W(null);
705
- let u = null, g, v = null;
705
+ let u = null, p, v = null;
706
706
  const h = r(
707
707
  () => e.label !== void 0 && e.label !== null && e.label !== ""
708
708
  ), C = r(() => e.disable === !0 || e.ripple === !1 ? !1 : {
@@ -736,7 +736,7 @@ const At = te({
736
736
  // needed; especially for disabled <a> tags
737
737
  onClick: D
738
738
  };
739
- }), P = r(() => ({
739
+ }), L = r(() => ({
740
740
  ref: d,
741
741
  class: "q-btn q-btn-item non-selectable no-outline " + s.value,
742
742
  style: l.value,
@@ -761,15 +761,15 @@ const At = te({
761
761
  }
762
762
  }
763
763
  function O(c) {
764
- d.value !== null && (n("keydown", c), le(c, [13, 32]) === !0 && H !== d.value && (H !== null && p(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", V, !0), d.value.addEventListener("blur", V, I)), D(c)));
764
+ d.value !== null && (n("keydown", c), le(c, [13, 32]) === !0 && H !== d.value && (H !== null && g(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", V, !0), d.value.addEventListener("blur", V, I)), D(c)));
765
765
  }
766
766
  function j(c) {
767
- d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && p(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)), g = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
768
- v = null, g = !1;
767
+ d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && g(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)), p = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
768
+ v = null, p = !1;
769
769
  }, 200)));
770
770
  }
771
771
  function F(c) {
772
- d.value !== null && (c.qSkipRipple = g === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && p(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", V, I)));
772
+ d.value !== null && (c.qSkipRipple = p === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && g(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", V, I)));
773
773
  }
774
774
  function V(c) {
775
775
  if (d.value !== null && !((c == null ? void 0 : c.type) === "blur" && document.activeElement === d.value)) {
@@ -780,10 +780,10 @@ const At = te({
780
780
  }
781
781
  n("keyup", c);
782
782
  }
783
- p();
783
+ g();
784
784
  }
785
785
  }
786
- function p(c) {
786
+ function g(c) {
787
787
  var x, J;
788
788
  const B = q.value;
789
789
  c !== !0 && (U === d.value || X === d.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", V, I), u.removeEventListener("touchend", V, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", V, I), X = null), H === d.value && (document.removeEventListener("keyup", V, !0), (x = d.value) == null || x.removeEventListener("blur", V, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
@@ -792,7 +792,7 @@ const At = te({
792
792
  D(c), c.qSkipRipple = !0;
793
793
  }
794
794
  return Fe(() => {
795
- p(!0);
795
+ g(!0);
796
796
  }), Object.assign(a, {
797
797
  click: (c) => {
798
798
  S.value === !0 && R(c);
@@ -800,7 +800,7 @@ const At = te({
800
800
  }), () => {
801
801
  let c = [];
802
802
  e.icon !== void 0 && c.push(
803
- m(ge, {
803
+ m(pe, {
804
804
  name: e.icon,
805
805
  left: e.stack !== !0 && h.value === !0,
806
806
  role: "img"
@@ -808,7 +808,7 @@ const At = te({
808
808
  ), h.value === !0 && c.push(
809
809
  m("span", { class: "block" }, [e.label])
810
810
  ), c = N(t.default, c), e.iconRight !== void 0 && e.round === !1 && c.push(
811
- m(ge, {
811
+ m(pe, {
812
812
  name: e.iconRight,
813
813
  right: e.stack !== !0 && h.value === !0,
814
814
  role: "img"
@@ -845,7 +845,7 @@ const At = te({
845
845
  ), oe(
846
846
  m(
847
847
  y.value,
848
- P.value,
848
+ L.value,
849
849
  B
850
850
  ),
851
851
  [[
@@ -897,7 +897,7 @@ const At = te({
897
897
  return (a, s) => (b(), ae(Z(At), {
898
898
  "no-caps": "",
899
899
  unelevated: "",
900
- class: L(n.value),
900
+ class: P(n.value),
901
901
  padding: Z(et)[a.size || Z(z).MD],
902
902
  loading: a.loading,
903
903
  disable: a.disabled || void 0,
@@ -912,7 +912,7 @@ const At = te({
912
912
  default: Ue(() => [
913
913
  a.iconLeft || a.iconMiddle ? (b(), _("i", {
914
914
  key: 0,
915
- class: L([
915
+ class: P([
916
916
  "icon-kl",
917
917
  a.iconLeft ? "icon-kl_left" : "icon-kl_middle",
918
918
  `icon-kl-${a.iconLeft || a.iconMiddle}`,
@@ -921,11 +921,11 @@ const At = te({
921
921
  }, null, 2)) : A("", !0),
922
922
  se(a.$slots, "default", {}, void 0, !0),
923
923
  a.label ? (b(), _(ie, { key: 1 }, [
924
- Le(Y(a.label), 1)
924
+ Pe(Y(a.label), 1)
925
925
  ], 64)) : A("", !0),
926
926
  a.iconRight ? (b(), _("i", {
927
927
  key: 2,
928
- class: L([
928
+ class: P([
929
929
  "icon-kl",
930
930
  "icon-kl_right",
931
931
  `icon-kl-${a.iconRight}`,
@@ -977,7 +977,7 @@ const At = te({
977
977
  `app-toggle_${n.color}`
978
978
  ]);
979
979
  return (o, i) => (b(), _("div", {
980
- class: L(l.value)
980
+ class: P(l.value)
981
981
  }, [
982
982
  o.label && o.labelLeft ? (b(), _("span", It, Y(o.label), 1)) : A("", !0),
983
983
  T("label", Tt, [
@@ -989,16 +989,16 @@ const At = te({
989
989
  class: "app-toggle__input"
990
990
  }, null, 40, zt),
991
991
  T("span", {
992
- class: L(["app-toggle__slider", s.value ? `bg-${o.color}` : ""])
992
+ class: P(["app-toggle__slider", s.value ? `bg-${o.color}` : ""])
993
993
  }, [
994
994
  T("span", Ot, [
995
995
  o.icon && !o.modelValue ? (b(), _("i", {
996
996
  key: 0,
997
- class: L(["icon-kl", `icon-kl-${o.icon}`, "app-toggle__icon"])
997
+ class: P(["icon-kl", `icon-kl-${o.icon}`, "app-toggle__icon"])
998
998
  }, null, 2)) : A("", !0),
999
999
  o.modelValue && (o.iconActive || o.icon) ? (b(), _("i", {
1000
1000
  key: 1,
1001
- class: L([
1001
+ class: P([
1002
1002
  "icon-kl",
1003
1003
  `icon-kl-${o.iconActive || o.icon}`,
1004
1004
  "app-toggle__icon",
@@ -1090,65 +1090,65 @@ function Xt(e, t) {
1090
1090
  const { props: n, slots: a, emit: s, proxy: l } = ee(), { $q: o } = l, i = Ke(n, o), $ = W(null), { refocusTargetEl: y, refocusTarget: f } = Nt(n, $), S = ce(n, Qt), d = r(
1091
1091
  () => n.val !== void 0 && Array.isArray(n.modelValue)
1092
1092
  ), q = r(() => {
1093
- const p = Q(n.val);
1094
- return d.value === !0 ? n.modelValue.findIndex((M) => Q(M) === p) : -1;
1095
- }), u = r(() => d.value === !0 ? q.value !== -1 : Q(n.modelValue) === Q(n.trueValue)), g = r(() => d.value === !0 ? q.value === -1 : Q(n.modelValue) === Q(n.falseValue)), v = r(
1096
- () => u.value === !1 && g.value === !1
1093
+ const g = Q(n.val);
1094
+ return d.value === !0 ? n.modelValue.findIndex((M) => Q(M) === g) : -1;
1095
+ }), u = r(() => d.value === !0 ? q.value !== -1 : Q(n.modelValue) === Q(n.trueValue)), p = r(() => d.value === !0 ? q.value === -1 : Q(n.modelValue) === Q(n.falseValue)), v = r(
1096
+ () => u.value === !1 && p.value === !1
1097
1097
  ), h = r(() => n.disable === !0 ? -1 : n.tabindex || 0), C = r(
1098
1098
  () => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (n.disable === !0 ? " disabled" : "") + (i.value === !0 ? ` q-${e}--dark` : "") + (n.dense === !0 ? ` q-${e}--dense` : "") + (n.leftLabel === !0 ? " reverse" : "")
1099
1099
  ), w = r(() => {
1100
- const p = u.value === !0 ? "truthy" : g.value === !0 ? "falsy" : "indet", M = n.color !== void 0 && (n.keepColor === !0 || g.value !== !0) ? ` text-${n.color}` : "";
1101
- return `q-${e}__inner relative-position non-selectable q-${e}__inner--${p}${M}`;
1100
+ const g = u.value === !0 ? "truthy" : p.value === !0 ? "falsy" : "indet", M = n.color !== void 0 && (n.keepColor === !0 || p.value !== !0) ? ` text-${n.color}` : "";
1101
+ return `q-${e}__inner relative-position non-selectable q-${e}__inner--${g}${M}`;
1102
1102
  }), E = r(() => {
1103
- const p = { type: "checkbox" };
1104
- return n.name !== void 0 && Object.assign(p, {
1103
+ const g = { type: "checkbox" };
1104
+ return n.name !== void 0 && Object.assign(g, {
1105
1105
  // see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
1106
1106
  ".checked": u.value,
1107
1107
  "^checked": u.value === !0 ? "checked" : void 0,
1108
1108
  name: n.name,
1109
1109
  value: d.value === !0 ? n.val : n.trueValue
1110
- }), p;
1111
- }), k = Ft(E), P = r(() => {
1112
- const p = {
1110
+ }), g;
1111
+ }), k = Ft(E), L = r(() => {
1112
+ const g = {
1113
1113
  tabindex: h.value,
1114
1114
  role: "checkbox",
1115
1115
  "aria-label": n.label,
1116
1116
  "aria-checked": v.value === !0 ? "mixed" : u.value === !0 ? "true" : "false"
1117
1117
  };
1118
- return n.disable === !0 && (p["aria-disabled"] = "true"), p;
1118
+ return n.disable === !0 && (g["aria-disabled"] = "true"), g;
1119
1119
  });
1120
- function R(p) {
1121
- p !== void 0 && (D(p), f(p)), n.disable !== !0 && s("update:modelValue", O(), p);
1120
+ function R(g) {
1121
+ g !== void 0 && (D(g), f(g)), n.disable !== !0 && s("update:modelValue", O(), g);
1122
1122
  }
1123
1123
  function O() {
1124
1124
  if (d.value === !0) {
1125
1125
  if (u.value === !0) {
1126
- const p = n.modelValue.slice();
1127
- return p.splice(q.value, 1), p;
1126
+ const g = n.modelValue.slice();
1127
+ return g.splice(q.value, 1), g;
1128
1128
  }
1129
1129
  return n.modelValue.concat([n.val]);
1130
1130
  }
1131
1131
  if (u.value === !0) {
1132
1132
  if (n.toggleOrder !== "ft" || n.toggleIndeterminate === !1)
1133
1133
  return n.falseValue;
1134
- } else if (g.value === !0) {
1134
+ } else if (p.value === !0) {
1135
1135
  if (n.toggleOrder === "ft" || n.toggleIndeterminate === !1)
1136
1136
  return n.trueValue;
1137
1137
  } else
1138
1138
  return n.toggleOrder !== "ft" ? n.trueValue : n.falseValue;
1139
1139
  return n.indeterminateValue;
1140
1140
  }
1141
- function j(p) {
1142
- (p.keyCode === 13 || p.keyCode === 32) && D(p);
1141
+ function j(g) {
1142
+ (g.keyCode === 13 || g.keyCode === 32) && D(g);
1143
1143
  }
1144
- function F(p) {
1145
- (p.keyCode === 13 || p.keyCode === 32) && R(p);
1144
+ function F(g) {
1145
+ (g.keyCode === 13 || g.keyCode === 32) && R(g);
1146
1146
  }
1147
1147
  const V = t(u, v);
1148
1148
  return Object.assign(l, { toggle: R }), () => {
1149
- const p = V();
1149
+ const g = V();
1150
1150
  n.disable !== !0 && k(
1151
- p,
1151
+ g,
1152
1152
  "unshift",
1153
1153
  ` q-${e}__native absolute q-ma-none q-pa-none`
1154
1154
  );
@@ -1157,7 +1157,7 @@ function Xt(e, t) {
1157
1157
  class: w.value,
1158
1158
  style: S.value,
1159
1159
  "aria-hidden": "true"
1160
- }, p)
1160
+ }, g)
1161
1161
  ];
1162
1162
  y.value !== null && M.push(y.value);
1163
1163
  const c = n.label !== void 0 ? N(a.default, [n.label]) : Ae(a.default);
@@ -1168,7 +1168,7 @@ function Xt(e, t) {
1168
1168
  ), m("div", {
1169
1169
  ref: $,
1170
1170
  class: C.value,
1171
- ...P.value,
1171
+ ...L.value,
1172
1172
  onClick: R,
1173
1173
  onKeydown: j,
1174
1174
  onKeyup: F
@@ -1208,7 +1208,7 @@ const Wt = () => m("div", {
1208
1208
  key: "icon",
1209
1209
  class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
1210
1210
  }, [
1211
- m(ge, {
1211
+ m(pe, {
1212
1212
  class: "q-checkbox__icon",
1213
1213
  name: l.value
1214
1214
  })
@@ -1313,13 +1313,13 @@ const tn = Me(
1313
1313
  checked: { type: Boolean },
1314
1314
  isMobile: { type: Boolean }
1315
1315
  },
1316
- emits: ["update:modelValue"],
1316
+ emits: ["update:modelValue", "closePopup"],
1317
1317
  setup(e, { emit: t }) {
1318
1318
  const n = e, a = t, s = () => {
1319
- (n.toggle || n.checkbox) && !n.disabled && a("update:modelValue", !n.modelValue);
1319
+ n.disabled || (n.toggle || n.checkbox) && (a("closePopup"), a("update:modelValue", !n.modelValue));
1320
1320
  };
1321
1321
  return (l, o) => oe((b(), _("div", {
1322
- class: L(["menu-item", [
1322
+ class: P(["menu-item", [
1323
1323
  { "menu-item_gap": l.gap },
1324
1324
  { "menu-item_disabled": l.disabled },
1325
1325
  { "menu-item_active": l.active },
@@ -1328,7 +1328,7 @@ const tn = Me(
1328
1328
  onClick: s
1329
1329
  }, [
1330
1330
  T("div", {
1331
- class: L(["row items-center no-wrap", `text-${l.color ? l.color : "dark"}`])
1331
+ class: P(["row items-center no-wrap", `text-${l.color ? l.color : "dark"}`])
1332
1332
  }, [
1333
1333
  l.loading ? (b(), _("div", nn, [
1334
1334
  He(Z(ze), {
@@ -1348,7 +1348,7 @@ const tn = Me(
1348
1348
  }, null, 8, ["model-value"])) : A("", !0),
1349
1349
  l.icon ? (b(), _("div", ln, [
1350
1350
  T("i", {
1351
- class: L(`icon-kl icon-kl-${l.icon}`),
1351
+ class: P(`icon-kl icon-kl-${l.icon}`),
1352
1352
  style: re({ fontSize: l.iconSize || "27px" })
1353
1353
  }, null, 6)
1354
1354
  ])) : A("", !0)
@@ -1363,7 +1363,7 @@ const tn = Me(
1363
1363
  "onUpdate:modelValue": o[1] || (o[1] = (i) => a("update:modelValue", i))
1364
1364
  }, null, 8, ["model-value", "disabled"])) : l.iconRight ? (b(), _("i", {
1365
1365
  key: 2,
1366
- class: L([
1366
+ class: P([
1367
1367
  "menu-item__icon-right menu-item__icon-right_custom icon-kl",
1368
1368
  `icon-kl-${l.iconRight}`
1369
1369
  ])
@@ -1372,7 +1372,7 @@ const tn = Me(
1372
1372
  [tn, !l.toggle && !l.checkbox && !l.persistent && !l.disabled]
1373
1373
  ]);
1374
1374
  }
1375
- }), Vn = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-756923ba"]]), un = /* @__PURE__ */ K({
1375
+ }), Vn = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-d4331433"]]), un = /* @__PURE__ */ K({
1376
1376
  __name: "AppIcon",
1377
1377
  props: {
1378
1378
  name: {},
@@ -1381,7 +1381,7 @@ const tn = Me(
1381
1381
  },
1382
1382
  setup(e) {
1383
1383
  return (t, n) => (b(), _("i", {
1384
- class: L(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1384
+ class: P(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1385
1385
  style: re(t.size ? `font-size: ${t.size}` : void 0)
1386
1386
  }, null, 6));
1387
1387
  }
@@ -1430,7 +1430,7 @@ const dn = te({
1430
1430
  () => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${a.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
1431
1431
  ), d = r(() => we(l.value === !0 ? 1 : e.value, o.value, n.$q)), q = r(
1432
1432
  () => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${l.value === !0 ? "in" : ""}determinate`
1433
- ), u = r(() => ({ width: `${e.value * 100}%` })), g = r(
1433
+ ), u = r(() => ({ width: `${e.value * 100}%` })), p = r(
1434
1434
  () => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
1435
1435
  );
1436
1436
  return () => {
@@ -1446,7 +1446,7 @@ const dn = te({
1446
1446
  ];
1447
1447
  return e.stripe === !0 && l.value === !1 && v.push(
1448
1448
  m("div", {
1449
- class: g.value,
1449
+ class: p.value,
1450
1450
  style: u.value
1451
1451
  })
1452
1452
  ), m("div", {
@@ -1462,7 +1462,7 @@ const dn = te({
1462
1462
  }), fn = {
1463
1463
  key: 0,
1464
1464
  class: "code-field__label"
1465
- }, vn = { class: "code-field__inputs" }, mn = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], gn = /* @__PURE__ */ K({
1465
+ }, vn = { class: "code-field__inputs" }, mn = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], pn = /* @__PURE__ */ K({
1466
1466
  __name: "AppCodeInput",
1467
1467
  props: {
1468
1468
  length: { default: 5 },
@@ -1485,41 +1485,41 @@ const dn = te({
1485
1485
  ]), $ = r(() => {
1486
1486
  let u = "";
1487
1487
  return a.size == z.SM && (u += `width: ${a.length * 26 + (a.length - 1) * 5}px`), a.size == z.MD && (u += `width: ${a.length * 32 + (a.length - 1) * 8}px`), a.size == z.LG && (u += `width: ${a.length * 44 + (a.length - 1) * 10}px`), u;
1488
- }), y = (u, g) => {
1488
+ }), y = (u, p) => {
1489
1489
  var C;
1490
1490
  const h = u.target.value;
1491
1491
  if (h.length === 1)
1492
- g < a.length - 1 && o.value && ((C = o.value[g + 1]) == null || C.focus());
1492
+ p < a.length - 1 && o.value && ((C = o.value[p + 1]) == null || C.focus());
1493
1493
  else if (h.length > 1) {
1494
- const w = h.slice(0, a.length - g).split("");
1494
+ const w = h.slice(0, a.length - p).split("");
1495
1495
  w.forEach((E, k) => {
1496
- l.value[g + k] = E;
1496
+ l.value[p + k] = E;
1497
1497
  }), he(() => {
1498
1498
  var E;
1499
- o.value && ((E = o.value[Math.min(g + w.length, a.length - 1)]) == null || E.focus());
1499
+ o.value && ((E = o.value[Math.min(p + w.length, a.length - 1)]) == null || E.focus());
1500
1500
  });
1501
1501
  }
1502
1502
  }, f = (u) => {
1503
- var g;
1504
- l.value[u] === "" && o.value && u > 0 && ((g = o.value[u - 1]) == null || g.focus());
1505
- }, S = (u, g) => {
1503
+ var p;
1504
+ l.value[u] === "" && o.value && u > 0 && ((p = o.value[u - 1]) == null || p.focus());
1505
+ }, S = (u, p) => {
1506
1506
  var C;
1507
1507
  u.preventDefault();
1508
1508
  const v = ((C = u.clipboardData) == null ? void 0 : C.getData("text")) ?? "";
1509
1509
  if (!v) return;
1510
- const h = v.slice(0, a.length - g).split("");
1510
+ const h = v.slice(0, a.length - p).split("");
1511
1511
  h.forEach((w, E) => {
1512
- l.value[g + E] = w;
1512
+ l.value[p + E] = w;
1513
1513
  }), he(() => {
1514
1514
  var w;
1515
- o.value && ((w = o.value[Math.min(g + h.length, a.length - 1)]) == null || w.focus());
1515
+ o.value && ((w = o.value[Math.min(p + h.length, a.length - 1)]) == null || w.focus());
1516
1516
  });
1517
1517
  };
1518
1518
  Xe(
1519
1519
  l,
1520
1520
  (u) => {
1521
- const g = u.join("");
1522
- d(g);
1521
+ const p = u.join("");
1522
+ d(p);
1523
1523
  },
1524
1524
  { deep: !0 }
1525
1525
  );
@@ -1532,13 +1532,13 @@ const dn = te({
1532
1532
  a.autofocus && o.value && o.value[0] && o.value[0].focus();
1533
1533
  }), t({
1534
1534
  injectCode: q
1535
- }), (u, g) => (b(), _("div", {
1536
- class: L(i.value),
1535
+ }), (u, p) => (b(), _("div", {
1536
+ class: P(i.value),
1537
1537
  style: re($.value)
1538
1538
  }, [
1539
1539
  u.label ? (b(), _("label", fn, Y(u.label), 1)) : A("", !0),
1540
1540
  T("div", vn, [
1541
- (b(!0), _(ie, null, Pe(u.length, (v, h) => oe((b(), _("input", {
1541
+ (b(!0), _(ie, null, Le(u.length, (v, h) => oe((b(), _("input", {
1542
1542
  key: h,
1543
1543
  "onUpdate:modelValue": (C) => l.value[h] = C,
1544
1544
  ref_for: !0,
@@ -1564,7 +1564,7 @@ const dn = te({
1564
1564
  }, null, 8, ["color"])) : A("", !0)
1565
1565
  ], 6));
1566
1566
  }
1567
- }), Tn = /* @__PURE__ */ G(gn, [["__scopeId", "data-v-4e11db87"]]), pn = { class: "app-segment__track" }, hn = { class: "app-segment__buttons" }, bn = ["onClick", "disabled"], kn = /* @__PURE__ */ K({
1567
+ }), Tn = /* @__PURE__ */ G(pn, [["__scopeId", "data-v-4e11db87"]]), gn = { class: "app-segment__track" }, hn = { class: "app-segment__buttons" }, bn = ["onClick", "disabled"], kn = /* @__PURE__ */ K({
1568
1568
  __name: "AppSegment",
1569
1569
  props: /* @__PURE__ */ Je({
1570
1570
  options: {},
@@ -1583,9 +1583,9 @@ const dn = te({
1583
1583
  n.disabled || (t.value = l);
1584
1584
  }
1585
1585
  return (l, o) => (b(), _("div", {
1586
- class: L(["app-segment", [{ "app-segment_disabled": l.disabled }, `app-segment_${l.size}`]])
1586
+ class: P(["app-segment", [{ "app-segment_disabled": l.disabled }, `app-segment_${l.size}`]])
1587
1587
  }, [
1588
- T("div", pn, [
1588
+ T("div", gn, [
1589
1589
  T("div", {
1590
1590
  class: "app-segment__thumb",
1591
1591
  style: re({
@@ -1595,25 +1595,25 @@ const dn = te({
1595
1595
  }, null, 4)
1596
1596
  ]),
1597
1597
  T("div", hn, [
1598
- (b(!0), _(ie, null, Pe(l.options, (i, $) => (b(), _("button", {
1598
+ (b(!0), _(ie, null, Le(l.options, (i, $) => (b(), _("button", {
1599
1599
  key: $,
1600
- class: L(["app-segment__btn", { active: t.value === i.value }]),
1600
+ class: P(["app-segment__btn", { active: t.value === i.value }]),
1601
1601
  onClick: (y) => s(i.value),
1602
1602
  disabled: l.disabled
1603
1603
  }, [
1604
1604
  se(l.$slots, "option", { option: i }, () => [
1605
- Le(Y(i.label), 1)
1605
+ Pe(Y(i.label), 1)
1606
1606
  ], !0)
1607
1607
  ], 10, bn))), 128))
1608
1608
  ])
1609
1609
  ], 2));
1610
1610
  }
1611
- }), zn = /* @__PURE__ */ G(kn, [["__scopeId", "data-v-ff56abdf"]]), On = pe(
1612
- () => import("./AppButtonCopy-Bs_VyYks.js")
1613
- ), jn = pe(
1614
- () => import("./AppSelect-CM7VmZbO.js")
1615
- ), Dn = pe(
1616
- () => import("./DropdownButton-CYyc9_Lq.js")
1611
+ }), zn = /* @__PURE__ */ G(kn, [["__scopeId", "data-v-ff56abdf"]]), On = ge(
1612
+ () => import("./AppButtonCopy-CZMmxAOw.js")
1613
+ ), jn = ge(
1614
+ () => import("./AppSelect-CqpUcE2F.js")
1615
+ ), Dn = ge(
1616
+ () => import("./DropdownButton-DYMqQn3L.js")
1617
1617
  );
1618
1618
  export {
1619
1619
  Mn as A,
@@ -1623,7 +1623,7 @@ export {
1623
1623
  mt as E,
1624
1624
  _t as F,
1625
1625
  Gt as G,
1626
- Ln as H,
1626
+ Pn as H,
1627
1627
  Cn as I,
1628
1628
  ct as J,
1629
1629
  dt as K,
@@ -1632,7 +1632,7 @@ export {
1632
1632
  On as N,
1633
1633
  jn as O,
1634
1634
  Vn as P,
1635
- ge as Q,
1635
+ pe as Q,
1636
1636
  ht as R,
1637
1637
  z as S,
1638
1638
  zn as T,
@@ -1649,7 +1649,7 @@ export {
1649
1649
  Sn as f,
1650
1650
  qn as g,
1651
1651
  Ae as h,
1652
- Pn as i,
1652
+ Ln as i,
1653
1653
  Ct as j,
1654
1654
  le as k,
1655
1655
  $n as l,
@@ -1662,9 +1662,9 @@ export {
1662
1662
  D as s,
1663
1663
  An as t,
1664
1664
  Ne as u,
1665
- gt as v,
1665
+ pt as v,
1666
1666
  Oe as w,
1667
1667
  N as x,
1668
- Pt as y,
1668
+ Lt as y,
1669
1669
  Rn as z
1670
1670
  };