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