@dronico/droni-kit 1.21.1 → 1.21.2
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 +391 -391
- package/package.json +1 -1
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
|
|
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 _, createElementBlock as a, ref as q, watch as ae, normalizeClass as n, createElementVNode as c, withModifiers as ee, 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 te, onMounted as me, onBeforeUnmount as fe, Teleport as he, Transition as xe, normalizeStyle as ce, 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 b = { ...e };
|
|
15
|
+
return r === "a" ? (b.href = typeof d == "string" ? d : "#", b.role = "button") : r !== "button" && r !== "span" && (b.to = d), b;
|
|
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)), b = 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,18 +231,18 @@ 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(b.value, {
|
|
235
235
|
class: y.value,
|
|
236
236
|
title: r.title,
|
|
237
237
|
disabled: r.disabled || r.loading
|
|
238
238
|
}), {
|
|
239
239
|
default: W(() => [
|
|
240
|
-
r.loading ? (t(), a("span", Ee, "Cargando...")) :
|
|
240
|
+
r.loading ? (t(), a("span", Ee, "Cargando...")) : _(s.$slots, "default", {}, void 0, void 0, 0)
|
|
241
241
|
]),
|
|
242
242
|
_: 3
|
|
243
243
|
}, 16, ["class", "title", "disabled"]));
|
|
244
244
|
}
|
|
245
|
-
}), Ne = ["
|
|
245
|
+
}), Ne = ["accept"], wt = /* @__PURE__ */ P({
|
|
246
246
|
inheritAttrs: !1,
|
|
247
247
|
__name: "DuiFile",
|
|
248
248
|
props: {
|
|
@@ -277,7 +277,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
277
277
|
},
|
|
278
278
|
emits: ["update:modelValue", "open-browser", "upload-file", "open-file"],
|
|
279
279
|
setup(d, { emit: r }) {
|
|
280
|
-
const e = d,
|
|
280
|
+
const e = d, b = 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, u = 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
|
+
u
|
|
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,11 +311,11 @@ const Ee = { key: 1 }, Oe = `
|
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
313
|
function v(l) {
|
|
314
|
-
const
|
|
315
|
-
return
|
|
314
|
+
const u = l.split("/");
|
|
315
|
+
return u[u.length - 1];
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
|
|
317
|
+
function p() {
|
|
318
|
+
b("open-browser");
|
|
319
319
|
}
|
|
320
320
|
function k() {
|
|
321
321
|
var l;
|
|
@@ -323,13 +323,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
323
323
|
}
|
|
324
324
|
function f(l) {
|
|
325
325
|
var M;
|
|
326
|
-
const
|
|
327
|
-
$ && (i.value = $.name,
|
|
326
|
+
const u = l.target, $ = (M = u.files) == null ? void 0 : M[0];
|
|
327
|
+
$ && (i.value = $.name, b("upload-file", $), w(u));
|
|
328
328
|
}
|
|
329
329
|
function w(l) {
|
|
330
330
|
l.value = "";
|
|
331
331
|
}
|
|
332
|
-
return (l,
|
|
332
|
+
return (l, u) => (t(), a("div", {
|
|
333
333
|
class: n(s.value)
|
|
334
334
|
}, [
|
|
335
335
|
c("div", {
|
|
@@ -343,10 +343,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
343
343
|
class: n(C.value)
|
|
344
344
|
}, [
|
|
345
345
|
c("a", {
|
|
346
|
-
href:
|
|
347
|
-
|
|
346
|
+
href: "#",
|
|
347
|
+
onClick: u[0] || (u[0] = ee(($) => b("open-file", e.modelValue ?? i.value), ["prevent"])),
|
|
348
348
|
class: "dk:ml-2 dk:text-pink-500 dk:underline dk:transition-colors dk:hover:text-pink-800 dk:dark:text-pink-400 dk:dark:hover:text-pink-300"
|
|
349
|
-
}, j(D.value),
|
|
349
|
+
}, j(D.value), 1)
|
|
350
350
|
], 2)) : S("", !0)
|
|
351
351
|
], 2),
|
|
352
352
|
c("div", {
|
|
@@ -359,9 +359,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
359
359
|
size: "sm",
|
|
360
360
|
block: !1,
|
|
361
361
|
title: "Abrir navegador de archivos",
|
|
362
|
-
onClick:
|
|
362
|
+
onClick: p
|
|
363
363
|
}, {
|
|
364
|
-
default: W(() => [...
|
|
364
|
+
default: W(() => [...u[1] || (u[1] = [
|
|
365
365
|
c("i", {
|
|
366
366
|
class: "mdi mdi-folder-search-outline",
|
|
367
367
|
"aria-hidden": "true"
|
|
@@ -378,7 +378,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
378
378
|
title: "Subir nuevo archivo",
|
|
379
379
|
onClick: k
|
|
380
380
|
}, {
|
|
381
|
-
default: W(() => [...
|
|
381
|
+
default: W(() => [...u[2] || (u[2] = [
|
|
382
382
|
c("i", {
|
|
383
383
|
class: "mdi mdi-upload",
|
|
384
384
|
"aria-hidden": "true"
|
|
@@ -395,10 +395,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
395
395
|
class: "dk:hidden",
|
|
396
396
|
accept: e.accept,
|
|
397
397
|
onChange: f
|
|
398
|
-
}, null, 40,
|
|
398
|
+
}, null, 40, Ne)
|
|
399
399
|
], 2));
|
|
400
400
|
}
|
|
401
|
-
}),
|
|
401
|
+
}), Fe = ["value"], Ke = `
|
|
402
402
|
dk:border-b
|
|
403
403
|
dk:border-zinc-300
|
|
404
404
|
dk:bg-zinc-50
|
|
@@ -410,7 +410,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
410
410
|
dk:dark:bg-zinc-800
|
|
411
411
|
dk:dark:text-zinc-100
|
|
412
412
|
dk:dark:focus:bg-zinc-700
|
|
413
|
-
dk:dark:[color-scheme:dark]`,
|
|
413
|
+
dk:dark:[color-scheme:dark]`, zt = /* @__PURE__ */ P({
|
|
414
414
|
inheritAttrs: !1,
|
|
415
415
|
__name: "DuiInput",
|
|
416
416
|
props: {
|
|
@@ -433,10 +433,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
433
433
|
},
|
|
434
434
|
emits: ["update:modelValue"],
|
|
435
435
|
setup(d, { emit: r }) {
|
|
436
|
-
const e = d,
|
|
436
|
+
const e = d, b = r;
|
|
437
437
|
function m(s) {
|
|
438
438
|
const g = s.target;
|
|
439
|
-
|
|
439
|
+
b("update:modelValue", g.value);
|
|
440
440
|
}
|
|
441
441
|
const i = {
|
|
442
442
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
@@ -451,14 +451,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
451
451
|
none: "dk:rounded-none"
|
|
452
452
|
}, y = o(() => {
|
|
453
453
|
const s = i[e.size] || "", g = e.block ? "dk:w-full" : "", h = z[e.rounded] || "";
|
|
454
|
-
return [
|
|
454
|
+
return [Ke, s, g, h].join(" ");
|
|
455
455
|
});
|
|
456
456
|
return (s, g) => (t(), a("input", E({
|
|
457
457
|
class: y.value,
|
|
458
458
|
value: d.modelValue
|
|
459
|
-
}, s.$attrs, { onInput: m }), null, 16,
|
|
459
|
+
}, s.$attrs, { onInput: m }), null, 16, Fe));
|
|
460
460
|
}
|
|
461
|
-
}),
|
|
461
|
+
}), qe = ["value"], He = `
|
|
462
462
|
dk:border-b
|
|
463
463
|
dk:border-zinc-300
|
|
464
464
|
dk:bg-zinc-50
|
|
@@ -470,7 +470,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
470
470
|
dk:dark:bg-zinc-800
|
|
471
471
|
dk:dark:text-zinc-100
|
|
472
472
|
dk:dark:focus:bg-zinc-700
|
|
473
|
-
dk:dark:[color-scheme:dark]`,
|
|
473
|
+
dk:dark:[color-scheme:dark]`, Ct = /* @__PURE__ */ P({
|
|
474
474
|
inheritAttrs: !1,
|
|
475
475
|
__name: "DuiTextarea",
|
|
476
476
|
props: {
|
|
@@ -501,10 +501,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
501
501
|
},
|
|
502
502
|
emits: ["update:modelValue"],
|
|
503
503
|
setup(d, { emit: r }) {
|
|
504
|
-
const e = d,
|
|
504
|
+
const e = d, b = r;
|
|
505
505
|
function m(h) {
|
|
506
506
|
const x = h.target;
|
|
507
|
-
e.autoheight && g(x),
|
|
507
|
+
e.autoheight && g(x), b("update:modelValue", x.value);
|
|
508
508
|
}
|
|
509
509
|
const i = {
|
|
510
510
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
@@ -524,7 +524,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
524
524
|
vertical: "dk:resize-y"
|
|
525
525
|
}, s = o(() => {
|
|
526
526
|
const h = i[e.size] || "", x = e.block ? "dk:w-full" : "", C = z[e.rounded] || "", D = y[e.resize] || "";
|
|
527
|
-
return [
|
|
527
|
+
return [He, h, x, C, D].join(" ");
|
|
528
528
|
}), g = (h) => {
|
|
529
529
|
h.style.height = "auto", h.style.height = `${h.scrollHeight + 5}px`;
|
|
530
530
|
};
|
|
@@ -532,14 +532,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
532
532
|
class: s.value,
|
|
533
533
|
value: d.modelValue,
|
|
534
534
|
onInput: m
|
|
535
|
-
}), null, 16,
|
|
535
|
+
}), null, 16, qe));
|
|
536
536
|
}
|
|
537
|
-
}),
|
|
537
|
+
}), Ue = {
|
|
538
538
|
key: 0,
|
|
539
539
|
disabled: "",
|
|
540
540
|
selected: "",
|
|
541
541
|
hidden: ""
|
|
542
|
-
},
|
|
542
|
+
}, Qe = ["value", "selected"], Ge = `
|
|
543
543
|
dk:border-b
|
|
544
544
|
dk:border-zinc-300
|
|
545
545
|
dk:bg-zinc-50
|
|
@@ -552,7 +552,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
552
552
|
dk:dark:text-zinc-100
|
|
553
553
|
dk:dark:focus:bg-zinc-700
|
|
554
554
|
dk:dark:[color-scheme:dark]
|
|
555
|
-
`,
|
|
555
|
+
`, $t = /* @__PURE__ */ P({
|
|
556
556
|
inheritAttrs: !1,
|
|
557
557
|
__name: "DuiSelect",
|
|
558
558
|
props: {
|
|
@@ -591,10 +591,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
591
591
|
},
|
|
592
592
|
emits: ["update:modelValue"],
|
|
593
593
|
setup(d, { emit: r }) {
|
|
594
|
-
const e = d,
|
|
594
|
+
const e = d, b = r;
|
|
595
595
|
function m(s) {
|
|
596
596
|
const h = s.target.value, x = Number(h);
|
|
597
|
-
!isNaN(x) && h !== "" ?
|
|
597
|
+
!isNaN(x) && h !== "" ? b("update:modelValue", x) : b("update:modelValue", h);
|
|
598
598
|
}
|
|
599
599
|
const i = {
|
|
600
600
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
@@ -609,24 +609,24 @@ const Ee = { key: 1 }, Oe = `
|
|
|
609
609
|
none: "dk:rounded-none"
|
|
610
610
|
}, y = o(() => {
|
|
611
611
|
const s = i[e.size] || "", g = e.block ? "dk:w-full" : "", h = z[e.rounded] || "";
|
|
612
|
-
return [
|
|
612
|
+
return [Ge, s, g, h].join(" ");
|
|
613
613
|
});
|
|
614
614
|
return (s, g) => (t(), a("select", E(s.$attrs, {
|
|
615
615
|
class: y.value,
|
|
616
616
|
onChange: m
|
|
617
617
|
}), [
|
|
618
|
-
d.placeholder ? (t(), a("option",
|
|
618
|
+
d.placeholder ? (t(), a("option", Ue, j(d.placeholder), 1)) : S("", !0),
|
|
619
619
|
(t(!0), a(I, null, F(d.options, (h, x) => (t(), a("option", {
|
|
620
620
|
key: x,
|
|
621
621
|
value: h[d.itemValue] ?? "",
|
|
622
622
|
selected: h[d.itemValue] == d.modelValue
|
|
623
|
-
}, j(h[d.itemLabel] ?? ""), 9,
|
|
623
|
+
}, j(h[d.itemLabel] ?? ""), 9, Qe))), 128))
|
|
624
624
|
], 16));
|
|
625
625
|
}
|
|
626
|
-
}),
|
|
626
|
+
}), Je = {
|
|
627
627
|
key: 1,
|
|
628
628
|
class: "dk:text-rose-500 dk:ml-1"
|
|
629
|
-
},
|
|
629
|
+
}, Xe = { 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" }, Ye = "dk:space-y-1", Ze = /* @__PURE__ */ P({
|
|
630
630
|
__name: "DuiLabel",
|
|
631
631
|
props: {
|
|
632
632
|
title: {
|
|
@@ -655,7 +655,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
657
|
setup(d) {
|
|
658
|
-
const r = q(!1), e = d,
|
|
658
|
+
const r = q(!1), e = d, b = {
|
|
659
659
|
s: "dk:text-sm",
|
|
660
660
|
m: "dk:text-base",
|
|
661
661
|
l: "dk:text-lg"
|
|
@@ -667,8 +667,8 @@ const Ee = { key: 1 }, Oe = `
|
|
|
667
667
|
s: "dk:text-xs",
|
|
668
668
|
m: "dk:text-sm",
|
|
669
669
|
l: "dk:text-base"
|
|
670
|
-
}, z = o(() => [
|
|
671
|
-
const h =
|
|
670
|
+
}, z = o(() => [Ye].join(" ")), y = o(() => {
|
|
671
|
+
const h = b[e.size] || b.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" : "";
|
|
672
672
|
return [x, h, C].join(" ");
|
|
673
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(" "));
|
|
674
674
|
return (h, x) => (t(), a("label", {
|
|
@@ -688,9 +688,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
688
688
|
class: n([d.icon, "dk:mr-2"])
|
|
689
689
|
}, null, 2)) : S("", !0),
|
|
690
690
|
A(" " + j(d.title) + " ", 1),
|
|
691
|
-
d.required ? (t(), a("span",
|
|
691
|
+
d.required ? (t(), a("span", Je, "*")) : S("", !0)
|
|
692
692
|
], 2),
|
|
693
|
-
pe(c("div",
|
|
693
|
+
pe(c("div", Xe, [
|
|
694
694
|
A(j(d.helpText) + " ", 1),
|
|
695
695
|
x[2] || (x[2] = c("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
|
|
696
696
|
], 512), [
|
|
@@ -700,7 +700,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
700
700
|
c("div", {
|
|
701
701
|
class: n(s.value)
|
|
702
702
|
}, [
|
|
703
|
-
|
|
703
|
+
_(h.$slots, "default", {}, void 0, !0)
|
|
704
704
|
], 2),
|
|
705
705
|
d.error ? (t(), a("div", {
|
|
706
706
|
key: 1,
|
|
@@ -713,10 +713,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
713
713
|
}
|
|
714
714
|
}), ne = (d, r) => {
|
|
715
715
|
const e = d.__vccOpts || d;
|
|
716
|
-
for (const [
|
|
717
|
-
e[
|
|
716
|
+
for (const [b, m] of r)
|
|
717
|
+
e[b] = m;
|
|
718
718
|
return e;
|
|
719
|
-
},
|
|
719
|
+
}, St = /* @__PURE__ */ ne(Ze, [["__scopeId", "data-v-aa6b6cdc"]]), Re = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, ed = ["checked", "disabled"], jt = /* @__PURE__ */ P({
|
|
720
720
|
inheritAttrs: !1,
|
|
721
721
|
__name: "DuiCheckbox",
|
|
722
722
|
props: {
|
|
@@ -755,7 +755,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
755
755
|
},
|
|
756
756
|
emits: ["update:modelValue"],
|
|
757
757
|
setup(d, { emit: r }) {
|
|
758
|
-
const e = d,
|
|
758
|
+
const e = d, b = r, m = we(), i = {
|
|
759
759
|
sm: {
|
|
760
760
|
track: "dk:w-9 dk:h-5",
|
|
761
761
|
thumb: "dk:w-3.5 dk:h-3.5",
|
|
@@ -786,20 +786,20 @@ const Ee = { key: 1 }, Oe = `
|
|
|
786
786
|
warning: "dk:peer-checked:bg-amber-500 dk:peer-checked:dark:bg-amber-400",
|
|
787
787
|
danger: "dk:peer-checked:bg-rose-600 dk:peer-checked:dark:bg-rose-500"
|
|
788
788
|
}, s = o(() => !!(e.label || m.default)), g = o(() => {
|
|
789
|
-
const v = e.block ? "dk:w-full dk:justify-between" : "",
|
|
790
|
-
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" : "", p = 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, p].join(" ");
|
|
791
791
|
}), h = o(() => [
|
|
792
792
|
"dk:text-sm dk:leading-none dk:text-zinc-700 dk:dark:text-zinc-200",
|
|
793
793
|
e.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
|
|
794
794
|
].join(" ")), x = o(() => {
|
|
795
|
-
const v = i[e.size] || i.md,
|
|
795
|
+
const v = i[e.size] || i.md, p = z[e.rounded] || z.all, k = y[e.color] || y.primary;
|
|
796
796
|
return [
|
|
797
797
|
"dk:inline-flex dk:items-center dk:transition-colors dk:duration-200",
|
|
798
798
|
"dk:bg-zinc-300 dk:dark:bg-zinc-700",
|
|
799
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",
|
|
800
800
|
"dk:peer-disabled:opacity-70",
|
|
801
801
|
v.track,
|
|
802
|
-
|
|
802
|
+
p,
|
|
803
803
|
k
|
|
804
804
|
].join(" ");
|
|
805
805
|
}), C = o(() => {
|
|
@@ -814,27 +814,27 @@ const Ee = { key: 1 }, Oe = `
|
|
|
814
814
|
].join(" ");
|
|
815
815
|
});
|
|
816
816
|
function D(v) {
|
|
817
|
-
const
|
|
818
|
-
|
|
817
|
+
const p = v.target;
|
|
818
|
+
b("update:modelValue", p.checked);
|
|
819
819
|
}
|
|
820
|
-
return (v,
|
|
820
|
+
return (v, p) => (t(), a("label", {
|
|
821
821
|
class: n(g.value)
|
|
822
822
|
}, [
|
|
823
823
|
s.value && d.labelPosition === "left" ? (t(), a("span", {
|
|
824
824
|
key: 0,
|
|
825
825
|
class: n(h.value)
|
|
826
826
|
}, [
|
|
827
|
-
|
|
827
|
+
_(v.$slots, "default", {}, () => [
|
|
828
828
|
A(j(d.label), 1)
|
|
829
829
|
])
|
|
830
830
|
], 2)) : S("", !0),
|
|
831
|
-
c("span",
|
|
831
|
+
c("span", Re, [
|
|
832
832
|
c("input", E({
|
|
833
833
|
type: "checkbox",
|
|
834
834
|
class: "dk:sr-only dk:peer",
|
|
835
835
|
checked: d.modelValue,
|
|
836
836
|
disabled: d.disabled
|
|
837
|
-
}, v.$attrs, { onChange: D }), null, 16,
|
|
837
|
+
}, v.$attrs, { onChange: D }), null, 16, ed),
|
|
838
838
|
c("span", {
|
|
839
839
|
class: n(x.value)
|
|
840
840
|
}, null, 2),
|
|
@@ -846,13 +846,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
846
846
|
key: 1,
|
|
847
847
|
class: n(h.value)
|
|
848
848
|
}, [
|
|
849
|
-
|
|
849
|
+
_(v.$slots, "default", {}, () => [
|
|
850
850
|
A(j(d.label), 1)
|
|
851
851
|
])
|
|
852
852
|
], 2)) : S("", !0)
|
|
853
853
|
], 2));
|
|
854
854
|
}
|
|
855
|
-
}),
|
|
855
|
+
}), dd = ["aria-labelledby"], td = ["id"], rd = { class: "dk:relative dk:inline-flex dk:flex-shrink-0" }, ad = ["name", "value", "checked", "disabled", "onChange"], Vt = /* @__PURE__ */ P({
|
|
856
856
|
inheritAttrs: !1,
|
|
857
857
|
__name: "DuiRadio",
|
|
858
858
|
props: {
|
|
@@ -868,9 +868,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
868
868
|
},
|
|
869
869
|
emits: ["update:modelValue", "change"],
|
|
870
870
|
setup(d, { emit: r }) {
|
|
871
|
-
const e = d,
|
|
871
|
+
const e = d, b = r, m = Math.random().toString(36).slice(2, 8);
|
|
872
872
|
function i(w) {
|
|
873
|
-
|
|
873
|
+
b("update:modelValue", w), b("change", w);
|
|
874
874
|
}
|
|
875
875
|
const z = {
|
|
876
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" },
|
|
@@ -903,14 +903,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
903
903
|
return ["dk:inline-flex dk:items-start dk:gap-3 dk:select-none", $, M].join(" ");
|
|
904
904
|
}
|
|
905
905
|
function D(w) {
|
|
906
|
-
const l = z[e.size],
|
|
906
|
+
const l = z[e.size], u = y[e.color], $ = g[e.color];
|
|
907
907
|
return [
|
|
908
908
|
"dk:rounded-full dk:border-2 dk:transition-colors dk:duration-150",
|
|
909
909
|
"dk:border-zinc-300 dk:dark:border-zinc-600",
|
|
910
910
|
"dk:peer-focus-visible:outline-none dk:peer-focus-visible:ring-2 dk:peer-focus-visible:ring-offset-2",
|
|
911
911
|
"dk:bg-white dk:dark:bg-zinc-900",
|
|
912
912
|
l.radio,
|
|
913
|
-
|
|
913
|
+
u,
|
|
914
914
|
$
|
|
915
915
|
].join(" ");
|
|
916
916
|
}
|
|
@@ -921,7 +921,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
921
921
|
w.dot,
|
|
922
922
|
l
|
|
923
923
|
].join(" ");
|
|
924
|
-
}),
|
|
924
|
+
}), p = 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(" "));
|
|
925
925
|
return (w, l) => (t(), a("div", {
|
|
926
926
|
class: n(h.value),
|
|
927
927
|
role: "radiogroup",
|
|
@@ -931,54 +931,54 @@ const Ee = { key: 1 }, Oe = `
|
|
|
931
931
|
key: 0,
|
|
932
932
|
id: `rg-label-${R(m)}`,
|
|
933
933
|
class: n(x.value)
|
|
934
|
-
}, j(d.groupLabel), 11,
|
|
935
|
-
(t(!0), a(I, null, F(d.options, (
|
|
936
|
-
key:
|
|
937
|
-
class: n(C(
|
|
934
|
+
}, j(d.groupLabel), 11, td)) : S("", !0),
|
|
935
|
+
(t(!0), a(I, null, F(d.options, (u) => (t(), a("label", {
|
|
936
|
+
key: u.value,
|
|
937
|
+
class: n(C(u.value, u.disabled))
|
|
938
938
|
}, [
|
|
939
|
-
c("span",
|
|
939
|
+
c("span", rd, [
|
|
940
940
|
c("input", E({
|
|
941
941
|
type: "radio",
|
|
942
942
|
class: "dk:sr-only dk:peer",
|
|
943
943
|
name: d.name,
|
|
944
|
-
value:
|
|
945
|
-
checked: d.modelValue ===
|
|
946
|
-
disabled:
|
|
944
|
+
value: u.value,
|
|
945
|
+
checked: d.modelValue === u.value,
|
|
946
|
+
disabled: u.disabled || d.disabled
|
|
947
947
|
}, { ref_for: !0 }, w.$attrs, {
|
|
948
|
-
onChange: ($) => i(
|
|
949
|
-
}), null, 16,
|
|
948
|
+
onChange: ($) => i(u.value)
|
|
949
|
+
}), null, 16, ad),
|
|
950
950
|
c("span", {
|
|
951
|
-
class: n(D(
|
|
951
|
+
class: n(D(u.value))
|
|
952
952
|
}, null, 2),
|
|
953
953
|
c("span", {
|
|
954
954
|
class: n(v.value)
|
|
955
955
|
}, null, 2)
|
|
956
956
|
]),
|
|
957
957
|
c("span", {
|
|
958
|
-
class: n(
|
|
958
|
+
class: n(p.value)
|
|
959
959
|
}, [
|
|
960
960
|
c("span", {
|
|
961
961
|
class: n(k.value)
|
|
962
|
-
}, j(
|
|
963
|
-
|
|
962
|
+
}, j(u.label), 3),
|
|
963
|
+
u.description ? (t(), a("span", {
|
|
964
964
|
key: 0,
|
|
965
965
|
class: n(f.value)
|
|
966
|
-
}, j(
|
|
966
|
+
}, j(u.description), 3)) : S("", !0)
|
|
967
967
|
], 2)
|
|
968
968
|
], 2))), 128))
|
|
969
|
-
], 10,
|
|
969
|
+
], 10, dd));
|
|
970
970
|
}
|
|
971
|
-
}),
|
|
971
|
+
}), od = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, kd = ["aria-checked", "checked", "disabled"], nd = {
|
|
972
972
|
key: 0,
|
|
973
973
|
viewBox: "0 0 12 12",
|
|
974
974
|
fill: "currentColor",
|
|
975
975
|
class: "dk:w-2.5 dk:h-2.5"
|
|
976
|
-
},
|
|
976
|
+
}, sd = {
|
|
977
977
|
key: 1,
|
|
978
978
|
viewBox: "0 0 12 12",
|
|
979
979
|
fill: "none",
|
|
980
980
|
class: "dk:w-2.5 dk:h-2.5"
|
|
981
|
-
},
|
|
981
|
+
}, Bt = /* @__PURE__ */ P({
|
|
982
982
|
inheritAttrs: !1,
|
|
983
983
|
__name: "DuiSwitch",
|
|
984
984
|
props: {
|
|
@@ -1021,7 +1021,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1021
1021
|
},
|
|
1022
1022
|
emits: ["update:modelValue", "change"],
|
|
1023
1023
|
setup(d, { emit: r }) {
|
|
1024
|
-
const e = d,
|
|
1024
|
+
const e = d, b = r, m = we(), i = {
|
|
1025
1025
|
sm: {
|
|
1026
1026
|
track: "dk:w-8 dk:h-4",
|
|
1027
1027
|
thumb: "dk:w-3 dk:h-3",
|
|
@@ -1083,9 +1083,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1083
1083
|
warning: "dk:text-amber-600 dk:dark:text-amber-400",
|
|
1084
1084
|
danger: "dk:text-rose-600 dk:dark:text-rose-400"
|
|
1085
1085
|
}, v = o(() => e.modelValue ? D[e.color] : "dk:text-zinc-400 dk:dark:text-zinc-500");
|
|
1086
|
-
function
|
|
1086
|
+
function p(k) {
|
|
1087
1087
|
const f = k.target;
|
|
1088
|
-
|
|
1088
|
+
b("update:modelValue", f.checked), b("change", f.checked);
|
|
1089
1089
|
}
|
|
1090
1090
|
return (k, f) => (t(), a("label", {
|
|
1091
1091
|
class: n(s.value)
|
|
@@ -1094,7 +1094,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1094
1094
|
key: 0,
|
|
1095
1095
|
class: n(g.value)
|
|
1096
1096
|
}, [
|
|
1097
|
-
|
|
1097
|
+
_(k.$slots, "default", {}, () => [
|
|
1098
1098
|
A(j(d.label), 1)
|
|
1099
1099
|
]),
|
|
1100
1100
|
d.description ? (t(), a("span", {
|
|
@@ -1102,7 +1102,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1102
1102
|
class: n(h.value)
|
|
1103
1103
|
}, j(d.description), 3)) : S("", !0)
|
|
1104
1104
|
], 2)) : S("", !0),
|
|
1105
|
-
c("span",
|
|
1105
|
+
c("span", od, [
|
|
1106
1106
|
c("input", E({
|
|
1107
1107
|
type: "checkbox",
|
|
1108
1108
|
class: "dk:sr-only dk:peer",
|
|
@@ -1110,7 +1110,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1110
1110
|
"aria-checked": d.modelValue,
|
|
1111
1111
|
checked: d.modelValue,
|
|
1112
1112
|
disabled: d.disabled
|
|
1113
|
-
}, k.$attrs, { onChange:
|
|
1113
|
+
}, k.$attrs, { onChange: p }), null, 16, kd),
|
|
1114
1114
|
c("span", {
|
|
1115
1115
|
class: n(x.value)
|
|
1116
1116
|
}, null, 2),
|
|
@@ -1122,7 +1122,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1122
1122
|
"aria-hidden": "true",
|
|
1123
1123
|
class: n(v.value)
|
|
1124
1124
|
}, [
|
|
1125
|
-
d.modelValue ? (t(), a("svg",
|
|
1125
|
+
d.modelValue ? (t(), a("svg", nd, [...f[0] || (f[0] = [
|
|
1126
1126
|
c("path", {
|
|
1127
1127
|
d: "M3.5 6.5l2 2 3-3",
|
|
1128
1128
|
stroke: "currentColor",
|
|
@@ -1131,7 +1131,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1131
1131
|
"stroke-linejoin": "round",
|
|
1132
1132
|
fill: "none"
|
|
1133
1133
|
}, null, -1)
|
|
1134
|
-
])])) : (t(), a("svg",
|
|
1134
|
+
])])) : (t(), a("svg", sd, [...f[1] || (f[1] = [
|
|
1135
1135
|
c("line", {
|
|
1136
1136
|
x1: "3",
|
|
1137
1137
|
y1: "3",
|
|
@@ -1158,7 +1158,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1158
1158
|
key: 1,
|
|
1159
1159
|
class: n(g.value)
|
|
1160
1160
|
}, [
|
|
1161
|
-
|
|
1161
|
+
_(k.$slots, "default", {}, () => [
|
|
1162
1162
|
A(j(d.label), 1)
|
|
1163
1163
|
]),
|
|
1164
1164
|
d.description ? (t(), a("span", {
|
|
@@ -1168,13 +1168,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1168
1168
|
], 2)) : S("", !0)
|
|
1169
1169
|
], 2));
|
|
1170
1170
|
}
|
|
1171
|
-
}),
|
|
1171
|
+
}), ld = `
|
|
1172
1172
|
dk:px-4
|
|
1173
1173
|
dk:py-3
|
|
1174
1174
|
dk:text-sm
|
|
1175
1175
|
dk:leading-relaxed
|
|
1176
1176
|
dk:max-w-full
|
|
1177
|
-
`,
|
|
1177
|
+
`, Mt = /* @__PURE__ */ P({
|
|
1178
1178
|
__name: "DuiAlert",
|
|
1179
1179
|
props: {
|
|
1180
1180
|
variant: {
|
|
@@ -1198,7 +1198,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1198
1198
|
left: "dk:rounded-l",
|
|
1199
1199
|
right: "dk:rounded-r",
|
|
1200
1200
|
none: "dk:rounded-none"
|
|
1201
|
-
},
|
|
1201
|
+
}, b = {
|
|
1202
1202
|
solid: {
|
|
1203
1203
|
base: "",
|
|
1204
1204
|
neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
|
|
@@ -1228,20 +1228,20 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}, m = o(() => {
|
|
1230
1230
|
var s;
|
|
1231
|
-
const i = ((s =
|
|
1232
|
-
return [
|
|
1231
|
+
const i = ((s = b[r.variant]) == null ? void 0 : s[r.color]) || "", z = b[r.variant].base || "", y = e[r.rounded] || "";
|
|
1232
|
+
return [ld, z, i, y].join(" ");
|
|
1233
1233
|
});
|
|
1234
1234
|
return (i, z) => (t(), a("div", {
|
|
1235
1235
|
class: n(m.value),
|
|
1236
1236
|
role: "alert"
|
|
1237
1237
|
}, [
|
|
1238
|
-
|
|
1238
|
+
_(i.$slots, "default")
|
|
1239
1239
|
], 2));
|
|
1240
1240
|
}
|
|
1241
|
-
}),
|
|
1241
|
+
}), id = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, cd = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, ud = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200 dk:relative" }, bd = { key: 0 }, pd = ["colspan"], gd = {
|
|
1242
1242
|
key: 0,
|
|
1243
1243
|
class: "dk:bg-gray-50 dk:dark:bg-gray-700 dk:border-t dk:border-gray-200 dk:dark:border-gray-600"
|
|
1244
|
-
},
|
|
1244
|
+
}, md = ["colspan"], fd = { class: "pagination-container" }, hd = { class: "pagination-info" }, xd = { class: "pagination-buttons" }, vd = { class: "page-numbers" }, yd = ["onClick"], wd = /* @__PURE__ */ P({
|
|
1245
1245
|
__name: "DuiTable",
|
|
1246
1246
|
props: {
|
|
1247
1247
|
columns: {
|
|
@@ -1263,7 +1263,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1263
1263
|
},
|
|
1264
1264
|
emits: ["paginate"],
|
|
1265
1265
|
setup(d, { emit: r }) {
|
|
1266
|
-
const e = d,
|
|
1266
|
+
const e = d, b = r, m = o(() => e.pagination ? Math.ceil(e.pagination.total / e.pagination.perPage) : 0), i = o(() => {
|
|
1267
1267
|
if (!e.pagination) return [];
|
|
1268
1268
|
const y = [], s = 5, { page: g } = e.pagination, h = m.value;
|
|
1269
1269
|
let x = Math.max(1, g - Math.floor(s / 2)), C = Math.min(h, x + s - 1);
|
|
@@ -1272,24 +1272,24 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1272
1272
|
y.push(D);
|
|
1273
1273
|
return y;
|
|
1274
1274
|
}), z = (y) => {
|
|
1275
|
-
e.pagination && y >= 1 && y <= m.value &&
|
|
1275
|
+
e.pagination && y >= 1 && y <= m.value && b("paginate", y);
|
|
1276
1276
|
};
|
|
1277
|
-
return (y, s) => (t(), a("div",
|
|
1278
|
-
c("table",
|
|
1279
|
-
c("thead",
|
|
1277
|
+
return (y, s) => (t(), a("div", id, [
|
|
1278
|
+
c("table", cd, [
|
|
1279
|
+
c("thead", ud, [
|
|
1280
1280
|
c("tr", null, [
|
|
1281
1281
|
(t(!0), a(I, null, F(e.columns, (g) => (t(), a("th", {
|
|
1282
1282
|
key: g.name,
|
|
1283
1283
|
class: n(["dk:px-6 dk:py-3", g.classes])
|
|
1284
1284
|
}, j(g.label), 3))), 128))
|
|
1285
1285
|
]),
|
|
1286
|
-
e.loading ? (t(), a("tr",
|
|
1286
|
+
e.loading ? (t(), a("tr", bd, [
|
|
1287
1287
|
c("td", {
|
|
1288
1288
|
colspan: e.columns.length,
|
|
1289
1289
|
class: "dk:p-0"
|
|
1290
1290
|
}, [...s[2] || (s[2] = [
|
|
1291
1291
|
c("div", { class: "loading-bar" }, null, -1)
|
|
1292
|
-
])], 8,
|
|
1292
|
+
])], 8, pd)
|
|
1293
1293
|
])) : S("", !0)
|
|
1294
1294
|
]),
|
|
1295
1295
|
c("tbody", {
|
|
@@ -1303,22 +1303,22 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1303
1303
|
key: x.name,
|
|
1304
1304
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
1305
1305
|
}, [
|
|
1306
|
-
|
|
1306
|
+
_(y.$slots, x.name, E({ ref_for: !0 }, g), () => [
|
|
1307
1307
|
A(j(g[x.name]), 1)
|
|
1308
1308
|
], !0)
|
|
1309
1309
|
]))), 128))
|
|
1310
1310
|
]))), 128))
|
|
1311
1311
|
], 2),
|
|
1312
|
-
e.pagination ? (t(), a("tfoot",
|
|
1312
|
+
e.pagination ? (t(), a("tfoot", gd, [
|
|
1313
1313
|
c("tr", null, [
|
|
1314
1314
|
c("td", {
|
|
1315
1315
|
colspan: e.columns.length,
|
|
1316
1316
|
class: "dk:px-6 dk:py-4"
|
|
1317
1317
|
}, [
|
|
1318
|
-
c("div",
|
|
1319
|
-
c("div",
|
|
1320
|
-
c("div",
|
|
1321
|
-
|
|
1318
|
+
c("div", fd, [
|
|
1319
|
+
c("div", hd, " Página " + j(e.pagination.page) + " de " + j(m.value) + " | " + j(e.pagination.total) + " registros ", 1),
|
|
1320
|
+
c("div", xd, [
|
|
1321
|
+
te(ie, {
|
|
1322
1322
|
variant: "outline",
|
|
1323
1323
|
color: "neutral",
|
|
1324
1324
|
size: "sm",
|
|
@@ -1330,14 +1330,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1330
1330
|
])]),
|
|
1331
1331
|
_: 1
|
|
1332
1332
|
}, 8, ["disabled"]),
|
|
1333
|
-
c("div",
|
|
1333
|
+
c("div", vd, [
|
|
1334
1334
|
(t(!0), a(I, null, F(i.value, (g) => (t(), a("button", {
|
|
1335
1335
|
key: g,
|
|
1336
1336
|
onClick: (h) => z(g),
|
|
1337
1337
|
class: n(["page-number", { active: g === e.pagination.page }])
|
|
1338
|
-
}, j(g), 11,
|
|
1338
|
+
}, j(g), 11, yd))), 128))
|
|
1339
1339
|
]),
|
|
1340
|
-
|
|
1340
|
+
te(ie, {
|
|
1341
1341
|
variant: "outline",
|
|
1342
1342
|
color: "neutral",
|
|
1343
1343
|
size: "sm",
|
|
@@ -1351,13 +1351,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1351
1351
|
}, 8, ["disabled"])
|
|
1352
1352
|
])
|
|
1353
1353
|
])
|
|
1354
|
-
], 8,
|
|
1354
|
+
], 8, md)
|
|
1355
1355
|
])
|
|
1356
1356
|
])) : S("", !0)
|
|
1357
1357
|
])
|
|
1358
1358
|
]));
|
|
1359
1359
|
}
|
|
1360
|
-
}),
|
|
1360
|
+
}), Dt = /* @__PURE__ */ ne(wd, [["__scopeId", "data-v-60002528"]]), zd = { key: 1 }, Cd = `
|
|
1361
1361
|
dk:transition
|
|
1362
1362
|
dk:text-center
|
|
1363
1363
|
dk:disabled:opacity-50
|
|
@@ -1381,7 +1381,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1381
1381
|
to: { default: void 0 }
|
|
1382
1382
|
},
|
|
1383
1383
|
setup(d) {
|
|
1384
|
-
const r = d, e = o(() => r.to ? oe(r.to) : "span"),
|
|
1384
|
+
const r = d, e = o(() => r.to ? oe(r.to) : "span"), b = o(() => ue(r.to, e.value)), m = {
|
|
1385
1385
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
1386
1386
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
1387
1387
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -1567,22 +1567,22 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1567
1567
|
}, y = o(() => {
|
|
1568
1568
|
var C;
|
|
1569
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] || "";
|
|
1570
|
-
return [
|
|
1570
|
+
return [Cd, s, g, h, x].join(" ");
|
|
1571
1571
|
});
|
|
1572
|
-
return (s, g) => (t(), O(Q(e.value), E(
|
|
1572
|
+
return (s, g) => (t(), O(Q(e.value), E(b.value, {
|
|
1573
1573
|
class: y.value,
|
|
1574
1574
|
title: r.title
|
|
1575
1575
|
}), {
|
|
1576
1576
|
default: W(() => [
|
|
1577
|
-
r.loading ? (t(), a("span",
|
|
1577
|
+
r.loading ? (t(), a("span", zd, "Cargando...")) : _(s.$slots, "default", {}, void 0, void 0, 0)
|
|
1578
1578
|
]),
|
|
1579
1579
|
_: 3
|
|
1580
1580
|
}, 16, ["class", "title"]));
|
|
1581
1581
|
}
|
|
1582
|
-
}),
|
|
1582
|
+
}), $d = {
|
|
1583
1583
|
key: 0,
|
|
1584
1584
|
class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
|
|
1585
|
-
},
|
|
1585
|
+
}, Sd = ["src", "alt"], _t = /* @__PURE__ */ P({
|
|
1586
1586
|
__name: "DuiCard",
|
|
1587
1587
|
props: {
|
|
1588
1588
|
size: { default: "m" },
|
|
@@ -1592,9 +1592,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1592
1592
|
to: { default: void 0 }
|
|
1593
1593
|
},
|
|
1594
1594
|
setup(d) {
|
|
1595
|
-
const r = d, e = () => r.to ? oe(r.to) : "div",
|
|
1596
|
-
const
|
|
1597
|
-
return ue(r.to,
|
|
1595
|
+
const r = d, e = () => r.to ? oe(r.to) : "div", b = () => r.to ? oe(r.to) : "h3", m = () => {
|
|
1596
|
+
const p = e();
|
|
1597
|
+
return ue(r.to, p);
|
|
1598
1598
|
}, i = {
|
|
1599
1599
|
s: {
|
|
1600
1600
|
padding: "dk:p-3",
|
|
@@ -1637,10 +1637,10 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1637
1637
|
"dk:w-full dk:h-48 dk:object-cover",
|
|
1638
1638
|
"dk:relative dk:z-10"
|
|
1639
1639
|
].join(" ")), s = o(() => {
|
|
1640
|
-
const
|
|
1640
|
+
const p = i[r.size];
|
|
1641
1641
|
return [
|
|
1642
|
-
|
|
1643
|
-
|
|
1642
|
+
p.padding,
|
|
1643
|
+
p.spacing,
|
|
1644
1644
|
// Glass effect for content wrapper
|
|
1645
1645
|
"dk:relative dk:z-10"
|
|
1646
1646
|
].join(" ");
|
|
@@ -1657,13 +1657,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1657
1657
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
1658
1658
|
), k.join(" ");
|
|
1659
1659
|
}), x = o(() => {
|
|
1660
|
-
const
|
|
1660
|
+
const p = [
|
|
1661
1661
|
"dk:block",
|
|
1662
1662
|
"dk:transition-transform dk:duration-300",
|
|
1663
1663
|
"dk:hover:scale-105",
|
|
1664
1664
|
"dk:relative dk:z-10"
|
|
1665
1665
|
];
|
|
1666
|
-
return r.to &&
|
|
1666
|
+
return r.to && p.push("dk:no-underline"), p.join(" ");
|
|
1667
1667
|
}), C = o(() => [
|
|
1668
1668
|
i[r.size].subtitleSize,
|
|
1669
1669
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
@@ -1676,17 +1676,17 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1676
1676
|
"dk:pt-3 dk:mt-3",
|
|
1677
1677
|
"dk:relative dk:z-10"
|
|
1678
1678
|
].join(" "));
|
|
1679
|
-
return (
|
|
1679
|
+
return (p, k) => (t(), a("div", {
|
|
1680
1680
|
class: n(z.value)
|
|
1681
1681
|
}, [
|
|
1682
|
-
d.image ? (t(), a("div",
|
|
1682
|
+
d.image ? (t(), a("div", $d, [
|
|
1683
1683
|
(t(), O(Q(e()), E(m(), { class: x.value }), {
|
|
1684
1684
|
default: W(() => [
|
|
1685
1685
|
c("img", {
|
|
1686
1686
|
src: d.image,
|
|
1687
1687
|
alt: d.title || "Card image",
|
|
1688
1688
|
class: n(y.value)
|
|
1689
|
-
}, null, 10,
|
|
1689
|
+
}, null, 10, Sd)
|
|
1690
1690
|
]),
|
|
1691
1691
|
_: 1
|
|
1692
1692
|
}, 16, ["class"]))
|
|
@@ -1698,7 +1698,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1698
1698
|
key: 0,
|
|
1699
1699
|
class: n(g.value)
|
|
1700
1700
|
}, [
|
|
1701
|
-
d.title ? (t(), O(Q(
|
|
1701
|
+
d.title ? (t(), O(Q(b()), E({ key: 0 }, m(), { class: h.value }), {
|
|
1702
1702
|
default: W(() => [
|
|
1703
1703
|
A(j(d.title), 1)
|
|
1704
1704
|
]),
|
|
@@ -1709,22 +1709,22 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1709
1709
|
class: n(C.value)
|
|
1710
1710
|
}, j(d.subtitle), 3)) : S("", !0)
|
|
1711
1711
|
], 2)) : S("", !0),
|
|
1712
|
-
|
|
1712
|
+
p.$slots.default ? (t(), a("div", {
|
|
1713
1713
|
key: 1,
|
|
1714
1714
|
class: n(D.value)
|
|
1715
1715
|
}, [
|
|
1716
|
-
|
|
1716
|
+
_(p.$slots, "default")
|
|
1717
1717
|
], 2)) : S("", !0),
|
|
1718
|
-
|
|
1718
|
+
p.$slots.footer ? (t(), a("div", {
|
|
1719
1719
|
key: 2,
|
|
1720
1720
|
class: n(v.value)
|
|
1721
1721
|
}, [
|
|
1722
|
-
|
|
1722
|
+
_(p.$slots, "footer")
|
|
1723
1723
|
], 2)) : S("", !0)
|
|
1724
1724
|
], 2)
|
|
1725
1725
|
], 2));
|
|
1726
1726
|
}
|
|
1727
|
-
}),
|
|
1727
|
+
}), jd = ["aria-labelledby", "aria-describedby"], Pt = /* @__PURE__ */ P({
|
|
1728
1728
|
__name: "DuiModal",
|
|
1729
1729
|
props: {
|
|
1730
1730
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1745,7 +1745,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1745
1745
|
},
|
|
1746
1746
|
emits: ["update:modelValue", "open", "close", "backdrop", "escape"],
|
|
1747
1747
|
setup(d, { emit: r }) {
|
|
1748
|
-
const e = d,
|
|
1748
|
+
const e = d, b = r, m = Math.random().toString(36).slice(2, 10), i = `dui-modal-title-${m}`, z = `dui-modal-description-${m}`, y = {
|
|
1749
1749
|
all: "dk:rounded-xl",
|
|
1750
1750
|
top: "dk:rounded-t-xl",
|
|
1751
1751
|
bottom: "dk:rounded-b-xl",
|
|
@@ -1809,7 +1809,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1809
1809
|
].join(" ")), v = o(() => [
|
|
1810
1810
|
"dk:px-5 dk:py-4",
|
|
1811
1811
|
e.scrollable ? "dk:max-h-[65vh] dk:overflow-y-auto" : ""
|
|
1812
|
-
].join(" ")),
|
|
1812
|
+
].join(" ")), p = o(() => [
|
|
1813
1813
|
"dk:px-5 dk:py-4 dk:border-t dk:border-current/10",
|
|
1814
1814
|
"dk:flex dk:items-center dk:justify-end dk:gap-2"
|
|
1815
1815
|
].join(" "));
|
|
@@ -1824,25 +1824,25 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1824
1824
|
$.dataset.duiModalCount = String(L), L === 0 && ($.style.overflow = "");
|
|
1825
1825
|
}
|
|
1826
1826
|
function w($) {
|
|
1827
|
-
|
|
1827
|
+
b("update:modelValue", !1), b("close", $);
|
|
1828
1828
|
}
|
|
1829
1829
|
function l() {
|
|
1830
|
-
|
|
1830
|
+
b("backdrop"), !(e.persistent || !e.closeOnBackdrop) && w("backdrop");
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1833
|
-
$.key !== "Escape" || !e.modelValue || (
|
|
1832
|
+
function u($) {
|
|
1833
|
+
$.key !== "Escape" || !e.modelValue || (b("escape"), !(e.persistent || !e.closeOnEsc) && w("escape"));
|
|
1834
1834
|
}
|
|
1835
1835
|
return ae(
|
|
1836
1836
|
() => e.modelValue,
|
|
1837
1837
|
($, M) => {
|
|
1838
|
-
$ && !M && (k(),
|
|
1838
|
+
$ && !M && (k(), b("open")), !$ && M && f();
|
|
1839
1839
|
}
|
|
1840
1840
|
), me(() => {
|
|
1841
|
-
e.modelValue && k(), typeof window < "u" && window.addEventListener("keydown",
|
|
1841
|
+
e.modelValue && k(), typeof window < "u" && window.addEventListener("keydown", u);
|
|
1842
1842
|
}), fe(() => {
|
|
1843
|
-
e.modelValue && f(), typeof window < "u" && window.removeEventListener("keydown",
|
|
1843
|
+
e.modelValue && f(), typeof window < "u" && window.removeEventListener("keydown", u);
|
|
1844
1844
|
}), ($, M) => (t(), O(he, { to: "body" }, [
|
|
1845
|
-
|
|
1845
|
+
te(xe, {
|
|
1846
1846
|
"enter-active-class": "dk:transition-opacity dk:duration-200",
|
|
1847
1847
|
"leave-active-class": "dk:transition-opacity dk:duration-200",
|
|
1848
1848
|
"enter-from-class": "dk:opacity-0",
|
|
@@ -1864,7 +1864,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1864
1864
|
"aria-labelledby": e.title ? i : void 0,
|
|
1865
1865
|
"aria-describedby": e.description ? z : void 0,
|
|
1866
1866
|
class: n(C.value),
|
|
1867
|
-
onClick: M[1] || (M[1] =
|
|
1867
|
+
onClick: M[1] || (M[1] = ee(() => {
|
|
1868
1868
|
}, ["stop"]))
|
|
1869
1869
|
}, [
|
|
1870
1870
|
$.$slots.header || e.title || e.description || e.showClose ? (t(), a("header", {
|
|
@@ -1872,7 +1872,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1872
1872
|
class: n(D.value)
|
|
1873
1873
|
}, [
|
|
1874
1874
|
c("div", null, [
|
|
1875
|
-
|
|
1875
|
+
_($.$slots, "header", {}, () => [
|
|
1876
1876
|
e.title ? (t(), a("h2", {
|
|
1877
1877
|
key: 0,
|
|
1878
1878
|
id: i,
|
|
@@ -1898,15 +1898,15 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1898
1898
|
c("section", {
|
|
1899
1899
|
class: n(v.value)
|
|
1900
1900
|
}, [
|
|
1901
|
-
|
|
1901
|
+
_($.$slots, "default")
|
|
1902
1902
|
], 2),
|
|
1903
1903
|
$.$slots.footer ? (t(), a("footer", {
|
|
1904
1904
|
key: 1,
|
|
1905
|
-
class: n(
|
|
1905
|
+
class: n(p.value)
|
|
1906
1906
|
}, [
|
|
1907
|
-
|
|
1907
|
+
_($.$slots, "footer")
|
|
1908
1908
|
], 2)) : S("", !0)
|
|
1909
|
-
], 10,
|
|
1909
|
+
], 10, jd)
|
|
1910
1910
|
], 2)
|
|
1911
1911
|
], 6)) : S("", !0)
|
|
1912
1912
|
]),
|
|
@@ -1914,7 +1914,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1914
1914
|
})
|
|
1915
1915
|
]));
|
|
1916
1916
|
}
|
|
1917
|
-
}),
|
|
1917
|
+
}), Vd = ["aria-describedby"], Bd = { class: "dk:inline-flex dk:items-center" }, Lt = /* @__PURE__ */ P({
|
|
1918
1918
|
__name: "DuiTooltip",
|
|
1919
1919
|
props: {
|
|
1920
1920
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -1940,9 +1940,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1940
1940
|
},
|
|
1941
1941
|
emits: ["update:modelValue", "open", "close"],
|
|
1942
1942
|
setup(d, { emit: r }) {
|
|
1943
|
-
const e = d,
|
|
1943
|
+
const e = d, b = 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);
|
|
1944
1944
|
let C = null, D = null;
|
|
1945
|
-
const v = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`,
|
|
1945
|
+
const v = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`, p = {
|
|
1946
1946
|
all: "dk:rounded-md",
|
|
1947
1947
|
top: "dk:rounded-t-md",
|
|
1948
1948
|
bottom: "dk:rounded-b-md",
|
|
@@ -1982,14 +1982,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
1982
1982
|
warning: "dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",
|
|
1983
1983
|
danger: "dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"
|
|
1984
1984
|
}
|
|
1985
|
-
},
|
|
1986
|
-
const B =
|
|
1985
|
+
}, u = o(() => {
|
|
1986
|
+
const B = p[e.rounded], V = k[e.size], T = l[e.variant].base, K = l[e.variant][e.color], N = w(e.maxWidth) ? f[e.maxWidth] : "";
|
|
1987
1987
|
return [
|
|
1988
1988
|
"dk:fixed dk:pointer-events-auto dk:leading-tight dk:select-text dk:cursor-default",
|
|
1989
1989
|
"dk:break-words dk:whitespace-normal",
|
|
1990
1990
|
B,
|
|
1991
1991
|
V,
|
|
1992
|
-
|
|
1992
|
+
T,
|
|
1993
1993
|
K,
|
|
1994
1994
|
N
|
|
1995
1995
|
].join(" ");
|
|
@@ -2001,7 +2001,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2001
2001
|
};
|
|
2002
2002
|
return typeof e.maxWidth == "number" ? B.maxWidth = `${e.maxWidth}px` : typeof e.maxWidth == "string" && !w(e.maxWidth) && (B.maxWidth = e.maxWidth), B;
|
|
2003
2003
|
}), M = o(() => {
|
|
2004
|
-
const B = l[e.variant][e.color], V = g.value,
|
|
2004
|
+
const B = l[e.variant][e.color], V = g.value, T = {
|
|
2005
2005
|
top: "dk:-bottom-1.5 dk:left-1/2 dk:-translate-x-1/2 dk:rotate-45",
|
|
2006
2006
|
"top-start": "dk:-bottom-1.5 dk:left-3 dk:rotate-45",
|
|
2007
2007
|
"top-end": "dk:-bottom-1.5 dk:right-3 dk:rotate-45",
|
|
@@ -2018,16 +2018,16 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2018
2018
|
return [
|
|
2019
2019
|
"dk:absolute dk:block dk:h-3 dk:w-3",
|
|
2020
2020
|
B,
|
|
2021
|
-
|
|
2021
|
+
T[V] || T.top
|
|
2022
2022
|
].join(" ");
|
|
2023
2023
|
});
|
|
2024
2024
|
function L() {
|
|
2025
2025
|
C && (clearTimeout(C), C = null), D && (clearTimeout(D), D = null);
|
|
2026
2026
|
}
|
|
2027
2027
|
function J(B, V) {
|
|
2028
|
-
e.disabled || (y.value ?
|
|
2028
|
+
e.disabled || (y.value ? b("update:modelValue", B) : z.value = B, B ? (b("open", V), le(() => {
|
|
2029
2029
|
X();
|
|
2030
|
-
})) :
|
|
2030
|
+
})) : b("close", V));
|
|
2031
2031
|
}
|
|
2032
2032
|
function Y(B) {
|
|
2033
2033
|
L(), C = setTimeout(() => {
|
|
@@ -2055,23 +2055,23 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2055
2055
|
"right-end": "left-end"
|
|
2056
2056
|
}[B];
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function de(B, V, T) {
|
|
2059
2059
|
const [K, N] = B.split("-"), G = e.offset;
|
|
2060
2060
|
let H = 0, U = 0;
|
|
2061
|
-
K === "top" && (H = V.top -
|
|
2062
|
-
const se = e.viewportPadding,
|
|
2063
|
-
return H = Math.min(Math.max(se, H), Pe -
|
|
2061
|
+
K === "top" && (H = V.top - T.height - G, N === "start" ? U = V.left : N === "end" ? U = V.right - T.width : U = V.left + V.width / 2 - T.width / 2), K === "bottom" && (H = V.bottom + G, N === "start" ? U = V.left : N === "end" ? U = V.right - T.width : U = V.left + V.width / 2 - T.width / 2), K === "left" && (U = V.left - T.width - G, N === "start" ? H = V.top : N === "end" ? H = V.bottom - T.height : H = V.top + V.height / 2 - T.height / 2), K === "right" && (U = V.right + G, N === "start" ? H = V.top : N === "end" ? H = V.bottom - T.height : H = V.top + V.height / 2 - T.height / 2);
|
|
2062
|
+
const se = e.viewportPadding, _e = window.innerWidth, Pe = window.innerHeight;
|
|
2063
|
+
return H = Math.min(Math.max(se, H), Pe - T.height - se), U = Math.min(Math.max(se, U), _e - T.width - se), { top: H, left: U };
|
|
2064
2064
|
}
|
|
2065
|
-
function $e(B, V,
|
|
2065
|
+
function $e(B, V, T) {
|
|
2066
2066
|
if (!e.flip) return !1;
|
|
2067
2067
|
const [K] = B.split("-"), N = e.offset, G = e.viewportPadding;
|
|
2068
|
-
return K === "top" ? V.top -
|
|
2068
|
+
return K === "top" ? V.top - T.height - N < G : K === "bottom" ? V.bottom + T.height + N > window.innerHeight - G : K === "left" ? V.left - T.width - N < G : V.right + T.width + N > window.innerWidth - G;
|
|
2069
2069
|
}
|
|
2070
2070
|
function X() {
|
|
2071
2071
|
if (!m.value || !i.value) return;
|
|
2072
2072
|
const B = m.value.getBoundingClientRect(), V = i.value.getBoundingClientRect();
|
|
2073
|
-
let
|
|
2074
|
-
$e(
|
|
2073
|
+
let T = e.placement;
|
|
2074
|
+
$e(T, B, V) && (T = be(T)), g.value = T, h.value = de(T, B, V);
|
|
2075
2075
|
}
|
|
2076
2076
|
function Se() {
|
|
2077
2077
|
e.trigger === "hover" && Y("hover");
|
|
@@ -2080,8 +2080,8 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2080
2080
|
var V;
|
|
2081
2081
|
if (e.trigger === "hover") {
|
|
2082
2082
|
if (e.interactive) {
|
|
2083
|
-
const
|
|
2084
|
-
if (
|
|
2083
|
+
const T = B.relatedTarget;
|
|
2084
|
+
if (T && ((V = i.value) != null && V.contains(T)))
|
|
2085
2085
|
return;
|
|
2086
2086
|
}
|
|
2087
2087
|
Z("hover");
|
|
@@ -2099,17 +2099,17 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2099
2099
|
function De() {
|
|
2100
2100
|
e.interactive && (x.value = !0, L());
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2103
|
-
var
|
|
2102
|
+
function Te(B) {
|
|
2103
|
+
var T;
|
|
2104
2104
|
if (!e.interactive) return;
|
|
2105
2105
|
const V = B.relatedTarget;
|
|
2106
|
-
V && ((
|
|
2106
|
+
V && ((T = m.value) != null && T.contains(V)) || (x.value = !1, Z("hover"));
|
|
2107
2107
|
}
|
|
2108
2108
|
function ve(B) {
|
|
2109
|
-
var
|
|
2109
|
+
var T, K;
|
|
2110
2110
|
if (e.trigger !== "click" || !s.value) return;
|
|
2111
2111
|
const V = B.target;
|
|
2112
|
-
(
|
|
2112
|
+
(T = m.value) != null && T.contains(V) || (K = i.value) != null && K.contains(V) || Z("outside");
|
|
2113
2113
|
}
|
|
2114
2114
|
return ae(
|
|
2115
2115
|
() => e.modelValue,
|
|
@@ -2139,16 +2139,16 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2139
2139
|
onFocusout: Be,
|
|
2140
2140
|
onClick: Me
|
|
2141
2141
|
}, [
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
c("span",
|
|
2142
|
+
_(B.$slots, "trigger", {}, () => [
|
|
2143
|
+
_(B.$slots, "default", {}, () => [
|
|
2144
|
+
c("span", Bd, j(e.fallbackTriggerText), 1)
|
|
2145
2145
|
])
|
|
2146
2146
|
])
|
|
2147
|
-
], 40,
|
|
2147
|
+
], 40, Vd),
|
|
2148
2148
|
(t(), O(he, {
|
|
2149
2149
|
to: e.teleportTo
|
|
2150
2150
|
}, [
|
|
2151
|
-
|
|
2151
|
+
te(xe, {
|
|
2152
2152
|
"enter-active-class": "dk:transition-opacity dk:duration-150",
|
|
2153
2153
|
"leave-active-class": "dk:transition-opacity dk:duration-100",
|
|
2154
2154
|
"enter-from-class": "dk:opacity-0",
|
|
@@ -2161,12 +2161,12 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2161
2161
|
ref: i,
|
|
2162
2162
|
id: v,
|
|
2163
2163
|
role: "tooltip",
|
|
2164
|
-
class: n(
|
|
2164
|
+
class: n(u.value),
|
|
2165
2165
|
style: ce($.value),
|
|
2166
2166
|
onMouseenter: De,
|
|
2167
|
-
onMouseleave:
|
|
2167
|
+
onMouseleave: Te
|
|
2168
2168
|
}, [
|
|
2169
|
-
|
|
2169
|
+
_(B.$slots, "content", {}, () => [
|
|
2170
2170
|
A(j(e.text), 1)
|
|
2171
2171
|
]),
|
|
2172
2172
|
e.arrow ? (t(), a("span", {
|
|
@@ -2181,7 +2181,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2181
2181
|
], 8, ["to"]))
|
|
2182
2182
|
], 64));
|
|
2183
2183
|
}
|
|
2184
|
-
}),
|
|
2184
|
+
}), Md = ["open"], Dd = ["onClick"], Td = { class: "dui-acc-title" }, _d = { class: "dui-acc-panel" }, Pd = /* @__PURE__ */ P({
|
|
2185
2185
|
__name: "DuiAccordion",
|
|
2186
2186
|
props: {
|
|
2187
2187
|
items: {},
|
|
@@ -2194,7 +2194,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2194
2194
|
},
|
|
2195
2195
|
emits: ["update:modelValue", "change"],
|
|
2196
2196
|
setup(d, { emit: r }) {
|
|
2197
|
-
const e = d,
|
|
2197
|
+
const e = d, b = r, m = q([]);
|
|
2198
2198
|
function i() {
|
|
2199
2199
|
return e.modelValue === void 0 ? m.value : Array.isArray(e.modelValue) ? e.modelValue : e.modelValue ? [e.modelValue] : [];
|
|
2200
2200
|
}
|
|
@@ -2203,9 +2203,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2203
2203
|
}
|
|
2204
2204
|
function y(w, l) {
|
|
2205
2205
|
if (l) return;
|
|
2206
|
-
const
|
|
2206
|
+
const u = i();
|
|
2207
2207
|
let $;
|
|
2208
|
-
e.multiple ? $ =
|
|
2208
|
+
e.multiple ? $ = u.includes(w) ? u.filter((M) => M !== w) : [...u, w] : $ = u.includes(w) ? [] : [w], m.value = $, b("update:modelValue", e.multiple ? $ : $[0] ?? ""), b("change", w);
|
|
2209
2209
|
}
|
|
2210
2210
|
const s = {
|
|
2211
2211
|
sm: {
|
|
@@ -2249,14 +2249,14 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2249
2249
|
danger: "dk:text-rose-500 dk:dark:text-rose-400"
|
|
2250
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");
|
|
2251
2251
|
function v(w, l) {
|
|
2252
|
-
const
|
|
2252
|
+
const u = s[e.size], $ = z(w), M = [
|
|
2253
2253
|
"dk:flex dk:w-full dk:items-center dk:select-none dk:outline-none",
|
|
2254
2254
|
"dk:transition-colors dk:duration-150",
|
|
2255
|
-
|
|
2255
|
+
u.summary
|
|
2256
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";
|
|
2257
2257
|
return [...M, ...L, J, Y].join(" ");
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function p(w) {
|
|
2260
2260
|
const l = s[e.size];
|
|
2261
2261
|
return [
|
|
2262
2262
|
"dk:flex-shrink-0 dk:transition-transform dk:duration-250 dk:ease-in-out dk:ml-auto",
|
|
@@ -2271,25 +2271,25 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2271
2271
|
return (w, l) => (t(), a("div", {
|
|
2272
2272
|
class: n(C.value)
|
|
2273
2273
|
}, [
|
|
2274
|
-
(t(!0), a(I, null, F(d.items, (
|
|
2275
|
-
key:
|
|
2276
|
-
open: z(
|
|
2274
|
+
(t(!0), a(I, null, F(d.items, (u, $) => (t(), a("details", {
|
|
2275
|
+
key: u.value ?? $,
|
|
2276
|
+
open: z(u.value ?? String($)),
|
|
2277
2277
|
class: n(D.value),
|
|
2278
|
-
onToggle: l[0] || (l[0] =
|
|
2278
|
+
onToggle: l[0] || (l[0] = ee(() => {
|
|
2279
2279
|
}, ["prevent"]))
|
|
2280
2280
|
}, [
|
|
2281
2281
|
c("summary", {
|
|
2282
|
-
class: n(v(
|
|
2283
|
-
onClick:
|
|
2282
|
+
class: n(v(u.value ?? String($), u.disabled)),
|
|
2283
|
+
onClick: ee((M) => y(u.value ?? String($), u.disabled), ["prevent"])
|
|
2284
2284
|
}, [
|
|
2285
|
-
|
|
2285
|
+
u.icon ? (t(), a("span", {
|
|
2286
2286
|
key: 0,
|
|
2287
2287
|
"aria-hidden": "true",
|
|
2288
2288
|
class: n(k.value)
|
|
2289
|
-
}, j(
|
|
2290
|
-
c("span", Td, j(
|
|
2289
|
+
}, j(u.icon), 3)) : S("", !0),
|
|
2290
|
+
c("span", Td, j(u.title), 1),
|
|
2291
2291
|
(t(), a("svg", {
|
|
2292
|
-
class: n(
|
|
2292
|
+
class: n(p(u.value ?? String($))),
|
|
2293
2293
|
viewBox: "0 0 16 16",
|
|
2294
2294
|
fill: "none",
|
|
2295
2295
|
stroke: "currentColor",
|
|
@@ -2300,20 +2300,20 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2300
2300
|
}, [...l[1] || (l[1] = [
|
|
2301
2301
|
c("polyline", { points: "4 6 8 10 12 6" }, null, -1)
|
|
2302
2302
|
])], 2))
|
|
2303
|
-
], 10,
|
|
2304
|
-
c("div",
|
|
2303
|
+
], 10, Dd),
|
|
2304
|
+
c("div", _d, [
|
|
2305
2305
|
c("div", {
|
|
2306
2306
|
class: n(f.value)
|
|
2307
2307
|
}, [
|
|
2308
|
-
|
|
2309
|
-
c("p", null, j(
|
|
2308
|
+
_(w.$slots, u.value ?? String($), {}, () => [
|
|
2309
|
+
c("p", null, j(u.content), 1)
|
|
2310
2310
|
], !0)
|
|
2311
2311
|
], 2)
|
|
2312
2312
|
])
|
|
2313
|
-
], 42,
|
|
2313
|
+
], 42, Md))), 128))
|
|
2314
2314
|
], 2));
|
|
2315
2315
|
}
|
|
2316
|
-
}),
|
|
2316
|
+
}), At = /* @__PURE__ */ ne(Pd, [["__scopeId", "data-v-9bd77ff3"]]), Ld = ["aria-label"], It = /* @__PURE__ */ P({
|
|
2317
2317
|
inheritAttrs: !1,
|
|
2318
2318
|
__name: "DuiBadge",
|
|
2319
2319
|
props: {
|
|
@@ -2328,7 +2328,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2328
2328
|
},
|
|
2329
2329
|
emits: ["dismiss"],
|
|
2330
2330
|
setup(d, { emit: r }) {
|
|
2331
|
-
const e = d,
|
|
2331
|
+
const e = d, b = r, m = {
|
|
2332
2332
|
xs: "dk:text-[10px] dk:leading-none dk:px-1.5 dk:py-0.5 dk:gap-1",
|
|
2333
2333
|
sm: "dk:text-xs dk:leading-none dk:px-2 dk:py-1 dk:gap-1",
|
|
2334
2334
|
md: "dk:text-sm dk:px-2.5 dk:py-1 dk:gap-1.5",
|
|
@@ -2370,8 +2370,8 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2370
2370
|
warning: "dk:bg-amber-500 dk:dark:bg-amber-400",
|
|
2371
2371
|
danger: "dk:bg-rose-500 dk:dark:bg-rose-400"
|
|
2372
2372
|
}, s = o(() => {
|
|
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],
|
|
2374
|
-
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], p = z[e.variant][e.color], k = e.href ? "dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity" : "";
|
|
2374
|
+
return [C, D, v, p, k].join(" ");
|
|
2375
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(() => [
|
|
2376
2376
|
"dk:-mr-0.5 dk:flex-shrink-0 dk:inline-flex dk:items-center dk:justify-center",
|
|
2377
2377
|
"dk:rounded-full dk:w-3.5 dk:h-3.5 dk:text-sm dk:leading-none",
|
|
@@ -2391,9 +2391,9 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2391
2391
|
d.dot ? (t(), a("span", {
|
|
2392
2392
|
key: 0,
|
|
2393
2393
|
class: n(g.value)
|
|
2394
|
-
}, null, 2)) :
|
|
2394
|
+
}, null, 2)) : _(C.$slots, "icon", {}, void 0, void 0, 1)
|
|
2395
2395
|
], 2)) : S("", !0),
|
|
2396
|
-
|
|
2396
|
+
_(C.$slots, "default", {}, () => [
|
|
2397
2397
|
A(j(d.label), 1)
|
|
2398
2398
|
]),
|
|
2399
2399
|
d.dismissible ? (t(), a("button", {
|
|
@@ -2401,13 +2401,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2401
2401
|
type: "button",
|
|
2402
2402
|
class: n(x.value),
|
|
2403
2403
|
"aria-label": d.label ? `Quitar ${d.label}` : "Quitar",
|
|
2404
|
-
onClick: D[0] || (D[0] =
|
|
2405
|
-
}, " × ", 10,
|
|
2404
|
+
onClick: D[0] || (D[0] = ee((v) => b("dismiss"), ["prevent"]))
|
|
2405
|
+
}, " × ", 10, Ld)) : S("", !0)
|
|
2406
2406
|
]),
|
|
2407
2407
|
_: 3
|
|
2408
2408
|
}, 16, ["href", "class"]));
|
|
2409
2409
|
}
|
|
2410
|
-
}),
|
|
2410
|
+
}), Ad = ["onKeydown"], Id = ["aria-label"], Wt = /* @__PURE__ */ P({
|
|
2411
2411
|
__name: "DuiDropdown",
|
|
2412
2412
|
props: {
|
|
2413
2413
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -2422,17 +2422,17 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2422
2422
|
},
|
|
2423
2423
|
emits: ["update:modelValue", "open", "close"],
|
|
2424
2424
|
setup(d, { emit: r }) {
|
|
2425
|
-
const e = d,
|
|
2425
|
+
const e = d, b = r, m = q(null), i = q(!1), z = o(() => e.modelValue !== void 0 ? e.modelValue : i.value);
|
|
2426
2426
|
function y() {
|
|
2427
2427
|
if (e.disabled) return;
|
|
2428
|
-
const
|
|
2429
|
-
i.value =
|
|
2428
|
+
const p = !z.value;
|
|
2429
|
+
i.value = p, b("update:modelValue", p), b(p ? "open" : "close");
|
|
2430
2430
|
}
|
|
2431
2431
|
function s() {
|
|
2432
|
-
i.value = !1,
|
|
2432
|
+
i.value = !1, b("update:modelValue", !1), b("close");
|
|
2433
2433
|
}
|
|
2434
|
-
function g(
|
|
2435
|
-
m.value && !m.value.contains(
|
|
2434
|
+
function g(p) {
|
|
2435
|
+
m.value && !m.value.contains(p.target) && s();
|
|
2436
2436
|
}
|
|
2437
2437
|
me(() => document.addEventListener("mousedown", g)), fe(() => document.removeEventListener("mousedown", g));
|
|
2438
2438
|
const h = {
|
|
@@ -2477,7 +2477,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2477
2477
|
x[e.rounded],
|
|
2478
2478
|
C[e.variant][e.color]
|
|
2479
2479
|
].join(" "));
|
|
2480
|
-
return (
|
|
2480
|
+
return (p, k) => (t(), a("div", {
|
|
2481
2481
|
ref_key: "wrapperRef",
|
|
2482
2482
|
ref: m,
|
|
2483
2483
|
class: "dk:relative dk:inline-block"
|
|
@@ -2485,13 +2485,13 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2485
2485
|
c("div", {
|
|
2486
2486
|
onClick: y,
|
|
2487
2487
|
onKeydown: [
|
|
2488
|
-
ye(
|
|
2489
|
-
ye(
|
|
2488
|
+
ye(ee(y, ["prevent"]), ["enter"]),
|
|
2489
|
+
ye(ee(y, ["prevent"]), ["space"])
|
|
2490
2490
|
]
|
|
2491
2491
|
}, [
|
|
2492
|
-
|
|
2493
|
-
], 40,
|
|
2494
|
-
|
|
2492
|
+
_(p.$slots, "trigger")
|
|
2493
|
+
], 40, Ad),
|
|
2494
|
+
te(xe, {
|
|
2495
2495
|
"enter-active-class": "dk:transition-all dk:duration-150 dk:ease-out",
|
|
2496
2496
|
"leave-active-class": "dk:transition-all dk:duration-100 dk:ease-in",
|
|
2497
2497
|
"enter-from-class": "dk:opacity-0 dk:scale-95",
|
|
@@ -2505,17 +2505,17 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2505
2505
|
role: "menu",
|
|
2506
2506
|
"aria-label": d.ariaLabel
|
|
2507
2507
|
}, [
|
|
2508
|
-
|
|
2509
|
-
], 14,
|
|
2508
|
+
_(p.$slots, "default")
|
|
2509
|
+
], 14, Id)) : S("", !0)
|
|
2510
2510
|
]),
|
|
2511
2511
|
_: 3
|
|
2512
2512
|
})
|
|
2513
2513
|
], 512));
|
|
2514
2514
|
}
|
|
2515
|
-
}),
|
|
2515
|
+
}), Wd = { class: "dk:flex-1 dk:truncate" }, Ed = {
|
|
2516
2516
|
key: 1,
|
|
2517
2517
|
class: "dk:ml-auto dk:opacity-60 dk:text-xs"
|
|
2518
|
-
},
|
|
2518
|
+
}, Et = /* @__PURE__ */ P({
|
|
2519
2519
|
__name: "DuiDropdownItem",
|
|
2520
2520
|
props: {
|
|
2521
2521
|
label: { default: void 0 },
|
|
@@ -2528,7 +2528,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2528
2528
|
},
|
|
2529
2529
|
emits: ["click"],
|
|
2530
2530
|
setup(d, { emit: r }) {
|
|
2531
|
-
const e = d,
|
|
2531
|
+
const e = d, b = r, m = o(() => e.href ? { href: e.href, target: e.target } : { type: "button", disabled: e.disabled }), i = {
|
|
2532
2532
|
sm: "dk:px-3 dk:py-1 dk:text-xs",
|
|
2533
2533
|
md: "dk:px-3 dk:py-2 dk:text-sm",
|
|
2534
2534
|
lg: "dk:px-4 dk:py-2.5 dk:text-base"
|
|
@@ -2537,7 +2537,7 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2537
2537
|
return [g, h, x, C].join(" ");
|
|
2538
2538
|
}), y = o(() => "dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");
|
|
2539
2539
|
function s(g) {
|
|
2540
|
-
e.disabled ||
|
|
2540
|
+
e.disabled || b("click", g);
|
|
2541
2541
|
}
|
|
2542
2542
|
return (g, h) => (t(), O(Q(d.href ? "a" : "button"), E(m.value, {
|
|
2543
2543
|
class: z.value,
|
|
@@ -2551,37 +2551,37 @@ const Ee = { key: 1 }, Oe = `
|
|
|
2551
2551
|
class: n(y.value),
|
|
2552
2552
|
"aria-hidden": "true"
|
|
2553
2553
|
}, [
|
|
2554
|
-
|
|
2554
|
+
_(g.$slots, "icon", {}, () => [
|
|
2555
2555
|
A(j(d.icon), 1)
|
|
2556
2556
|
])
|
|
2557
2557
|
], 2)) : S("", !0),
|
|
2558
|
-
c("span",
|
|
2559
|
-
|
|
2558
|
+
c("span", Wd, [
|
|
2559
|
+
_(g.$slots, "default", {}, () => [
|
|
2560
2560
|
A(j(d.label), 1)
|
|
2561
2561
|
])
|
|
2562
2562
|
]),
|
|
2563
|
-
g.$slots.trailing ? (t(), a("span",
|
|
2564
|
-
|
|
2563
|
+
g.$slots.trailing ? (t(), a("span", Ed, [
|
|
2564
|
+
_(g.$slots, "trailing")
|
|
2565
2565
|
])) : S("", !0)
|
|
2566
2566
|
]),
|
|
2567
2567
|
_: 3
|
|
2568
2568
|
}, 16, ["class", "aria-disabled"]));
|
|
2569
2569
|
}
|
|
2570
|
-
}),
|
|
2570
|
+
}), Od = {}, Nd = {
|
|
2571
2571
|
class: "dk:my-1 dk:border-current/10",
|
|
2572
2572
|
role: "separator",
|
|
2573
2573
|
"aria-orientation": "horizontal"
|
|
2574
2574
|
};
|
|
2575
|
-
function
|
|
2576
|
-
return t(), a("hr",
|
|
2575
|
+
function Fd(d, r) {
|
|
2576
|
+
return t(), a("hr", Nd);
|
|
2577
2577
|
}
|
|
2578
|
-
const
|
|
2578
|
+
const Ot = /* @__PURE__ */ ne(Od, [["render", Fd]]), Kd = ["aria-label"], qd = ["disabled", "aria-label"], Hd = {
|
|
2579
2579
|
key: 0,
|
|
2580
2580
|
class: "dk:hidden dk:sm:inline"
|
|
2581
|
-
},
|
|
2581
|
+
}, Ud = ["aria-label", "aria-current", "onClick"], Qd = ["disabled", "aria-label"], Gd = {
|
|
2582
2582
|
key: 0,
|
|
2583
2583
|
class: "dk:hidden dk:sm:inline"
|
|
2584
|
-
},
|
|
2584
|
+
}, Nt = /* @__PURE__ */ P({
|
|
2585
2585
|
__name: "DuiPagination",
|
|
2586
2586
|
props: {
|
|
2587
2587
|
modelValue: {},
|
|
@@ -2600,21 +2600,21 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2600
2600
|
},
|
|
2601
2601
|
emits: ["update:modelValue", "change"],
|
|
2602
2602
|
setup(d, { emit: r }) {
|
|
2603
|
-
const e = d,
|
|
2604
|
-
function i(
|
|
2605
|
-
|
|
2603
|
+
const e = d, b = r, m = o(() => Math.max(1, Math.ceil(e.total / e.perPage)));
|
|
2604
|
+
function i(p) {
|
|
2605
|
+
p < 1 || p > m.value || p === e.modelValue || (b("update:modelValue", p), b("change", p));
|
|
2606
2606
|
}
|
|
2607
2607
|
const z = o(() => {
|
|
2608
|
-
const
|
|
2609
|
-
if (
|
|
2610
|
-
return Array.from({ length:
|
|
2608
|
+
const p = m.value, k = e.modelValue, f = e.siblingCount, w = e.showBoundary ? 1 : 0;
|
|
2609
|
+
if (p <= 2 * f + 2 * w + 3)
|
|
2610
|
+
return Array.from({ length: p }, (M, L) => L + 1);
|
|
2611
2611
|
const l = [];
|
|
2612
2612
|
for (let M = 1; M <= w; M++) l.push(M);
|
|
2613
|
-
const
|
|
2614
|
-
|
|
2615
|
-
for (let M =
|
|
2616
|
-
$ <
|
|
2617
|
-
for (let M =
|
|
2613
|
+
const u = Math.max(w + 1, k - f), $ = Math.min(p - w, k + f);
|
|
2614
|
+
u > w + 1 && l.push("...");
|
|
2615
|
+
for (let M = u; M <= $; M++) l.push(M);
|
|
2616
|
+
$ < p - w && l.push("...");
|
|
2617
|
+
for (let M = p - w + 1; M <= p; M++) l.push(M);
|
|
2618
2618
|
return l;
|
|
2619
2619
|
}), y = {
|
|
2620
2620
|
sm: "dk:w-7 dk:h-7 dk:text-xs",
|
|
@@ -2650,10 +2650,10 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2650
2650
|
danger: "dk:bg-rose-100 dk:text-rose-800 dk:dark:bg-rose-800 dk:dark:text-rose-100"
|
|
2651
2651
|
}
|
|
2652
2652
|
}, h = o(() => "dk:flex dk:items-center dk:gap-1 dk:flex-wrap"), x = o(() => {
|
|
2653
|
-
const
|
|
2653
|
+
const p = y[e.size], k = s[e.rounded];
|
|
2654
2654
|
return [
|
|
2655
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",
|
|
2656
|
-
|
|
2656
|
+
p,
|
|
2657
2657
|
k,
|
|
2658
2658
|
"dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400"
|
|
2659
2659
|
].join(" ");
|
|
@@ -2663,14 +2663,14 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2663
2663
|
"dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700",
|
|
2664
2664
|
"dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"
|
|
2665
2665
|
].join(" "));
|
|
2666
|
-
function D(
|
|
2667
|
-
return
|
|
2666
|
+
function D(p) {
|
|
2667
|
+
return p === e.modelValue ? [x.value, g[e.variant][e.color]].join(" ") : [
|
|
2668
2668
|
x.value,
|
|
2669
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"
|
|
2670
2670
|
].join(" ");
|
|
2671
2671
|
}
|
|
2672
2672
|
const v = o(() => ["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none", y[e.size]].join(" "));
|
|
2673
|
-
return (
|
|
2673
|
+
return (p, k) => (t(), a("nav", {
|
|
2674
2674
|
"aria-label": d.ariaLabel,
|
|
2675
2675
|
class: n(h.value)
|
|
2676
2676
|
}, [
|
|
@@ -2693,8 +2693,8 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2693
2693
|
}, [
|
|
2694
2694
|
c("polyline", { points: "10 4 6 8 10 12" })
|
|
2695
2695
|
], -1)),
|
|
2696
|
-
d.showLabels ? (t(), a("span",
|
|
2697
|
-
], 10,
|
|
2696
|
+
d.showLabels ? (t(), a("span", Hd, j(d.prevLabel), 1)) : S("", !0)
|
|
2697
|
+
], 10, qd),
|
|
2698
2698
|
(t(!0), a(I, null, F(z.value, (f) => (t(), a(I, { key: f }, [
|
|
2699
2699
|
f === "..." ? (t(), a("span", {
|
|
2700
2700
|
key: 0,
|
|
@@ -2707,7 +2707,7 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2707
2707
|
"aria-current": d.modelValue === f ? "page" : void 0,
|
|
2708
2708
|
class: n(D(f)),
|
|
2709
2709
|
onClick: (w) => i(f)
|
|
2710
|
-
}, j(f), 11,
|
|
2710
|
+
}, j(f), 11, Ud))
|
|
2711
2711
|
], 64))), 128)),
|
|
2712
2712
|
c("button", {
|
|
2713
2713
|
type: "button",
|
|
@@ -2716,7 +2716,7 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2716
2716
|
class: n([C.value, d.modelValue >= m.value ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
|
|
2717
2717
|
onClick: k[1] || (k[1] = (f) => i(d.modelValue + 1))
|
|
2718
2718
|
}, [
|
|
2719
|
-
d.showLabels ? (t(), a("span",
|
|
2719
|
+
d.showLabels ? (t(), a("span", Gd, j(d.nextLabel), 1)) : S("", !0),
|
|
2720
2720
|
k[3] || (k[3] = c("svg", {
|
|
2721
2721
|
class: "dk:w-4 dk:h-4",
|
|
2722
2722
|
viewBox: "0 0 16 16",
|
|
@@ -2729,10 +2729,10 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2729
2729
|
}, [
|
|
2730
2730
|
c("polyline", { points: "6 4 10 8 6 12" })
|
|
2731
2731
|
], -1))
|
|
2732
|
-
], 10,
|
|
2733
|
-
], 10,
|
|
2732
|
+
], 10, Qd)
|
|
2733
|
+
], 10, Kd));
|
|
2734
2734
|
}
|
|
2735
|
-
}),
|
|
2735
|
+
}), Jd = /* @__PURE__ */ P({
|
|
2736
2736
|
__name: "DuiSkeleton",
|
|
2737
2737
|
props: {
|
|
2738
2738
|
variant: { default: "text" },
|
|
@@ -2746,7 +2746,7 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2746
2746
|
if (y !== void 0)
|
|
2747
2747
|
return typeof y == "number" ? `${y}px` : y;
|
|
2748
2748
|
}
|
|
2749
|
-
const
|
|
2749
|
+
const b = o(() => ({
|
|
2750
2750
|
width: e(r.width),
|
|
2751
2751
|
height: e(r.height)
|
|
2752
2752
|
})), m = {
|
|
@@ -2765,16 +2765,16 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2765
2765
|
].join(" "));
|
|
2766
2766
|
return (y, s) => (t(), a("span", {
|
|
2767
2767
|
class: n(z.value),
|
|
2768
|
-
style: ce(
|
|
2768
|
+
style: ce(b.value),
|
|
2769
2769
|
"aria-hidden": "true",
|
|
2770
2770
|
role: "presentation"
|
|
2771
2771
|
}, null, 6));
|
|
2772
2772
|
}
|
|
2773
|
-
}),
|
|
2773
|
+
}), Ft = /* @__PURE__ */ ne(Jd, [["__scopeId", "data-v-8c9c6005"]]), Xd = ["aria-label"], Yd = ["id", "aria-controls", "aria-selected", "disabled", "onClick", "onKeydown"], Zd = {
|
|
2774
2774
|
key: 0,
|
|
2775
2775
|
"aria-hidden": "true",
|
|
2776
2776
|
class: "dk:flex-shrink-0"
|
|
2777
|
-
},
|
|
2777
|
+
}, Rd = ["id", "aria-labelledby", "tabindex", "hidden"], Kt = /* @__PURE__ */ P({
|
|
2778
2778
|
__name: "DuiTabs",
|
|
2779
2779
|
props: {
|
|
2780
2780
|
modelValue: {},
|
|
@@ -2787,12 +2787,12 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2787
2787
|
},
|
|
2788
2788
|
emits: ["update:modelValue", "change"],
|
|
2789
2789
|
setup(d, { emit: r }) {
|
|
2790
|
-
const e = d,
|
|
2791
|
-
function i(v,
|
|
2792
|
-
|
|
2790
|
+
const e = d, b = r, m = Math.random().toString(36).slice(2, 8);
|
|
2791
|
+
function i(v, p) {
|
|
2792
|
+
p || (b("update:modelValue", v), b("change", v));
|
|
2793
2793
|
}
|
|
2794
|
-
function z(v,
|
|
2795
|
-
const k = e.tabs.filter((w) => !w.disabled).map((w) => w.value), f = k.indexOf(
|
|
2794
|
+
function z(v, p) {
|
|
2795
|
+
const k = e.tabs.filter((w) => !w.disabled).map((w) => w.value), f = k.indexOf(p);
|
|
2796
2796
|
if (v.key === "ArrowRight" || v.key === "ArrowDown") {
|
|
2797
2797
|
v.preventDefault();
|
|
2798
2798
|
const w = k[(f + 1) % k.length];
|
|
@@ -2817,28 +2817,28 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2817
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" },
|
|
2818
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" }
|
|
2819
2819
|
}, g = o(() => "dk:w-full"), h = o(() => {
|
|
2820
|
-
const v = "dk:flex dk:items-center dk:gap-0.5",
|
|
2820
|
+
const v = "dk:flex dk:items-center dk:gap-0.5", p = e.fullWidth ? "dk:w-full" : "", k = {
|
|
2821
2821
|
underline: "dk:border-b dk:border-zinc-200 dk:dark:border-zinc-700",
|
|
2822
2822
|
pills: "dk:gap-1",
|
|
2823
2823
|
boxed: "dk:bg-zinc-100 dk:dark:bg-zinc-800 dk:p-1 dk:rounded-xl dk:gap-1"
|
|
2824
2824
|
}[e.variant];
|
|
2825
|
-
return [v,
|
|
2825
|
+
return [v, p, k].join(" ");
|
|
2826
2826
|
});
|
|
2827
|
-
function x(v,
|
|
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 =
|
|
2827
|
+
function x(v, p) {
|
|
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 = p ? "dk:opacity-40 dk:cursor-not-allowed" : "dk:cursor-pointer", u = "dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";
|
|
2829
2829
|
if (e.variant === "underline") {
|
|
2830
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";
|
|
2831
|
-
return [k, f, L, l,
|
|
2831
|
+
return [k, f, L, l, u].join(" ");
|
|
2832
2832
|
}
|
|
2833
2833
|
if (e.variant === "pills") {
|
|
2834
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";
|
|
2835
|
-
return [k, f, L, l,
|
|
2835
|
+
return [k, f, L, l, u].join(" ");
|
|
2836
2836
|
}
|
|
2837
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" : "";
|
|
2838
|
-
return [k, f, $, l,
|
|
2838
|
+
return [k, f, $, l, u, M].join(" ");
|
|
2839
2839
|
}
|
|
2840
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(" "));
|
|
2841
|
-
return (v,
|
|
2841
|
+
return (v, p) => (t(), a("div", {
|
|
2842
2842
|
class: n(g.value)
|
|
2843
2843
|
}, [
|
|
2844
2844
|
c("div", {
|
|
@@ -2858,14 +2858,14 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2858
2858
|
onClick: (f) => i(k.value, k.disabled),
|
|
2859
2859
|
onKeydown: (f) => z(f, k.value)
|
|
2860
2860
|
}, [
|
|
2861
|
-
k.icon ? (t(), a("span",
|
|
2861
|
+
k.icon ? (t(), a("span", Zd, j(k.icon), 1)) : S("", !0),
|
|
2862
2862
|
A(" " + j(k.label) + " ", 1),
|
|
2863
2863
|
k.badge !== void 0 ? (t(), a("span", {
|
|
2864
2864
|
key: 1,
|
|
2865
2865
|
class: n(C.value)
|
|
2866
2866
|
}, j(k.badge), 3)) : S("", !0)
|
|
2867
|
-
], 42,
|
|
2868
|
-
], 10,
|
|
2867
|
+
], 42, Yd))), 128))
|
|
2868
|
+
], 10, Xd),
|
|
2869
2869
|
(t(!0), a(I, null, F(d.tabs, (k) => (t(), a("div", {
|
|
2870
2870
|
key: k.value,
|
|
2871
2871
|
id: `panel-${R(m)}-${k.value}`,
|
|
@@ -2875,8 +2875,8 @@ const Nt = /* @__PURE__ */ ne(Nd, [["render", Kd]]), qd = ["aria-label"], Hd = [
|
|
|
2875
2875
|
hidden: d.modelValue !== k.value,
|
|
2876
2876
|
class: n(D.value)
|
|
2877
2877
|
}, [
|
|
2878
|
-
|
|
2879
|
-
], 10,
|
|
2878
|
+
_(v.$slots, k.value)
|
|
2879
|
+
], 10, Rd))), 128))
|
|
2880
2880
|
], 2));
|
|
2881
2881
|
}
|
|
2882
2882
|
}), ke = ze({ toasts: [] });
|
|
@@ -2896,29 +2896,29 @@ function Ce(d) {
|
|
|
2896
2896
|
const r = ke.toasts.findIndex((e) => e.id === d);
|
|
2897
2897
|
r !== -1 && ke.toasts.splice(r, 1);
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function et() {
|
|
2900
2900
|
ke.toasts.splice(0);
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function dt() {
|
|
2903
2903
|
return {
|
|
2904
2904
|
toasts: Ae(ke.toasts),
|
|
2905
2905
|
add: re,
|
|
2906
2906
|
remove: Ce,
|
|
2907
|
-
clear:
|
|
2907
|
+
clear: et,
|
|
2908
2908
|
success: (d, r) => re({ ...r, message: d, color: "success" }),
|
|
2909
2909
|
error: (d, r) => re({ ...r, message: d, color: "danger" }),
|
|
2910
2910
|
warning: (d, r) => re({ ...r, message: d, color: "warning" }),
|
|
2911
2911
|
info: (d, r) => re({ ...r, message: d, color: "primary" })
|
|
2912
2912
|
};
|
|
2913
2913
|
}
|
|
2914
|
-
const
|
|
2914
|
+
const tt = {
|
|
2915
2915
|
key: 0,
|
|
2916
2916
|
"aria-hidden": "true",
|
|
2917
2917
|
class: "dk:flex-shrink-0 dk:text-lg"
|
|
2918
|
-
},
|
|
2918
|
+
}, rt = { class: "dk:flex-1 dk:min-w-0" }, at = {
|
|
2919
2919
|
key: 0,
|
|
2920
2920
|
class: "dk:text-sm dk:font-semibold dk:leading-snug"
|
|
2921
|
-
},
|
|
2921
|
+
}, ot = ["onClick"], kt = "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", qt = /* @__PURE__ */ P({
|
|
2922
2922
|
__name: "DuiToast",
|
|
2923
2923
|
props: {
|
|
2924
2924
|
position: { default: "top-right" },
|
|
@@ -2926,7 +2926,7 @@ const rt = {
|
|
|
2926
2926
|
zIndex: { default: 9999 }
|
|
2927
2927
|
},
|
|
2928
2928
|
setup(d) {
|
|
2929
|
-
const r = d, { toasts: e, remove:
|
|
2929
|
+
const r = d, { toasts: e, remove: b } = dt(), m = o(() => e.slice(0, r.maxToasts)), i = {
|
|
2930
2930
|
"top-right": "dk:top-4 dk:right-4 dk:items-end",
|
|
2931
2931
|
"top-left": "dk:top-4 dk:left-4 dk:items-start",
|
|
2932
2932
|
"top-center": "dk:top-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center",
|
|
@@ -2968,7 +2968,7 @@ const rt = {
|
|
|
2968
2968
|
"aria-live": "polite",
|
|
2969
2969
|
"aria-atomic": "false"
|
|
2970
2970
|
}, [
|
|
2971
|
-
|
|
2971
|
+
te(Ie, {
|
|
2972
2972
|
tag: "div",
|
|
2973
2973
|
class: n(y.value),
|
|
2974
2974
|
"enter-active-class": "dk:transition-all dk:duration-300 dk:ease-out",
|
|
@@ -2983,13 +2983,13 @@ const rt = {
|
|
|
2983
2983
|
role: "alert",
|
|
2984
2984
|
class: n(h(v.color))
|
|
2985
2985
|
}, [
|
|
2986
|
-
v.icon ? (t(), a("span",
|
|
2986
|
+
v.icon ? (t(), a("span", tt, j(v.icon), 1)) : (t(), a("span", {
|
|
2987
2987
|
key: 1,
|
|
2988
2988
|
class: n(x(v.color)),
|
|
2989
2989
|
"aria-hidden": "true"
|
|
2990
2990
|
}, null, 2)),
|
|
2991
|
-
c("div",
|
|
2992
|
-
v.title ? (t(), a("p",
|
|
2991
|
+
c("div", rt, [
|
|
2992
|
+
v.title ? (t(), a("p", at, j(v.title), 1)) : S("", !0),
|
|
2993
2993
|
c("p", {
|
|
2994
2994
|
class: n(["dk:text-sm dk:leading-snug", { "dk:opacity-80": v.title }])
|
|
2995
2995
|
}, j(v.message), 3)
|
|
@@ -2997,10 +2997,10 @@ const rt = {
|
|
|
2997
2997
|
v.closable ? (t(), a("button", {
|
|
2998
2998
|
key: 2,
|
|
2999
2999
|
type: "button",
|
|
3000
|
-
class: n(
|
|
3000
|
+
class: n(kt),
|
|
3001
3001
|
"aria-label": "Cerrar notificacion",
|
|
3002
|
-
onClick: (
|
|
3003
|
-
}, " × ", 8,
|
|
3002
|
+
onClick: (p) => R(b)(v.id)
|
|
3003
|
+
}, " × ", 8, ot)) : S("", !0)
|
|
3004
3004
|
], 2))), 128))
|
|
3005
3005
|
]),
|
|
3006
3006
|
_: 1
|
|
@@ -3008,23 +3008,23 @@ const rt = {
|
|
|
3008
3008
|
], 2)
|
|
3009
3009
|
]));
|
|
3010
3010
|
}
|
|
3011
|
-
}),
|
|
3011
|
+
}), nt = {
|
|
3012
3012
|
key: 0,
|
|
3013
3013
|
class: "dk:flex dk:items-center dk:gap-4 dk:flex-shrink-0"
|
|
3014
|
-
},
|
|
3014
|
+
}, st = { class: "dk:hidden dk:md:flex dk:items-center dk:flex-1" }, lt = {
|
|
3015
3015
|
key: 0,
|
|
3016
3016
|
class: "dk:relative dk:group"
|
|
3017
|
-
},
|
|
3017
|
+
}, it = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-56 dk:py-2 dk:mt-1 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:shadow-lg dk:border dk:border-white/40 dk:dark:border-zinc-800 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50" }, ct = {
|
|
3018
3018
|
key: 1,
|
|
3019
3019
|
class: "dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"
|
|
3020
|
-
},
|
|
3020
|
+
}, ut = {
|
|
3021
3021
|
class: "dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",
|
|
3022
3022
|
fill: "none",
|
|
3023
3023
|
viewBox: "0 0 24 24"
|
|
3024
|
-
},
|
|
3024
|
+
}, bt = ["d"], pt = { 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" }, gt = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, mt = { key: 0 }, ft = ["onClick"], ht = { class: "dk:flex dk:items-center" }, xt = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, vt = {
|
|
3025
3025
|
key: 0,
|
|
3026
3026
|
class: "dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"
|
|
3027
|
-
},
|
|
3027
|
+
}, Ht = /* @__PURE__ */ P({
|
|
3028
3028
|
__name: "DuiNavbar",
|
|
3029
3029
|
props: {
|
|
3030
3030
|
items: { default: () => [] },
|
|
@@ -3033,17 +3033,17 @@ const rt = {
|
|
|
3033
3033
|
underlineColor: { default: "primary" }
|
|
3034
3034
|
},
|
|
3035
3035
|
setup(d) {
|
|
3036
|
-
const r = d, e = q(!1),
|
|
3036
|
+
const r = d, e = q(!1), b = ze({}), m = (f) => oe(f.to), i = (f) => {
|
|
3037
3037
|
const w = m(f);
|
|
3038
3038
|
return ue(f.to, w);
|
|
3039
3039
|
}, z = () => {
|
|
3040
3040
|
e.value = !e.value;
|
|
3041
3041
|
}, y = () => {
|
|
3042
|
-
e.value = !1, Object.keys(
|
|
3043
|
-
|
|
3042
|
+
e.value = !1, Object.keys(b).forEach((f) => {
|
|
3043
|
+
b[f] = !1;
|
|
3044
3044
|
});
|
|
3045
3045
|
}, s = (f) => {
|
|
3046
|
-
|
|
3046
|
+
b[f] = !b[f];
|
|
3047
3047
|
}, g = {
|
|
3048
3048
|
s: {
|
|
3049
3049
|
height: "dk:h-12",
|
|
@@ -3100,10 +3100,10 @@ const rt = {
|
|
|
3100
3100
|
return f[r.underlineColor] || f.primary;
|
|
3101
3101
|
}, D = o(() => {
|
|
3102
3102
|
const f = g[r.size], w = C();
|
|
3103
|
-
return (l,
|
|
3104
|
-
const $ = l.active ?? !1, M =
|
|
3105
|
-
let
|
|
3106
|
-
return f.itemPadding.includes("px-2") ?
|
|
3103
|
+
return (l, u = !0) => {
|
|
3104
|
+
const $ = l.active ?? !1, M = u ? "dk:pl-3" : "dk:pl-2", L = "dk:pr-3", J = u ? "dk:pl-2" : "dk:pl-1", Y = "dk:pr-2", Z = u ? "dk:pl-4" : "dk:pl-3", be = "dk:pr-4";
|
|
3105
|
+
let de = "";
|
|
3106
|
+
return f.itemPadding.includes("px-2") ? de = `${J} ${Y} dk:py-1.5` : f.itemPadding.includes("px-4") ? de = `${Z} ${be} dk:py-3` : de = `${M} ${L} dk:py-2`, [
|
|
3107
3107
|
// Block style with animated underline
|
|
3108
3108
|
"dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300",
|
|
3109
3109
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
@@ -3115,7 +3115,7 @@ const rt = {
|
|
|
3115
3115
|
w,
|
|
3116
3116
|
"dk:before:transition-all dk:before:duration-300",
|
|
3117
3117
|
$ ? "dk:before:w-full dk:text-gray-900 dk:dark:text-gray-100" : "dk:before:w-0 dk:hover:before:w-full",
|
|
3118
|
-
|
|
3118
|
+
de
|
|
3119
3119
|
].join(" ");
|
|
3120
3120
|
};
|
|
3121
3121
|
}), v = o(() => [
|
|
@@ -3124,7 +3124,7 @@ const rt = {
|
|
|
3124
3124
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
3125
3125
|
"dk:transition-all dk:duration-200 dk:no-underline",
|
|
3126
3126
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"
|
|
3127
|
-
].join(" ")),
|
|
3127
|
+
].join(" ")), p = o(() => [
|
|
3128
3128
|
"dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
3129
3129
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg",
|
|
3130
3130
|
"dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15",
|
|
@@ -3141,17 +3141,17 @@ const rt = {
|
|
|
3141
3141
|
return (f, w) => (t(), a("nav", {
|
|
3142
3142
|
class: n(h.value)
|
|
3143
3143
|
}, [
|
|
3144
|
-
f.$slots.brand ? (t(), a("div",
|
|
3145
|
-
|
|
3144
|
+
f.$slots.brand ? (t(), a("div", nt, [
|
|
3145
|
+
_(f.$slots, "brand")
|
|
3146
3146
|
])) : S("", !0),
|
|
3147
|
-
c("div",
|
|
3147
|
+
c("div", st, [
|
|
3148
3148
|
c("div", {
|
|
3149
3149
|
class: n(x.value)
|
|
3150
3150
|
}, [
|
|
3151
3151
|
(t(!0), a(I, null, F(d.items, (l) => (t(), a(I, {
|
|
3152
3152
|
key: l.label
|
|
3153
3153
|
}, [
|
|
3154
|
-
l.children && l.children.length > 0 ? (t(), a("div",
|
|
3154
|
+
l.children && l.children.length > 0 ? (t(), a("div", lt, [
|
|
3155
3155
|
(t(), O(Q(m(l)), E({ ref_for: !0 }, i(l), {
|
|
3156
3156
|
class: D.value(l, !0)
|
|
3157
3157
|
}), {
|
|
@@ -3177,16 +3177,16 @@ const rt = {
|
|
|
3177
3177
|
]),
|
|
3178
3178
|
_: 2
|
|
3179
3179
|
}, 1040, ["class"])),
|
|
3180
|
-
c("div",
|
|
3181
|
-
(t(!0), a(I, null, F(l.children, (
|
|
3182
|
-
key:
|
|
3183
|
-
}, { ref_for: !0 }, i(
|
|
3180
|
+
c("div", it, [
|
|
3181
|
+
(t(!0), a(I, null, F(l.children, (u) => (t(), O(Q(m(u)), E({
|
|
3182
|
+
key: u.label
|
|
3183
|
+
}, { ref_for: !0 }, i(u), { class: v.value }), {
|
|
3184
3184
|
default: W(() => [
|
|
3185
|
-
|
|
3185
|
+
u.icon ? (t(), a("i", {
|
|
3186
3186
|
key: 0,
|
|
3187
|
-
class: n([
|
|
3187
|
+
class: n([u.icon, "dk:mr-2"])
|
|
3188
3188
|
}, null, 2)) : S("", !0),
|
|
3189
|
-
A(" " + j(
|
|
3189
|
+
A(" " + j(u.label), 1)
|
|
3190
3190
|
]),
|
|
3191
3191
|
_: 2
|
|
3192
3192
|
}, 1040, ["class"]))), 128))
|
|
@@ -3209,35 +3209,35 @@ const rt = {
|
|
|
3209
3209
|
], 64))), 128))
|
|
3210
3210
|
], 2)
|
|
3211
3211
|
]),
|
|
3212
|
-
f.$slots.actions ? (t(), a("div",
|
|
3213
|
-
|
|
3212
|
+
f.$slots.actions ? (t(), a("div", ct, [
|
|
3213
|
+
_(f.$slots, "actions")
|
|
3214
3214
|
])) : S("", !0),
|
|
3215
3215
|
c("button", {
|
|
3216
3216
|
type: "button",
|
|
3217
3217
|
onClick: z,
|
|
3218
3218
|
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"
|
|
3219
3219
|
}, [
|
|
3220
|
-
(t(), a("svg",
|
|
3220
|
+
(t(), a("svg", ut, [
|
|
3221
3221
|
c("path", {
|
|
3222
3222
|
"stroke-linecap": "round",
|
|
3223
3223
|
"stroke-linejoin": "round",
|
|
3224
3224
|
"stroke-width": "2",
|
|
3225
3225
|
d: e.value ? "M6 18L18 6M6 6l12 12" : "M4 6h16M4 12h16M4 18h16"
|
|
3226
|
-
}, null, 8,
|
|
3226
|
+
}, null, 8, bt)
|
|
3227
3227
|
]))
|
|
3228
3228
|
]),
|
|
3229
|
-
pe(c("div",
|
|
3230
|
-
c("div",
|
|
3229
|
+
pe(c("div", pt, [
|
|
3230
|
+
c("div", gt, [
|
|
3231
3231
|
(t(!0), a(I, null, F(d.items, (l) => (t(), a(I, {
|
|
3232
3232
|
key: l.label
|
|
3233
3233
|
}, [
|
|
3234
|
-
l.children && l.children.length > 0 ? (t(), a("div",
|
|
3234
|
+
l.children && l.children.length > 0 ? (t(), a("div", mt, [
|
|
3235
3235
|
c("button", {
|
|
3236
3236
|
type: "button",
|
|
3237
|
-
onClick: (
|
|
3238
|
-
class: n([
|
|
3237
|
+
onClick: (u) => s(l.label),
|
|
3238
|
+
class: n([p.value, "dk:justify-between"])
|
|
3239
3239
|
}, [
|
|
3240
|
-
c("div",
|
|
3240
|
+
c("div", ht, [
|
|
3241
3241
|
l.icon ? (t(), a("i", {
|
|
3242
3242
|
key: 0,
|
|
3243
3243
|
class: n([l.icon, "dk:mr-2"])
|
|
@@ -3245,7 +3245,7 @@ const rt = {
|
|
|
3245
3245
|
A(" " + j(l.label), 1)
|
|
3246
3246
|
]),
|
|
3247
3247
|
(t(), a("svg", {
|
|
3248
|
-
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", b[l.label] ? "dk:rotate-180" : ""]),
|
|
3249
3249
|
fill: "none",
|
|
3250
3250
|
stroke: "currentColor",
|
|
3251
3251
|
viewBox: "0 0 24 24"
|
|
@@ -3257,31 +3257,31 @@ const rt = {
|
|
|
3257
3257
|
d: "M19 9l-7 7-7-7"
|
|
3258
3258
|
}, null, -1)
|
|
3259
3259
|
])], 2))
|
|
3260
|
-
], 10,
|
|
3261
|
-
pe(c("div",
|
|
3262
|
-
(t(!0), a(I, null, F(l.children, (
|
|
3263
|
-
key:
|
|
3264
|
-
}, { ref_for: !0 }, i(
|
|
3260
|
+
], 10, ft),
|
|
3261
|
+
pe(c("div", xt, [
|
|
3262
|
+
(t(!0), a(I, null, F(l.children, (u) => (t(), O(Q(m(u)), E({
|
|
3263
|
+
key: u.label
|
|
3264
|
+
}, { ref_for: !0 }, i(u), {
|
|
3265
3265
|
class: k.value,
|
|
3266
3266
|
onClick: y
|
|
3267
3267
|
}), {
|
|
3268
3268
|
default: W(() => [
|
|
3269
|
-
|
|
3269
|
+
u.icon ? (t(), a("i", {
|
|
3270
3270
|
key: 0,
|
|
3271
|
-
class: n([
|
|
3271
|
+
class: n([u.icon, "dk:mr-2"])
|
|
3272
3272
|
}, null, 2)) : S("", !0),
|
|
3273
|
-
A(" " + j(
|
|
3273
|
+
A(" " + j(u.label), 1)
|
|
3274
3274
|
]),
|
|
3275
3275
|
_: 2
|
|
3276
3276
|
}, 1040, ["class"]))), 128))
|
|
3277
3277
|
], 512), [
|
|
3278
|
-
[ge,
|
|
3278
|
+
[ge, b[l.label]]
|
|
3279
3279
|
])
|
|
3280
3280
|
])) : (t(), O(Q(m(l)), E({
|
|
3281
3281
|
key: 1,
|
|
3282
3282
|
ref_for: !0
|
|
3283
3283
|
}, i(l), {
|
|
3284
|
-
class:
|
|
3284
|
+
class: p.value,
|
|
3285
3285
|
onClick: y
|
|
3286
3286
|
}), {
|
|
3287
3287
|
default: W(() => [
|
|
@@ -3294,8 +3294,8 @@ const rt = {
|
|
|
3294
3294
|
_: 2
|
|
3295
3295
|
}, 1040, ["class"]))
|
|
3296
3296
|
], 64))), 128)),
|
|
3297
|
-
f.$slots.actions ? (t(), a("div",
|
|
3298
|
-
|
|
3297
|
+
f.$slots.actions ? (t(), a("div", vt, [
|
|
3298
|
+
_(f.$slots, "actions")
|
|
3299
3299
|
])) : S("", !0)
|
|
3300
3300
|
])
|
|
3301
3301
|
], 512), [
|
|
@@ -3305,29 +3305,29 @@ const rt = {
|
|
|
3305
3305
|
}
|
|
3306
3306
|
});
|
|
3307
3307
|
export {
|
|
3308
|
-
|
|
3308
|
+
At as DuiAccordion,
|
|
3309
3309
|
Tt as DuiAction,
|
|
3310
|
-
|
|
3311
|
-
|
|
3310
|
+
Mt as DuiAlert,
|
|
3311
|
+
It as DuiBadge,
|
|
3312
3312
|
ie as DuiButton,
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3313
|
+
_t as DuiCard,
|
|
3314
|
+
jt as DuiCheckbox,
|
|
3315
|
+
Wt as DuiDropdown,
|
|
3316
|
+
Et as DuiDropdownItem,
|
|
3317
|
+
Ot as DuiDropdownSeparator,
|
|
3318
|
+
wt as DuiFile,
|
|
3319
|
+
zt as DuiInput,
|
|
3320
|
+
St as DuiLabel,
|
|
3321
|
+
Pt as DuiModal,
|
|
3322
|
+
Ht as DuiNavbar,
|
|
3323
|
+
Nt as DuiPagination,
|
|
3324
|
+
Vt as DuiRadio,
|
|
3325
|
+
$t as DuiSelect,
|
|
3326
|
+
Ft as DuiSkeleton,
|
|
3327
|
+
Bt as DuiSwitch,
|
|
3328
|
+
Dt as DuiTable,
|
|
3329
|
+
Kt as DuiTabs,
|
|
3330
|
+
Ct as DuiTextarea,
|
|
3331
|
+
qt as DuiToast,
|
|
3332
|
+
Lt as DuiTooltip
|
|
3333
3333
|
};
|