@dronico/droni-kit 1.21.0 → 1.21.1
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/droni-kit.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Le, defineComponent as P, computed as o, openBlock as t, createBlock as O, resolveDynamicComponent as Q, mergeProps as E, withCtx as W, renderSlot as T, createElementBlock as a, ref as
|
|
1
|
+
import { getCurrentInstance as Le, defineComponent as P, computed as o, openBlock as t, createBlock as O, resolveDynamicComponent as Q, mergeProps as E, withCtx as W, renderSlot as T, createElementBlock as a, ref as q, watch as ae, normalizeClass as n, createElementVNode as c, toDisplayString as j, createCommentVNode as S, Fragment as I, renderList as F, createTextVNode as A, withDirectives as pe, vShow as ge, useSlots as we, unref as R, createVNode as de, onMounted as me, onBeforeUnmount as fe, Teleport as he, Transition as xe, normalizeStyle as ce, withModifiers as te, nextTick as le, withKeys as ye, reactive as ze, readonly as Ae, TransitionGroup as Ie } from "vue";
|
|
2
2
|
function We() {
|
|
3
3
|
try {
|
|
4
4
|
const d = Le(), r = d == null ? void 0 : d.appContext.app;
|
|
@@ -11,8 +11,8 @@ function oe(d) {
|
|
|
11
11
|
return d ? We() ? "RouterLink" : "a" : "button";
|
|
12
12
|
}
|
|
13
13
|
function ue(d, r, e = {}) {
|
|
14
|
-
const
|
|
15
|
-
return r === "a" ? (
|
|
14
|
+
const u = { ...e };
|
|
15
|
+
return r === "a" ? (u.href = typeof d == "string" ? d : "#", u.role = "button") : r !== "button" && r !== "span" && (u.to = d), u;
|
|
16
16
|
}
|
|
17
17
|
const Ee = { key: 1 }, Oe = `
|
|
18
18
|
dk:transition
|
|
@@ -40,7 +40,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
40
40
|
to: { default: void 0 }
|
|
41
41
|
},
|
|
42
42
|
setup(d) {
|
|
43
|
-
const r = d, e = o(() => oe(r.to)),
|
|
43
|
+
const r = d, e = o(() => oe(r.to)), u = o(() => {
|
|
44
44
|
const s = {};
|
|
45
45
|
return e.value === "button" && (s.type = r.type), ue(r.to, e.value, s);
|
|
46
46
|
}), m = {
|
|
@@ -231,7 +231,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
231
231
|
const s = (((C = z[r.variant]) == null ? void 0 : C[r.color]) || "") + " " + z[r.variant].base, g = m[r.size] || "", h = r.block ? "dk:w-full" : "", x = i[r.rounded] || "";
|
|
232
232
|
return [Oe, s, g, h, x].join(" ");
|
|
233
233
|
});
|
|
234
|
-
return (s, g) => (t(), O(Q(e.value), E(
|
|
234
|
+
return (s, g) => (t(), O(Q(e.value), E(u.value, {
|
|
235
235
|
class: y.value,
|
|
236
236
|
title: r.title,
|
|
237
237
|
disabled: r.disabled || r.loading
|
|
@@ -275,9 +275,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
275
275
|
default: !0
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
emits: ["update:modelValue", "open-browser", "upload-file"],
|
|
278
|
+
emits: ["update:modelValue", "open-browser", "upload-file", "open-file"],
|
|
279
279
|
setup(d, { emit: r }) {
|
|
280
|
-
const e = d,
|
|
280
|
+
const e = d, u = r, m = q(null), i = q(""), z = {
|
|
281
281
|
sm: "dk:gap-1 dk:px-2 dk:py-1",
|
|
282
282
|
md: "dk:gap-2 dk:px-3 dk:py-2",
|
|
283
283
|
lg: "dk:gap-3 dk:px-4 dk:py-3"
|
|
@@ -289,13 +289,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
289
289
|
right: "dk:rounded-r-xl",
|
|
290
290
|
none: "dk:rounded-none"
|
|
291
291
|
}, s = o(() => e.block ? "dk:w-full" : "dk:inline-flex dk:max-w-full"), g = o(() => {
|
|
292
|
-
const l = z[e.size] || z.md,
|
|
292
|
+
const l = z[e.size] || z.md, p = y[e.rounded] || y.all;
|
|
293
293
|
return [
|
|
294
294
|
"dk:flex dk:w-full dk:flex-col dk:items-stretch dk:justify-between dk:border-b dk:border-zinc-300 dk:bg-zinc-50 dk:text-zinc-800 dk:shadow-sm dk:transition-colors",
|
|
295
295
|
"dk:dark:border-zinc-600 dk:dark:bg-zinc-800 dk:dark:text-zinc-100",
|
|
296
296
|
"dk:sm:flex-row dk:sm:items-center",
|
|
297
297
|
l,
|
|
298
|
-
|
|
298
|
+
p
|
|
299
299
|
].join(" ");
|
|
300
300
|
}), h = o(() => "dk:min-w-0 dk:flex-1"), x = o(() => [
|
|
301
301
|
"dk:flex dk:flex-col dk:gap-2 dk:w-full",
|
|
@@ -311,16 +311,11 @@ const Ee = { key: 1 }, Oe = `
|
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
313
|
function v(l) {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
return decodeURIComponent($[$.length - 1] || l);
|
|
317
|
-
} catch {
|
|
318
|
-
const u = l.split("?")[0].split("#")[0].split("/").filter(Boolean);
|
|
319
|
-
return decodeURIComponent(u[u.length - 1] || l);
|
|
320
|
-
}
|
|
314
|
+
const p = l.split("/");
|
|
315
|
+
return p[p.length - 1];
|
|
321
316
|
}
|
|
322
|
-
function
|
|
323
|
-
|
|
317
|
+
function b() {
|
|
318
|
+
u("open-browser");
|
|
324
319
|
}
|
|
325
320
|
function k() {
|
|
326
321
|
var l;
|
|
@@ -328,13 +323,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
328
323
|
}
|
|
329
324
|
function f(l) {
|
|
330
325
|
var M;
|
|
331
|
-
const
|
|
332
|
-
$ && (i.value = $.name,
|
|
326
|
+
const p = l.target, $ = (M = p.files) == null ? void 0 : M[0];
|
|
327
|
+
$ && (i.value = $.name, u("upload-file", $), w(p));
|
|
333
328
|
}
|
|
334
329
|
function w(l) {
|
|
335
330
|
l.value = "";
|
|
336
331
|
}
|
|
337
|
-
return (l,
|
|
332
|
+
return (l, p) => (t(), a("div", {
|
|
338
333
|
class: n(s.value)
|
|
339
334
|
}, [
|
|
340
335
|
c("div", {
|
|
@@ -364,9 +359,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
364
359
|
size: "sm",
|
|
365
360
|
block: !1,
|
|
366
361
|
title: "Abrir navegador de archivos",
|
|
367
|
-
onClick:
|
|
362
|
+
onClick: b
|
|
368
363
|
}, {
|
|
369
|
-
default: W(() => [...
|
|
364
|
+
default: W(() => [...p[0] || (p[0] = [
|
|
370
365
|
c("i", {
|
|
371
366
|
class: "mdi mdi-folder-search-outline",
|
|
372
367
|
"aria-hidden": "true"
|
|
@@ -383,7 +378,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
383
378
|
title: "Subir nuevo archivo",
|
|
384
379
|
onClick: k
|
|
385
380
|
}, {
|
|
386
|
-
default: W(() => [...
|
|
381
|
+
default: W(() => [...p[1] || (p[1] = [
|
|
387
382
|
c("i", {
|
|
388
383
|
class: "mdi mdi-upload",
|
|
389
384
|
"aria-hidden": "true"
|
|
@@ -403,7 +398,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
403
398
|
}, null, 40, Fe)
|
|
404
399
|
], 2));
|
|
405
400
|
}
|
|
406
|
-
}),
|
|
401
|
+
}), Ke = ["value"], qe = `
|
|
407
402
|
dk:border-b
|
|
408
403
|
dk:border-zinc-300
|
|
409
404
|
dk:bg-zinc-50
|
|
@@ -438,10 +433,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
438
433
|
},
|
|
439
434
|
emits: ["update:modelValue"],
|
|
440
435
|
setup(d, { emit: r }) {
|
|
441
|
-
const e = d,
|
|
436
|
+
const e = d, u = r;
|
|
442
437
|
function m(s) {
|
|
443
438
|
const g = s.target;
|
|
444
|
-
|
|
439
|
+
u("update:modelValue", g.value);
|
|
445
440
|
}
|
|
446
441
|
const i = {
|
|
447
442
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
@@ -456,14 +451,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
456
451
|
none: "dk:rounded-none"
|
|
457
452
|
}, y = o(() => {
|
|
458
453
|
const s = i[e.size] || "", g = e.block ? "dk:w-full" : "", h = z[e.rounded] || "";
|
|
459
|
-
return [
|
|
454
|
+
return [qe, s, g, h].join(" ");
|
|
460
455
|
});
|
|
461
456
|
return (s, g) => (t(), a("input", E({
|
|
462
457
|
class: y.value,
|
|
463
458
|
value: d.modelValue
|
|
464
|
-
}, s.$attrs, { onInput: m }), null, 16,
|
|
459
|
+
}, s.$attrs, { onInput: m }), null, 16, Ke));
|
|
465
460
|
}
|
|
466
|
-
}),
|
|
461
|
+
}), He = ["value"], Ue = `
|
|
467
462
|
dk:border-b
|
|
468
463
|
dk:border-zinc-300
|
|
469
464
|
dk:bg-zinc-50
|
|
@@ -506,10 +501,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
506
501
|
},
|
|
507
502
|
emits: ["update:modelValue"],
|
|
508
503
|
setup(d, { emit: r }) {
|
|
509
|
-
const e = d,
|
|
504
|
+
const e = d, u = r;
|
|
510
505
|
function m(h) {
|
|
511
506
|
const x = h.target;
|
|
512
|
-
e.autoheight && g(x),
|
|
507
|
+
e.autoheight && g(x), u("update:modelValue", x.value);
|
|
513
508
|
}
|
|
514
509
|
const i = {
|
|
515
510
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
@@ -529,7 +524,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
529
524
|
vertical: "dk:resize-y"
|
|
530
525
|
}, s = o(() => {
|
|
531
526
|
const h = i[e.size] || "", x = e.block ? "dk:w-full" : "", C = z[e.rounded] || "", D = y[e.resize] || "";
|
|
532
|
-
return [
|
|
527
|
+
return [Ue, h, x, C, D].join(" ");
|
|
533
528
|
}), g = (h) => {
|
|
534
529
|
h.style.height = "auto", h.style.height = `${h.scrollHeight + 5}px`;
|
|
535
530
|
};
|
|
@@ -537,7 +532,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
537
532
|
class: s.value,
|
|
538
533
|
value: d.modelValue,
|
|
539
534
|
onInput: m
|
|
540
|
-
}), null, 16,
|
|
535
|
+
}), null, 16, He));
|
|
541
536
|
}
|
|
542
537
|
}), Qe = {
|
|
543
538
|
key: 0,
|
|
@@ -596,10 +591,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
596
591
|
},
|
|
597
592
|
emits: ["update:modelValue"],
|
|
598
593
|
setup(d, { emit: r }) {
|
|
599
|
-
const e = d,
|
|
594
|
+
const e = d, u = r;
|
|
600
595
|
function m(s) {
|
|
601
596
|
const h = s.target.value, x = Number(h);
|
|
602
|
-
!isNaN(x) && h !== "" ?
|
|
597
|
+
!isNaN(x) && h !== "" ? u("update:modelValue", x) : u("update:modelValue", h);
|
|
603
598
|
}
|
|
604
599
|
const i = {
|
|
605
600
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
@@ -621,7 +616,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
621
616
|
onChange: m
|
|
622
617
|
}), [
|
|
623
618
|
d.placeholder ? (t(), a("option", Qe, j(d.placeholder), 1)) : S("", !0),
|
|
624
|
-
(t(!0), a(
|
|
619
|
+
(t(!0), a(I, null, F(d.options, (h, x) => (t(), a("option", {
|
|
625
620
|
key: x,
|
|
626
621
|
value: h[d.itemValue] ?? "",
|
|
627
622
|
selected: h[d.itemValue] == d.modelValue
|
|
@@ -660,7 +655,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
660
655
|
}
|
|
661
656
|
},
|
|
662
657
|
setup(d) {
|
|
663
|
-
const r =
|
|
658
|
+
const r = q(!1), e = d, u = {
|
|
664
659
|
s: "dk:text-sm",
|
|
665
660
|
m: "dk:text-base",
|
|
666
661
|
l: "dk:text-lg"
|
|
@@ -673,7 +668,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
673
668
|
m: "dk:text-sm",
|
|
674
669
|
l: "dk:text-base"
|
|
675
670
|
}, z = o(() => [Ze].join(" ")), y = o(() => {
|
|
676
|
-
const h =
|
|
671
|
+
const h = u[e.size] || u.m, x = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", C = e.helpText ? "dk:cursor-help" : "";
|
|
677
672
|
return [x, h, C].join(" ");
|
|
678
673
|
}), s = o(() => [m[e.size] || m.m].join(" ")), g = o(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", i[e.size] || i.m].join(" "));
|
|
679
674
|
return (h, x) => (t(), a("label", {
|
|
@@ -692,11 +687,11 @@ const Ee = { key: 1 }, Oe = `
|
|
|
692
687
|
key: 0,
|
|
693
688
|
class: n([d.icon, "dk:mr-2"])
|
|
694
689
|
}, null, 2)) : S("", !0),
|
|
695
|
-
|
|
690
|
+
A(" " + j(d.title) + " ", 1),
|
|
696
691
|
d.required ? (t(), a("span", Xe, "*")) : S("", !0)
|
|
697
692
|
], 2),
|
|
698
693
|
pe(c("div", Ye, [
|
|
699
|
-
|
|
694
|
+
A(j(d.helpText) + " ", 1),
|
|
700
695
|
x[2] || (x[2] = c("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
|
|
701
696
|
], 512), [
|
|
702
697
|
[ge, r.value && d.helpText]
|
|
@@ -712,14 +707,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
712
707
|
class: n(g.value)
|
|
713
708
|
}, [
|
|
714
709
|
x[3] || (x[3] = c("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)),
|
|
715
|
-
|
|
710
|
+
A(" " + j(d.error), 1)
|
|
716
711
|
], 2)) : S("", !0)
|
|
717
712
|
], 2));
|
|
718
713
|
}
|
|
719
714
|
}), ne = (d, r) => {
|
|
720
715
|
const e = d.__vccOpts || d;
|
|
721
|
-
for (const [
|
|
722
|
-
e[
|
|
716
|
+
for (const [u, m] of r)
|
|
717
|
+
e[u] = m;
|
|
723
718
|
return e;
|
|
724
719
|
}, jt = /* @__PURE__ */ ne(Re, [["__scopeId", "data-v-aa6b6cdc"]]), ed = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, dd = ["checked", "disabled"], Vt = /* @__PURE__ */ P({
|
|
725
720
|
inheritAttrs: !1,
|
|
@@ -760,7 +755,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
760
755
|
},
|
|
761
756
|
emits: ["update:modelValue"],
|
|
762
757
|
setup(d, { emit: r }) {
|
|
763
|
-
const e = d,
|
|
758
|
+
const e = d, u = r, m = we(), i = {
|
|
764
759
|
sm: {
|
|
765
760
|
track: "dk:w-9 dk:h-5",
|
|
766
761
|
thumb: "dk:w-3.5 dk:h-3.5",
|
|
@@ -791,20 +786,20 @@ const Ee = { key: 1 }, Oe = `
|
|
|
791
786
|
warning: "dk:peer-checked:bg-amber-500 dk:peer-checked:dark:bg-amber-400",
|
|
792
787
|
danger: "dk:peer-checked:bg-rose-600 dk:peer-checked:dark:bg-rose-500"
|
|
793
788
|
}, s = o(() => !!(e.label || m.default)), g = o(() => {
|
|
794
|
-
const v = e.block ? "dk:w-full dk:justify-between" : "",
|
|
795
|
-
return ["dk:inline-flex dk:items-center dk:gap-3 dk:select-none", v,
|
|
789
|
+
const v = e.block ? "dk:w-full dk:justify-between" : "", b = e.disabled ? "dk:opacity-60 dk:cursor-not-allowed" : "dk:cursor-pointer";
|
|
790
|
+
return ["dk:inline-flex dk:items-center dk:gap-3 dk:select-none", v, b].join(" ");
|
|
796
791
|
}), h = o(() => [
|
|
797
792
|
"dk:text-sm dk:leading-none dk:text-zinc-700 dk:dark:text-zinc-200",
|
|
798
793
|
e.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
|
|
799
794
|
].join(" ")), x = o(() => {
|
|
800
|
-
const v = i[e.size] || i.md,
|
|
795
|
+
const v = i[e.size] || i.md, b = z[e.rounded] || z.all, k = y[e.color] || y.primary;
|
|
801
796
|
return [
|
|
802
797
|
"dk:inline-flex dk:items-center dk:transition-colors dk:duration-200",
|
|
803
798
|
"dk:bg-zinc-300 dk:dark:bg-zinc-700",
|
|
804
799
|
"dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2 dk:peer-focus-visible:ring-slate-400 dk:dark:peer-focus-visible:ring-slate-500",
|
|
805
800
|
"dk:peer-disabled:opacity-70",
|
|
806
801
|
v.track,
|
|
807
|
-
|
|
802
|
+
b,
|
|
808
803
|
k
|
|
809
804
|
].join(" ");
|
|
810
805
|
}), C = o(() => {
|
|
@@ -819,10 +814,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
819
814
|
].join(" ");
|
|
820
815
|
});
|
|
821
816
|
function D(v) {
|
|
822
|
-
const
|
|
823
|
-
|
|
817
|
+
const b = v.target;
|
|
818
|
+
u("update:modelValue", b.checked);
|
|
824
819
|
}
|
|
825
|
-
return (v,
|
|
820
|
+
return (v, b) => (t(), a("label", {
|
|
826
821
|
class: n(g.value)
|
|
827
822
|
}, [
|
|
828
823
|
s.value && d.labelPosition === "left" ? (t(), a("span", {
|
|
@@ -830,7 +825,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
830
825
|
class: n(h.value)
|
|
831
826
|
}, [
|
|
832
827
|
T(v.$slots, "default", {}, () => [
|
|
833
|
-
|
|
828
|
+
A(j(d.label), 1)
|
|
834
829
|
])
|
|
835
830
|
], 2)) : S("", !0),
|
|
836
831
|
c("span", ed, [
|
|
@@ -852,7 +847,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
852
847
|
class: n(h.value)
|
|
853
848
|
}, [
|
|
854
849
|
T(v.$slots, "default", {}, () => [
|
|
855
|
-
|
|
850
|
+
A(j(d.label), 1)
|
|
856
851
|
])
|
|
857
852
|
], 2)) : S("", !0)
|
|
858
853
|
], 2));
|
|
@@ -873,9 +868,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
873
868
|
},
|
|
874
869
|
emits: ["update:modelValue", "change"],
|
|
875
870
|
setup(d, { emit: r }) {
|
|
876
|
-
const e = d,
|
|
871
|
+
const e = d, u = r, m = Math.random().toString(36).slice(2, 8);
|
|
877
872
|
function i(w) {
|
|
878
|
-
|
|
873
|
+
u("update:modelValue", w), u("change", w);
|
|
879
874
|
}
|
|
880
875
|
const z = {
|
|
881
876
|
sm: { radio: "dk:w-3.5 dk:h-3.5", dot: "dk:w-1.5 dk:h-1.5", label: "dk:text-xs", description: "dk:text-xs" },
|
|
@@ -908,14 +903,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
908
903
|
return ["dk:inline-flex dk:items-start dk:gap-3 dk:select-none", $, M].join(" ");
|
|
909
904
|
}
|
|
910
905
|
function D(w) {
|
|
911
|
-
const l = z[e.size],
|
|
906
|
+
const l = z[e.size], p = y[e.color], $ = g[e.color];
|
|
912
907
|
return [
|
|
913
908
|
"dk:rounded-full dk:border-2 dk:transition-colors dk:duration-150",
|
|
914
909
|
"dk:border-zinc-300 dk:dark:border-zinc-600",
|
|
915
910
|
"dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2",
|
|
916
911
|
"dk:bg-white dk:dark:bg-zinc-900",
|
|
917
912
|
l.radio,
|
|
918
|
-
|
|
913
|
+
p,
|
|
919
914
|
$
|
|
920
915
|
].join(" ");
|
|
921
916
|
}
|
|
@@ -926,7 +921,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
926
921
|
w.dot,
|
|
927
922
|
l
|
|
928
923
|
].join(" ");
|
|
929
|
-
}),
|
|
924
|
+
}), b = o(() => "dk:flex dk:flex-col"), k = o(() => [z[e.size].label, "dk:leading-snug dk:text-zinc-800 dk:dark:text-zinc-200"].join(" ")), f = o(() => [z[e.size].description, "dk:leading-snug dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"].join(" "));
|
|
930
925
|
return (w, l) => (t(), a("div", {
|
|
931
926
|
class: n(h.value),
|
|
932
927
|
role: "radiogroup",
|
|
@@ -937,38 +932,38 @@ const Ee = { key: 1 }, Oe = `
|
|
|
937
932
|
id: `rg-label-${R(m)}`,
|
|
938
933
|
class: n(x.value)
|
|
939
934
|
}, j(d.groupLabel), 11, rd)) : S("", !0),
|
|
940
|
-
(t(!0), a(
|
|
941
|
-
key:
|
|
942
|
-
class: n(C(
|
|
935
|
+
(t(!0), a(I, null, F(d.options, (p) => (t(), a("label", {
|
|
936
|
+
key: p.value,
|
|
937
|
+
class: n(C(p.value, p.disabled))
|
|
943
938
|
}, [
|
|
944
939
|
c("span", ad, [
|
|
945
940
|
c("input", E({
|
|
946
941
|
type: "radio",
|
|
947
942
|
class: "dk:sr-only dk:peer",
|
|
948
943
|
name: d.name,
|
|
949
|
-
value:
|
|
950
|
-
checked: d.modelValue ===
|
|
951
|
-
disabled:
|
|
944
|
+
value: p.value,
|
|
945
|
+
checked: d.modelValue === p.value,
|
|
946
|
+
disabled: p.disabled || d.disabled
|
|
952
947
|
}, { ref_for: !0 }, w.$attrs, {
|
|
953
|
-
onChange: ($) => i(
|
|
948
|
+
onChange: ($) => i(p.value)
|
|
954
949
|
}), null, 16, od),
|
|
955
950
|
c("span", {
|
|
956
|
-
class: n(D(
|
|
951
|
+
class: n(D(p.value))
|
|
957
952
|
}, null, 2),
|
|
958
953
|
c("span", {
|
|
959
954
|
class: n(v.value)
|
|
960
955
|
}, null, 2)
|
|
961
956
|
]),
|
|
962
957
|
c("span", {
|
|
963
|
-
class: n(
|
|
958
|
+
class: n(b.value)
|
|
964
959
|
}, [
|
|
965
960
|
c("span", {
|
|
966
961
|
class: n(k.value)
|
|
967
|
-
}, j(
|
|
968
|
-
|
|
962
|
+
}, j(p.label), 3),
|
|
963
|
+
p.description ? (t(), a("span", {
|
|
969
964
|
key: 0,
|
|
970
965
|
class: n(f.value)
|
|
971
|
-
}, j(
|
|
966
|
+
}, j(p.description), 3)) : S("", !0)
|
|
972
967
|
], 2)
|
|
973
968
|
], 2))), 128))
|
|
974
969
|
], 10, td));
|
|
@@ -1026,7 +1021,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1026
1021
|
},
|
|
1027
1022
|
emits: ["update:modelValue", "change"],
|
|
1028
1023
|
setup(d, { emit: r }) {
|
|
1029
|
-
const e = d,
|
|
1024
|
+
const e = d, u = r, m = we(), i = {
|
|
1030
1025
|
sm: {
|
|
1031
1026
|
track: "dk:w-8 dk:h-4",
|
|
1032
1027
|
thumb: "dk:w-3 dk:h-3",
|
|
@@ -1088,9 +1083,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1088
1083
|
warning: "dk:text-amber-600 dk:dark:text-amber-400",
|
|
1089
1084
|
danger: "dk:text-rose-600 dk:dark:text-rose-400"
|
|
1090
1085
|
}, v = o(() => e.modelValue ? D[e.color] : "dk:text-zinc-400 dk:dark:text-zinc-500");
|
|
1091
|
-
function
|
|
1086
|
+
function b(k) {
|
|
1092
1087
|
const f = k.target;
|
|
1093
|
-
|
|
1088
|
+
u("update:modelValue", f.checked), u("change", f.checked);
|
|
1094
1089
|
}
|
|
1095
1090
|
return (k, f) => (t(), a("label", {
|
|
1096
1091
|
class: n(s.value)
|
|
@@ -1100,7 +1095,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1100
1095
|
class: n(g.value)
|
|
1101
1096
|
}, [
|
|
1102
1097
|
T(k.$slots, "default", {}, () => [
|
|
1103
|
-
|
|
1098
|
+
A(j(d.label), 1)
|
|
1104
1099
|
]),
|
|
1105
1100
|
d.description ? (t(), a("span", {
|
|
1106
1101
|
key: 0,
|
|
@@ -1115,7 +1110,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1115
1110
|
"aria-checked": d.modelValue,
|
|
1116
1111
|
checked: d.modelValue,
|
|
1117
1112
|
disabled: d.disabled
|
|
1118
|
-
}, k.$attrs, { onChange:
|
|
1113
|
+
}, k.$attrs, { onChange: b }), null, 16, nd),
|
|
1119
1114
|
c("span", {
|
|
1120
1115
|
class: n(x.value)
|
|
1121
1116
|
}, null, 2),
|
|
@@ -1164,7 +1159,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1164
1159
|
class: n(g.value)
|
|
1165
1160
|
}, [
|
|
1166
1161
|
T(k.$slots, "default", {}, () => [
|
|
1167
|
-
|
|
1162
|
+
A(j(d.label), 1)
|
|
1168
1163
|
]),
|
|
1169
1164
|
d.description ? (t(), a("span", {
|
|
1170
1165
|
key: 0,
|
|
@@ -1203,7 +1198,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1203
1198
|
left: "dk:rounded-l",
|
|
1204
1199
|
right: "dk:rounded-r",
|
|
1205
1200
|
none: "dk:rounded-none"
|
|
1206
|
-
},
|
|
1201
|
+
}, u = {
|
|
1207
1202
|
solid: {
|
|
1208
1203
|
base: "",
|
|
1209
1204
|
neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
|
|
@@ -1233,7 +1228,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1233
1228
|
}
|
|
1234
1229
|
}, m = o(() => {
|
|
1235
1230
|
var s;
|
|
1236
|
-
const i = ((s =
|
|
1231
|
+
const i = ((s = u[r.variant]) == null ? void 0 : s[r.color]) || "", z = u[r.variant].base || "", y = e[r.rounded] || "";
|
|
1237
1232
|
return [id, z, i, y].join(" ");
|
|
1238
1233
|
});
|
|
1239
1234
|
return (i, z) => (t(), a("div", {
|
|
@@ -1268,7 +1263,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1268
1263
|
},
|
|
1269
1264
|
emits: ["paginate"],
|
|
1270
1265
|
setup(d, { emit: r }) {
|
|
1271
|
-
const e = d,
|
|
1266
|
+
const e = d, u = r, m = o(() => e.pagination ? Math.ceil(e.pagination.total / e.pagination.perPage) : 0), i = o(() => {
|
|
1272
1267
|
if (!e.pagination) return [];
|
|
1273
1268
|
const y = [], s = 5, { page: g } = e.pagination, h = m.value;
|
|
1274
1269
|
let x = Math.max(1, g - Math.floor(s / 2)), C = Math.min(h, x + s - 1);
|
|
@@ -1277,13 +1272,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1277
1272
|
y.push(D);
|
|
1278
1273
|
return y;
|
|
1279
1274
|
}), z = (y) => {
|
|
1280
|
-
e.pagination && y >= 1 && y <= m.value &&
|
|
1275
|
+
e.pagination && y >= 1 && y <= m.value && u("paginate", y);
|
|
1281
1276
|
};
|
|
1282
1277
|
return (y, s) => (t(), a("div", cd, [
|
|
1283
1278
|
c("table", ud, [
|
|
1284
1279
|
c("thead", bd, [
|
|
1285
1280
|
c("tr", null, [
|
|
1286
|
-
(t(!0), a(
|
|
1281
|
+
(t(!0), a(I, null, F(e.columns, (g) => (t(), a("th", {
|
|
1287
1282
|
key: g.name,
|
|
1288
1283
|
class: n(["dk:px-6 dk:py-3", g.classes])
|
|
1289
1284
|
}, j(g.label), 3))), 128))
|
|
@@ -1300,16 +1295,16 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1300
1295
|
c("tbody", {
|
|
1301
1296
|
class: n({ "is-loading": e.loading })
|
|
1302
1297
|
}, [
|
|
1303
|
-
(t(!0), a(
|
|
1298
|
+
(t(!0), a(I, null, F(e.rows, (g, h) => (t(), a("tr", {
|
|
1304
1299
|
key: h,
|
|
1305
1300
|
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"
|
|
1306
1301
|
}, [
|
|
1307
|
-
(t(!0), a(
|
|
1302
|
+
(t(!0), a(I, null, F(e.columns, (x) => (t(), a("td", {
|
|
1308
1303
|
key: x.name,
|
|
1309
1304
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
1310
1305
|
}, [
|
|
1311
1306
|
T(y.$slots, x.name, E({ ref_for: !0 }, g), () => [
|
|
1312
|
-
|
|
1307
|
+
A(j(g[x.name]), 1)
|
|
1313
1308
|
], !0)
|
|
1314
1309
|
]))), 128))
|
|
1315
1310
|
]))), 128))
|
|
@@ -1331,12 +1326,12 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1331
1326
|
disabled: e.pagination.page === 1
|
|
1332
1327
|
}, {
|
|
1333
1328
|
default: W(() => [...s[3] || (s[3] = [
|
|
1334
|
-
|
|
1329
|
+
A(" ← Anterior ", -1)
|
|
1335
1330
|
])]),
|
|
1336
1331
|
_: 1
|
|
1337
1332
|
}, 8, ["disabled"]),
|
|
1338
1333
|
c("div", yd, [
|
|
1339
|
-
(t(!0), a(
|
|
1334
|
+
(t(!0), a(I, null, F(i.value, (g) => (t(), a("button", {
|
|
1340
1335
|
key: g,
|
|
1341
1336
|
onClick: (h) => z(g),
|
|
1342
1337
|
class: n(["page-number", { active: g === e.pagination.page }])
|
|
@@ -1350,7 +1345,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1350
1345
|
disabled: e.pagination.page === m.value
|
|
1351
1346
|
}, {
|
|
1352
1347
|
default: W(() => [...s[4] || (s[4] = [
|
|
1353
|
-
|
|
1348
|
+
A(" Siguiente → ", -1)
|
|
1354
1349
|
])]),
|
|
1355
1350
|
_: 1
|
|
1356
1351
|
}, 8, ["disabled"])
|
|
@@ -1386,7 +1381,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1386
1381
|
to: { default: void 0 }
|
|
1387
1382
|
},
|
|
1388
1383
|
setup(d) {
|
|
1389
|
-
const r = d, e = o(() => r.to ? oe(r.to) : "span"),
|
|
1384
|
+
const r = d, e = o(() => r.to ? oe(r.to) : "span"), u = o(() => ue(r.to, e.value)), m = {
|
|
1390
1385
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
1391
1386
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
1392
1387
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -1574,7 +1569,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1574
1569
|
const s = (((C = z[r.variant]) == null ? void 0 : C[r.color]) || "") + " " + z[r.variant].base, g = m[r.size] || "", h = r.block ? "dk:block" : "dk:inline-block", x = i[r.rounded] || "";
|
|
1575
1570
|
return [$d, s, g, h, x].join(" ");
|
|
1576
1571
|
});
|
|
1577
|
-
return (s, g) => (t(), O(Q(e.value), E(
|
|
1572
|
+
return (s, g) => (t(), O(Q(e.value), E(u.value, {
|
|
1578
1573
|
class: y.value,
|
|
1579
1574
|
title: r.title
|
|
1580
1575
|
}), {
|
|
@@ -1597,9 +1592,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1597
1592
|
to: { default: void 0 }
|
|
1598
1593
|
},
|
|
1599
1594
|
setup(d) {
|
|
1600
|
-
const r = d, e = () => r.to ? oe(r.to) : "div",
|
|
1601
|
-
const
|
|
1602
|
-
return ue(r.to,
|
|
1595
|
+
const r = d, e = () => r.to ? oe(r.to) : "div", u = () => r.to ? oe(r.to) : "h3", m = () => {
|
|
1596
|
+
const b = e();
|
|
1597
|
+
return ue(r.to, b);
|
|
1603
1598
|
}, i = {
|
|
1604
1599
|
s: {
|
|
1605
1600
|
padding: "dk:p-3",
|
|
@@ -1642,10 +1637,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1642
1637
|
"dk:w-full dk:h-48 dk:object-cover",
|
|
1643
1638
|
"dk:relative dk:z-10"
|
|
1644
1639
|
].join(" ")), s = o(() => {
|
|
1645
|
-
const
|
|
1640
|
+
const b = i[r.size];
|
|
1646
1641
|
return [
|
|
1647
|
-
|
|
1648
|
-
|
|
1642
|
+
b.padding,
|
|
1643
|
+
b.spacing,
|
|
1649
1644
|
// Glass effect for content wrapper
|
|
1650
1645
|
"dk:relative dk:z-10"
|
|
1651
1646
|
].join(" ");
|
|
@@ -1662,13 +1657,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1662
1657
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
1663
1658
|
), k.join(" ");
|
|
1664
1659
|
}), x = o(() => {
|
|
1665
|
-
const
|
|
1660
|
+
const b = [
|
|
1666
1661
|
"dk:block",
|
|
1667
1662
|
"dk:transition-transform dk:duration-300",
|
|
1668
1663
|
"dk:hover:scale-105",
|
|
1669
1664
|
"dk:relative dk:z-10"
|
|
1670
1665
|
];
|
|
1671
|
-
return r.to &&
|
|
1666
|
+
return r.to && b.push("dk:no-underline"), b.join(" ");
|
|
1672
1667
|
}), C = o(() => [
|
|
1673
1668
|
i[r.size].subtitleSize,
|
|
1674
1669
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
@@ -1681,7 +1676,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1681
1676
|
"dk:pt-3 dk:mt-3",
|
|
1682
1677
|
"dk:relative dk:z-10"
|
|
1683
1678
|
].join(" "));
|
|
1684
|
-
return (
|
|
1679
|
+
return (b, k) => (t(), a("div", {
|
|
1685
1680
|
class: n(z.value)
|
|
1686
1681
|
}, [
|
|
1687
1682
|
d.image ? (t(), a("div", Sd, [
|
|
@@ -1703,9 +1698,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1703
1698
|
key: 0,
|
|
1704
1699
|
class: n(g.value)
|
|
1705
1700
|
}, [
|
|
1706
|
-
d.title ? (t(), O(Q(
|
|
1701
|
+
d.title ? (t(), O(Q(u()), E({ key: 0 }, m(), { class: h.value }), {
|
|
1707
1702
|
default: W(() => [
|
|
1708
|
-
|
|
1703
|
+
A(j(d.title), 1)
|
|
1709
1704
|
]),
|
|
1710
1705
|
_: 1
|
|
1711
1706
|
}, 16, ["class"])) : S("", !0),
|
|
@@ -1714,17 +1709,17 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1714
1709
|
class: n(C.value)
|
|
1715
1710
|
}, j(d.subtitle), 3)) : S("", !0)
|
|
1716
1711
|
], 2)) : S("", !0),
|
|
1717
|
-
|
|
1712
|
+
b.$slots.default ? (t(), a("div", {
|
|
1718
1713
|
key: 1,
|
|
1719
1714
|
class: n(D.value)
|
|
1720
1715
|
}, [
|
|
1721
|
-
T(
|
|
1716
|
+
T(b.$slots, "default")
|
|
1722
1717
|
], 2)) : S("", !0),
|
|
1723
|
-
|
|
1718
|
+
b.$slots.footer ? (t(), a("div", {
|
|
1724
1719
|
key: 2,
|
|
1725
1720
|
class: n(v.value)
|
|
1726
1721
|
}, [
|
|
1727
|
-
T(
|
|
1722
|
+
T(b.$slots, "footer")
|
|
1728
1723
|
], 2)) : S("", !0)
|
|
1729
1724
|
], 2)
|
|
1730
1725
|
], 2));
|
|
@@ -1750,7 +1745,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1750
1745
|
},
|
|
1751
1746
|
emits: ["update:modelValue", "open", "close", "backdrop", "escape"],
|
|
1752
1747
|
setup(d, { emit: r }) {
|
|
1753
|
-
const e = d,
|
|
1748
|
+
const e = d, u = r, m = Math.random().toString(36).slice(2, 10), i = `dui-modal-title-${m}`, z = `dui-modal-description-${m}`, y = {
|
|
1754
1749
|
all: "dk:rounded-xl",
|
|
1755
1750
|
top: "dk:rounded-t-xl",
|
|
1756
1751
|
bottom: "dk:rounded-b-xl",
|
|
@@ -1814,7 +1809,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1814
1809
|
].join(" ")), v = o(() => [
|
|
1815
1810
|
"dk:px-5 dk:py-4",
|
|
1816
1811
|
e.scrollable ? "dk:max-h-[65vh] dk:overflow-y-auto" : ""
|
|
1817
|
-
].join(" ")),
|
|
1812
|
+
].join(" ")), b = o(() => [
|
|
1818
1813
|
"dk:px-5 dk:py-4 dk:border-t dk:border-current/10",
|
|
1819
1814
|
"dk:flex dk:items-center dk:justify-end dk:gap-2"
|
|
1820
1815
|
].join(" "));
|
|
@@ -1829,23 +1824,23 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1829
1824
|
$.dataset.duiModalCount = String(L), L === 0 && ($.style.overflow = "");
|
|
1830
1825
|
}
|
|
1831
1826
|
function w($) {
|
|
1832
|
-
|
|
1827
|
+
u("update:modelValue", !1), u("close", $);
|
|
1833
1828
|
}
|
|
1834
1829
|
function l() {
|
|
1835
|
-
|
|
1830
|
+
u("backdrop"), !(e.persistent || !e.closeOnBackdrop) && w("backdrop");
|
|
1836
1831
|
}
|
|
1837
|
-
function
|
|
1838
|
-
$.key !== "Escape" || !e.modelValue || (
|
|
1832
|
+
function p($) {
|
|
1833
|
+
$.key !== "Escape" || !e.modelValue || (u("escape"), !(e.persistent || !e.closeOnEsc) && w("escape"));
|
|
1839
1834
|
}
|
|
1840
1835
|
return ae(
|
|
1841
1836
|
() => e.modelValue,
|
|
1842
1837
|
($, M) => {
|
|
1843
|
-
$ && !M && (k(),
|
|
1838
|
+
$ && !M && (k(), u("open")), !$ && M && f();
|
|
1844
1839
|
}
|
|
1845
1840
|
), me(() => {
|
|
1846
|
-
e.modelValue && k(), typeof window < "u" && window.addEventListener("keydown",
|
|
1841
|
+
e.modelValue && k(), typeof window < "u" && window.addEventListener("keydown", p);
|
|
1847
1842
|
}), fe(() => {
|
|
1848
|
-
e.modelValue && f(), typeof window < "u" && window.removeEventListener("keydown",
|
|
1843
|
+
e.modelValue && f(), typeof window < "u" && window.removeEventListener("keydown", p);
|
|
1849
1844
|
}), ($, M) => (t(), O(he, { to: "body" }, [
|
|
1850
1845
|
de(xe, {
|
|
1851
1846
|
"enter-active-class": "dk:transition-opacity dk:duration-200",
|
|
@@ -1907,7 +1902,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1907
1902
|
], 2),
|
|
1908
1903
|
$.$slots.footer ? (t(), a("footer", {
|
|
1909
1904
|
key: 1,
|
|
1910
|
-
class: n(
|
|
1905
|
+
class: n(b.value)
|
|
1911
1906
|
}, [
|
|
1912
1907
|
T($.$slots, "footer")
|
|
1913
1908
|
], 2)) : S("", !0)
|
|
@@ -1919,7 +1914,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1919
1914
|
})
|
|
1920
1915
|
]));
|
|
1921
1916
|
}
|
|
1922
|
-
}), Bd = ["aria-describedby"], Md = { class: "dk:inline-flex dk:items-center" },
|
|
1917
|
+
}), Bd = ["aria-describedby"], Md = { class: "dk:inline-flex dk:items-center" }, At = /* @__PURE__ */ P({
|
|
1923
1918
|
__name: "DuiTooltip",
|
|
1924
1919
|
props: {
|
|
1925
1920
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -1945,9 +1940,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1945
1940
|
},
|
|
1946
1941
|
emits: ["update:modelValue", "open", "close"],
|
|
1947
1942
|
setup(d, { emit: r }) {
|
|
1948
|
-
const e = d,
|
|
1943
|
+
const e = d, u = r, m = q(null), i = q(null), z = q(!1), y = o(() => e.modelValue !== void 0), s = o(() => y.value ? !!e.modelValue : z.value), g = q(e.placement), h = q({ top: 0, left: 0 }), x = q(!1);
|
|
1949
1944
|
let C = null, D = null;
|
|
1950
|
-
const v = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`,
|
|
1945
|
+
const v = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`, b = {
|
|
1951
1946
|
all: "dk:rounded-md",
|
|
1952
1947
|
top: "dk:rounded-t-md",
|
|
1953
1948
|
bottom: "dk:rounded-b-md",
|
|
@@ -1987,15 +1982,15 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1987
1982
|
warning: "dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",
|
|
1988
1983
|
danger: "dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"
|
|
1989
1984
|
}
|
|
1990
|
-
},
|
|
1991
|
-
const B =
|
|
1985
|
+
}, p = o(() => {
|
|
1986
|
+
const B = b[e.rounded], V = k[e.size], _ = l[e.variant].base, K = l[e.variant][e.color], N = w(e.maxWidth) ? f[e.maxWidth] : "";
|
|
1992
1987
|
return [
|
|
1993
1988
|
"dk:fixed dk:pointer-events-auto dk:leading-tight dk:select-text dk:cursor-default",
|
|
1994
1989
|
"dk:break-words dk:whitespace-normal",
|
|
1995
1990
|
B,
|
|
1996
1991
|
V,
|
|
1997
1992
|
_,
|
|
1998
|
-
|
|
1993
|
+
K,
|
|
1999
1994
|
N
|
|
2000
1995
|
].join(" ");
|
|
2001
1996
|
}), $ = o(() => {
|
|
@@ -2030,9 +2025,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2030
2025
|
C && (clearTimeout(C), C = null), D && (clearTimeout(D), D = null);
|
|
2031
2026
|
}
|
|
2032
2027
|
function J(B, V) {
|
|
2033
|
-
e.disabled || (y.value ?
|
|
2028
|
+
e.disabled || (y.value ? u("update:modelValue", B) : z.value = B, B ? (u("open", V), le(() => {
|
|
2034
2029
|
X();
|
|
2035
|
-
})) :
|
|
2030
|
+
})) : u("close", V));
|
|
2036
2031
|
}
|
|
2037
2032
|
function Y(B) {
|
|
2038
2033
|
L(), C = setTimeout(() => {
|
|
@@ -2061,16 +2056,16 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2061
2056
|
}[B];
|
|
2062
2057
|
}
|
|
2063
2058
|
function ee(B, V, _) {
|
|
2064
|
-
const [
|
|
2065
|
-
let
|
|
2066
|
-
|
|
2059
|
+
const [K, N] = B.split("-"), G = e.offset;
|
|
2060
|
+
let H = 0, U = 0;
|
|
2061
|
+
K === "top" && (H = V.top - _.height - G, N === "start" ? U = V.left : N === "end" ? U = V.right - _.width : U = V.left + V.width / 2 - _.width / 2), K === "bottom" && (H = V.bottom + G, N === "start" ? U = V.left : N === "end" ? U = V.right - _.width : U = V.left + V.width / 2 - _.width / 2), K === "left" && (U = V.left - _.width - G, N === "start" ? H = V.top : N === "end" ? H = V.bottom - _.height : H = V.top + V.height / 2 - _.height / 2), K === "right" && (U = V.right + G, N === "start" ? H = V.top : N === "end" ? H = V.bottom - _.height : H = V.top + V.height / 2 - _.height / 2);
|
|
2067
2062
|
const se = e.viewportPadding, Te = window.innerWidth, Pe = window.innerHeight;
|
|
2068
|
-
return
|
|
2063
|
+
return H = Math.min(Math.max(se, H), Pe - _.height - se), U = Math.min(Math.max(se, U), Te - _.width - se), { top: H, left: U };
|
|
2069
2064
|
}
|
|
2070
2065
|
function $e(B, V, _) {
|
|
2071
2066
|
if (!e.flip) return !1;
|
|
2072
|
-
const [
|
|
2073
|
-
return
|
|
2067
|
+
const [K] = B.split("-"), N = e.offset, G = e.viewportPadding;
|
|
2068
|
+
return K === "top" ? V.top - _.height - N < G : K === "bottom" ? V.bottom + _.height + N > window.innerHeight - G : K === "left" ? V.left - _.width - N < G : V.right + _.width + N > window.innerWidth - G;
|
|
2074
2069
|
}
|
|
2075
2070
|
function X() {
|
|
2076
2071
|
if (!m.value || !i.value) return;
|
|
@@ -2111,10 +2106,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2111
2106
|
V && ((_ = m.value) != null && _.contains(V)) || (x.value = !1, Z("hover"));
|
|
2112
2107
|
}
|
|
2113
2108
|
function ve(B) {
|
|
2114
|
-
var _,
|
|
2109
|
+
var _, K;
|
|
2115
2110
|
if (e.trigger !== "click" || !s.value) return;
|
|
2116
2111
|
const V = B.target;
|
|
2117
|
-
(_ = m.value) != null && _.contains(V) || (
|
|
2112
|
+
(_ = m.value) != null && _.contains(V) || (K = i.value) != null && K.contains(V) || Z("outside");
|
|
2118
2113
|
}
|
|
2119
2114
|
return ae(
|
|
2120
2115
|
() => e.modelValue,
|
|
@@ -2132,7 +2127,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2132
2127
|
typeof window > "u" || (window.addEventListener("resize", X), window.addEventListener("scroll", X, !0), window.addEventListener("click", ve));
|
|
2133
2128
|
}), fe(() => {
|
|
2134
2129
|
L(), !(typeof window > "u") && (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, !0), window.removeEventListener("click", ve));
|
|
2135
|
-
}), (B, V) => (t(), a(
|
|
2130
|
+
}), (B, V) => (t(), a(I, null, [
|
|
2136
2131
|
c("span", {
|
|
2137
2132
|
ref_key: "triggerRef",
|
|
2138
2133
|
ref: m,
|
|
@@ -2166,13 +2161,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2166
2161
|
ref: i,
|
|
2167
2162
|
id: v,
|
|
2168
2163
|
role: "tooltip",
|
|
2169
|
-
class: n(
|
|
2164
|
+
class: n(p.value),
|
|
2170
2165
|
style: ce($.value),
|
|
2171
2166
|
onMouseenter: De,
|
|
2172
2167
|
onMouseleave: _e
|
|
2173
2168
|
}, [
|
|
2174
2169
|
T(B.$slots, "content", {}, () => [
|
|
2175
|
-
|
|
2170
|
+
A(j(e.text), 1)
|
|
2176
2171
|
]),
|
|
2177
2172
|
e.arrow ? (t(), a("span", {
|
|
2178
2173
|
key: 0,
|
|
@@ -2199,7 +2194,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2199
2194
|
},
|
|
2200
2195
|
emits: ["update:modelValue", "change"],
|
|
2201
2196
|
setup(d, { emit: r }) {
|
|
2202
|
-
const e = d,
|
|
2197
|
+
const e = d, u = r, m = q([]);
|
|
2203
2198
|
function i() {
|
|
2204
2199
|
return e.modelValue === void 0 ? m.value : Array.isArray(e.modelValue) ? e.modelValue : e.modelValue ? [e.modelValue] : [];
|
|
2205
2200
|
}
|
|
@@ -2208,9 +2203,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2208
2203
|
}
|
|
2209
2204
|
function y(w, l) {
|
|
2210
2205
|
if (l) return;
|
|
2211
|
-
const
|
|
2206
|
+
const p = i();
|
|
2212
2207
|
let $;
|
|
2213
|
-
e.multiple ? $ =
|
|
2208
|
+
e.multiple ? $ = p.includes(w) ? p.filter((M) => M !== w) : [...p, w] : $ = p.includes(w) ? [] : [w], m.value = $, u("update:modelValue", e.multiple ? $ : $[0] ?? ""), u("change", w);
|
|
2214
2209
|
}
|
|
2215
2210
|
const s = {
|
|
2216
2211
|
sm: {
|
|
@@ -2254,14 +2249,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2254
2249
|
danger: "dk:text-rose-500 dk:dark:text-rose-400"
|
|
2255
2250
|
}, C = o(() => e.variant === "separated" ? "dk:flex dk:flex-col dk:gap-2" : e.variant === "ghost" ? "dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700/60" : e.flush ? "dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700" : "dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:rounded-xl dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700 dk:overflow-hidden dk:shadow-sm"), D = o(() => e.variant === "separated" ? "dk:rounded-xl dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:overflow-hidden dk:shadow-sm dk:bg-white dk:dark:bg-zinc-900" : e.variant === "ghost" ? "" : "dk:bg-white dk:dark:bg-zinc-900");
|
|
2256
2251
|
function v(w, l) {
|
|
2257
|
-
const
|
|
2252
|
+
const p = s[e.size], $ = z(w), M = [
|
|
2258
2253
|
"dk:flex dk:w-full dk:items-center dk:select-none dk:outline-none",
|
|
2259
2254
|
"dk:transition-colors dk:duration-150",
|
|
2260
|
-
|
|
2255
|
+
p.summary
|
|
2261
2256
|
], L = $ ? [g[e.color], h[e.color]] : ["dk:text-zinc-700 dk:dark:text-zinc-300", "dk:hover:bg-zinc-50 dk:dark:hover:bg-zinc-800/50 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"], J = "dk:focus-visible:ring-2 dk:focus-visible:ring-inset dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500", Y = l ? "dk:opacity-40 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
|
|
2262
2257
|
return [...M, ...L, J, Y].join(" ");
|
|
2263
2258
|
}
|
|
2264
|
-
function
|
|
2259
|
+
function b(w) {
|
|
2265
2260
|
const l = s[e.size];
|
|
2266
2261
|
return [
|
|
2267
2262
|
"dk:flex-shrink-0 dk:transition-transform dk:duration-250 dk:ease-in-out dk:ml-auto",
|
|
@@ -2276,25 +2271,25 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2276
2271
|
return (w, l) => (t(), a("div", {
|
|
2277
2272
|
class: n(C.value)
|
|
2278
2273
|
}, [
|
|
2279
|
-
(t(!0), a(
|
|
2280
|
-
key:
|
|
2281
|
-
open: z(
|
|
2274
|
+
(t(!0), a(I, null, F(d.items, (p, $) => (t(), a("details", {
|
|
2275
|
+
key: p.value ?? $,
|
|
2276
|
+
open: z(p.value ?? String($)),
|
|
2282
2277
|
class: n(D.value),
|
|
2283
2278
|
onToggle: l[0] || (l[0] = te(() => {
|
|
2284
2279
|
}, ["prevent"]))
|
|
2285
2280
|
}, [
|
|
2286
2281
|
c("summary", {
|
|
2287
|
-
class: n(v(
|
|
2288
|
-
onClick: te((M) => y(
|
|
2282
|
+
class: n(v(p.value ?? String($), p.disabled)),
|
|
2283
|
+
onClick: te((M) => y(p.value ?? String($), p.disabled), ["prevent"])
|
|
2289
2284
|
}, [
|
|
2290
|
-
|
|
2285
|
+
p.icon ? (t(), a("span", {
|
|
2291
2286
|
key: 0,
|
|
2292
2287
|
"aria-hidden": "true",
|
|
2293
2288
|
class: n(k.value)
|
|
2294
|
-
}, j(
|
|
2295
|
-
c("span", Td, j(
|
|
2289
|
+
}, j(p.icon), 3)) : S("", !0),
|
|
2290
|
+
c("span", Td, j(p.title), 1),
|
|
2296
2291
|
(t(), a("svg", {
|
|
2297
|
-
class: n(p
|
|
2292
|
+
class: n(b(p.value ?? String($))),
|
|
2298
2293
|
viewBox: "0 0 16 16",
|
|
2299
2294
|
fill: "none",
|
|
2300
2295
|
stroke: "currentColor",
|
|
@@ -2310,15 +2305,15 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2310
2305
|
c("div", {
|
|
2311
2306
|
class: n(f.value)
|
|
2312
2307
|
}, [
|
|
2313
|
-
T(w.$slots,
|
|
2314
|
-
c("p", null, j(
|
|
2308
|
+
T(w.$slots, p.value ?? String($), {}, () => [
|
|
2309
|
+
c("p", null, j(p.content), 1)
|
|
2315
2310
|
], !0)
|
|
2316
2311
|
], 2)
|
|
2317
2312
|
])
|
|
2318
2313
|
], 42, Dd))), 128))
|
|
2319
2314
|
], 2));
|
|
2320
2315
|
}
|
|
2321
|
-
}),
|
|
2316
|
+
}), It = /* @__PURE__ */ ne(Ld, [["__scopeId", "data-v-9bd77ff3"]]), Ad = ["aria-label"], Wt = /* @__PURE__ */ P({
|
|
2322
2317
|
inheritAttrs: !1,
|
|
2323
2318
|
__name: "DuiBadge",
|
|
2324
2319
|
props: {
|
|
@@ -2333,7 +2328,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2333
2328
|
},
|
|
2334
2329
|
emits: ["dismiss"],
|
|
2335
2330
|
setup(d, { emit: r }) {
|
|
2336
|
-
const e = d,
|
|
2331
|
+
const e = d, u = r, m = {
|
|
2337
2332
|
xs: "dk:text-[10px] dk:leading-none dk:px-1.5 dk:py-0.5 dk:gap-1",
|
|
2338
2333
|
sm: "dk:text-xs dk:leading-none dk:px-2 dk:py-1 dk:gap-1",
|
|
2339
2334
|
md: "dk:text-sm dk:px-2.5 dk:py-1 dk:gap-1.5",
|
|
@@ -2375,8 +2370,8 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2375
2370
|
warning: "dk:bg-amber-500 dk:dark:bg-amber-400",
|
|
2376
2371
|
danger: "dk:bg-rose-500 dk:dark:bg-rose-400"
|
|
2377
2372
|
}, s = o(() => {
|
|
2378
|
-
const C = "dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none", D = m[e.size], v = i[e.rounded],
|
|
2379
|
-
return [C, D, v,
|
|
2373
|
+
const C = "dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none", D = m[e.size], v = i[e.rounded], b = z[e.variant][e.color], k = e.href ? "dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity" : "";
|
|
2374
|
+
return [C, D, v, b, k].join(" ");
|
|
2380
2375
|
}), g = o(() => ["dk:rounded-full dk:flex-shrink-0", { xs: "dk:w-1.5 dk:h-1.5", sm: "dk:w-2 dk:h-2", md: "dk:w-2 dk:h-2", lg: "dk:w-2.5 dk:h-2.5" }[e.size], y[e.color]].join(" ")), h = o(() => "dk:flex-shrink-0 dk:flex dk:items-center"), x = o(() => [
|
|
2381
2376
|
"dk:-mr-0.5 dk:flex-shrink-0 dk:inline-flex dk:items-center dk:justify-center",
|
|
2382
2377
|
"dk:rounded-full dk:w-3.5 dk:h-3.5 dk:text-sm dk:leading-none",
|
|
@@ -2399,20 +2394,20 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2399
2394
|
}, null, 2)) : T(C.$slots, "icon", { key: 1 })
|
|
2400
2395
|
], 2)) : S("", !0),
|
|
2401
2396
|
T(C.$slots, "default", {}, () => [
|
|
2402
|
-
|
|
2397
|
+
A(j(d.label), 1)
|
|
2403
2398
|
]),
|
|
2404
2399
|
d.dismissible ? (t(), a("button", {
|
|
2405
2400
|
key: 1,
|
|
2406
2401
|
type: "button",
|
|
2407
2402
|
class: n(x.value),
|
|
2408
2403
|
"aria-label": d.label ? `Quitar ${d.label}` : "Quitar",
|
|
2409
|
-
onClick: D[0] || (D[0] = te((v) =>
|
|
2410
|
-
}, " × ", 10,
|
|
2404
|
+
onClick: D[0] || (D[0] = te((v) => u("dismiss"), ["prevent"]))
|
|
2405
|
+
}, " × ", 10, Ad)) : S("", !0)
|
|
2411
2406
|
]),
|
|
2412
2407
|
_: 3
|
|
2413
2408
|
}, 16, ["href", "class"]));
|
|
2414
2409
|
}
|
|
2415
|
-
}),
|
|
2410
|
+
}), Id = ["onKeydown"], Wd = ["aria-label"], Et = /* @__PURE__ */ P({
|
|
2416
2411
|
__name: "DuiDropdown",
|
|
2417
2412
|
props: {
|
|
2418
2413
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -2427,17 +2422,17 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2427
2422
|
},
|
|
2428
2423
|
emits: ["update:modelValue", "open", "close"],
|
|
2429
2424
|
setup(d, { emit: r }) {
|
|
2430
|
-
const e = d,
|
|
2425
|
+
const e = d, u = r, m = q(null), i = q(!1), z = o(() => e.modelValue !== void 0 ? e.modelValue : i.value);
|
|
2431
2426
|
function y() {
|
|
2432
2427
|
if (e.disabled) return;
|
|
2433
|
-
const
|
|
2434
|
-
i.value =
|
|
2428
|
+
const b = !z.value;
|
|
2429
|
+
i.value = b, u("update:modelValue", b), u(b ? "open" : "close");
|
|
2435
2430
|
}
|
|
2436
2431
|
function s() {
|
|
2437
|
-
i.value = !1,
|
|
2432
|
+
i.value = !1, u("update:modelValue", !1), u("close");
|
|
2438
2433
|
}
|
|
2439
|
-
function g(
|
|
2440
|
-
m.value && !m.value.contains(
|
|
2434
|
+
function g(b) {
|
|
2435
|
+
m.value && !m.value.contains(b.target) && s();
|
|
2441
2436
|
}
|
|
2442
2437
|
me(() => document.addEventListener("mousedown", g)), fe(() => document.removeEventListener("mousedown", g));
|
|
2443
2438
|
const h = {
|
|
@@ -2482,7 +2477,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2482
2477
|
x[e.rounded],
|
|
2483
2478
|
C[e.variant][e.color]
|
|
2484
2479
|
].join(" "));
|
|
2485
|
-
return (
|
|
2480
|
+
return (b, k) => (t(), a("div", {
|
|
2486
2481
|
ref_key: "wrapperRef",
|
|
2487
2482
|
ref: m,
|
|
2488
2483
|
class: "dk:relative dk:inline-block"
|
|
@@ -2494,8 +2489,8 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2494
2489
|
ye(te(y, ["prevent"]), ["space"])
|
|
2495
2490
|
]
|
|
2496
2491
|
}, [
|
|
2497
|
-
T(
|
|
2498
|
-
], 40,
|
|
2492
|
+
T(b.$slots, "trigger")
|
|
2493
|
+
], 40, Id),
|
|
2499
2494
|
de(xe, {
|
|
2500
2495
|
"enter-active-class": "dk:transition-all dk:duration-150 dk:ease-out",
|
|
2501
2496
|
"leave-active-class": "dk:transition-all dk:duration-100 dk:ease-in",
|
|
@@ -2510,7 +2505,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2510
2505
|
role: "menu",
|
|
2511
2506
|
"aria-label": d.ariaLabel
|
|
2512
2507
|
}, [
|
|
2513
|
-
T(
|
|
2508
|
+
T(b.$slots, "default")
|
|
2514
2509
|
], 14, Wd)) : S("", !0)
|
|
2515
2510
|
]),
|
|
2516
2511
|
_: 3
|
|
@@ -2533,7 +2528,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2533
2528
|
},
|
|
2534
2529
|
emits: ["click"],
|
|
2535
2530
|
setup(d, { emit: r }) {
|
|
2536
|
-
const e = d,
|
|
2531
|
+
const e = d, u = r, m = o(() => e.href ? { href: e.href, target: e.target } : { type: "button", disabled: e.disabled }), i = {
|
|
2537
2532
|
sm: "dk:px-3 dk:py-1 dk:text-xs",
|
|
2538
2533
|
md: "dk:px-3 dk:py-2 dk:text-sm",
|
|
2539
2534
|
lg: "dk:px-4 dk:py-2.5 dk:text-base"
|
|
@@ -2542,7 +2537,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2542
2537
|
return [g, h, x, C].join(" ");
|
|
2543
2538
|
}), y = o(() => "dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");
|
|
2544
2539
|
function s(g) {
|
|
2545
|
-
e.disabled ||
|
|
2540
|
+
e.disabled || u("click", g);
|
|
2546
2541
|
}
|
|
2547
2542
|
return (g, h) => (t(), O(Q(d.href ? "a" : "button"), E(m.value, {
|
|
2548
2543
|
class: z.value,
|
|
@@ -2557,12 +2552,12 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2557
2552
|
"aria-hidden": "true"
|
|
2558
2553
|
}, [
|
|
2559
2554
|
T(g.$slots, "icon", {}, () => [
|
|
2560
|
-
|
|
2555
|
+
A(j(d.icon), 1)
|
|
2561
2556
|
])
|
|
2562
2557
|
], 2)) : S("", !0),
|
|
2563
2558
|
c("span", Ed, [
|
|
2564
2559
|
T(g.$slots, "default", {}, () => [
|
|
2565
|
-
|
|
2560
|
+
A(j(d.label), 1)
|
|
2566
2561
|
])
|
|
2567
2562
|
]),
|
|
2568
2563
|
g.$slots.trailing ? (t(), a("span", Od, [
|
|
@@ -2577,10 +2572,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2577
2572
|
role: "separator",
|
|
2578
2573
|
"aria-orientation": "horizontal"
|
|
2579
2574
|
};
|
|
2580
|
-
function
|
|
2575
|
+
function Kd(d, r) {
|
|
2581
2576
|
return t(), a("hr", Fd);
|
|
2582
2577
|
}
|
|
2583
|
-
const Nt = /* @__PURE__ */ ne(Nd, [["render",
|
|
2578
|
+
const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = ["disabled", "aria-label"], Ud = {
|
|
2584
2579
|
key: 0,
|
|
2585
2580
|
class: "dk:hidden dk:sm:inline"
|
|
2586
2581
|
}, Qd = ["aria-label", "aria-current", "onClick"], Gd = ["disabled", "aria-label"], Jd = {
|
|
@@ -2605,21 +2600,21 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2605
2600
|
},
|
|
2606
2601
|
emits: ["update:modelValue", "change"],
|
|
2607
2602
|
setup(d, { emit: r }) {
|
|
2608
|
-
const e = d,
|
|
2609
|
-
function i(
|
|
2610
|
-
|
|
2603
|
+
const e = d, u = r, m = o(() => Math.max(1, Math.ceil(e.total / e.perPage)));
|
|
2604
|
+
function i(b) {
|
|
2605
|
+
b < 1 || b > m.value || b === e.modelValue || (u("update:modelValue", b), u("change", b));
|
|
2611
2606
|
}
|
|
2612
2607
|
const z = o(() => {
|
|
2613
|
-
const
|
|
2614
|
-
if (
|
|
2615
|
-
return Array.from({ length:
|
|
2608
|
+
const b = m.value, k = e.modelValue, f = e.siblingCount, w = e.showBoundary ? 1 : 0;
|
|
2609
|
+
if (b <= 2 * f + 2 * w + 3)
|
|
2610
|
+
return Array.from({ length: b }, (M, L) => L + 1);
|
|
2616
2611
|
const l = [];
|
|
2617
2612
|
for (let M = 1; M <= w; M++) l.push(M);
|
|
2618
|
-
const
|
|
2619
|
-
|
|
2620
|
-
for (let M =
|
|
2621
|
-
$ <
|
|
2622
|
-
for (let M =
|
|
2613
|
+
const p = Math.max(w + 1, k - f), $ = Math.min(b - w, k + f);
|
|
2614
|
+
p > w + 1 && l.push("...");
|
|
2615
|
+
for (let M = p; M <= $; M++) l.push(M);
|
|
2616
|
+
$ < b - w && l.push("...");
|
|
2617
|
+
for (let M = b - w + 1; M <= b; M++) l.push(M);
|
|
2623
2618
|
return l;
|
|
2624
2619
|
}), y = {
|
|
2625
2620
|
sm: "dk:w-7 dk:h-7 dk:text-xs",
|
|
@@ -2655,10 +2650,10 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2655
2650
|
danger: "dk:bg-rose-100 dk:text-rose-800 dk:dark:bg-rose-800 dk:dark:text-rose-100"
|
|
2656
2651
|
}
|
|
2657
2652
|
}, h = o(() => "dk:flex dk:items-center dk:gap-1 dk:flex-wrap"), x = o(() => {
|
|
2658
|
-
const
|
|
2653
|
+
const b = y[e.size], k = s[e.rounded];
|
|
2659
2654
|
return [
|
|
2660
2655
|
"dk:inline-flex dk:items-center dk:justify-center dk:font-medium dk:transition-colors dk:duration-150 dk:outline-none dk:select-none dk:cursor-pointer dk:disabled:cursor-not-allowed dk:disabled:pointer-events-none",
|
|
2661
|
-
|
|
2656
|
+
b,
|
|
2662
2657
|
k,
|
|
2663
2658
|
"dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400"
|
|
2664
2659
|
].join(" ");
|
|
@@ -2668,14 +2663,14 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2668
2663
|
"dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700",
|
|
2669
2664
|
"dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"
|
|
2670
2665
|
].join(" "));
|
|
2671
|
-
function D(
|
|
2672
|
-
return
|
|
2666
|
+
function D(b) {
|
|
2667
|
+
return b === e.modelValue ? [x.value, g[e.variant][e.color]].join(" ") : [
|
|
2673
2668
|
x.value,
|
|
2674
2669
|
"dk:text-zinc-600 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"
|
|
2675
2670
|
].join(" ");
|
|
2676
2671
|
}
|
|
2677
2672
|
const v = o(() => ["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none", y[e.size]].join(" "));
|
|
2678
|
-
return (
|
|
2673
|
+
return (b, k) => (t(), a("nav", {
|
|
2679
2674
|
"aria-label": d.ariaLabel,
|
|
2680
2675
|
class: n(h.value)
|
|
2681
2676
|
}, [
|
|
@@ -2698,9 +2693,9 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2698
2693
|
}, [
|
|
2699
2694
|
c("polyline", { points: "10 4 6 8 10 12" })
|
|
2700
2695
|
], -1)),
|
|
2701
|
-
d.showLabels ? (t(), a("span",
|
|
2702
|
-
], 10,
|
|
2703
|
-
(t(!0), a(
|
|
2696
|
+
d.showLabels ? (t(), a("span", Ud, j(d.prevLabel), 1)) : S("", !0)
|
|
2697
|
+
], 10, Hd),
|
|
2698
|
+
(t(!0), a(I, null, F(z.value, (f) => (t(), a(I, { key: f }, [
|
|
2704
2699
|
f === "..." ? (t(), a("span", {
|
|
2705
2700
|
key: 0,
|
|
2706
2701
|
class: n(v.value),
|
|
@@ -2735,7 +2730,7 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2735
2730
|
c("polyline", { points: "6 4 10 8 6 12" })
|
|
2736
2731
|
], -1))
|
|
2737
2732
|
], 10, Gd)
|
|
2738
|
-
], 10,
|
|
2733
|
+
], 10, qd));
|
|
2739
2734
|
}
|
|
2740
2735
|
}), Xd = /* @__PURE__ */ P({
|
|
2741
2736
|
__name: "DuiSkeleton",
|
|
@@ -2751,7 +2746,7 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2751
2746
|
if (y !== void 0)
|
|
2752
2747
|
return typeof y == "number" ? `${y}px` : y;
|
|
2753
2748
|
}
|
|
2754
|
-
const
|
|
2749
|
+
const u = o(() => ({
|
|
2755
2750
|
width: e(r.width),
|
|
2756
2751
|
height: e(r.height)
|
|
2757
2752
|
})), m = {
|
|
@@ -2770,16 +2765,16 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2770
2765
|
].join(" "));
|
|
2771
2766
|
return (y, s) => (t(), a("span", {
|
|
2772
2767
|
class: n(z.value),
|
|
2773
|
-
style: ce(
|
|
2768
|
+
style: ce(u.value),
|
|
2774
2769
|
"aria-hidden": "true",
|
|
2775
2770
|
role: "presentation"
|
|
2776
2771
|
}, null, 6));
|
|
2777
2772
|
}
|
|
2778
|
-
}),
|
|
2773
|
+
}), Kt = /* @__PURE__ */ ne(Xd, [["__scopeId", "data-v-8c9c6005"]]), Yd = ["aria-label"], Zd = ["id", "aria-controls", "aria-selected", "disabled", "onClick", "onKeydown"], Rd = {
|
|
2779
2774
|
key: 0,
|
|
2780
2775
|
"aria-hidden": "true",
|
|
2781
2776
|
class: "dk:flex-shrink-0"
|
|
2782
|
-
}, et = ["id", "aria-labelledby", "tabindex", "hidden"],
|
|
2777
|
+
}, et = ["id", "aria-labelledby", "tabindex", "hidden"], qt = /* @__PURE__ */ P({
|
|
2783
2778
|
__name: "DuiTabs",
|
|
2784
2779
|
props: {
|
|
2785
2780
|
modelValue: {},
|
|
@@ -2792,12 +2787,12 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2792
2787
|
},
|
|
2793
2788
|
emits: ["update:modelValue", "change"],
|
|
2794
2789
|
setup(d, { emit: r }) {
|
|
2795
|
-
const e = d,
|
|
2796
|
-
function i(v,
|
|
2797
|
-
|
|
2790
|
+
const e = d, u = r, m = Math.random().toString(36).slice(2, 8);
|
|
2791
|
+
function i(v, b) {
|
|
2792
|
+
b || (u("update:modelValue", v), u("change", v));
|
|
2798
2793
|
}
|
|
2799
|
-
function z(v,
|
|
2800
|
-
const k = e.tabs.filter((w) => !w.disabled).map((w) => w.value), f = k.indexOf(
|
|
2794
|
+
function z(v, b) {
|
|
2795
|
+
const k = e.tabs.filter((w) => !w.disabled).map((w) => w.value), f = k.indexOf(b);
|
|
2801
2796
|
if (v.key === "ArrowRight" || v.key === "ArrowDown") {
|
|
2802
2797
|
v.preventDefault();
|
|
2803
2798
|
const w = k[(f + 1) % k.length];
|
|
@@ -2822,28 +2817,28 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2822
2817
|
warning: { underline: "dk:border-amber-500 dk:text-amber-700 dk:dark:border-amber-400 dk:dark:text-amber-200", pills: "dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400", boxed: "dk:bg-white dk:text-amber-700 dk:dark:bg-zinc-800 dk:dark:text-amber-200 dk:shadow-sm" },
|
|
2823
2818
|
danger: { underline: "dk:border-rose-600 dk:text-rose-700 dk:dark:border-rose-400 dk:dark:text-rose-200", pills: "dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500", boxed: "dk:bg-white dk:text-rose-700 dk:dark:bg-zinc-800 dk:dark:text-rose-200 dk:shadow-sm" }
|
|
2824
2819
|
}, g = o(() => "dk:w-full"), h = o(() => {
|
|
2825
|
-
const v = "dk:flex dk:items-center dk:gap-0.5",
|
|
2820
|
+
const v = "dk:flex dk:items-center dk:gap-0.5", b = e.fullWidth ? "dk:w-full" : "", k = {
|
|
2826
2821
|
underline: "dk:border-b dk:border-zinc-200 dk:dark:border-zinc-700",
|
|
2827
2822
|
pills: "dk:gap-1",
|
|
2828
2823
|
boxed: "dk:bg-zinc-100 dk:dark:bg-zinc-800 dk:p-1 dk:rounded-xl dk:gap-1"
|
|
2829
2824
|
}[e.variant];
|
|
2830
|
-
return [v,
|
|
2825
|
+
return [v, b, k].join(" ");
|
|
2831
2826
|
});
|
|
2832
|
-
function x(v,
|
|
2833
|
-
const k = "dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t", f = y[e.size], w = e.modelValue === v, l =
|
|
2827
|
+
function x(v, b) {
|
|
2828
|
+
const k = "dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t", f = y[e.size], w = e.modelValue === v, l = b ? "dk:opacity-40 dk:cursor-not-allowed" : "dk:cursor-pointer", p = "dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";
|
|
2834
2829
|
if (e.variant === "underline") {
|
|
2835
2830
|
const L = w ? `dk:border-b-2 ${s[e.color].underline}` : "dk:border-b-2 dk:border-transparent dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200 dk:hover:border-zinc-300 dk:dark:hover:border-zinc-600";
|
|
2836
|
-
return [k, f, L, l,
|
|
2831
|
+
return [k, f, L, l, p].join(" ");
|
|
2837
2832
|
}
|
|
2838
2833
|
if (e.variant === "pills") {
|
|
2839
2834
|
const L = w ? `dk:rounded-lg ${s[e.color].pills}` : "dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200";
|
|
2840
|
-
return [k, f, L, l,
|
|
2835
|
+
return [k, f, L, l, p].join(" ");
|
|
2841
2836
|
}
|
|
2842
2837
|
const $ = w ? `dk:rounded-lg ${s[e.color].boxed}` : "dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-black/5 dk:dark:hover:bg-white/5 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200", M = e.fullWidth ? "dk:flex-1 dk:text-center dk:justify-center" : "";
|
|
2843
|
-
return [k, f, $, l,
|
|
2838
|
+
return [k, f, $, l, p, M].join(" ");
|
|
2844
2839
|
}
|
|
2845
2840
|
const C = o(() => "dk:ml-1 dk:inline-flex dk:items-center dk:justify-center dk:rounded-full dk:bg-current/15 dk:text-current dk:text-[10px] dk:font-semibold dk:px-1.5 dk:py-px dk:leading-none"), D = o(() => [{ sm: "dk:pt-3", md: "dk:pt-4", lg: "dk:pt-5" }[e.size], "dk:outline-none"].join(" "));
|
|
2846
|
-
return (v,
|
|
2841
|
+
return (v, b) => (t(), a("div", {
|
|
2847
2842
|
class: n(g.value)
|
|
2848
2843
|
}, [
|
|
2849
2844
|
c("div", {
|
|
@@ -2851,7 +2846,7 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2851
2846
|
role: "tablist",
|
|
2852
2847
|
"aria-label": d.ariaLabel
|
|
2853
2848
|
}, [
|
|
2854
|
-
(t(!0), a(
|
|
2849
|
+
(t(!0), a(I, null, F(d.tabs, (k) => (t(), a("button", {
|
|
2855
2850
|
key: k.value,
|
|
2856
2851
|
type: "button",
|
|
2857
2852
|
id: `tab-${R(m)}-${k.value}`,
|
|
@@ -2864,14 +2859,14 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Ud]]), Kd = ["aria-label"], qd = [
|
|
|
2864
2859
|
onKeydown: (f) => z(f, k.value)
|
|
2865
2860
|
}, [
|
|
2866
2861
|
k.icon ? (t(), a("span", Rd, j(k.icon), 1)) : S("", !0),
|
|
2867
|
-
|
|
2862
|
+
A(" " + j(k.label) + " ", 1),
|
|
2868
2863
|
k.badge !== void 0 ? (t(), a("span", {
|
|
2869
2864
|
key: 1,
|
|
2870
2865
|
class: n(C.value)
|
|
2871
2866
|
}, j(k.badge), 3)) : S("", !0)
|
|
2872
2867
|
], 42, Zd))), 128))
|
|
2873
2868
|
], 10, Yd),
|
|
2874
|
-
(t(!0), a(
|
|
2869
|
+
(t(!0), a(I, null, F(d.tabs, (k) => (t(), a("div", {
|
|
2875
2870
|
key: k.value,
|
|
2876
2871
|
id: `panel-${R(m)}-${k.value}`,
|
|
2877
2872
|
"aria-labelledby": `tab-${R(m)}-${k.value}`,
|
|
@@ -2906,7 +2901,7 @@ function dt() {
|
|
|
2906
2901
|
}
|
|
2907
2902
|
function tt() {
|
|
2908
2903
|
return {
|
|
2909
|
-
toasts:
|
|
2904
|
+
toasts: Ae(ke.toasts),
|
|
2910
2905
|
add: re,
|
|
2911
2906
|
remove: Ce,
|
|
2912
2907
|
clear: dt,
|
|
@@ -2923,7 +2918,7 @@ const rt = {
|
|
|
2923
2918
|
}, at = { class: "dk:flex-1 dk:min-w-0" }, ot = {
|
|
2924
2919
|
key: 0,
|
|
2925
2920
|
class: "dk:text-sm dk:font-semibold dk:leading-snug"
|
|
2926
|
-
}, kt = ["onClick"], nt = "dk:flex-shrink-0 dk:flex dk:items-center dk:justify-center dk:w-5 dk:h-5 dk:rounded dk:text-current dk:opacity-70 dk:hover:opacity-100 dk:transition-opacity dk:text-base dk:leading-none dk:outline-none dk:ring-1 dk:ring-current/30 dk:focus-visible:ring-2",
|
|
2921
|
+
}, kt = ["onClick"], nt = "dk:flex-shrink-0 dk:flex dk:items-center dk:justify-center dk:w-5 dk:h-5 dk:rounded dk:text-current dk:opacity-70 dk:hover:opacity-100 dk:transition-opacity dk:text-base dk:leading-none dk:outline-none dk:ring-1 dk:ring-current/30 dk:focus-visible:ring-2", Ht = /* @__PURE__ */ P({
|
|
2927
2922
|
__name: "DuiToast",
|
|
2928
2923
|
props: {
|
|
2929
2924
|
position: { default: "top-right" },
|
|
@@ -2931,7 +2926,7 @@ const rt = {
|
|
|
2931
2926
|
zIndex: { default: 9999 }
|
|
2932
2927
|
},
|
|
2933
2928
|
setup(d) {
|
|
2934
|
-
const r = d, { toasts: e, remove:
|
|
2929
|
+
const r = d, { toasts: e, remove: u } = tt(), m = o(() => e.slice(0, r.maxToasts)), i = {
|
|
2935
2930
|
"top-right": "dk:top-4 dk:right-4 dk:items-end",
|
|
2936
2931
|
"top-left": "dk:top-4 dk:left-4 dk:items-start",
|
|
2937
2932
|
"top-center": "dk:top-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center",
|
|
@@ -2973,7 +2968,7 @@ const rt = {
|
|
|
2973
2968
|
"aria-live": "polite",
|
|
2974
2969
|
"aria-atomic": "false"
|
|
2975
2970
|
}, [
|
|
2976
|
-
de(
|
|
2971
|
+
de(Ie, {
|
|
2977
2972
|
tag: "div",
|
|
2978
2973
|
class: n(y.value),
|
|
2979
2974
|
"enter-active-class": "dk:transition-all dk:duration-300 dk:ease-out",
|
|
@@ -2983,7 +2978,7 @@ const rt = {
|
|
|
2983
2978
|
"move-class": "dk:transition-all dk:duration-300"
|
|
2984
2979
|
}, {
|
|
2985
2980
|
default: W(() => [
|
|
2986
|
-
(t(!0), a(
|
|
2981
|
+
(t(!0), a(I, null, F(m.value, (v) => (t(), a("div", {
|
|
2987
2982
|
key: v.id,
|
|
2988
2983
|
role: "alert",
|
|
2989
2984
|
class: n(h(v.color))
|
|
@@ -3004,7 +2999,7 @@ const rt = {
|
|
|
3004
2999
|
type: "button",
|
|
3005
3000
|
class: n(nt),
|
|
3006
3001
|
"aria-label": "Cerrar notificacion",
|
|
3007
|
-
onClick: (
|
|
3002
|
+
onClick: (b) => R(u)(v.id)
|
|
3008
3003
|
}, " × ", 8, kt)) : S("", !0)
|
|
3009
3004
|
], 2))), 128))
|
|
3010
3005
|
]),
|
|
@@ -3029,7 +3024,7 @@ const rt = {
|
|
|
3029
3024
|
}, pt = ["d"], gt = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:bg-none dk:dark:bg-zinc-900 dk:backdrop-blur-md dk:border-t dk:border-white/40 dk:dark:border-zinc-800 dk:shadow-lg dk:dark:shadow-black/30 dk:z-40" }, mt = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, ft = { key: 0 }, ht = ["onClick"], xt = { class: "dk:flex dk:items-center" }, vt = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, yt = {
|
|
3030
3025
|
key: 0,
|
|
3031
3026
|
class: "dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"
|
|
3032
|
-
},
|
|
3027
|
+
}, Ut = /* @__PURE__ */ P({
|
|
3033
3028
|
__name: "DuiNavbar",
|
|
3034
3029
|
props: {
|
|
3035
3030
|
items: { default: () => [] },
|
|
@@ -3038,17 +3033,17 @@ const rt = {
|
|
|
3038
3033
|
underlineColor: { default: "primary" }
|
|
3039
3034
|
},
|
|
3040
3035
|
setup(d) {
|
|
3041
|
-
const r = d, e =
|
|
3036
|
+
const r = d, e = q(!1), u = ze({}), m = (f) => oe(f.to), i = (f) => {
|
|
3042
3037
|
const w = m(f);
|
|
3043
3038
|
return ue(f.to, w);
|
|
3044
3039
|
}, z = () => {
|
|
3045
3040
|
e.value = !e.value;
|
|
3046
3041
|
}, y = () => {
|
|
3047
|
-
e.value = !1, Object.keys(
|
|
3048
|
-
|
|
3042
|
+
e.value = !1, Object.keys(u).forEach((f) => {
|
|
3043
|
+
u[f] = !1;
|
|
3049
3044
|
});
|
|
3050
3045
|
}, s = (f) => {
|
|
3051
|
-
|
|
3046
|
+
u[f] = !u[f];
|
|
3052
3047
|
}, g = {
|
|
3053
3048
|
s: {
|
|
3054
3049
|
height: "dk:h-12",
|
|
@@ -3105,8 +3100,8 @@ const rt = {
|
|
|
3105
3100
|
return f[r.underlineColor] || f.primary;
|
|
3106
3101
|
}, D = o(() => {
|
|
3107
3102
|
const f = g[r.size], w = C();
|
|
3108
|
-
return (l,
|
|
3109
|
-
const $ = l.active ?? !1, M =
|
|
3103
|
+
return (l, p = !0) => {
|
|
3104
|
+
const $ = l.active ?? !1, M = p ? "dk:pl-3" : "dk:pl-2", L = "dk:pr-3", J = p ? "dk:pl-2" : "dk:pl-1", Y = "dk:pr-2", Z = p ? "dk:pl-4" : "dk:pl-3", be = "dk:pr-4";
|
|
3110
3105
|
let ee = "";
|
|
3111
3106
|
return f.itemPadding.includes("px-2") ? ee = `${J} ${Y} dk:py-1.5` : f.itemPadding.includes("px-4") ? ee = `${Z} ${be} dk:py-3` : ee = `${M} ${L} dk:py-2`, [
|
|
3112
3107
|
// Block style with animated underline
|
|
@@ -3129,7 +3124,7 @@ const rt = {
|
|
|
3129
3124
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
3130
3125
|
"dk:transition-all dk:duration-200 dk:no-underline",
|
|
3131
3126
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"
|
|
3132
|
-
].join(" ")),
|
|
3127
|
+
].join(" ")), b = o(() => [
|
|
3133
3128
|
"dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
3134
3129
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg",
|
|
3135
3130
|
"dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15",
|
|
@@ -3153,7 +3148,7 @@ const rt = {
|
|
|
3153
3148
|
c("div", {
|
|
3154
3149
|
class: n(x.value)
|
|
3155
3150
|
}, [
|
|
3156
|
-
(t(!0), a(
|
|
3151
|
+
(t(!0), a(I, null, F(d.items, (l) => (t(), a(I, {
|
|
3157
3152
|
key: l.label
|
|
3158
3153
|
}, [
|
|
3159
3154
|
l.children && l.children.length > 0 ? (t(), a("div", it, [
|
|
@@ -3165,7 +3160,7 @@ const rt = {
|
|
|
3165
3160
|
key: 0,
|
|
3166
3161
|
class: n([l.icon, "dk:mr-2"])
|
|
3167
3162
|
}, null, 2)) : S("", !0),
|
|
3168
|
-
|
|
3163
|
+
A(" " + j(l.label) + " ", 1),
|
|
3169
3164
|
w[0] || (w[0] = c("svg", {
|
|
3170
3165
|
class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
|
|
3171
3166
|
fill: "none",
|
|
@@ -3183,15 +3178,15 @@ const rt = {
|
|
|
3183
3178
|
_: 2
|
|
3184
3179
|
}, 1040, ["class"])),
|
|
3185
3180
|
c("div", ct, [
|
|
3186
|
-
(t(!0), a(
|
|
3187
|
-
key:
|
|
3188
|
-
}, { ref_for: !0 }, i(
|
|
3181
|
+
(t(!0), a(I, null, F(l.children, (p) => (t(), O(Q(m(p)), E({
|
|
3182
|
+
key: p.label
|
|
3183
|
+
}, { ref_for: !0 }, i(p), { class: v.value }), {
|
|
3189
3184
|
default: W(() => [
|
|
3190
|
-
|
|
3185
|
+
p.icon ? (t(), a("i", {
|
|
3191
3186
|
key: 0,
|
|
3192
|
-
class: n([
|
|
3187
|
+
class: n([p.icon, "dk:mr-2"])
|
|
3193
3188
|
}, null, 2)) : S("", !0),
|
|
3194
|
-
|
|
3189
|
+
A(" " + j(p.label), 1)
|
|
3195
3190
|
]),
|
|
3196
3191
|
_: 2
|
|
3197
3192
|
}, 1040, ["class"]))), 128))
|
|
@@ -3207,7 +3202,7 @@ const rt = {
|
|
|
3207
3202
|
key: 0,
|
|
3208
3203
|
class: n([l.icon, "dk:mr-2"])
|
|
3209
3204
|
}, null, 2)) : S("", !0),
|
|
3210
|
-
|
|
3205
|
+
A(" " + j(l.label), 1)
|
|
3211
3206
|
]),
|
|
3212
3207
|
_: 2
|
|
3213
3208
|
}, 1040, ["class"]))
|
|
@@ -3233,24 +3228,24 @@ const rt = {
|
|
|
3233
3228
|
]),
|
|
3234
3229
|
pe(c("div", gt, [
|
|
3235
3230
|
c("div", mt, [
|
|
3236
|
-
(t(!0), a(
|
|
3231
|
+
(t(!0), a(I, null, F(d.items, (l) => (t(), a(I, {
|
|
3237
3232
|
key: l.label
|
|
3238
3233
|
}, [
|
|
3239
3234
|
l.children && l.children.length > 0 ? (t(), a("div", ft, [
|
|
3240
3235
|
c("button", {
|
|
3241
3236
|
type: "button",
|
|
3242
|
-
onClick: (
|
|
3243
|
-
class: n([
|
|
3237
|
+
onClick: (p) => s(l.label),
|
|
3238
|
+
class: n([b.value, "dk:justify-between"])
|
|
3244
3239
|
}, [
|
|
3245
3240
|
c("div", xt, [
|
|
3246
3241
|
l.icon ? (t(), a("i", {
|
|
3247
3242
|
key: 0,
|
|
3248
3243
|
class: n([l.icon, "dk:mr-2"])
|
|
3249
3244
|
}, null, 2)) : S("", !0),
|
|
3250
|
-
|
|
3245
|
+
A(" " + j(l.label), 1)
|
|
3251
3246
|
]),
|
|
3252
3247
|
(t(), a("svg", {
|
|
3253
|
-
class: n(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0",
|
|
3248
|
+
class: n(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", u[l.label] ? "dk:rotate-180" : ""]),
|
|
3254
3249
|
fill: "none",
|
|
3255
3250
|
stroke: "currentColor",
|
|
3256
3251
|
viewBox: "0 0 24 24"
|
|
@@ -3264,29 +3259,29 @@ const rt = {
|
|
|
3264
3259
|
])], 2))
|
|
3265
3260
|
], 10, ht),
|
|
3266
3261
|
pe(c("div", vt, [
|
|
3267
|
-
(t(!0), a(
|
|
3268
|
-
key:
|
|
3269
|
-
}, { ref_for: !0 }, i(
|
|
3262
|
+
(t(!0), a(I, null, F(l.children, (p) => (t(), O(Q(m(p)), E({
|
|
3263
|
+
key: p.label
|
|
3264
|
+
}, { ref_for: !0 }, i(p), {
|
|
3270
3265
|
class: k.value,
|
|
3271
3266
|
onClick: y
|
|
3272
3267
|
}), {
|
|
3273
3268
|
default: W(() => [
|
|
3274
|
-
|
|
3269
|
+
p.icon ? (t(), a("i", {
|
|
3275
3270
|
key: 0,
|
|
3276
|
-
class: n([
|
|
3271
|
+
class: n([p.icon, "dk:mr-2"])
|
|
3277
3272
|
}, null, 2)) : S("", !0),
|
|
3278
|
-
|
|
3273
|
+
A(" " + j(p.label), 1)
|
|
3279
3274
|
]),
|
|
3280
3275
|
_: 2
|
|
3281
3276
|
}, 1040, ["class"]))), 128))
|
|
3282
3277
|
], 512), [
|
|
3283
|
-
[ge,
|
|
3278
|
+
[ge, u[l.label]]
|
|
3284
3279
|
])
|
|
3285
3280
|
])) : (t(), O(Q(m(l)), E({
|
|
3286
3281
|
key: 1,
|
|
3287
3282
|
ref_for: !0
|
|
3288
3283
|
}, i(l), {
|
|
3289
|
-
class:
|
|
3284
|
+
class: b.value,
|
|
3290
3285
|
onClick: y
|
|
3291
3286
|
}), {
|
|
3292
3287
|
default: W(() => [
|
|
@@ -3294,7 +3289,7 @@ const rt = {
|
|
|
3294
3289
|
key: 0,
|
|
3295
3290
|
class: n([l.icon, "dk:mr-2"])
|
|
3296
3291
|
}, null, 2)) : S("", !0),
|
|
3297
|
-
|
|
3292
|
+
A(" " + j(l.label), 1)
|
|
3298
3293
|
]),
|
|
3299
3294
|
_: 2
|
|
3300
3295
|
}, 1040, ["class"]))
|
|
@@ -3310,7 +3305,7 @@ const rt = {
|
|
|
3310
3305
|
}
|
|
3311
3306
|
});
|
|
3312
3307
|
export {
|
|
3313
|
-
|
|
3308
|
+
It as DuiAccordion,
|
|
3314
3309
|
Tt as DuiAction,
|
|
3315
3310
|
Dt as DuiAlert,
|
|
3316
3311
|
Wt as DuiBadge,
|
|
@@ -3324,15 +3319,15 @@ export {
|
|
|
3324
3319
|
Ct as DuiInput,
|
|
3325
3320
|
jt as DuiLabel,
|
|
3326
3321
|
Lt as DuiModal,
|
|
3327
|
-
|
|
3322
|
+
Ut as DuiNavbar,
|
|
3328
3323
|
Ft as DuiPagination,
|
|
3329
3324
|
Bt as DuiRadio,
|
|
3330
3325
|
St as DuiSelect,
|
|
3331
|
-
|
|
3326
|
+
Kt as DuiSkeleton,
|
|
3332
3327
|
Mt as DuiSwitch,
|
|
3333
3328
|
_t as DuiTable,
|
|
3334
|
-
|
|
3329
|
+
qt as DuiTabs,
|
|
3335
3330
|
$t as DuiTextarea,
|
|
3336
|
-
|
|
3337
|
-
|
|
3331
|
+
Ht as DuiToast,
|
|
3332
|
+
At as DuiTooltip
|
|
3338
3333
|
};
|