@vasakgroup/vue-libvasak 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- import { ref as k, onMounted as W, onUnmounted as ve, readonly as vt, watch as Q, defineComponent as D, toRef as Pe, useTemplateRef as pt, computed as v, createElementBlock as r, unref as F, openBlock as i, normalizeStyle as fe, createCommentVNode as x, createElementVNode as B, createVNode as O, toDisplayString as M, normalizeClass as y, renderSlot as S, createBlock as U, onBeforeUnmount as pe, Fragment as te, renderList as ue, withCtx as G, mergeModels as Re, useAttrs as Be, useId as yt, useModel as gt, withDirectives as Se, mergeProps as ce, isRef as ht, vModelSelect as xt, inject as ke, getCurrentInstance as Ge, provide as ye, createTextVNode as Me, toHandlers as Qe, createSlots as kt, withModifiers as V, withKeys as R, Teleport as ge, Transition as we, nextTick as J, TransitionGroup as wt, vShow as Ye, cloneVNode as $t, h as Ct, Comment as zt, Text as Et } from "vue";
1
+ import { ref as w, onMounted as W, onUnmounted as ve, readonly as vt, watch as Q, defineComponent as D, toRef as Pe, useTemplateRef as pt, computed as v, createElementBlock as r, unref as F, openBlock as i, normalizeStyle as fe, createCommentVNode as x, createElementVNode as B, createVNode as O, toDisplayString as M, normalizeClass as y, renderSlot as S, createBlock as U, onBeforeUnmount as pe, Fragment as te, renderList as ue, withCtx as G, mergeModels as Re, useAttrs as Ae, useId as yt, useModel as gt, withDirectives as Be, mergeProps as ce, isRef as ht, vModelSelect as xt, inject as we, getCurrentInstance as Ge, provide as ye, createTextVNode as Se, toHandlers as Qe, createSlots as wt, withModifiers as V, withKeys as P, Teleport as ge, Transition as ke, nextTick as J, TransitionGroup as kt, vShow as Ye, cloneVNode as $t, h as Ct, Comment as zt, Text as Et } from "vue";
2
2
  import { listen as Lt } from "@tauri-apps/api/event";
3
3
  import { getSymbolSource as Dt, getIconSource as Tt } from "@vasakgroup/plugin-vicons";
4
4
  import { getCurrentWindow as At } from "@tauri-apps/api/window";
5
5
  import { useI18n as Bt } from "@vasakgroup/tauri-plugin-i18n";
6
- const St = "vicons:theme-changed", xe = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), me = k(0);
6
+ const St = "vicons:theme-changed", xe = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), me = w(0);
7
7
  let se = 0, be = null, ie = null;
8
8
  function Ql() {
9
- xe.clear(), re.clear(), se = 0, be = null, ie = null, me.value = 0, ae.clear(), ne.clear(), Xe = 0, ee?.disconnect(), ee = null, De = !1, X !== null && (clearTimeout(X), X = null), _ && (_.cancelado = !0), _ = null;
9
+ xe.clear(), re.clear(), se = 0, be = null, ie = null, me.value = 0, ae.clear(), ne.clear(), Xe = 0, ee?.disconnect(), ee = null, Le = !1, X !== null && (clearTimeout(X), X = null), _ && (_.cancelado = !0), _ = null;
10
10
  }
