@dronico/droni-kit 1.12.5 → 1.12.6
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/CHANGELOG.md +7 -0
- package/dist/droni-kit.cjs.js +9 -9
- package/dist/droni-kit.css +1 -1
- package/dist/droni-kit.es.js +277 -279
- package/package.json +3 -3
package/dist/droni-kit.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as X, defineComponent as P, computed as
|
|
1
|
+
import { getCurrentInstance as X, defineComponent as P, computed as b, createBlock as V, openBlock as r, resolveDynamicComponent as B, mergeProps as C, withCtx as D, renderSlot as j, createElementBlock as t, createCommentVNode as v, toDisplayString as w, Fragment as _, renderList as T, ref as E, normalizeClass as h, createElementVNode as p, withDirectives as W, createTextVNode as $, vShow as q, reactive as Y } from "vue";
|
|
2
2
|
function Z() {
|
|
3
3
|
try {
|
|
4
|
-
const
|
|
4
|
+
const d = X(), e = d == null ? void 0 : d.appContext.app;
|
|
5
5
|
return e ? !!(e.config.globalProperties.$router || e.config.globalProperties.$route || e.component("RouterLink")) : typeof window < "u" ? !!window.VueRouter : !1;
|
|
6
6
|
} catch {
|
|
7
7
|
return !1;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
function L(
|
|
11
|
-
return
|
|
10
|
+
function L(d, e = !1) {
|
|
11
|
+
return d ? e ? "NuxtLink" : Z() ? "RouterLink" : "a" : "button";
|
|
12
12
|
}
|
|
13
|
-
function R(
|
|
14
|
-
const
|
|
15
|
-
return e === "a" ? (
|
|
13
|
+
function R(d, e, k = {}) {
|
|
14
|
+
const s = { ...k };
|
|
15
|
+
return e === "a" ? (s.href = typeof d == "string" ? d : "#", s.role = "button") : e !== "button" && e !== "span" && (s.to = d), s;
|
|
16
16
|
}
|
|
17
17
|
const ee = { key: 1 }, de = `
|
|
18
18
|
dk:transition
|
|
@@ -40,11 +40,11 @@ const ee = { key: 1 }, de = `
|
|
|
40
40
|
to: { default: void 0 },
|
|
41
41
|
nuxt: { type: Boolean, default: !1 }
|
|
42
42
|
},
|
|
43
|
-
setup(
|
|
44
|
-
const e =
|
|
45
|
-
const
|
|
46
|
-
return k.value === "button" && (
|
|
47
|
-
}),
|
|
43
|
+
setup(d) {
|
|
44
|
+
const e = d, k = b(() => L(e.to, e.nuxt)), s = b(() => {
|
|
45
|
+
const l = {};
|
|
46
|
+
return k.value === "button" && (l.type = e.type), R(e.to, k.value, l);
|
|
47
|
+
}), n = {
|
|
48
48
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
49
49
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
50
50
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -55,7 +55,7 @@ const ee = { key: 1 }, de = `
|
|
|
55
55
|
left: "dk:rounded-l",
|
|
56
56
|
right: "dk:rounded-r",
|
|
57
57
|
none: "dk:rounded-none"
|
|
58
|
-
},
|
|
58
|
+
}, g = {
|
|
59
59
|
solid: {
|
|
60
60
|
base: "dk:border-b",
|
|
61
61
|
neutral: `
|
|
@@ -227,18 +227,18 @@ const ee = { key: 1 }, de = `
|
|
|
227
227
|
dk:dark:text-amber-100
|
|
228
228
|
dk:dark:hover:bg-amber-800`
|
|
229
229
|
}
|
|
230
|
-
},
|
|
230
|
+
}, m = b(() => {
|
|
231
231
|
var z;
|
|
232
|
-
const
|
|
233
|
-
return [de,
|
|
232
|
+
const l = (((z = g[e.variant]) == null ? void 0 : z[e.color]) || "") + " " + g[e.variant].base, f = n[e.size] || "", a = e.block ? "dk:w-full" : "", c = u[e.rounded] || "";
|
|
233
|
+
return [de, l, f, a, c].join(" ");
|
|
234
234
|
});
|
|
235
|
-
return (
|
|
236
|
-
class:
|
|
235
|
+
return (l, f) => (r(), V(B(k.value), C(s.value, {
|
|
236
|
+
class: m.value,
|
|
237
237
|
title: e.title,
|
|
238
238
|
disabled: e.disabled || e.loading
|
|
239
239
|
}), {
|
|
240
240
|
default: D(() => [
|
|
241
|
-
e.loading ? (
|
|
241
|
+
e.loading ? (r(), t("span", ee, "Cargando...")) : j(l.$slots, "default", { key: 0 })
|
|
242
242
|
]),
|
|
243
243
|
_: 3
|
|
244
244
|
}, 16, ["class", "title", "disabled"]));
|
|
@@ -277,31 +277,31 @@ const ee = { key: 1 }, de = `
|
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
emits: ["update:modelValue"],
|
|
280
|
-
setup(
|
|
281
|
-
const k =
|
|
282
|
-
function l
|
|
283
|
-
const
|
|
284
|
-
|
|
280
|
+
setup(d, { emit: e }) {
|
|
281
|
+
const k = d, s = e;
|
|
282
|
+
function n(l) {
|
|
283
|
+
const f = l.target;
|
|
284
|
+
s("update:modelValue", f.value);
|
|
285
285
|
}
|
|
286
286
|
const u = {
|
|
287
287
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
288
288
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
289
289
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
290
|
-
},
|
|
290
|
+
}, g = {
|
|
291
291
|
all: "dk:rounded",
|
|
292
292
|
top: "dk:rounded-t",
|
|
293
293
|
bottom: "dk:rounded-b",
|
|
294
294
|
left: "dk:rounded-l",
|
|
295
295
|
right: "dk:rounded-r",
|
|
296
296
|
none: "dk:rounded-none"
|
|
297
|
-
},
|
|
298
|
-
const
|
|
299
|
-
return [te,
|
|
297
|
+
}, m = b(() => {
|
|
298
|
+
const l = u[k.size] || "", f = k.block ? "dk:w-full" : "", a = g[k.rounded] || "";
|
|
299
|
+
return [te, l, f, a].join(" ");
|
|
300
300
|
});
|
|
301
|
-
return (
|
|
302
|
-
class:
|
|
303
|
-
value:
|
|
304
|
-
},
|
|
301
|
+
return (l, f) => (r(), t("input", C({
|
|
302
|
+
class: m.value,
|
|
303
|
+
value: d.modelValue
|
|
304
|
+
}, l.$attrs, { onInput: n }), null, 16, re));
|
|
305
305
|
}
|
|
306
306
|
}), ke = ["value"], oe = `
|
|
307
307
|
dk:border-b
|
|
@@ -345,38 +345,38 @@ const ee = { key: 1 }, de = `
|
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
emits: ["update:modelValue"],
|
|
348
|
-
setup(
|
|
349
|
-
const k =
|
|
350
|
-
function
|
|
351
|
-
const
|
|
352
|
-
k.autoheight &&
|
|
348
|
+
setup(d, { emit: e }) {
|
|
349
|
+
const k = d, s = e;
|
|
350
|
+
function n(a) {
|
|
351
|
+
const c = a.target;
|
|
352
|
+
k.autoheight && f(c), s("update:modelValue", c.value);
|
|
353
353
|
}
|
|
354
354
|
const u = {
|
|
355
355
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
356
356
|
md: "dk:text-base dk:px-3 dk:py-2",
|
|
357
357
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
358
|
-
},
|
|
358
|
+
}, g = {
|
|
359
359
|
all: "dk:rounded",
|
|
360
360
|
top: "dk:rounded-t",
|
|
361
361
|
bottom: "dk:rounded-b",
|
|
362
362
|
left: "dk:rounded-l",
|
|
363
363
|
right: "dk:rounded-r",
|
|
364
364
|
none: "dk:rounded-none"
|
|
365
|
-
},
|
|
365
|
+
}, m = {
|
|
366
366
|
none: "dk:resize-none",
|
|
367
367
|
both: "dk:resize",
|
|
368
368
|
horizontal: "dk:resize-x",
|
|
369
369
|
vertical: "dk:resize-y"
|
|
370
|
-
},
|
|
371
|
-
const a = u[k.size] || "",
|
|
372
|
-
return [oe, a,
|
|
373
|
-
}),
|
|
370
|
+
}, l = b(() => {
|
|
371
|
+
const a = u[k.size] || "", c = k.block ? "dk:w-full" : "", z = g[k.rounded] || "", A = m[k.resize] || "";
|
|
372
|
+
return [oe, a, c, z, A].join(" ");
|
|
373
|
+
}), f = (a) => {
|
|
374
374
|
a.style.height = "auto", a.style.height = `${a.scrollHeight + 5}px`;
|
|
375
375
|
};
|
|
376
|
-
return (a,
|
|
377
|
-
class:
|
|
378
|
-
value:
|
|
379
|
-
onInput:
|
|
376
|
+
return (a, c) => (r(), t("textarea", C(a.$attrs, {
|
|
377
|
+
class: l.value,
|
|
378
|
+
value: d.modelValue,
|
|
379
|
+
onInput: n
|
|
380
380
|
}), null, 16, ke));
|
|
381
381
|
}
|
|
382
382
|
}), ae = {
|
|
@@ -435,43 +435,43 @@ const ee = { key: 1 }, de = `
|
|
|
435
435
|
}
|
|
436
436
|
},
|
|
437
437
|
emits: ["update:modelValue"],
|
|
438
|
-
setup(
|
|
439
|
-
const k =
|
|
440
|
-
function l
|
|
441
|
-
const a =
|
|
442
|
-
!isNaN(
|
|
438
|
+
setup(d, { emit: e }) {
|
|
439
|
+
const k = d, s = e;
|
|
440
|
+
function n(l) {
|
|
441
|
+
const a = l.target.value, c = Number(a);
|
|
442
|
+
!isNaN(c) && a !== "" ? s("update:modelValue", c) : s("update:modelValue", a);
|
|
443
443
|
}
|
|
444
444
|
const u = {
|
|
445
445
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
446
446
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
447
447
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
448
|
-
},
|
|
448
|
+
}, g = {
|
|
449
449
|
all: "dk:rounded",
|
|
450
450
|
top: "dk:rounded-t",
|
|
451
451
|
bottom: "dk:rounded-b",
|
|
452
452
|
left: "dk:rounded-l",
|
|
453
453
|
right: "dk:rounded-r",
|
|
454
454
|
none: "dk:rounded-none"
|
|
455
|
-
},
|
|
456
|
-
const
|
|
457
|
-
return [ne,
|
|
455
|
+
}, m = b(() => {
|
|
456
|
+
const l = u[k.size] || "", f = k.block ? "dk:w-full" : "", a = g[k.rounded] || "";
|
|
457
|
+
return [ne, l, f, a].join(" ");
|
|
458
458
|
});
|
|
459
|
-
return (
|
|
460
|
-
class:
|
|
461
|
-
onChange:
|
|
459
|
+
return (l, f) => (r(), t("select", C(l.$attrs, {
|
|
460
|
+
class: m.value,
|
|
461
|
+
onChange: n
|
|
462
462
|
}), [
|
|
463
|
-
|
|
464
|
-
(
|
|
465
|
-
key:
|
|
466
|
-
value: a[
|
|
467
|
-
selected: a[
|
|
468
|
-
}, w(a[
|
|
463
|
+
d.placeholder ? (r(), t("option", ae, w(d.placeholder), 1)) : v("", !0),
|
|
464
|
+
(r(!0), t(_, null, T(d.options, (a, c) => (r(), t("option", {
|
|
465
|
+
key: c,
|
|
466
|
+
value: a[d.itemValue] ?? "",
|
|
467
|
+
selected: a[d.itemValue] == d.modelValue
|
|
468
|
+
}, w(a[d.itemLabel] ?? ""), 9, se))), 128))
|
|
469
469
|
], 16));
|
|
470
470
|
}
|
|
471
471
|
}), le = {
|
|
472
472
|
key: 1,
|
|
473
473
|
class: "dk:text-rose-500 dk:ml-1"
|
|
474
|
-
}, ie = { class: "tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none" }, ue = "dk:space-y-1",
|
|
474
|
+
}, ie = { class: "tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none" }, ue = "dk:space-y-1", ce = /* @__PURE__ */ P({
|
|
475
475
|
__name: "DuiLabel",
|
|
476
476
|
props: {
|
|
477
477
|
title: {
|
|
@@ -499,12 +499,12 @@ const ee = { key: 1 }, de = `
|
|
|
499
499
|
default: !1
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
|
-
setup(
|
|
503
|
-
const e = E(!1), k =
|
|
502
|
+
setup(d) {
|
|
503
|
+
const e = E(!1), k = d, s = {
|
|
504
504
|
s: "dk:text-sm",
|
|
505
505
|
m: "dk:text-base",
|
|
506
506
|
l: "dk:text-lg"
|
|
507
|
-
},
|
|
507
|
+
}, n = {
|
|
508
508
|
s: "dk:mt-1",
|
|
509
509
|
m: "dk:mt-1.5",
|
|
510
510
|
l: "dk:mt-2"
|
|
@@ -512,56 +512,56 @@ const ee = { key: 1 }, de = `
|
|
|
512
512
|
s: "dk:text-xs",
|
|
513
513
|
m: "dk:text-sm",
|
|
514
514
|
l: "dk:text-base"
|
|
515
|
-
},
|
|
516
|
-
const a =
|
|
517
|
-
return [
|
|
518
|
-
}),
|
|
519
|
-
return (a,
|
|
520
|
-
class:
|
|
515
|
+
}, g = b(() => [ue].join(" ")), m = b(() => {
|
|
516
|
+
const a = s[k.size] || s.m, c = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", z = k.helpText ? "dk:cursor-help" : "";
|
|
517
|
+
return [c, a, z].join(" ");
|
|
518
|
+
}), l = b(() => [n[k.size] || n.m].join(" ")), f = b(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", u[k.size] || u.m].join(" "));
|
|
519
|
+
return (a, c) => (r(), t("label", {
|
|
520
|
+
class: h(g.value)
|
|
521
521
|
}, [
|
|
522
|
-
|
|
522
|
+
d.title ? (r(), t("div", {
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "dk:relative",
|
|
525
|
-
onMouseenter:
|
|
526
|
-
onMouseleave:
|
|
525
|
+
onMouseenter: c[0] || (c[0] = (z) => e.value = !!d.helpText),
|
|
526
|
+
onMouseleave: c[1] || (c[1] = (z) => e.value = !1)
|
|
527
527
|
}, [
|
|
528
|
-
|
|
529
|
-
class:
|
|
528
|
+
p("div", {
|
|
529
|
+
class: h(m.value)
|
|
530
530
|
}, [
|
|
531
|
-
|
|
531
|
+
d.icon ? (r(), t("i", {
|
|
532
532
|
key: 0,
|
|
533
|
-
class:
|
|
534
|
-
}, null, 2)) :
|
|
535
|
-
$(" " + w(
|
|
536
|
-
|
|
533
|
+
class: h([d.icon, "dk:mr-2"])
|
|
534
|
+
}, null, 2)) : v("", !0),
|
|
535
|
+
$(" " + w(d.title) + " ", 1),
|
|
536
|
+
d.required ? (r(), t("span", le, "*")) : v("", !0)
|
|
537
537
|
], 2),
|
|
538
|
-
W(
|
|
539
|
-
$(w(
|
|
540
|
-
|
|
538
|
+
W(p("div", ie, [
|
|
539
|
+
$(w(d.helpText) + " ", 1),
|
|
540
|
+
c[2] || (c[2] = p("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
|
|
541
541
|
], 512), [
|
|
542
|
-
[q, e.value &&
|
|
542
|
+
[q, e.value && d.helpText]
|
|
543
543
|
])
|
|
544
|
-
], 32)) :
|
|
545
|
-
|
|
546
|
-
class:
|
|
544
|
+
], 32)) : v("", !0),
|
|
545
|
+
p("div", {
|
|
546
|
+
class: h(l.value)
|
|
547
547
|
}, [
|
|
548
548
|
j(a.$slots, "default", {}, void 0, !0)
|
|
549
549
|
], 2),
|
|
550
|
-
|
|
550
|
+
d.error ? (r(), t("div", {
|
|
551
551
|
key: 1,
|
|
552
|
-
class: f
|
|
552
|
+
class: h(f.value)
|
|
553
553
|
}, [
|
|
554
|
-
|
|
555
|
-
$(" " + w(
|
|
556
|
-
], 2)) :
|
|
554
|
+
c[3] || (c[3] = p("span", { class: "dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0" }, " ! ", -1)),
|
|
555
|
+
$(" " + w(d.error), 1)
|
|
556
|
+
], 2)) : v("", !0)
|
|
557
557
|
], 2));
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
560
|
-
const k =
|
|
561
|
-
for (const [
|
|
562
|
-
k[
|
|
559
|
+
}), be = (d, e) => {
|
|
560
|
+
const k = d.__vccOpts || d;
|
|
561
|
+
for (const [s, n] of e)
|
|
562
|
+
k[s] = n;
|
|
563
563
|
return k;
|
|
564
|
-
}, qe = /* @__PURE__ */ ce
|
|
564
|
+
}, qe = /* @__PURE__ */ be(ce, [["__scopeId", "data-v-aa6b6cdc"]]), ge = `
|
|
565
565
|
dk:px-4
|
|
566
566
|
dk:py-3
|
|
567
567
|
dk:text-sm
|
|
@@ -583,15 +583,15 @@ const ee = { key: 1 }, de = `
|
|
|
583
583
|
default: "all"
|
|
584
584
|
}
|
|
585
585
|
},
|
|
586
|
-
setup(
|
|
587
|
-
const e =
|
|
586
|
+
setup(d) {
|
|
587
|
+
const e = d, k = {
|
|
588
588
|
all: "dk:rounded",
|
|
589
589
|
top: "dk:rounded-t",
|
|
590
590
|
bottom: "dk:rounded-b",
|
|
591
591
|
left: "dk:rounded-l",
|
|
592
592
|
right: "dk:rounded-r",
|
|
593
593
|
none: "dk:rounded-none"
|
|
594
|
-
},
|
|
594
|
+
}, s = {
|
|
595
595
|
solid: {
|
|
596
596
|
base: "",
|
|
597
597
|
neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
|
|
@@ -619,13 +619,13 @@ const ee = { key: 1 }, de = `
|
|
|
619
619
|
warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
|
|
620
620
|
danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
|
|
621
621
|
}
|
|
622
|
-
},
|
|
623
|
-
var
|
|
624
|
-
const u = ((
|
|
625
|
-
return [ge,
|
|
622
|
+
}, n = b(() => {
|
|
623
|
+
var l;
|
|
624
|
+
const u = ((l = s[e.variant]) == null ? void 0 : l[e.color]) || "", g = s[e.variant].base || "", m = k[e.rounded] || "";
|
|
625
|
+
return [ge, g, u, m].join(" ");
|
|
626
626
|
});
|
|
627
|
-
return (u,
|
|
628
|
-
class:
|
|
627
|
+
return (u, g) => (r(), t("div", {
|
|
628
|
+
class: h(n.value),
|
|
629
629
|
role: "alert"
|
|
630
630
|
}, [
|
|
631
631
|
j(u.$slots, "default")
|
|
@@ -643,29 +643,29 @@ const ee = { key: 1 }, de = `
|
|
|
643
643
|
required: !0
|
|
644
644
|
}
|
|
645
645
|
},
|
|
646
|
-
setup(
|
|
647
|
-
const e =
|
|
648
|
-
return (k,
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
(
|
|
653
|
-
key:
|
|
654
|
-
class:
|
|
655
|
-
}, w(
|
|
646
|
+
setup(d) {
|
|
647
|
+
const e = d;
|
|
648
|
+
return (k, s) => (r(), t("div", pe, [
|
|
649
|
+
p("table", he, [
|
|
650
|
+
p("thead", fe, [
|
|
651
|
+
p("tr", null, [
|
|
652
|
+
(r(!0), t(_, null, T(e.columns, (n) => (r(), t("th", {
|
|
653
|
+
key: n.name,
|
|
654
|
+
class: h(["dk:px-6 dk:py-3", n.classes])
|
|
655
|
+
}, w(n.label), 3))), 128))
|
|
656
656
|
])
|
|
657
657
|
]),
|
|
658
|
-
|
|
659
|
-
(
|
|
658
|
+
p("tbody", null, [
|
|
659
|
+
(r(!0), t(_, null, T(e.rows, (n, u) => (r(), t("tr", {
|
|
660
660
|
key: u,
|
|
661
661
|
class: "dk:bg-white dk:border-b dk:border-gray-200 dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:hover:bg-gray-50 dk:dark:hover:bg-gray-600 dk:transition-colors"
|
|
662
662
|
}, [
|
|
663
|
-
(
|
|
664
|
-
key:
|
|
663
|
+
(r(!0), t(_, null, T(e.columns, (g) => (r(), t("td", {
|
|
664
|
+
key: g.name,
|
|
665
665
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
666
666
|
}, [
|
|
667
|
-
j(k.$slots,
|
|
668
|
-
$(w(
|
|
667
|
+
j(k.$slots, g.name, C({ ref_for: !0 }, n), () => [
|
|
668
|
+
$(w(n[g.name]), 1)
|
|
669
669
|
])
|
|
670
670
|
]))), 128))
|
|
671
671
|
]))), 128))
|
|
@@ -697,8 +697,8 @@ const ee = { key: 1 }, de = `
|
|
|
697
697
|
to: { default: void 0 },
|
|
698
698
|
nuxt: { type: Boolean, default: !1 }
|
|
699
699
|
},
|
|
700
|
-
setup(
|
|
701
|
-
const e =
|
|
700
|
+
setup(d) {
|
|
701
|
+
const e = d, k = b(() => e.to ? L(e.to, e.nuxt) : "span"), s = b(() => R(e.to, k.value)), n = {
|
|
702
702
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
703
703
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
704
704
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -709,7 +709,7 @@ const ee = { key: 1 }, de = `
|
|
|
709
709
|
left: "dk:rounded-l",
|
|
710
710
|
right: "dk:rounded-r",
|
|
711
711
|
none: "dk:rounded-none"
|
|
712
|
-
},
|
|
712
|
+
}, g = {
|
|
713
713
|
solid: {
|
|
714
714
|
base: "dk:border-b",
|
|
715
715
|
neutral: `
|
|
@@ -881,17 +881,17 @@ const ee = { key: 1 }, de = `
|
|
|
881
881
|
dk:dark:text-amber-100
|
|
882
882
|
dk:dark:hover:bg-amber-800`
|
|
883
883
|
}
|
|
884
|
-
},
|
|
884
|
+
}, m = b(() => {
|
|
885
885
|
var z;
|
|
886
|
-
const
|
|
887
|
-
return [me,
|
|
886
|
+
const l = (((z = g[e.variant]) == null ? void 0 : z[e.color]) || "") + " " + g[e.variant].base, f = n[e.size] || "", a = e.block ? "dk:block" : "dk:inline-block", c = u[e.rounded] || "";
|
|
887
|
+
return [me, l, f, a, c].join(" ");
|
|
888
888
|
});
|
|
889
|
-
return (
|
|
890
|
-
class:
|
|
889
|
+
return (l, f) => (r(), V(B(k.value), C(s.value, {
|
|
890
|
+
class: m.value,
|
|
891
891
|
title: e.title
|
|
892
892
|
}), {
|
|
893
893
|
default: D(() => [
|
|
894
|
-
e.loading ? (
|
|
894
|
+
e.loading ? (r(), t("span", ve, "Cargando...")) : j(l.$slots, "default", { key: 0 })
|
|
895
895
|
]),
|
|
896
896
|
_: 3
|
|
897
897
|
}, 16, ["class", "title"]));
|
|
@@ -909,10 +909,10 @@ const ee = { key: 1 }, de = `
|
|
|
909
909
|
to: { default: void 0 },
|
|
910
910
|
nuxt: { type: Boolean, default: !1 }
|
|
911
911
|
},
|
|
912
|
-
setup(
|
|
913
|
-
const e =
|
|
914
|
-
const
|
|
915
|
-
return R(e.to,
|
|
912
|
+
setup(d) {
|
|
913
|
+
const e = d, k = () => e.to ? L(e.to, e.nuxt) : "div", s = () => e.to ? L(e.to, e.nuxt) : "h3", n = () => {
|
|
914
|
+
const x = k();
|
|
915
|
+
return R(e.to, x);
|
|
916
916
|
}, u = {
|
|
917
917
|
s: {
|
|
918
918
|
padding: "dk:p-3",
|
|
@@ -935,7 +935,7 @@ const ee = { key: 1 }, de = `
|
|
|
935
935
|
subtitleSize: "dk:text-lg",
|
|
936
936
|
contentSize: "dk:text-lg"
|
|
937
937
|
}
|
|
938
|
-
},
|
|
938
|
+
}, g = b(() => [
|
|
939
939
|
// Glassmorphism card styles (Windows Vista inspired)
|
|
940
940
|
"dk:relative dk:bg-gradient-to-br dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
|
|
941
941
|
"dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60",
|
|
@@ -951,20 +951,20 @@ const ee = { key: 1 }, de = `
|
|
|
951
951
|
"dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5",
|
|
952
952
|
"dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
|
|
953
953
|
"dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent"
|
|
954
|
-
].join(" ")),
|
|
954
|
+
].join(" ")), m = b(() => [
|
|
955
955
|
"dk:w-full dk:h-48 dk:object-cover",
|
|
956
956
|
"dk:relative dk:z-10"
|
|
957
|
-
].join(" ")),
|
|
958
|
-
const
|
|
957
|
+
].join(" ")), l = b(() => {
|
|
958
|
+
const x = u[e.size];
|
|
959
959
|
return [
|
|
960
|
-
|
|
961
|
-
|
|
960
|
+
x.padding,
|
|
961
|
+
x.spacing,
|
|
962
962
|
// Glass effect for content wrapper
|
|
963
963
|
"dk:relative dk:z-10"
|
|
964
964
|
].join(" ");
|
|
965
|
-
}),
|
|
965
|
+
}), f = b(() => [
|
|
966
966
|
u[e.size].spacing
|
|
967
|
-
].join(" ")), a =
|
|
967
|
+
].join(" ")), a = b(() => {
|
|
968
968
|
const M = [
|
|
969
969
|
u[e.size].titleSize,
|
|
970
970
|
"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
|
|
@@ -974,71 +974,71 @@ const ee = { key: 1 }, de = `
|
|
|
974
974
|
"dk:no-underline dk:hover:underline dk:transition-colors",
|
|
975
975
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
976
976
|
), M.join(" ");
|
|
977
|
-
}),
|
|
978
|
-
const
|
|
977
|
+
}), c = b(() => {
|
|
978
|
+
const x = [
|
|
979
979
|
"dk:block",
|
|
980
980
|
"dk:transition-transform dk:duration-300",
|
|
981
981
|
"dk:hover:scale-105",
|
|
982
982
|
"dk:relative dk:z-10"
|
|
983
983
|
];
|
|
984
|
-
return e.to &&
|
|
985
|
-
}), z =
|
|
984
|
+
return e.to && x.push("dk:no-underline"), x.join(" ");
|
|
985
|
+
}), z = b(() => [
|
|
986
986
|
u[e.size].subtitleSize,
|
|
987
987
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
988
988
|
"dk:line-clamp-3"
|
|
989
|
-
].join(" ")), A =
|
|
989
|
+
].join(" ")), A = b(() => [
|
|
990
990
|
u[e.size].contentSize,
|
|
991
991
|
"dk:text-gray-700 dk:dark:text-gray-300"
|
|
992
|
-
].join(" ")), I =
|
|
992
|
+
].join(" ")), I = b(() => [
|
|
993
993
|
"dk:border-t dk:border-gray-300/40 dk:dark:border-white/10",
|
|
994
994
|
"dk:pt-3 dk:mt-3",
|
|
995
995
|
"dk:relative dk:z-10"
|
|
996
996
|
].join(" "));
|
|
997
|
-
return (
|
|
998
|
-
class:
|
|
997
|
+
return (x, M) => (r(), t("div", {
|
|
998
|
+
class: h(g.value)
|
|
999
999
|
}, [
|
|
1000
|
-
|
|
1001
|
-
(
|
|
1000
|
+
d.image ? (r(), t("div", xe, [
|
|
1001
|
+
(r(), V(B(k()), C(n(), { class: c.value }), {
|
|
1002
1002
|
default: D(() => [
|
|
1003
|
-
|
|
1004
|
-
src:
|
|
1005
|
-
alt:
|
|
1006
|
-
class:
|
|
1003
|
+
p("img", {
|
|
1004
|
+
src: d.image,
|
|
1005
|
+
alt: d.title || "Card image",
|
|
1006
|
+
class: h(m.value)
|
|
1007
1007
|
}, null, 10, ye)
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 1
|
|
1010
1010
|
}, 16, ["class"]))
|
|
1011
|
-
])) :
|
|
1012
|
-
|
|
1013
|
-
class:
|
|
1011
|
+
])) : v("", !0),
|
|
1012
|
+
p("div", {
|
|
1013
|
+
class: h(l.value)
|
|
1014
1014
|
}, [
|
|
1015
|
-
|
|
1015
|
+
d.title || d.subtitle ? (r(), t("div", {
|
|
1016
1016
|
key: 0,
|
|
1017
|
-
class: f
|
|
1017
|
+
class: h(f.value)
|
|
1018
1018
|
}, [
|
|
1019
|
-
|
|
1019
|
+
d.title ? (r(), V(B(s()), C({ key: 0 }, n(), { class: a.value }), {
|
|
1020
1020
|
default: D(() => [
|
|
1021
|
-
$(w(
|
|
1021
|
+
$(w(d.title), 1)
|
|
1022
1022
|
]),
|
|
1023
1023
|
_: 1
|
|
1024
|
-
}, 16, ["class"])) :
|
|
1025
|
-
|
|
1024
|
+
}, 16, ["class"])) : v("", !0),
|
|
1025
|
+
d.subtitle ? (r(), t("p", {
|
|
1026
1026
|
key: 1,
|
|
1027
|
-
class:
|
|
1028
|
-
}, w(
|
|
1029
|
-
], 2)) :
|
|
1030
|
-
|
|
1027
|
+
class: h(z.value)
|
|
1028
|
+
}, w(d.subtitle), 3)) : v("", !0)
|
|
1029
|
+
], 2)) : v("", !0),
|
|
1030
|
+
x.$slots.default ? (r(), t("div", {
|
|
1031
1031
|
key: 1,
|
|
1032
|
-
class:
|
|
1032
|
+
class: h(A.value)
|
|
1033
1033
|
}, [
|
|
1034
|
-
j(
|
|
1035
|
-
], 2)) :
|
|
1036
|
-
|
|
1034
|
+
j(x.$slots, "default")
|
|
1035
|
+
], 2)) : v("", !0),
|
|
1036
|
+
x.$slots.footer ? (r(), t("div", {
|
|
1037
1037
|
key: 2,
|
|
1038
|
-
class:
|
|
1038
|
+
class: h(I.value)
|
|
1039
1039
|
}, [
|
|
1040
|
-
j(
|
|
1041
|
-
], 2)) :
|
|
1040
|
+
j(x.$slots, "footer")
|
|
1041
|
+
], 2)) : v("", !0)
|
|
1042
1042
|
], 2)
|
|
1043
1043
|
], 2));
|
|
1044
1044
|
}
|
|
@@ -1067,21 +1067,21 @@ const ee = { key: 1 }, de = `
|
|
|
1067
1067
|
itemsAlignment: { default: "left" },
|
|
1068
1068
|
underlineColor: { default: "primary" }
|
|
1069
1069
|
},
|
|
1070
|
-
setup(
|
|
1071
|
-
const e =
|
|
1072
|
-
const S =
|
|
1073
|
-
return R(
|
|
1074
|
-
},
|
|
1070
|
+
setup(d) {
|
|
1071
|
+
const e = d, k = E(!1), s = Y({}), n = (i) => L(i.to, e.nuxt), u = (i) => {
|
|
1072
|
+
const S = n(i);
|
|
1073
|
+
return R(i.to, S);
|
|
1074
|
+
}, g = () => {
|
|
1075
1075
|
k.value = !k.value;
|
|
1076
|
-
},
|
|
1077
|
-
k.value = !1, Object.keys(
|
|
1078
|
-
|
|
1076
|
+
}, m = () => {
|
|
1077
|
+
k.value = !1, Object.keys(s).forEach((i) => {
|
|
1078
|
+
s[i] = !1;
|
|
1079
1079
|
});
|
|
1080
|
-
},
|
|
1081
|
-
|
|
1082
|
-
},
|
|
1083
|
-
if (!
|
|
1084
|
-
const S = typeof
|
|
1080
|
+
}, l = (i) => {
|
|
1081
|
+
s[i] = !s[i];
|
|
1082
|
+
}, f = (i) => {
|
|
1083
|
+
if (!i.to) return !1;
|
|
1084
|
+
const S = typeof i.to == "string" ? i.to : i.to.path || "";
|
|
1085
1085
|
try {
|
|
1086
1086
|
if (typeof window < "u") {
|
|
1087
1087
|
const o = window.location.pathname;
|
|
@@ -1109,8 +1109,8 @@ const ee = { key: 1 }, de = `
|
|
|
1109
1109
|
text: "dk:text-lg",
|
|
1110
1110
|
itemPadding: "dk:px-4 dk:py-3"
|
|
1111
1111
|
}
|
|
1112
|
-
},
|
|
1113
|
-
const
|
|
1112
|
+
}, c = b(() => {
|
|
1113
|
+
const i = a[e.size];
|
|
1114
1114
|
return [
|
|
1115
1115
|
// Glassmorphism navbar styles (Windows Vista inspired)
|
|
1116
1116
|
"dk:relative dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
|
|
@@ -1123,11 +1123,11 @@ const ee = { key: 1 }, de = `
|
|
|
1123
1123
|
"dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
|
|
1124
1124
|
"dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent",
|
|
1125
1125
|
"dk:flex dk:items-center dk:w-full dk:gap-4",
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1126
|
+
i.height,
|
|
1127
|
+
i.padding,
|
|
1128
|
+
i.text
|
|
1129
1129
|
].join(" ");
|
|
1130
|
-
}), z =
|
|
1130
|
+
}), z = b(() => [
|
|
1131
1131
|
"dk:flex dk:items-center dk:space-x-1 dk:flex-1",
|
|
1132
1132
|
{
|
|
1133
1133
|
left: "dk:justify-start",
|
|
@@ -1135,7 +1135,7 @@ const ee = { key: 1 }, de = `
|
|
|
1135
1135
|
right: "dk:justify-end"
|
|
1136
1136
|
}[e.itemsAlignment]
|
|
1137
1137
|
].join(" ")), A = () => {
|
|
1138
|
-
const
|
|
1138
|
+
const i = {
|
|
1139
1139
|
neutral: "dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",
|
|
1140
1140
|
primary: "dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",
|
|
1141
1141
|
secondary: "dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",
|
|
@@ -1143,13 +1143,13 @@ const ee = { key: 1 }, de = `
|
|
|
1143
1143
|
danger: "dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",
|
|
1144
1144
|
warning: "dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"
|
|
1145
1145
|
};
|
|
1146
|
-
return
|
|
1147
|
-
}, I =
|
|
1148
|
-
const
|
|
1146
|
+
return i[e.underlineColor] || i.primary;
|
|
1147
|
+
}, I = b(() => {
|
|
1148
|
+
const i = a[e.size], S = A();
|
|
1149
1149
|
return (o, y = !0) => {
|
|
1150
|
-
const F =
|
|
1150
|
+
const F = f(o), H = y ? "dk:pl-3" : "dk:pl-2", U = "dk:pr-3", G = y ? "dk:pl-2" : "dk:pl-1", J = "dk:pr-2", K = y ? "dk:pl-4" : "dk:pl-3", Q = "dk:pr-4";
|
|
1151
1151
|
let N = "";
|
|
1152
|
-
return
|
|
1152
|
+
return i.itemPadding.includes("px-2") ? N = `${G} ${J} dk:py-1.5` : i.itemPadding.includes("px-4") ? N = `${K} ${Q} dk:py-3` : N = `${H} ${U} dk:py-2`, [
|
|
1153
1153
|
// Block style with animated underline
|
|
1154
1154
|
"dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300",
|
|
1155
1155
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
@@ -1164,56 +1164,56 @@ const ee = { key: 1 }, de = `
|
|
|
1164
1164
|
N
|
|
1165
1165
|
].join(" ");
|
|
1166
1166
|
};
|
|
1167
|
-
}),
|
|
1167
|
+
}), x = b(() => [
|
|
1168
1168
|
"dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm",
|
|
1169
1169
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-white/50 dk:dark:hover:bg-white/10",
|
|
1170
1170
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
1171
1171
|
"dk:transition-all dk:duration-200 dk:no-underline",
|
|
1172
1172
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"
|
|
1173
|
-
].join(" ")), M =
|
|
1173
|
+
].join(" ")), M = b(() => [
|
|
1174
1174
|
"dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
1175
1175
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg",
|
|
1176
1176
|
"dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15",
|
|
1177
1177
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
1178
1178
|
"dk:border dk:border-white/20 dk:dark:border-white/10 dk:hover:border-white/40 dk:dark:hover:border-white/20",
|
|
1179
1179
|
"dk:transition-all dk:duration-200 dk:no-underline"
|
|
1180
|
-
].join(" ")), O =
|
|
1180
|
+
].join(" ")), O = b(() => [
|
|
1181
1181
|
"dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
|
|
1182
1182
|
"dk:text-gray-600 dk:hover:text-gray-800 dk:hover:bg-white/30 dk:dark:hover:bg-white/10",
|
|
1183
1183
|
"dk:dark:text-gray-400 dk:dark:hover:text-gray-200",
|
|
1184
1184
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500",
|
|
1185
1185
|
"dk:transition-all dk:duration-200 dk:no-underline"
|
|
1186
1186
|
].join(" "));
|
|
1187
|
-
return (
|
|
1188
|
-
class:
|
|
1187
|
+
return (i, S) => (r(), t("nav", {
|
|
1188
|
+
class: h(c.value)
|
|
1189
1189
|
}, [
|
|
1190
|
-
|
|
1191
|
-
j(
|
|
1192
|
-
])) :
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
class:
|
|
1190
|
+
i.$slots.brand ? (r(), t("div", ze, [
|
|
1191
|
+
j(i.$slots, "brand")
|
|
1192
|
+
])) : v("", !0),
|
|
1193
|
+
p("div", we, [
|
|
1194
|
+
p("div", {
|
|
1195
|
+
class: h(z.value)
|
|
1196
1196
|
}, [
|
|
1197
|
-
(
|
|
1197
|
+
(r(!0), t(_, null, T(d.items, (o) => (r(), t(_, {
|
|
1198
1198
|
key: o.label
|
|
1199
1199
|
}, [
|
|
1200
|
-
o.children && o.children.length > 0 ? (
|
|
1201
|
-
(
|
|
1200
|
+
o.children && o.children.length > 0 ? (r(), t("div", Ce, [
|
|
1201
|
+
(r(), V(B(n(o)), C({ ref_for: !0 }, u(o), {
|
|
1202
1202
|
class: I.value(o, !0)
|
|
1203
1203
|
}), {
|
|
1204
1204
|
default: D(() => [
|
|
1205
|
-
o.icon ? (
|
|
1205
|
+
o.icon ? (r(), t("i", {
|
|
1206
1206
|
key: 0,
|
|
1207
|
-
class:
|
|
1208
|
-
}, null, 2)) :
|
|
1207
|
+
class: h([o.icon, "dk:mr-2"])
|
|
1208
|
+
}, null, 2)) : v("", !0),
|
|
1209
1209
|
$(" " + w(o.label) + " ", 1),
|
|
1210
|
-
S[0] || (S[0] =
|
|
1210
|
+
S[0] || (S[0] = p("svg", {
|
|
1211
1211
|
class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
|
|
1212
1212
|
fill: "none",
|
|
1213
1213
|
stroke: "currentColor",
|
|
1214
1214
|
viewBox: "0 0 24 24"
|
|
1215
1215
|
}, [
|
|
1216
|
-
|
|
1216
|
+
p("path", {
|
|
1217
1217
|
"stroke-linecap": "round",
|
|
1218
1218
|
"stroke-linejoin": "round",
|
|
1219
1219
|
"stroke-width": "2",
|
|
@@ -1223,32 +1223,31 @@ const ee = { key: 1 }, de = `
|
|
|
1223
1223
|
]),
|
|
1224
1224
|
_: 2
|
|
1225
1225
|
}, 1040, ["class"])),
|
|
1226
|
-
|
|
1227
|
-
(
|
|
1228
|
-
key: y.label
|
|
1229
|
-
|
|
1230
|
-
}, u(y), { class: g.value }), {
|
|
1226
|
+
p("div", Se, [
|
|
1227
|
+
(r(!0), t(_, null, T(o.children, (y) => (r(), V(B(n(y)), C({
|
|
1228
|
+
key: y.label
|
|
1229
|
+
}, { ref_for: !0 }, u(y), { class: x.value }), {
|
|
1231
1230
|
default: D(() => [
|
|
1232
|
-
y.icon ? (
|
|
1231
|
+
y.icon ? (r(), t("i", {
|
|
1233
1232
|
key: 0,
|
|
1234
|
-
class:
|
|
1235
|
-
}, null, 2)) :
|
|
1233
|
+
class: h([y.icon, "dk:mr-2"])
|
|
1234
|
+
}, null, 2)) : v("", !0),
|
|
1236
1235
|
$(" " + w(y.label), 1)
|
|
1237
1236
|
]),
|
|
1238
1237
|
_: 2
|
|
1239
1238
|
}, 1040, ["class"]))), 128))
|
|
1240
1239
|
])
|
|
1241
|
-
])) : (
|
|
1240
|
+
])) : (r(), V(B(n(o)), C({
|
|
1242
1241
|
key: 1,
|
|
1243
1242
|
ref_for: !0
|
|
1244
1243
|
}, u(o), {
|
|
1245
1244
|
class: I.value(o, !1)
|
|
1246
1245
|
}), {
|
|
1247
1246
|
default: D(() => [
|
|
1248
|
-
o.icon ? (
|
|
1247
|
+
o.icon ? (r(), t("i", {
|
|
1249
1248
|
key: 0,
|
|
1250
|
-
class:
|
|
1251
|
-
}, null, 2)) :
|
|
1249
|
+
class: h([o.icon, "dk:mr-2"])
|
|
1250
|
+
}, null, 2)) : v("", !0),
|
|
1252
1251
|
$(" " + w(o.label), 1)
|
|
1253
1252
|
]),
|
|
1254
1253
|
_: 2
|
|
@@ -1256,16 +1255,16 @@ const ee = { key: 1 }, de = `
|
|
|
1256
1255
|
], 64))), 128))
|
|
1257
1256
|
], 2)
|
|
1258
1257
|
]),
|
|
1259
|
-
|
|
1260
|
-
j(
|
|
1261
|
-
])) :
|
|
1262
|
-
|
|
1258
|
+
i.$slots.actions ? (r(), t("div", $e, [
|
|
1259
|
+
j(i.$slots, "actions")
|
|
1260
|
+
])) : v("", !0),
|
|
1261
|
+
p("button", {
|
|
1263
1262
|
type: "button",
|
|
1264
|
-
onClick:
|
|
1263
|
+
onClick: g,
|
|
1265
1264
|
class: "dk:md:hidden dk:ml-auto dk:flex-shrink-0 dk:p-2 dk:rounded-md dk:hover:bg-gray-100 dk:dark:hover:bg-gray-700 dk:transition-colors"
|
|
1266
1265
|
}, [
|
|
1267
|
-
(
|
|
1268
|
-
|
|
1266
|
+
(r(), t("svg", _e, [
|
|
1267
|
+
p("path", {
|
|
1269
1268
|
"stroke-linecap": "round",
|
|
1270
1269
|
"stroke-linejoin": "round",
|
|
1271
1270
|
"stroke-width": "2",
|
|
@@ -1273,78 +1272,77 @@ const ee = { key: 1 }, de = `
|
|
|
1273
1272
|
}, null, 8, je)
|
|
1274
1273
|
]))
|
|
1275
1274
|
]),
|
|
1276
|
-
W(
|
|
1277
|
-
|
|
1278
|
-
(
|
|
1275
|
+
W(p("div", Pe, [
|
|
1276
|
+
p("div", Ve, [
|
|
1277
|
+
(r(!0), t(_, null, T(d.items, (o) => (r(), t(_, {
|
|
1279
1278
|
key: o.label
|
|
1280
1279
|
}, [
|
|
1281
|
-
o.children && o.children.length > 0 ? (
|
|
1282
|
-
|
|
1280
|
+
o.children && o.children.length > 0 ? (r(), t("div", Be, [
|
|
1281
|
+
p("button", {
|
|
1283
1282
|
type: "button",
|
|
1284
|
-
onClick: (y) =>
|
|
1285
|
-
class:
|
|
1283
|
+
onClick: (y) => l(o.label),
|
|
1284
|
+
class: h([M.value, "dk:justify-between"])
|
|
1286
1285
|
}, [
|
|
1287
|
-
|
|
1288
|
-
o.icon ? (
|
|
1286
|
+
p("div", Te, [
|
|
1287
|
+
o.icon ? (r(), t("i", {
|
|
1289
1288
|
key: 0,
|
|
1290
|
-
class:
|
|
1291
|
-
}, null, 2)) :
|
|
1289
|
+
class: h([o.icon, "dk:mr-2"])
|
|
1290
|
+
}, null, 2)) : v("", !0),
|
|
1292
1291
|
$(" " + w(o.label), 1)
|
|
1293
1292
|
]),
|
|
1294
|
-
(
|
|
1295
|
-
class:
|
|
1293
|
+
(r(), t("svg", {
|
|
1294
|
+
class: h(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", s[o.label] ? "dk:rotate-180" : ""]),
|
|
1296
1295
|
fill: "none",
|
|
1297
1296
|
stroke: "currentColor",
|
|
1298
1297
|
viewBox: "0 0 24 24"
|
|
1299
|
-
}, S[1] || (S[1] = [
|
|
1300
|
-
|
|
1298
|
+
}, [...S[1] || (S[1] = [
|
|
1299
|
+
p("path", {
|
|
1301
1300
|
"stroke-linecap": "round",
|
|
1302
1301
|
"stroke-linejoin": "round",
|
|
1303
1302
|
"stroke-width": "2",
|
|
1304
1303
|
d: "M19 9l-7 7-7-7"
|
|
1305
1304
|
}, null, -1)
|
|
1306
|
-
]), 2))
|
|
1305
|
+
])], 2))
|
|
1307
1306
|
], 10, De),
|
|
1308
|
-
W(
|
|
1309
|
-
(
|
|
1310
|
-
key: y.label
|
|
1311
|
-
|
|
1312
|
-
}, u(y), {
|
|
1307
|
+
W(p("div", Me, [
|
|
1308
|
+
(r(!0), t(_, null, T(o.children, (y) => (r(), V(B(n(y)), C({
|
|
1309
|
+
key: y.label
|
|
1310
|
+
}, { ref_for: !0 }, u(y), {
|
|
1313
1311
|
class: O.value,
|
|
1314
|
-
onClick:
|
|
1312
|
+
onClick: m
|
|
1315
1313
|
}), {
|
|
1316
1314
|
default: D(() => [
|
|
1317
|
-
y.icon ? (
|
|
1315
|
+
y.icon ? (r(), t("i", {
|
|
1318
1316
|
key: 0,
|
|
1319
|
-
class:
|
|
1320
|
-
}, null, 2)) :
|
|
1317
|
+
class: h([y.icon, "dk:mr-2"])
|
|
1318
|
+
}, null, 2)) : v("", !0),
|
|
1321
1319
|
$(" " + w(y.label), 1)
|
|
1322
1320
|
]),
|
|
1323
1321
|
_: 2
|
|
1324
1322
|
}, 1040, ["class"]))), 128))
|
|
1325
1323
|
], 512), [
|
|
1326
|
-
[q,
|
|
1324
|
+
[q, s[o.label]]
|
|
1327
1325
|
])
|
|
1328
|
-
])) : (
|
|
1326
|
+
])) : (r(), V(B(n(o)), C({
|
|
1329
1327
|
key: 1,
|
|
1330
1328
|
ref_for: !0
|
|
1331
1329
|
}, u(o), {
|
|
1332
1330
|
class: M.value,
|
|
1333
|
-
onClick:
|
|
1331
|
+
onClick: m
|
|
1334
1332
|
}), {
|
|
1335
1333
|
default: D(() => [
|
|
1336
|
-
o.icon ? (
|
|
1334
|
+
o.icon ? (r(), t("i", {
|
|
1337
1335
|
key: 0,
|
|
1338
|
-
class:
|
|
1339
|
-
}, null, 2)) :
|
|
1336
|
+
class: h([o.icon, "dk:mr-2"])
|
|
1337
|
+
}, null, 2)) : v("", !0),
|
|
1340
1338
|
$(" " + w(o.label), 1)
|
|
1341
1339
|
]),
|
|
1342
1340
|
_: 2
|
|
1343
1341
|
}, 1040, ["class"]))
|
|
1344
1342
|
], 64))), 128)),
|
|
1345
|
-
|
|
1346
|
-
j(
|
|
1347
|
-
])) :
|
|
1343
|
+
i.$slots.actions ? (r(), t("div", Ae, [
|
|
1344
|
+
j(i.$slots, "actions")
|
|
1345
|
+
])) : v("", !0)
|
|
1348
1346
|
])
|
|
1349
1347
|
], 512), [
|
|
1350
1348
|
[q, k.value]
|