@vasakgroup/vue-libvasak 1.1.0 → 1.3.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.
- package/dist/types/controls/ActionButton.vue.d.ts +1 -1
- package/dist/types/icons/ThemeIcon.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internos/iconoDelTema.d.ts +44 -1
- package/dist/types/search/SearchField.vue.d.ts +2 -2
- package/dist/vue-libvasak.es.js +851 -780
- package/dist/vue-libvasak.umd.js +1 -1
- package/package.json +1 -1
package/dist/vue-libvasak.es.js
CHANGED
|
@@ -1,55 +1,119 @@
|
|
|
1
|
-
import { ref as w, onMounted as J, onUnmounted as ve, watch as W, defineComponent as
|
|
2
|
-
import { listen as
|
|
3
|
-
import { getSymbolSource as
|
|
4
|
-
import { getCurrentWindow as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
const
|
|
7
|
-
let
|
|
8
|
-
function
|
|
9
|
-
|
|
1
|
+
import { ref as w, onMounted as J, onUnmounted as ve, readonly as vt, watch as W, defineComponent as D, toRef as Pe, useTemplateRef as pt, computed as v, createElementBlock as i, unref as F, openBlock as r, normalizeStyle as fe, createCommentVNode as x, createElementVNode as T, createVNode as O, toDisplayString as M, normalizeClass as h, renderSlot as S, createBlock as Y, onBeforeUnmount as pe, Fragment as te, renderList as ue, withCtx as K, mergeModels as Re, useAttrs as Be, useId as gt, useModel as yt, withDirectives as Se, mergeProps as ce, isRef as ht, vModelSelect as xt, inject as we, getCurrentInstance as Ge, provide as ge, createTextVNode as Me, toHandlers as Qe, createSlots as wt, withModifiers as V, withKeys as R, Teleport as ye, Transition as ke, nextTick as X, TransitionGroup as kt, vShow as Ye, cloneVNode as $t, h as Ct, Comment as Et, Text as Lt } from "vue";
|
|
2
|
+
import { listen as zt } from "@tauri-apps/api/event";
|
|
3
|
+
import { getSymbolSource as Dt, getIconSource as Tt } from "@vasakgroup/plugin-vicons";
|
|
4
|
+
import { getCurrentWindow as At } from "@tauri-apps/api/window";
|
|
5
|
+
import { useI18n as Bt } from "@vasakgroup/tauri-plugin-i18n";
|
|
6
|
+
const St = "vicons:theme-changed", xe = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), me = w(0);
|
|
7
|
+
let se = 0, be = null, re = null;
|
|
8
|
+
function Ql() {
|
|
9
|
+
xe.clear(), ie.clear(), se = 0, be = null, re = null, me.value = 0, ae.clear(), ne.clear(), Xe = 0, ee?.disconnect(), ee = null, De = !1, Q !== null && (clearTimeout(Q), Q = null), _ && (_.cancelado = !0), _ = null;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const Mt = 100, Ee = 10, Vt = 16, ae = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Set();
|
|
12
|
+
let Xe = 0, ee = null, De = !1;
|
|
13
|
+
function It() {
|
|
14
|
+
return De ? ee : (De = !0, typeof IntersectionObserver > "u" ? null : (ee = new IntersectionObserver(
|
|
15
|
+
(e) => {
|
|
16
|
+
for (const n of e) {
|
|
17
|
+
const t = n.target.dataset?.iconoId;
|
|
18
|
+
if (t == null) continue;
|
|
19
|
+
const a = Number.parseInt(t, 10);
|
|
20
|
+
n.isIntersecting ? ne.add(a) : ne.delete(a);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{ threshold: 0 }
|
|
24
|
+
), ee));
|
|
25
|
+
}
|
|
26
|
+
function Ot(e) {
|
|
27
|
+
const n = Xe++;
|
|
28
|
+
return ae.set(n, { recargar: e, elemento: null }), ne.add(n), n;
|
|
29
|
+
}
|
|
30
|
+
function jt(e, n) {
|
|
31
|
+
const t = ae.get(e);
|
|
32
|
+
if (!t || t.elemento === n || (t.elemento && (ee?.unobserve(t.elemento), delete t.elemento.dataset.iconoId, t.elemento = null), !n)) return;
|
|
33
|
+
const a = It();
|
|
34
|
+
a && (t.elemento = n, n.dataset.iconoId = String(e), a.observe(n));
|
|
35
|
+
}
|
|
36
|
+
function Pt(e) {
|
|
37
|
+
const n = ae.get(e);
|
|
38
|
+
n?.elemento && (ee?.unobserve(n.elemento), delete n.elemento.dataset.iconoId), ne.delete(e), ae.delete(e);
|
|
39
|
+
}
|
|
40
|
+
let Q = null, _ = null;
|
|
41
|
+
function Rt(e) {
|
|
42
|
+
return new Promise((n) => setTimeout(n, e));
|
|
43
|
+
}
|
|
44
|
+
async function Ft(e) {
|
|
45
|
+
const n = [...ae.keys()], t = n.filter((l) => ne.has(l)), a = n.filter((l) => !ne.has(l));
|
|
46
|
+
for (const l of [t, a])
|
|
47
|
+
for (let o = 0; o < l.length; o += Ee) {
|
|
48
|
+
if (e.cancelado) return;
|
|
49
|
+
const s = l.slice(o, o + Ee);
|
|
50
|
+
if (await Promise.allSettled(
|
|
51
|
+
s.map((u) => ae.get(u)?.recargar() ?? Promise.resolve())
|
|
52
|
+
), e.cancelado) return;
|
|
53
|
+
(o + Ee < l.length || l === t) && await Rt(Vt);
|
|
54
|
+
}
|
|
55
|
+
_ === e && (_ = null);
|
|
56
|
+
}
|
|
57
|
+
function Nt() {
|
|
58
|
+
Q !== null && (clearTimeout(Q), Q = null), _ && (_.cancelado = !0);
|
|
59
|
+
const e = { cancelado: !1 };
|
|
60
|
+
_ = e, Ft(e);
|
|
13
61
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
62
|
+
function qt() {
|
|
63
|
+
xe.clear(), ie.clear(), me.value++, Q !== null && clearTimeout(Q), Q = setTimeout(() => {
|
|
64
|
+
Q = null, Nt();
|
|
65
|
+
}, Mt);
|
|
18
66
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
67
|
+
function Je() {
|
|
68
|
+
return se++, be || re ? re ?? Promise.resolve() : (re = zt(St, qt).then((e) => {
|
|
69
|
+
se <= 0 ? e() : be = e, re = null;
|
|
70
|
+
}), re);
|
|
21
71
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
72
|
+
function Te() {
|
|
73
|
+
se--, !(se > 0) && (se = 0, be?.(), be = null);
|
|
74
|
+
}
|
|
75
|
+
function Ht(e, n) {
|
|
76
|
+
const t = `${n}:${e}`, a = xe.get(t);
|
|
24
77
|
if (a !== void 0)
|
|
25
78
|
return Promise.resolve(a);
|
|
26
|
-
const l =
|
|
79
|
+
const l = ie.get(t);
|
|
27
80
|
if (l)
|
|
28
81
|
return l;
|
|
29
|
-
const o =
|
|
30
|
-
|
|
82
|
+
const o = me.value, s = (n === "symbol" ? Dt(e) : Tt(e)).then((u) => (me.value === o && xe.set(t, u), u)).finally(() => {
|
|
83
|
+
ie.get(t) === s && ie.delete(t);
|
|
31
84
|
});
|
|
32
|
-
return
|
|
85
|
+
return ie.set(t, s), s;
|
|
86
|
+
}
|
|
87
|
+
function Yl() {
|
|
88
|
+
let e = !1;
|
|
89
|
+
return J(async () => {
|
|
90
|
+
await Je(), e && Te();
|
|
91
|
+
}), ve(() => {
|
|
92
|
+
e || (e = !0, Te());
|
|
93
|
+
}), vt(me);
|
|
33
94
|
}
|
|
34
|
-
function
|
|
95
|
+
function Ut(e, n) {
|
|
35
96
|
const t = w("");
|
|
36
97
|
let a = !1, l = 0;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
98
|
+
const o = Ot(async () => {
|
|
99
|
+
await s();
|
|
100
|
+
});
|
|
101
|
+
async function s() {
|
|
102
|
+
const u = ++l, m = e.value;
|
|
103
|
+
if (!m) {
|
|
40
104
|
t.value = "";
|
|
41
105
|
return;
|
|
42
106
|
}
|
|
43
|
-
const
|
|
44
|
-
|
|
107
|
+
const f = await Ht(m, n.value);
|
|
108
|
+
u === l && !a && (t.value = f);
|
|
45
109
|
}
|
|
46
110
|
return J(async () => {
|
|
47
|
-
await
|
|
111
|
+
await Je(), a || await s();
|
|
48
112
|
}), ve(() => {
|
|
49
|
-
a = !0,
|
|
50
|
-
}), W([e, n],
|
|
113
|
+
a = !0, Pt(o), Te();
|
|
114
|
+
}), W([e, n], s), { fuente: t, mirarElemento: (u) => jt(o, u) };
|
|
51
115
|
}
|
|
52
|
-
const
|
|
116
|
+
const Kt = ["src", "alt"], H = /* @__PURE__ */ D({
|
|
53
117
|
__name: "ThemeIcon",
|
|
54
118
|
props: {
|
|
55
119
|
name: {},
|
|
@@ -58,23 +122,29 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
58
122
|
alt: { default: "" }
|
|
59
123
|
},
|
|
60
124
|
setup(e) {
|
|
61
|
-
const n = e, t =
|
|
62
|
-
|
|
125
|
+
const n = e, { fuente: t, mirarElemento: a } = Ut(Pe(n, "name"), Pe(n, "type")), l = pt("dibujo");
|
|
126
|
+
W(l, (s) => a(s), { immediate: !0 });
|
|
127
|
+
const o = v(() => `${n.size}px`);
|
|
128
|
+
return (s, u) => F(t) ? (r(), i("img", {
|
|
63
129
|
key: 0,
|
|
64
|
-
|
|
130
|
+
ref_key: "dibujo",
|
|
131
|
+
ref: l,
|
|
132
|
+
src: F(t),
|
|
65
133
|
alt: e.alt,
|
|
66
|
-
style:
|
|
134
|
+
style: fe({ width: o.value, height: o.value }),
|
|
67
135
|
class: "shrink-0 object-contain"
|
|
68
|
-
}, null, 12,
|
|
136
|
+
}, null, 12, Kt)) : (r(), i("span", {
|
|
69
137
|
key: 1,
|
|
70
|
-
|
|
138
|
+
ref_key: "dibujo",
|
|
139
|
+
ref: l,
|
|
140
|
+
style: fe({ width: o.value, height: o.value }),
|
|
71
141
|
class: "shrink-0"
|
|
72
142
|
}, null, 4));
|
|
73
143
|
}
|
|
74
|
-
}),
|
|
144
|
+
}), Wt = { class: "flex flex-col gap-2" }, Gt = ["aria-expanded"], Qt = {
|
|
75
145
|
key: 1,
|
|
76
146
|
class: "flex flex-col gap-1"
|
|
77
|
-
},
|
|
147
|
+
}, Ze = /* @__PURE__ */ D({
|
|
78
148
|
__name: "SideGroup",
|
|
79
149
|
props: {
|
|
80
150
|
title: {},
|
|
@@ -88,34 +158,34 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
88
158
|
(a) => {
|
|
89
159
|
a && (t.value = !0);
|
|
90
160
|
}
|
|
91
|
-
), (a, l) => (
|
|
92
|
-
e.collapsed ? x("", !0) : (
|
|
161
|
+
), (a, l) => (r(), i("section", Wt, [
|
|
162
|
+
e.collapsed ? x("", !0) : (r(), i("button", {
|
|
93
163
|
key: 0,
|
|
94
164
|
type: "button",
|
|
95
165
|
class: "group flex w-full items-center justify-between rounded-corner px-2 py-1 text-tx-muted text-xs uppercase tracking-[0.08em] hover:bg-ui-surface/60",
|
|
96
166
|
"aria-expanded": t.value,
|
|
97
167
|
onClick: l[0] || (l[0] = (o) => t.value = !t.value)
|
|
98
168
|
}, [
|
|
99
|
-
T("span", null,
|
|
169
|
+
T("span", null, M(e.title), 1),
|
|
100
170
|
O(H, {
|
|
101
171
|
name: "pan-down-symbolic",
|
|
102
172
|
type: "symbol",
|
|
103
173
|
size: 12,
|
|
104
174
|
class: h(["transition-transform duration-200", t.value ? "" : "-rotate-90"])
|
|
105
175
|
}, null, 8, ["class"])
|
|
106
|
-
], 8,
|
|
107
|
-
t.value || e.collapsed ? (
|
|
176
|
+
], 8, Gt)),
|
|
177
|
+
t.value || e.collapsed ? (r(), i("div", Qt, [
|
|
108
178
|
S(a.$slots, "default")
|
|
109
179
|
])) : x("", !0)
|
|
110
180
|
]));
|
|
111
181
|
}
|
|
112
|
-
}),
|
|
182
|
+
}), Yt = ["title", "aria-label", "disabled", "aria-current"], Xt = { key: 1 }, Jt = {
|
|
113
183
|
key: 0,
|
|
114
184
|
class: "min-w-0 flex-1 truncate font-medium"
|
|
115
|
-
},
|
|
185
|
+
}, Zt = {
|
|
116
186
|
key: 1,
|
|
117
187
|
class: "rounded-corner bg-ui-surface px-2 py-0.5 font-semibold text-tx-muted text-xs"
|
|
118
|
-
},
|
|
188
|
+
}, _e = /* @__PURE__ */ D({
|
|
119
189
|
__name: "SideButton",
|
|
120
190
|
props: {
|
|
121
191
|
label: {},
|
|
@@ -127,7 +197,7 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
127
197
|
},
|
|
128
198
|
emits: ["click"],
|
|
129
199
|
setup(e) {
|
|
130
|
-
return (n, t) => (
|
|
200
|
+
return (n, t) => (r(), i("button", {
|
|
131
201
|
type: "button",
|
|
132
202
|
title: e.collapsed ? e.label : void 0,
|
|
133
203
|
"aria-label": e.collapsed ? e.label : void 0,
|
|
@@ -144,32 +214,32 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
144
214
|
class: h(["flex h-8 w-8 shrink-0 items-center justify-center rounded-corner font-semibold text-xs uppercase tracking-wide", e.active ? "border-secondary bg-primary/20" : ""]),
|
|
145
215
|
"aria-hidden": "true"
|
|
146
216
|
}, [
|
|
147
|
-
e.icon ? (
|
|
217
|
+
e.icon ? (r(), Y(H, {
|
|
148
218
|
key: 0,
|
|
149
219
|
name: e.icon,
|
|
150
220
|
size: 20
|
|
151
|
-
}, null, 8, ["name"])) : (
|
|
221
|
+
}, null, 8, ["name"])) : (r(), i("span", Xt, M(e.label.charAt(0).toUpperCase()), 1))
|
|
152
222
|
], 2),
|
|
153
|
-
e.collapsed ? x("", !0) : (
|
|
154
|
-
!e.collapsed && e.badge !== "" ? (
|
|
155
|
-
], 10,
|
|
223
|
+
e.collapsed ? x("", !0) : (r(), i("span", Jt, M(e.label), 1)),
|
|
224
|
+
!e.collapsed && e.badge !== "" ? (r(), i("span", Zt, M(e.badge), 1)) : x("", !0)
|
|
225
|
+
], 10, Yt));
|
|
156
226
|
}
|
|
157
|
-
}),
|
|
227
|
+
}), _t = {
|
|
158
228
|
key: 0,
|
|
159
229
|
class: "flex flex-col gap-2 border-ui-border border-b p-2"
|
|
160
|
-
},
|
|
230
|
+
}, ea = { class: "flex items-center gap-2" }, ta = ["aria-label", "aria-expanded"], aa = {
|
|
161
231
|
key: 0,
|
|
162
232
|
class: "min-w-0 flex-1"
|
|
163
|
-
},
|
|
233
|
+
}, na = {
|
|
164
234
|
key: 0,
|
|
165
235
|
class: "truncate font-semibold text-sm"
|
|
166
|
-
},
|
|
236
|
+
}, la = {
|
|
167
237
|
key: 1,
|
|
168
238
|
class: "truncate text-tx-muted text-xs"
|
|
169
|
-
},
|
|
239
|
+
}, oa = { key: 0 }, ra = {
|
|
170
240
|
key: 1,
|
|
171
241
|
class: "flex border-ui-border border-b p-2"
|
|
172
|
-
},
|
|
242
|
+
}, ia = ["aria-label", "aria-expanded"], sa = { class: "flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-2" }, Fe = "hidden h-8 w-8 shrink-0 items-center justify-center rounded-corner border border-ui-border bg-ui-surface/70 transition-colors hover:bg-ui-surface md:inline-flex", Ne = 767, ua = /* @__PURE__ */ D({
|
|
173
243
|
__name: "SideBar",
|
|
174
244
|
props: {
|
|
175
245
|
title: { default: "" },
|
|
@@ -189,13 +259,13 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
189
259
|
function L() {
|
|
190
260
|
return document.documentElement?.clientWidth || window.innerWidth;
|
|
191
261
|
}
|
|
192
|
-
function
|
|
193
|
-
s.value = L() <=
|
|
262
|
+
function z() {
|
|
263
|
+
s.value = L() <= Ne;
|
|
194
264
|
}
|
|
195
|
-
function
|
|
265
|
+
function B() {
|
|
196
266
|
o.value = !o.value, l("update:collapsed", o.value);
|
|
197
267
|
}
|
|
198
|
-
function
|
|
268
|
+
function g($) {
|
|
199
269
|
l("update:modelValue", $), l("change", $);
|
|
200
270
|
}
|
|
201
271
|
return W(
|
|
@@ -204,66 +274,66 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
204
274
|
$ !== void 0 && (o.value = $);
|
|
205
275
|
}
|
|
206
276
|
), J(() => {
|
|
207
|
-
u = window.matchMedia(`(max-width: ${
|
|
208
|
-
}),
|
|
209
|
-
u?.removeEventListener("change",
|
|
210
|
-
}), n({ collapsed: f }), ($, j) => (
|
|
211
|
-
class: h(["relative z-30 flex h-full shrink-0 flex-col rounded-corner border border-ui-border bg-ui-surface/70 transition-
|
|
277
|
+
u = window.matchMedia(`(max-width: ${Ne}px)`), z(), u.addEventListener("change", z), window.addEventListener("resize", z), typeof ResizeObserver < "u" && document.documentElement && (m = new ResizeObserver(z), m.observe(document.documentElement));
|
|
278
|
+
}), pe(() => {
|
|
279
|
+
u?.removeEventListener("change", z), window.removeEventListener("resize", z), m?.disconnect(), m = null;
|
|
280
|
+
}), n({ collapsed: f }), ($, j) => (r(), i("aside", {
|
|
281
|
+
class: h(["relative z-30 flex h-full shrink-0 flex-col rounded-corner border border-ui-border bg-ui-surface/70 transition-[width] duration-300", ["w-[84px]", f.value ? "md:w-[84px]" : "md:w-72"]])
|
|
212
282
|
}, [
|
|
213
|
-
d.value || $.$slots.header ? (
|
|
214
|
-
T("div",
|
|
283
|
+
d.value || $.$slots.header ? (r(), i("header", _t, [
|
|
284
|
+
T("div", ea, [
|
|
215
285
|
T("button", {
|
|
216
286
|
type: "button",
|
|
217
|
-
class: h(
|
|
287
|
+
class: h(Fe),
|
|
218
288
|
"aria-label": f.value ? e.expandLabel : e.collapseLabel,
|
|
219
289
|
"aria-expanded": !f.value,
|
|
220
|
-
onClick:
|
|
290
|
+
onClick: B
|
|
221
291
|
}, [
|
|
222
292
|
O(H, {
|
|
223
293
|
name: f.value ? "pan-end-symbolic" : "pan-start-symbolic",
|
|
224
294
|
type: "symbol",
|
|
225
295
|
size: 16
|
|
226
296
|
}, null, 8, ["name"])
|
|
227
|
-
], 8,
|
|
228
|
-
d.value && !f.value ? (
|
|
229
|
-
e.title ? (
|
|
230
|
-
e.subtitle ? (
|
|
297
|
+
], 8, ta),
|
|
298
|
+
d.value && !f.value ? (r(), i("div", aa, [
|
|
299
|
+
e.title ? (r(), i("p", na, M(e.title), 1)) : x("", !0),
|
|
300
|
+
e.subtitle ? (r(), i("p", la, M(e.subtitle), 1)) : x("", !0)
|
|
231
301
|
])) : x("", !0)
|
|
232
302
|
]),
|
|
233
|
-
$.$slots.header && !f.value ? (
|
|
303
|
+
$.$slots.header && !f.value ? (r(), i("div", oa, [
|
|
234
304
|
S($.$slots, "header", { collapsed: f.value })
|
|
235
305
|
])) : x("", !0)
|
|
236
|
-
])) : (
|
|
306
|
+
])) : (r(), i("div", ra, [
|
|
237
307
|
T("button", {
|
|
238
308
|
type: "button",
|
|
239
|
-
class: h(
|
|
309
|
+
class: h(Fe),
|
|
240
310
|
"aria-label": f.value ? e.expandLabel : e.collapseLabel,
|
|
241
311
|
"aria-expanded": !f.value,
|
|
242
|
-
onClick:
|
|
312
|
+
onClick: B
|
|
243
313
|
}, [
|
|
244
314
|
O(H, {
|
|
245
315
|
name: f.value ? "pan-end-symbolic" : "pan-start-symbolic",
|
|
246
316
|
type: "symbol",
|
|
247
317
|
size: 16
|
|
248
318
|
}, null, 8, ["name"])
|
|
249
|
-
], 8,
|
|
319
|
+
], 8, ia)
|
|
250
320
|
])),
|
|
251
|
-
T("div",
|
|
252
|
-
(
|
|
321
|
+
T("div", sa, [
|
|
322
|
+
(r(!0), i(te, null, ue(e.categories, (C) => (r(), Y(Ze, {
|
|
253
323
|
key: C.id,
|
|
254
324
|
title: C.title,
|
|
255
325
|
collapsed: f.value
|
|
256
326
|
}, {
|
|
257
327
|
default: K(() => [
|
|
258
|
-
(
|
|
259
|
-
key:
|
|
260
|
-
label:
|
|
261
|
-
icon:
|
|
262
|
-
badge:
|
|
263
|
-
disabled:
|
|
328
|
+
(r(!0), i(te, null, ue(C.items, (y) => (r(), Y(_e, {
|
|
329
|
+
key: y.id,
|
|
330
|
+
label: y.label,
|
|
331
|
+
icon: y.icon,
|
|
332
|
+
badge: y.badge,
|
|
333
|
+
disabled: y.disabled,
|
|
264
334
|
collapsed: f.value,
|
|
265
|
-
active: e.modelValue ===
|
|
266
|
-
onClick: (c) => y
|
|
335
|
+
active: e.modelValue === y.id,
|
|
336
|
+
onClick: (c) => g(y.id)
|
|
267
337
|
}, null, 8, ["label", "icon", "badge", "disabled", "collapsed", "active", "onClick"]))), 128))
|
|
268
338
|
]),
|
|
269
339
|
_: 2
|
|
@@ -272,10 +342,10 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
272
342
|
])
|
|
273
343
|
], 2));
|
|
274
344
|
}
|
|
275
|
-
}),
|
|
345
|
+
}), ca = { class: "flex min-w-0 flex-col gap-1" }, da = ["for"], fa = { class: "relative flex min-w-0 items-center" }, ma = ["id"], ba = /* @__PURE__ */ D({
|
|
276
346
|
inheritAttrs: !1,
|
|
277
347
|
__name: "SelectField",
|
|
278
|
-
props: /* @__PURE__ */
|
|
348
|
+
props: /* @__PURE__ */ Re({
|
|
279
349
|
label: {}
|
|
280
350
|
}, {
|
|
281
351
|
modelValue: {
|
|
@@ -283,30 +353,30 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
283
353
|
},
|
|
284
354
|
modelModifiers: {}
|
|
285
355
|
}),
|
|
286
|
-
emits: /* @__PURE__ */
|
|
356
|
+
emits: /* @__PURE__ */ Re(["change"], ["update:modelValue"]),
|
|
287
357
|
setup(e, { emit: n }) {
|
|
288
|
-
const t = e, a =
|
|
358
|
+
const t = e, a = Be(), l = gt(), o = v(() => a.id ?? l), s = n, [u, m] = yt(e, "modelValue", {
|
|
289
359
|
set(f) {
|
|
290
360
|
return m.number ? Number(f) : f;
|
|
291
361
|
}
|
|
292
362
|
});
|
|
293
|
-
return (f, d) => (
|
|
294
|
-
t.label ? (
|
|
363
|
+
return (f, d) => (r(), i("div", ca, [
|
|
364
|
+
t.label ? (r(), i("label", {
|
|
295
365
|
key: 0,
|
|
296
366
|
for: o.value,
|
|
297
367
|
class: "text-tx-muted text-xs"
|
|
298
|
-
},
|
|
299
|
-
T("div",
|
|
300
|
-
|
|
368
|
+
}, M(t.label), 9, da)) : x("", !0),
|
|
369
|
+
T("div", fa, [
|
|
370
|
+
Se(T("select", ce({
|
|
301
371
|
id: o.value,
|
|
302
|
-
"onUpdate:modelValue": d[0] || (d[0] = (L) =>
|
|
372
|
+
"onUpdate:modelValue": d[0] || (d[0] = (L) => ht(u) ? u.value = L : null),
|
|
303
373
|
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"
|
|
304
|
-
},
|
|
374
|
+
}, F(a), {
|
|
305
375
|
onChange: d[1] || (d[1] = (L) => s("change", L))
|
|
306
376
|
}), [
|
|
307
377
|
S(f.$slots, "default")
|
|
308
|
-
], 16,
|
|
309
|
-
[
|
|
378
|
+
], 16, ma), [
|
|
379
|
+
[xt, F(u)]
|
|
310
380
|
]),
|
|
311
381
|
O(H, {
|
|
312
382
|
name: "pan-down-symbolic",
|
|
@@ -317,36 +387,36 @@ const Lt = ["src", "alt"], H = /* @__PURE__ */ E({
|
|
|
317
387
|
])
|
|
318
388
|
]));
|
|
319
389
|
}
|
|
320
|
-
}),
|
|
321
|
-
function
|
|
390
|
+
}), Ve = /* @__PURE__ */ Symbol("barra de vasak");
|
|
391
|
+
function Ae(e) {
|
|
322
392
|
return e === "left" || e === "right" ? "vertical" : "horizontal";
|
|
323
393
|
}
|
|
324
|
-
const
|
|
325
|
-
function
|
|
326
|
-
return typeof e == "string" &&
|
|
394
|
+
const va = ["top", "bottom", "left", "right"];
|
|
395
|
+
function pa(e) {
|
|
396
|
+
return typeof e == "string" && va.includes(e);
|
|
327
397
|
}
|
|
328
|
-
function
|
|
329
|
-
const e =
|
|
398
|
+
function he() {
|
|
399
|
+
const e = we(Ve, null);
|
|
330
400
|
if (e) return e;
|
|
331
401
|
const n = w("top");
|
|
332
402
|
return {
|
|
333
403
|
posicion: n,
|
|
334
|
-
orientacion: v(() =>
|
|
335
|
-
vertical: v(() =>
|
|
404
|
+
orientacion: v(() => Ae(n.value)),
|
|
405
|
+
vertical: v(() => Ae(n.value) === "vertical")
|
|
336
406
|
};
|
|
337
407
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
340
|
-
const t = e?.[
|
|
341
|
-
return
|
|
408
|
+
const Ie = ["minimize", "maximize", "close"], ga = "window", ya = "barPosition";
|
|
409
|
+
function ha(e) {
|
|
410
|
+
const t = e?.[ga]?.[ya];
|
|
411
|
+
return pa(t) ? t : null;
|
|
342
412
|
}
|
|
343
|
-
function
|
|
413
|
+
function xa(e = "top") {
|
|
344
414
|
const n = w(e);
|
|
345
415
|
let t = null, a = !1;
|
|
346
416
|
async function l() {
|
|
347
417
|
try {
|
|
348
418
|
const { readConfig: o } = await import("@vasakgroup/plugin-config-manager"), s = await o();
|
|
349
|
-
n.value =
|
|
419
|
+
n.value = ha(s) ?? e;
|
|
350
420
|
} catch {
|
|
351
421
|
}
|
|
352
422
|
}
|
|
@@ -363,110 +433,110 @@ function ta(e = "top") {
|
|
|
363
433
|
t = s;
|
|
364
434
|
} catch {
|
|
365
435
|
}
|
|
366
|
-
}),
|
|
436
|
+
}), pe(() => {
|
|
367
437
|
a = !0, t?.(), t = null;
|
|
368
438
|
}), n;
|
|
369
439
|
}
|
|
370
|
-
function
|
|
371
|
-
const n =
|
|
440
|
+
function et(e) {
|
|
441
|
+
const n = Ge(), t = {};
|
|
372
442
|
for (const a of e) {
|
|
373
443
|
const l = `on${a[0].toUpperCase()}${a.slice(1)}`;
|
|
374
444
|
n?.vnode.props?.[l] && (t[a] = () => n.emit(a));
|
|
375
445
|
}
|
|
376
446
|
return t;
|
|
377
447
|
}
|
|
378
|
-
const
|
|
448
|
+
const wa = ["title", "aria-label"], ka = ["title", "aria-label"], $a = ["title", "aria-label"], Le = "flex items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 p-1 transition-colors", tt = /* @__PURE__ */ D({
|
|
379
449
|
__name: "WindowControls",
|
|
380
450
|
props: {
|
|
381
|
-
controls: { default: () =>
|
|
451
|
+
controls: { default: () => Ie },
|
|
382
452
|
minimizeLabel: {},
|
|
383
453
|
maximizeLabel: {},
|
|
384
454
|
closeLabel: {}
|
|
385
455
|
},
|
|
386
456
|
emits: ["minimize", "maximize", "close"],
|
|
387
457
|
setup(e, { emit: n }) {
|
|
388
|
-
const t = e, { t: a } =
|
|
458
|
+
const t = e, { t: a } = Bt(), l = v(() => t.minimizeLabel ?? a("ventana.minimizar")), o = v(() => t.maximizeLabel ?? a("ventana.maximizar")), s = v(() => t.closeLabel ?? a("ventana.cerrar")), u = n, { vertical: m } = he(), f = v(() => ({
|
|
389
459
|
minimize: t.controls.includes("minimize"),
|
|
390
460
|
maximize: t.controls.includes("maximize"),
|
|
391
461
|
close: t.controls.includes("close")
|
|
392
462
|
}));
|
|
393
463
|
function d() {
|
|
394
|
-
return
|
|
464
|
+
return At();
|
|
395
465
|
}
|
|
396
|
-
const L =
|
|
397
|
-
function
|
|
466
|
+
const L = Ge();
|
|
467
|
+
function z(j) {
|
|
398
468
|
return !!L?.vnode.props?.[`on${j}`];
|
|
399
469
|
}
|
|
400
|
-
function
|
|
401
|
-
if (
|
|
470
|
+
function B() {
|
|
471
|
+
if (z("Minimize")) return u("minimize");
|
|
402
472
|
d().minimize();
|
|
403
473
|
}
|
|
404
|
-
function
|
|
405
|
-
if (
|
|
474
|
+
function g() {
|
|
475
|
+
if (z("Maximize")) return u("maximize");
|
|
406
476
|
d().toggleMaximize();
|
|
407
477
|
}
|
|
408
478
|
function $() {
|
|
409
|
-
if (
|
|
479
|
+
if (z("Close")) return u("close");
|
|
410
480
|
d().close();
|
|
411
481
|
}
|
|
412
|
-
return (j, C) => e.controls.length ? (
|
|
482
|
+
return (j, C) => e.controls.length ? (r(), i("div", {
|
|
413
483
|
key: 0,
|
|
414
|
-
class: h(["flex shrink-0 gap-1",
|
|
484
|
+
class: h(["flex shrink-0 gap-1", F(m) ? "flex-col" : ""]),
|
|
415
485
|
"data-tauri-drag-region": ""
|
|
416
486
|
}, [
|
|
417
|
-
f.value.minimize ? (
|
|
487
|
+
f.value.minimize ? (r(), i("button", {
|
|
418
488
|
key: 0,
|
|
419
489
|
type: "button",
|
|
420
|
-
class: h([
|
|
490
|
+
class: h([Le, "hover:bg-status-success"]),
|
|
421
491
|
title: l.value,
|
|
422
492
|
"aria-label": l.value,
|
|
423
|
-
onClick: C[0] || (C[0] = (
|
|
493
|
+
onClick: C[0] || (C[0] = (y) => B())
|
|
424
494
|
}, [
|
|
425
495
|
O(H, {
|
|
426
496
|
name: "window-minimize",
|
|
427
497
|
type: "symbol",
|
|
428
498
|
size: 24
|
|
429
499
|
})
|
|
430
|
-
], 10,
|
|
431
|
-
f.value.maximize ? (
|
|
500
|
+
], 10, wa)) : x("", !0),
|
|
501
|
+
f.value.maximize ? (r(), i("button", {
|
|
432
502
|
key: 1,
|
|
433
503
|
type: "button",
|
|
434
|
-
class: h([
|
|
504
|
+
class: h([Le, "hover:bg-status-warning"]),
|
|
435
505
|
title: o.value,
|
|
436
506
|
"aria-label": o.value,
|
|
437
|
-
onClick: C[1] || (C[1] = (
|
|
507
|
+
onClick: C[1] || (C[1] = (y) => g())
|
|
438
508
|
}, [
|
|
439
509
|
O(H, {
|
|
440
510
|
name: "window-maximize",
|
|
441
511
|
type: "symbol",
|
|
442
512
|
size: 24
|
|
443
513
|
})
|
|
444
|
-
], 10,
|
|
445
|
-
f.value.close ? (
|
|
514
|
+
], 10, ka)) : x("", !0),
|
|
515
|
+
f.value.close ? (r(), i("button", {
|
|
446
516
|
key: 2,
|
|
447
517
|
type: "button",
|
|
448
|
-
class: h([
|
|
518
|
+
class: h([Le, "hover:bg-status-error"]),
|
|
449
519
|
title: s.value,
|
|
450
520
|
"aria-label": s.value,
|
|
451
|
-
onClick: C[2] || (C[2] = (
|
|
521
|
+
onClick: C[2] || (C[2] = (y) => $())
|
|
452
522
|
}, [
|
|
453
523
|
O(H, {
|
|
454
524
|
name: "window-close",
|
|
455
525
|
type: "symbol",
|
|
456
526
|
size: 24
|
|
457
527
|
})
|
|
458
|
-
], 10,
|
|
528
|
+
], 10, $a)) : x("", !0)
|
|
459
529
|
], 2)) : x("", !0);
|
|
460
530
|
}
|
|
461
|
-
}),
|
|
531
|
+
}), Ca = {
|
|
462
532
|
key: 0,
|
|
463
533
|
class: "flex shrink-0 items-center",
|
|
464
534
|
"data-tauri-drag-region": ""
|
|
465
|
-
},
|
|
535
|
+
}, Ea = {
|
|
466
536
|
key: 1,
|
|
467
537
|
class: "min-w-0 shrink truncate text-sm",
|
|
468
538
|
"data-tauri-drag-region": ""
|
|
469
|
-
},
|
|
539
|
+
}, at = /* @__PURE__ */ D({
|
|
470
540
|
__name: "AppBar",
|
|
471
541
|
props: {
|
|
472
542
|
position: { default: null },
|
|
@@ -474,25 +544,25 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
474
544
|
minimizeLabel: {},
|
|
475
545
|
maximizeLabel: {},
|
|
476
546
|
closeLabel: {},
|
|
477
|
-
controls: { default: () =>
|
|
547
|
+
controls: { default: () => Ie }
|
|
478
548
|
},
|
|
479
549
|
emits: ["minimize", "maximize", "close"],
|
|
480
550
|
setup(e) {
|
|
481
|
-
const n = e, t =
|
|
482
|
-
return
|
|
551
|
+
const n = e, t = he(), a = v(() => n.position ?? t.posicion.value), l = v(() => a.value === "left" || a.value === "right");
|
|
552
|
+
return ge(Ve, {
|
|
483
553
|
posicion: a,
|
|
484
554
|
orientacion: v(() => l.value ? "vertical" : "horizontal"),
|
|
485
555
|
vertical: l
|
|
486
|
-
}), (o, s) => (
|
|
556
|
+
}), (o, s) => (r(), i("div", {
|
|
487
557
|
class: h(["relative flex shrink-0 items-center gap-2 p-1 font-title", l.value ? "h-full flex-col" : "w-full"]),
|
|
488
558
|
"data-tauri-drag-region": ""
|
|
489
559
|
}, [
|
|
490
|
-
o.$slots.identidad ? (
|
|
560
|
+
o.$slots.identidad ? (r(), i("div", Ca, [
|
|
491
561
|
S(o.$slots, "identidad")
|
|
492
562
|
])) : x("", !0),
|
|
493
|
-
(o.$slots.titulo || e.title) && !l.value ? (
|
|
563
|
+
(o.$slots.titulo || e.title) && !l.value ? (r(), i("p", Ea, [
|
|
494
564
|
S(o.$slots, "titulo", {}, () => [
|
|
495
|
-
|
|
565
|
+
Me(M(e.title), 1)
|
|
496
566
|
])
|
|
497
567
|
])) : x("", !0),
|
|
498
568
|
T("div", {
|
|
@@ -501,19 +571,19 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
501
571
|
}, [
|
|
502
572
|
S(o.$slots, "default")
|
|
503
573
|
], 2),
|
|
504
|
-
o.$slots.acciones ? (
|
|
574
|
+
o.$slots.acciones ? (r(), i("div", {
|
|
505
575
|
key: 2,
|
|
506
576
|
class: h(["flex shrink-0 items-center gap-1", l.value ? "flex-col" : ""])
|
|
507
577
|
}, [
|
|
508
578
|
S(o.$slots, "acciones")
|
|
509
579
|
], 2)) : x("", !0),
|
|
510
|
-
O(
|
|
580
|
+
O(tt, ce({
|
|
511
581
|
controls: e.controls,
|
|
512
582
|
"minimize-label": e.minimizeLabel,
|
|
513
583
|
"maximize-label": e.maximizeLabel,
|
|
514
584
|
"close-label": e.closeLabel
|
|
515
|
-
},
|
|
516
|
-
o.$slots.centro ? (
|
|
585
|
+
}, Qe(F(et)(["minimize", "maximize", "close"]))), null, 16, ["controls", "minimize-label", "maximize-label", "close-label"]),
|
|
586
|
+
o.$slots.centro ? (r(), i("div", {
|
|
517
587
|
key: 3,
|
|
518
588
|
class: h(["pointer-events-none absolute flex items-center justify-center", l.value ? "inset-x-0 top-1/2 -translate-y-1/2 flex-col" : "inset-y-0 left-1/2 -translate-x-1/2"])
|
|
519
589
|
}, [
|
|
@@ -525,7 +595,7 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
525
595
|
], 2)) : x("", !0)
|
|
526
596
|
], 2));
|
|
527
597
|
}
|
|
528
|
-
}),
|
|
598
|
+
}), La = { class: "flex min-h-0 min-w-0 flex-1" }, za = /* @__PURE__ */ D({
|
|
529
599
|
__name: "WindowFrame",
|
|
530
600
|
props: {
|
|
531
601
|
position: { default: null },
|
|
@@ -533,23 +603,23 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
533
603
|
minimizeLabel: {},
|
|
534
604
|
maximizeLabel: {},
|
|
535
605
|
closeLabel: {},
|
|
536
|
-
controls: { default: () =>
|
|
606
|
+
controls: { default: () => Ie },
|
|
537
607
|
hideBar: { type: Boolean, default: !1 }
|
|
538
608
|
},
|
|
539
609
|
emits: ["minimize", "maximize", "close"],
|
|
540
610
|
setup(e) {
|
|
541
|
-
const n = e, t =
|
|
542
|
-
|
|
611
|
+
const n = e, t = xa(), a = v(() => n.position ?? t.value), l = v(() => Ae(a.value)), o = v(() => l.value === "vertical");
|
|
612
|
+
ge(Ve, { posicion: a, orientacion: l, vertical: o });
|
|
543
613
|
const s = {
|
|
544
614
|
top: "flex-col",
|
|
545
615
|
bottom: "flex-col-reverse",
|
|
546
616
|
left: "flex-row",
|
|
547
617
|
right: "flex-row-reverse"
|
|
548
618
|
};
|
|
549
|
-
return (u, m) => (
|
|
619
|
+
return (u, m) => (r(), i("div", {
|
|
550
620
|
class: h(["flex h-screen w-screen overflow-hidden rounded-corner-window border border-ui-border bg-ui-bg/80", s[a.value]])
|
|
551
621
|
}, [
|
|
552
|
-
e.hideBar ? x("", !0) : (
|
|
622
|
+
e.hideBar ? x("", !0) : (r(), Y(at, ce({
|
|
553
623
|
key: 0,
|
|
554
624
|
position: a.value,
|
|
555
625
|
title: e.title,
|
|
@@ -557,7 +627,7 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
557
627
|
"maximize-label": e.maximizeLabel,
|
|
558
628
|
"close-label": e.closeLabel,
|
|
559
629
|
controls: e.controls
|
|
560
|
-
},
|
|
630
|
+
}, Qe(F(et)(["minimize", "maximize", "close"]))), wt({
|
|
561
631
|
default: K(() => [
|
|
562
632
|
S(u.$slots, "barra")
|
|
563
633
|
]),
|
|
@@ -592,22 +662,22 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
592
662
|
key: "3"
|
|
593
663
|
} : void 0
|
|
594
664
|
]), 1040, ["position", "title", "minimize-label", "maximize-label", "close-label", "controls"])),
|
|
595
|
-
T("div",
|
|
665
|
+
T("div", La, [
|
|
596
666
|
S(u.$slots, "default")
|
|
597
667
|
])
|
|
598
668
|
], 2));
|
|
599
669
|
}
|
|
600
|
-
}),
|
|
670
|
+
}), Da = ["aria-selected", "title", "aria-label", "tabindex"], Ta = {
|
|
601
671
|
key: 1,
|
|
602
672
|
"aria-hidden": "true"
|
|
603
|
-
},
|
|
673
|
+
}, Aa = {
|
|
604
674
|
key: 2,
|
|
605
675
|
class: "min-w-0 flex-1 truncate"
|
|
606
|
-
},
|
|
676
|
+
}, Ba = ["title", "aria-label"], Sa = { class: "whitespace-nowrap" }, Ma = {
|
|
607
677
|
key: 0,
|
|
608
678
|
class: "size-2 shrink-0 rounded-full bg-current",
|
|
609
679
|
"aria-hidden": "true"
|
|
610
|
-
},
|
|
680
|
+
}, Va = ["title", "aria-label"], Ia = 500, qe = 8, He = 6, nt = /* @__PURE__ */ D({
|
|
611
681
|
__name: "TabItem",
|
|
612
682
|
props: {
|
|
613
683
|
tab: {},
|
|
@@ -618,165 +688,165 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
618
688
|
},
|
|
619
689
|
emits: ["select", "close", "menu", "mover", "navegar"],
|
|
620
690
|
setup(e, { emit: n }) {
|
|
621
|
-
const t = e, a = n, { vertical: l, posicion: o } =
|
|
622
|
-
let
|
|
623
|
-
const
|
|
691
|
+
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), L = w({ top: 0, left: 0, right: 0 });
|
|
692
|
+
let z = null, B = null;
|
|
693
|
+
const g = v(() => t.tab.closable !== !1), $ = v(() => t.tab.tooltip ?? t.tab.label), j = v(
|
|
624
694
|
() => t.tab.dirty ? `${t.tab.label} · ${t.dirtyLabel}` : t.tab.label
|
|
625
|
-
), C = v(() => t.tab.label.trim().charAt(0).toUpperCase()),
|
|
626
|
-
() => !!t.tab.dirty && !(
|
|
695
|
+
), C = v(() => t.tab.label.trim().charAt(0).toUpperCase()), y = v(() => m.value || d.value), c = v(
|
|
696
|
+
() => !!t.tab.dirty && !(y.value && g.value)
|
|
627
697
|
), b = v(
|
|
628
|
-
() =>
|
|
698
|
+
() => g.value && (y.value || t.active || !t.tab.dirty)
|
|
629
699
|
), p = v(
|
|
630
700
|
() => l.value && (m.value || f.value || d.value)
|
|
631
701
|
), P = v(() => {
|
|
632
|
-
const
|
|
633
|
-
return o.value === "right" ? { ...
|
|
702
|
+
const N = { position: "fixed", top: `${L.value.top}px`, zIndex: 50 };
|
|
703
|
+
return o.value === "right" ? { ...N, right: `${L.value.right + He}px` } : { ...N, left: `${L.value.left + He}px` };
|
|
634
704
|
});
|
|
635
|
-
function
|
|
636
|
-
const
|
|
637
|
-
if (!
|
|
638
|
-
const k =
|
|
705
|
+
function le() {
|
|
706
|
+
const N = s.value;
|
|
707
|
+
if (!N) return;
|
|
708
|
+
const k = N.getBoundingClientRect();
|
|
639
709
|
L.value = {
|
|
640
710
|
top: k.top,
|
|
641
711
|
left: k.right,
|
|
642
712
|
right: window.innerWidth - k.left
|
|
643
713
|
};
|
|
644
714
|
}
|
|
645
|
-
function U(
|
|
646
|
-
const k =
|
|
715
|
+
function U(N) {
|
|
716
|
+
const k = N.relatedTarget;
|
|
647
717
|
k && u.value?.contains(k) || (d.value = !1);
|
|
648
718
|
}
|
|
649
|
-
function
|
|
650
|
-
m.value = !0,
|
|
719
|
+
function oe() {
|
|
720
|
+
m.value = !0, le();
|
|
651
721
|
}
|
|
652
722
|
function G() {
|
|
653
|
-
f.value = !0,
|
|
723
|
+
f.value = !0, le();
|
|
654
724
|
}
|
|
655
|
-
function
|
|
656
|
-
|
|
725
|
+
function A() {
|
|
726
|
+
z !== null && clearTimeout(z), z = null, B = null;
|
|
657
727
|
}
|
|
658
|
-
function
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
},
|
|
728
|
+
function E(N) {
|
|
729
|
+
N.button === 0 && (B = { x: N.clientX, y: N.clientY }, z = setTimeout(() => {
|
|
730
|
+
B && a("menu", B), A();
|
|
731
|
+
}, Ia));
|
|
662
732
|
}
|
|
663
|
-
function I(
|
|
664
|
-
if (!
|
|
665
|
-
(Math.abs(
|
|
733
|
+
function I(N) {
|
|
734
|
+
if (!B) return;
|
|
735
|
+
(Math.abs(N.clientX - B.x) > qe || Math.abs(N.clientY - B.y) > qe) && A();
|
|
666
736
|
}
|
|
667
|
-
function
|
|
668
|
-
|
|
737
|
+
function de(N) {
|
|
738
|
+
N.button === 1 && g.value && (N.preventDefault(), a("close"));
|
|
669
739
|
}
|
|
670
|
-
function
|
|
671
|
-
|
|
740
|
+
function bt(N) {
|
|
741
|
+
N.preventDefault(), a("menu", { x: N.clientX, y: N.clientY });
|
|
672
742
|
}
|
|
673
|
-
return
|
|
743
|
+
return pe(A), (N, k) => (r(), i("div", {
|
|
674
744
|
ref_key: "raiz",
|
|
675
745
|
ref: s,
|
|
676
746
|
class: h(["group relative flex shrink-0 cursor-pointer items-center gap-2 rounded-corner border border-ui-border transition-colors", [
|
|
677
747
|
e.active ? "bg-primary font-bold text-tx-on-primary" : "bg-ui-bg/80 hover:bg-ui-surface/70",
|
|
678
|
-
|
|
748
|
+
F(l) ? "size-8 justify-center p-0 text-sm" : "w-34 max-w-34 px-3 py-1 text-sm"
|
|
679
749
|
]]),
|
|
680
750
|
role: "tab",
|
|
681
751
|
"aria-selected": e.active,
|
|
682
752
|
title: $.value,
|
|
683
753
|
"aria-label": j.value,
|
|
684
754
|
tabindex: e.tabindex,
|
|
685
|
-
onClick: k[5] || (k[5] =
|
|
755
|
+
onClick: k[5] || (k[5] = V((q) => a("select"), ["stop"])),
|
|
686
756
|
onKeydown: [
|
|
687
|
-
k[6] || (k[6] =
|
|
688
|
-
k[7] || (k[7] =
|
|
689
|
-
k[8] || (k[8] =
|
|
690
|
-
k[9] || (k[9] =
|
|
691
|
-
k[10] || (k[10] =
|
|
692
|
-
k[11] || (k[11] =
|
|
693
|
-
k[12] || (k[12] =
|
|
694
|
-
k[13] || (k[13] =
|
|
695
|
-
k[14] || (k[14] =
|
|
696
|
-
k[15] || (k[15] =
|
|
697
|
-
k[16] || (k[16] =
|
|
698
|
-
k[17] || (k[17] =
|
|
699
|
-
k[18] || (k[18] =
|
|
757
|
+
k[6] || (k[6] = R(V((q) => a("select"), ["stop"]), ["enter"])),
|
|
758
|
+
k[7] || (k[7] = R(V((q) => a("select"), ["prevent", "stop"]), ["space"])),
|
|
759
|
+
k[8] || (k[8] = R(V((q) => a("navegar", "anterior"), ["prevent", "stop"]), ["left"])),
|
|
760
|
+
k[9] || (k[9] = R(V((q) => a("navegar", "anterior"), ["prevent", "stop"]), ["up"])),
|
|
761
|
+
k[10] || (k[10] = R(V((q) => a("navegar", "siguiente"), ["prevent", "stop"]), ["right"])),
|
|
762
|
+
k[11] || (k[11] = R(V((q) => a("navegar", "siguiente"), ["prevent", "stop"]), ["down"])),
|
|
763
|
+
k[12] || (k[12] = R(V((q) => a("navegar", "primera"), ["prevent", "stop"]), ["home"])),
|
|
764
|
+
k[13] || (k[13] = R(V((q) => a("navegar", "ultima"), ["prevent", "stop"]), ["end"])),
|
|
765
|
+
k[14] || (k[14] = R(V((q) => a("mover", -1), ["alt", "prevent", "stop"]), ["left"])),
|
|
766
|
+
k[15] || (k[15] = R(V((q) => a("mover", -1), ["alt", "prevent", "stop"]), ["up"])),
|
|
767
|
+
k[16] || (k[16] = R(V((q) => a("mover", 1), ["alt", "prevent", "stop"]), ["right"])),
|
|
768
|
+
k[17] || (k[17] = R(V((q) => a("mover", 1), ["alt", "prevent", "stop"]), ["down"])),
|
|
769
|
+
k[18] || (k[18] = R(V((q) => g.value && a("close"), ["prevent", "stop"]), ["delete"]))
|
|
700
770
|
],
|
|
701
|
-
onAuxclick:
|
|
702
|
-
onContextmenu:
|
|
703
|
-
onPointerdown:
|
|
771
|
+
onAuxclick: V(de, ["stop"]),
|
|
772
|
+
onContextmenu: bt,
|
|
773
|
+
onPointerdown: E,
|
|
704
774
|
onPointermove: I,
|
|
705
|
-
onPointerup:
|
|
706
|
-
onPointerleave:
|
|
707
|
-
onMouseenter:
|
|
708
|
-
onMouseleave: k[19] || (k[19] = (
|
|
775
|
+
onPointerup: A,
|
|
776
|
+
onPointerleave: A,
|
|
777
|
+
onMouseenter: oe,
|
|
778
|
+
onMouseleave: k[19] || (k[19] = (q) => m.value = !1),
|
|
709
779
|
onFocus: G,
|
|
710
|
-
onBlur: k[20] || (k[20] = (
|
|
780
|
+
onBlur: k[20] || (k[20] = (q) => f.value = !1)
|
|
711
781
|
}, [
|
|
712
|
-
e.tab.icon ? (
|
|
782
|
+
e.tab.icon ? (r(), Y(H, {
|
|
713
783
|
key: 0,
|
|
714
784
|
name: e.tab.icon,
|
|
715
785
|
size: 16,
|
|
716
786
|
class: "shrink-0"
|
|
717
|
-
}, null, 8, ["name"])) :
|
|
718
|
-
|
|
719
|
-
c.value ? (
|
|
787
|
+
}, null, 8, ["name"])) : F(l) ? (r(), i("span", Ta, M(C.value), 1)) : x("", !0),
|
|
788
|
+
F(l) ? x("", !0) : (r(), i("span", Aa, M(e.tab.label), 1)),
|
|
789
|
+
c.value ? (r(), i("span", {
|
|
720
790
|
key: 3,
|
|
721
|
-
class: h(["size-2 shrink-0 rounded-full bg-current",
|
|
791
|
+
class: h(["size-2 shrink-0 rounded-full bg-current", F(l) ? "absolute right-0.5 top-0.5" : ""]),
|
|
722
792
|
"aria-hidden": "true"
|
|
723
|
-
}, null, 2)) : b.value && !
|
|
793
|
+
}, null, 2)) : b.value && !F(l) ? (r(), i("button", {
|
|
724
794
|
key: 4,
|
|
725
795
|
type: "button",
|
|
726
796
|
class: "flex size-4 shrink-0 items-center justify-center rounded-corner-sm hover:bg-ui-surface",
|
|
727
797
|
title: e.closeLabel,
|
|
728
798
|
"aria-label": `${e.closeLabel}: ${j.value}`,
|
|
729
|
-
onClick: k[0] || (k[0] =
|
|
799
|
+
onClick: k[0] || (k[0] = V((q) => a("close"), ["stop"]))
|
|
730
800
|
}, [
|
|
731
801
|
O(H, {
|
|
732
802
|
name: "gtk-close",
|
|
733
803
|
type: "symbol",
|
|
734
804
|
size: 12
|
|
735
805
|
})
|
|
736
|
-
], 8,
|
|
737
|
-
(
|
|
738
|
-
O(
|
|
806
|
+
], 8, Ba)) : x("", !0),
|
|
807
|
+
(r(), Y(ye, { to: "body" }, [
|
|
808
|
+
O(ke, {
|
|
739
809
|
"enter-active-class": "transition duration-150 ease-out",
|
|
740
810
|
"enter-from-class": "opacity-0 scale-95",
|
|
741
811
|
"leave-active-class": "transition duration-100 ease-in",
|
|
742
812
|
"leave-to-class": "opacity-0 scale-95"
|
|
743
813
|
}, {
|
|
744
814
|
default: K(() => [
|
|
745
|
-
p.value ? (
|
|
815
|
+
p.value ? (r(), i("div", {
|
|
746
816
|
key: 0,
|
|
747
817
|
class: h(["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" : ""]),
|
|
748
818
|
ref_key: "desplegadoRef",
|
|
749
819
|
ref: u,
|
|
750
|
-
style:
|
|
751
|
-
onMouseenter: k[2] || (k[2] = (
|
|
752
|
-
onMouseleave: k[3] || (k[3] = (
|
|
753
|
-
onFocusin: k[4] || (k[4] = (
|
|
820
|
+
style: fe(P.value),
|
|
821
|
+
onMouseenter: k[2] || (k[2] = (q) => d.value = !0),
|
|
822
|
+
onMouseleave: k[3] || (k[3] = (q) => d.value = !1),
|
|
823
|
+
onFocusin: k[4] || (k[4] = (q) => d.value = !0),
|
|
754
824
|
onFocusout: U
|
|
755
825
|
}, [
|
|
756
|
-
T("span",
|
|
757
|
-
e.tab.dirty ? (
|
|
758
|
-
|
|
826
|
+
T("span", Sa, M(e.tab.label), 1),
|
|
827
|
+
e.tab.dirty ? (r(), i("span", Ma)) : x("", !0),
|
|
828
|
+
g.value ? (r(), i("button", {
|
|
759
829
|
key: 1,
|
|
760
830
|
type: "button",
|
|
761
831
|
class: "flex size-4 shrink-0 items-center justify-center rounded-corner-sm hover:bg-ui-surface",
|
|
762
832
|
title: e.closeLabel,
|
|
763
833
|
"aria-label": `${e.closeLabel}: ${j.value}`,
|
|
764
|
-
onClick: k[1] || (k[1] =
|
|
834
|
+
onClick: k[1] || (k[1] = V((q) => a("close"), ["stop"]))
|
|
765
835
|
}, [
|
|
766
836
|
O(H, {
|
|
767
837
|
name: "gtk-close",
|
|
768
838
|
type: "symbol",
|
|
769
839
|
size: 12
|
|
770
840
|
})
|
|
771
|
-
], 8,
|
|
841
|
+
], 8, Va)) : x("", !0)
|
|
772
842
|
], 38)) : x("", !0)
|
|
773
843
|
]),
|
|
774
844
|
_: 1
|
|
775
845
|
})
|
|
776
846
|
]))
|
|
777
|
-
], 42,
|
|
847
|
+
], 42, Da));
|
|
778
848
|
}
|
|
779
|
-
}),
|
|
849
|
+
}), Oa = ["aria-orientation"], ja = ["draggable", "onDragstart", "onDragover", "onDrop"], Pa = ["title", "aria-label"], Ra = /* @__PURE__ */ D({
|
|
780
850
|
__name: "TabBar",
|
|
781
851
|
props: {
|
|
782
852
|
tabs: {},
|
|
@@ -788,40 +858,40 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
788
858
|
},
|
|
789
859
|
emits: ["update:modelValue", "select", "close", "new", "reorder", "menu"],
|
|
790
860
|
setup(e, { emit: n }) {
|
|
791
|
-
const t = e, a = n, { vertical: l } =
|
|
792
|
-
function f(
|
|
793
|
-
a("update:modelValue",
|
|
861
|
+
const t = e, a = n, { vertical: l } = he(), o = w(null), s = w(0), u = w(null), m = w(null);
|
|
862
|
+
function f(y) {
|
|
863
|
+
a("update:modelValue", y), a("select", y);
|
|
794
864
|
}
|
|
795
|
-
async function d(
|
|
865
|
+
async function d(y, c) {
|
|
796
866
|
const b = t.tabs.length - 1;
|
|
797
867
|
if (b < 0) return;
|
|
798
|
-
const p = c === "primera" ? 0 : c === "ultima" ? b : c === "anterior" ? (
|
|
799
|
-
s.value = p, await
|
|
868
|
+
const p = c === "primera" ? 0 : c === "ultima" ? b : c === "anterior" ? (y - 1 + t.tabs.length) % t.tabs.length : (y + 1) % t.tabs.length;
|
|
869
|
+
s.value = p, await X(), o.value?.querySelectorAll('[role="tab"]')?.[p]?.focus();
|
|
800
870
|
}
|
|
801
|
-
function L(
|
|
871
|
+
function L(y, c) {
|
|
802
872
|
if (t.fixedOrder) return;
|
|
803
|
-
const b =
|
|
873
|
+
const b = y + c;
|
|
804
874
|
if (b < 0 || b >= t.tabs.length) return;
|
|
805
|
-
const p = [...t.tabs], [P] = p.splice(
|
|
875
|
+
const p = [...t.tabs], [P] = p.splice(y, 1);
|
|
806
876
|
P && (p.splice(b, 0, P), s.value = b, a("reorder", p));
|
|
807
877
|
}
|
|
808
|
-
function
|
|
878
|
+
function z(y) {
|
|
809
879
|
const c = o.value;
|
|
810
880
|
if (!c) return;
|
|
811
|
-
const b =
|
|
812
|
-
l.value ? c.scrollTop += b : c.scrollLeft += b, (l.value ? c.scrollTop : c.scrollLeft) !== p &&
|
|
881
|
+
const b = y.deltaY || y.deltaX || 0, p = l.value ? c.scrollTop : c.scrollLeft;
|
|
882
|
+
l.value ? c.scrollTop += b : c.scrollLeft += b, (l.value ? c.scrollTop : c.scrollLeft) !== p && y.preventDefault();
|
|
813
883
|
}
|
|
814
|
-
function
|
|
815
|
-
t.fixedOrder || (u.value =
|
|
884
|
+
function B(y, c) {
|
|
885
|
+
t.fixedOrder || (u.value = y, c.dataTransfer?.setData("text/plain", String(y)), c.dataTransfer && (c.dataTransfer.effectAllowed = "move"));
|
|
816
886
|
}
|
|
817
|
-
function y
|
|
818
|
-
t.fixedOrder || u.value === null || (c.preventDefault(), m.value =
|
|
887
|
+
function g(y, c) {
|
|
888
|
+
t.fixedOrder || u.value === null || (c.preventDefault(), m.value = y, c.dataTransfer && (c.dataTransfer.dropEffect = "move"));
|
|
819
889
|
}
|
|
820
|
-
function $(
|
|
890
|
+
function $(y) {
|
|
821
891
|
const c = u.value;
|
|
822
|
-
if (j(), t.fixedOrder || c === null || c ===
|
|
892
|
+
if (j(), t.fixedOrder || c === null || c === y) return;
|
|
823
893
|
const b = [...t.tabs], [p] = b.splice(c, 1);
|
|
824
|
-
p && (b.splice(
|
|
894
|
+
p && (b.splice(y, 0, p), a("reorder", b));
|
|
825
895
|
}
|
|
826
896
|
function j() {
|
|
827
897
|
u.value = null, m.value = null;
|
|
@@ -829,30 +899,30 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
829
899
|
const C = v(
|
|
830
900
|
() => l.value ? "flex h-full flex-col items-center gap-1 overflow-y-auto overflow-x-hidden" : "flex items-center gap-1 overflow-x-auto overflow-y-hidden"
|
|
831
901
|
);
|
|
832
|
-
return (
|
|
833
|
-
class: h(["flex min-h-0 min-w-0 items-center gap-1",
|
|
902
|
+
return (y, c) => (r(), i("div", {
|
|
903
|
+
class: h(["flex min-h-0 min-w-0 items-center gap-1", F(l) ? "w-full flex-col" : "h-full"]),
|
|
834
904
|
role: "tablist",
|
|
835
|
-
"aria-orientation":
|
|
905
|
+
"aria-orientation": F(l) ? "vertical" : "horizontal"
|
|
836
906
|
}, [
|
|
837
907
|
T("div", {
|
|
838
908
|
ref_key: "carril",
|
|
839
909
|
ref: o,
|
|
840
910
|
class: h(C.value),
|
|
841
|
-
onWheel:
|
|
911
|
+
onWheel: z
|
|
842
912
|
}, [
|
|
843
|
-
(
|
|
913
|
+
(r(!0), i(te, null, ue(e.tabs, (b, p) => (r(), i("div", {
|
|
844
914
|
key: b.id,
|
|
845
915
|
class: h(["transition-opacity", [
|
|
846
916
|
u.value === p ? "opacity-40" : "",
|
|
847
917
|
m.value === p && u.value !== p ? "ring-2 ring-secondary rounded-corner" : ""
|
|
848
918
|
]]),
|
|
849
919
|
draggable: !e.fixedOrder,
|
|
850
|
-
onDragstart: (P) =>
|
|
851
|
-
onDragover: (P) =>
|
|
852
|
-
onDrop:
|
|
920
|
+
onDragstart: (P) => B(p, P),
|
|
921
|
+
onDragover: (P) => g(p, P),
|
|
922
|
+
onDrop: V((P) => $(p), ["prevent"]),
|
|
853
923
|
onDragend: j
|
|
854
924
|
}, [
|
|
855
|
-
O(
|
|
925
|
+
O(nt, {
|
|
856
926
|
tab: b,
|
|
857
927
|
active: b.id === e.modelValue,
|
|
858
928
|
"close-label": e.closeLabel,
|
|
@@ -864,9 +934,9 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
864
934
|
onNavegar: (P) => d(p, P),
|
|
865
935
|
onMover: (P) => L(p, P)
|
|
866
936
|
}, null, 8, ["tab", "active", "close-label", "dirty-label", "tabindex", "onSelect", "onClose", "onMenu", "onNavegar", "onMover"])
|
|
867
|
-
], 42,
|
|
937
|
+
], 42, ja))), 128))
|
|
868
938
|
], 34),
|
|
869
|
-
e.newLabel ? (
|
|
939
|
+
e.newLabel ? (r(), i("button", {
|
|
870
940
|
key: 0,
|
|
871
941
|
type: "button",
|
|
872
942
|
class: "flex size-7 shrink-0 items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 hover:bg-ui-surface/70",
|
|
@@ -879,10 +949,10 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
879
949
|
type: "symbol",
|
|
880
950
|
size: 14
|
|
881
951
|
})
|
|
882
|
-
], 8,
|
|
883
|
-
], 10,
|
|
952
|
+
], 8, Pa)) : x("", !0)
|
|
953
|
+
], 10, Oa));
|
|
884
954
|
}
|
|
885
|
-
}),
|
|
955
|
+
}), Fa = ["id", "aria-label", "type", "value", "placeholder", "disabled", "readonly", "required", "aria-describedby", "autocomplete", "aria-invalid"], lt = /* @__PURE__ */ D({
|
|
886
956
|
__name: "TextInput",
|
|
887
957
|
props: {
|
|
888
958
|
modelValue: {},
|
|
@@ -920,7 +990,7 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
920
990
|
a.mono ? "font-mono" : "",
|
|
921
991
|
a.disabled ? "cursor-not-allowed opacity-60" : ""
|
|
922
992
|
]);
|
|
923
|
-
return (d, L) => (
|
|
993
|
+
return (d, L) => (r(), i("input", {
|
|
924
994
|
ref_key: "campo",
|
|
925
995
|
ref: u,
|
|
926
996
|
id: e.id,
|
|
@@ -937,11 +1007,11 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
937
1007
|
class: h(f.value),
|
|
938
1008
|
onInput: o,
|
|
939
1009
|
onChange: s,
|
|
940
|
-
onKeyup: L[0] || (L[0] = (
|
|
941
|
-
onKeydown: L[1] || (L[1] = (
|
|
942
|
-
}, null, 42,
|
|
1010
|
+
onKeyup: L[0] || (L[0] = (z) => l("keyup", z)),
|
|
1011
|
+
onKeydown: L[1] || (L[1] = (z) => l("keydown", z))
|
|
1012
|
+
}, null, 42, Fa));
|
|
943
1013
|
}
|
|
944
|
-
}),
|
|
1014
|
+
}), Na = { class: "pointer-events-none absolute left-2 flex items-center" }, qa = ["aria-label"], Oe = /* @__PURE__ */ D({
|
|
945
1015
|
__name: "SearchField",
|
|
946
1016
|
props: {
|
|
947
1017
|
modelValue: { default: "" },
|
|
@@ -975,27 +1045,27 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
975
1045
|
function L($) {
|
|
976
1046
|
l("update:modelValue", $), !(a.debounce <= 0) && (d(), s = setTimeout(() => l("search", $), a.debounce));
|
|
977
1047
|
}
|
|
978
|
-
function
|
|
1048
|
+
function z() {
|
|
979
1049
|
d(), l("search", a.modelValue);
|
|
980
1050
|
}
|
|
981
|
-
function
|
|
982
|
-
d(), l("update:modelValue", ""), l("clear"),
|
|
1051
|
+
function B() {
|
|
1052
|
+
d(), l("update:modelValue", ""), l("clear"), g();
|
|
983
1053
|
}
|
|
984
|
-
function
|
|
1054
|
+
function g() {
|
|
985
1055
|
return o.value?.enfocar() ?? !1;
|
|
986
1056
|
}
|
|
987
|
-
return n({ enfocar:
|
|
988
|
-
a.autofocus && (await
|
|
1057
|
+
return n({ enfocar: g }), J(async () => {
|
|
1058
|
+
a.autofocus && (await X(), g());
|
|
989
1059
|
}), ve(d), W(
|
|
990
1060
|
() => a.disabled,
|
|
991
1061
|
($) => {
|
|
992
1062
|
$ && d();
|
|
993
1063
|
}
|
|
994
|
-
), ($, j) => (
|
|
1064
|
+
), ($, j) => (r(), i("div", {
|
|
995
1065
|
class: "relative flex items-center",
|
|
996
|
-
onKeydown:
|
|
1066
|
+
onKeydown: R(z, ["enter"])
|
|
997
1067
|
}, [
|
|
998
|
-
T("span",
|
|
1068
|
+
T("span", Na, [
|
|
999
1069
|
O(H, {
|
|
1000
1070
|
name: e.busy ? "content-loading" : "system-search",
|
|
1001
1071
|
type: "symbol",
|
|
@@ -1003,7 +1073,7 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
1003
1073
|
class: h(e.busy ? "animate-spin opacity-70" : "opacity-60")
|
|
1004
1074
|
}, null, 8, ["name", "class"])
|
|
1005
1075
|
]),
|
|
1006
|
-
O(
|
|
1076
|
+
O(lt, ce({
|
|
1007
1077
|
ref_key: "campo",
|
|
1008
1078
|
ref: o,
|
|
1009
1079
|
type: "search",
|
|
@@ -1016,14 +1086,14 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
1016
1086
|
"onUpdate:modelValue": L,
|
|
1017
1087
|
onKeydown: j[0] || (j[0] = (C) => l("keydown", C))
|
|
1018
1088
|
}), null, 16, ["model-value", "placeholder", "ariaLabel", "disabled", "class"]),
|
|
1019
|
-
f.value ? (
|
|
1089
|
+
f.value ? (r(), i("button", {
|
|
1020
1090
|
key: 0,
|
|
1021
1091
|
type: "button",
|
|
1022
1092
|
class: "absolute right-1 flex size-6 items-center justify-center rounded-corner text-tx-muted hover:bg-ui-surface",
|
|
1023
1093
|
"aria-label": e.label ? `${e.label}: vaciar` : "Vaciar",
|
|
1024
|
-
onMousedown: j[1] || (j[1] =
|
|
1094
|
+
onMousedown: j[1] || (j[1] = V(() => {
|
|
1025
1095
|
}, ["prevent"])),
|
|
1026
|
-
onClick:
|
|
1096
|
+
onClick: B
|
|
1027
1097
|
}, [
|
|
1028
1098
|
O(H, {
|
|
1029
1099
|
name: "gtk-close",
|
|
@@ -1031,10 +1101,10 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
1031
1101
|
size: 12,
|
|
1032
1102
|
alt: ""
|
|
1033
1103
|
})
|
|
1034
|
-
], 40,
|
|
1104
|
+
], 40, qa)) : x("", !0)
|
|
1035
1105
|
], 32));
|
|
1036
1106
|
}
|
|
1037
|
-
}),
|
|
1107
|
+
}), Ha = ["title", "aria-label", "aria-expanded"], Ua = /* @__PURE__ */ D({
|
|
1038
1108
|
__name: "BarSearch",
|
|
1039
1109
|
props: {
|
|
1040
1110
|
modelValue: { default: "" },
|
|
@@ -1046,48 +1116,48 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
1046
1116
|
},
|
|
1047
1117
|
emits: ["update:modelValue", "search", "open", "close"],
|
|
1048
1118
|
setup(e, { emit: n }) {
|
|
1049
|
-
const t = e, a = n, { vertical: l, posicion: o } =
|
|
1119
|
+
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(() => {
|
|
1050
1120
|
if (!m.value) return "";
|
|
1051
|
-
const
|
|
1052
|
-
return o.value === "left" ? `${
|
|
1121
|
+
const g = "absolute z-40 w-64 rounded-corner border border-ui-border bg-ui-surface/95 p-1 shadow-lg";
|
|
1122
|
+
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`;
|
|
1053
1123
|
});
|
|
1054
1124
|
async function L() {
|
|
1055
|
-
s.value = !0, a("open"), await
|
|
1125
|
+
s.value = !0, a("open"), await X(), u.value?.enfocar();
|
|
1056
1126
|
}
|
|
1057
|
-
function
|
|
1127
|
+
function z() {
|
|
1058
1128
|
s.value && (s.value = !1, a("close"));
|
|
1059
1129
|
}
|
|
1060
|
-
function
|
|
1061
|
-
const $ =
|
|
1062
|
-
$ &&
|
|
1130
|
+
function B(g) {
|
|
1131
|
+
const $ = g.relatedTarget;
|
|
1132
|
+
$ && g.currentTarget.contains($) || z();
|
|
1063
1133
|
}
|
|
1064
|
-
return (
|
|
1134
|
+
return (g, $) => (r(), i("div", {
|
|
1065
1135
|
class: "relative flex shrink-0 items-center",
|
|
1066
|
-
onFocusout:
|
|
1136
|
+
onFocusout: B
|
|
1067
1137
|
}, [
|
|
1068
|
-
m.value ? (
|
|
1138
|
+
m.value ? (r(), i("button", {
|
|
1069
1139
|
key: 0,
|
|
1070
1140
|
type: "button",
|
|
1071
1141
|
class: "flex size-7 items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 hover:bg-ui-surface/70",
|
|
1072
1142
|
title: e.label,
|
|
1073
1143
|
"aria-label": e.label,
|
|
1074
1144
|
"aria-expanded": s.value,
|
|
1075
|
-
onMousedown: $[0] || ($[0] =
|
|
1145
|
+
onMousedown: $[0] || ($[0] = V(() => {
|
|
1076
1146
|
}, ["prevent"])),
|
|
1077
|
-
onClick: $[1] || ($[1] = (j) => s.value ?
|
|
1147
|
+
onClick: $[1] || ($[1] = (j) => s.value ? z() : L())
|
|
1078
1148
|
}, [
|
|
1079
1149
|
O(H, {
|
|
1080
1150
|
name: "system-search",
|
|
1081
1151
|
type: "symbol",
|
|
1082
1152
|
size: 14
|
|
1083
1153
|
})
|
|
1084
|
-
], 40,
|
|
1085
|
-
f.value ? (
|
|
1154
|
+
], 40, Ha)) : x("", !0),
|
|
1155
|
+
f.value ? (r(), i("div", {
|
|
1086
1156
|
key: 1,
|
|
1087
1157
|
class: h(d.value),
|
|
1088
|
-
onKeydown:
|
|
1158
|
+
onKeydown: R(z, ["esc"])
|
|
1089
1159
|
}, [
|
|
1090
|
-
O(
|
|
1160
|
+
O(Oe, {
|
|
1091
1161
|
ref_key: "campo",
|
|
1092
1162
|
ref: u,
|
|
1093
1163
|
"model-value": e.modelValue,
|
|
@@ -1102,10 +1172,10 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
1102
1172
|
], 34)) : x("", !0)
|
|
1103
1173
|
], 32));
|
|
1104
1174
|
}
|
|
1105
|
-
}),
|
|
1175
|
+
}), Ka = ["type", "disabled"], Wa = {
|
|
1106
1176
|
key: 0,
|
|
1107
1177
|
class: "w-4 h-4 animate-spin rounded-full border-2 border-current border-t-transparent"
|
|
1108
|
-
},
|
|
1178
|
+
}, Ga = ["src", "alt"], Qa = { key: 2 }, Ya = ["src", "alt"], Xa = /* @__PURE__ */ D({
|
|
1109
1179
|
__name: "ActionButton",
|
|
1110
1180
|
props: {
|
|
1111
1181
|
label: {},
|
|
@@ -1135,10 +1205,10 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
1135
1205
|
}, s = (u) => {
|
|
1136
1206
|
t.stopPropagation && u.stopPropagation(), t.preventDefault && u.preventDefault(), !t.disabled && !t.loading && a("click");
|
|
1137
1207
|
};
|
|
1138
|
-
return (u, m) => (
|
|
1208
|
+
return (u, m) => (r(), i("button", {
|
|
1139
1209
|
type: t.type,
|
|
1140
1210
|
onClick: s,
|
|
1141
|
-
class: h(["rounded-corner transition-
|
|
1211
|
+
class: h(["rounded-corner transition-[background-color,opacity] duration-200 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2", [
|
|
1142
1212
|
l[t.variant],
|
|
1143
1213
|
o[t.size],
|
|
1144
1214
|
t.fullWidth ? "w-full" : "",
|
|
@@ -1147,43 +1217,43 @@ const aa = ["title", "aria-label"], na = ["title", "aria-label"], la = ["title",
|
|
|
1147
1217
|
]]),
|
|
1148
1218
|
disabled: t.disabled || t.loading
|
|
1149
1219
|
}, [
|
|
1150
|
-
e.loading ? (
|
|
1151
|
-
t.iconSrc && !t.iconRight ? (
|
|
1220
|
+
e.loading ? (r(), i("span", Wa)) : x("", !0),
|
|
1221
|
+
t.iconSrc && !t.iconRight ? (r(), i("img", {
|
|
1152
1222
|
key: 1,
|
|
1153
1223
|
src: t.iconSrc,
|
|
1154
1224
|
alt: t.iconAlt || t.label,
|
|
1155
1225
|
class: "w-4 h-4"
|
|
1156
|
-
}, null, 8,
|
|
1157
|
-
t.label ? (
|
|
1158
|
-
t.iconSrc && t.iconRight ? (
|
|
1226
|
+
}, null, 8, Ga)) : x("", !0),
|
|
1227
|
+
t.label ? (r(), i("span", Qa, M(t.label), 1)) : x("", !0),
|
|
1228
|
+
t.iconSrc && t.iconRight ? (r(), i("img", {
|
|
1159
1229
|
key: 3,
|
|
1160
1230
|
src: t.iconSrc,
|
|
1161
1231
|
alt: t.iconAlt || t.label,
|
|
1162
1232
|
class: "w-4 h-4"
|
|
1163
|
-
}, null, 8,
|
|
1164
|
-
], 10,
|
|
1233
|
+
}, null, 8, Ya)) : x("", !0)
|
|
1234
|
+
], 10, Ka));
|
|
1165
1235
|
}
|
|
1166
|
-
}),
|
|
1236
|
+
}), $e = (e, n) => {
|
|
1167
1237
|
const t = e.__vccOpts || e;
|
|
1168
1238
|
for (const [a, l] of n)
|
|
1169
1239
|
t[a] = l;
|
|
1170
1240
|
return t;
|
|
1171
|
-
},
|
|
1241
|
+
}, Ja = /* @__PURE__ */ $e(Xa, [["__scopeId", "data-v-3c1bd6bd"]]), ot = {
|
|
1172
1242
|
info: "border-ui-border bg-ui-surface/70 text-tx-main",
|
|
1173
1243
|
success: "border-status-success/40 bg-status-success/10 text-tx-main",
|
|
1174
1244
|
warning: "border-status-warning/40 bg-status-warning/10 text-tx-main",
|
|
1175
1245
|
error: "border-status-error/40 bg-status-error/10 text-tx-main"
|
|
1176
1246
|
};
|
|
1177
|
-
function
|
|
1247
|
+
function rt(e) {
|
|
1178
1248
|
return e === "error" ? "alert" : "status";
|
|
1179
1249
|
}
|
|
1180
|
-
const
|
|
1250
|
+
const Za = ["role"], _a = {
|
|
1181
1251
|
key: 0,
|
|
1182
1252
|
class: "mt-0.5"
|
|
1183
|
-
},
|
|
1253
|
+
}, en = { class: "min-w-0 flex-1" }, tn = {
|
|
1184
1254
|
key: 0,
|
|
1185
1255
|
class: "font-semibold"
|
|
1186
|
-
},
|
|
1256
|
+
}, an = /* @__PURE__ */ D({
|
|
1187
1257
|
__name: "AlertMessage",
|
|
1188
1258
|
props: {
|
|
1189
1259
|
tone: { default: "info" },
|
|
@@ -1192,13 +1262,13 @@ const Va = ["role"], Ma = {
|
|
|
1192
1262
|
iconType: { default: "symbol" }
|
|
1193
1263
|
},
|
|
1194
1264
|
setup(e) {
|
|
1195
|
-
const n = e, t = v(() =>
|
|
1196
|
-
return (l, o) => (
|
|
1265
|
+
const n = e, t = v(() => ot[n.tone]), a = v(() => rt(n.tone));
|
|
1266
|
+
return (l, o) => (r(), i("div", {
|
|
1197
1267
|
role: a.value,
|
|
1198
1268
|
"aria-atomic": "true",
|
|
1199
1269
|
class: h(["flex gap-3 rounded-corner border px-4 py-2 text-sm", t.value])
|
|
1200
1270
|
}, [
|
|
1201
|
-
e.icon ? (
|
|
1271
|
+
e.icon ? (r(), i("span", _a, [
|
|
1202
1272
|
O(H, {
|
|
1203
1273
|
name: e.icon,
|
|
1204
1274
|
type: e.iconType,
|
|
@@ -1206,20 +1276,20 @@ const Va = ["role"], Ma = {
|
|
|
1206
1276
|
alt: ""
|
|
1207
1277
|
}, null, 8, ["name", "type"])
|
|
1208
1278
|
])) : x("", !0),
|
|
1209
|
-
T("div",
|
|
1210
|
-
e.title ? (
|
|
1279
|
+
T("div", en, [
|
|
1280
|
+
e.title ? (r(), i("p", tn, M(e.title), 1)) : x("", !0),
|
|
1211
1281
|
T("div", {
|
|
1212
1282
|
class: h(e.title ? "mt-1" : "")
|
|
1213
1283
|
}, [
|
|
1214
1284
|
S(l.$slots, "default")
|
|
1215
1285
|
], 2)
|
|
1216
1286
|
])
|
|
1217
|
-
], 10,
|
|
1287
|
+
], 10, Za));
|
|
1218
1288
|
}
|
|
1219
|
-
}),
|
|
1289
|
+
}), nn = { class: "font-medium text-sm text-tx-main" }, ln = {
|
|
1220
1290
|
key: 0,
|
|
1221
1291
|
class: "text-sm text-tx-muted"
|
|
1222
|
-
},
|
|
1292
|
+
}, on = /* @__PURE__ */ D({
|
|
1223
1293
|
__name: "EmptyState",
|
|
1224
1294
|
props: {
|
|
1225
1295
|
title: {},
|
|
@@ -1229,7 +1299,7 @@ const Va = ["role"], Ma = {
|
|
|
1229
1299
|
bordered: { type: Boolean, default: !1 }
|
|
1230
1300
|
},
|
|
1231
1301
|
setup(e) {
|
|
1232
|
-
return (n, t) => (
|
|
1302
|
+
return (n, t) => (r(), i("div", {
|
|
1233
1303
|
class: h(["flex flex-col items-center justify-center gap-3 px-8 py-12 text-center", e.bordered ? "rounded-corner border border-ui-border border-dashed bg-ui-surface/20" : ""])
|
|
1234
1304
|
}, [
|
|
1235
1305
|
O(H, {
|
|
@@ -1238,28 +1308,28 @@ const Va = ["role"], Ma = {
|
|
|
1238
1308
|
size: 48,
|
|
1239
1309
|
class: "opacity-60"
|
|
1240
1310
|
}, null, 8, ["name", "type"]),
|
|
1241
|
-
T("p",
|
|
1242
|
-
e.note ? (
|
|
1311
|
+
T("p", nn, M(e.title), 1),
|
|
1312
|
+
e.note ? (r(), i("p", ln, M(e.note), 1)) : x("", !0),
|
|
1243
1313
|
S(n.$slots, "default")
|
|
1244
1314
|
], 2));
|
|
1245
1315
|
}
|
|
1246
|
-
}),
|
|
1316
|
+
}), rn = { class: "text-sm text-tx-muted" }, sn = /* @__PURE__ */ D({
|
|
1247
1317
|
__name: "LoadingState",
|
|
1248
1318
|
props: {
|
|
1249
1319
|
label: {},
|
|
1250
1320
|
bordered: { type: Boolean, default: !1 }
|
|
1251
1321
|
},
|
|
1252
1322
|
setup(e) {
|
|
1253
|
-
return (n, t) => (
|
|
1323
|
+
return (n, t) => (r(), i("div", {
|
|
1254
1324
|
role: "status",
|
|
1255
1325
|
"aria-atomic": "true",
|
|
1256
1326
|
class: h(["flex flex-col items-center justify-center gap-4 px-8 py-12 text-center", e.bordered ? "rounded-corner border border-ui-border border-dashed bg-ui-surface/20" : ""])
|
|
1257
1327
|
}, [
|
|
1258
1328
|
t[0] || (t[0] = T("span", { class: "h-10 w-10 animate-spin rounded-full border-4 border-ui-border border-t-primary motion-reduce:animate-none" }, null, -1)),
|
|
1259
|
-
T("p",
|
|
1329
|
+
T("p", rn, M(e.label), 1)
|
|
1260
1330
|
], 2));
|
|
1261
1331
|
}
|
|
1262
|
-
}),
|
|
1332
|
+
}), un = ["role"], cn = /* @__PURE__ */ D({
|
|
1263
1333
|
__name: "ToastArea",
|
|
1264
1334
|
props: {
|
|
1265
1335
|
toasts: {},
|
|
@@ -1269,11 +1339,11 @@ const Va = ["role"], Ma = {
|
|
|
1269
1339
|
const n = e, t = v(
|
|
1270
1340
|
() => n.position === "bottom-center" ? "bottom-4 left-1/2 -translate-x-1/2" : "right-4 bottom-4"
|
|
1271
1341
|
);
|
|
1272
|
-
return (a, l) => (
|
|
1342
|
+
return (a, l) => (r(), Y(ye, { to: "body" }, [
|
|
1273
1343
|
T("div", {
|
|
1274
1344
|
class: h(["pointer-events-none fixed z-60 flex flex-col gap-2", t.value])
|
|
1275
1345
|
}, [
|
|
1276
|
-
O(
|
|
1346
|
+
O(kt, {
|
|
1277
1347
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
1278
1348
|
"leave-active-class": "transition-all duration-200 ease-in",
|
|
1279
1349
|
"enter-from-class": "translate-y-2 opacity-0",
|
|
@@ -1281,26 +1351,26 @@ const Va = ["role"], Ma = {
|
|
|
1281
1351
|
"move-class": "transition-transform duration-300"
|
|
1282
1352
|
}, {
|
|
1283
1353
|
default: K(() => [
|
|
1284
|
-
(
|
|
1354
|
+
(r(!0), i(te, null, ue(e.toasts, (o) => (r(), i("div", {
|
|
1285
1355
|
key: o.id,
|
|
1286
|
-
role:
|
|
1356
|
+
role: F(rt)(o.tone ?? "info"),
|
|
1287
1357
|
"aria-atomic": "true",
|
|
1288
|
-
class: h(["pointer-events-auto rounded-corner border px-4 py-2 text-sm shadow-lg backdrop-blur-sm",
|
|
1358
|
+
class: h(["pointer-events-auto rounded-corner border px-4 py-2 text-sm shadow-lg backdrop-blur-sm", F(ot)[o.tone ?? "info"]])
|
|
1289
1359
|
}, [
|
|
1290
1360
|
S(a.$slots, "default", { aviso: o }, () => [
|
|
1291
|
-
|
|
1361
|
+
Me(M(o.message), 1)
|
|
1292
1362
|
])
|
|
1293
|
-
], 10,
|
|
1363
|
+
], 10, un))), 128))
|
|
1294
1364
|
]),
|
|
1295
1365
|
_: 3
|
|
1296
1366
|
})
|
|
1297
1367
|
], 2)
|
|
1298
1368
|
]));
|
|
1299
1369
|
}
|
|
1300
|
-
}),
|
|
1370
|
+
}), dn = ["aria-label", "aria-valuenow"], fn = {
|
|
1301
1371
|
key: 1,
|
|
1302
1372
|
class: "h-full w-full animate-pulse rounded-corner bg-primary motion-reduce:animate-none motion-reduce:bg-primary/40"
|
|
1303
|
-
},
|
|
1373
|
+
}, mn = /* @__PURE__ */ D({
|
|
1304
1374
|
__name: "ProgressBar",
|
|
1305
1375
|
props: {
|
|
1306
1376
|
value: {},
|
|
@@ -1315,7 +1385,7 @@ const Va = ["role"], Ma = {
|
|
|
1315
1385
|
}, a = v(
|
|
1316
1386
|
() => n.value === null ? null : Math.max(0, Math.min(100, n.value))
|
|
1317
1387
|
);
|
|
1318
|
-
return (l, o) => (
|
|
1388
|
+
return (l, o) => (r(), i("div", {
|
|
1319
1389
|
role: "progressbar",
|
|
1320
1390
|
"aria-label": e.label,
|
|
1321
1391
|
"aria-valuenow": a.value ?? void 0,
|
|
@@ -1323,46 +1393,46 @@ const Va = ["role"], Ma = {
|
|
|
1323
1393
|
"aria-valuemax": "100",
|
|
1324
1394
|
class: "h-2 w-full overflow-hidden rounded-corner bg-ui-surface/70"
|
|
1325
1395
|
}, [
|
|
1326
|
-
a.value !== null ? (
|
|
1396
|
+
a.value !== null ? (r(), i("div", {
|
|
1327
1397
|
key: 0,
|
|
1328
1398
|
class: h(["h-full rounded-corner transition-[width] duration-300 ease-out", t[e.tone]]),
|
|
1329
|
-
style:
|
|
1330
|
-
}, null, 6)) : (
|
|
1331
|
-
], 8,
|
|
1399
|
+
style: fe({ width: `${a.value}%` })
|
|
1400
|
+
}, null, 6)) : (r(), i("div", fn))
|
|
1401
|
+
], 8, dn));
|
|
1332
1402
|
}
|
|
1333
|
-
}),
|
|
1334
|
-
function
|
|
1403
|
+
}), bn = /[/\-_.]/;
|
|
1404
|
+
function ze(e, n) {
|
|
1335
1405
|
if (!n) return 100;
|
|
1336
1406
|
const t = n.toLowerCase();
|
|
1337
|
-
return t === e ? 0 : t.startsWith(e) ? 10 : t.split(
|
|
1407
|
+
return t === e ? 0 : t.startsWith(e) ? 10 : t.split(bn).some((a) => a.startsWith(e)) ? 30 : t.includes(e) ? 40 : 100;
|
|
1338
1408
|
}
|
|
1339
|
-
function
|
|
1409
|
+
function vn(e, n) {
|
|
1340
1410
|
const t = n.trim().toLowerCase();
|
|
1341
1411
|
if (!t) return e;
|
|
1342
1412
|
const a = [];
|
|
1343
1413
|
for (let l = 0; l < e.length; l++) {
|
|
1344
|
-
const o = e[l], s =
|
|
1414
|
+
const o = e[l], s = ze(t, o.valor), u = ze(t, o.etiqueta), m = u === 10 ? 20 : u, d = ze(t, o.detalle) === 100 ? 100 : 40, L = Math.min(s, m, d);
|
|
1345
1415
|
L !== 100 && a.push({ opcion: o, rango: L, orden: l });
|
|
1346
1416
|
}
|
|
1347
1417
|
return a.sort((l, o) => l.rango - o.rango || l.orden - o.orden), a.map((l) => l.opcion);
|
|
1348
1418
|
}
|
|
1349
|
-
let
|
|
1350
|
-
function
|
|
1351
|
-
return
|
|
1419
|
+
let Ue = 0;
|
|
1420
|
+
function pn() {
|
|
1421
|
+
return Ue += 1, `vsk-lista-${Ue}`;
|
|
1352
1422
|
}
|
|
1353
|
-
const
|
|
1423
|
+
const gn = ["disabled", "aria-label", "aria-expanded"], yn = { class: "min-w-0 flex-1 truncate" }, hn = {
|
|
1354
1424
|
key: 0,
|
|
1355
1425
|
class: "ml-2 text-tx-muted text-xs"
|
|
1356
|
-
},
|
|
1426
|
+
}, xn = { class: "border-ui-border border-b p-2" }, wn = ["id"], kn = {
|
|
1357
1427
|
key: 0,
|
|
1358
1428
|
class: "p-3 text-center text-tx-muted text-xs"
|
|
1359
|
-
},
|
|
1429
|
+
}, $n = ["id", "data-indice", "aria-selected"], Cn = { class: "min-w-0 flex-1 truncate" }, En = {
|
|
1360
1430
|
key: 0,
|
|
1361
1431
|
class: "shrink-0 text-tx-muted text-xs"
|
|
1362
|
-
},
|
|
1432
|
+
}, Ln = {
|
|
1363
1433
|
key: 1,
|
|
1364
1434
|
class: "px-2 py-1 text-tx-muted text-xs"
|
|
1365
|
-
},
|
|
1435
|
+
}, zn = /* @__PURE__ */ D({
|
|
1366
1436
|
__name: "SearchSelect",
|
|
1367
1437
|
props: {
|
|
1368
1438
|
modelValue: {},
|
|
@@ -1377,65 +1447,65 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
|
|
|
1377
1447
|
},
|
|
1378
1448
|
emits: ["update:modelValue"],
|
|
1379
1449
|
setup(e, { emit: n }) {
|
|
1380
|
-
const t = e, a = n, l = w(""), o = w(!1), s = w(0), u = w(null), m = w(null), f = w(null), d =
|
|
1381
|
-
() => t.options.find((
|
|
1382
|
-
),
|
|
1383
|
-
() =>
|
|
1450
|
+
const t = e, a = n, l = w(""), o = w(!1), s = w(0), u = w(null), m = w(null), f = w(null), d = pn(), L = v(
|
|
1451
|
+
() => t.options.find((A) => A.valor === t.modelValue) ?? null
|
|
1452
|
+
), z = v(() => vn(t.options, l.value)), B = v(() => z.value.slice(0, t.limit)), g = v(() => Math.max(0, z.value.length - t.limit)), $ = v(
|
|
1453
|
+
() => B.value.length > 0 ? `${d}-${s.value}` : void 0
|
|
1384
1454
|
);
|
|
1385
|
-
function j(
|
|
1386
|
-
a("update:modelValue",
|
|
1455
|
+
function j(A) {
|
|
1456
|
+
a("update:modelValue", A), y();
|
|
1387
1457
|
}
|
|
1388
1458
|
async function C() {
|
|
1389
1459
|
o.value = !0;
|
|
1390
|
-
const
|
|
1391
|
-
s.value =
|
|
1460
|
+
const A = B.value.findIndex((E) => E.valor === t.modelValue);
|
|
1461
|
+
s.value = A >= 0 ? A : 0, await X(), f.value?.enfocar(), U();
|
|
1392
1462
|
}
|
|
1393
|
-
function
|
|
1394
|
-
o.value && (o.value = !1, l.value = "",
|
|
1463
|
+
function y(A = !0) {
|
|
1464
|
+
o.value && (o.value = !1, l.value = "", A && X(() => m.value?.focus()));
|
|
1395
1465
|
}
|
|
1396
|
-
function c(
|
|
1397
|
-
const
|
|
1398
|
-
|
|
1466
|
+
function c(A) {
|
|
1467
|
+
const E = B.value.length;
|
|
1468
|
+
E !== 0 && (s.value = (s.value + A + E) % E, U());
|
|
1399
1469
|
}
|
|
1400
|
-
function b(
|
|
1401
|
-
s.value =
|
|
1470
|
+
function b(A) {
|
|
1471
|
+
s.value = A, U();
|
|
1402
1472
|
}
|
|
1403
|
-
function p(
|
|
1404
|
-
const
|
|
1405
|
-
if (!
|
|
1406
|
-
const I = Number(
|
|
1473
|
+
function p(A) {
|
|
1474
|
+
const E = A.target?.closest?.("[data-indice]");
|
|
1475
|
+
if (!E) return null;
|
|
1476
|
+
const I = Number(E.getAttribute("data-indice"));
|
|
1407
1477
|
return Number.isInteger(I) ? I : null;
|
|
1408
1478
|
}
|
|
1409
|
-
function P(
|
|
1410
|
-
const
|
|
1479
|
+
function P(A) {
|
|
1480
|
+
const E = p(A), I = E === null ? void 0 : B.value[E];
|
|
1411
1481
|
I && j(I.valor);
|
|
1412
1482
|
}
|
|
1413
|
-
function
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1483
|
+
function le(A) {
|
|
1484
|
+
const E = p(A);
|
|
1485
|
+
E !== null && (s.value = E);
|
|
1416
1486
|
}
|
|
1417
1487
|
function U() {
|
|
1418
|
-
|
|
1488
|
+
X(() => {
|
|
1419
1489
|
u.value?.querySelector(`[data-indice="${s.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
1420
1490
|
});
|
|
1421
1491
|
}
|
|
1422
|
-
function
|
|
1423
|
-
const
|
|
1424
|
-
|
|
1492
|
+
function oe() {
|
|
1493
|
+
const A = B.value[s.value];
|
|
1494
|
+
A && j(A.valor);
|
|
1425
1495
|
}
|
|
1426
1496
|
W(
|
|
1427
1497
|
() => t.disabled,
|
|
1428
|
-
(
|
|
1429
|
-
|
|
1498
|
+
(A) => {
|
|
1499
|
+
A && y(!1);
|
|
1430
1500
|
}
|
|
1431
1501
|
), W(l, () => {
|
|
1432
1502
|
s.value = 0, U();
|
|
1433
1503
|
});
|
|
1434
|
-
function G(
|
|
1435
|
-
const
|
|
1436
|
-
|
|
1504
|
+
function G(A) {
|
|
1505
|
+
const E = A.relatedTarget;
|
|
1506
|
+
E && A.currentTarget.contains(E) || y(!1);
|
|
1437
1507
|
}
|
|
1438
|
-
return (
|
|
1508
|
+
return (A, E) => (r(), i("div", {
|
|
1439
1509
|
class: "relative",
|
|
1440
1510
|
onFocusout: G
|
|
1441
1511
|
}, [
|
|
@@ -1448,15 +1518,15 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
|
|
|
1448
1518
|
"aria-label": e.label || void 0,
|
|
1449
1519
|
"aria-expanded": o.value,
|
|
1450
1520
|
"aria-haspopup": "listbox",
|
|
1451
|
-
onClick:
|
|
1521
|
+
onClick: E[0] || (E[0] = (I) => o.value ? y() : C()),
|
|
1452
1522
|
onKeydown: [
|
|
1453
|
-
|
|
1454
|
-
|
|
1523
|
+
E[1] || (E[1] = R(V((I) => o.value ? c(1) : C(), ["prevent"]), ["down"])),
|
|
1524
|
+
E[2] || (E[2] = R(V((I) => o.value ? c(-1) : C(), ["prevent"]), ["up"]))
|
|
1455
1525
|
]
|
|
1456
1526
|
}, [
|
|
1457
|
-
T("span",
|
|
1458
|
-
|
|
1459
|
-
L.value?.detalle ? (
|
|
1527
|
+
T("span", yn, [
|
|
1528
|
+
Me(M(L.value?.etiqueta ?? e.placeholder) + " ", 1),
|
|
1529
|
+
L.value?.detalle ? (r(), i("span", hn, M(L.value.detalle), 1)) : x("", !0)
|
|
1460
1530
|
]),
|
|
1461
1531
|
O(H, {
|
|
1462
1532
|
name: "go-down",
|
|
@@ -1464,63 +1534,63 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
|
|
|
1464
1534
|
size: 12,
|
|
1465
1535
|
class: "shrink-0 opacity-60"
|
|
1466
1536
|
})
|
|
1467
|
-
], 40,
|
|
1468
|
-
o.value ? (
|
|
1537
|
+
], 40, gn),
|
|
1538
|
+
o.value ? (r(), i("div", {
|
|
1469
1539
|
key: 0,
|
|
1470
1540
|
class: h(["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"]),
|
|
1471
1541
|
onKeydown: [
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1542
|
+
E[4] || (E[4] = R(V((I) => y(), ["prevent"]), ["escape"])),
|
|
1543
|
+
E[5] || (E[5] = R(V((I) => c(1), ["prevent"]), ["down"])),
|
|
1544
|
+
E[6] || (E[6] = R(V((I) => c(-1), ["prevent"]), ["up"])),
|
|
1545
|
+
E[7] || (E[7] = R(V((I) => b(0), ["prevent"]), ["home"])),
|
|
1546
|
+
E[8] || (E[8] = R(V((I) => b(B.value.length - 1), ["prevent"]), ["end"])),
|
|
1547
|
+
E[9] || (E[9] = R(V((I) => oe(), ["prevent"]), ["enter"])),
|
|
1548
|
+
E[10] || (E[10] = R((I) => y(!1), ["tab"]))
|
|
1479
1549
|
],
|
|
1480
1550
|
onClick: P,
|
|
1481
|
-
onMousemove:
|
|
1551
|
+
onMousemove: le
|
|
1482
1552
|
}, [
|
|
1483
|
-
T("div",
|
|
1484
|
-
O(
|
|
1553
|
+
T("div", xn, [
|
|
1554
|
+
O(Oe, {
|
|
1485
1555
|
ref_key: "campo",
|
|
1486
1556
|
ref: f,
|
|
1487
1557
|
modelValue: l.value,
|
|
1488
|
-
"onUpdate:modelValue":
|
|
1558
|
+
"onUpdate:modelValue": E[3] || (E[3] = (I) => l.value = I),
|
|
1489
1559
|
label: e.label,
|
|
1490
1560
|
placeholder: e.searchPlaceholder,
|
|
1491
|
-
"listbox-id":
|
|
1561
|
+
"listbox-id": F(d),
|
|
1492
1562
|
"active-option-id": $.value,
|
|
1493
1563
|
expanded: o.value
|
|
1494
1564
|
}, null, 8, ["modelValue", "label", "placeholder", "listbox-id", "active-option-id", "expanded"])
|
|
1495
1565
|
]),
|
|
1496
1566
|
T("ul", {
|
|
1497
|
-
id:
|
|
1567
|
+
id: F(d),
|
|
1498
1568
|
ref_key: "lista",
|
|
1499
1569
|
ref: u,
|
|
1500
1570
|
role: "listbox",
|
|
1501
1571
|
class: "max-h-56 overflow-y-auto p-1"
|
|
1502
1572
|
}, [
|
|
1503
|
-
|
|
1504
|
-
(
|
|
1505
|
-
id: `${
|
|
1573
|
+
B.value.length === 0 ? (r(), i("li", kn, M(e.emptyText), 1)) : x("", !0),
|
|
1574
|
+
(r(!0), i(te, null, ue(B.value, (I, de) => (r(), i("li", {
|
|
1575
|
+
id: `${F(d)}-${de}`,
|
|
1506
1576
|
key: I.valor,
|
|
1507
|
-
"data-indice":
|
|
1577
|
+
"data-indice": de,
|
|
1508
1578
|
role: "option",
|
|
1509
1579
|
"aria-selected": I.valor === e.modelValue,
|
|
1510
1580
|
class: h(["flex cursor-pointer items-baseline gap-2 rounded-corner px-2 py-1 text-sm", [
|
|
1511
|
-
|
|
1581
|
+
de === s.value ? "bg-ui-surface" : "",
|
|
1512
1582
|
I.valor === e.modelValue ? "font-medium text-primary" : "text-tx-main"
|
|
1513
1583
|
]])
|
|
1514
1584
|
}, [
|
|
1515
|
-
T("span",
|
|
1516
|
-
I.detalle ? (
|
|
1517
|
-
], 10,
|
|
1518
|
-
|
|
1519
|
-
], 8,
|
|
1585
|
+
T("span", Cn, M(I.etiqueta), 1),
|
|
1586
|
+
I.detalle ? (r(), i("span", En, M(I.detalle), 1)) : x("", !0)
|
|
1587
|
+
], 10, $n))), 128)),
|
|
1588
|
+
g.value > 0 ? (r(), i("li", Ln, "+" + M(g.value), 1)) : x("", !0)
|
|
1589
|
+
], 8, wn)
|
|
1520
1590
|
], 34)) : x("", !0)
|
|
1521
1591
|
], 32));
|
|
1522
1592
|
}
|
|
1523
|
-
}),
|
|
1593
|
+
}), Dn = { class: "text-base font-semibold m-0 text-primary dark:text-primary-dark" }, Tn = /* @__PURE__ */ D({
|
|
1524
1594
|
__name: "ConfigSection",
|
|
1525
1595
|
props: {
|
|
1526
1596
|
title: {},
|
|
@@ -1528,26 +1598,26 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
|
|
|
1528
1598
|
customClass: { default: () => ({}) }
|
|
1529
1599
|
},
|
|
1530
1600
|
setup(e) {
|
|
1531
|
-
return (n, t) => (
|
|
1601
|
+
return (n, t) => (r(), i("div", {
|
|
1532
1602
|
class: h(["flex flex-col gap-4 p-4 background rounded-corner", e.customClass])
|
|
1533
1603
|
}, [
|
|
1534
|
-
T("h3",
|
|
1604
|
+
T("h3", Dn, M(e.icon ? `${e.icon} ${e.title}` : e.title), 1),
|
|
1535
1605
|
S(n.$slots, "default", {}, void 0, !0)
|
|
1536
1606
|
], 2));
|
|
1537
1607
|
}
|
|
1538
|
-
}),
|
|
1608
|
+
}), 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 = {
|
|
1539
1609
|
key: 0,
|
|
1540
1610
|
class: "text-xs text-gray-400 truncate"
|
|
1541
|
-
},
|
|
1611
|
+
}, On = {
|
|
1542
1612
|
key: 1,
|
|
1543
1613
|
class: "text-xs text-gray-400 truncate"
|
|
1544
|
-
},
|
|
1614
|
+
}, jn = {
|
|
1545
1615
|
key: 2,
|
|
1546
1616
|
class: "text-xs text-gray-400 flex gap-2 mt-1"
|
|
1547
|
-
},
|
|
1617
|
+
}, Pn = {
|
|
1548
1618
|
key: 1,
|
|
1549
1619
|
class: "w-2 h-2 rounded-full bg-green-500"
|
|
1550
|
-
},
|
|
1620
|
+
}, Rn = /* @__PURE__ */ D({
|
|
1551
1621
|
__name: "DeviceCard",
|
|
1552
1622
|
props: {
|
|
1553
1623
|
icon: {},
|
|
@@ -1569,36 +1639,36 @@ const Ja = ["disabled", "aria-label", "aria-expanded"], Za = { class: "min-w-0 f
|
|
|
1569
1639
|
}, l = () => {
|
|
1570
1640
|
t("click");
|
|
1571
1641
|
};
|
|
1572
|
-
return (o, s) => (
|
|
1642
|
+
return (o, s) => (r(), i("div", {
|
|
1573
1643
|
class: h(["flex items-center justify-between background rounded-vsk px-6 py-3 mb-4", [{ "border-l-4 border-green-500": e.isConnected }, e.customClass]]),
|
|
1574
1644
|
onClick: l
|
|
1575
1645
|
}, [
|
|
1576
|
-
T("div",
|
|
1646
|
+
T("div", Bn, [
|
|
1577
1647
|
T("img", {
|
|
1578
1648
|
src: e.icon,
|
|
1579
1649
|
alt: e.title,
|
|
1580
1650
|
class: "h-7 w-7 shrink-0"
|
|
1581
|
-
}, null, 8,
|
|
1582
|
-
T("div",
|
|
1583
|
-
T("div",
|
|
1584
|
-
e.subtitle ? (
|
|
1585
|
-
e.metadata ? (
|
|
1586
|
-
e.extraInfo && e.extraInfo.length > 0 ? (
|
|
1587
|
-
(
|
|
1651
|
+
}, null, 8, Sn),
|
|
1652
|
+
T("div", Mn, [
|
|
1653
|
+
T("div", Vn, M(e.title), 1),
|
|
1654
|
+
e.subtitle ? (r(), i("div", In, M(e.subtitle), 1)) : x("", !0),
|
|
1655
|
+
e.metadata ? (r(), i("div", On, M(e.metadata), 1)) : x("", !0),
|
|
1656
|
+
e.extraInfo && e.extraInfo.length > 0 ? (r(), i("div", jn, [
|
|
1657
|
+
(r(!0), i(te, null, ue(e.extraInfo, (u, m) => (r(), i("span", { key: m }, M(u), 1))), 128))
|
|
1588
1658
|
])) : x("", !0)
|
|
1589
1659
|
])
|
|
1590
1660
|
]),
|
|
1591
|
-
e.showActionButton ? (
|
|
1661
|
+
e.showActionButton ? (r(), i("button", {
|
|
1592
1662
|
key: 0,
|
|
1593
1663
|
class: "bg-vsk-primary rounded-vsk px-4 py-2 text-sm font-semibold cursor-pointer hover:opacity-70",
|
|
1594
|
-
onClick:
|
|
1595
|
-
},
|
|
1596
|
-
e.showStatusIndicator && e.isConnected ? (
|
|
1664
|
+
onClick: V(a, ["stop"])
|
|
1665
|
+
}, M(e.actionLabel), 1)) : x("", !0),
|
|
1666
|
+
e.showStatusIndicator && e.isConnected ? (r(), i("div", Pn)) : x("", !0)
|
|
1597
1667
|
], 2));
|
|
1598
1668
|
}
|
|
1599
|
-
}),
|
|
1600
|
-
function
|
|
1601
|
-
const e =
|
|
1669
|
+
}), it = /* @__PURE__ */ Symbol("diálogo de vasak");
|
|
1670
|
+
function st() {
|
|
1671
|
+
const e = we(it, null);
|
|
1602
1672
|
if (e) return e;
|
|
1603
1673
|
const n = w(!1);
|
|
1604
1674
|
return {
|
|
@@ -1611,11 +1681,11 @@ function Ze() {
|
|
|
1611
1681
|
}
|
|
1612
1682
|
};
|
|
1613
1683
|
}
|
|
1614
|
-
let
|
|
1615
|
-
function
|
|
1616
|
-
return
|
|
1684
|
+
let Ke = 0;
|
|
1685
|
+
function Fn() {
|
|
1686
|
+
return Ke += 1, `vsk-dialogo-titulo-${Ke}`;
|
|
1617
1687
|
}
|
|
1618
|
-
const
|
|
1688
|
+
const Nn = /* @__PURE__ */ D({
|
|
1619
1689
|
__name: "Dialog",
|
|
1620
1690
|
props: {
|
|
1621
1691
|
open: { type: Boolean, default: !1 }
|
|
@@ -1623,7 +1693,7 @@ const kn = /* @__PURE__ */ E({
|
|
|
1623
1693
|
emits: ["update:open"],
|
|
1624
1694
|
setup(e, { emit: n }) {
|
|
1625
1695
|
const t = e, a = n, l = w(null);
|
|
1626
|
-
return
|
|
1696
|
+
return ge(it, {
|
|
1627
1697
|
abierto: v(() => t.open),
|
|
1628
1698
|
cerrar: () => a("update:open", !1),
|
|
1629
1699
|
idDelTitulo: l,
|
|
@@ -1632,10 +1702,10 @@ const kn = /* @__PURE__ */ E({
|
|
|
1632
1702
|
}
|
|
1633
1703
|
}), (o, s) => S(o.$slots, "default");
|
|
1634
1704
|
}
|
|
1635
|
-
}),
|
|
1705
|
+
}), qn = {
|
|
1636
1706
|
key: 0,
|
|
1637
1707
|
class: "absolute inset-0 rounded-corner-window bg-ui-border-dark/40"
|
|
1638
|
-
},
|
|
1708
|
+
}, Hn = ["aria-labelledby", "aria-label"], Un = "relative z-10 w-full rounded-corner border border-ui-border bg-ui-bg/80 p-6 text-tx-main shadow-lg", Kn = /* @__PURE__ */ D({
|
|
1639
1709
|
inheritAttrs: !1,
|
|
1640
1710
|
__name: "DialogContent",
|
|
1641
1711
|
props: {
|
|
@@ -1643,36 +1713,36 @@ const kn = /* @__PURE__ */ E({
|
|
|
1643
1713
|
ariaLabel: {}
|
|
1644
1714
|
},
|
|
1645
1715
|
setup(e) {
|
|
1646
|
-
const n = e, t =
|
|
1647
|
-
const { class: C, ...
|
|
1648
|
-
return
|
|
1649
|
-
}), o = v(() => n.size === "full" ? "relative z-10 h-full w-full overflow-hidden rounded-corner-window text-tx-main" : `${
|
|
1716
|
+
const n = e, t = Be(), a = v(() => t.class ?? ""), l = v(() => {
|
|
1717
|
+
const { class: C, ...y } = t;
|
|
1718
|
+
return y;
|
|
1719
|
+
}), 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);
|
|
1650
1720
|
let d = null;
|
|
1651
1721
|
function L() {
|
|
1652
1722
|
return f.value ? [...f.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')] : [];
|
|
1653
1723
|
}
|
|
1654
|
-
function
|
|
1724
|
+
function z(C) {
|
|
1655
1725
|
if (C.key === "Escape") {
|
|
1656
1726
|
s.cerrar();
|
|
1657
1727
|
return;
|
|
1658
1728
|
}
|
|
1659
1729
|
if (C.key !== "Tab") return;
|
|
1660
|
-
const
|
|
1661
|
-
if (
|
|
1730
|
+
const y = L();
|
|
1731
|
+
if (y.length === 0) {
|
|
1662
1732
|
C.preventDefault(), f.value?.focus();
|
|
1663
1733
|
return;
|
|
1664
1734
|
}
|
|
1665
|
-
const c =
|
|
1735
|
+
const c = y[0], b = y[y.length - 1], p = document.activeElement;
|
|
1666
1736
|
C.shiftKey && (p === c || p === f.value) ? (C.preventDefault(), b.focus()) : !C.shiftKey && p === b && (C.preventDefault(), c.focus());
|
|
1667
1737
|
}
|
|
1668
|
-
function
|
|
1738
|
+
function B(C) {
|
|
1669
1739
|
C.target === C.currentTarget && s.cerrar();
|
|
1670
1740
|
}
|
|
1671
|
-
function
|
|
1672
|
-
m.value?.contains(C.target) ||
|
|
1741
|
+
function g(C) {
|
|
1742
|
+
m.value?.contains(C.target) || z(C);
|
|
1673
1743
|
}
|
|
1674
1744
|
function $() {
|
|
1675
|
-
document.removeEventListener("keydown",
|
|
1745
|
+
document.removeEventListener("keydown", g);
|
|
1676
1746
|
}
|
|
1677
1747
|
function j() {
|
|
1678
1748
|
const C = d;
|
|
@@ -1682,7 +1752,7 @@ const kn = /* @__PURE__ */ E({
|
|
|
1682
1752
|
u,
|
|
1683
1753
|
async (C) => {
|
|
1684
1754
|
if (C) {
|
|
1685
|
-
d = document.activeElement, document.addEventListener("keydown",
|
|
1755
|
+
d = document.activeElement, document.addEventListener("keydown", g), await X(), f.value?.focus();
|
|
1686
1756
|
return;
|
|
1687
1757
|
}
|
|
1688
1758
|
$(), j();
|
|
@@ -1693,77 +1763,77 @@ const kn = /* @__PURE__ */ E({
|
|
|
1693
1763
|
{ immediate: !0 }
|
|
1694
1764
|
), ve(() => {
|
|
1695
1765
|
$(), j();
|
|
1696
|
-
}), (C,
|
|
1697
|
-
O(
|
|
1766
|
+
}), (C, y) => (r(), Y(ye, { to: "body" }, [
|
|
1767
|
+
O(ke, {
|
|
1698
1768
|
"enter-active-class": "transition-opacity duration-200 ease-out",
|
|
1699
1769
|
"leave-active-class": "transition-opacity duration-150 ease-in",
|
|
1700
1770
|
"enter-from-class": "opacity-0",
|
|
1701
1771
|
"leave-to-class": "opacity-0"
|
|
1702
1772
|
}, {
|
|
1703
1773
|
default: K(() => [
|
|
1704
|
-
u.value ? (
|
|
1774
|
+
u.value ? (r(), i("div", {
|
|
1705
1775
|
key: 0,
|
|
1706
1776
|
ref_key: "velo",
|
|
1707
1777
|
ref: m,
|
|
1708
1778
|
class: "fixed inset-0 z-50 flex items-center justify-center",
|
|
1709
|
-
onClick:
|
|
1710
|
-
onKeydown:
|
|
1779
|
+
onClick: B,
|
|
1780
|
+
onKeydown: z
|
|
1711
1781
|
}, [
|
|
1712
|
-
n.size === "md" ? (
|
|
1713
|
-
T("div",
|
|
1782
|
+
n.size === "md" ? (r(), i("div", qn)) : x("", !0),
|
|
1783
|
+
T("div", ce({
|
|
1714
1784
|
ref_key: "panel",
|
|
1715
1785
|
ref: f,
|
|
1716
1786
|
tabindex: "-1",
|
|
1717
1787
|
role: "dialog",
|
|
1718
1788
|
"aria-modal": "true",
|
|
1719
|
-
"aria-labelledby":
|
|
1720
|
-
"aria-label":
|
|
1789
|
+
"aria-labelledby": F(s).idDelTitulo.value ?? void 0,
|
|
1790
|
+
"aria-label": F(s).idDelTitulo.value ? void 0 : e.ariaLabel
|
|
1721
1791
|
}, l.value, {
|
|
1722
1792
|
class: [a.value, o.value]
|
|
1723
1793
|
}), [
|
|
1724
1794
|
S(C.$slots, "default")
|
|
1725
|
-
], 16,
|
|
1795
|
+
], 16, Hn)
|
|
1726
1796
|
], 544)) : x("", !0)
|
|
1727
1797
|
]),
|
|
1728
1798
|
_: 3
|
|
1729
1799
|
})
|
|
1730
1800
|
]));
|
|
1731
1801
|
}
|
|
1732
|
-
}),
|
|
1802
|
+
}), Wn = { class: "text-sm text-tx-muted" }, Gn = /* @__PURE__ */ D({
|
|
1733
1803
|
__name: "DialogDescription",
|
|
1734
1804
|
setup(e) {
|
|
1735
|
-
return (n, t) => (
|
|
1805
|
+
return (n, t) => (r(), i("p", Wn, [
|
|
1736
1806
|
S(n.$slots, "default")
|
|
1737
1807
|
]));
|
|
1738
1808
|
}
|
|
1739
|
-
}),
|
|
1809
|
+
}), Qn = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" }, Yn = /* @__PURE__ */ D({
|
|
1740
1810
|
__name: "DialogFooter",
|
|
1741
1811
|
setup(e) {
|
|
1742
|
-
return (n, t) => (
|
|
1812
|
+
return (n, t) => (r(), i("div", Qn, [
|
|
1743
1813
|
S(n.$slots, "default")
|
|
1744
1814
|
]));
|
|
1745
1815
|
}
|
|
1746
|
-
}),
|
|
1816
|
+
}), Xn = { class: "flex flex-col gap-1.5 text-center sm:text-left" }, Jn = /* @__PURE__ */ D({
|
|
1747
1817
|
__name: "DialogHeader",
|
|
1748
1818
|
setup(e) {
|
|
1749
|
-
return (n, t) => (
|
|
1819
|
+
return (n, t) => (r(), i("div", Xn, [
|
|
1750
1820
|
S(n.$slots, "default")
|
|
1751
1821
|
]));
|
|
1752
1822
|
}
|
|
1753
|
-
}),
|
|
1823
|
+
}), Zn = ["id"], _n = /* @__PURE__ */ D({
|
|
1754
1824
|
__name: "DialogTitle",
|
|
1755
1825
|
setup(e) {
|
|
1756
|
-
const n =
|
|
1757
|
-
return J(() => n.ponerElTitulo(t)), ve(() => n.ponerElTitulo(null)), (a, l) => (
|
|
1758
|
-
id:
|
|
1826
|
+
const n = st(), t = Fn();
|
|
1827
|
+
return J(() => n.ponerElTitulo(t)), ve(() => n.ponerElTitulo(null)), (a, l) => (r(), i("h2", {
|
|
1828
|
+
id: F(t),
|
|
1759
1829
|
class: "font-semibold text-lg leading-none tracking-tight"
|
|
1760
1830
|
}, [
|
|
1761
1831
|
S(a.$slots, "default")
|
|
1762
|
-
], 8,
|
|
1832
|
+
], 8, Zn));
|
|
1763
1833
|
}
|
|
1764
|
-
}),
|
|
1765
|
-
function
|
|
1766
|
-
const e =
|
|
1834
|
+
}), ut = /* @__PURE__ */ Symbol("menú de vasak");
|
|
1835
|
+
function Ce() {
|
|
1836
|
+
const e = we(ut, null);
|
|
1767
1837
|
if (e) return e;
|
|
1768
1838
|
const n = w(!1);
|
|
1769
1839
|
return {
|
|
@@ -1787,70 +1857,70 @@ function he() {
|
|
|
1787
1857
|
}
|
|
1788
1858
|
};
|
|
1789
1859
|
}
|
|
1790
|
-
let
|
|
1791
|
-
function
|
|
1792
|
-
return
|
|
1860
|
+
let We = 0;
|
|
1861
|
+
function ct() {
|
|
1862
|
+
return We += 1, `vsk-menu-${We}`;
|
|
1793
1863
|
}
|
|
1794
|
-
const
|
|
1864
|
+
const el = { class: "relative inline-block" }, tl = /* @__PURE__ */ D({
|
|
1795
1865
|
__name: "DropdownMenu",
|
|
1796
1866
|
props: {
|
|
1797
1867
|
open: { type: Boolean, default: void 0 }
|
|
1798
1868
|
},
|
|
1799
1869
|
emits: ["update:open"],
|
|
1800
1870
|
setup(e, { emit: n }) {
|
|
1801
|
-
const t = e, a = n, l = w(!1), o = w(null), s = w(null), u = w("ninguno"), m =
|
|
1871
|
+
const t = e, a = n, l = w(!1), o = w(null), s = w(null), u = w("ninguno"), m = ct();
|
|
1802
1872
|
let f = null;
|
|
1803
1873
|
const d = v({
|
|
1804
1874
|
get: () => t.open ?? l.value,
|
|
1805
|
-
set: (
|
|
1806
|
-
t.open === void 0 && (l.value =
|
|
1875
|
+
set: (g) => {
|
|
1876
|
+
t.open === void 0 && (l.value = g), a("update:open", g);
|
|
1807
1877
|
}
|
|
1808
1878
|
});
|
|
1809
|
-
W(d, (
|
|
1810
|
-
if (
|
|
1879
|
+
W(d, (g) => {
|
|
1880
|
+
if (g) {
|
|
1811
1881
|
const $ = document.activeElement;
|
|
1812
1882
|
f = $ instanceof HTMLElement ? $ : null;
|
|
1813
1883
|
} else
|
|
1814
1884
|
u.value = "ninguno";
|
|
1815
1885
|
});
|
|
1816
|
-
function L(
|
|
1817
|
-
u.value =
|
|
1886
|
+
function L(g = "ninguno") {
|
|
1887
|
+
u.value = g, d.value = !0;
|
|
1818
1888
|
}
|
|
1819
|
-
function
|
|
1820
|
-
if (d.value = !1, !
|
|
1889
|
+
function z(g = {}) {
|
|
1890
|
+
if (d.value = !1, !g.devolverElFoco) return;
|
|
1821
1891
|
const $ = f ?? o.value;
|
|
1822
1892
|
$?.isConnected && $.focus();
|
|
1823
1893
|
}
|
|
1824
|
-
function
|
|
1894
|
+
function B(g = "ninguno") {
|
|
1825
1895
|
if (d.value) {
|
|
1826
|
-
|
|
1896
|
+
z({ devolverElFoco: !0 });
|
|
1827
1897
|
return;
|
|
1828
1898
|
}
|
|
1829
|
-
L(
|
|
1899
|
+
L(g);
|
|
1830
1900
|
}
|
|
1831
|
-
return
|
|
1901
|
+
return ge(ut, {
|
|
1832
1902
|
abierto: d,
|
|
1833
1903
|
idDelMenu: m,
|
|
1834
1904
|
idDeLaEtiqueta: s,
|
|
1835
|
-
ponerLaEtiqueta: (
|
|
1836
|
-
s.value =
|
|
1905
|
+
ponerLaEtiqueta: (g) => {
|
|
1906
|
+
s.value = g;
|
|
1837
1907
|
},
|
|
1838
1908
|
disparador: o,
|
|
1839
|
-
ponerElDisparador: (
|
|
1840
|
-
o.value =
|
|
1909
|
+
ponerElDisparador: (g) => {
|
|
1910
|
+
o.value = g;
|
|
1841
1911
|
},
|
|
1842
1912
|
focoAlAbrir: u,
|
|
1843
1913
|
abrir: L,
|
|
1844
|
-
cerrar:
|
|
1845
|
-
alternar:
|
|
1846
|
-
}), (
|
|
1847
|
-
S(
|
|
1914
|
+
cerrar: z,
|
|
1915
|
+
alternar: B
|
|
1916
|
+
}), (g, $) => (r(), i("div", el, [
|
|
1917
|
+
S(g.$slots, "default")
|
|
1848
1918
|
]));
|
|
1849
1919
|
}
|
|
1850
|
-
}),
|
|
1920
|
+
}), al = ["id", "aria-labelledby", "inert"], nl = {
|
|
1851
1921
|
role: "none",
|
|
1852
1922
|
class: "py-1"
|
|
1853
|
-
},
|
|
1923
|
+
}, Z = 8, ll = /* @__PURE__ */ D({
|
|
1854
1924
|
inheritAttrs: !1,
|
|
1855
1925
|
__name: "DropdownMenuContent",
|
|
1856
1926
|
props: {
|
|
@@ -1859,7 +1929,7 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
1859
1929
|
sideOffset: { default: 4 }
|
|
1860
1930
|
},
|
|
1861
1931
|
setup(e) {
|
|
1862
|
-
const n = e, t =
|
|
1932
|
+
const n = e, t = Ce(), { idDelMenu: a, idDeLaEtiqueta: l } = t, o = v(() => t.disparador.value), s = v(() => t.abierto.value), u = w(null), m = w({
|
|
1863
1933
|
top: 0,
|
|
1864
1934
|
left: 0,
|
|
1865
1935
|
techo: null
|
|
@@ -1870,7 +1940,7 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
1870
1940
|
right: "left"
|
|
1871
1941
|
};
|
|
1872
1942
|
function d(c, b) {
|
|
1873
|
-
const p = n.sideOffset +
|
|
1943
|
+
const p = n.sideOffset + Z;
|
|
1874
1944
|
switch (c) {
|
|
1875
1945
|
case "bottom":
|
|
1876
1946
|
return window.innerHeight - b.bottom - p;
|
|
@@ -1885,71 +1955,71 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
1885
1955
|
function L(c, b, p) {
|
|
1886
1956
|
return p < b ? b : Math.min(Math.max(c, b), p);
|
|
1887
1957
|
}
|
|
1888
|
-
function
|
|
1958
|
+
function z() {
|
|
1889
1959
|
if (!o.value || !u.value) return;
|
|
1890
|
-
const c = o.value.getBoundingClientRect(), b = u.value.scrollHeight, p = u.value.offsetWidth, P = n.side === "top" || n.side === "bottom",
|
|
1960
|
+
const c = o.value.getBoundingClientRect(), b = u.value.scrollHeight, p = u.value.offsetWidth, P = n.side === "top" || n.side === "bottom", le = P ? b : p;
|
|
1891
1961
|
let U = n.side;
|
|
1892
|
-
const
|
|
1893
|
-
|
|
1894
|
-
let G = 0,
|
|
1962
|
+
const oe = d(U, c);
|
|
1963
|
+
oe < le && d(f[U], c) > oe && (U = f[U]);
|
|
1964
|
+
let G = 0, A = 0, E = null;
|
|
1895
1965
|
switch (U) {
|
|
1896
1966
|
case "bottom": {
|
|
1897
|
-
G = c.bottom + n.sideOffset,
|
|
1967
|
+
G = c.bottom + n.sideOffset, E = Math.max(window.innerHeight - G - Z, 0);
|
|
1898
1968
|
break;
|
|
1899
1969
|
}
|
|
1900
1970
|
case "top": {
|
|
1901
|
-
|
|
1971
|
+
E = Math.max(d("top", c), 0), G = c.top - n.sideOffset - Math.min(b, E);
|
|
1902
1972
|
break;
|
|
1903
1973
|
}
|
|
1904
1974
|
case "left":
|
|
1905
1975
|
case "right": {
|
|
1906
|
-
|
|
1907
|
-
const I = window.innerHeight - 2 *
|
|
1908
|
-
G = L(c.top,
|
|
1976
|
+
A = U === "right" ? c.right + n.sideOffset : c.left - p - n.sideOffset;
|
|
1977
|
+
const I = window.innerHeight - 2 * Z;
|
|
1978
|
+
G = L(c.top, Z, window.innerHeight - Math.min(b, I) - Z), E = Math.max(window.innerHeight - G - Z, 0);
|
|
1909
1979
|
break;
|
|
1910
1980
|
}
|
|
1911
1981
|
}
|
|
1912
1982
|
if (P)
|
|
1913
1983
|
switch (n.align) {
|
|
1914
1984
|
case "start":
|
|
1915
|
-
|
|
1985
|
+
A = c.left;
|
|
1916
1986
|
break;
|
|
1917
1987
|
case "center":
|
|
1918
|
-
|
|
1988
|
+
A = c.left + c.width / 2 - p / 2;
|
|
1919
1989
|
break;
|
|
1920
1990
|
case "end":
|
|
1921
|
-
|
|
1991
|
+
A = c.right - p;
|
|
1922
1992
|
break;
|
|
1923
1993
|
}
|
|
1924
|
-
|
|
1994
|
+
A = L(A, Z, window.innerWidth - p - Z), m.value = { top: G, left: A, techo: E };
|
|
1925
1995
|
}
|
|
1926
|
-
function
|
|
1996
|
+
function B() {
|
|
1927
1997
|
return u.value ? Array.from(u.value.querySelectorAll('[role="menuitem"]')) : [];
|
|
1928
1998
|
}
|
|
1929
|
-
function
|
|
1930
|
-
const b =
|
|
1999
|
+
function g(c) {
|
|
2000
|
+
const b = B();
|
|
1931
2001
|
if (!b.length) return;
|
|
1932
2002
|
const p = b.length;
|
|
1933
2003
|
b[(c % p + p) % p]?.focus();
|
|
1934
2004
|
}
|
|
1935
2005
|
function $() {
|
|
1936
2006
|
const c = document.activeElement;
|
|
1937
|
-
return c instanceof HTMLElement ?
|
|
2007
|
+
return c instanceof HTMLElement ? B().indexOf(c) : -1;
|
|
1938
2008
|
}
|
|
1939
2009
|
function j(c) {
|
|
1940
2010
|
const b = $();
|
|
1941
2011
|
switch (c.key) {
|
|
1942
2012
|
case "ArrowDown":
|
|
1943
|
-
c.preventDefault(),
|
|
2013
|
+
c.preventDefault(), g(b + 1);
|
|
1944
2014
|
break;
|
|
1945
2015
|
case "ArrowUp":
|
|
1946
|
-
c.preventDefault(),
|
|
2016
|
+
c.preventDefault(), g(b <= 0 ? -1 : b - 1);
|
|
1947
2017
|
break;
|
|
1948
2018
|
case "Home":
|
|
1949
|
-
c.preventDefault(),
|
|
2019
|
+
c.preventDefault(), g(0);
|
|
1950
2020
|
break;
|
|
1951
2021
|
case "End":
|
|
1952
|
-
c.preventDefault(),
|
|
2022
|
+
c.preventDefault(), g(-1);
|
|
1953
2023
|
break;
|
|
1954
2024
|
case "Escape":
|
|
1955
2025
|
c.preventDefault(), c.stopPropagation(), t.cerrar({ devolverElFoco: !0 });
|
|
@@ -1961,14 +2031,14 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
1961
2031
|
}
|
|
1962
2032
|
W(s, async (c) => {
|
|
1963
2033
|
if (c)
|
|
1964
|
-
switch (await
|
|
1965
|
-
|
|
2034
|
+
switch (await X(), requestAnimationFrame(() => {
|
|
2035
|
+
z();
|
|
1966
2036
|
}), t.focoAlAbrir.value) {
|
|
1967
2037
|
case "primero":
|
|
1968
|
-
|
|
2038
|
+
g(0);
|
|
1969
2039
|
break;
|
|
1970
2040
|
case "ultimo":
|
|
1971
|
-
|
|
2041
|
+
g(-1);
|
|
1972
2042
|
break;
|
|
1973
2043
|
// Abierto con el ratón: el foco va al menú y no a un ítem —no hay
|
|
1974
2044
|
// ninguno elegido todavía—, que es lo que deja andar las flechas y el
|
|
@@ -1978,18 +2048,18 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
1978
2048
|
}
|
|
1979
2049
|
});
|
|
1980
2050
|
function C(c) {
|
|
1981
|
-
s.value && (c && u.value?.contains(c.target) ||
|
|
2051
|
+
s.value && (c && u.value?.contains(c.target) || z());
|
|
1982
2052
|
}
|
|
1983
|
-
function
|
|
2053
|
+
function y(c) {
|
|
1984
2054
|
const b = c.target, p = !!b.closest("[data-dropdown-content]"), P = !!o.value?.contains(b);
|
|
1985
2055
|
!p && !P && t.cerrar();
|
|
1986
2056
|
}
|
|
1987
2057
|
return J(() => {
|
|
1988
|
-
document.addEventListener("click",
|
|
1989
|
-
}),
|
|
1990
|
-
document.removeEventListener("click",
|
|
1991
|
-
}), (c, b) => (
|
|
1992
|
-
O(
|
|
2058
|
+
document.addEventListener("click", y), window.addEventListener("resize", C), window.addEventListener("scroll", C, !0);
|
|
2059
|
+
}), pe(() => {
|
|
2060
|
+
document.removeEventListener("click", y), window.removeEventListener("resize", C), window.removeEventListener("scroll", C, !0);
|
|
2061
|
+
}), (c, b) => (r(), Y(ye, { to: "body" }, [
|
|
2062
|
+
O(ke, {
|
|
1993
2063
|
"enter-active-class": "transition-all duration-150 ease-in-out",
|
|
1994
2064
|
"leave-active-class": "transition-all duration-150 ease-in-out",
|
|
1995
2065
|
"enter-from-class": "opacity-0 scale-95",
|
|
@@ -1998,15 +2068,15 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
1998
2068
|
onLeave: b[2] || (b[2] = (p) => p.offsetHeight)
|
|
1999
2069
|
}, {
|
|
2000
2070
|
default: K(() => [
|
|
2001
|
-
|
|
2071
|
+
Se(T("div", ce({
|
|
2002
2072
|
ref_key: "contenido",
|
|
2003
2073
|
ref: u
|
|
2004
2074
|
}, c.$attrs, {
|
|
2005
|
-
id:
|
|
2075
|
+
id: F(a),
|
|
2006
2076
|
role: "menu",
|
|
2007
2077
|
tabindex: "-1",
|
|
2008
2078
|
"aria-orientation": "vertical",
|
|
2009
|
-
"aria-labelledby":
|
|
2079
|
+
"aria-labelledby": F(l) ?? void 0,
|
|
2010
2080
|
inert: !s.value,
|
|
2011
2081
|
style: {
|
|
2012
2082
|
position: "fixed",
|
|
@@ -2022,29 +2092,29 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
2022
2092
|
onClick: b[0] || (b[0] = (p) => p.stopPropagation()),
|
|
2023
2093
|
onKeydown: j
|
|
2024
2094
|
}), [
|
|
2025
|
-
T("div",
|
|
2095
|
+
T("div", nl, [
|
|
2026
2096
|
S(c.$slots, "default")
|
|
2027
2097
|
])
|
|
2028
|
-
], 16,
|
|
2029
|
-
[
|
|
2098
|
+
], 16, al), [
|
|
2099
|
+
[Ye, s.value]
|
|
2030
2100
|
])
|
|
2031
2101
|
]),
|
|
2032
2102
|
_: 3
|
|
2033
2103
|
})
|
|
2034
2104
|
]));
|
|
2035
2105
|
}
|
|
2036
|
-
}),
|
|
2106
|
+
}), ol = ["aria-disabled", "onKeydown"], rl = /* @__PURE__ */ D({
|
|
2037
2107
|
__name: "DropdownMenuItem",
|
|
2038
2108
|
props: {
|
|
2039
2109
|
disabled: { type: Boolean, default: !1 }
|
|
2040
2110
|
},
|
|
2041
2111
|
emits: ["select", "click"],
|
|
2042
2112
|
setup(e, { emit: n }) {
|
|
2043
|
-
const t = e, a = n, l =
|
|
2113
|
+
const t = e, a = n, l = Ce();
|
|
2044
2114
|
function o(s) {
|
|
2045
2115
|
t.disabled || (a("select"), a("click", s), l.cerrar({ devolverElFoco: !0 }));
|
|
2046
2116
|
}
|
|
2047
|
-
return (s, u) => (
|
|
2117
|
+
return (s, u) => (r(), i("div", {
|
|
2048
2118
|
role: "menuitem",
|
|
2049
2119
|
tabindex: "0",
|
|
2050
2120
|
"aria-disabled": e.disabled || void 0,
|
|
@@ -2057,22 +2127,22 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
2057
2127
|
]),
|
|
2058
2128
|
onClick: o,
|
|
2059
2129
|
onKeydown: [
|
|
2060
|
-
|
|
2061
|
-
|
|
2130
|
+
R(V(o, ["prevent"]), ["enter"]),
|
|
2131
|
+
R(V(o, ["prevent"]), ["space"])
|
|
2062
2132
|
]
|
|
2063
2133
|
}, [
|
|
2064
2134
|
S(s.$slots, "default")
|
|
2065
|
-
], 42,
|
|
2135
|
+
], 42, ol));
|
|
2066
2136
|
}
|
|
2067
|
-
}),
|
|
2137
|
+
}), il = /* @__PURE__ */ D({
|
|
2068
2138
|
__name: "DropdownMenuLabel",
|
|
2069
2139
|
setup(e) {
|
|
2070
|
-
const n =
|
|
2140
|
+
const n = Ce(), t = `${ct()}-titulo`;
|
|
2071
2141
|
return J(() => {
|
|
2072
2142
|
n.ponerLaEtiqueta(t);
|
|
2073
|
-
}),
|
|
2143
|
+
}), pe(() => {
|
|
2074
2144
|
n.ponerLaEtiqueta(null);
|
|
2075
|
-
}), (a, l) => (
|
|
2145
|
+
}), (a, l) => (r(), i("div", {
|
|
2076
2146
|
id: t,
|
|
2077
2147
|
role: "presentation",
|
|
2078
2148
|
class: "px-3 py-2 text-sm font-semibold text-tx-main"
|
|
@@ -2080,30 +2150,30 @@ const In = { class: "relative inline-block" }, On = /* @__PURE__ */ E({
|
|
|
2080
2150
|
S(a.$slots, "default")
|
|
2081
2151
|
]));
|
|
2082
2152
|
}
|
|
2083
|
-
}),
|
|
2153
|
+
}), sl = {
|
|
2084
2154
|
role: "separator",
|
|
2085
2155
|
"aria-orientation": "horizontal",
|
|
2086
2156
|
class: "bg-ui-bg/80 my-4 h-0.5"
|
|
2087
|
-
},
|
|
2157
|
+
}, ul = /* @__PURE__ */ D({
|
|
2088
2158
|
__name: "DropdownMenuSeparator",
|
|
2089
2159
|
setup(e) {
|
|
2090
|
-
return (n, t) => (
|
|
2160
|
+
return (n, t) => (r(), i("div", sl));
|
|
2091
2161
|
}
|
|
2092
2162
|
});
|
|
2093
|
-
function
|
|
2163
|
+
function dt(e) {
|
|
2094
2164
|
const n = e.filter(
|
|
2095
|
-
(a) => a.type !==
|
|
2165
|
+
(a) => a.type !== Et && !(a.type === Lt && typeof a.children == "string" && !a.children.trim())
|
|
2096
2166
|
);
|
|
2097
2167
|
if (n.length !== 1) return null;
|
|
2098
2168
|
const t = n[0];
|
|
2099
|
-
return t.type ===
|
|
2169
|
+
return t.type === te && Array.isArray(t.children) ? dt(t.children) : t;
|
|
2100
2170
|
}
|
|
2101
|
-
function
|
|
2171
|
+
function cl(e) {
|
|
2102
2172
|
if (e instanceof HTMLElement) return e;
|
|
2103
2173
|
const n = e?.$el;
|
|
2104
2174
|
return n instanceof HTMLElement ? n : null;
|
|
2105
2175
|
}
|
|
2106
|
-
const
|
|
2176
|
+
const dl = D({
|
|
2107
2177
|
name: "DropdownMenuTrigger",
|
|
2108
2178
|
inheritAttrs: !1,
|
|
2109
2179
|
props: {
|
|
@@ -2113,9 +2183,9 @@ const Wn = E({
|
|
|
2113
2183
|
disabled: { type: Boolean, default: !1 }
|
|
2114
2184
|
},
|
|
2115
2185
|
setup(e, { slots: n, attrs: t }) {
|
|
2116
|
-
const a =
|
|
2186
|
+
const a = Ce(), l = w(null);
|
|
2117
2187
|
function o() {
|
|
2118
|
-
a.ponerElDisparador(
|
|
2188
|
+
a.ponerElDisparador(cl(l.value));
|
|
2119
2189
|
}
|
|
2120
2190
|
function s() {
|
|
2121
2191
|
e.disabled || (o(), a.alternar());
|
|
@@ -2153,17 +2223,17 @@ const Wn = E({
|
|
|
2153
2223
|
onKeydown: u
|
|
2154
2224
|
}, f = n.default?.() ?? [];
|
|
2155
2225
|
if (e.asChild) {
|
|
2156
|
-
const d =
|
|
2157
|
-
if (d) return
|
|
2226
|
+
const d = dt(f);
|
|
2227
|
+
if (d) return $t(d, { ...t, ...m });
|
|
2158
2228
|
}
|
|
2159
|
-
return
|
|
2229
|
+
return Ct(
|
|
2160
2230
|
"div",
|
|
2161
2231
|
{ ...t, class: ["dropdown-menu-trigger inline-block", t.class], ...m },
|
|
2162
2232
|
f
|
|
2163
2233
|
);
|
|
2164
2234
|
};
|
|
2165
2235
|
}
|
|
2166
|
-
}),
|
|
2236
|
+
}), fl = ["for"], ml = /* @__PURE__ */ D({
|
|
2167
2237
|
__name: "FormGroup",
|
|
2168
2238
|
props: {
|
|
2169
2239
|
label: {},
|
|
@@ -2172,18 +2242,18 @@ const Wn = E({
|
|
|
2172
2242
|
labelClass: { default: () => ({}) }
|
|
2173
2243
|
},
|
|
2174
2244
|
setup(e) {
|
|
2175
|
-
return (n, t) => (
|
|
2245
|
+
return (n, t) => (r(), i("div", {
|
|
2176
2246
|
class: h(["flex flex-col gap-2", e.customClass])
|
|
2177
2247
|
}, [
|
|
2178
|
-
e.label ? (
|
|
2248
|
+
e.label ? (r(), i("label", {
|
|
2179
2249
|
key: 0,
|
|
2180
2250
|
for: e.htmlFor,
|
|
2181
2251
|
class: h(["text-sm font-medium text-primary dark:text-primary-dark", e.labelClass])
|
|
2182
|
-
},
|
|
2252
|
+
}, M(e.label), 11, fl)) : x("", !0),
|
|
2183
2253
|
S(n.$slots, "default", {}, void 0, !0)
|
|
2184
2254
|
], 2));
|
|
2185
2255
|
}
|
|
2186
|
-
}),
|
|
2256
|
+
}), bl = /* @__PURE__ */ $e(ml, [["__scopeId", "data-v-c0d9d9cb"]]), vl = /* @__PURE__ */ D({
|
|
2187
2257
|
__name: "ListCard",
|
|
2188
2258
|
props: {
|
|
2189
2259
|
clickable: { type: Boolean, default: !1 },
|
|
@@ -2194,7 +2264,7 @@ const Wn = E({
|
|
|
2194
2264
|
const t = e, a = n, l = () => {
|
|
2195
2265
|
t.clickable && a("click");
|
|
2196
2266
|
};
|
|
2197
|
-
return (o, s) => (
|
|
2267
|
+
return (o, s) => (r(), i("div", {
|
|
2198
2268
|
class: h([
|
|
2199
2269
|
"flex items-center justify-between background p-3 rounded-vsk border border-vsk-primary/70 transition-colors duration-200",
|
|
2200
2270
|
{
|
|
@@ -2207,10 +2277,10 @@ const Wn = E({
|
|
|
2207
2277
|
S(o.$slots, "default", {}, void 0, !0)
|
|
2208
2278
|
], 2));
|
|
2209
2279
|
}
|
|
2210
|
-
}),
|
|
2280
|
+
}), pl = /* @__PURE__ */ $e(vl, [["__scopeId", "data-v-f86d47da"]]), gl = { 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" }, yl = ["title", "aria-label"], hl = ["src"], xl = {
|
|
2211
2281
|
key: 1,
|
|
2212
2282
|
class: "w-8 h-8 flex items-center justify-center"
|
|
2213
|
-
},
|
|
2283
|
+
}, wl = ["src"], kl = ["min", "max", "value", "aria-label", "aria-valuetext"], $l = /* @__PURE__ */ D({
|
|
2214
2284
|
__name: "SliderControl",
|
|
2215
2285
|
props: {
|
|
2216
2286
|
icon: {},
|
|
@@ -2235,26 +2305,26 @@ const Wn = E({
|
|
|
2235
2305
|
}, u = () => {
|
|
2236
2306
|
a("buttonClick");
|
|
2237
2307
|
};
|
|
2238
|
-
return (m, f) => (
|
|
2239
|
-
e.showButton ? (
|
|
2308
|
+
return (m, f) => (r(), i("div", gl, [
|
|
2309
|
+
e.showButton ? (r(), i("button", {
|
|
2240
2310
|
key: 0,
|
|
2241
2311
|
onClick: u,
|
|
2242
2312
|
type: "button",
|
|
2243
2313
|
title: e.buttonLabel ?? e.label,
|
|
2244
2314
|
"aria-label": e.buttonLabel ?? e.label,
|
|
2245
|
-
class: "w-8 h-8 flex items-center justify-center rounded-corner transition-
|
|
2315
|
+
class: "w-8 h-8 flex items-center justify-center rounded-corner transition-[background-color,scale] duration-200 hover:bg-ui-surface/80 dark:hover:bg-ui-surface-dark/80 hover:scale-110 active:scale-95"
|
|
2246
2316
|
}, [
|
|
2247
2317
|
T("img", {
|
|
2248
2318
|
src: e.icon,
|
|
2249
2319
|
alt: "",
|
|
2250
|
-
class: h(["w-6 h-6
|
|
2251
|
-
}, null, 10,
|
|
2252
|
-
], 8,
|
|
2320
|
+
class: h(["w-6 h-6", e.iconClass])
|
|
2321
|
+
}, null, 10, hl)
|
|
2322
|
+
], 8, yl)) : (r(), i("div", xl, [
|
|
2253
2323
|
T("img", {
|
|
2254
2324
|
src: e.icon,
|
|
2255
2325
|
alt: "",
|
|
2256
|
-
class: "w-6 h-6
|
|
2257
|
-
}, null, 8,
|
|
2326
|
+
class: "w-6 h-6"
|
|
2327
|
+
}, null, 8, wl)
|
|
2258
2328
|
])),
|
|
2259
2329
|
T("input", {
|
|
2260
2330
|
type: "range",
|
|
@@ -2264,14 +2334,14 @@ const Wn = E({
|
|
|
2264
2334
|
onInput: s,
|
|
2265
2335
|
"aria-label": e.label,
|
|
2266
2336
|
"aria-valuetext": `${l.value}%`,
|
|
2267
|
-
class: "flex-1 transition-
|
|
2268
|
-
}, null, 40,
|
|
2337
|
+
class: "flex-1 transition-[scale] duration-200 hover:scale-105"
|
|
2338
|
+
}, null, 40, kl),
|
|
2269
2339
|
T("span", {
|
|
2270
|
-
class: h(["w-12 text-right transition-
|
|
2271
|
-
},
|
|
2340
|
+
class: h(["w-12 text-right transition-[color] duration-200 font-medium", o.value])
|
|
2341
|
+
}, M(l.value) + "% ", 3)
|
|
2272
2342
|
]));
|
|
2273
2343
|
}
|
|
2274
|
-
}),
|
|
2344
|
+
}), je = /* @__PURE__ */ D({
|
|
2275
2345
|
__name: "SwitchTrack",
|
|
2276
2346
|
props: {
|
|
2277
2347
|
on: { type: Boolean },
|
|
@@ -2279,7 +2349,7 @@ const Wn = E({
|
|
|
2279
2349
|
},
|
|
2280
2350
|
setup(e) {
|
|
2281
2351
|
const n = e, t = v(() => n.size === "small");
|
|
2282
|
-
return (a, l) => (
|
|
2352
|
+
return (a, l) => (r(), i("span", {
|
|
2283
2353
|
"aria-hidden": "true",
|
|
2284
2354
|
class: h(["inline-flex shrink-0 items-center rounded-full border transition-colors", [
|
|
2285
2355
|
t.value ? "h-6 w-11" : "h-7 w-12",
|
|
@@ -2295,10 +2365,10 @@ const Wn = E({
|
|
|
2295
2365
|
}, null, 2)
|
|
2296
2366
|
], 2));
|
|
2297
2367
|
}
|
|
2298
|
-
}),
|
|
2368
|
+
}), Cl = ["aria-checked", "disabled"], El = { class: "min-w-0 flex-1" }, Ll = { class: "block font-medium text-sm text-tx-main" }, zl = {
|
|
2299
2369
|
key: 0,
|
|
2300
2370
|
class: "mt-0.5 block text-tx-muted text-xs"
|
|
2301
|
-
},
|
|
2371
|
+
}, Dl = /* @__PURE__ */ D({
|
|
2302
2372
|
__name: "SwitchRow",
|
|
2303
2373
|
props: {
|
|
2304
2374
|
modelValue: { type: Boolean },
|
|
@@ -2311,7 +2381,7 @@ const Wn = E({
|
|
|
2311
2381
|
emits: ["update:modelValue"],
|
|
2312
2382
|
setup(e, { emit: n }) {
|
|
2313
2383
|
const t = e, a = n;
|
|
2314
|
-
return (l, o) => (
|
|
2384
|
+
return (l, o) => (r(), i("button", {
|
|
2315
2385
|
type: "button",
|
|
2316
2386
|
role: "switch",
|
|
2317
2387
|
"aria-checked": e.modelValue,
|
|
@@ -2319,11 +2389,11 @@ const Wn = E({
|
|
|
2319
2389
|
class: "flex w-full items-start gap-3 rounded-corner p-2 text-left transition-colors hover:bg-ui-surface/60 disabled:cursor-not-allowed disabled:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
2320
2390
|
onClick: o[0] || (o[0] = (s) => a("update:modelValue", !t.modelValue))
|
|
2321
2391
|
}, [
|
|
2322
|
-
O(
|
|
2392
|
+
O(je, {
|
|
2323
2393
|
on: e.modelValue,
|
|
2324
2394
|
class: "mt-0.5"
|
|
2325
2395
|
}, null, 8, ["on"]),
|
|
2326
|
-
e.icon ? (
|
|
2396
|
+
e.icon ? (r(), i("span", {
|
|
2327
2397
|
key: 0,
|
|
2328
2398
|
class: h(["flex size-10 shrink-0 items-center justify-center rounded-corner border", e.modelValue ? "border-secondary bg-primary/20" : "border-ui-border bg-ui-surface/40"]),
|
|
2329
2399
|
"aria-hidden": "true"
|
|
@@ -2335,14 +2405,14 @@ const Wn = E({
|
|
|
2335
2405
|
alt: ""
|
|
2336
2406
|
}, null, 8, ["name", "type"])
|
|
2337
2407
|
], 2)) : x("", !0),
|
|
2338
|
-
T("span",
|
|
2339
|
-
T("span",
|
|
2340
|
-
e.description ? (
|
|
2408
|
+
T("span", El, [
|
|
2409
|
+
T("span", Ll, M(e.label), 1),
|
|
2410
|
+
e.description ? (r(), i("span", zl, M(e.description), 1)) : x("", !0),
|
|
2341
2411
|
S(l.$slots, "pie")
|
|
2342
2412
|
])
|
|
2343
|
-
], 8,
|
|
2413
|
+
], 8, Cl));
|
|
2344
2414
|
}
|
|
2345
|
-
}),
|
|
2415
|
+
}), Tl = ["aria-checked", "aria-label", "disabled"], Al = /* @__PURE__ */ D({
|
|
2346
2416
|
__name: "SwitchToggle",
|
|
2347
2417
|
props: {
|
|
2348
2418
|
modelValue: { type: Boolean },
|
|
@@ -2356,7 +2426,7 @@ const Wn = E({
|
|
|
2356
2426
|
function l() {
|
|
2357
2427
|
a("update:modelValue", !t.modelValue);
|
|
2358
2428
|
}
|
|
2359
|
-
return (o, s) => (
|
|
2429
|
+
return (o, s) => (r(), i("button", {
|
|
2360
2430
|
type: "button",
|
|
2361
2431
|
role: "switch",
|
|
2362
2432
|
"aria-checked": e.modelValue,
|
|
@@ -2365,13 +2435,13 @@ const Wn = E({
|
|
|
2365
2435
|
class: "rounded-full transition-opacity disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
2366
2436
|
onClick: l
|
|
2367
2437
|
}, [
|
|
2368
|
-
O(
|
|
2438
|
+
O(je, {
|
|
2369
2439
|
on: e.modelValue,
|
|
2370
2440
|
size: e.size
|
|
2371
2441
|
}, null, 8, ["on", "size"])
|
|
2372
|
-
], 8,
|
|
2442
|
+
], 8, Tl));
|
|
2373
2443
|
}
|
|
2374
|
-
}),
|
|
2444
|
+
}), Bl = ["disabled", "title", "aria-label", "aria-pressed", "aria-busy"], Sl = ["src"], Ml = /* @__PURE__ */ D({
|
|
2375
2445
|
__name: "ToggleControl",
|
|
2376
2446
|
props: {
|
|
2377
2447
|
icon: {},
|
|
@@ -2388,9 +2458,9 @@ const Wn = E({
|
|
|
2388
2458
|
function a() {
|
|
2389
2459
|
t("click");
|
|
2390
2460
|
}
|
|
2391
|
-
return (l, o) => (
|
|
2461
|
+
return (l, o) => (r(), i("button", {
|
|
2392
2462
|
type: "button",
|
|
2393
|
-
class: h(["p-2 rounded-corner bg-ui-bg/80 hover:opacity-50 transition-
|
|
2463
|
+
class: h(["p-2 rounded-corner bg-ui-bg/80 hover:opacity-50 transition-[opacity,scale,box-shadow] duration-300 h-17.5 w-17.5 group relative overflow-hidden hover:scale-105 hover:shadow-lg active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2", {
|
|
2394
2464
|
"animate-pulse": e.isLoading,
|
|
2395
2465
|
"ring-2 ring-primary": e.isActive,
|
|
2396
2466
|
"opacity-60": !e.isActive,
|
|
@@ -2406,18 +2476,18 @@ const Wn = E({
|
|
|
2406
2476
|
T("img", {
|
|
2407
2477
|
src: e.icon,
|
|
2408
2478
|
alt: "",
|
|
2409
|
-
class: h(["m-auto w-12.5 h-12.5 transition-
|
|
2479
|
+
class: h(["m-auto w-12.5 h-12.5 transition-[scale,filter] duration-300 group-hover:scale-110 relative z-10", {
|
|
2410
2480
|
"animate-spin": e.isLoading,
|
|
2411
2481
|
"filter brightness-75": !e.isActive,
|
|
2412
2482
|
"drop-shadow-lg": e.isActive,
|
|
2413
2483
|
...e.iconClass
|
|
2414
2484
|
}])
|
|
2415
|
-
}, null, 10,
|
|
2416
|
-
], 10,
|
|
2485
|
+
}, null, 10, Sl)
|
|
2486
|
+
], 10, Bl));
|
|
2417
2487
|
}
|
|
2418
|
-
}),
|
|
2419
|
-
function
|
|
2420
|
-
const e =
|
|
2488
|
+
}), ft = /* @__PURE__ */ Symbol("tooltip de vasak");
|
|
2489
|
+
function mt() {
|
|
2490
|
+
const e = we(ft, null);
|
|
2421
2491
|
if (e) return e;
|
|
2422
2492
|
const n = w(!1);
|
|
2423
2493
|
return {
|
|
@@ -2433,7 +2503,7 @@ function nt() {
|
|
|
2433
2503
|
}
|
|
2434
2504
|
};
|
|
2435
2505
|
}
|
|
2436
|
-
const
|
|
2506
|
+
const Vl = { class: "inline-block" }, Il = /* @__PURE__ */ D({
|
|
2437
2507
|
__name: "Tooltip",
|
|
2438
2508
|
props: {
|
|
2439
2509
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2450,7 +2520,7 @@ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
|
|
|
2450
2520
|
function s() {
|
|
2451
2521
|
l && clearTimeout(l), t.value = !1;
|
|
2452
2522
|
}
|
|
2453
|
-
return
|
|
2523
|
+
return ge(ft, {
|
|
2454
2524
|
abierto: v(() => t.value && !n.disabled),
|
|
2455
2525
|
disparador: a,
|
|
2456
2526
|
ponerElDisparador: (u) => {
|
|
@@ -2458,11 +2528,11 @@ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
|
|
|
2458
2528
|
},
|
|
2459
2529
|
abrir: o,
|
|
2460
2530
|
cerrar: s
|
|
2461
|
-
}), (u, m) => (
|
|
2531
|
+
}), (u, m) => (r(), i("div", Vl, [
|
|
2462
2532
|
S(u.$slots, "default")
|
|
2463
2533
|
]));
|
|
2464
2534
|
}
|
|
2465
|
-
}),
|
|
2535
|
+
}), Ol = /* @__PURE__ */ D({
|
|
2466
2536
|
inheritAttrs: !1,
|
|
2467
2537
|
__name: "TooltipContent",
|
|
2468
2538
|
props: {
|
|
@@ -2471,42 +2541,42 @@ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
|
|
|
2471
2541
|
sideOffset: { default: 4 }
|
|
2472
2542
|
},
|
|
2473
2543
|
setup(e) {
|
|
2474
|
-
const n =
|
|
2544
|
+
const n = Be(), t = v(() => n.class ?? ""), a = e, l = mt(), o = v(() => l.abierto.value), s = w(null), u = w({ top: 0, left: 0 });
|
|
2475
2545
|
function m() {
|
|
2476
2546
|
const f = l.disparador.value;
|
|
2477
2547
|
if (!f || !s.value) return;
|
|
2478
2548
|
const d = f.getBoundingClientRect(), L = s.value.getBoundingClientRect();
|
|
2479
|
-
let
|
|
2549
|
+
let z = 0, B = 0;
|
|
2480
2550
|
switch (a.side) {
|
|
2481
2551
|
case "bottom":
|
|
2482
|
-
|
|
2552
|
+
z = d.bottom + a.sideOffset, B = d.left + d.width / 2 - L.width / 2;
|
|
2483
2553
|
break;
|
|
2484
2554
|
case "top":
|
|
2485
|
-
|
|
2555
|
+
z = d.top - L.height - a.sideOffset, B = d.left + d.width / 2 - L.width / 2;
|
|
2486
2556
|
break;
|
|
2487
2557
|
case "left":
|
|
2488
|
-
|
|
2558
|
+
B = d.left - L.width - a.sideOffset, z = d.top + d.height / 2 - L.height / 2;
|
|
2489
2559
|
break;
|
|
2490
2560
|
case "right":
|
|
2491
|
-
|
|
2561
|
+
B = d.right + a.sideOffset, z = d.top + d.height / 2 - L.height / 2;
|
|
2492
2562
|
break;
|
|
2493
2563
|
}
|
|
2494
|
-
u.value = { top:
|
|
2564
|
+
u.value = { top: z, left: B };
|
|
2495
2565
|
}
|
|
2496
2566
|
return W(o, async (f) => {
|
|
2497
|
-
f && (await
|
|
2498
|
-
}), (f, d) => (
|
|
2499
|
-
O(
|
|
2567
|
+
f && (await X(), requestAnimationFrame(m));
|
|
2568
|
+
}), (f, d) => (r(), Y(ye, { to: "body" }, [
|
|
2569
|
+
O(ke, {
|
|
2500
2570
|
"enter-active-class": "transition-all duration-200 ease-in-out",
|
|
2501
2571
|
"leave-active-class": "transition-all duration-200 ease-in-out",
|
|
2502
2572
|
"enter-from-class": "opacity-0 scale-95",
|
|
2503
2573
|
"leave-to-class": "opacity-0 scale-95"
|
|
2504
2574
|
}, {
|
|
2505
2575
|
default: K(() => [
|
|
2506
|
-
|
|
2576
|
+
Se(T("div", {
|
|
2507
2577
|
ref_key: "globo",
|
|
2508
2578
|
ref: s,
|
|
2509
|
-
style:
|
|
2579
|
+
style: fe({ position: "fixed", top: `${u.value.top}px`, left: `${u.value.left}px`, zIndex: 50 }),
|
|
2510
2580
|
class: h([
|
|
2511
2581
|
t.value,
|
|
2512
2582
|
"pointer-events-none rounded-corner border border-secondary bg-ui-bg/80 px-2 py-1 text-sm shadow-md"
|
|
@@ -2514,17 +2584,17 @@ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
|
|
|
2514
2584
|
}, [
|
|
2515
2585
|
S(f.$slots, "default")
|
|
2516
2586
|
], 6), [
|
|
2517
|
-
[
|
|
2587
|
+
[Ye, o.value]
|
|
2518
2588
|
])
|
|
2519
2589
|
]),
|
|
2520
2590
|
_: 3
|
|
2521
2591
|
})
|
|
2522
2592
|
]));
|
|
2523
2593
|
}
|
|
2524
|
-
}),
|
|
2594
|
+
}), jl = /* @__PURE__ */ D({
|
|
2525
2595
|
__name: "TooltipTrigger",
|
|
2526
2596
|
setup(e) {
|
|
2527
|
-
const n =
|
|
2597
|
+
const n = mt(), t = w(null);
|
|
2528
2598
|
function a() {
|
|
2529
2599
|
return t.value ? t.value.firstElementChild ?? t.value : null;
|
|
2530
2600
|
}
|
|
@@ -2533,22 +2603,22 @@ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
|
|
|
2533
2603
|
}
|
|
2534
2604
|
return J(() => {
|
|
2535
2605
|
n.ponerElDisparador(a());
|
|
2536
|
-
}), (o, s) => (
|
|
2606
|
+
}), (o, s) => (r(), i("div", {
|
|
2537
2607
|
ref_key: "envoltorio",
|
|
2538
2608
|
ref: t,
|
|
2539
2609
|
class: "inline-block",
|
|
2540
2610
|
onMouseenter: l,
|
|
2541
|
-
onMouseleave: s[0] || (s[0] = (u) =>
|
|
2611
|
+
onMouseleave: s[0] || (s[0] = (u) => F(n).cerrar()),
|
|
2542
2612
|
onFocus: l,
|
|
2543
|
-
onBlur: s[1] || (s[1] = (u) =>
|
|
2613
|
+
onBlur: s[1] || (s[1] = (u) => F(n).cerrar())
|
|
2544
2614
|
}, [
|
|
2545
2615
|
S(o.$slots, "default")
|
|
2546
2616
|
], 544));
|
|
2547
2617
|
}
|
|
2548
|
-
}),
|
|
2618
|
+
}), Pl = ["title"], Rl = ["src", "alt"], Fl = {
|
|
2549
2619
|
key: 0,
|
|
2550
2620
|
class: "absolute bottom-1 right-1 bg-primary dark:bg-primary-dark text-white text-xs rounded-full w-4 h-4 flex items-center justify-center font-bold animate-bounce"
|
|
2551
|
-
},
|
|
2621
|
+
}, Nl = /* @__PURE__ */ D({
|
|
2552
2622
|
__name: "TrayIconButton",
|
|
2553
2623
|
props: {
|
|
2554
2624
|
icon: {},
|
|
@@ -2566,8 +2636,8 @@ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
|
|
|
2566
2636
|
const t = n, a = w(!1), l = () => {
|
|
2567
2637
|
t("click");
|
|
2568
2638
|
};
|
|
2569
|
-
return (o, s) => (
|
|
2570
|
-
class: h(["p-1 rounded-corner relative hover:bg-primary dark:hover:bg-primary-dark group transition-
|
|
2639
|
+
return (o, s) => (r(), i("div", {
|
|
2640
|
+
class: h(["p-1 rounded-corner relative hover:bg-primary dark:hover:bg-primary-dark group transition-[background-color] duration-300", e.customClass]),
|
|
2571
2641
|
title: e.tooltip,
|
|
2572
2642
|
onClick: l,
|
|
2573
2643
|
onMouseenter: s[0] || (s[0] = (u) => a.value = !0),
|
|
@@ -2576,138 +2646,139 @@ const vl = { class: "inline-block" }, pl = /* @__PURE__ */ E({
|
|
|
2576
2646
|
T("img", {
|
|
2577
2647
|
src: e.icon,
|
|
2578
2648
|
alt: e.alt,
|
|
2579
|
-
class: h(["m-auto h-5.5 w-auto
|
|
2580
|
-
}, null, 10,
|
|
2581
|
-
e.badge !== null && e.badge > 0 ? (
|
|
2582
|
-
e.showCustomTooltip && e.customTooltipText ? (
|
|
2649
|
+
class: h(["m-auto h-5.5 w-auto", e.iconClass])
|
|
2650
|
+
}, null, 10, Rl),
|
|
2651
|
+
e.badge !== null && e.badge > 0 ? (r(), i("div", Fl, M(e.badge), 1)) : x("", !0),
|
|
2652
|
+
e.showCustomTooltip && e.customTooltipText ? (r(), i("div", {
|
|
2583
2653
|
key: 1,
|
|
2584
|
-
class: h(["absolute top-1 left-1/2 transform -translate-x-1/2 text-xs font-semibold p-1 rounded-corner transition-
|
|
2654
|
+
class: h(["absolute top-1 left-1/2 transform -translate-x-1/2 text-xs font-semibold p-1 rounded-corner transition-[opacity,translate] duration-300 pointer-events-none background", [
|
|
2585
2655
|
e.tooltipClass,
|
|
2586
2656
|
{
|
|
2587
2657
|
"opacity-0 -translate-y-2": !a.value,
|
|
2588
2658
|
"opacity-100 translate-y-0": a.value
|
|
2589
2659
|
}
|
|
2590
2660
|
]])
|
|
2591
|
-
},
|
|
2661
|
+
}, M(e.customTooltipText), 3)) : x("", !0),
|
|
2592
2662
|
S(o.$slots, "default")
|
|
2593
|
-
], 42,
|
|
2663
|
+
], 42, Pl));
|
|
2594
2664
|
}
|
|
2595
|
-
}),
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2665
|
+
}), ql = [
|
|
2666
|
+
ua,
|
|
2667
|
+
_e,
|
|
2668
|
+
Ze,
|
|
2669
|
+
ba,
|
|
2600
2670
|
H,
|
|
2601
|
-
sa,
|
|
2602
|
-
We,
|
|
2603
|
-
Ke,
|
|
2604
|
-
xa,
|
|
2605
|
-
Ge,
|
|
2606
2671
|
za,
|
|
2607
|
-
|
|
2608
|
-
|
|
2672
|
+
at,
|
|
2673
|
+
tt,
|
|
2609
2674
|
Ra,
|
|
2610
|
-
|
|
2611
|
-
Ga,
|
|
2612
|
-
Ee,
|
|
2613
|
-
sn,
|
|
2614
|
-
Qe,
|
|
2675
|
+
nt,
|
|
2615
2676
|
Ua,
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2677
|
+
Ja,
|
|
2678
|
+
an,
|
|
2679
|
+
on,
|
|
2680
|
+
sn,
|
|
2681
|
+
mn,
|
|
2682
|
+
Oe,
|
|
2683
|
+
zn,
|
|
2684
|
+
lt,
|
|
2685
|
+
cn,
|
|
2686
|
+
An,
|
|
2687
|
+
Rn,
|
|
2627
2688
|
Nn,
|
|
2628
|
-
|
|
2629
|
-
|
|
2689
|
+
Kn,
|
|
2690
|
+
Gn,
|
|
2630
2691
|
Yn,
|
|
2631
2692
|
Jn,
|
|
2693
|
+
_n,
|
|
2694
|
+
tl,
|
|
2632
2695
|
ll,
|
|
2696
|
+
rl,
|
|
2697
|
+
il,
|
|
2633
2698
|
ul,
|
|
2634
2699
|
dl,
|
|
2635
|
-
Te,
|
|
2636
2700
|
bl,
|
|
2637
2701
|
pl,
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2702
|
+
$l,
|
|
2703
|
+
Dl,
|
|
2704
|
+
Al,
|
|
2705
|
+
je,
|
|
2706
|
+
Ml,
|
|
2707
|
+
Il,
|
|
2708
|
+
Ol,
|
|
2709
|
+
jl,
|
|
2710
|
+
Nl
|
|
2711
|
+
], Xl = {
|
|
2642
2712
|
install(e) {
|
|
2643
|
-
|
|
2713
|
+
ql.forEach((n) => {
|
|
2644
2714
|
e.component(n.name, n);
|
|
2645
2715
|
});
|
|
2646
2716
|
}
|
|
2647
2717
|
};
|
|
2648
2718
|
export {
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2719
|
+
Ja as ActionButton,
|
|
2720
|
+
an as AlertMessage,
|
|
2721
|
+
at as AppBar,
|
|
2722
|
+
Ua as BarSearch,
|
|
2723
|
+
ot as CLASES_POR_TONO,
|
|
2724
|
+
it as CLAVE_DEL_DIALOGO,
|
|
2725
|
+
ut as CLAVE_DEL_MENU,
|
|
2726
|
+
ft as CLAVE_DEL_TOOLTIP,
|
|
2727
|
+
Ve as CLAVE_DE_LA_BARRA,
|
|
2728
|
+
An as ConfigSection,
|
|
2729
|
+
Rn as DeviceCard,
|
|
2730
|
+
Nn as Dialog,
|
|
2731
|
+
Kn as DialogContent,
|
|
2732
|
+
Gn as DialogDescription,
|
|
2733
|
+
Yn as DialogFooter,
|
|
2734
|
+
Jn as DialogHeader,
|
|
2735
|
+
_n as DialogTitle,
|
|
2736
|
+
tl as DropdownMenu,
|
|
2737
|
+
ll as DropdownMenuContent,
|
|
2738
|
+
rl as DropdownMenuItem,
|
|
2739
|
+
il as DropdownMenuLabel,
|
|
2740
|
+
ul as DropdownMenuSeparator,
|
|
2741
|
+
dl as DropdownMenuTrigger,
|
|
2742
|
+
on as EmptyState,
|
|
2743
|
+
bl as FormGroup,
|
|
2744
|
+
Ie as LOS_TRES_CONTROLES,
|
|
2745
|
+
pl as ListCard,
|
|
2746
|
+
sn as LoadingState,
|
|
2747
|
+
va as POSICIONES,
|
|
2748
|
+
mn as ProgressBar,
|
|
2749
|
+
Oe as SearchField,
|
|
2750
|
+
zn as SearchSelect,
|
|
2751
|
+
ba as SelectField,
|
|
2752
|
+
ua as SideBar,
|
|
2753
|
+
_e as SideButton,
|
|
2754
|
+
Ze as SideGroup,
|
|
2755
|
+
$l as SliderControl,
|
|
2756
|
+
Dl as SwitchRow,
|
|
2757
|
+
Al as SwitchToggle,
|
|
2758
|
+
je as SwitchTrack,
|
|
2759
|
+
Ra as TabBar,
|
|
2760
|
+
nt as TabItem,
|
|
2761
|
+
lt as TextInput,
|
|
2692
2762
|
H as ThemeIcon,
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2763
|
+
cn as ToastArea,
|
|
2764
|
+
Ml as ToggleControl,
|
|
2765
|
+
Il as Tooltip,
|
|
2766
|
+
Ol as TooltipContent,
|
|
2767
|
+
jl as TooltipTrigger,
|
|
2768
|
+
Nl as TrayIconButton,
|
|
2769
|
+
tt as WindowControls,
|
|
2770
|
+
za as WindowFrame,
|
|
2771
|
+
vn as buscarOpciones,
|
|
2772
|
+
Xl as default,
|
|
2773
|
+
pa as esPosicion,
|
|
2774
|
+
Ql as olvidarLosIconosDelTema,
|
|
2775
|
+
Ae as orientacionDe,
|
|
2776
|
+
ha as posicionDe,
|
|
2777
|
+
rt as rolDelTono,
|
|
2778
|
+
st as usarElDialogo,
|
|
2779
|
+
Ce as usarElMenu,
|
|
2780
|
+
mt as usarElTooltip,
|
|
2781
|
+
he as usarLaBarra,
|
|
2782
|
+
xa as usarLaPosicionDeLaBarra,
|
|
2783
|
+
Yl as usarLaVersionDelTema
|
|
2713
2784
|
};
|