11
- const Mt = 100, ze = 10, Vt = 16, ae = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Set();
12
- let Xe = 0, ee = null, De = !1;
11
+ const Mt = 100, Ce = 10, Vt = 16, ae = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Set();
12
+ let Xe = 0, ee = null, Le = !1;
13
13
  function It() {
14
- return De ? ee : (De = !0, typeof IntersectionObserver > "u" ? null : (ee = new IntersectionObserver(
14
+ return Le ? ee : (Le = !0, typeof IntersectionObserver > "u" ? null : (ee = new IntersectionObserver(
15
15
  (e) => {
16
16
  for (const n of e) {
17
17
  const t = n.target.dataset?.iconoId;
@@ -44,13 +44,13 @@ function Rt(e) {
44
44
  async function Ft(e) {
45
45
  const n = [...ae.keys()], t = n.filter((l) => ne.has(l)), a = n.filter((l) => !ne.has(l));
46
46
  for (const l of [t, a])
47
- for (let o = 0; o < l.length; o += ze) {
47
+ for (let o = 0; o < l.length; o += Ce) {
48
48
  if (e.cancelado) return;
49
- const s = l.slice(o, o + ze);
49
+ const s = l.slice(o, o + Ce);
50
50
  if (await Promise.allSettled(
51
51
  s.map((u) => ae.get(u)?.recargar() ?? Promise.resolve())
52
52
  ), e.cancelado) return;
53
- (o + ze < l.length || l === t) && await Rt(Vt);
53
+ (o + Ce < l.length || l === t) && await Rt(Vt);
54
54
  }
55
55
  _ === e && (_ = null);
56
56
  }
@@ -69,7 +69,7 @@ function Je() {
69
69
  se <= 0 ? e() : be = e, ie = null;
70
70
  }), ie);
71
71
  }
72
- function Te() {
72
+ function De() {
73
73
  se--, !(se > 0) && (se = 0, be?.(), be = null);
74
74
  }
75
75
  function Ht(e, n) {
@@ -87,13 +87,13 @@ function Ht(e, n) {
87
87
  function Yl() {
88
88
  let e = !1;
89
89
  return W(async () => {
90
- await Je(), e && Te();
90
+ await Je(), e && De();
91
91
  }), ve(() => {
92
- e || (e = !0, Te());
92
+ e || (e = !0, De());
93
93
  }), vt(me);
94
94
  }
95
95
  function Ut(e, n) {
96
- const t = k("");
96
+ const t = w("");
97
97
  let a = !1, l = 0;
98
98
  const o = Ot(async () => {
99
99
  await s();
@@ -110,7 +110,7 @@ function Ut(e, n) {
110
110
  return W(async () => {
111
111
  await Je(), a || await s();
112
112
  }), ve(() => {
113
- a = !0, Pt(o), Te();
113
+ a = !0, Pt(o), De();
114
114
  }), Q([e, n], s), { fuente: t, mirarElemento: (u) => jt(o, u) };
115
115
  }
116
116
  const Kt = ["src", "alt"], N = /* @__PURE__ */ D({
@@ -154,7 +154,7 @@ const Kt = ["src", "alt"], N = /* @__PURE__ */ D({
154
154
  defaultOpen: { type: Boolean, default: !0 }
155
155
  },
156
156
  setup(e) {
157
- const n = e, t = k(n.defaultOpen);
157
+ const n = e, t = w(n.defaultOpen);
158
158
  return Q(
159
159
  () => n.collapsed,
160
160
  (a) => {
@@ -254,7 +254,7 @@ const Kt = ["src", "alt"], N = /* @__PURE__ */ D({
254
254
  },
255
255
  emits: ["update:modelValue", "update:collapsed", "change"],
256
256
  setup(e, { expose: n, emit: t }) {
257
- const a = e, l = t, o = k(a.collapsed ?? !1), s = k(!1);
257
+ const a = e, l = t, o = w(a.collapsed ?? !1), s = w(!1);
258
258
  let u = null, m = null;
259
259
  const f = v(() => s.value || o.value), d = v(() => !!(a.title || a.subtitle));
260
260
  v(() => a.categories.length > 0);
@@ -357,7 +357,7 @@ const Kt = ["src", "alt"], N = /* @__PURE__ */ D({
357
357
  }),
358
358
  emits: /* @__PURE__ */ Re(["change"], ["update:modelValue"]),
359
359
  setup(e, { emit: n }) {
360
- const t = e, a = Be(), l = yt(), o = v(() => a.id ?? l), s = n, [u, m] = gt(e, "modelValue", {
360
+ const t = e, a = Ae(), l = yt(), o = v(() => a.id ?? l), s = n, [u, m] = gt(e, "modelValue", {
361
361
  set(f) {
362
362
  return m.number ? Number(f) : f;
363
363
  }
@@ -369,7 +369,7 @@ const Kt = ["src", "alt"], N = /* @__PURE__ */ D({
369
369
  class: "text-tx-muted text-xs"
370
370
  }, M(t.label), 9, da)) : x("", !0),
371
371
  B("div", fa, [
372
- Se(B("select", ce({
372
+ Be(B("select", ce({
373
373
  id: o.value,
374
374
  "onUpdate:modelValue": d[0] || (d[0] = (E) => ht(u) ? u.value = E : null),
375
375
  class: "min-w-0 flex-1 appearance-none truncate rounded-corner border border-ui-border bg-ui-surface/60 py-1.5 pr-8 pl-2 text-sm text-tx-main"
@@ -389,8 +389,8 @@ const Kt = ["src", "alt"], N = /* @__PURE__ */ D({
389
389
  ])
390
390
  ]));
391
391
  }
392
- }), Ve = /* @__PURE__ */ Symbol("barra de vasak");
393
- function Ae(e) {
392
+ }), Me = /* @__PURE__ */ Symbol("barra de vasak");
393
+ function Te(e) {
394
394
  return e === "left" || e === "right" ? "vertical" : "horizontal";
395
395
  }
396
396
  const va = ["top", "bottom", "left", "right"];
@@ -398,22 +398,22 @@ function pa(e) {
398
398
  return typeof e == "string" && va.includes(e);
399
399
  }
400
400
  function he() {
401
- const e = ke(Ve, null);
401
+ const e = we(Me, null);
402
402
  if (e) return e;
403
- const n = k("top");
403
+ const n = w("top");
404
404
  return {
405
405
  posicion: n,
406
- orientacion: v(() => Ae(n.value)),
407
- vertical: v(() => Ae(n.value) === "vertical")
406
+ orientacion: v(() => Te(n.value)),
407
+ vertical: v(() => Te(n.value) === "vertical")
408
408
  };
409
409
  }
410
- const Ie = ["minimize", "maximize", "close"], ya = "window", ga = "barPosition";
410
+ const Ve = ["minimize", "maximize", "close"], ya = "window", ga = "barPosition";
411
411
  function ha(e) {
412
412
  const t = e?.[ya]?.[ga];
413
413
  return pa(t) ? t : null;
414
414
  }
415
415
  function xa(e = "top") {
416
- const n = k(e);
416
+ const n = w(e);
417
417
  let t = null, a = !1;
418
418
  async function l() {
419
419
  try {
@@ -447,10 +447,10 @@ function et(e) {
447
447
  }
448
448
  return t;
449
449
  }
450
- const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title", "aria-label"], Ee = "flex items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 p-1 transition-colors", tt = /* @__PURE__ */ D({
450
+ const wa = ["title", "aria-label"], ka = ["title", "aria-label"], $a = ["title", "aria-label"], ze = "flex items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 p-1 transition-colors", tt = /* @__PURE__ */ D({
451
451
  __name: "WindowControls",
452
452
  props: {
453
- controls: { default: () => Ie },
453
+ controls: { default: () => Ve },
454
454
  minimizeLabel: {},
455
455
  maximizeLabel: {},
456
456
  closeLabel: {}
@@ -489,7 +489,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
489
489
  f.value.minimize ? (i(), r("button", {
490
490
  key: 0,
491
491
  type: "button",
492
- class: y([Ee, "hover:bg-status-success"]),
492
+ class: y([ze, "hover:bg-status-success"]),
493
493
  title: l.value,
494
494
  "aria-label": l.value,
495
495
  onClick: C[0] || (C[0] = (h) => A())
@@ -499,11 +499,11 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
499
499
  type: "symbol",
500
500
  size: 24
501
501
  })
502
- ], 10, ka)) : x("", !0),
502
+ ], 10, wa)) : x("", !0),
503
503
  f.value.maximize ? (i(), r("button", {
504
504
  key: 1,
505
505
  type: "button",
506
- class: y([Ee, "hover:bg-status-warning"]),
506
+ class: y([ze, "hover:bg-status-warning"]),
507
507
  title: o.value,
508
508
  "aria-label": o.value,
509
509
  onClick: C[1] || (C[1] = (h) => g())
@@ -513,11 +513,11 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
513
513
  type: "symbol",
514
514
  size: 24
515
515
  })
516
- ], 10, wa)) : x("", !0),
516
+ ], 10, ka)) : x("", !0),
517
517
  f.value.close ? (i(), r("button", {
518
518
  key: 2,
519
519
  type: "button",
520
- class: y([Ee, "hover:bg-status-error"]),
520
+ class: y([ze, "hover:bg-status-error"]),
521
521
  title: s.value,
522
522
  "aria-label": s.value,
523
523
  onClick: C[2] || (C[2] = (h) => $())
@@ -546,12 +546,12 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
546
546
  minimizeLabel: {},
547
547
  maximizeLabel: {},
548
548
  closeLabel: {},
549
- controls: { default: () => Ie }
549
+ controls: { default: () => Ve }
550
550
  },
551
551
  emits: ["minimize", "maximize", "close"],
552
552
  setup(e) {
553
553
  const n = e, t = he(), a = v(() => n.position ?? t.posicion.value), l = v(() => a.value === "left" || a.value === "right");
554
- return ye(Ve, {
554
+ return ye(Me, {
555
555
  posicion: a,
556
556
  orientacion: v(() => l.value ? "vertical" : "horizontal"),
557
557
  vertical: l
@@ -564,7 +564,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
564
564
  ])) : x("", !0),
565
565
  (o.$slots.titulo || e.title) && !l.value ? (i(), r("p", za, [
566
566
  S(o.$slots, "titulo", {}, () => [
567
- Me(M(e.title), 1)
567
+ Se(M(e.title), 1)
568
568
  ])
569
569
  ])) : x("", !0),
570
570
  B("div", {
@@ -605,13 +605,13 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
605
605
  minimizeLabel: {},
606
606
  maximizeLabel: {},
607
607
  closeLabel: {},
608
- controls: { default: () => Ie },
608
+ controls: { default: () => Ve },
609
609
  hideBar: { type: Boolean, default: !1 }
610
610
  },
611
611
  emits: ["minimize", "maximize", "close"],
612
612
  setup(e) {
613
- const n = e, t = xa(), a = v(() => n.position ?? t.value), l = v(() => Ae(a.value)), o = v(() => l.value === "vertical");
614
- ye(Ve, { posicion: a, orientacion: l, vertical: o });
613
+ const n = e, t = xa(), a = v(() => n.position ?? t.value), l = v(() => Te(a.value)), o = v(() => l.value === "vertical");
614
+ ye(Me, { posicion: a, orientacion: l, vertical: o });
615
615
  const s = {
616
616
  top: "flex-col",
617
617
  bottom: "flex-col-reverse",
@@ -629,7 +629,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
629
629
  "maximize-label": e.maximizeLabel,
630
630
  "close-label": e.closeLabel,
631
631
  controls: e.controls
632
- }, Qe(F(et)(["minimize", "maximize", "close"]))), kt({
632
+ }, Qe(F(et)(["minimize", "maximize", "close"]))), wt({
633
633
  default: G(() => [
634
634
  S(u.$slots, "barra")
635
635
  ]),
@@ -690,7 +690,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
690
690
  },
691
691
  emits: ["select", "close", "menu", "mover", "navegar"],
692
692
  setup(e, { emit: n }) {
693
- const t = e, a = n, { vertical: l, posicion: o } = he(), s = k(null), u = k(null), m = k(!1), f = k(!1), d = k(!1), E = k({ top: 0, left: 0, right: 0 });
693
+ const t = e, a = n, { vertical: l, posicion: o } = he(), s = w(null), u = w(null), m = w(!1), f = w(!1), d = w(!1), E = w({ top: 0, left: 0, right: 0 });
694
694
  let L = null, A = null;
695
695
  const g = v(() => t.tab.closable !== !1), $ = v(() => t.tab.tooltip ?? t.tab.label), j = v(
696
696
  () => t.tab.dirty ? `${t.tab.label} · ${t.dirtyLabel}` : t.tab.label
@@ -700,23 +700,23 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
700
700
  () => g.value && (h.value || t.active || !t.tab.dirty)
701
701
  ), p = v(
702
702
  () => l.value && (m.value || f.value || d.value)
703
- ), P = v(() => {
703
+ ), R = v(() => {
704
704
  const q = { position: "fixed", top: `${E.value.top}px`, zIndex: 50 };
705
705
  return o.value === "right" ? { ...q, right: `${E.value.right + He}px` } : { ...q, left: `${E.value.left + He}px` };
706
706
  });
707
707
  function le() {
708
708
  const q = s.value;
709
709
  if (!q) return;
710
- const w = q.getBoundingClientRect();
710
+ const k = q.getBoundingClientRect();
711
711
  E.value = {
712
- top: w.top,
713
- left: w.right,
714
- right: window.innerWidth - w.left
712
+ top: k.top,
713
+ left: k.right,
714
+ right: window.innerWidth - k.left
715
715
  };
716
716
  }
717
717
  function K(q) {
718
- const w = q.relatedTarget;
719
- w && u.value?.contains(w) || (d.value = !1);
718
+ const k = q.relatedTarget;
719
+ k && u.value?.contains(k) || (d.value = !1);
720
720
  }
721
721
  function oe() {
722
722
  m.value = !0, le();
@@ -742,7 +742,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
742
742
  function bt(q) {
743
743
  q.preventDefault(), a("menu", { x: q.clientX, y: q.clientY });
744
744
  }
745
- return pe(T), (q, w) => (i(), r("div", {
745
+ return pe(T), (q, k) => (i(), r("div", {
746
746
  ref_key: "raiz",
747
747
  ref: s,
748
748
  class: y(["group relative flex shrink-0 cursor-pointer items-center gap-2 rounded-corner border border-ui-border transition-colors", [
@@ -754,21 +754,21 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
754
754
  title: $.value,
755
755
  "aria-label": j.value,
756
756
  tabindex: e.tabindex,
757
- onClick: w[5] || (w[5] = V((H) => a("select"), ["stop"])),
757
+ onClick: k[5] || (k[5] = V((H) => a("select"), ["stop"])),
758
758
  onKeydown: [
759
- w[6] || (w[6] = R(V((H) => a("select"), ["stop"]), ["enter"])),
760
- w[7] || (w[7] = R(V((H) => a("select"), ["prevent", "stop"]), ["space"])),
761
- w[8] || (w[8] = R(V((H) => a("navegar", "anterior"), ["prevent", "stop"]), ["left"])),
762
- w[9] || (w[9] = R(V((H) => a("navegar", "anterior"), ["prevent", "stop"]), ["up"])),
763
- w[10] || (w[10] = R(V((H) => a("navegar", "siguiente"), ["prevent", "stop"]), ["right"])),
764
- w[11] || (w[11] = R(V((H) => a("navegar", "siguiente"), ["prevent", "stop"]), ["down"])),
765
- w[12] || (w[12] = R(V((H) => a("navegar", "primera"), ["prevent", "stop"]), ["home"])),
766
- w[13] || (w[13] = R(V((H) => a("navegar", "ultima"), ["prevent", "stop"]), ["end"])),
767
- w[14] || (w[14] = R(V((H) => a("mover", -1), ["alt", "prevent", "stop"]), ["left"])),
768
- w[15] || (w[15] = R(V((H) => a("mover", -1), ["alt", "prevent", "stop"]), ["up"])),
769
- w[16] || (w[16] = R(V((H) => a("mover", 1), ["alt", "prevent", "stop"]), ["right"])),
770
- w[17] || (w[17] = R(V((H) => a("mover", 1), ["alt", "prevent", "stop"]), ["down"])),
771
- w[18] || (w[18] = R(V((H) => g.value && a("close"), ["prevent", "stop"]), ["delete"]))
759
+ k[6] || (k[6] = P(V((H) => a("select"), ["stop"]), ["enter"])),
760
+ k[7] || (k[7] = P(V((H) => a("select"), ["prevent", "stop"]), ["space"])),
761
+ k[8] || (k[8] = P(V((H) => a("navegar", "anterior"), ["prevent", "stop"]), ["left"])),
762
+ k[9] || (k[9] = P(V((H) => a("navegar", "anterior"), ["prevent", "stop"]), ["up"])),
763
+ k[10] || (k[10] = P(V((H) => a("navegar", "siguiente"), ["prevent", "stop"]), ["right"])),
764
+ k[11] || (k[11] = P(V((H) => a("navegar", "siguiente"), ["prevent", "stop"]), ["down"])),
765
+ k[12] || (k[12] = P(V((H) => a("navegar", "primera"), ["prevent", "stop"]), ["home"])),
766
+ k[13] || (k[13] = P(V((H) => a("navegar", "ultima"), ["prevent", "stop"]), ["end"])),
767
+ k[14] || (k[14] = P(V((H) => a("mover", -1), ["alt", "prevent", "stop"]), ["left"])),
768
+ k[15] || (k[15] = P(V((H) => a("mover", -1), ["alt", "prevent", "stop"]), ["up"])),
769
+ k[16] || (k[16] = P(V((H) => a("mover", 1), ["alt", "prevent", "stop"]), ["right"])),
770
+ k[17] || (k[17] = P(V((H) => a("mover", 1), ["alt", "prevent", "stop"]), ["down"])),
771
+ k[18] || (k[18] = P(V((H) => g.value && a("close"), ["prevent", "stop"]), ["delete"]))
772
772
  ],
773
773
  onAuxclick: V(de, ["stop"]),
774
774
  onContextmenu: bt,
@@ -777,9 +777,9 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
777
777
  onPointerup: T,
778
778
  onPointerleave: T,
779
779
  onMouseenter: oe,
780
- onMouseleave: w[19] || (w[19] = (H) => m.value = !1),
780
+ onMouseleave: k[19] || (k[19] = (H) => m.value = !1),
781
781
  onFocus: Y,
782
- onBlur: w[20] || (w[20] = (H) => f.value = !1)
782
+ onBlur: k[20] || (k[20] = (H) => f.value = !1)
783
783
  }, [
784
784
  e.tab.icon ? (i(), U(N, {
785
785
  key: 0,
@@ -798,7 +798,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
798
798
  class: "flex size-4 shrink-0 items-center justify-center rounded-corner-sm hover:bg-ui-surface",
799
799
  title: e.closeLabel,
800
800
  "aria-label": `${e.closeLabel}: ${j.value}`,
801
- onClick: w[0] || (w[0] = V((H) => a("close"), ["stop"]))
801
+ onClick: k[0] || (k[0] = V((H) => a("close"), ["stop"]))
802
802
  }, [
803
803
  O(N, {
804
804
  name: "gtk-close",
@@ -807,7 +807,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
807
807
  })
808
808
  ], 8, Ba)) : x("", !0),
809
809
  (i(), U(ge, { to: "body" }, [
810
- O(we, {
810
+ O(ke, {
811
811
  "enter-active-class": "transition duration-150 ease-out",
812
812
  "enter-from-class": "opacity-0 scale-95",
813
813
  "leave-active-class": "transition duration-100 ease-in",
@@ -819,10 +819,10 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
819
819
  class: y(["flex items-center gap-2 rounded-corner border border-ui-border bg-ui-surface/95 px-3 py-1 text-sm shadow-lg", e.active ? "font-bold" : ""]),
820
820
  ref_key: "desplegadoRef",
821
821
  ref: u,
822
- style: fe(P.value),
823
- onMouseenter: w[2] || (w[2] = (H) => d.value = !0),
824
- onMouseleave: w[3] || (w[3] = (H) => d.value = !1),
825
- onFocusin: w[4] || (w[4] = (H) => d.value = !0),
822
+ style: fe(R.value),
823
+ onMouseenter: k[2] || (k[2] = (H) => d.value = !0),
824
+ onMouseleave: k[3] || (k[3] = (H) => d.value = !1),
825
+ onFocusin: k[4] || (k[4] = (H) => d.value = !0),
826
826
  onFocusout: K
827
827
  }, [
828
828
  B("span", Sa, M(e.tab.label), 1),
@@ -833,7 +833,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
833
833
  class: "flex size-4 shrink-0 items-center justify-center rounded-corner-sm hover:bg-ui-surface",
834
834
  title: e.closeLabel,
835
835
  "aria-label": `${e.closeLabel}: ${j.value}`,
836
- onClick: w[1] || (w[1] = V((H) => a("close"), ["stop"]))
836
+ onClick: k[1] || (k[1] = V((H) => a("close"), ["stop"]))
837
837
  }, [
838
838
  O(N, {
839
839
  name: "gtk-close",
@@ -860,7 +860,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
860
860
  },
861
861
  emits: ["update:modelValue", "select", "close", "new", "reorder", "menu"],
862
862
  setup(e, { emit: n }) {
863
- const t = e, a = n, { vertical: l } = he(), o = k(null), s = k(0), u = k(null), m = k(null);
863
+ const t = e, a = n, { vertical: l } = he(), o = w(null), s = w(0), u = w(null), m = w(null);
864
864
  function f(h) {
865
865
  a("update:modelValue", h), a("select", h);
866
866
  }
@@ -874,8 +874,8 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
874
874
  if (t.fixedOrder) return;
875
875
  const b = h + c;
876
876
  if (b < 0 || b >= t.tabs.length) return;
877
- const p = [...t.tabs], [P] = p.splice(h, 1);
878
- P && (p.splice(b, 0, P), s.value = b, a("reorder", p));
877
+ const p = [...t.tabs], [R] = p.splice(h, 1);
878
+ R && (p.splice(b, 0, R), s.value = b, a("reorder", p));
879
879
  }
880
880
  function L(h) {
881
881
  const c = o.value;
@@ -919,9 +919,9 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
919
919
  m.value === p && u.value !== p ? "ring-2 ring-secondary rounded-corner" : ""
920
920
  ]]),
921
921
  draggable: !e.fixedOrder,
922
- onDragstart: (P) => A(p, P),
923
- onDragover: (P) => g(p, P),
924
- onDrop: V((P) => $(p), ["prevent"]),
922
+ onDragstart: (R) => A(p, R),
923
+ onDragover: (R) => g(p, R),
924
+ onDrop: V((R) => $(p), ["prevent"]),
925
925
  onDragend: j
926
926
  }, [
927
927
  O(nt, {
@@ -930,11 +930,11 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
930
930
  "close-label": e.closeLabel,
931
931
  "dirty-label": e.dirtyLabel,
932
932
  tabindex: p === s.value ? 0 : -1,
933
- onSelect: (P) => f(b.id),
934
- onClose: (P) => a("close", b.id),
935
- onMenu: (P) => a("menu", { id: b.id, ...P }),
936
- onNavegar: (P) => d(p, P),
937
- onMover: (P) => E(p, P)
933
+ onSelect: (R) => f(b.id),
934
+ onClose: (R) => a("close", b.id),
935
+ onMenu: (R) => a("menu", { id: b.id, ...R }),
936
+ onNavegar: (R) => d(p, R),
937
+ onMover: (R) => E(p, R)
938
938
  }, null, 8, ["tab", "active", "close-label", "dirty-label", "tabindex", "onSelect", "onClose", "onMenu", "onNavegar", "onMover"])
939
939
  ], 42, ja))), 128))
940
940
  ], 34),
@@ -980,7 +980,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
980
980
  function s(d) {
981
981
  a.lazy && l("update:modelValue", d.target.value);
982
982
  }
983
- const u = k(null);
983
+ const u = w(null);
984
984
  function m() {
985
985
  return u.value?.focus(), u.value !== null && document.activeElement === u.value;
986
986
  }
@@ -1013,7 +1013,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
1013
1013
  onKeydown: E[1] || (E[1] = (L) => l("keydown", L))
1014
1014
  }, null, 42, Fa));
1015
1015
  }
1016
- }), Na = { class: "pointer-events-none absolute left-2 flex items-center" }, qa = ["aria-label"], Oe = /* @__PURE__ */ D({
1016
+ }), Na = { class: "pointer-events-none absolute left-2 flex items-center" }, qa = ["aria-label"], Ie = /* @__PURE__ */ D({
1017
1017
  __name: "SearchField",
1018
1018
  props: {
1019
1019
  modelValue: { default: "" },
@@ -1030,7 +1030,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
1030
1030
  },
1031
1031
  emits: ["update:modelValue", "search", "clear", "keydown"],
1032
1032
  setup(e, { expose: n, emit: t }) {
1033
- const a = e, l = t, o = k(null);
1033
+ const a = e, l = t, o = w(null);
1034
1034
  let s;
1035
1035
  const u = v(() => a.modelValue.length > 0), m = v(
1036
1036
  () => a.listboxId ? {
@@ -1065,7 +1065,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
1065
1065
  }
1066
1066
  ), ($, j) => (i(), r("div", {
1067
1067
  class: "relative flex items-center",
1068
- onKeydown: R(L, ["enter"])
1068
+ onKeydown: P(L, ["enter"])
1069
1069
  }, [
1070
1070
  B("span", Na, [
1071
1071
  O(N, {
@@ -1118,7 +1118,7 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
1118
1118
  },
1119
1119
  emits: ["update:modelValue", "search", "open", "close"],
1120
1120
  setup(e, { emit: n }) {
1121
- const t = e, a = n, { vertical: l, posicion: o } = he(), s = k(!1), u = k(null), m = v(() => l.value || t.collapsed), f = v(() => !m.value || s.value), d = v(() => {
1121
+ const t = e, a = n, { vertical: l, posicion: o } = he(), s = w(!1), u = w(null), m = v(() => l.value || t.collapsed), f = v(() => !m.value || s.value), d = v(() => {
1122
1122
  if (!m.value) return "";
1123
1123
  const g = "absolute z-40 w-64 rounded-corner border border-ui-border bg-ui-surface/95 p-1 shadow-lg";
1124
1124
  return o.value === "left" ? `${g} left-full top-0 ml-1` : o.value === "right" ? `${g} right-full top-0 mr-1` : o.value === "bottom" ? `${g} bottom-full right-0 mb-1` : `${g} top-full right-0 mt-1`;
@@ -1157,9 +1157,9 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
1157
1157
  f.value ? (i(), r("div", {
1158
1158
  key: 1,
1159
1159
  class: y(d.value),
1160
- onKeydown: R(L, ["esc"])
1160
+ onKeydown: P(L, ["esc"])
1161
1161
  }, [
1162
- O(Oe, {
1162
+ O(Ie, {
1163
1163
  ref_key: "campo",
1164
1164
  ref: u,
1165
1165
  "model-value": e.modelValue,
@@ -1235,12 +1235,12 @@ const ka = ["title", "aria-label"], wa = ["title", "aria-label"], $a = ["title",
1235
1235
  }, null, 8, Ya)) : x("", !0)
1236
1236
  ], 10, Ka));
1237
1237
  }
1238
- }), $e = (e, n) => {
1238
+ }), Oe = (e, n) => {
1239
1239
  const t = e.__vccOpts || e;
1240
1240
  for (const [a, l] of n)
1241
1241
  t[a] = l;
1242
1242
  return t;
1243
- }, Ja = /* @__PURE__ */ $e(Xa, [["__scopeId", "data-v-3c1bd6bd"]]), ot = {
1243
+ }, Ja = /* @__PURE__ */ Oe(Xa, [["__scopeId", "data-v-3c1bd6bd"]]), ot = {
1244
1244
  info: "border-ui-border bg-ui-surface/70 text-tx-main",
1245
1245
  success: "border-status-success/40 bg-status-success/10 text-tx-main",
1246
1246
  warning: "border-status-warning/40 bg-status-warning/10 text-tx-main",
@@ -1345,7 +1345,7 @@ const Za = ["role"], _a = {
1345
1345
  B("div", {
1346
1346
  class: y(["pointer-events-none fixed z-60 flex flex-col gap-2", t.value])
1347
1347
  }, [
1348
- O(wt, {
1348
+ O(kt, {
1349
1349
  "enter-active-class": "transition-all duration-300 ease-out",
1350
1350
  "leave-active-class": "transition-all duration-200 ease-in",
1351
1351
  "enter-from-class": "translate-y-2 opacity-0",
@@ -1360,7 +1360,7 @@ const Za = ["role"], _a = {
1360
1360
  class: y(["pointer-events-auto rounded-corner border px-4 py-2 text-sm shadow-lg backdrop-blur-sm", F(ot)[o.tone ?? "info"]])
1361
1361
  }, [
1362
1362
  S(a.$slots, "default", { aviso: o }, () => [
1363
- Me(M(o.message), 1)
1363
+ Se(M(o.message), 1)
1364
1364
  ])
1365
1365
  ], 10, un))), 128))
1366
1366
  ]),
@@ -1403,7 +1403,7 @@ const Za = ["role"], _a = {
1403
1403
  ], 8, dn));
1404
1404
  }
1405
1405
  }), bn = /[/\-_.]/;
1406
- function Le(e, n) {
1406
+ function Ee(e, n) {
1407
1407
  if (!n) return 100;
1408
1408
  const t = n.toLowerCase();
1409
1409
  return t === e ? 0 : t.startsWith(e) ? 10 : t.split(bn).some((a) => a.startsWith(e)) ? 30 : t.includes(e) ? 40 : 100;
@@ -1413,7 +1413,7 @@ function vn(e, n) {
1413
1413
  if (!t) return e;
1414
1414
  const a = [];
1415
1415
  for (let l = 0; l < e.length; l++) {
1416
- const o = e[l], s = Le(t, o.valor), u = Le(t, o.etiqueta), m = u === 10 ? 20 : u, d = Le(t, o.detalle) === 100 ? 100 : 40, E = Math.min(s, m, d);
1416
+ const o = e[l], s = Ee(t, o.valor), u = Ee(t, o.etiqueta), m = u === 10 ? 20 : u, d = Ee(t, o.detalle) === 100 ? 100 : 40, E = Math.min(s, m, d);
1417
1417
  E !== 100 && a.push({ opcion: o, rango: E, orden: l });
1418
1418
  }
1419
1419
  return a.sort((l, o) => l.rango - o.rango || l.orden - o.orden), a.map((l) => l.opcion);
@@ -1425,7 +1425,7 @@ function pn() {
1425
1425
  const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 flex-1 truncate" }, hn = {
1426
1426
  key: 0,
1427
1427
  class: "ml-2 text-tx-muted text-xs"
1428
- }, xn = { class: "border-ui-border border-b p-2" }, kn = ["id"], wn = {
1428
+ }, xn = { class: "border-ui-border border-b p-2" }, wn = ["id"], kn = {
1429
1429
  key: 0,
1430
1430
  class: "p-3 text-center text-tx-muted text-xs"
1431
1431
  }, $n = ["id", "data-indice", "aria-selected"], Cn = { class: "min-w-0 flex-1 truncate" }, zn = {
@@ -1449,7 +1449,7 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1449
1449
  },
1450
1450
  emits: ["update:modelValue"],
1451
1451
  setup(e, { emit: n }) {
1452
- const t = e, a = n, l = k(""), o = k(!1), s = k(0), u = k(null), m = k(null), f = k(null), d = pn(), E = v(
1452
+ const t = e, a = n, l = w(""), o = w(!1), s = w(0), u = w(null), m = w(null), f = w(null), d = pn(), E = v(
1453
1453
  () => t.options.find((T) => T.valor === t.modelValue) ?? null
1454
1454
  ), L = v(() => vn(t.options, l.value)), A = v(() => L.value.slice(0, t.limit)), g = v(() => Math.max(0, L.value.length - t.limit)), $ = v(
1455
1455
  () => A.value.length > 0 ? `${d}-${s.value}` : void 0
@@ -1478,7 +1478,7 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1478
1478
  const I = Number(z.getAttribute("data-indice"));
1479
1479
  return Number.isInteger(I) ? I : null;
1480
1480
  }
1481
- function P(T) {
1481
+ function R(T) {
1482
1482
  const z = p(T), I = z === null ? void 0 : A.value[z];
1483
1483
  I && j(I.valor);
1484
1484
  }
@@ -1522,12 +1522,12 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1522
1522
  "aria-haspopup": "listbox",
1523
1523
  onClick: z[0] || (z[0] = (I) => o.value ? h() : C()),
1524
1524
  onKeydown: [
1525
- z[1] || (z[1] = R(V((I) => o.value ? c(1) : C(), ["prevent"]), ["down"])),
1526
- z[2] || (z[2] = R(V((I) => o.value ? c(-1) : C(), ["prevent"]), ["up"]))
1525
+ z[1] || (z[1] = P(V((I) => o.value ? c(1) : C(), ["prevent"]), ["down"])),
1526
+ z[2] || (z[2] = P(V((I) => o.value ? c(-1) : C(), ["prevent"]), ["up"]))
1527
1527
  ]
1528
1528
  }, [
1529
1529
  B("span", gn, [
1530
- Me(M(E.value?.etiqueta ?? e.placeholder) + " ", 1),
1530
+ Se(M(E.value?.etiqueta ?? e.placeholder) + " ", 1),
1531
1531
  E.value?.detalle ? (i(), r("span", hn, M(E.value.detalle), 1)) : x("", !0)
1532
1532
  ]),
1533
1533
  O(N, {
@@ -1541,19 +1541,19 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1541
1541
  key: 0,
1542
1542
  class: y(["absolute z-20 w-full min-w-64 rounded-corner border border-ui-border-strong bg-ui-bg shadow-lg", e.up ? "bottom-full mb-1" : "mt-1"]),
1543
1543
  onKeydown: [
1544
- z[4] || (z[4] = R(V((I) => h(), ["prevent"]), ["escape"])),
1545
- z[5] || (z[5] = R(V((I) => c(1), ["prevent"]), ["down"])),
1546
- z[6] || (z[6] = R(V((I) => c(-1), ["prevent"]), ["up"])),
1547
- z[7] || (z[7] = R(V((I) => b(0), ["prevent"]), ["home"])),
1548
- z[8] || (z[8] = R(V((I) => b(A.value.length - 1), ["prevent"]), ["end"])),
1549
- z[9] || (z[9] = R(V((I) => oe(), ["prevent"]), ["enter"])),
1550
- z[10] || (z[10] = R((I) => h(!1), ["tab"]))
1544
+ z[4] || (z[4] = P(V((I) => h(), ["prevent"]), ["escape"])),
1545
+ z[5] || (z[5] = P(V((I) => c(1), ["prevent"]), ["down"])),
1546
+ z[6] || (z[6] = P(V((I) => c(-1), ["prevent"]), ["up"])),
1547
+ z[7] || (z[7] = P(V((I) => b(0), ["prevent"]), ["home"])),
1548
+ z[8] || (z[8] = P(V((I) => b(A.value.length - 1), ["prevent"]), ["end"])),
1549
+ z[9] || (z[9] = P(V((I) => oe(), ["prevent"]), ["enter"])),
1550
+ z[10] || (z[10] = P((I) => h(!1), ["tab"]))
1551
1551
  ],
1552
- onClick: P,
1552
+ onClick: R,
1553
1553
  onMousemove: le
1554
1554
  }, [
1555
1555
  B("div", xn, [
1556
- O(Oe, {
1556
+ O(Ie, {
1557
1557
  ref_key: "campo",
1558
1558
  ref: f,
1559
1559
  modelValue: l.value,
@@ -1572,7 +1572,7 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1572
1572
  role: "listbox",
1573
1573
  class: "max-h-56 overflow-y-auto p-1"
1574
1574
  }, [
1575
- A.value.length === 0 ? (i(), r("li", wn, M(e.emptyText), 1)) : x("", !0),
1575
+ A.value.length === 0 ? (i(), r("li", kn, M(e.emptyText), 1)) : x("", !0),
1576
1576
  (i(!0), r(te, null, ue(A.value, (I, de) => (i(), r("li", {
1577
1577
  id: `${F(d)}-${de}`,
1578
1578
  key: I.valor,
@@ -1588,7 +1588,7 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1588
1588
  I.detalle ? (i(), r("span", zn, M(I.detalle), 1)) : x("", !0)
1589
1589
  ], 10, $n))), 128)),
1590
1590
  g.value > 0 ? (i(), r("li", En, "+" + M(g.value), 1)) : x("", !0)
1591
- ], 8, kn)
1591
+ ], 8, wn)
1592
1592
  ], 34)) : x("", !0)
1593
1593
  ], 32));
1594
1594
  }
@@ -1607,7 +1607,7 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1607
1607
  S(n.$slots, "default", {}, void 0, !0)
1608
1608
  ], 2));
1609
1609
  }
1610
- }), An = /* @__PURE__ */ $e(Tn, [["__scopeId", "data-v-45bd4eab"]]), Bn = { class: "flex items-center gap-3 flex-1 min-w-0" }, Sn = ["src", "alt"], Mn = { class: "min-w-0" }, Vn = { class: "font-semibold truncate" }, In = {
1610
+ }), An = /* @__PURE__ */ Oe(Tn, [["__scopeId", "data-v-45bd4eab"]]), Bn = { class: "flex items-center gap-3 flex-1 min-w-0" }, Sn = ["src", "alt"], Mn = { class: "min-w-0" }, Vn = { class: "font-semibold truncate" }, In = {
1611
1611
  key: 0,
1612
1612
  class: "text-xs text-gray-400 truncate"
1613
1613
  }, On = {
@@ -1648,7 +1648,7 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1648
1648
  "[DeviceCard] «icon» está obsoleto y se va en la próxima mayor: recibe una ruta ya resuelta. Usá «name» con el nombre del icono del tema, y «type» si hace falta el símbolo."
1649
1649
  );
1650
1650
  }), (s, u) => (i(), r("div", {
1651
- class: y(["flex items-center justify-between background rounded-vsk px-6 py-3 mb-4", [{ "border-l-4 border-green-500": e.isConnected }, e.customClass]]),
1651
+ class: y(["flex items-center justify-between background rounded-corner px-6 py-3 mb-4", [{ "border-l-4 border-green-500": e.isConnected }, e.customClass]]),
1652
1652
  onClick: o
1653
1653
  }, [
1654
1654
  B("div", Bn, [
@@ -1675,7 +1675,7 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1675
1675
  ]),
1676
1676
  e.showActionButton ? (i(), r("button", {
1677
1677
  key: 0,
1678
- class: "bg-vsk-primary rounded-vsk px-4 py-2 text-sm font-semibold cursor-pointer hover:opacity-70",
1678
+ class: "bg-primary text-tx-on-primary rounded-corner px-4 py-2 text-sm font-semibold cursor-pointer hover:opacity-70",
1679
1679
  onClick: V(l, ["stop"])
1680
1680
  }, M(e.actionLabel), 1)) : x("", !0),
1681
1681
  e.showStatusIndicator && e.isConnected ? (i(), r("div", Pn)) : x("", !0)
@@ -1683,15 +1683,15 @@ const yn = ["disabled", "aria-label", "aria-expanded"], gn = { class: "min-w-0 f
1683
1683
  }
1684
1684
  }), rt = /* @__PURE__ */ Symbol("diálogo de vasak");
1685
1685
  function st() {
1686
- const e = ke(rt, null);
1686
+ const e = we(rt, null);
1687
1687
  if (e) return e;
1688
- const n = k(!1);
1688
+ const n = w(!1);
1689
1689
  return {
1690
1690
  abierto: v(() => n.value),
1691
1691
  cerrar: () => {
1692
1692
  n.value = !1;
1693
1693
  },
1694
- idDelTitulo: k(null),
1694
+ idDelTitulo: w(null),
1695
1695
  ponerElTitulo: () => {
1696
1696
  }
1697
1697
  };
@@ -1707,7 +1707,7 @@ const Nn = /* @__PURE__ */ D({
1707
1707
  },
1708
1708
  emits: ["update:open"],
1709
1709
  setup(e, { emit: n }) {
1710
- const t = e, a = n, l = k(null);
1710
+ const t = e, a = n, l = w(null);
1711
1711
  return ye(rt, {
1712
1712
  abierto: v(() => t.open),
1713
1713
  cerrar: () => a("update:open", !1),
@@ -1728,10 +1728,10 @@ const Nn = /* @__PURE__ */ D({
1728
1728
  ariaLabel: {}
1729
1729
  },
1730
1730
  setup(e) {
1731
- const n = e, t = Be(), a = v(() => t.class ?? ""), l = v(() => {
1731
+ const n = e, t = Ae(), a = v(() => t.class ?? ""), l = v(() => {
1732
1732
  const { class: C, ...h } = t;
1733
1733
  return h;
1734
- }), o = v(() => n.size === "full" ? "relative z-10 h-full w-full overflow-hidden rounded-corner-window text-tx-main" : `${Un} ${n.size === "lg" ? "max-w-2xl" : "max-w-lg"}`), s = st(), u = v(() => s.abierto.value), m = k(null), f = k(null);
1734
+ }), o = v(() => n.size === "full" ? "relative z-10 h-full w-full overflow-hidden rounded-corner-window text-tx-main" : `${Un} ${n.size === "lg" ? "max-w-2xl" : "max-w-lg"}`), s = st(), u = v(() => s.abierto.value), m = w(null), f = w(null);
1735
1735
  let d = null;
1736
1736
  function E() {
1737
1737
  return f.value ? [...f.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')] : [];
@@ -1779,7 +1779,7 @@ const Nn = /* @__PURE__ */ D({
1779
1779
  ), ve(() => {
1780
1780
  $(), j();
1781
1781
  }), (C, h) => (i(), U(ge, { to: "body" }, [
1782
- O(we, {
1782
+ O(ke, {
1783
1783
  "enter-active-class": "transition-opacity duration-200 ease-out",
1784
1784
  "leave-active-class": "transition-opacity duration-150 ease-in",
1785
1785
  "enter-from-class": "opacity-0",
@@ -1847,20 +1847,20 @@ const Nn = /* @__PURE__ */ D({
1847
1847
  ], 8, Zn));
1848
1848
  }
1849
1849
  }), ut = /* @__PURE__ */ Symbol("menú de vasak");
1850
- function Ce() {
1851
- const e = ke(ut, null);
1850
+ function $e() {
1851
+ const e = we(ut, null);
1852
1852
  if (e) return e;
1853
- const n = k(!1);
1853
+ const n = w(!1);
1854
1854
  return {
1855
1855
  abierto: n,
1856
1856
  idDelMenu: "vsk-menu-suelto",
1857
- idDeLaEtiqueta: k(null),
1857
+ idDeLaEtiqueta: w(null),
1858
1858
  ponerLaEtiqueta: () => {
1859
1859
  },
1860
- disparador: k(null),
1860
+ disparador: w(null),
1861
1861
  ponerElDisparador: () => {
1862
1862
  },
1863
- focoAlAbrir: k("ninguno"),
1863
+ focoAlAbrir: w("ninguno"),
1864
1864
  abrir: () => {
1865
1865
  n.value = !0;
1866
1866
  },
@@ -1883,7 +1883,7 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
1883
1883
  },
1884
1884
  emits: ["update:open"],
1885
1885
  setup(e, { emit: n }) {
1886
- const t = e, a = n, l = k(!1), o = k(null), s = k(null), u = k("ninguno"), m = ct();
1886
+ const t = e, a = n, l = w(!1), o = w(null), s = w(null), u = w("ninguno"), m = ct();
1887
1887
  let f = null;
1888
1888
  const d = v({
1889
1889
  get: () => t.open ?? l.value,
@@ -1944,7 +1944,7 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
1944
1944
  sideOffset: { default: 4 }
1945
1945
  },
1946
1946
  setup(e) {
1947
- const n = e, t = Ce(), { idDelMenu: a, idDeLaEtiqueta: l } = t, o = v(() => t.disparador.value), s = v(() => t.abierto.value), u = k(null), m = k({
1947
+ const n = e, t = $e(), { idDelMenu: a, idDeLaEtiqueta: l } = t, o = v(() => t.disparador.value), s = v(() => t.abierto.value), u = w(null), m = w({
1948
1948
  top: 0,
1949
1949
  left: 0,
1950
1950
  techo: null
@@ -1972,7 +1972,7 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
1972
1972
  }
1973
1973
  function L() {
1974
1974
  if (!o.value || !u.value) return;
1975
- const c = o.value.getBoundingClientRect(), b = u.value.scrollHeight, p = u.value.offsetWidth, P = n.side === "top" || n.side === "bottom", le = P ? b : p;
1975
+ const c = o.value.getBoundingClientRect(), b = u.value.scrollHeight, p = u.value.offsetWidth, R = n.side === "top" || n.side === "bottom", le = R ? b : p;
1976
1976
  let K = n.side;
1977
1977
  const oe = d(K, c);
1978
1978
  oe < le && d(f[K], c) > oe && (K = f[K]);
@@ -1994,7 +1994,7 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
1994
1994
  break;
1995
1995
  }
1996
1996
  }
1997
- if (P)
1997
+ if (R)
1998
1998
  switch (n.align) {
1999
1999
  case "start":
2000
2000
  T = c.left;
@@ -2066,15 +2066,15 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
2066
2066
  s.value && (c && u.value?.contains(c.target) || L());
2067
2067
  }
2068
2068
  function h(c) {
2069
- const b = c.target, p = !!b.closest("[data-dropdown-content]"), P = !!o.value?.contains(b);
2070
- !p && !P && t.cerrar();
2069
+ const b = c.target, p = !!b.closest("[data-dropdown-content]"), R = !!o.value?.contains(b);
2070
+ !p && !R && t.cerrar();
2071
2071
  }
2072
2072
  return W(() => {
2073
2073
  document.addEventListener("click", h), window.addEventListener("resize", C), window.addEventListener("scroll", C, !0);
2074
2074
  }), pe(() => {
2075
2075
  document.removeEventListener("click", h), window.removeEventListener("resize", C), window.removeEventListener("scroll", C, !0);
2076
2076
  }), (c, b) => (i(), U(ge, { to: "body" }, [
2077
- O(we, {
2077
+ O(ke, {
2078
2078
  "enter-active-class": "transition-all duration-150 ease-in-out",
2079
2079
  "leave-active-class": "transition-all duration-150 ease-in-out",
2080
2080
  "enter-from-class": "opacity-0 scale-95",
@@ -2083,7 +2083,7 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
2083
2083
  onLeave: b[2] || (b[2] = (p) => p.offsetHeight)
2084
2084
  }, {
2085
2085
  default: G(() => [
2086
- Se(B("div", ce({
2086
+ Be(B("div", ce({
2087
2087
  ref_key: "contenido",
2088
2088
  ref: u
2089
2089
  }, c.$attrs, {
@@ -2125,7 +2125,7 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
2125
2125
  },
2126
2126
  emits: ["select", "click"],
2127
2127
  setup(e, { emit: n }) {
2128
- const t = e, a = n, l = Ce();
2128
+ const t = e, a = n, l = $e();
2129
2129
  function o(s) {
2130
2130
  t.disabled || (a("select"), a("click", s), l.cerrar({ devolverElFoco: !0 }));
2131
2131
  }
@@ -2142,8 +2142,8 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
2142
2142
  ]),
2143
2143
  onClick: o,
2144
2144
  onKeydown: [
2145
- R(V(o, ["prevent"]), ["enter"]),
2146
- R(V(o, ["prevent"]), ["space"])
2145
+ P(V(o, ["prevent"]), ["enter"]),
2146
+ P(V(o, ["prevent"]), ["space"])
2147
2147
  ]
2148
2148
  }, [
2149
2149
  S(s.$slots, "default")
@@ -2152,7 +2152,7 @@ const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
2152
2152
  }), rl = /* @__PURE__ */ D({
2153
2153
  __name: "DropdownMenuLabel",
2154
2154
  setup(e) {
2155
- const n = Ce(), t = `${ct()}-titulo`;
2155
+ const n = $e(), t = `${ct()}-titulo`;
2156
2156
  return W(() => {
2157
2157
  n.ponerLaEtiqueta(t);
2158
2158
  }), pe(() => {
@@ -2198,7 +2198,7 @@ const dl = D({
2198
2198
  disabled: { type: Boolean, default: !1 }
2199
2199
  },
2200
2200
  setup(e, { slots: n, attrs: t }) {
2201
- const a = Ce(), l = k(null);
2201
+ const a = $e(), l = w(null);
2202
2202
  function o() {
2203
2203
  a.ponerElDisparador(cl(l.value));
2204
2204
  }
@@ -2268,7 +2268,7 @@ const dl = D({
2268
2268
  S(n.$slots, "default", {}, void 0, !0)
2269
2269
  ], 2));
2270
2270
  }
2271
- }), bl = /* @__PURE__ */ $e(ml, [["__scopeId", "data-v-c0d9d9cb"]]), vl = /* @__PURE__ */ D({
2271
+ }), bl = /* @__PURE__ */ Oe(ml, [["__scopeId", "data-v-c0d9d9cb"]]), vl = ["role", "tabindex", "onKeydown"], pl = /* @__PURE__ */ D({
2272
2272
  __name: "ListCard",
2273
2273
  props: {
2274
2274
  clickable: { type: Boolean, default: !1 },
@@ -2281,21 +2281,27 @@ const dl = D({
2281
2281
  };
2282
2282
  return (o, s) => (i(), r("div", {
2283
2283
  class: y([
2284
- "flex items-center justify-between background p-3 rounded-vsk border border-vsk-primary/70 transition-colors duration-200",
2284
+ "flex items-center justify-between background p-3 rounded-corner border border-ui-border transition-colors duration-200",
2285
2285
  {
2286
- "hover:bg-vsk-primary/5 cursor-pointer": t.clickable
2286
+ "hover:bg-ui-surface/60 cursor-pointer": t.clickable
2287
2287
  },
2288
2288
  e.customClass
2289
2289
  ]),
2290
- onClick: l
2290
+ role: t.clickable ? "button" : void 0,
2291
+ tabindex: t.clickable ? 0 : void 0,
2292
+ onClick: l,
2293
+ onKeydown: [
2294
+ P(V(l, ["self", "prevent"]), ["enter"]),
2295
+ P(V(l, ["self", "prevent"]), ["space"])
2296
+ ]
2291
2297
  }, [
2292
- S(o.$slots, "default", {}, void 0, !0)
2293
- ], 2));
2298
+ S(o.$slots, "default")
2299
+ ], 42, vl));
2294
2300
  }
2295
- }), pl = /* @__PURE__ */ $e(vl, [["__scopeId", "data-v-f86d47da"]]), yl = { class: "background rounded-corner flex flex-row items-center gap-2 justify-between w-full h-auto p-4 transition-[background-color] duration-200 hover:bg-ui-surface/80 dark:hover:bg-ui-surface-dark/80" }, gl = ["title", "aria-label"], hl = ["src"], xl = {
2301
+ }), yl = { class: "background rounded-corner flex flex-row items-center gap-2 justify-between w-full h-auto p-4 transition-[background-color] duration-200 hover:bg-ui-surface/80 dark:hover:bg-ui-surface-dark/80" }, gl = ["title", "aria-label"], hl = ["src"], xl = {
2296
2302
  key: 1,
2297
2303
  class: "w-8 h-8 flex items-center justify-center"
2298
- }, kl = ["src"], wl = ["min", "max", "value", "aria-label", "aria-valuetext"], $l = /* @__PURE__ */ D({
2304
+ }, wl = ["src"], kl = ["min", "max", "value", "aria-label", "aria-valuetext"], $l = /* @__PURE__ */ D({
2299
2305
  __name: "SliderControl",
2300
2306
  props: {
2301
2307
  name: { default: "" },
@@ -2360,7 +2366,7 @@ const dl = D({
2360
2366
  src: e.icon,
2361
2367
  alt: "",
2362
2368
  class: "w-6 h-6"
2363
- }, null, 8, kl))
2369
+ }, null, 8, wl))
2364
2370
  ])),
2365
2371
  B("input", {
2366
2372
  type: "range",
@@ -2371,7 +2377,7 @@ const dl = D({
2371
2377
  "aria-label": e.label,
2372
2378
  "aria-valuetext": `${l.value}%`,
2373
2379
  class: "flex-1 transition-[scale] duration-200 hover:scale-105"
2374
- }, null, 40, wl),
2380
+ }, null, 40, kl),
2375
2381
  B("span", {
2376
2382
  class: y(["w-12 text-right transition-[color] duration-200 font-medium", o.value])
2377
2383
  }, M(l.value) + "% ", 3)
@@ -2543,12 +2549,12 @@ const dl = D({
2543
2549
  }
2544
2550
  }), ft = /* @__PURE__ */ Symbol("tooltip de vasak");
2545
2551
  function mt() {
2546
- const e = ke(ft, null);
2552
+ const e = we(ft, null);
2547
2553
  if (e) return e;
2548
- const n = k(!1);
2554
+ const n = w(!1);
2549
2555
  return {
2550
2556
  abierto: v(() => n.value),
2551
- disparador: k(null),
2557
+ disparador: w(null),
2552
2558
  ponerElDisparador: () => {
2553
2559
  },
2554
2560
  abrir: () => {
@@ -2566,7 +2572,7 @@ const Vl = { class: "inline-block" }, Il = /* @__PURE__ */ D({
2566
2572
  delayDuration: { default: 200 }
2567
2573
  },
2568
2574
  setup(e) {
2569
- const n = e, t = k(!1), a = k(null);
2575
+ const n = e, t = w(!1), a = w(null);
2570
2576
  let l = null;
2571
2577
  function o() {
2572
2578
  n.disabled || (l = setTimeout(() => {
@@ -2597,7 +2603,7 @@ const Vl = { class: "inline-block" }, Il = /* @__PURE__ */ D({
2597
2603
  sideOffset: { default: 4 }
2598
2604
  },
2599
2605
  setup(e) {
2600
- const n = Be(), t = v(() => n.class ?? ""), a = e, l = mt(), o = v(() => l.abierto.value), s = k(null), u = k({ top: 0, left: 0 });
2606
+ const n = Ae(), t = v(() => n.class ?? ""), a = e, l = mt(), o = v(() => l.abierto.value), s = w(null), u = w({ top: 0, left: 0 });
2601
2607
  function m() {
2602
2608
  const f = l.disparador.value;
2603
2609
  if (!f || !s.value) return;
@@ -2622,14 +2628,14 @@ const Vl = { class: "inline-block" }, Il = /* @__PURE__ */ D({
2622
2628
  return Q(o, async (f) => {
2623
2629
  f && (await J(), requestAnimationFrame(m));
2624
2630
  }), (f, d) => (i(), U(ge, { to: "body" }, [
2625
- O(we, {
2631
+ O(ke, {
2626
2632
  "enter-active-class": "transition-all duration-200 ease-in-out",
2627
2633
  "leave-active-class": "transition-all duration-200 ease-in-out",
2628
2634
  "enter-from-class": "opacity-0 scale-95",
2629
2635
  "leave-to-class": "opacity-0 scale-95"
2630
2636
  }, {
2631
2637
  default: G(() => [
2632
- Se(B("div", {
2638
+ Be(B("div", {
2633
2639
  ref_key: "globo",
2634
2640
  ref: s,
2635
2641
  style: fe({ position: "fixed", top: `${u.value.top}px`, left: `${u.value.left}px`, zIndex: 50 }),
@@ -2650,7 +2656,7 @@ const Vl = { class: "inline-block" }, Il = /* @__PURE__ */ D({
2650
2656
  }), jl = /* @__PURE__ */ D({
2651
2657
  __name: "TooltipTrigger",
2652
2658
  setup(e) {
2653
- const n = mt(), t = k(null);
2659
+ const n = mt(), t = w(null);
2654
2660
  function a() {
2655
2661
  return t.value ? t.value.firstElementChild ?? t.value : null;
2656
2662
  }
@@ -2691,7 +2697,7 @@ const Vl = { class: "inline-block" }, Il = /* @__PURE__ */ D({
2691
2697
  },
2692
2698
  emits: ["click"],
2693
2699
  setup(e, { emit: n }) {
2694
- const t = e, a = n, l = k(!1);
2700
+ const t = e, a = n, l = w(!1);
2695
2701
  W(() => {
2696
2702
  t.icon && !t.name && console.warn(
2697
2703
  "[TrayIconButton] «icon» está obsoleto y se va en la próxima mayor: recibe una ruta ya resuelta. Usá «name» con el nombre del icono del tema, y «type» si hace falta el símbolo."
@@ -2751,7 +2757,7 @@ const Vl = { class: "inline-block" }, Il = /* @__PURE__ */ D({
2751
2757
  on,
2752
2758
  sn,
2753
2759
  mn,
2754
- Oe,
2760
+ Ie,
2755
2761
  Ln,
2756
2762
  lt,
2757
2763
  cn,
@@ -2796,7 +2802,7 @@ export {
2796
2802
  rt as CLAVE_DEL_DIALOGO,
2797
2803
  ut as CLAVE_DEL_MENU,
2798
2804
  ft as CLAVE_DEL_TOOLTIP,
2799
- Ve as CLAVE_DE_LA_BARRA,
2805
+ Me as CLAVE_DE_LA_BARRA,
2800
2806
  An as ConfigSection,
2801
2807
  Rn as DeviceCard,
2802
2808
  Nn as Dialog,
@@ -2813,12 +2819,12 @@ export {
2813
2819
  dl as DropdownMenuTrigger,
2814
2820
  on as EmptyState,
2815
2821
  bl as FormGroup,
2816
- Ie as LOS_TRES_CONTROLES,
2822
+ Ve as LOS_TRES_CONTROLES,
2817
2823
  pl as ListCard,
2818
2824
  sn as LoadingState,
2819
2825
  va as POSICIONES,
2820
2826
  mn as ProgressBar,
2821
- Oe as SearchField,
2827
+ Ie as SearchField,
2822
2828
  Ln as SearchSelect,
2823
2829
  ba as SelectField,
2824
2830
  ua as SideBar,
@@ -2844,11 +2850,11 @@ export {
2844
2850
  Xl as default,
2845
2851
  pa as esPosicion,
2846
2852
  Ql as olvidarLosIconosDelTema,
2847
- Ae as orientacionDe,
2853
+ Te as orientacionDe,
2848
2854
  ha as posicionDe,
2849
2855
  it as rolDelTono,
2850
2856
  st as usarElDialogo,
2851
- Ce as usarElMenu,
2857
+ $e as usarElMenu,
2852
2858
  mt as usarElTooltip,
2853
2859
  he as usarLaBarra,
2854
2860
  xa as usarLaPosicionDeLaBarra,