@dronico/droni-kit 1.22.2 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/droni-kit.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Pe, defineComponent as L, computed as k, openBlock as t, createBlock as W, resolveDynamicComponent as Q, mergeProps as O, withCtx as A, renderSlot as T, createElementBlock as a, ref as F, watch as re, normalizeClass as c, createElementVNode as p, withModifiers as R, toDisplayString as j, createCommentVNode as $, Fragment as E, renderList as K, createTextVNode as P, withDirectives as xe, vShow as he, useSlots as we, unref as Z, createVNode as J, onMounted as be, onBeforeUnmount as pe, Teleport as me, Transition as ne, normalizeStyle as ae, nextTick as ue, withKeys as ye, reactive as ze, readonly as Ie, TransitionGroup as Ae } from "vue";
|
|
2
2
|
function Ee() {
|
|
3
3
|
try {
|
|
4
|
-
const d =
|
|
4
|
+
const d = Pe(), r = d == null ? void 0 : d.appContext.app;
|
|
5
5
|
return r ? !!(r.config.globalProperties.$router || r.config.globalProperties.$route || r.component("RouterLink")) : typeof window < "u" ? !!window.VueRouter : !1;
|
|
6
6
|
} catch {
|
|
7
7
|
return !1;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function se(d) {
|
|
11
11
|
return d ? Ee() ? "RouterLink" : "a" : "button";
|
|
12
12
|
}
|
|
13
13
|
function fe(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 We = { key: 1 }, Oe = `
|
|
18
18
|
dk:transition
|
|
@@ -25,7 +25,7 @@ const We = { key: 1 }, Oe = `
|
|
|
25
25
|
dk:text-ellipsis
|
|
26
26
|
dk:whitespace-nowrap
|
|
27
27
|
dk:active:scale-95
|
|
28
|
-
dk:max-w-full`,
|
|
28
|
+
dk:max-w-full`, oe = /* @__PURE__ */ L({
|
|
29
29
|
__name: "DuiButton",
|
|
30
30
|
props: {
|
|
31
31
|
variant: { default: "solid" },
|
|
@@ -40,21 +40,21 @@ const We = { key: 1 }, Oe = `
|
|
|
40
40
|
to: { default: void 0 }
|
|
41
41
|
},
|
|
42
42
|
setup(d) {
|
|
43
|
-
const r = d, e = k(() =>
|
|
44
|
-
const
|
|
45
|
-
return e.value === "button" && (
|
|
46
|
-
}),
|
|
43
|
+
const r = d, e = k(() => se(r.to)), u = k(() => {
|
|
44
|
+
const l = {};
|
|
45
|
+
return e.value === "button" && (l.type = r.type), fe(r.to, e.value, l);
|
|
46
|
+
}), f = {
|
|
47
47
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
48
48
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
49
49
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
50
|
-
},
|
|
50
|
+
}, n = {
|
|
51
51
|
all: "dk:rounded",
|
|
52
52
|
top: "dk:rounded-t",
|
|
53
53
|
bottom: "dk:rounded-b",
|
|
54
54
|
left: "dk:rounded-l",
|
|
55
55
|
right: "dk:rounded-r",
|
|
56
56
|
none: "dk:rounded-none"
|
|
57
|
-
},
|
|
57
|
+
}, z = {
|
|
58
58
|
solid: {
|
|
59
59
|
base: "dk:border-b",
|
|
60
60
|
neutral: `
|
|
@@ -226,23 +226,23 @@ const We = { key: 1 }, Oe = `
|
|
|
226
226
|
dk:dark:text-amber-100
|
|
227
227
|
dk:dark:hover:bg-amber-800`
|
|
228
228
|
}
|
|
229
|
-
},
|
|
230
|
-
var
|
|
231
|
-
const
|
|
232
|
-
return [Oe,
|
|
229
|
+
}, v = k(() => {
|
|
230
|
+
var S;
|
|
231
|
+
const l = (((S = z[r.variant]) == null ? void 0 : S[r.color]) || "") + " " + z[r.variant].base, b = f[r.size] || "", x = r.block ? "dk:w-full" : "", y = n[r.rounded] || "";
|
|
232
|
+
return [Oe, l, b, x, y].join(" ");
|
|
233
233
|
});
|
|
234
|
-
return (
|
|
235
|
-
class:
|
|
234
|
+
return (l, b) => (t(), W(Q(e.value), O(u.value, {
|
|
235
|
+
class: v.value,
|
|
236
236
|
title: r.title,
|
|
237
237
|
disabled: r.disabled || r.loading
|
|
238
238
|
}), {
|
|
239
239
|
default: A(() => [
|
|
240
|
-
r.loading ? (t(), a("span", We, "Cargando...")) :
|
|
240
|
+
r.loading ? (t(), a("span", We, "Cargando...")) : T(l.$slots, "default", {}, void 0, void 0, 0)
|
|
241
241
|
]),
|
|
242
242
|
_: 3
|
|
243
243
|
}, 16, ["class", "title", "disabled"]));
|
|
244
244
|
}
|
|
245
|
-
}), Ne = ["accept"],
|
|
245
|
+
}), Ne = ["accept"], St = /* @__PURE__ */ L({
|
|
246
246
|
inheritAttrs: !1,
|
|
247
247
|
__name: "DuiFile",
|
|
248
248
|
props: {
|
|
@@ -277,124 +277,124 @@ const We = { 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, u = r, f = F(null), n = F(""), 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"
|
|
284
|
-
},
|
|
284
|
+
}, v = {
|
|
285
285
|
all: "dk:rounded-xl",
|
|
286
286
|
top: "dk:rounded-t-xl",
|
|
287
287
|
bottom: "dk:rounded-b-xl",
|
|
288
288
|
left: "dk:rounded-l-xl",
|
|
289
289
|
right: "dk:rounded-r-xl",
|
|
290
290
|
none: "dk:rounded-none"
|
|
291
|
-
},
|
|
292
|
-
const o =
|
|
291
|
+
}, l = k(() => e.block ? "dk:w-full" : "dk:inline-flex dk:max-w-full"), b = k(() => {
|
|
292
|
+
const o = z[e.size] || z.md, s = v[e.rounded] || v.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
|
o,
|
|
298
|
-
|
|
298
|
+
s
|
|
299
299
|
].join(" ");
|
|
300
|
-
}), x = k(() => "dk:min-w-0 dk:flex-1"),
|
|
300
|
+
}), x = k(() => "dk:min-w-0 dk:flex-1"), y = k(() => [
|
|
301
301
|
"dk:flex dk:flex-col dk:gap-2 dk:w-full",
|
|
302
302
|
"dk:sm:w-auto dk:sm:flex-row dk:sm:items-center dk:sm:justify-end"
|
|
303
|
-
].join(" ")),
|
|
303
|
+
].join(" ")), S = k(() => [
|
|
304
304
|
"dk:mt-1 dk:max-w-full dk:overflow-hidden dk:text-ellipsis dk:whitespace-nowrap dk:text-sm",
|
|
305
|
-
e.modelValue ||
|
|
306
|
-
].join(" ")),
|
|
305
|
+
e.modelValue || n.value ? "dk:text-zinc-900 dk:dark:text-zinc-100" : "dk:text-zinc-500 dk:dark:text-zinc-400"
|
|
306
|
+
].join(" ")), M = k(() => n.value ? n.value : e.modelValue ? h(e.modelValue) : "No hay archivo seleccionado");
|
|
307
307
|
re(
|
|
308
308
|
() => e.modelValue,
|
|
309
309
|
(o) => {
|
|
310
|
-
o && (
|
|
310
|
+
o && (n.value = "");
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
313
|
function h(o) {
|
|
314
|
-
const
|
|
315
|
-
return
|
|
314
|
+
const s = o.split("/");
|
|
315
|
+
return s[s.length - 1];
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
|
|
317
|
+
function m() {
|
|
318
|
+
u("open-browser");
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function i() {
|
|
321
321
|
var o;
|
|
322
|
-
(o =
|
|
322
|
+
(o = f.value) == null || o.click();
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function g(o) {
|
|
325
325
|
var B;
|
|
326
|
-
const
|
|
327
|
-
|
|
326
|
+
const s = o.target, C = (B = s.files) == null ? void 0 : B[0];
|
|
327
|
+
C && (n.value = C.name, u("upload-file", C), w(s));
|
|
328
328
|
}
|
|
329
329
|
function w(o) {
|
|
330
330
|
o.value = "";
|
|
331
331
|
}
|
|
332
|
-
return (o,
|
|
333
|
-
class: l
|
|
332
|
+
return (o, s) => (t(), a("div", {
|
|
333
|
+
class: c(l.value)
|
|
334
334
|
}, [
|
|
335
|
-
|
|
336
|
-
class:
|
|
335
|
+
p("div", {
|
|
336
|
+
class: c(b.value)
|
|
337
337
|
}, [
|
|
338
|
-
|
|
339
|
-
class:
|
|
338
|
+
p("div", {
|
|
339
|
+
class: c(x.value)
|
|
340
340
|
}, [
|
|
341
|
-
e.modelValue ??
|
|
341
|
+
e.modelValue ?? n.value ? (t(), a("p", {
|
|
342
342
|
key: 0,
|
|
343
|
-
class:
|
|
343
|
+
class: c(S.value)
|
|
344
344
|
}, [
|
|
345
|
-
|
|
345
|
+
p("a", {
|
|
346
346
|
href: "#",
|
|
347
|
-
onClick:
|
|
347
|
+
onClick: s[0] || (s[0] = R((C) => u("open-file", e.modelValue ?? n.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(
|
|
350
|
-
], 2)) :
|
|
349
|
+
}, j(M.value), 1)
|
|
350
|
+
], 2)) : $("", !0)
|
|
351
351
|
], 2),
|
|
352
|
-
|
|
353
|
-
class:
|
|
352
|
+
p("div", {
|
|
353
|
+
class: c(y.value)
|
|
354
354
|
}, [
|
|
355
|
-
e.browserBtn ? (t(),
|
|
355
|
+
e.browserBtn ? (t(), W(oe, {
|
|
356
356
|
key: 0,
|
|
357
357
|
color: "primary",
|
|
358
358
|
variant: "outline",
|
|
359
359
|
size: "sm",
|
|
360
360
|
block: !1,
|
|
361
361
|
title: "Abrir navegador de archivos",
|
|
362
|
-
onClick:
|
|
362
|
+
onClick: m
|
|
363
363
|
}, {
|
|
364
|
-
default: A(() => [...
|
|
365
|
-
|
|
364
|
+
default: A(() => [...s[1] || (s[1] = [
|
|
365
|
+
p("i", {
|
|
366
366
|
class: "mdi mdi-folder-search-outline",
|
|
367
367
|
"aria-hidden": "true"
|
|
368
368
|
}, null, -1)
|
|
369
369
|
])]),
|
|
370
370
|
_: 1
|
|
371
|
-
})) :
|
|
372
|
-
e.uploadBtn ? (t(),
|
|
371
|
+
})) : $("", !0),
|
|
372
|
+
e.uploadBtn ? (t(), W(oe, {
|
|
373
373
|
key: 1,
|
|
374
374
|
color: "neutral",
|
|
375
375
|
variant: "solid",
|
|
376
376
|
size: "sm",
|
|
377
377
|
block: !1,
|
|
378
378
|
title: "Subir nuevo archivo",
|
|
379
|
-
onClick:
|
|
379
|
+
onClick: i
|
|
380
380
|
}, {
|
|
381
|
-
default: A(() => [...
|
|
382
|
-
|
|
381
|
+
default: A(() => [...s[2] || (s[2] = [
|
|
382
|
+
p("i", {
|
|
383
383
|
class: "mdi mdi-upload",
|
|
384
384
|
"aria-hidden": "true"
|
|
385
385
|
}, null, -1)
|
|
386
386
|
])]),
|
|
387
387
|
_: 1
|
|
388
|
-
})) :
|
|
388
|
+
})) : $("", !0)
|
|
389
389
|
], 2)
|
|
390
390
|
], 2),
|
|
391
|
-
|
|
391
|
+
p("input", {
|
|
392
392
|
ref_key: "fileInputRef",
|
|
393
|
-
ref:
|
|
393
|
+
ref: f,
|
|
394
394
|
type: "file",
|
|
395
395
|
class: "dk:hidden",
|
|
396
396
|
accept: e.accept,
|
|
397
|
-
onChange:
|
|
397
|
+
onChange: g
|
|
398
398
|
}, null, 40, Ne)
|
|
399
399
|
], 2));
|
|
400
400
|
}
|
|
@@ -410,7 +410,7 @@ const We = { 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]`, jt = /* @__PURE__ */ L({
|
|
414
414
|
inheritAttrs: !1,
|
|
415
415
|
__name: "DuiInput",
|
|
416
416
|
props: {
|
|
@@ -433,32 +433,32 @@ const We = { key: 1 }, Oe = `
|
|
|
433
433
|
},
|
|
434
434
|
emits: ["update:modelValue"],
|
|
435
435
|
setup(d, { emit: r }) {
|
|
436
|
-
const e = d,
|
|
437
|
-
function
|
|
438
|
-
const
|
|
439
|
-
|
|
436
|
+
const e = d, u = r;
|
|
437
|
+
function f(l) {
|
|
438
|
+
const b = l.target;
|
|
439
|
+
u("update:modelValue", b.value);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
441
|
+
const n = {
|
|
442
442
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
443
443
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
444
444
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
445
|
-
},
|
|
445
|
+
}, z = {
|
|
446
446
|
all: "dk:rounded",
|
|
447
447
|
top: "dk:rounded-t",
|
|
448
448
|
bottom: "dk:rounded-b",
|
|
449
449
|
left: "dk:rounded-l",
|
|
450
450
|
right: "dk:rounded-r",
|
|
451
451
|
none: "dk:rounded-none"
|
|
452
|
-
},
|
|
453
|
-
const
|
|
454
|
-
return [Ke,
|
|
452
|
+
}, v = k(() => {
|
|
453
|
+
const l = n[e.size] || "", b = e.block ? "dk:w-full" : "", x = z[e.rounded] || "";
|
|
454
|
+
return [Ke, l, b, x].join(" ");
|
|
455
455
|
});
|
|
456
|
-
return (
|
|
457
|
-
class:
|
|
456
|
+
return (l, b) => (t(), a("input", O({
|
|
457
|
+
class: v.value,
|
|
458
458
|
value: d.modelValue
|
|
459
|
-
},
|
|
459
|
+
}, l.$attrs, { onInput: f }), null, 16, Fe));
|
|
460
460
|
}
|
|
461
|
-
}), qe = ["value"],
|
|
461
|
+
}), qe = ["value"], Ue = `
|
|
462
462
|
dk:border-b
|
|
463
463
|
dk:border-zinc-300
|
|
464
464
|
dk:bg-zinc-50
|
|
@@ -470,7 +470,7 @@ const We = { 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]`, Vt = /* @__PURE__ */ L({
|
|
474
474
|
inheritAttrs: !1,
|
|
475
475
|
__name: "DuiTextarea",
|
|
476
476
|
props: {
|
|
@@ -501,40 +501,40 @@ const We = { key: 1 }, Oe = `
|
|
|
501
501
|
},
|
|
502
502
|
emits: ["update:modelValue"],
|
|
503
503
|
setup(d, { emit: r }) {
|
|
504
|
-
const e = d,
|
|
505
|
-
function
|
|
506
|
-
const
|
|
507
|
-
e.autoheight &&
|
|
504
|
+
const e = d, u = r;
|
|
505
|
+
function f(x) {
|
|
506
|
+
const y = x.target;
|
|
507
|
+
e.autoheight && b(y), u("update:modelValue", y.value);
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const n = {
|
|
510
510
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
511
511
|
md: "dk:text-base dk:px-3 dk:py-2",
|
|
512
512
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
513
|
-
},
|
|
513
|
+
}, z = {
|
|
514
514
|
all: "dk:rounded",
|
|
515
515
|
top: "dk:rounded-t",
|
|
516
516
|
bottom: "dk:rounded-b",
|
|
517
517
|
left: "dk:rounded-l",
|
|
518
518
|
right: "dk:rounded-r",
|
|
519
519
|
none: "dk:rounded-none"
|
|
520
|
-
},
|
|
520
|
+
}, v = {
|
|
521
521
|
none: "dk:resize-none",
|
|
522
522
|
both: "dk:resize",
|
|
523
523
|
horizontal: "dk:resize-x",
|
|
524
524
|
vertical: "dk:resize-y"
|
|
525
|
-
},
|
|
526
|
-
const x =
|
|
527
|
-
return [
|
|
528
|
-
}),
|
|
525
|
+
}, l = k(() => {
|
|
526
|
+
const x = n[e.size] || "", y = e.block ? "dk:w-full" : "", S = z[e.rounded] || "", M = v[e.resize] || "";
|
|
527
|
+
return [Ue, x, y, S, M].join(" ");
|
|
528
|
+
}), b = (x) => {
|
|
529
529
|
x.style.height = "auto", x.style.height = `${x.scrollHeight + 5}px`;
|
|
530
530
|
};
|
|
531
|
-
return (x,
|
|
532
|
-
class:
|
|
531
|
+
return (x, y) => (t(), a("textarea", O(x.$attrs, {
|
|
532
|
+
class: l.value,
|
|
533
533
|
value: d.modelValue,
|
|
534
|
-
onInput:
|
|
534
|
+
onInput: f
|
|
535
535
|
}), null, 16, qe));
|
|
536
536
|
}
|
|
537
|
-
}),
|
|
537
|
+
}), He = {
|
|
538
538
|
key: 0,
|
|
539
539
|
disabled: "",
|
|
540
540
|
selected: "",
|
|
@@ -552,7 +552,7 @@ const We = { 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
|
+
`, Bt = /* @__PURE__ */ L({
|
|
556
556
|
inheritAttrs: !1,
|
|
557
557
|
__name: "DuiSelect",
|
|
558
558
|
props: {
|
|
@@ -591,33 +591,33 @@ const We = { key: 1 }, Oe = `
|
|
|
591
591
|
},
|
|
592
592
|
emits: ["update:modelValue"],
|
|
593
593
|
setup(d, { emit: r }) {
|
|
594
|
-
const e = d,
|
|
595
|
-
function
|
|
596
|
-
const x =
|
|
597
|
-
!isNaN(
|
|
594
|
+
const e = d, u = r;
|
|
595
|
+
function f(l) {
|
|
596
|
+
const x = l.target.value, y = Number(x);
|
|
597
|
+
!isNaN(y) && x !== "" ? u("update:modelValue", y) : u("update:modelValue", x);
|
|
598
598
|
}
|
|
599
|
-
const
|
|
599
|
+
const n = {
|
|
600
600
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
601
601
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
602
602
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
603
|
-
},
|
|
603
|
+
}, z = {
|
|
604
604
|
all: "dk:rounded",
|
|
605
605
|
top: "dk:rounded-t",
|
|
606
606
|
bottom: "dk:rounded-b",
|
|
607
607
|
left: "dk:rounded-l",
|
|
608
608
|
right: "dk:rounded-r",
|
|
609
609
|
none: "dk:rounded-none"
|
|
610
|
-
},
|
|
611
|
-
const
|
|
612
|
-
return [Ge,
|
|
610
|
+
}, v = k(() => {
|
|
611
|
+
const l = n[e.size] || "", b = e.block ? "dk:w-full" : "", x = z[e.rounded] || "";
|
|
612
|
+
return [Ge, l, b, x].join(" ");
|
|
613
613
|
});
|
|
614
|
-
return (
|
|
615
|
-
class:
|
|
616
|
-
onChange:
|
|
614
|
+
return (l, b) => (t(), a("select", O(l.$attrs, {
|
|
615
|
+
class: v.value,
|
|
616
|
+
onChange: f
|
|
617
617
|
}), [
|
|
618
|
-
d.placeholder ? (t(), a("option",
|
|
619
|
-
(t(!0), a(E, null,
|
|
620
|
-
key:
|
|
618
|
+
d.placeholder ? (t(), a("option", He, j(d.placeholder), 1)) : $("", !0),
|
|
619
|
+
(t(!0), a(E, null, K(d.options, (x, y) => (t(), a("option", {
|
|
620
|
+
key: y,
|
|
621
621
|
value: x[d.itemValue] ?? "",
|
|
622
622
|
selected: x[d.itemValue] == d.modelValue
|
|
623
623
|
}, j(x[d.itemLabel] ?? ""), 9, Qe))), 128))
|
|
@@ -626,7 +626,7 @@ const We = { key: 1 }, Oe = `
|
|
|
626
626
|
}), Je = {
|
|
627
627
|
key: 1,
|
|
628
628
|
class: "dk:text-rose-500 dk:ml-1"
|
|
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__ */
|
|
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__ */ L({
|
|
630
630
|
__name: "DuiLabel",
|
|
631
631
|
props: {
|
|
632
632
|
title: {
|
|
@@ -655,68 +655,68 @@ const We = { key: 1 }, Oe = `
|
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
657
|
setup(d) {
|
|
658
|
-
const r =
|
|
658
|
+
const r = F(!1), e = d, u = {
|
|
659
659
|
s: "dk:text-sm",
|
|
660
660
|
m: "dk:text-base",
|
|
661
661
|
l: "dk:text-lg"
|
|
662
|
-
},
|
|
662
|
+
}, f = {
|
|
663
663
|
s: "dk:mt-1",
|
|
664
664
|
m: "dk:mt-1.5",
|
|
665
665
|
l: "dk:mt-2"
|
|
666
|
-
},
|
|
666
|
+
}, n = {
|
|
667
667
|
s: "dk:text-xs",
|
|
668
668
|
m: "dk:text-sm",
|
|
669
669
|
l: "dk:text-base"
|
|
670
|
-
},
|
|
671
|
-
const x =
|
|
672
|
-
return [
|
|
673
|
-
}),
|
|
674
|
-
return (x,
|
|
675
|
-
class:
|
|
670
|
+
}, z = k(() => [Ye].join(" ")), v = k(() => {
|
|
671
|
+
const x = u[e.size] || u.m, y = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", S = e.helpText ? "dk:cursor-help" : "";
|
|
672
|
+
return [y, x, S].join(" ");
|
|
673
|
+
}), l = k(() => [f[e.size] || f.m].join(" ")), b = k(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", n[e.size] || n.m].join(" "));
|
|
674
|
+
return (x, y) => (t(), a("label", {
|
|
675
|
+
class: c(z.value)
|
|
676
676
|
}, [
|
|
677
677
|
d.title ? (t(), a("div", {
|
|
678
678
|
key: 0,
|
|
679
679
|
class: "dk:relative",
|
|
680
|
-
onMouseenter:
|
|
681
|
-
onMouseleave:
|
|
680
|
+
onMouseenter: y[0] || (y[0] = (S) => r.value = !!d.helpText),
|
|
681
|
+
onMouseleave: y[1] || (y[1] = (S) => r.value = !1)
|
|
682
682
|
}, [
|
|
683
|
-
|
|
684
|
-
class:
|
|
683
|
+
p("div", {
|
|
684
|
+
class: c(v.value)
|
|
685
685
|
}, [
|
|
686
686
|
d.icon ? (t(), a("i", {
|
|
687
687
|
key: 0,
|
|
688
|
-
class:
|
|
689
|
-
}, null, 2)) :
|
|
690
|
-
|
|
691
|
-
d.required ? (t(), a("span", Je, "*")) :
|
|
688
|
+
class: c([d.icon, "dk:mr-2"])
|
|
689
|
+
}, null, 2)) : $("", !0),
|
|
690
|
+
P(" " + j(d.title) + " ", 1),
|
|
691
|
+
d.required ? (t(), a("span", Je, "*")) : $("", !0)
|
|
692
692
|
], 2),
|
|
693
|
-
xe(
|
|
694
|
-
|
|
695
|
-
|
|
693
|
+
xe(p("div", Xe, [
|
|
694
|
+
P(j(d.helpText) + " ", 1),
|
|
695
|
+
y[2] || (y[2] = p("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
|
|
696
696
|
], 512), [
|
|
697
697
|
[he, r.value && d.helpText]
|
|
698
698
|
])
|
|
699
|
-
], 32)) :
|
|
700
|
-
|
|
701
|
-
class: l
|
|
699
|
+
], 32)) : $("", !0),
|
|
700
|
+
p("div", {
|
|
701
|
+
class: c(l.value)
|
|
702
702
|
}, [
|
|
703
|
-
|
|
703
|
+
T(x.$slots, "default", {}, void 0, !0)
|
|
704
704
|
], 2),
|
|
705
705
|
d.error ? (t(), a("div", {
|
|
706
706
|
key: 1,
|
|
707
|
-
class:
|
|
707
|
+
class: c(b.value)
|
|
708
708
|
}, [
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
], 2)) :
|
|
709
|
+
y[3] || (y[3] = p("span", { class: "dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0" }, " ! ", -1)),
|
|
710
|
+
P(" " + j(d.error), 1)
|
|
711
|
+
], 2)) : $("", !0)
|
|
712
712
|
], 2));
|
|
713
713
|
}
|
|
714
|
-
}),
|
|
714
|
+
}), ie = (d, r) => {
|
|
715
715
|
const e = d.__vccOpts || d;
|
|
716
|
-
for (const [
|
|
717
|
-
e[
|
|
716
|
+
for (const [u, f] of r)
|
|
717
|
+
e[u] = f;
|
|
718
718
|
return e;
|
|
719
|
-
},
|
|
719
|
+
}, Dt = /* @__PURE__ */ ie(Ze, [["__scopeId", "data-v-aa6b6cdc"]]), Re = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, ed = ["checked", "disabled"], Mt = /* @__PURE__ */ L({
|
|
720
720
|
inheritAttrs: !1,
|
|
721
721
|
__name: "DuiCheckbox",
|
|
722
722
|
props: {
|
|
@@ -755,7 +755,7 @@ const We = { key: 1 }, Oe = `
|
|
|
755
755
|
},
|
|
756
756
|
emits: ["update:modelValue"],
|
|
757
757
|
setup(d, { emit: r }) {
|
|
758
|
-
const e = d,
|
|
758
|
+
const e = d, u = r, f = we(), n = {
|
|
759
759
|
sm: {
|
|
760
760
|
track: "dk:w-9 dk:h-5",
|
|
761
761
|
thumb: "dk:w-3.5 dk:h-3.5",
|
|
@@ -771,39 +771,39 @@ const We = { key: 1 }, Oe = `
|
|
|
771
771
|
thumb: "dk:w-5 dk:h-5",
|
|
772
772
|
translate: "dk:peer-checked:translate-x-7"
|
|
773
773
|
}
|
|
774
|
-
},
|
|
774
|
+
}, z = {
|
|
775
775
|
all: "dk:rounded-full",
|
|
776
776
|
top: "dk:rounded-t-full",
|
|
777
777
|
bottom: "dk:rounded-b-full",
|
|
778
778
|
left: "dk:rounded-l-full",
|
|
779
779
|
right: "dk:rounded-r-full",
|
|
780
780
|
none: "dk:rounded-none"
|
|
781
|
-
},
|
|
781
|
+
}, v = {
|
|
782
782
|
neutral: "dk:peer-checked:bg-zinc-500 dk:peer-checked:dark:bg-zinc-500",
|
|
783
783
|
primary: "dk:peer-checked:bg-slate-600 dk:peer-checked:dark:bg-slate-500",
|
|
784
784
|
secondary: "dk:peer-checked:bg-pink-600 dk:peer-checked:dark:bg-pink-500",
|
|
785
785
|
success: "dk:peer-checked:bg-emerald-600 dk:peer-checked:dark:bg-emerald-500",
|
|
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
|
-
},
|
|
789
|
-
const h = e.block ? "dk:w-full dk:justify-between" : "",
|
|
790
|
-
return ["dk:inline-flex dk:items-center dk:gap-3 dk:select-none", h,
|
|
788
|
+
}, l = k(() => !!(e.label || f.default)), b = k(() => {
|
|
789
|
+
const h = e.block ? "dk:w-full dk:justify-between" : "", m = 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", h, m].join(" ");
|
|
791
791
|
}), x = k(() => [
|
|
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
|
-
].join(" ")),
|
|
795
|
-
const h =
|
|
794
|
+
].join(" ")), y = k(() => {
|
|
795
|
+
const h = n[e.size] || n.md, m = z[e.rounded] || z.all, i = v[e.color] || v.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
|
h.track,
|
|
802
|
-
|
|
803
|
-
|
|
802
|
+
m,
|
|
803
|
+
i
|
|
804
804
|
].join(" ");
|
|
805
|
-
}),
|
|
806
|
-
const h =
|
|
805
|
+
}), S = k(() => {
|
|
806
|
+
const h = n[e.size] || n.md;
|
|
807
807
|
return [
|
|
808
808
|
"dk:absolute dk:left-1 dk:top-1/2 dk:-translate-y-1/2",
|
|
809
809
|
"dk:bg-white dk:dark:bg-zinc-100",
|
|
@@ -813,46 +813,46 @@ const We = { key: 1 }, Oe = `
|
|
|
813
813
|
h.translate
|
|
814
814
|
].join(" ");
|
|
815
815
|
});
|
|
816
|
-
function
|
|
817
|
-
const
|
|
818
|
-
|
|
816
|
+
function M(h) {
|
|
817
|
+
const m = h.target;
|
|
818
|
+
u("update:modelValue", m.checked);
|
|
819
819
|
}
|
|
820
|
-
return (h,
|
|
821
|
-
class:
|
|
820
|
+
return (h, m) => (t(), a("label", {
|
|
821
|
+
class: c(b.value)
|
|
822
822
|
}, [
|
|
823
|
-
|
|
823
|
+
l.value && d.labelPosition === "left" ? (t(), a("span", {
|
|
824
824
|
key: 0,
|
|
825
|
-
class:
|
|
825
|
+
class: c(x.value)
|
|
826
826
|
}, [
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
T(h.$slots, "default", {}, () => [
|
|
828
|
+
P(j(d.label), 1)
|
|
829
829
|
])
|
|
830
|
-
], 2)) :
|
|
831
|
-
|
|
832
|
-
|
|
830
|
+
], 2)) : $("", !0),
|
|
831
|
+
p("span", Re, [
|
|
832
|
+
p("input", O({
|
|
833
833
|
type: "checkbox",
|
|
834
834
|
class: "dk:sr-only dk:peer",
|
|
835
835
|
checked: d.modelValue,
|
|
836
836
|
disabled: d.disabled
|
|
837
|
-
}, h.$attrs, { onChange:
|
|
838
|
-
|
|
839
|
-
class:
|
|
837
|
+
}, h.$attrs, { onChange: M }), null, 16, ed),
|
|
838
|
+
p("span", {
|
|
839
|
+
class: c(y.value)
|
|
840
840
|
}, null, 2),
|
|
841
|
-
|
|
842
|
-
class:
|
|
841
|
+
p("span", {
|
|
842
|
+
class: c(S.value)
|
|
843
843
|
}, null, 2)
|
|
844
844
|
]),
|
|
845
|
-
|
|
845
|
+
l.value && d.labelPosition === "right" ? (t(), a("span", {
|
|
846
846
|
key: 1,
|
|
847
|
-
class:
|
|
847
|
+
class: c(x.value)
|
|
848
848
|
}, [
|
|
849
|
-
|
|
850
|
-
|
|
849
|
+
T(h.$slots, "default", {}, () => [
|
|
850
|
+
P(j(d.label), 1)
|
|
851
851
|
])
|
|
852
|
-
], 2)) :
|
|
852
|
+
], 2)) : $("", !0)
|
|
853
853
|
], 2));
|
|
854
854
|
}
|
|
855
|
-
}), dd = ["aria-labelledby"], td = ["id"], rd = { class: "dk:relative dk:inline-flex dk:flex-shrink-0" }, ad = ["name", "value", "checked", "disabled", "onChange"],
|
|
855
|
+
}), dd = ["aria-labelledby"], td = ["id"], rd = { class: "dk:relative dk:inline-flex dk:flex-shrink-0" }, ad = ["name", "value", "checked", "disabled", "onChange"], _t = /* @__PURE__ */ L({
|
|
856
856
|
inheritAttrs: !1,
|
|
857
857
|
__name: "DuiRadio",
|
|
858
858
|
props: {
|
|
@@ -868,102 +868,102 @@ const We = { key: 1 }, Oe = `
|
|
|
868
868
|
},
|
|
869
869
|
emits: ["update:modelValue", "change"],
|
|
870
870
|
setup(d, { emit: r }) {
|
|
871
|
-
const e = d,
|
|
872
|
-
function
|
|
873
|
-
|
|
871
|
+
const e = d, u = r, f = Math.random().toString(36).slice(2, 8);
|
|
872
|
+
function n(w) {
|
|
873
|
+
u("update:modelValue", w), u("change", w);
|
|
874
874
|
}
|
|
875
|
-
const
|
|
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" },
|
|
877
877
|
md: { radio: "dk:w-4 dk:h-4", dot: "dk:w-2 dk:h-2", label: "dk:text-sm", description: "dk:text-xs" },
|
|
878
878
|
lg: { radio: "dk:w-5 dk:h-5", dot: "dk:w-2.5 dk:h-2.5", label: "dk:text-base", description: "dk:text-sm" }
|
|
879
|
-
},
|
|
879
|
+
}, v = {
|
|
880
880
|
neutral: "dk:peer-checked:border-zinc-600 dk:dark:peer-checked:border-zinc-400",
|
|
881
881
|
primary: "dk:peer-checked:border-slate-600 dk:dark:peer-checked:border-slate-400",
|
|
882
882
|
secondary: "dk:peer-checked:border-pink-600 dk:dark:peer-checked:border-pink-400",
|
|
883
883
|
success: "dk:peer-checked:border-emerald-600 dk:dark:peer-checked:border-emerald-400",
|
|
884
884
|
warning: "dk:peer-checked:border-amber-500 dk:dark:peer-checked:border-amber-400",
|
|
885
885
|
danger: "dk:peer-checked:border-rose-600 dk:dark:peer-checked:border-rose-400"
|
|
886
|
-
},
|
|
886
|
+
}, l = {
|
|
887
887
|
neutral: "dk:peer-checked:bg-zinc-600 dk:dark:peer-checked:bg-zinc-400",
|
|
888
888
|
primary: "dk:peer-checked:bg-slate-600 dk:dark:peer-checked:bg-slate-400",
|
|
889
889
|
secondary: "dk:peer-checked:bg-pink-600 dk:dark:peer-checked:bg-pink-400",
|
|
890
890
|
success: "dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-400",
|
|
891
891
|
warning: "dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",
|
|
892
892
|
danger: "dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-400"
|
|
893
|
-
},
|
|
893
|
+
}, b = {
|
|
894
894
|
neutral: "dk:peer-focus-visible:ring-zinc-400",
|
|
895
895
|
primary: "dk:peer-focus-visible:ring-slate-400",
|
|
896
896
|
secondary: "dk:peer-focus-visible:ring-pink-400",
|
|
897
897
|
success: "dk:peer-focus-visible:ring-emerald-400",
|
|
898
898
|
warning: "dk:peer-focus-visible:ring-amber-400",
|
|
899
899
|
danger: "dk:peer-focus-visible:ring-rose-400"
|
|
900
|
-
}, x = k(() => [e.orientation === "horizontal" ? "dk:flex dk:flex-row dk:flex-wrap dk:gap-x-5 dk:gap-y-3" : "dk:flex dk:flex-col dk:gap-3"].join(" ")),
|
|
901
|
-
function
|
|
902
|
-
const
|
|
903
|
-
return ["dk:inline-flex dk:items-start dk:gap-3 dk:select-none",
|
|
900
|
+
}, x = k(() => [e.orientation === "horizontal" ? "dk:flex dk:flex-row dk:flex-wrap dk:gap-x-5 dk:gap-y-3" : "dk:flex dk:flex-col dk:gap-3"].join(" ")), y = k(() => "dk:block dk:text-xs dk:font-semibold dk:uppercase dk:tracking-wide dk:text-zinc-500 dk:dark:text-zinc-400 dk:mb-1");
|
|
901
|
+
function S(w, o) {
|
|
902
|
+
const C = o || e.disabled ? "dk:opacity-50 dk:cursor-not-allowed" : "dk:cursor-pointer", B = e.block ? "dk:w-full dk:justify-between" : "";
|
|
903
|
+
return ["dk:inline-flex dk:items-start dk:gap-3 dk:select-none", C, B].join(" ");
|
|
904
904
|
}
|
|
905
|
-
function
|
|
906
|
-
const o =
|
|
905
|
+
function M(w) {
|
|
906
|
+
const o = z[e.size], s = v[e.color], C = b[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
|
o.radio,
|
|
913
|
-
|
|
914
|
-
|
|
913
|
+
s,
|
|
914
|
+
C
|
|
915
915
|
].join(" ");
|
|
916
916
|
}
|
|
917
917
|
const h = k(() => {
|
|
918
|
-
const w =
|
|
918
|
+
const w = z[e.size], o = l[e.color];
|
|
919
919
|
return [
|
|
920
920
|
"dk:absolute dk:inset-0 dk:m-auto dk:rounded-full dk:scale-0 dk:peer-checked:scale-100 dk:transition-transform dk:duration-150 dk:pointer-events-none",
|
|
921
921
|
w.dot,
|
|
922
922
|
o
|
|
923
923
|
].join(" ");
|
|
924
|
-
}),
|
|
924
|
+
}), m = k(() => "dk:flex dk:flex-col"), i = k(() => [z[e.size].label, "dk:leading-snug dk:text-zinc-800 dk:dark:text-zinc-200"].join(" ")), g = k(() => [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, o) => (t(), a("div", {
|
|
926
|
-
class:
|
|
926
|
+
class: c(x.value),
|
|
927
927
|
role: "radiogroup",
|
|
928
|
-
"aria-labelledby": d.groupLabel ? `rg-label-${
|
|
928
|
+
"aria-labelledby": d.groupLabel ? `rg-label-${Z(f)}` : void 0
|
|
929
929
|
}, [
|
|
930
930
|
d.groupLabel ? (t(), a("span", {
|
|
931
931
|
key: 0,
|
|
932
|
-
id: `rg-label-${
|
|
933
|
-
class:
|
|
934
|
-
}, j(d.groupLabel), 11, td)) :
|
|
935
|
-
(t(!0), a(E, null,
|
|
936
|
-
key:
|
|
937
|
-
class:
|
|
932
|
+
id: `rg-label-${Z(f)}`,
|
|
933
|
+
class: c(y.value)
|
|
934
|
+
}, j(d.groupLabel), 11, td)) : $("", !0),
|
|
935
|
+
(t(!0), a(E, null, K(d.options, (s) => (t(), a("label", {
|
|
936
|
+
key: s.value,
|
|
937
|
+
class: c(S(s.value, s.disabled))
|
|
938
938
|
}, [
|
|
939
|
-
|
|
940
|
-
|
|
939
|
+
p("span", rd, [
|
|
940
|
+
p("input", O({
|
|
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: s.value,
|
|
945
|
+
checked: d.modelValue === s.value,
|
|
946
|
+
disabled: s.disabled || d.disabled
|
|
947
947
|
}, { ref_for: !0 }, w.$attrs, {
|
|
948
|
-
onChange: (
|
|
948
|
+
onChange: (C) => n(s.value)
|
|
949
949
|
}), null, 16, ad),
|
|
950
|
-
|
|
951
|
-
class:
|
|
950
|
+
p("span", {
|
|
951
|
+
class: c(M(s.value))
|
|
952
952
|
}, null, 2),
|
|
953
|
-
|
|
954
|
-
class:
|
|
953
|
+
p("span", {
|
|
954
|
+
class: c(h.value)
|
|
955
955
|
}, null, 2)
|
|
956
956
|
]),
|
|
957
|
-
|
|
958
|
-
class:
|
|
957
|
+
p("span", {
|
|
958
|
+
class: c(m.value)
|
|
959
959
|
}, [
|
|
960
|
-
|
|
961
|
-
class:
|
|
962
|
-
}, j(
|
|
963
|
-
|
|
960
|
+
p("span", {
|
|
961
|
+
class: c(i.value)
|
|
962
|
+
}, j(s.label), 3),
|
|
963
|
+
s.description ? (t(), a("span", {
|
|
964
964
|
key: 0,
|
|
965
|
-
class:
|
|
966
|
-
}, j(
|
|
965
|
+
class: c(g.value)
|
|
966
|
+
}, j(s.description), 3)) : $("", !0)
|
|
967
967
|
], 2)
|
|
968
968
|
], 2))), 128))
|
|
969
969
|
], 10, dd));
|
|
@@ -978,7 +978,7 @@ const We = { key: 1 }, Oe = `
|
|
|
978
978
|
viewBox: "0 0 12 12",
|
|
979
979
|
fill: "none",
|
|
980
980
|
class: "dk:w-2.5 dk:h-2.5"
|
|
981
|
-
},
|
|
981
|
+
}, ld = /* @__PURE__ */ L({
|
|
982
982
|
inheritAttrs: !1,
|
|
983
983
|
__name: "DuiSwitch",
|
|
984
984
|
props: {
|
|
@@ -1021,7 +1021,7 @@ const We = { 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, u = r, f = we(), n = {
|
|
1025
1025
|
sm: {
|
|
1026
1026
|
track: "dk:w-8 dk:h-4",
|
|
1027
1027
|
thumb: "dk:w-3 dk:h-3",
|
|
@@ -1040,90 +1040,90 @@ const We = { key: 1 }, Oe = `
|
|
|
1040
1040
|
translate: "dk:peer-checked:translate-x-6",
|
|
1041
1041
|
offset: "dk:top-0.5 dk:left-0.5"
|
|
1042
1042
|
}
|
|
1043
|
-
},
|
|
1043
|
+
}, z = {
|
|
1044
1044
|
neutral: "dk:peer-checked:bg-zinc-600 dk:dark:peer-checked:bg-zinc-500",
|
|
1045
1045
|
primary: "dk:peer-checked:bg-slate-600 dk:dark:peer-checked:bg-slate-500",
|
|
1046
1046
|
secondary: "dk:peer-checked:bg-pink-600 dk:dark:peer-checked:bg-pink-500",
|
|
1047
1047
|
success: "dk:peer-checked:bg-emerald-600 dk:dark:peer-checked:bg-emerald-500",
|
|
1048
1048
|
warning: "dk:peer-checked:bg-amber-500 dk:dark:peer-checked:bg-amber-400",
|
|
1049
1049
|
danger: "dk:peer-checked:bg-rose-600 dk:dark:peer-checked:bg-rose-500"
|
|
1050
|
-
},
|
|
1051
|
-
const
|
|
1052
|
-
return [
|
|
1053
|
-
}),
|
|
1050
|
+
}, v = k(() => !!(e.label || f.default)), l = k(() => {
|
|
1051
|
+
const i = e.block ? "dk:w-full dk:justify-between" : "", g = e.block ? "dk:flex" : "dk:inline-flex", w = e.disabled ? "dk:opacity-60 dk:cursor-not-allowed" : "dk:cursor-pointer";
|
|
1052
|
+
return [g, "dk:items-center dk:gap-3 dk:select-none", i, w].join(" ");
|
|
1053
|
+
}), b = k(() => [
|
|
1054
1054
|
"dk:flex dk:flex-col",
|
|
1055
1055
|
"dk:text-sm dk:leading-snug dk:text-zinc-700 dk:dark:text-zinc-200",
|
|
1056
1056
|
e.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
|
|
1057
|
-
].join(" ")), x = k(() => "dk:text-xs dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"),
|
|
1058
|
-
const
|
|
1057
|
+
].join(" ")), x = k(() => "dk:text-xs dk:text-zinc-500 dk:dark:text-zinc-400 dk:mt-0.5"), y = k(() => {
|
|
1058
|
+
const i = n[e.size], g = z[e.color];
|
|
1059
1059
|
return [
|
|
1060
1060
|
"dk:relative dk:inline-flex dk:items-center dk:transition-colors dk:duration-200 dk:rounded-full",
|
|
1061
1061
|
"dk:bg-zinc-300 dk:dark:bg-zinc-600",
|
|
1062
1062
|
"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",
|
|
1063
1063
|
"dk:peer-disabled:opacity-70",
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
i.track,
|
|
1065
|
+
g
|
|
1066
1066
|
].join(" ");
|
|
1067
|
-
}),
|
|
1068
|
-
const
|
|
1067
|
+
}), S = k(() => {
|
|
1068
|
+
const i = n[e.size];
|
|
1069
1069
|
return [
|
|
1070
1070
|
"dk:absolute",
|
|
1071
|
-
|
|
1071
|
+
i.offset,
|
|
1072
1072
|
"dk:bg-white dk:dark:bg-zinc-100",
|
|
1073
1073
|
"dk:rounded-full dk:shadow-sm dk:transition-all dk:duration-200",
|
|
1074
1074
|
"dk:pointer-events-none dk:flex dk:items-center dk:justify-center",
|
|
1075
|
-
|
|
1076
|
-
|
|
1075
|
+
i.thumb,
|
|
1076
|
+
i.translate
|
|
1077
1077
|
].join(" ");
|
|
1078
|
-
}),
|
|
1078
|
+
}), M = {
|
|
1079
1079
|
neutral: "dk:text-zinc-600 dk:dark:text-zinc-400",
|
|
1080
1080
|
primary: "dk:text-slate-600 dk:dark:text-slate-400",
|
|
1081
1081
|
secondary: "dk:text-pink-600 dk:dark:text-pink-400",
|
|
1082
1082
|
success: "dk:text-emerald-600 dk:dark:text-emerald-400",
|
|
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
|
-
}, h = k(() => e.modelValue ?
|
|
1086
|
-
function
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1085
|
+
}, h = k(() => e.modelValue ? M[e.color] : "dk:text-zinc-400 dk:dark:text-zinc-500");
|
|
1086
|
+
function m(i) {
|
|
1087
|
+
const g = i.target;
|
|
1088
|
+
u("update:modelValue", g.checked), u("change", g.checked);
|
|
1089
1089
|
}
|
|
1090
|
-
return (
|
|
1091
|
-
class: l
|
|
1090
|
+
return (i, g) => (t(), a("label", {
|
|
1091
|
+
class: c(l.value)
|
|
1092
1092
|
}, [
|
|
1093
|
-
|
|
1093
|
+
v.value && d.labelPosition === "left" ? (t(), a("span", {
|
|
1094
1094
|
key: 0,
|
|
1095
|
-
class:
|
|
1095
|
+
class: c(b.value)
|
|
1096
1096
|
}, [
|
|
1097
|
-
|
|
1098
|
-
|
|
1097
|
+
T(i.$slots, "default", {}, () => [
|
|
1098
|
+
P(j(d.label), 1)
|
|
1099
1099
|
]),
|
|
1100
1100
|
d.description ? (t(), a("span", {
|
|
1101
1101
|
key: 0,
|
|
1102
|
-
class:
|
|
1103
|
-
}, j(d.description), 3)) :
|
|
1104
|
-
], 2)) :
|
|
1105
|
-
|
|
1106
|
-
|
|
1102
|
+
class: c(x.value)
|
|
1103
|
+
}, j(d.description), 3)) : $("", !0)
|
|
1104
|
+
], 2)) : $("", !0),
|
|
1105
|
+
p("span", od, [
|
|
1106
|
+
p("input", O({
|
|
1107
1107
|
type: "checkbox",
|
|
1108
1108
|
class: "dk:sr-only dk:peer",
|
|
1109
1109
|
role: "switch",
|
|
1110
1110
|
"aria-checked": d.modelValue,
|
|
1111
1111
|
checked: d.modelValue,
|
|
1112
1112
|
disabled: d.disabled
|
|
1113
|
-
},
|
|
1114
|
-
|
|
1115
|
-
class:
|
|
1113
|
+
}, i.$attrs, { onChange: m }), null, 16, kd),
|
|
1114
|
+
p("span", {
|
|
1115
|
+
class: c(y.value)
|
|
1116
1116
|
}, null, 2),
|
|
1117
|
-
|
|
1118
|
-
class:
|
|
1117
|
+
p("span", {
|
|
1118
|
+
class: c(S.value)
|
|
1119
1119
|
}, [
|
|
1120
1120
|
d.showIcons ? (t(), a("span", {
|
|
1121
1121
|
key: 0,
|
|
1122
1122
|
"aria-hidden": "true",
|
|
1123
|
-
class:
|
|
1123
|
+
class: c(h.value)
|
|
1124
1124
|
}, [
|
|
1125
|
-
d.modelValue ? (t(), a("svg", nd, [...
|
|
1126
|
-
|
|
1125
|
+
d.modelValue ? (t(), a("svg", nd, [...g[0] || (g[0] = [
|
|
1126
|
+
p("path", {
|
|
1127
1127
|
d: "M3.5 6.5l2 2 3-3",
|
|
1128
1128
|
stroke: "currentColor",
|
|
1129
1129
|
"stroke-width": "1.5",
|
|
@@ -1131,8 +1131,8 @@ const We = { key: 1 }, Oe = `
|
|
|
1131
1131
|
"stroke-linejoin": "round",
|
|
1132
1132
|
fill: "none"
|
|
1133
1133
|
}, null, -1)
|
|
1134
|
-
])])) : (t(), a("svg", sd, [...
|
|
1135
|
-
|
|
1134
|
+
])])) : (t(), a("svg", sd, [...g[1] || (g[1] = [
|
|
1135
|
+
p("line", {
|
|
1136
1136
|
x1: "3",
|
|
1137
1137
|
y1: "3",
|
|
1138
1138
|
x2: "9",
|
|
@@ -1141,7 +1141,7 @@ const We = { key: 1 }, Oe = `
|
|
|
1141
1141
|
"stroke-width": "1.5",
|
|
1142
1142
|
"stroke-linecap": "round"
|
|
1143
1143
|
}, null, -1),
|
|
1144
|
-
|
|
1144
|
+
p("line", {
|
|
1145
1145
|
x1: "9",
|
|
1146
1146
|
y1: "3",
|
|
1147
1147
|
x2: "3",
|
|
@@ -1151,30 +1151,30 @@ const We = { key: 1 }, Oe = `
|
|
|
1151
1151
|
"stroke-linecap": "round"
|
|
1152
1152
|
}, null, -1)
|
|
1153
1153
|
])]))
|
|
1154
|
-
], 2)) :
|
|
1154
|
+
], 2)) : $("", !0)
|
|
1155
1155
|
], 2)
|
|
1156
1156
|
]),
|
|
1157
|
-
|
|
1157
|
+
v.value && d.labelPosition === "right" ? (t(), a("span", {
|
|
1158
1158
|
key: 1,
|
|
1159
|
-
class:
|
|
1159
|
+
class: c(b.value)
|
|
1160
1160
|
}, [
|
|
1161
|
-
|
|
1162
|
-
|
|
1161
|
+
T(i.$slots, "default", {}, () => [
|
|
1162
|
+
P(j(d.label), 1)
|
|
1163
1163
|
]),
|
|
1164
1164
|
d.description ? (t(), a("span", {
|
|
1165
1165
|
key: 0,
|
|
1166
|
-
class:
|
|
1167
|
-
}, j(d.description), 3)) :
|
|
1168
|
-
], 2)) :
|
|
1166
|
+
class: c(x.value)
|
|
1167
|
+
}, j(d.description), 3)) : $("", !0)
|
|
1168
|
+
], 2)) : $("", !0)
|
|
1169
1169
|
], 2));
|
|
1170
1170
|
}
|
|
1171
|
-
}),
|
|
1171
|
+
}), id = `
|
|
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
|
-
`, Tt = /* @__PURE__ */
|
|
1177
|
+
`, Tt = /* @__PURE__ */ L({
|
|
1178
1178
|
__name: "DuiAlert",
|
|
1179
1179
|
props: {
|
|
1180
1180
|
variant: {
|
|
@@ -1198,7 +1198,7 @@ const We = { key: 1 }, Oe = `
|
|
|
1198
1198
|
left: "dk:rounded-l",
|
|
1199
1199
|
right: "dk:rounded-r",
|
|
1200
1200
|
none: "dk:rounded-none"
|
|
1201
|
-
},
|
|
1201
|
+
}, u = {
|
|
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",
|
|
@@ -1226,22 +1226,22 @@ const We = { key: 1 }, Oe = `
|
|
|
1226
1226
|
warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
|
|
1227
1227
|
danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
|
|
1228
1228
|
}
|
|
1229
|
-
},
|
|
1230
|
-
var
|
|
1231
|
-
const
|
|
1232
|
-
return [
|
|
1229
|
+
}, f = k(() => {
|
|
1230
|
+
var l;
|
|
1231
|
+
const n = ((l = u[r.variant]) == null ? void 0 : l[r.color]) || "", z = u[r.variant].base || "", v = e[r.rounded] || "";
|
|
1232
|
+
return [id, z, n, v].join(" ");
|
|
1233
1233
|
});
|
|
1234
|
-
return (
|
|
1235
|
-
class:
|
|
1234
|
+
return (n, z) => (t(), a("div", {
|
|
1235
|
+
class: c(f.value),
|
|
1236
1236
|
role: "alert"
|
|
1237
1237
|
}, [
|
|
1238
|
-
|
|
1238
|
+
T(n.$slots, "default")
|
|
1239
1239
|
], 2));
|
|
1240
1240
|
}
|
|
1241
|
-
}),
|
|
1241
|
+
}), cd = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, ud = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, bd = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200 dk:relative" }, pd = { key: 0 }, md = ["colspan"], fd = {
|
|
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
|
+
}, gd = ["colspan"], xd = { class: "pagination-container" }, hd = { class: "pagination-info" }, vd = { class: "pagination-buttons" }, yd = { class: "page-numbers" }, wd = ["onClick"], zd = /* @__PURE__ */ L({
|
|
1245
1245
|
__name: "DuiTable",
|
|
1246
1246
|
props: {
|
|
1247
1247
|
columns: {
|
|
@@ -1263,101 +1263,101 @@ const We = { key: 1 }, Oe = `
|
|
|
1263
1263
|
},
|
|
1264
1264
|
emits: ["paginate"],
|
|
1265
1265
|
setup(d, { emit: r }) {
|
|
1266
|
-
const e = d,
|
|
1266
|
+
const e = d, u = r, f = k(() => e.pagination ? Math.ceil(e.pagination.total / e.pagination.perPage) : 0), n = k(() => {
|
|
1267
1267
|
if (!e.pagination) return [];
|
|
1268
|
-
const
|
|
1269
|
-
let
|
|
1270
|
-
|
|
1271
|
-
for (let
|
|
1272
|
-
|
|
1273
|
-
return
|
|
1274
|
-
}),
|
|
1275
|
-
e.pagination &&
|
|
1268
|
+
const v = [], l = 5, { page: b } = e.pagination, x = f.value;
|
|
1269
|
+
let y = Math.max(1, b - Math.floor(l / 2)), S = Math.min(x, y + l - 1);
|
|
1270
|
+
S - y < l - 1 && (y = Math.max(1, S - l + 1));
|
|
1271
|
+
for (let M = y; M <= S; M++)
|
|
1272
|
+
v.push(M);
|
|
1273
|
+
return v;
|
|
1274
|
+
}), z = (v) => {
|
|
1275
|
+
e.pagination && v >= 1 && v <= f.value && u("paginate", v);
|
|
1276
1276
|
};
|
|
1277
|
-
return (
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
(t(!0), a(E, null,
|
|
1282
|
-
key:
|
|
1283
|
-
class:
|
|
1284
|
-
}, j(
|
|
1277
|
+
return (v, l) => (t(), a("div", cd, [
|
|
1278
|
+
p("table", ud, [
|
|
1279
|
+
p("thead", bd, [
|
|
1280
|
+
p("tr", null, [
|
|
1281
|
+
(t(!0), a(E, null, K(e.columns, (b) => (t(), a("th", {
|
|
1282
|
+
key: b.name,
|
|
1283
|
+
class: c(["dk:px-6 dk:py-3", b.classes])
|
|
1284
|
+
}, j(b.label), 3))), 128))
|
|
1285
1285
|
]),
|
|
1286
|
-
e.loading ? (t(), a("tr",
|
|
1287
|
-
|
|
1286
|
+
e.loading ? (t(), a("tr", pd, [
|
|
1287
|
+
p("td", {
|
|
1288
1288
|
colspan: e.columns.length,
|
|
1289
1289
|
class: "dk:p-0"
|
|
1290
|
-
}, [...
|
|
1291
|
-
|
|
1292
|
-
])], 8,
|
|
1293
|
-
])) :
|
|
1290
|
+
}, [...l[2] || (l[2] = [
|
|
1291
|
+
p("div", { class: "loading-bar" }, null, -1)
|
|
1292
|
+
])], 8, md)
|
|
1293
|
+
])) : $("", !0)
|
|
1294
1294
|
]),
|
|
1295
|
-
|
|
1296
|
-
class:
|
|
1295
|
+
p("tbody", {
|
|
1296
|
+
class: c({ "is-loading": e.loading })
|
|
1297
1297
|
}, [
|
|
1298
|
-
(t(!0), a(E, null,
|
|
1298
|
+
(t(!0), a(E, null, K(e.rows, (b, x) => (t(), a("tr", {
|
|
1299
1299
|
key: x,
|
|
1300
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"
|
|
1301
1301
|
}, [
|
|
1302
|
-
(t(!0), a(E, null,
|
|
1303
|
-
key:
|
|
1302
|
+
(t(!0), a(E, null, K(e.columns, (y) => (t(), a("td", {
|
|
1303
|
+
key: y.name,
|
|
1304
1304
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
1305
1305
|
}, [
|
|
1306
|
-
|
|
1307
|
-
|
|
1306
|
+
T(v.$slots, y.name, O({ ref_for: !0 }, b), () => [
|
|
1307
|
+
P(j(b[y.name]), 1)
|
|
1308
1308
|
], !0)
|
|
1309
1309
|
]))), 128))
|
|
1310
1310
|
]))), 128))
|
|
1311
1311
|
], 2),
|
|
1312
|
-
e.pagination ? (t(), a("tfoot",
|
|
1313
|
-
|
|
1314
|
-
|
|
1312
|
+
e.pagination ? (t(), a("tfoot", fd, [
|
|
1313
|
+
p("tr", null, [
|
|
1314
|
+
p("td", {
|
|
1315
1315
|
colspan: e.columns.length,
|
|
1316
1316
|
class: "dk:px-6 dk:py-4"
|
|
1317
1317
|
}, [
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1318
|
+
p("div", xd, [
|
|
1319
|
+
p("div", hd, " Página " + j(e.pagination.page) + " de " + j(f.value) + " | " + j(e.pagination.total) + " registros ", 1),
|
|
1320
|
+
p("div", vd, [
|
|
1321
|
+
J(oe, {
|
|
1322
1322
|
variant: "outline",
|
|
1323
1323
|
color: "neutral",
|
|
1324
1324
|
size: "sm",
|
|
1325
|
-
onClick:
|
|
1325
|
+
onClick: l[0] || (l[0] = (b) => z(e.pagination.page - 1)),
|
|
1326
1326
|
disabled: e.pagination.page === 1
|
|
1327
1327
|
}, {
|
|
1328
|
-
default: A(() => [...
|
|
1329
|
-
|
|
1328
|
+
default: A(() => [...l[3] || (l[3] = [
|
|
1329
|
+
P(" ← Anterior ", -1)
|
|
1330
1330
|
])]),
|
|
1331
1331
|
_: 1
|
|
1332
1332
|
}, 8, ["disabled"]),
|
|
1333
|
-
|
|
1334
|
-
(t(!0), a(E, null,
|
|
1335
|
-
key:
|
|
1336
|
-
onClick: (x) =>
|
|
1337
|
-
class:
|
|
1338
|
-
}, j(
|
|
1333
|
+
p("div", yd, [
|
|
1334
|
+
(t(!0), a(E, null, K(n.value, (b) => (t(), a("button", {
|
|
1335
|
+
key: b,
|
|
1336
|
+
onClick: (x) => z(b),
|
|
1337
|
+
class: c(["page-number", { active: b === e.pagination.page }])
|
|
1338
|
+
}, j(b), 11, wd))), 128))
|
|
1339
1339
|
]),
|
|
1340
|
-
|
|
1340
|
+
J(oe, {
|
|
1341
1341
|
variant: "outline",
|
|
1342
1342
|
color: "neutral",
|
|
1343
1343
|
size: "sm",
|
|
1344
|
-
onClick:
|
|
1345
|
-
disabled: e.pagination.page ===
|
|
1344
|
+
onClick: l[1] || (l[1] = (b) => z(e.pagination.page + 1)),
|
|
1345
|
+
disabled: e.pagination.page === f.value
|
|
1346
1346
|
}, {
|
|
1347
|
-
default: A(() => [...
|
|
1348
|
-
|
|
1347
|
+
default: A(() => [...l[4] || (l[4] = [
|
|
1348
|
+
P(" Siguiente → ", -1)
|
|
1349
1349
|
])]),
|
|
1350
1350
|
_: 1
|
|
1351
1351
|
}, 8, ["disabled"])
|
|
1352
1352
|
])
|
|
1353
1353
|
])
|
|
1354
|
-
], 8,
|
|
1354
|
+
], 8, gd)
|
|
1355
1355
|
])
|
|
1356
|
-
])) :
|
|
1356
|
+
])) : $("", !0)
|
|
1357
1357
|
])
|
|
1358
1358
|
]));
|
|
1359
1359
|
}
|
|
1360
|
-
}),
|
|
1360
|
+
}), Lt = /* @__PURE__ */ ie(zd, [["__scopeId", "data-v-60002528"]]), Cd = { key: 1 }, $d = `
|
|
1361
1361
|
dk:transition
|
|
1362
1362
|
dk:text-center
|
|
1363
1363
|
dk:disabled:opacity-50
|
|
@@ -1368,7 +1368,7 @@ const We = { key: 1 }, Oe = `
|
|
|
1368
1368
|
dk:text-ellipsis
|
|
1369
1369
|
dk:whitespace-nowrap
|
|
1370
1370
|
dk:active:scale-95
|
|
1371
|
-
dk:max-w-full`, Pt = /* @__PURE__ */
|
|
1371
|
+
dk:max-w-full`, Pt = /* @__PURE__ */ L({
|
|
1372
1372
|
__name: "DuiAction",
|
|
1373
1373
|
props: {
|
|
1374
1374
|
variant: { default: "solid" },
|
|
@@ -1381,18 +1381,18 @@ const We = { key: 1 }, Oe = `
|
|
|
1381
1381
|
to: { default: void 0 }
|
|
1382
1382
|
},
|
|
1383
1383
|
setup(d) {
|
|
1384
|
-
const r = d, e = k(() => r.to ?
|
|
1384
|
+
const r = d, e = k(() => r.to ? se(r.to) : "span"), u = k(() => fe(r.to, e.value)), f = {
|
|
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"
|
|
1388
|
-
},
|
|
1388
|
+
}, n = {
|
|
1389
1389
|
all: "dk:rounded",
|
|
1390
1390
|
top: "dk:rounded-t",
|
|
1391
1391
|
bottom: "dk:rounded-b",
|
|
1392
1392
|
left: "dk:rounded-l",
|
|
1393
1393
|
right: "dk:rounded-r",
|
|
1394
1394
|
none: "dk:rounded-none"
|
|
1395
|
-
},
|
|
1395
|
+
}, z = {
|
|
1396
1396
|
solid: {
|
|
1397
1397
|
base: "dk:border-b",
|
|
1398
1398
|
neutral: `
|
|
@@ -1564,25 +1564,25 @@ const We = { key: 1 }, Oe = `
|
|
|
1564
1564
|
dk:dark:text-amber-100
|
|
1565
1565
|
dk:dark:hover:bg-amber-800`
|
|
1566
1566
|
}
|
|
1567
|
-
},
|
|
1568
|
-
var
|
|
1569
|
-
const
|
|
1570
|
-
return [
|
|
1567
|
+
}, v = k(() => {
|
|
1568
|
+
var S;
|
|
1569
|
+
const l = (((S = z[r.variant]) == null ? void 0 : S[r.color]) || "") + " " + z[r.variant].base, b = f[r.size] || "", x = r.block ? "dk:block" : "dk:inline-block", y = n[r.rounded] || "";
|
|
1570
|
+
return [$d, l, b, x, y].join(" ");
|
|
1571
1571
|
});
|
|
1572
|
-
return (
|
|
1573
|
-
class:
|
|
1572
|
+
return (l, b) => (t(), W(Q(e.value), O(u.value, {
|
|
1573
|
+
class: v.value,
|
|
1574
1574
|
title: r.title
|
|
1575
1575
|
}), {
|
|
1576
1576
|
default: A(() => [
|
|
1577
|
-
r.loading ? (t(), a("span",
|
|
1577
|
+
r.loading ? (t(), a("span", Cd, "Cargando...")) : T(l.$slots, "default", {}, void 0, void 0, 0)
|
|
1578
1578
|
]),
|
|
1579
1579
|
_: 3
|
|
1580
1580
|
}, 16, ["class", "title"]));
|
|
1581
1581
|
}
|
|
1582
|
-
}),
|
|
1582
|
+
}), Sd = {
|
|
1583
1583
|
key: 0,
|
|
1584
1584
|
class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
|
|
1585
|
-
},
|
|
1585
|
+
}, jd = ["src", "alt"], It = /* @__PURE__ */ L({
|
|
1586
1586
|
__name: "DuiCard",
|
|
1587
1587
|
props: {
|
|
1588
1588
|
size: { default: "m" },
|
|
@@ -1592,10 +1592,10 @@ const We = { key: 1 }, Oe = `
|
|
|
1592
1592
|
to: { default: void 0 }
|
|
1593
1593
|
},
|
|
1594
1594
|
setup(d) {
|
|
1595
|
-
const r = d, e = () => r.to ?
|
|
1596
|
-
const
|
|
1597
|
-
return fe(r.to,
|
|
1598
|
-
},
|
|
1595
|
+
const r = d, e = () => r.to ? se(r.to) : "div", u = () => r.to ? se(r.to) : "h3", f = () => {
|
|
1596
|
+
const m = e();
|
|
1597
|
+
return fe(r.to, m);
|
|
1598
|
+
}, n = {
|
|
1599
1599
|
s: {
|
|
1600
1600
|
padding: "dk:p-3",
|
|
1601
1601
|
spacing: "dk:space-y-2",
|
|
@@ -1617,7 +1617,7 @@ const We = { key: 1 }, Oe = `
|
|
|
1617
1617
|
subtitleSize: "dk:text-lg",
|
|
1618
1618
|
contentSize: "dk:text-lg"
|
|
1619
1619
|
}
|
|
1620
|
-
},
|
|
1620
|
+
}, z = k(() => [
|
|
1621
1621
|
// Glassmorphism card styles (Windows Vista inspired)
|
|
1622
1622
|
"dk:relative dk:bg-gradient-to-br dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
|
|
1623
1623
|
"dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60",
|
|
@@ -1633,98 +1633,98 @@ const We = { key: 1 }, Oe = `
|
|
|
1633
1633
|
"dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5",
|
|
1634
1634
|
"dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
|
|
1635
1635
|
"dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent"
|
|
1636
|
-
].join(" ")),
|
|
1636
|
+
].join(" ")), v = k(() => [
|
|
1637
1637
|
"dk:w-full dk:h-48 dk:object-cover",
|
|
1638
1638
|
"dk:relative dk:z-10"
|
|
1639
|
-
].join(" ")),
|
|
1640
|
-
const
|
|
1639
|
+
].join(" ")), l = k(() => {
|
|
1640
|
+
const m = n[r.size];
|
|
1641
1641
|
return [
|
|
1642
|
-
|
|
1643
|
-
|
|
1642
|
+
m.padding,
|
|
1643
|
+
m.spacing,
|
|
1644
1644
|
// Glass effect for content wrapper
|
|
1645
1645
|
"dk:relative dk:z-10"
|
|
1646
1646
|
].join(" ");
|
|
1647
|
-
}),
|
|
1648
|
-
|
|
1647
|
+
}), b = k(() => [
|
|
1648
|
+
n[r.size].spacing
|
|
1649
1649
|
].join(" ")), x = k(() => {
|
|
1650
|
-
const
|
|
1651
|
-
|
|
1650
|
+
const i = [
|
|
1651
|
+
n[r.size].titleSize,
|
|
1652
1652
|
"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
|
|
1653
1653
|
"dk:line-clamp-2"
|
|
1654
1654
|
];
|
|
1655
|
-
return r.to &&
|
|
1655
|
+
return r.to && i.push(
|
|
1656
1656
|
"dk:no-underline dk:hover:underline dk:transition-colors",
|
|
1657
1657
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
1658
|
-
),
|
|
1659
|
-
}),
|
|
1660
|
-
const
|
|
1658
|
+
), i.join(" ");
|
|
1659
|
+
}), y = k(() => {
|
|
1660
|
+
const m = [
|
|
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 &&
|
|
1667
|
-
}),
|
|
1668
|
-
|
|
1666
|
+
return r.to && m.push("dk:no-underline"), m.join(" ");
|
|
1667
|
+
}), S = k(() => [
|
|
1668
|
+
n[r.size].subtitleSize,
|
|
1669
1669
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
1670
1670
|
"dk:line-clamp-3"
|
|
1671
|
-
].join(" ")),
|
|
1672
|
-
|
|
1671
|
+
].join(" ")), M = k(() => [
|
|
1672
|
+
n[r.size].contentSize,
|
|
1673
1673
|
"dk:text-gray-700 dk:dark:text-gray-300"
|
|
1674
1674
|
].join(" ")), h = k(() => [
|
|
1675
1675
|
"dk:border-t dk:border-gray-300/40 dk:dark:border-white/10",
|
|
1676
1676
|
"dk:pt-3 dk:mt-3",
|
|
1677
1677
|
"dk:relative dk:z-10"
|
|
1678
1678
|
].join(" "));
|
|
1679
|
-
return (
|
|
1680
|
-
class:
|
|
1679
|
+
return (m, i) => (t(), a("div", {
|
|
1680
|
+
class: c(z.value)
|
|
1681
1681
|
}, [
|
|
1682
|
-
d.image ? (t(), a("div",
|
|
1683
|
-
(t(),
|
|
1682
|
+
d.image ? (t(), a("div", Sd, [
|
|
1683
|
+
(t(), W(Q(e()), O(f(), { class: y.value }), {
|
|
1684
1684
|
default: A(() => [
|
|
1685
|
-
|
|
1685
|
+
p("img", {
|
|
1686
1686
|
src: d.image,
|
|
1687
1687
|
alt: d.title || "Card image",
|
|
1688
|
-
class:
|
|
1689
|
-
}, null, 10,
|
|
1688
|
+
class: c(v.value)
|
|
1689
|
+
}, null, 10, jd)
|
|
1690
1690
|
]),
|
|
1691
1691
|
_: 1
|
|
1692
1692
|
}, 16, ["class"]))
|
|
1693
|
-
])) :
|
|
1694
|
-
|
|
1695
|
-
class: l
|
|
1693
|
+
])) : $("", !0),
|
|
1694
|
+
p("div", {
|
|
1695
|
+
class: c(l.value)
|
|
1696
1696
|
}, [
|
|
1697
1697
|
d.title || d.subtitle ? (t(), a("div", {
|
|
1698
1698
|
key: 0,
|
|
1699
|
-
class:
|
|
1699
|
+
class: c(b.value)
|
|
1700
1700
|
}, [
|
|
1701
|
-
d.title ? (t(),
|
|
1701
|
+
d.title ? (t(), W(Q(u()), O({ key: 0 }, f(), { class: x.value }), {
|
|
1702
1702
|
default: A(() => [
|
|
1703
|
-
|
|
1703
|
+
P(j(d.title), 1)
|
|
1704
1704
|
]),
|
|
1705
1705
|
_: 1
|
|
1706
|
-
}, 16, ["class"])) :
|
|
1706
|
+
}, 16, ["class"])) : $("", !0),
|
|
1707
1707
|
d.subtitle ? (t(), a("p", {
|
|
1708
1708
|
key: 1,
|
|
1709
|
-
class:
|
|
1710
|
-
}, j(d.subtitle), 3)) :
|
|
1711
|
-
], 2)) :
|
|
1712
|
-
|
|
1709
|
+
class: c(S.value)
|
|
1710
|
+
}, j(d.subtitle), 3)) : $("", !0)
|
|
1711
|
+
], 2)) : $("", !0),
|
|
1712
|
+
m.$slots.default ? (t(), a("div", {
|
|
1713
1713
|
key: 1,
|
|
1714
|
-
class:
|
|
1714
|
+
class: c(M.value)
|
|
1715
1715
|
}, [
|
|
1716
|
-
|
|
1717
|
-
], 2)) :
|
|
1718
|
-
|
|
1716
|
+
T(m.$slots, "default")
|
|
1717
|
+
], 2)) : $("", !0),
|
|
1718
|
+
m.$slots.footer ? (t(), a("div", {
|
|
1719
1719
|
key: 2,
|
|
1720
|
-
class:
|
|
1720
|
+
class: c(h.value)
|
|
1721
1721
|
}, [
|
|
1722
|
-
|
|
1723
|
-
], 2)) :
|
|
1722
|
+
T(m.$slots, "footer")
|
|
1723
|
+
], 2)) : $("", !0)
|
|
1724
1724
|
], 2)
|
|
1725
1725
|
], 2));
|
|
1726
1726
|
}
|
|
1727
|
-
}),
|
|
1727
|
+
}), Vd = ["aria-labelledby", "aria-describedby"], At = /* @__PURE__ */ L({
|
|
1728
1728
|
__name: "DuiModal",
|
|
1729
1729
|
props: {
|
|
1730
1730
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1745,21 +1745,21 @@ const We = { 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, u = r, f = Math.random().toString(36).slice(2, 10), n = `dui-modal-title-${f}`, z = `dui-modal-description-${f}`, v = {
|
|
1749
1749
|
all: "dk:rounded-xl",
|
|
1750
1750
|
top: "dk:rounded-t-xl",
|
|
1751
1751
|
bottom: "dk:rounded-b-xl",
|
|
1752
1752
|
left: "dk:rounded-l-xl",
|
|
1753
1753
|
right: "dk:rounded-r-xl",
|
|
1754
1754
|
none: "dk:rounded-none"
|
|
1755
|
-
},
|
|
1755
|
+
}, l = {
|
|
1756
1756
|
xs: "dk:w-full dk:max-w-xs",
|
|
1757
1757
|
sm: "dk:w-full dk:max-w-md",
|
|
1758
1758
|
md: "dk:w-full dk:max-w-xl",
|
|
1759
1759
|
lg: "dk:w-full dk:max-w-3xl",
|
|
1760
1760
|
xl: "dk:w-full dk:max-w-5xl",
|
|
1761
1761
|
full: "dk:h-[calc(100vh-2rem)] dk:w-[calc(100vw-2rem)] dk:max-w-none"
|
|
1762
|
-
},
|
|
1762
|
+
}, b = {
|
|
1763
1763
|
solid: {
|
|
1764
1764
|
base: "dk:border dk:shadow-xl",
|
|
1765
1765
|
neutral: "dk:bg-white dk:text-zinc-900 dk:border-zinc-200 dk:dark:bg-zinc-900 dk:dark:text-zinc-100 dk:dark:border-zinc-700",
|
|
@@ -1790,59 +1790,59 @@ const We = { key: 1 }, Oe = `
|
|
|
1790
1790
|
}, x = k(() => [
|
|
1791
1791
|
"dk:fixed dk:inset-0 dk:bg-black/55",
|
|
1792
1792
|
e.blurBackdrop ? "dk:backdrop-blur-[2px]" : ""
|
|
1793
|
-
].join(" ")),
|
|
1793
|
+
].join(" ")), y = k(() => [
|
|
1794
1794
|
"dk:flex dk:min-h-full dk:w-full dk:p-4",
|
|
1795
1795
|
e.centered ? "dk:items-center" : "dk:items-start dk:pt-8",
|
|
1796
1796
|
"dk:justify-center"
|
|
1797
|
-
].join(" ")),
|
|
1798
|
-
const
|
|
1797
|
+
].join(" ")), S = k(() => {
|
|
1798
|
+
const C = b[e.variant].base, B = b[e.variant][e.color], I = v[e.rounded], X = l[e.size];
|
|
1799
1799
|
return [
|
|
1800
1800
|
"dk:relative dk:flex dk:flex-col dk:overflow-hidden",
|
|
1801
|
-
|
|
1801
|
+
C,
|
|
1802
1802
|
B,
|
|
1803
|
-
|
|
1804
|
-
|
|
1803
|
+
I,
|
|
1804
|
+
X
|
|
1805
1805
|
].join(" ");
|
|
1806
|
-
}),
|
|
1806
|
+
}), M = k(() => [
|
|
1807
1807
|
"dk:flex dk:items-start dk:justify-between dk:gap-3 dk:px-5 dk:pt-5 dk:pb-3",
|
|
1808
1808
|
"dk:border-b dk:border-current/10"
|
|
1809
1809
|
].join(" ")), h = k(() => [
|
|
1810
1810
|
"dk:px-5 dk:py-4",
|
|
1811
1811
|
e.scrollable ? "dk:max-h-[65vh] dk:overflow-y-auto" : ""
|
|
1812
|
-
].join(" ")),
|
|
1812
|
+
].join(" ")), m = k(() => [
|
|
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(" "));
|
|
1816
|
-
function
|
|
1816
|
+
function i() {
|
|
1817
1817
|
if (typeof document > "u") return;
|
|
1818
|
-
const
|
|
1819
|
-
|
|
1818
|
+
const C = document.body, I = Number(C.dataset.duiModalCount || "0") + 1;
|
|
1819
|
+
C.dataset.duiModalCount = String(I), I === 1 && (C.style.overflow = "hidden");
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function g() {
|
|
1822
1822
|
if (typeof document > "u") return;
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1823
|
+
const C = document.body, B = Number(C.dataset.duiModalCount || "0"), I = Math.max(0, B - 1);
|
|
1824
|
+
C.dataset.duiModalCount = String(I), I === 0 && (C.style.overflow = "");
|
|
1825
1825
|
}
|
|
1826
|
-
function w(
|
|
1827
|
-
|
|
1826
|
+
function w(C) {
|
|
1827
|
+
u("update:modelValue", !1), u("close", C);
|
|
1828
1828
|
}
|
|
1829
1829
|
function o() {
|
|
1830
|
-
|
|
1830
|
+
u("backdrop"), !(e.persistent || !e.closeOnBackdrop) && w("backdrop");
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1833
|
-
|
|
1832
|
+
function s(C) {
|
|
1833
|
+
C.key !== "Escape" || !e.modelValue || (u("escape"), !(e.persistent || !e.closeOnEsc) && w("escape"));
|
|
1834
1834
|
}
|
|
1835
1835
|
return re(
|
|
1836
1836
|
() => e.modelValue,
|
|
1837
|
-
(
|
|
1838
|
-
|
|
1837
|
+
(C, B) => {
|
|
1838
|
+
C && !B && (i(), u("open")), !C && B && g();
|
|
1839
1839
|
}
|
|
1840
1840
|
), be(() => {
|
|
1841
|
-
e.modelValue &&
|
|
1841
|
+
e.modelValue && i(), typeof window < "u" && window.addEventListener("keydown", s);
|
|
1842
1842
|
}), pe(() => {
|
|
1843
|
-
e.modelValue &&
|
|
1844
|
-
}), (
|
|
1845
|
-
|
|
1843
|
+
e.modelValue && g(), typeof window < "u" && window.removeEventListener("keydown", s);
|
|
1844
|
+
}), (C, B) => (t(), W(me, { to: "body" }, [
|
|
1845
|
+
J(ne, {
|
|
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",
|
|
@@ -1852,37 +1852,37 @@ const We = { key: 1 }, Oe = `
|
|
|
1852
1852
|
e.modelValue ? (t(), a("div", {
|
|
1853
1853
|
key: 0,
|
|
1854
1854
|
style: ae({ zIndex: String(e.zIndex) }),
|
|
1855
|
-
class:
|
|
1855
|
+
class: c(x.value),
|
|
1856
1856
|
onClick: o
|
|
1857
1857
|
}, [
|
|
1858
|
-
|
|
1859
|
-
class:
|
|
1858
|
+
p("div", {
|
|
1859
|
+
class: c(y.value)
|
|
1860
1860
|
}, [
|
|
1861
|
-
|
|
1861
|
+
p("div", {
|
|
1862
1862
|
role: "dialog",
|
|
1863
1863
|
"aria-modal": "true",
|
|
1864
|
-
"aria-labelledby": e.title ?
|
|
1865
|
-
"aria-describedby": e.description ?
|
|
1866
|
-
class:
|
|
1867
|
-
onClick: B[1] || (B[1] =
|
|
1864
|
+
"aria-labelledby": e.title ? n : void 0,
|
|
1865
|
+
"aria-describedby": e.description ? z : void 0,
|
|
1866
|
+
class: c(S.value),
|
|
1867
|
+
onClick: B[1] || (B[1] = R(() => {
|
|
1868
1868
|
}, ["stop"]))
|
|
1869
1869
|
}, [
|
|
1870
|
-
|
|
1870
|
+
C.$slots.header || e.title || e.description || e.showClose ? (t(), a("header", {
|
|
1871
1871
|
key: 0,
|
|
1872
|
-
class:
|
|
1872
|
+
class: c(M.value)
|
|
1873
1873
|
}, [
|
|
1874
|
-
|
|
1875
|
-
|
|
1874
|
+
p("div", null, [
|
|
1875
|
+
T(C.$slots, "header", {}, () => [
|
|
1876
1876
|
e.title ? (t(), a("h2", {
|
|
1877
1877
|
key: 0,
|
|
1878
|
-
id:
|
|
1878
|
+
id: n,
|
|
1879
1879
|
class: "dk:text-lg dk:font-semibold"
|
|
1880
|
-
}, j(e.title), 1)) :
|
|
1880
|
+
}, j(e.title), 1)) : $("", !0),
|
|
1881
1881
|
e.description ? (t(), a("p", {
|
|
1882
1882
|
key: 1,
|
|
1883
|
-
id:
|
|
1883
|
+
id: z,
|
|
1884
1884
|
class: "dk:mt-1 dk:text-sm dk:opacity-80"
|
|
1885
|
-
}, j(e.description), 1)) :
|
|
1885
|
+
}, j(e.description), 1)) : $("", !0)
|
|
1886
1886
|
])
|
|
1887
1887
|
]),
|
|
1888
1888
|
e.showClose ? (t(), a("button", {
|
|
@@ -1890,31 +1890,31 @@ const We = { key: 1 }, Oe = `
|
|
|
1890
1890
|
type: "button",
|
|
1891
1891
|
class: "dk:inline-flex dk:h-8 dk:w-8 dk:items-center dk:justify-center dk:rounded dk:text-current dk:opacity-70 dk:transition-opacity dk:hover:opacity-100 dk:focus-visible:opacity-100 dk:outline-none dk:ring-2 dk:ring-current/30",
|
|
1892
1892
|
"aria-label": "Cerrar modal",
|
|
1893
|
-
onClick: B[0] || (B[0] = (
|
|
1893
|
+
onClick: B[0] || (B[0] = (I) => w("button"))
|
|
1894
1894
|
}, [...B[2] || (B[2] = [
|
|
1895
|
-
|
|
1896
|
-
])])) :
|
|
1897
|
-
], 2)) :
|
|
1898
|
-
|
|
1899
|
-
class:
|
|
1895
|
+
p("span", { "aria-hidden": "true" }, "×", -1)
|
|
1896
|
+
])])) : $("", !0)
|
|
1897
|
+
], 2)) : $("", !0),
|
|
1898
|
+
p("section", {
|
|
1899
|
+
class: c(h.value)
|
|
1900
1900
|
}, [
|
|
1901
|
-
|
|
1901
|
+
T(C.$slots, "default")
|
|
1902
1902
|
], 2),
|
|
1903
|
-
|
|
1903
|
+
C.$slots.footer ? (t(), a("footer", {
|
|
1904
1904
|
key: 1,
|
|
1905
|
-
class:
|
|
1905
|
+
class: c(m.value)
|
|
1906
1906
|
}, [
|
|
1907
|
-
|
|
1908
|
-
], 2)) :
|
|
1909
|
-
], 10,
|
|
1907
|
+
T(C.$slots, "footer")
|
|
1908
|
+
], 2)) : $("", !0)
|
|
1909
|
+
], 10, Vd)
|
|
1910
1910
|
], 2)
|
|
1911
|
-
], 6)) :
|
|
1911
|
+
], 6)) : $("", !0)
|
|
1912
1912
|
]),
|
|
1913
1913
|
_: 3
|
|
1914
1914
|
})
|
|
1915
1915
|
]));
|
|
1916
1916
|
}
|
|
1917
|
-
}),
|
|
1917
|
+
}), Bd = ["aria-labelledby"], Dd = "dk:flex-1 dk:overflow-y-auto dk:px-5 dk:py-4", Et = /* @__PURE__ */ L({
|
|
1918
1918
|
__name: "DuiDrawer",
|
|
1919
1919
|
props: {
|
|
1920
1920
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1932,7 +1932,7 @@ const We = { key: 1 }, Oe = `
|
|
|
1932
1932
|
},
|
|
1933
1933
|
emits: ["update:modelValue", "open", "close", "backdrop", "escape"],
|
|
1934
1934
|
setup(d, { emit: r }) {
|
|
1935
|
-
const e = d,
|
|
1935
|
+
const e = d, u = r, n = `dui-drawer-title-${Math.random().toString(36).slice(2, 10)}`, z = {
|
|
1936
1936
|
left: {
|
|
1937
1937
|
sm: "dk:w-[95%] dk:md:w-16",
|
|
1938
1938
|
md: "dk:w-[95%] dk:md:w-1/3",
|
|
@@ -1957,12 +1957,12 @@ const We = { key: 1 }, Oe = `
|
|
|
1957
1957
|
lg: "dk:h-[95%] dk:md:h-1/2",
|
|
1958
1958
|
xl: "dk:h-[95%] dk:md:h-[90%]"
|
|
1959
1959
|
}
|
|
1960
|
-
},
|
|
1960
|
+
}, v = {
|
|
1961
1961
|
left: "dk:inset-y-0 dk:left-0 dk:h-full dk:rounded-r-xl",
|
|
1962
1962
|
right: "dk:inset-y-0 dk:right-0 dk:h-full dk:rounded-l-xl",
|
|
1963
1963
|
top: "dk:inset-x-0 dk:top-0 dk:w-full dk:rounded-b-xl",
|
|
1964
1964
|
bottom: "dk:inset-x-0 dk:bottom-0 dk:w-full dk:rounded-t-xl"
|
|
1965
|
-
},
|
|
1965
|
+
}, l = k(() => ({
|
|
1966
1966
|
enterActive: "dk:transition-transform dk:duration-300",
|
|
1967
1967
|
leaveActive: "dk:transition-transform dk:duration-300",
|
|
1968
1968
|
hidden: {
|
|
@@ -1971,7 +1971,7 @@ const We = { key: 1 }, Oe = `
|
|
|
1971
1971
|
top: "dk:-translate-y-full",
|
|
1972
1972
|
bottom: "dk:translate-y-full"
|
|
1973
1973
|
}[e.position]
|
|
1974
|
-
})),
|
|
1974
|
+
})), b = {
|
|
1975
1975
|
solid: {
|
|
1976
1976
|
base: "dk:border dk:shadow-xl",
|
|
1977
1977
|
neutral: "dk:bg-white dk:text-zinc-900 dk:border-zinc-200 dk:dark:bg-zinc-900 dk:dark:text-zinc-100 dk:dark:border-zinc-700",
|
|
@@ -2002,52 +2002,52 @@ const We = { key: 1 }, Oe = `
|
|
|
2002
2002
|
}, x = k(() => [
|
|
2003
2003
|
"dk:fixed dk:inset-0 dk:bg-black/55",
|
|
2004
2004
|
e.blurBackdrop ? "dk:backdrop-blur-[2px]" : ""
|
|
2005
|
-
].join(" ")),
|
|
2006
|
-
const o =
|
|
2005
|
+
].join(" ")), y = k(() => {
|
|
2006
|
+
const o = b[e.variant].base, s = b[e.variant][e.color], C = z[e.position][e.size];
|
|
2007
2007
|
return [
|
|
2008
2008
|
"dk:fixed dk:flex dk:flex-col dk:overflow-hidden",
|
|
2009
|
-
|
|
2009
|
+
v[e.position],
|
|
2010
2010
|
o,
|
|
2011
|
-
|
|
2012
|
-
|
|
2011
|
+
s,
|
|
2012
|
+
C
|
|
2013
2013
|
].join(" ");
|
|
2014
|
-
}),
|
|
2014
|
+
}), S = k(() => [
|
|
2015
2015
|
"dk:flex dk:items-center dk:justify-between dk:gap-3 dk:px-5 dk:py-4 dk:shrink-0",
|
|
2016
2016
|
"dk:border-b dk:border-current/10"
|
|
2017
|
-
].join(" ")),
|
|
2017
|
+
].join(" ")), M = [
|
|
2018
2018
|
"dk:px-5 dk:py-4 dk:border-t dk:border-current/10 dk:shrink-0",
|
|
2019
2019
|
"dk:flex dk:items-center dk:justify-end dk:gap-2"
|
|
2020
2020
|
].join(" ");
|
|
2021
2021
|
function h() {
|
|
2022
2022
|
if (typeof document > "u") return;
|
|
2023
|
-
const o = document.body,
|
|
2024
|
-
o.dataset.duiDrawerCount = String(
|
|
2023
|
+
const o = document.body, C = Number(o.dataset.duiDrawerCount || "0") + 1;
|
|
2024
|
+
o.dataset.duiDrawerCount = String(C), C === 1 && (o.style.overflow = "hidden");
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2026
|
+
function m() {
|
|
2027
2027
|
if (typeof document > "u") return;
|
|
2028
|
-
const o = document.body,
|
|
2029
|
-
o.dataset.duiDrawerCount = String(
|
|
2028
|
+
const o = document.body, s = Number(o.dataset.duiDrawerCount || "0"), C = Math.max(0, s - 1);
|
|
2029
|
+
o.dataset.duiDrawerCount = String(C), C === 0 && (o.style.overflow = "");
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2032
|
-
|
|
2031
|
+
function i(o) {
|
|
2032
|
+
u("update:modelValue", !1), u("close", o);
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2035
|
-
|
|
2034
|
+
function g() {
|
|
2035
|
+
u("backdrop"), !(e.persistent || !e.closeOnBackdrop) && i("backdrop");
|
|
2036
2036
|
}
|
|
2037
2037
|
function w(o) {
|
|
2038
|
-
o.key !== "Escape" || !e.modelValue || (
|
|
2038
|
+
o.key !== "Escape" || !e.modelValue || (u("escape"), !(e.persistent || !e.closeOnEsc) && i("escape"));
|
|
2039
2039
|
}
|
|
2040
2040
|
return re(
|
|
2041
2041
|
() => e.modelValue,
|
|
2042
|
-
(o,
|
|
2043
|
-
o && !
|
|
2042
|
+
(o, s) => {
|
|
2043
|
+
o && !s && (h(), u("open")), !o && s && m();
|
|
2044
2044
|
}
|
|
2045
2045
|
), be(() => {
|
|
2046
2046
|
e.modelValue && h(), typeof window < "u" && window.addEventListener("keydown", w);
|
|
2047
2047
|
}), pe(() => {
|
|
2048
|
-
e.modelValue &&
|
|
2049
|
-
}), (o,
|
|
2050
|
-
|
|
2048
|
+
e.modelValue && m(), typeof window < "u" && window.removeEventListener("keydown", w);
|
|
2049
|
+
}), (o, s) => (t(), W(me, { to: "body" }, [
|
|
2050
|
+
J(ne, {
|
|
2051
2051
|
"enter-active-class": "dk:transition-opacity dk:duration-200",
|
|
2052
2052
|
"leave-active-class": "dk:transition-opacity dk:duration-200",
|
|
2053
2053
|
"enter-from-class": "dk:opacity-0",
|
|
@@ -2057,17 +2057,17 @@ const We = { key: 1 }, Oe = `
|
|
|
2057
2057
|
e.modelValue ? (t(), a("div", {
|
|
2058
2058
|
key: 0,
|
|
2059
2059
|
style: ae({ zIndex: String(e.zIndex) }),
|
|
2060
|
-
class:
|
|
2061
|
-
onClick:
|
|
2062
|
-
}, null, 6)) :
|
|
2060
|
+
class: c(x.value),
|
|
2061
|
+
onClick: g
|
|
2062
|
+
}, null, 6)) : $("", !0)
|
|
2063
2063
|
]),
|
|
2064
2064
|
_: 1
|
|
2065
2065
|
}),
|
|
2066
|
-
|
|
2067
|
-
"enter-active-class":
|
|
2068
|
-
"leave-active-class":
|
|
2069
|
-
"enter-from-class":
|
|
2070
|
-
"leave-to-class":
|
|
2066
|
+
J(ne, {
|
|
2067
|
+
"enter-active-class": l.value.enterActive,
|
|
2068
|
+
"leave-active-class": l.value.leaveActive,
|
|
2069
|
+
"enter-from-class": l.value.hidden,
|
|
2070
|
+
"leave-to-class": l.value.hidden
|
|
2071
2071
|
}, {
|
|
2072
2072
|
default: A(() => [
|
|
2073
2073
|
e.modelValue ? (t(), a("div", {
|
|
@@ -2075,50 +2075,50 @@ const We = { key: 1 }, Oe = `
|
|
|
2075
2075
|
style: ae({ zIndex: String(e.zIndex + 1) }),
|
|
2076
2076
|
role: "dialog",
|
|
2077
2077
|
"aria-modal": "true",
|
|
2078
|
-
"aria-labelledby": e.name ?
|
|
2079
|
-
class:
|
|
2080
|
-
onClick:
|
|
2078
|
+
"aria-labelledby": e.name ? n : void 0,
|
|
2079
|
+
class: c(y.value),
|
|
2080
|
+
onClick: s[1] || (s[1] = R(() => {
|
|
2081
2081
|
}, ["stop"]))
|
|
2082
2082
|
}, [
|
|
2083
2083
|
o.$slots.header || e.name || e.showClose ? (t(), a("header", {
|
|
2084
2084
|
key: 0,
|
|
2085
|
-
class:
|
|
2085
|
+
class: c(S.value)
|
|
2086
2086
|
}, [
|
|
2087
|
-
|
|
2087
|
+
T(o.$slots, "header", {}, () => [
|
|
2088
2088
|
e.name ? (t(), a("h2", {
|
|
2089
2089
|
key: 0,
|
|
2090
|
-
id:
|
|
2090
|
+
id: n,
|
|
2091
2091
|
class: "dk:text-lg dk:font-semibold dk:truncate"
|
|
2092
|
-
}, j(e.name), 1)) :
|
|
2092
|
+
}, j(e.name), 1)) : $("", !0)
|
|
2093
2093
|
]),
|
|
2094
2094
|
e.showClose ? (t(), a("button", {
|
|
2095
2095
|
key: 0,
|
|
2096
2096
|
type: "button",
|
|
2097
2097
|
class: "dk:ml-auto dk:inline-flex dk:h-8 dk:w-8 dk:shrink-0 dk:items-center dk:justify-center dk:rounded dk:text-current dk:opacity-70 dk:transition-opacity dk:hover:opacity-100 dk:focus-visible:opacity-100 dk:outline-none dk:ring-2 dk:ring-current/30",
|
|
2098
2098
|
"aria-label": "Cerrar panel",
|
|
2099
|
-
onClick:
|
|
2100
|
-
}, [...
|
|
2101
|
-
|
|
2102
|
-
])])) :
|
|
2103
|
-
], 2)) :
|
|
2104
|
-
|
|
2105
|
-
class:
|
|
2099
|
+
onClick: s[0] || (s[0] = (C) => i("button"))
|
|
2100
|
+
}, [...s[2] || (s[2] = [
|
|
2101
|
+
p("span", { "aria-hidden": "true" }, "×", -1)
|
|
2102
|
+
])])) : $("", !0)
|
|
2103
|
+
], 2)) : $("", !0),
|
|
2104
|
+
p("section", {
|
|
2105
|
+
class: c(Dd)
|
|
2106
2106
|
}, [
|
|
2107
|
-
|
|
2107
|
+
T(o.$slots, "default")
|
|
2108
2108
|
]),
|
|
2109
2109
|
o.$slots.actions ? (t(), a("footer", {
|
|
2110
2110
|
key: 1,
|
|
2111
|
-
class:
|
|
2111
|
+
class: c(Z(M))
|
|
2112
2112
|
}, [
|
|
2113
|
-
|
|
2114
|
-
], 2)) :
|
|
2115
|
-
], 14,
|
|
2113
|
+
T(o.$slots, "actions")
|
|
2114
|
+
], 2)) : $("", !0)
|
|
2115
|
+
], 14, Bd)) : $("", !0)
|
|
2116
2116
|
]),
|
|
2117
2117
|
_: 3
|
|
2118
2118
|
}, 8, ["enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"])
|
|
2119
2119
|
]));
|
|
2120
2120
|
}
|
|
2121
|
-
}), Md = ["aria-describedby"],
|
|
2121
|
+
}), Md = ["aria-describedby"], _d = { class: "dk:inline-flex dk:items-center" }, Wt = /* @__PURE__ */ L({
|
|
2122
2122
|
__name: "DuiTooltip",
|
|
2123
2123
|
props: {
|
|
2124
2124
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -2144,28 +2144,28 @@ const We = { key: 1 }, Oe = `
|
|
|
2144
2144
|
},
|
|
2145
2145
|
emits: ["update:modelValue", "open", "close"],
|
|
2146
2146
|
setup(d, { emit: r }) {
|
|
2147
|
-
const e = d,
|
|
2148
|
-
let
|
|
2149
|
-
const h = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`,
|
|
2147
|
+
const e = d, u = r, f = F(null), n = F(null), z = F(!1), v = k(() => e.modelValue !== void 0), l = k(() => v.value ? !!e.modelValue : z.value), b = F(e.placement), x = F({ top: 0, left: 0 }), y = F(!1);
|
|
2148
|
+
let S = null, M = null;
|
|
2149
|
+
const h = `dui-tooltip-${Math.random().toString(36).slice(2, 10)}`, m = {
|
|
2150
2150
|
all: "dk:rounded-md",
|
|
2151
2151
|
top: "dk:rounded-t-md",
|
|
2152
2152
|
bottom: "dk:rounded-b-md",
|
|
2153
2153
|
left: "dk:rounded-l-md",
|
|
2154
2154
|
right: "dk:rounded-r-md",
|
|
2155
2155
|
none: "dk:rounded-none"
|
|
2156
|
-
},
|
|
2156
|
+
}, i = {
|
|
2157
2157
|
sm: "dk:px-2 dk:py-1 dk:text-xs",
|
|
2158
2158
|
md: "dk:px-2.5 dk:py-1.5 dk:text-sm",
|
|
2159
2159
|
lg: "dk:px-3 dk:py-2 dk:text-base"
|
|
2160
|
-
},
|
|
2160
|
+
}, g = {
|
|
2161
2161
|
xs: "dk:max-w-40",
|
|
2162
2162
|
sm: "dk:max-w-56",
|
|
2163
2163
|
md: "dk:max-w-72",
|
|
2164
2164
|
lg: "dk:max-w-96",
|
|
2165
2165
|
full: "dk:max-w-[min(92vw,42rem)]"
|
|
2166
2166
|
};
|
|
2167
|
-
function w(
|
|
2168
|
-
return typeof
|
|
2167
|
+
function w(D) {
|
|
2168
|
+
return typeof D == "string" && D in g;
|
|
2169
2169
|
}
|
|
2170
2170
|
const o = {
|
|
2171
2171
|
solid: {
|
|
@@ -2186,26 +2186,26 @@ const We = { key: 1 }, Oe = `
|
|
|
2186
2186
|
warning: "dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",
|
|
2187
2187
|
danger: "dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"
|
|
2188
2188
|
}
|
|
2189
|
-
},
|
|
2190
|
-
const
|
|
2189
|
+
}, s = k(() => {
|
|
2190
|
+
const D = m[e.rounded], V = i[e.size], _ = o[e.variant].base, q = o[e.variant][e.color], N = w(e.maxWidth) ? g[e.maxWidth] : "";
|
|
2191
2191
|
return [
|
|
2192
2192
|
"dk:fixed dk:pointer-events-auto dk:leading-tight dk:select-text dk:cursor-default",
|
|
2193
2193
|
"dk:break-words dk:whitespace-normal",
|
|
2194
|
-
|
|
2194
|
+
D,
|
|
2195
2195
|
V,
|
|
2196
|
-
|
|
2197
|
-
|
|
2196
|
+
_,
|
|
2197
|
+
q,
|
|
2198
2198
|
N
|
|
2199
2199
|
].join(" ");
|
|
2200
|
-
}),
|
|
2201
|
-
const
|
|
2200
|
+
}), C = k(() => {
|
|
2201
|
+
const D = {
|
|
2202
2202
|
top: `${x.value.top}px`,
|
|
2203
2203
|
left: `${x.value.left}px`,
|
|
2204
2204
|
zIndex: String(e.zIndex)
|
|
2205
2205
|
};
|
|
2206
|
-
return typeof e.maxWidth == "number" ?
|
|
2206
|
+
return typeof e.maxWidth == "number" ? D.maxWidth = `${e.maxWidth}px` : typeof e.maxWidth == "string" && !w(e.maxWidth) && (D.maxWidth = e.maxWidth), D;
|
|
2207
2207
|
}), B = k(() => {
|
|
2208
|
-
const
|
|
2208
|
+
const D = o[e.variant][e.color], V = b.value, _ = {
|
|
2209
2209
|
top: "dk:-bottom-1.5 dk:left-1/2 dk:-translate-x-1/2 dk:rotate-45",
|
|
2210
2210
|
"top-start": "dk:-bottom-1.5 dk:left-3 dk:rotate-45",
|
|
2211
2211
|
"top-end": "dk:-bottom-1.5 dk:right-3 dk:rotate-45",
|
|
@@ -2221,29 +2221,29 @@ const We = { key: 1 }, Oe = `
|
|
|
2221
2221
|
};
|
|
2222
2222
|
return [
|
|
2223
2223
|
"dk:absolute dk:block dk:h-3 dk:w-3",
|
|
2224
|
-
|
|
2225
|
-
|
|
2224
|
+
D,
|
|
2225
|
+
_[V] || _.top
|
|
2226
2226
|
].join(" ");
|
|
2227
2227
|
});
|
|
2228
|
-
function
|
|
2229
|
-
|
|
2228
|
+
function I() {
|
|
2229
|
+
S && (clearTimeout(S), S = null), M && (clearTimeout(M), M = null);
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2232
|
-
e.disabled || (
|
|
2233
|
-
|
|
2234
|
-
})) :
|
|
2231
|
+
function X(D, V) {
|
|
2232
|
+
e.disabled || (v.value ? u("update:modelValue", D) : z.value = D, D ? (u("open", V), ue(() => {
|
|
2233
|
+
Y();
|
|
2234
|
+
})) : u("close", V));
|
|
2235
2235
|
}
|
|
2236
|
-
function ee(
|
|
2237
|
-
|
|
2238
|
-
|
|
2236
|
+
function ee(D) {
|
|
2237
|
+
I(), S = setTimeout(() => {
|
|
2238
|
+
X(!0, D);
|
|
2239
2239
|
}, Math.max(0, e.showDelay));
|
|
2240
2240
|
}
|
|
2241
|
-
function de(
|
|
2242
|
-
|
|
2243
|
-
|
|
2241
|
+
function de(D) {
|
|
2242
|
+
I(), M = setTimeout(() => {
|
|
2243
|
+
D === "hover" && e.interactive && y.value || X(!1, D);
|
|
2244
2244
|
}, Math.max(0, e.hideDelay));
|
|
2245
2245
|
}
|
|
2246
|
-
function ge(
|
|
2246
|
+
function ge(D) {
|
|
2247
2247
|
return {
|
|
2248
2248
|
top: "bottom",
|
|
2249
2249
|
"top-start": "bottom-start",
|
|
@@ -2257,35 +2257,35 @@ const We = { key: 1 }, Oe = `
|
|
|
2257
2257
|
right: "left",
|
|
2258
2258
|
"right-start": "left-start",
|
|
2259
2259
|
"right-end": "left-end"
|
|
2260
|
-
}[
|
|
2260
|
+
}[D];
|
|
2261
2261
|
}
|
|
2262
|
-
function te(
|
|
2263
|
-
const [
|
|
2264
|
-
let
|
|
2265
|
-
|
|
2266
|
-
const
|
|
2267
|
-
return
|
|
2262
|
+
function te(D, V, _) {
|
|
2263
|
+
const [q, N] = D.split("-"), G = e.offset;
|
|
2264
|
+
let U = 0, H = 0;
|
|
2265
|
+
q === "top" && (U = V.top - _.height - G, N === "start" ? H = V.left : N === "end" ? H = V.right - _.width : H = V.left + V.width / 2 - _.width / 2), q === "bottom" && (U = V.bottom + G, N === "start" ? H = V.left : N === "end" ? H = V.right - _.width : H = V.left + V.width / 2 - _.width / 2), q === "left" && (H = V.left - _.width - G, N === "start" ? U = V.top : N === "end" ? U = V.bottom - _.height : U = V.top + V.height / 2 - _.height / 2), q === "right" && (H = V.right + G, N === "start" ? U = V.top : N === "end" ? U = V.bottom - _.height : U = V.top + V.height / 2 - _.height / 2);
|
|
2266
|
+
const ce = e.viewportPadding, Te = window.innerWidth, Le = window.innerHeight;
|
|
2267
|
+
return U = Math.min(Math.max(ce, U), Le - _.height - ce), H = Math.min(Math.max(ce, H), Te - _.width - ce), { top: U, left: H };
|
|
2268
2268
|
}
|
|
2269
|
-
function $e(
|
|
2269
|
+
function $e(D, V, _) {
|
|
2270
2270
|
if (!e.flip) return !1;
|
|
2271
|
-
const [
|
|
2272
|
-
return
|
|
2271
|
+
const [q] = D.split("-"), N = e.offset, G = e.viewportPadding;
|
|
2272
|
+
return q === "top" ? V.top - _.height - N < G : q === "bottom" ? V.bottom + _.height + N > window.innerHeight - G : q === "left" ? V.left - _.width - N < G : V.right + _.width + N > window.innerWidth - G;
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2275
|
-
if (!
|
|
2276
|
-
const
|
|
2277
|
-
let
|
|
2278
|
-
$e(
|
|
2274
|
+
function Y() {
|
|
2275
|
+
if (!f.value || !n.value) return;
|
|
2276
|
+
const D = f.value.getBoundingClientRect(), V = n.value.getBoundingClientRect();
|
|
2277
|
+
let _ = e.placement;
|
|
2278
|
+
$e(_, D, V) && (_ = ge(_)), b.value = _, x.value = te(_, D, V);
|
|
2279
2279
|
}
|
|
2280
2280
|
function Se() {
|
|
2281
2281
|
e.trigger === "hover" && ee("hover");
|
|
2282
2282
|
}
|
|
2283
|
-
function je(
|
|
2283
|
+
function je(D) {
|
|
2284
2284
|
var V;
|
|
2285
2285
|
if (e.trigger === "hover") {
|
|
2286
2286
|
if (e.interactive) {
|
|
2287
|
-
const
|
|
2288
|
-
if (
|
|
2287
|
+
const _ = D.relatedTarget;
|
|
2288
|
+
if (_ && ((V = n.value) != null && V.contains(_)))
|
|
2289
2289
|
return;
|
|
2290
2290
|
}
|
|
2291
2291
|
de("hover");
|
|
@@ -2297,95 +2297,95 @@ const We = { key: 1 }, Oe = `
|
|
|
2297
2297
|
function Be() {
|
|
2298
2298
|
e.trigger !== "focus" && e.trigger !== "hover" || de("focus");
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2301
|
-
e.trigger === "click" && (
|
|
2300
|
+
function De(D) {
|
|
2301
|
+
e.trigger === "click" && (D.stopPropagation(), l.value ? de("click") : ee("click"));
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2304
|
-
e.interactive && (
|
|
2303
|
+
function Me() {
|
|
2304
|
+
e.interactive && (y.value = !0, I());
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2307
|
-
var
|
|
2306
|
+
function _e(D) {
|
|
2307
|
+
var _;
|
|
2308
2308
|
if (!e.interactive) return;
|
|
2309
|
-
const V =
|
|
2310
|
-
V && ((
|
|
2309
|
+
const V = D.relatedTarget;
|
|
2310
|
+
V && ((_ = f.value) != null && _.contains(V)) || (y.value = !1, de("hover"));
|
|
2311
2311
|
}
|
|
2312
|
-
function ve(
|
|
2313
|
-
var
|
|
2314
|
-
if (e.trigger !== "click" || !
|
|
2315
|
-
const V =
|
|
2316
|
-
(
|
|
2312
|
+
function ve(D) {
|
|
2313
|
+
var _, q;
|
|
2314
|
+
if (e.trigger !== "click" || !l.value) return;
|
|
2315
|
+
const V = D.target;
|
|
2316
|
+
(_ = f.value) != null && _.contains(V) || (q = n.value) != null && q.contains(V) || de("outside");
|
|
2317
2317
|
}
|
|
2318
2318
|
return re(
|
|
2319
2319
|
() => e.modelValue,
|
|
2320
|
-
(
|
|
2321
|
-
|
|
2320
|
+
(D) => {
|
|
2321
|
+
v.value && D && ue(Y);
|
|
2322
2322
|
}
|
|
2323
2323
|
), re(
|
|
2324
2324
|
() => e.placement,
|
|
2325
2325
|
() => {
|
|
2326
|
-
|
|
2326
|
+
l.value && ue(Y);
|
|
2327
2327
|
}
|
|
2328
|
-
), re(
|
|
2329
|
-
|
|
2328
|
+
), re(l, (D) => {
|
|
2329
|
+
D && ue(Y);
|
|
2330
2330
|
}), be(() => {
|
|
2331
|
-
typeof window > "u" || (window.addEventListener("resize",
|
|
2331
|
+
typeof window > "u" || (window.addEventListener("resize", Y), window.addEventListener("scroll", Y, !0), window.addEventListener("click", ve));
|
|
2332
2332
|
}), pe(() => {
|
|
2333
|
-
|
|
2334
|
-
}), (
|
|
2335
|
-
|
|
2333
|
+
I(), !(typeof window > "u") && (window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, !0), window.removeEventListener("click", ve));
|
|
2334
|
+
}), (D, V) => (t(), a(E, null, [
|
|
2335
|
+
p("span", {
|
|
2336
2336
|
ref_key: "triggerRef",
|
|
2337
|
-
ref:
|
|
2337
|
+
ref: f,
|
|
2338
2338
|
class: "dk:relative dk:inline-flex dk:max-w-full",
|
|
2339
|
-
"aria-describedby":
|
|
2339
|
+
"aria-describedby": l.value ? h : void 0,
|
|
2340
2340
|
onMouseenter: Se,
|
|
2341
2341
|
onMouseleave: je,
|
|
2342
2342
|
onFocusin: Ve,
|
|
2343
2343
|
onFocusout: Be,
|
|
2344
|
-
onClick:
|
|
2344
|
+
onClick: De
|
|
2345
2345
|
}, [
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2346
|
+
T(D.$slots, "trigger", {}, () => [
|
|
2347
|
+
T(D.$slots, "default", {}, () => [
|
|
2348
|
+
p("span", _d, j(e.fallbackTriggerText), 1)
|
|
2349
2349
|
])
|
|
2350
2350
|
])
|
|
2351
2351
|
], 40, Md),
|
|
2352
|
-
(t(),
|
|
2352
|
+
(t(), W(me, {
|
|
2353
2353
|
to: e.teleportTo
|
|
2354
2354
|
}, [
|
|
2355
|
-
|
|
2355
|
+
J(ne, {
|
|
2356
2356
|
"enter-active-class": "dk:transition-opacity dk:duration-150",
|
|
2357
2357
|
"leave-active-class": "dk:transition-opacity dk:duration-100",
|
|
2358
2358
|
"enter-from-class": "dk:opacity-0",
|
|
2359
2359
|
"leave-to-class": "dk:opacity-0"
|
|
2360
2360
|
}, {
|
|
2361
2361
|
default: A(() => [
|
|
2362
|
-
|
|
2362
|
+
l.value && !e.disabled ? (t(), a("div", {
|
|
2363
2363
|
key: 0,
|
|
2364
2364
|
ref_key: "tooltipRef",
|
|
2365
|
-
ref:
|
|
2365
|
+
ref: n,
|
|
2366
2366
|
id: h,
|
|
2367
2367
|
role: "tooltip",
|
|
2368
|
-
class:
|
|
2369
|
-
style: ae(
|
|
2370
|
-
onMouseenter:
|
|
2371
|
-
onMouseleave:
|
|
2368
|
+
class: c(s.value),
|
|
2369
|
+
style: ae(C.value),
|
|
2370
|
+
onMouseenter: Me,
|
|
2371
|
+
onMouseleave: _e
|
|
2372
2372
|
}, [
|
|
2373
|
-
|
|
2374
|
-
|
|
2373
|
+
T(D.$slots, "content", {}, () => [
|
|
2374
|
+
P(j(e.text), 1)
|
|
2375
2375
|
]),
|
|
2376
2376
|
e.arrow ? (t(), a("span", {
|
|
2377
2377
|
key: 0,
|
|
2378
2378
|
"aria-hidden": "true",
|
|
2379
|
-
class:
|
|
2380
|
-
}, null, 2)) :
|
|
2381
|
-
], 38)) :
|
|
2379
|
+
class: c(B.value)
|
|
2380
|
+
}, null, 2)) : $("", !0)
|
|
2381
|
+
], 38)) : $("", !0)
|
|
2382
2382
|
]),
|
|
2383
2383
|
_: 3
|
|
2384
2384
|
})
|
|
2385
2385
|
], 8, ["to"]))
|
|
2386
2386
|
], 64));
|
|
2387
2387
|
}
|
|
2388
|
-
}), Td = ["open"],
|
|
2388
|
+
}), Td = ["open"], Ld = ["onClick"], Pd = { class: "dui-acc-title" }, Id = { class: "dui-acc-panel" }, Ad = /* @__PURE__ */ L({
|
|
2389
2389
|
__name: "DuiAccordion",
|
|
2390
2390
|
props: {
|
|
2391
2391
|
items: {},
|
|
@@ -2398,20 +2398,20 @@ const We = { key: 1 }, Oe = `
|
|
|
2398
2398
|
},
|
|
2399
2399
|
emits: ["update:modelValue", "change"],
|
|
2400
2400
|
setup(d, { emit: r }) {
|
|
2401
|
-
const e = d,
|
|
2402
|
-
function
|
|
2403
|
-
return e.modelValue === void 0 ?
|
|
2401
|
+
const e = d, u = r, f = F([]);
|
|
2402
|
+
function n() {
|
|
2403
|
+
return e.modelValue === void 0 ? f.value : Array.isArray(e.modelValue) ? e.modelValue : e.modelValue ? [e.modelValue] : [];
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2406
|
-
return
|
|
2405
|
+
function z(w) {
|
|
2406
|
+
return n().includes(w);
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function v(w, o) {
|
|
2409
2409
|
if (o) return;
|
|
2410
|
-
const
|
|
2411
|
-
let
|
|
2412
|
-
e.multiple ?
|
|
2410
|
+
const s = n();
|
|
2411
|
+
let C;
|
|
2412
|
+
e.multiple ? C = s.includes(w) ? s.filter((B) => B !== w) : [...s, w] : C = s.includes(w) ? [] : [w], f.value = C, u("update:modelValue", e.multiple ? C : C[0] ?? ""), u("change", w);
|
|
2413
2413
|
}
|
|
2414
|
-
const
|
|
2414
|
+
const l = {
|
|
2415
2415
|
sm: {
|
|
2416
2416
|
summary: "dk:px-3 dk:py-2.5 dk:text-sm dk:gap-2",
|
|
2417
2417
|
content: "dk:px-3 dk:pt-0 dk:pb-3 dk:text-sm",
|
|
@@ -2430,7 +2430,7 @@ const We = { key: 1 }, Oe = `
|
|
|
2430
2430
|
icon: "dk:text-xl",
|
|
2431
2431
|
chevron: "dk:w-5 dk:h-5"
|
|
2432
2432
|
}
|
|
2433
|
-
},
|
|
2433
|
+
}, b = {
|
|
2434
2434
|
neutral: "dk:bg-zinc-50 dk:dark:bg-zinc-800/60",
|
|
2435
2435
|
primary: "dk:bg-slate-50 dk:dark:bg-slate-800/60",
|
|
2436
2436
|
secondary: "dk:bg-pink-50 dk:dark:bg-pink-900/30",
|
|
@@ -2444,56 +2444,56 @@ const We = { key: 1 }, Oe = `
|
|
|
2444
2444
|
success: "dk:text-emerald-800 dk:dark:text-emerald-100",
|
|
2445
2445
|
warning: "dk:text-amber-800 dk:dark:text-amber-100",
|
|
2446
2446
|
danger: "dk:text-rose-800 dk:dark:text-rose-100"
|
|
2447
|
-
},
|
|
2447
|
+
}, y = {
|
|
2448
2448
|
neutral: "dk:text-zinc-500 dk:dark:text-zinc-400",
|
|
2449
2449
|
primary: "dk:text-slate-500 dk:dark:text-slate-400",
|
|
2450
2450
|
secondary: "dk:text-pink-500 dk:dark:text-pink-400",
|
|
2451
2451
|
success: "dk:text-emerald-500 dk:dark:text-emerald-400",
|
|
2452
2452
|
warning: "dk:text-amber-500 dk:dark:text-amber-400",
|
|
2453
2453
|
danger: "dk:text-rose-500 dk:dark:text-rose-400"
|
|
2454
|
-
},
|
|
2454
|
+
}, S = k(() => 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"), M = k(() => 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");
|
|
2455
2455
|
function h(w, o) {
|
|
2456
|
-
const
|
|
2456
|
+
const s = l[e.size], C = z(w), B = [
|
|
2457
2457
|
"dk:flex dk:w-full dk:items-center dk:select-none dk:outline-none",
|
|
2458
2458
|
"dk:transition-colors dk:duration-150",
|
|
2459
|
-
|
|
2460
|
-
],
|
|
2461
|
-
return [...B, ...
|
|
2459
|
+
s.summary
|
|
2460
|
+
], I = C ? [b[e.color], x[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"], X = "dk:focus-visible:ring-2 dk:focus-visible:ring-inset dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500", ee = o ? "dk:opacity-40 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
|
|
2461
|
+
return [...B, ...I, X, ee].join(" ");
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2464
|
-
const o =
|
|
2463
|
+
function m(w) {
|
|
2464
|
+
const o = l[e.size];
|
|
2465
2465
|
return [
|
|
2466
2466
|
"dk:flex-shrink-0 dk:transition-transform dk:duration-250 dk:ease-in-out dk:ml-auto",
|
|
2467
|
-
|
|
2467
|
+
z(w) ? "dk:rotate-180 " + y[e.color] : "dk:text-zinc-400 dk:dark:text-zinc-500",
|
|
2468
2468
|
o.chevron
|
|
2469
2469
|
].join(" ");
|
|
2470
2470
|
}
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2471
|
+
const i = k(() => ["dk:flex-shrink-0 dk:leading-none", l[e.size].icon].join(" ")), g = k(() => [
|
|
2472
|
+
l[e.size].content,
|
|
2473
2473
|
"dk:text-zinc-600 dk:dark:text-zinc-400 dk:leading-relaxed"
|
|
2474
2474
|
].join(" "));
|
|
2475
2475
|
return (w, o) => (t(), a("div", {
|
|
2476
|
-
class:
|
|
2476
|
+
class: c(S.value)
|
|
2477
2477
|
}, [
|
|
2478
|
-
(t(!0), a(E, null,
|
|
2479
|
-
key:
|
|
2480
|
-
open:
|
|
2481
|
-
class:
|
|
2482
|
-
onToggle: o[0] || (o[0] =
|
|
2478
|
+
(t(!0), a(E, null, K(d.items, (s, C) => (t(), a("details", {
|
|
2479
|
+
key: s.value ?? C,
|
|
2480
|
+
open: z(s.value ?? String(C)),
|
|
2481
|
+
class: c(M.value),
|
|
2482
|
+
onToggle: o[0] || (o[0] = R(() => {
|
|
2483
2483
|
}, ["prevent"]))
|
|
2484
2484
|
}, [
|
|
2485
|
-
|
|
2486
|
-
class:
|
|
2487
|
-
onClick:
|
|
2485
|
+
p("summary", {
|
|
2486
|
+
class: c(h(s.value ?? String(C), s.disabled)),
|
|
2487
|
+
onClick: R((B) => v(s.value ?? String(C), s.disabled), ["prevent"])
|
|
2488
2488
|
}, [
|
|
2489
|
-
|
|
2489
|
+
s.icon ? (t(), a("span", {
|
|
2490
2490
|
key: 0,
|
|
2491
2491
|
"aria-hidden": "true",
|
|
2492
|
-
class:
|
|
2493
|
-
}, j(
|
|
2494
|
-
|
|
2492
|
+
class: c(i.value)
|
|
2493
|
+
}, j(s.icon), 3)) : $("", !0),
|
|
2494
|
+
p("span", Pd, j(s.title), 1),
|
|
2495
2495
|
(t(), a("svg", {
|
|
2496
|
-
class:
|
|
2496
|
+
class: c(m(s.value ?? String(C))),
|
|
2497
2497
|
viewBox: "0 0 16 16",
|
|
2498
2498
|
fill: "none",
|
|
2499
2499
|
stroke: "currentColor",
|
|
@@ -2502,22 +2502,22 @@ const We = { key: 1 }, Oe = `
|
|
|
2502
2502
|
"stroke-linejoin": "round",
|
|
2503
2503
|
"aria-hidden": "true"
|
|
2504
2504
|
}, [...o[1] || (o[1] = [
|
|
2505
|
-
|
|
2505
|
+
p("polyline", { points: "4 6 8 10 12 6" }, null, -1)
|
|
2506
2506
|
])], 2))
|
|
2507
|
-
], 10,
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
class:
|
|
2507
|
+
], 10, Ld),
|
|
2508
|
+
p("div", Id, [
|
|
2509
|
+
p("div", {
|
|
2510
|
+
class: c(g.value)
|
|
2511
2511
|
}, [
|
|
2512
|
-
|
|
2513
|
-
|
|
2512
|
+
T(w.$slots, s.value ?? String(C), {}, () => [
|
|
2513
|
+
p("p", null, j(s.content), 1)
|
|
2514
2514
|
], !0)
|
|
2515
2515
|
], 2)
|
|
2516
2516
|
])
|
|
2517
2517
|
], 42, Td))), 128))
|
|
2518
2518
|
], 2));
|
|
2519
2519
|
}
|
|
2520
|
-
}),
|
|
2520
|
+
}), Ot = /* @__PURE__ */ ie(Ad, [["__scopeId", "data-v-9bd77ff3"]]), Ed = ["aria-label"], Nt = /* @__PURE__ */ L({
|
|
2521
2521
|
inheritAttrs: !1,
|
|
2522
2522
|
__name: "DuiBadge",
|
|
2523
2523
|
props: {
|
|
@@ -2532,16 +2532,16 @@ const We = { key: 1 }, Oe = `
|
|
|
2532
2532
|
},
|
|
2533
2533
|
emits: ["dismiss"],
|
|
2534
2534
|
setup(d, { emit: r }) {
|
|
2535
|
-
const e = d,
|
|
2535
|
+
const e = d, u = r, f = {
|
|
2536
2536
|
xs: "dk:text-[10px] dk:leading-none dk:px-1.5 dk:py-0.5 dk:gap-1",
|
|
2537
2537
|
sm: "dk:text-xs dk:leading-none dk:px-2 dk:py-1 dk:gap-1",
|
|
2538
2538
|
md: "dk:text-sm dk:px-2.5 dk:py-1 dk:gap-1.5",
|
|
2539
2539
|
lg: "dk:text-base dk:px-3 dk:py-1.5 dk:gap-2"
|
|
2540
|
-
},
|
|
2540
|
+
}, n = {
|
|
2541
2541
|
full: "dk:rounded-full",
|
|
2542
2542
|
md: "dk:rounded-md",
|
|
2543
2543
|
none: "dk:rounded-none"
|
|
2544
|
-
},
|
|
2544
|
+
}, z = {
|
|
2545
2545
|
soft: {
|
|
2546
2546
|
neutral: "dk:bg-zinc-100 dk:text-zinc-700 dk:dark:bg-zinc-800 dk:dark:text-zinc-300",
|
|
2547
2547
|
primary: "dk:bg-slate-100 dk:text-slate-700 dk:dark:bg-slate-800 dk:dark:text-slate-300",
|
|
@@ -2566,52 +2566,52 @@ const We = { key: 1 }, Oe = `
|
|
|
2566
2566
|
warning: "dk:border dk:border-amber-400 dk:text-amber-700 dk:dark:border-amber-500 dk:dark:text-amber-300",
|
|
2567
2567
|
danger: "dk:border dk:border-rose-400 dk:text-rose-700 dk:dark:border-rose-500 dk:dark:text-rose-300"
|
|
2568
2568
|
}
|
|
2569
|
-
},
|
|
2569
|
+
}, v = {
|
|
2570
2570
|
neutral: "dk:bg-zinc-500 dk:dark:bg-zinc-400",
|
|
2571
2571
|
primary: "dk:bg-slate-500 dk:dark:bg-slate-400",
|
|
2572
2572
|
secondary: "dk:bg-pink-500 dk:dark:bg-pink-400",
|
|
2573
2573
|
success: "dk:bg-emerald-500 dk:dark:bg-emerald-400",
|
|
2574
2574
|
warning: "dk:bg-amber-500 dk:dark:bg-amber-400",
|
|
2575
2575
|
danger: "dk:bg-rose-500 dk:dark:bg-rose-400"
|
|
2576
|
-
},
|
|
2577
|
-
const
|
|
2578
|
-
return [
|
|
2579
|
-
}),
|
|
2576
|
+
}, l = k(() => {
|
|
2577
|
+
const S = "dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none", M = f[e.size], h = n[e.rounded], m = z[e.variant][e.color], i = e.href ? "dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity" : "";
|
|
2578
|
+
return [S, M, h, m, i].join(" ");
|
|
2579
|
+
}), b = k(() => ["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], v[e.color]].join(" ")), x = k(() => "dk:flex-shrink-0 dk:flex dk:items-center"), y = k(() => [
|
|
2580
2580
|
"dk:-mr-0.5 dk:flex-shrink-0 dk:inline-flex dk:items-center dk:justify-center",
|
|
2581
2581
|
"dk:rounded-full dk:w-3.5 dk:h-3.5 dk:text-sm dk:leading-none",
|
|
2582
2582
|
"dk:opacity-60 dk:hover:opacity-100 dk:transition-opacity dk:outline-none",
|
|
2583
2583
|
"dk:hover:bg-black/10 dk:dark:hover:bg-white/10"
|
|
2584
2584
|
].join(" "));
|
|
2585
|
-
return (
|
|
2585
|
+
return (S, M) => (t(), W(Q(d.href ? "a" : "span"), O({
|
|
2586
2586
|
href: d.href,
|
|
2587
|
-
class:
|
|
2588
|
-
},
|
|
2587
|
+
class: l.value
|
|
2588
|
+
}, S.$attrs), {
|
|
2589
2589
|
default: A(() => [
|
|
2590
|
-
|
|
2590
|
+
S.$slots.icon || d.dot ? (t(), a("span", {
|
|
2591
2591
|
key: 0,
|
|
2592
2592
|
"aria-hidden": "true",
|
|
2593
|
-
class:
|
|
2593
|
+
class: c(x.value)
|
|
2594
2594
|
}, [
|
|
2595
2595
|
d.dot ? (t(), a("span", {
|
|
2596
2596
|
key: 0,
|
|
2597
|
-
class:
|
|
2598
|
-
}, null, 2)) :
|
|
2599
|
-
], 2)) :
|
|
2600
|
-
|
|
2601
|
-
|
|
2597
|
+
class: c(b.value)
|
|
2598
|
+
}, null, 2)) : T(S.$slots, "icon", {}, void 0, void 0, 1)
|
|
2599
|
+
], 2)) : $("", !0),
|
|
2600
|
+
T(S.$slots, "default", {}, () => [
|
|
2601
|
+
P(j(d.label), 1)
|
|
2602
2602
|
]),
|
|
2603
2603
|
d.dismissible ? (t(), a("button", {
|
|
2604
2604
|
key: 1,
|
|
2605
2605
|
type: "button",
|
|
2606
|
-
class:
|
|
2606
|
+
class: c(y.value),
|
|
2607
2607
|
"aria-label": d.label ? `Quitar ${d.label}` : "Quitar",
|
|
2608
|
-
onClick:
|
|
2609
|
-
}, " × ", 10,
|
|
2608
|
+
onClick: M[0] || (M[0] = R((h) => u("dismiss"), ["prevent"]))
|
|
2609
|
+
}, " × ", 10, Ed)) : $("", !0)
|
|
2610
2610
|
]),
|
|
2611
2611
|
_: 3
|
|
2612
2612
|
}, 16, ["href", "class"]));
|
|
2613
2613
|
}
|
|
2614
|
-
}),
|
|
2614
|
+
}), Wd = ["onKeydown"], Od = ["aria-label"], Ft = /* @__PURE__ */ L({
|
|
2615
2615
|
__name: "DuiDropdown",
|
|
2616
2616
|
props: {
|
|
2617
2617
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -2626,19 +2626,19 @@ const We = { key: 1 }, Oe = `
|
|
|
2626
2626
|
},
|
|
2627
2627
|
emits: ["update:modelValue", "open", "close"],
|
|
2628
2628
|
setup(d, { emit: r }) {
|
|
2629
|
-
const e = d,
|
|
2630
|
-
function
|
|
2629
|
+
const e = d, u = r, f = F(null), n = F(!1), z = k(() => e.modelValue !== void 0 ? e.modelValue : n.value);
|
|
2630
|
+
function v() {
|
|
2631
2631
|
if (e.disabled) return;
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2632
|
+
const m = !z.value;
|
|
2633
|
+
n.value = m, u("update:modelValue", m), u(m ? "open" : "close");
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2636
|
-
|
|
2635
|
+
function l() {
|
|
2636
|
+
n.value = !1, u("update:modelValue", !1), u("close");
|
|
2637
2637
|
}
|
|
2638
|
-
function m
|
|
2639
|
-
|
|
2638
|
+
function b(m) {
|
|
2639
|
+
f.value && !f.value.contains(m.target) && l();
|
|
2640
2640
|
}
|
|
2641
|
-
be(() => document.addEventListener("mousedown",
|
|
2641
|
+
be(() => document.addEventListener("mousedown", b)), pe(() => document.removeEventListener("mousedown", b));
|
|
2642
2642
|
const x = {
|
|
2643
2643
|
"bottom-start": "dk:top-full dk:left-0 dk:mt-1 dk:origin-top-left",
|
|
2644
2644
|
"bottom-end": "dk:top-full dk:right-0 dk:mt-1 dk:origin-top-right",
|
|
@@ -2646,11 +2646,11 @@ const We = { key: 1 }, Oe = `
|
|
|
2646
2646
|
"top-start": "dk:bottom-full dk:left-0 dk:mb-1 dk:origin-bottom-left",
|
|
2647
2647
|
"top-end": "dk:bottom-full dk:right-0 dk:mb-1 dk:origin-bottom-right",
|
|
2648
2648
|
top: "dk:bottom-full dk:left-1/2 dk:-translate-x-1/2 dk:mb-1 dk:origin-bottom"
|
|
2649
|
-
},
|
|
2649
|
+
}, y = {
|
|
2650
2650
|
all: "dk:rounded-xl",
|
|
2651
2651
|
sm: "dk:rounded-lg",
|
|
2652
2652
|
none: "dk:rounded-none"
|
|
2653
|
-
},
|
|
2653
|
+
}, S = {
|
|
2654
2654
|
solid: {
|
|
2655
2655
|
neutral: "dk:bg-white dk:dark:bg-zinc-900 dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:text-zinc-800 dk:dark:text-zinc-200",
|
|
2656
2656
|
primary: "dk:bg-slate-50 dk:dark:bg-slate-900 dk:border dk:border-slate-200 dk:dark:border-slate-700 dk:text-slate-800 dk:dark:text-slate-200",
|
|
@@ -2675,51 +2675,51 @@ const We = { key: 1 }, Oe = `
|
|
|
2675
2675
|
warning: "dk:bg-amber-100/85 dk:dark:bg-amber-900/70 dk:backdrop-blur-md dk:border dk:border-amber-300/70 dk:dark:border-amber-600/60 dk:text-amber-800 dk:dark:text-amber-200",
|
|
2676
2676
|
danger: "dk:bg-rose-100/85 dk:dark:bg-rose-900/70 dk:backdrop-blur-md dk:border dk:border-rose-300/70 dk:dark:border-rose-600/60 dk:text-rose-800 dk:dark:text-rose-200"
|
|
2677
2677
|
}
|
|
2678
|
-
},
|
|
2678
|
+
}, M = k(() => ({ minWidth: e.minWidth })), h = k(() => [
|
|
2679
2679
|
"dk:absolute dk:z-50 dk:shadow-lg dk:py-1",
|
|
2680
2680
|
x[e.placement],
|
|
2681
|
-
|
|
2682
|
-
|
|
2681
|
+
y[e.rounded],
|
|
2682
|
+
S[e.variant][e.color]
|
|
2683
2683
|
].join(" "));
|
|
2684
|
-
return (
|
|
2684
|
+
return (m, i) => (t(), a("div", {
|
|
2685
2685
|
ref_key: "wrapperRef",
|
|
2686
|
-
ref:
|
|
2686
|
+
ref: f,
|
|
2687
2687
|
class: "dk:relative dk:inline-block"
|
|
2688
2688
|
}, [
|
|
2689
|
-
|
|
2690
|
-
onClick:
|
|
2689
|
+
p("div", {
|
|
2690
|
+
onClick: v,
|
|
2691
2691
|
onKeydown: [
|
|
2692
|
-
ye(
|
|
2693
|
-
ye(
|
|
2692
|
+
ye(R(v, ["prevent"]), ["enter"]),
|
|
2693
|
+
ye(R(v, ["prevent"]), ["space"])
|
|
2694
2694
|
]
|
|
2695
2695
|
}, [
|
|
2696
|
-
|
|
2697
|
-
], 40,
|
|
2698
|
-
|
|
2696
|
+
T(m.$slots, "trigger")
|
|
2697
|
+
], 40, Wd),
|
|
2698
|
+
J(ne, {
|
|
2699
2699
|
"enter-active-class": "dk:transition-all dk:duration-150 dk:ease-out",
|
|
2700
2700
|
"leave-active-class": "dk:transition-all dk:duration-100 dk:ease-in",
|
|
2701
2701
|
"enter-from-class": "dk:opacity-0 dk:scale-95",
|
|
2702
2702
|
"leave-to-class": "dk:opacity-0 dk:scale-95"
|
|
2703
2703
|
}, {
|
|
2704
2704
|
default: A(() => [
|
|
2705
|
-
|
|
2705
|
+
z.value ? (t(), a("div", {
|
|
2706
2706
|
key: 0,
|
|
2707
|
-
class:
|
|
2708
|
-
style: ae(
|
|
2707
|
+
class: c(h.value),
|
|
2708
|
+
style: ae(M.value),
|
|
2709
2709
|
role: "menu",
|
|
2710
2710
|
"aria-label": d.ariaLabel
|
|
2711
2711
|
}, [
|
|
2712
|
-
|
|
2713
|
-
], 14,
|
|
2712
|
+
T(m.$slots, "default")
|
|
2713
|
+
], 14, Od)) : $("", !0)
|
|
2714
2714
|
]),
|
|
2715
2715
|
_: 3
|
|
2716
2716
|
})
|
|
2717
2717
|
], 512));
|
|
2718
2718
|
}
|
|
2719
|
-
}),
|
|
2719
|
+
}), Nd = { class: "dk:flex-1 dk:truncate" }, Fd = {
|
|
2720
2720
|
key: 1,
|
|
2721
2721
|
class: "dk:ml-auto dk:opacity-60 dk:text-xs"
|
|
2722
|
-
},
|
|
2722
|
+
}, Kt = /* @__PURE__ */ L({
|
|
2723
2723
|
__name: "DuiDropdownItem",
|
|
2724
2724
|
props: {
|
|
2725
2725
|
label: { default: void 0 },
|
|
@@ -2732,60 +2732,60 @@ const We = { key: 1 }, Oe = `
|
|
|
2732
2732
|
},
|
|
2733
2733
|
emits: ["click"],
|
|
2734
2734
|
setup(d, { emit: r }) {
|
|
2735
|
-
const e = d,
|
|
2735
|
+
const e = d, u = r, f = k(() => e.href ? { href: e.href, target: e.target } : { type: "button", disabled: e.disabled }), n = {
|
|
2736
2736
|
sm: "dk:px-3 dk:py-1 dk:text-xs",
|
|
2737
2737
|
md: "dk:px-3 dk:py-2 dk:text-sm",
|
|
2738
2738
|
lg: "dk:px-4 dk:py-2.5 dk:text-base"
|
|
2739
|
-
},
|
|
2740
|
-
const
|
|
2741
|
-
return [
|
|
2742
|
-
}),
|
|
2743
|
-
function
|
|
2744
|
-
e.disabled ||
|
|
2745
|
-
}
|
|
2746
|
-
return (
|
|
2747
|
-
class:
|
|
2739
|
+
}, z = k(() => {
|
|
2740
|
+
const b = "dk:flex dk:w-full dk:items-center dk:gap-2 dk:transition-colors dk:duration-100 dk:outline-none dk:text-left dk:select-none", x = n[e.size], y = e.danger ? "dk:text-rose-600 dk:dark:text-rose-400 dk:hover:bg-rose-50 dk:dark:hover:bg-rose-900/40 dk:focus-visible:bg-rose-50 dk:dark:focus-visible:bg-rose-900/40" : "dk:hover:bg-black/5 dk:dark:hover:bg-white/10 dk:focus-visible:bg-black/5 dk:dark:focus-visible:bg-white/10", S = e.disabled ? "dk:opacity-50 dk:cursor-not-allowed dk:pointer-events-none" : "dk:cursor-pointer";
|
|
2741
|
+
return [b, x, y, S].join(" ");
|
|
2742
|
+
}), v = k(() => "dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");
|
|
2743
|
+
function l(b) {
|
|
2744
|
+
e.disabled || u("click", b);
|
|
2745
|
+
}
|
|
2746
|
+
return (b, x) => (t(), W(Q(d.href ? "a" : "button"), O(f.value, {
|
|
2747
|
+
class: z.value,
|
|
2748
2748
|
role: "menuitem",
|
|
2749
2749
|
"aria-disabled": d.disabled,
|
|
2750
|
-
onClick:
|
|
2750
|
+
onClick: l
|
|
2751
2751
|
}), {
|
|
2752
2752
|
default: A(() => [
|
|
2753
|
-
|
|
2753
|
+
b.$slots.icon || d.icon ? (t(), a("span", {
|
|
2754
2754
|
key: 0,
|
|
2755
|
-
class:
|
|
2755
|
+
class: c(v.value),
|
|
2756
2756
|
"aria-hidden": "true"
|
|
2757
2757
|
}, [
|
|
2758
|
-
|
|
2759
|
-
|
|
2758
|
+
T(b.$slots, "icon", {}, () => [
|
|
2759
|
+
P(j(d.icon), 1)
|
|
2760
2760
|
])
|
|
2761
|
-
], 2)) :
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2761
|
+
], 2)) : $("", !0),
|
|
2762
|
+
p("span", Nd, [
|
|
2763
|
+
T(b.$slots, "default", {}, () => [
|
|
2764
|
+
P(j(d.label), 1)
|
|
2765
2765
|
])
|
|
2766
2766
|
]),
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
])) :
|
|
2767
|
+
b.$slots.trailing ? (t(), a("span", Fd, [
|
|
2768
|
+
T(b.$slots, "trailing")
|
|
2769
|
+
])) : $("", !0)
|
|
2770
2770
|
]),
|
|
2771
2771
|
_: 3
|
|
2772
2772
|
}, 16, ["class", "aria-disabled"]));
|
|
2773
2773
|
}
|
|
2774
|
-
}),
|
|
2774
|
+
}), Kd = {}, qd = {
|
|
2775
2775
|
class: "dk:my-1 dk:border-current/10",
|
|
2776
2776
|
role: "separator",
|
|
2777
2777
|
"aria-orientation": "horizontal"
|
|
2778
2778
|
};
|
|
2779
|
-
function
|
|
2780
|
-
return t(), a("hr",
|
|
2779
|
+
function Ud(d, r) {
|
|
2780
|
+
return t(), a("hr", qd);
|
|
2781
2781
|
}
|
|
2782
|
-
const
|
|
2782
|
+
const qt = /* @__PURE__ */ ie(Kd, [["render", Ud]]), Hd = ["aria-label"], Qd = ["disabled", "aria-label"], Gd = {
|
|
2783
2783
|
key: 0,
|
|
2784
2784
|
class: "dk:hidden dk:sm:inline"
|
|
2785
|
-
},
|
|
2785
|
+
}, Jd = ["aria-label", "aria-current", "onClick"], Xd = ["disabled", "aria-label"], Yd = {
|
|
2786
2786
|
key: 0,
|
|
2787
2787
|
class: "dk:hidden dk:sm:inline"
|
|
2788
|
-
},
|
|
2788
|
+
}, Ut = /* @__PURE__ */ L({
|
|
2789
2789
|
__name: "DuiPagination",
|
|
2790
2790
|
props: {
|
|
2791
2791
|
modelValue: {},
|
|
@@ -2804,31 +2804,31 @@ const Kt = /* @__PURE__ */ le(Fd, [["render", qd]]), Hd = ["aria-label"], Ud = [
|
|
|
2804
2804
|
},
|
|
2805
2805
|
emits: ["update:modelValue", "change"],
|
|
2806
2806
|
setup(d, { emit: r }) {
|
|
2807
|
-
const e = d,
|
|
2808
|
-
function
|
|
2809
|
-
|
|
2810
|
-
}
|
|
2811
|
-
const
|
|
2812
|
-
const
|
|
2813
|
-
if (
|
|
2814
|
-
return Array.from({ length:
|
|
2807
|
+
const e = d, u = r, f = k(() => Math.max(1, Math.ceil(e.total / e.perPage)));
|
|
2808
|
+
function n(m) {
|
|
2809
|
+
m < 1 || m > f.value || m === e.modelValue || (u("update:modelValue", m), u("change", m));
|
|
2810
|
+
}
|
|
2811
|
+
const z = k(() => {
|
|
2812
|
+
const m = f.value, i = e.modelValue, g = e.siblingCount, w = e.showBoundary ? 1 : 0;
|
|
2813
|
+
if (m <= 2 * g + 2 * w + 3)
|
|
2814
|
+
return Array.from({ length: m }, (B, I) => I + 1);
|
|
2815
2815
|
const o = [];
|
|
2816
2816
|
for (let B = 1; B <= w; B++) o.push(B);
|
|
2817
|
-
const
|
|
2818
|
-
|
|
2819
|
-
for (let B =
|
|
2820
|
-
|
|
2821
|
-
for (let B =
|
|
2817
|
+
const s = Math.max(w + 1, i - g), C = Math.min(m - w, i + g);
|
|
2818
|
+
s > w + 1 && o.push("...");
|
|
2819
|
+
for (let B = s; B <= C; B++) o.push(B);
|
|
2820
|
+
C < m - w && o.push("...");
|
|
2821
|
+
for (let B = m - w + 1; B <= m; B++) o.push(B);
|
|
2822
2822
|
return o;
|
|
2823
|
-
}),
|
|
2823
|
+
}), v = {
|
|
2824
2824
|
sm: "dk:w-7 dk:h-7 dk:text-xs",
|
|
2825
2825
|
md: "dk:w-9 dk:h-9 dk:text-sm",
|
|
2826
2826
|
lg: "dk:w-11 dk:h-11 dk:text-base"
|
|
2827
|
-
},
|
|
2827
|
+
}, l = {
|
|
2828
2828
|
full: "dk:rounded-full",
|
|
2829
2829
|
md: "dk:rounded-lg",
|
|
2830
2830
|
none: "dk:rounded-none"
|
|
2831
|
-
},
|
|
2831
|
+
}, b = {
|
|
2832
2832
|
solid: {
|
|
2833
2833
|
neutral: "dk:bg-zinc-700 dk:text-white dk:dark:bg-zinc-500",
|
|
2834
2834
|
primary: "dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",
|
|
@@ -2853,39 +2853,39 @@ const Kt = /* @__PURE__ */ le(Fd, [["render", qd]]), Hd = ["aria-label"], Ud = [
|
|
|
2853
2853
|
warning: "dk:bg-amber-100 dk:text-amber-800 dk:dark:bg-amber-700 dk:dark:text-amber-100",
|
|
2854
2854
|
danger: "dk:bg-rose-100 dk:text-rose-800 dk:dark:bg-rose-800 dk:dark:text-rose-100"
|
|
2855
2855
|
}
|
|
2856
|
-
}, x = k(() => "dk:flex dk:items-center dk:gap-1 dk:flex-wrap"),
|
|
2857
|
-
const
|
|
2856
|
+
}, x = k(() => "dk:flex dk:items-center dk:gap-1 dk:flex-wrap"), y = k(() => {
|
|
2857
|
+
const m = v[e.size], i = l[e.rounded];
|
|
2858
2858
|
return [
|
|
2859
2859
|
"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",
|
|
2860
|
-
|
|
2861
|
-
|
|
2860
|
+
m,
|
|
2861
|
+
i,
|
|
2862
2862
|
"dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400"
|
|
2863
2863
|
].join(" ");
|
|
2864
|
-
}),
|
|
2865
|
-
|
|
2864
|
+
}), S = k(() => [
|
|
2865
|
+
y.value,
|
|
2866
2866
|
"dk:text-zinc-600 dk:dark:text-zinc-400",
|
|
2867
2867
|
"dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700",
|
|
2868
2868
|
"dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"
|
|
2869
2869
|
].join(" "));
|
|
2870
|
-
function
|
|
2871
|
-
return
|
|
2872
|
-
|
|
2870
|
+
function M(m) {
|
|
2871
|
+
return m === e.modelValue ? [y.value, b[e.variant][e.color]].join(" ") : [
|
|
2872
|
+
y.value,
|
|
2873
2873
|
"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"
|
|
2874
2874
|
].join(" ");
|
|
2875
2875
|
}
|
|
2876
|
-
const h = k(() => ["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none",
|
|
2877
|
-
return (
|
|
2876
|
+
const h = k(() => ["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none", v[e.size]].join(" "));
|
|
2877
|
+
return (m, i) => (t(), a("nav", {
|
|
2878
2878
|
"aria-label": d.ariaLabel,
|
|
2879
|
-
class:
|
|
2879
|
+
class: c(x.value)
|
|
2880
2880
|
}, [
|
|
2881
|
-
|
|
2881
|
+
p("button", {
|
|
2882
2882
|
type: "button",
|
|
2883
2883
|
disabled: d.modelValue <= 1,
|
|
2884
2884
|
"aria-label": d.prevLabel,
|
|
2885
|
-
class:
|
|
2886
|
-
onClick:
|
|
2885
|
+
class: c([S.value, d.modelValue <= 1 ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
|
|
2886
|
+
onClick: i[0] || (i[0] = (g) => n(d.modelValue - 1))
|
|
2887
2887
|
}, [
|
|
2888
|
-
|
|
2888
|
+
i[2] || (i[2] = p("svg", {
|
|
2889
2889
|
class: "dk:w-4 dk:h-4",
|
|
2890
2890
|
viewBox: "0 0 16 16",
|
|
2891
2891
|
fill: "none",
|
|
@@ -2895,33 +2895,33 @@ const Kt = /* @__PURE__ */ le(Fd, [["render", qd]]), Hd = ["aria-label"], Ud = [
|
|
|
2895
2895
|
"stroke-linejoin": "round",
|
|
2896
2896
|
"aria-hidden": "true"
|
|
2897
2897
|
}, [
|
|
2898
|
-
|
|
2898
|
+
p("polyline", { points: "10 4 6 8 10 12" })
|
|
2899
2899
|
], -1)),
|
|
2900
|
-
d.showLabels ? (t(), a("span",
|
|
2901
|
-
], 10,
|
|
2902
|
-
(t(!0), a(E, null,
|
|
2903
|
-
|
|
2900
|
+
d.showLabels ? (t(), a("span", Gd, j(d.prevLabel), 1)) : $("", !0)
|
|
2901
|
+
], 10, Qd),
|
|
2902
|
+
(t(!0), a(E, null, K(z.value, (g) => (t(), a(E, { key: g }, [
|
|
2903
|
+
g === "..." ? (t(), a("span", {
|
|
2904
2904
|
key: 0,
|
|
2905
|
-
class:
|
|
2905
|
+
class: c(h.value),
|
|
2906
2906
|
"aria-hidden": "true"
|
|
2907
2907
|
}, "…", 2)) : (t(), a("button", {
|
|
2908
2908
|
key: 1,
|
|
2909
2909
|
type: "button",
|
|
2910
|
-
"aria-label": `Pagina ${
|
|
2911
|
-
"aria-current": d.modelValue ===
|
|
2912
|
-
class:
|
|
2913
|
-
onClick: (w) =>
|
|
2914
|
-
}, j(
|
|
2910
|
+
"aria-label": `Pagina ${g}`,
|
|
2911
|
+
"aria-current": d.modelValue === g ? "page" : void 0,
|
|
2912
|
+
class: c(M(g)),
|
|
2913
|
+
onClick: (w) => n(g)
|
|
2914
|
+
}, j(g), 11, Jd))
|
|
2915
2915
|
], 64))), 128)),
|
|
2916
|
-
|
|
2916
|
+
p("button", {
|
|
2917
2917
|
type: "button",
|
|
2918
|
-
disabled: d.modelValue >=
|
|
2918
|
+
disabled: d.modelValue >= f.value,
|
|
2919
2919
|
"aria-label": d.nextLabel,
|
|
2920
|
-
class:
|
|
2921
|
-
onClick:
|
|
2920
|
+
class: c([S.value, d.modelValue >= f.value ? "dk:opacity-40 dk:cursor-not-allowed" : ""]),
|
|
2921
|
+
onClick: i[1] || (i[1] = (g) => n(d.modelValue + 1))
|
|
2922
2922
|
}, [
|
|
2923
|
-
d.showLabels ? (t(), a("span",
|
|
2924
|
-
|
|
2923
|
+
d.showLabels ? (t(), a("span", Yd, j(d.nextLabel), 1)) : $("", !0),
|
|
2924
|
+
i[3] || (i[3] = p("svg", {
|
|
2925
2925
|
class: "dk:w-4 dk:h-4",
|
|
2926
2926
|
viewBox: "0 0 16 16",
|
|
2927
2927
|
fill: "none",
|
|
@@ -2931,12 +2931,12 @@ const Kt = /* @__PURE__ */ le(Fd, [["render", qd]]), Hd = ["aria-label"], Ud = [
|
|
|
2931
2931
|
"stroke-linejoin": "round",
|
|
2932
2932
|
"aria-hidden": "true"
|
|
2933
2933
|
}, [
|
|
2934
|
-
|
|
2934
|
+
p("polyline", { points: "6 4 10 8 6 12" })
|
|
2935
2935
|
], -1))
|
|
2936
|
-
], 10,
|
|
2936
|
+
], 10, Xd)
|
|
2937
2937
|
], 10, Hd));
|
|
2938
2938
|
}
|
|
2939
|
-
}),
|
|
2939
|
+
}), Zd = /* @__PURE__ */ L({
|
|
2940
2940
|
__name: "DuiSkeleton",
|
|
2941
2941
|
props: {
|
|
2942
2942
|
variant: { default: "text" },
|
|
@@ -2946,39 +2946,39 @@ const Kt = /* @__PURE__ */ le(Fd, [["render", qd]]), Hd = ["aria-label"], Ud = [
|
|
|
2946
2946
|
},
|
|
2947
2947
|
setup(d) {
|
|
2948
2948
|
const r = d;
|
|
2949
|
-
function e(
|
|
2950
|
-
if (
|
|
2951
|
-
return typeof
|
|
2949
|
+
function e(v) {
|
|
2950
|
+
if (v !== void 0)
|
|
2951
|
+
return typeof v == "number" ? `${v}px` : v;
|
|
2952
2952
|
}
|
|
2953
|
-
const
|
|
2953
|
+
const u = k(() => ({
|
|
2954
2954
|
width: e(r.width),
|
|
2955
2955
|
height: e(r.height)
|
|
2956
|
-
})),
|
|
2956
|
+
})), f = {
|
|
2957
2957
|
pulse: "dui-skeleton-pulse",
|
|
2958
2958
|
wave: "dui-skeleton-wave",
|
|
2959
2959
|
none: ""
|
|
2960
|
-
},
|
|
2960
|
+
}, n = {
|
|
2961
2961
|
text: "dk:block dk:h-4 dk:w-full dk:rounded",
|
|
2962
2962
|
circular: "dk:block dk:w-10 dk:h-10 dk:rounded-full",
|
|
2963
2963
|
rectangular: "dk:block dk:w-full dk:h-20 dk:rounded-none",
|
|
2964
2964
|
rounded: "dk:block dk:w-full dk:h-20 dk:rounded-xl"
|
|
2965
|
-
},
|
|
2965
|
+
}, z = k(() => [
|
|
2966
2966
|
"dk:bg-zinc-200 dk:dark:bg-zinc-700",
|
|
2967
|
-
|
|
2968
|
-
|
|
2967
|
+
n[r.variant],
|
|
2968
|
+
f[r.animation]
|
|
2969
2969
|
].join(" "));
|
|
2970
|
-
return (
|
|
2971
|
-
class:
|
|
2972
|
-
style: ae(
|
|
2970
|
+
return (v, l) => (t(), a("span", {
|
|
2971
|
+
class: c(z.value),
|
|
2972
|
+
style: ae(u.value),
|
|
2973
2973
|
"aria-hidden": "true",
|
|
2974
2974
|
role: "presentation"
|
|
2975
2975
|
}, null, 6));
|
|
2976
2976
|
}
|
|
2977
|
-
}), Ht = /* @__PURE__ */
|
|
2977
|
+
}), Ht = /* @__PURE__ */ ie(Zd, [["__scopeId", "data-v-8c9c6005"]]), Rd = ["aria-label"], et = ["id", "aria-controls", "aria-selected", "disabled", "onClick", "onKeydown"], dt = {
|
|
2978
2978
|
key: 0,
|
|
2979
2979
|
"aria-hidden": "true",
|
|
2980
2980
|
class: "dk:flex-shrink-0"
|
|
2981
|
-
},
|
|
2981
|
+
}, tt = ["id", "aria-labelledby", "tabindex", "hidden"], Qt = /* @__PURE__ */ L({
|
|
2982
2982
|
__name: "DuiTabs",
|
|
2983
2983
|
props: {
|
|
2984
2984
|
modelValue: {},
|
|
@@ -2991,100 +2991,100 @@ const Kt = /* @__PURE__ */ le(Fd, [["render", qd]]), Hd = ["aria-label"], Ud = [
|
|
|
2991
2991
|
},
|
|
2992
2992
|
emits: ["update:modelValue", "change"],
|
|
2993
2993
|
setup(d, { emit: r }) {
|
|
2994
|
-
const e = d,
|
|
2995
|
-
function
|
|
2996
|
-
|
|
2994
|
+
const e = d, u = r, f = Math.random().toString(36).slice(2, 8);
|
|
2995
|
+
function n(h, m) {
|
|
2996
|
+
m || (u("update:modelValue", h), u("change", h));
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2999
|
-
const
|
|
2998
|
+
function z(h, m) {
|
|
2999
|
+
const i = e.tabs.filter((w) => !w.disabled).map((w) => w.value), g = i.indexOf(m);
|
|
3000
3000
|
if (h.key === "ArrowRight" || h.key === "ArrowDown") {
|
|
3001
3001
|
h.preventDefault();
|
|
3002
|
-
const w =
|
|
3003
|
-
|
|
3002
|
+
const w = i[(g + 1) % i.length];
|
|
3003
|
+
n(w);
|
|
3004
3004
|
}
|
|
3005
3005
|
if (h.key === "ArrowLeft" || h.key === "ArrowUp") {
|
|
3006
3006
|
h.preventDefault();
|
|
3007
|
-
const w =
|
|
3008
|
-
|
|
3007
|
+
const w = i[(g - 1 + i.length) % i.length];
|
|
3008
|
+
n(w);
|
|
3009
3009
|
}
|
|
3010
|
-
h.key === "Home" && (h.preventDefault(),
|
|
3010
|
+
h.key === "Home" && (h.preventDefault(), n(i[0])), h.key === "End" && (h.preventDefault(), n(i[i.length - 1]));
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const v = {
|
|
3013
3013
|
sm: "dk:text-xs dk:px-3 dk:py-1.5",
|
|
3014
3014
|
md: "dk:text-sm dk:px-4 dk:py-2",
|
|
3015
3015
|
lg: "dk:text-base dk:px-5 dk:py-2.5"
|
|
3016
|
-
},
|
|
3016
|
+
}, l = {
|
|
3017
3017
|
neutral: { underline: "dk:border-zinc-600 dk:text-zinc-700 dk:dark:border-zinc-400 dk:dark:text-zinc-200", pills: "dk:bg-zinc-600 dk:text-white dk:dark:bg-zinc-500", boxed: "dk:bg-white dk:text-zinc-700 dk:dark:bg-zinc-800 dk:dark:text-zinc-200 dk:shadow-sm" },
|
|
3018
3018
|
primary: { underline: "dk:border-slate-600 dk:text-slate-700 dk:dark:border-slate-400 dk:dark:text-slate-200", pills: "dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500", boxed: "dk:bg-white dk:text-slate-700 dk:dark:bg-zinc-800 dk:dark:text-slate-200 dk:shadow-sm" },
|
|
3019
3019
|
secondary: { underline: "dk:border-pink-600 dk:text-pink-700 dk:dark:border-pink-400 dk:dark:text-pink-200", pills: "dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500", boxed: "dk:bg-white dk:text-pink-700 dk:dark:bg-zinc-800 dk:dark:text-pink-200 dk:shadow-sm" },
|
|
3020
3020
|
success: { underline: "dk:border-emerald-600 dk:text-emerald-700 dk:dark:border-emerald-400 dk:dark:text-emerald-200", pills: "dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500", boxed: "dk:bg-white dk:text-emerald-700 dk:dark:bg-zinc-800 dk:dark:text-emerald-200 dk:shadow-sm" },
|
|
3021
3021
|
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" },
|
|
3022
3022
|
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" }
|
|
3023
|
-
},
|
|
3024
|
-
const h = "dk:flex dk:items-center dk:gap-0.5",
|
|
3023
|
+
}, b = k(() => "dk:w-full"), x = k(() => {
|
|
3024
|
+
const h = "dk:flex dk:items-center dk:gap-0.5", m = e.fullWidth ? "dk:w-full" : "", i = {
|
|
3025
3025
|
underline: "dk:border-b dk:border-zinc-200 dk:dark:border-zinc-700",
|
|
3026
3026
|
pills: "dk:gap-1",
|
|
3027
3027
|
boxed: "dk:bg-zinc-100 dk:dark:bg-zinc-800 dk:p-1 dk:rounded-xl dk:gap-1"
|
|
3028
3028
|
}[e.variant];
|
|
3029
|
-
return [h,
|
|
3029
|
+
return [h, m, i].join(" ");
|
|
3030
3030
|
});
|
|
3031
|
-
function
|
|
3032
|
-
const
|
|
3031
|
+
function y(h, m) {
|
|
3032
|
+
const i = "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", g = v[e.size], w = e.modelValue === h, o = m ? "dk:opacity-40 dk:cursor-not-allowed" : "dk:cursor-pointer", s = "dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";
|
|
3033
3033
|
if (e.variant === "underline") {
|
|
3034
|
-
const
|
|
3035
|
-
return [
|
|
3034
|
+
const I = w ? `dk:border-b-2 ${l[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";
|
|
3035
|
+
return [i, g, I, o, s].join(" ");
|
|
3036
3036
|
}
|
|
3037
3037
|
if (e.variant === "pills") {
|
|
3038
|
-
const
|
|
3039
|
-
return [
|
|
3038
|
+
const I = w ? `dk:rounded-lg ${l[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";
|
|
3039
|
+
return [i, g, I, o, s].join(" ");
|
|
3040
3040
|
}
|
|
3041
|
-
const
|
|
3042
|
-
return [
|
|
3041
|
+
const C = w ? `dk:rounded-lg ${l[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", B = e.fullWidth ? "dk:flex-1 dk:text-center dk:justify-center" : "";
|
|
3042
|
+
return [i, g, C, o, s, B].join(" ");
|
|
3043
3043
|
}
|
|
3044
|
-
const
|
|
3045
|
-
return (h,
|
|
3046
|
-
class:
|
|
3044
|
+
const S = k(() => "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"), M = k(() => [{ sm: "dk:pt-3", md: "dk:pt-4", lg: "dk:pt-5" }[e.size], "dk:outline-none"].join(" "));
|
|
3045
|
+
return (h, m) => (t(), a("div", {
|
|
3046
|
+
class: c(b.value)
|
|
3047
3047
|
}, [
|
|
3048
|
-
|
|
3049
|
-
class:
|
|
3048
|
+
p("div", {
|
|
3049
|
+
class: c(x.value),
|
|
3050
3050
|
role: "tablist",
|
|
3051
3051
|
"aria-label": d.ariaLabel
|
|
3052
3052
|
}, [
|
|
3053
|
-
(t(!0), a(E, null,
|
|
3054
|
-
key:
|
|
3053
|
+
(t(!0), a(E, null, K(d.tabs, (i) => (t(), a("button", {
|
|
3054
|
+
key: i.value,
|
|
3055
3055
|
type: "button",
|
|
3056
|
-
id: `tab-${
|
|
3057
|
-
"aria-controls": `panel-${
|
|
3058
|
-
"aria-selected": d.modelValue ===
|
|
3059
|
-
disabled:
|
|
3056
|
+
id: `tab-${Z(f)}-${i.value}`,
|
|
3057
|
+
"aria-controls": `panel-${Z(f)}-${i.value}`,
|
|
3058
|
+
"aria-selected": d.modelValue === i.value,
|
|
3059
|
+
disabled: i.disabled,
|
|
3060
3060
|
role: "tab",
|
|
3061
|
-
class:
|
|
3062
|
-
onClick: (
|
|
3063
|
-
onKeydown: (
|
|
3061
|
+
class: c(y(i.value, i.disabled)),
|
|
3062
|
+
onClick: (g) => n(i.value, i.disabled),
|
|
3063
|
+
onKeydown: (g) => z(g, i.value)
|
|
3064
3064
|
}, [
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3065
|
+
i.icon ? (t(), a("span", dt, j(i.icon), 1)) : $("", !0),
|
|
3066
|
+
P(" " + j(i.label) + " ", 1),
|
|
3067
|
+
i.badge !== void 0 ? (t(), a("span", {
|
|
3068
3068
|
key: 1,
|
|
3069
|
-
class:
|
|
3070
|
-
}, j(
|
|
3071
|
-
], 42,
|
|
3072
|
-
], 10,
|
|
3073
|
-
(t(!0), a(E, null,
|
|
3074
|
-
key:
|
|
3075
|
-
id: `panel-${
|
|
3076
|
-
"aria-labelledby": `tab-${
|
|
3069
|
+
class: c(S.value)
|
|
3070
|
+
}, j(i.badge), 3)) : $("", !0)
|
|
3071
|
+
], 42, et))), 128))
|
|
3072
|
+
], 10, Rd),
|
|
3073
|
+
(t(!0), a(E, null, K(d.tabs, (i) => (t(), a("div", {
|
|
3074
|
+
key: i.value,
|
|
3075
|
+
id: `panel-${Z(f)}-${i.value}`,
|
|
3076
|
+
"aria-labelledby": `tab-${Z(f)}-${i.value}`,
|
|
3077
3077
|
role: "tabpanel",
|
|
3078
|
-
tabindex: d.modelValue ===
|
|
3079
|
-
hidden: d.modelValue !==
|
|
3080
|
-
class:
|
|
3078
|
+
tabindex: d.modelValue === i.value ? 0 : -1,
|
|
3079
|
+
hidden: d.modelValue !== i.value,
|
|
3080
|
+
class: c(M.value)
|
|
3081
3081
|
}, [
|
|
3082
|
-
|
|
3083
|
-
], 10,
|
|
3082
|
+
T(h.$slots, i.value)
|
|
3083
|
+
], 10, tt))), 128))
|
|
3084
3084
|
], 2));
|
|
3085
3085
|
}
|
|
3086
|
-
}),
|
|
3087
|
-
function
|
|
3086
|
+
}), le = ze({ toasts: [] });
|
|
3087
|
+
function ke(d) {
|
|
3088
3088
|
const r = Math.random().toString(36).slice(2, 10), e = {
|
|
3089
3089
|
id: r,
|
|
3090
3090
|
title: d.title,
|
|
@@ -3094,35 +3094,35 @@ function oe(d) {
|
|
|
3094
3094
|
closable: d.closable ?? !0,
|
|
3095
3095
|
icon: d.icon
|
|
3096
3096
|
};
|
|
3097
|
-
return
|
|
3097
|
+
return le.toasts.push(e), e.duration > 0 && setTimeout(() => Ce(r), e.duration), r;
|
|
3098
3098
|
}
|
|
3099
3099
|
function Ce(d) {
|
|
3100
|
-
const r =
|
|
3101
|
-
r !== -1 &&
|
|
3102
|
-
}
|
|
3103
|
-
function tt() {
|
|
3104
|
-
se.toasts.splice(0);
|
|
3100
|
+
const r = le.toasts.findIndex((e) => e.id === d);
|
|
3101
|
+
r !== -1 && le.toasts.splice(r, 1);
|
|
3105
3102
|
}
|
|
3106
3103
|
function rt() {
|
|
3104
|
+
le.toasts.splice(0);
|
|
3105
|
+
}
|
|
3106
|
+
function at() {
|
|
3107
3107
|
return {
|
|
3108
|
-
toasts: Ie(
|
|
3109
|
-
add:
|
|
3108
|
+
toasts: Ie(le.toasts),
|
|
3109
|
+
add: ke,
|
|
3110
3110
|
remove: Ce,
|
|
3111
|
-
clear:
|
|
3112
|
-
success: (d, r) =>
|
|
3113
|
-
error: (d, r) =>
|
|
3114
|
-
warning: (d, r) =>
|
|
3115
|
-
info: (d, r) =>
|
|
3111
|
+
clear: rt,
|
|
3112
|
+
success: (d, r) => ke({ ...r, message: d, color: "success" }),
|
|
3113
|
+
error: (d, r) => ke({ ...r, message: d, color: "danger" }),
|
|
3114
|
+
warning: (d, r) => ke({ ...r, message: d, color: "warning" }),
|
|
3115
|
+
info: (d, r) => ke({ ...r, message: d, color: "primary" })
|
|
3116
3116
|
};
|
|
3117
3117
|
}
|
|
3118
|
-
const
|
|
3118
|
+
const ot = {
|
|
3119
3119
|
key: 0,
|
|
3120
3120
|
"aria-hidden": "true",
|
|
3121
3121
|
class: "dk:flex-shrink-0 dk:text-lg"
|
|
3122
|
-
},
|
|
3122
|
+
}, kt = { class: "dk:flex-1 dk:min-w-0" }, nt = {
|
|
3123
3123
|
key: 0,
|
|
3124
3124
|
class: "dk:text-sm dk:font-semibold dk:leading-snug"
|
|
3125
|
-
},
|
|
3125
|
+
}, st = ["onClick"], lt = "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", Gt = /* @__PURE__ */ L({
|
|
3126
3126
|
__name: "DuiToast",
|
|
3127
3127
|
props: {
|
|
3128
3128
|
position: { default: "top-right" },
|
|
@@ -3130,25 +3130,25 @@ const at = {
|
|
|
3130
3130
|
zIndex: { default: 9999 }
|
|
3131
3131
|
},
|
|
3132
3132
|
setup(d) {
|
|
3133
|
-
const r = d, { toasts: e, remove:
|
|
3133
|
+
const r = d, { toasts: e, remove: u } = at(), f = k(() => e.slice(0, r.maxToasts)), n = {
|
|
3134
3134
|
"top-right": "dk:top-4 dk:right-4 dk:items-end",
|
|
3135
3135
|
"top-left": "dk:top-4 dk:left-4 dk:items-start",
|
|
3136
3136
|
"top-center": "dk:top-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center",
|
|
3137
3137
|
"bottom-right": "dk:bottom-4 dk:right-4 dk:items-end",
|
|
3138
3138
|
"bottom-left": "dk:bottom-4 dk:left-4 dk:items-start",
|
|
3139
3139
|
"bottom-center": "dk:bottom-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center"
|
|
3140
|
-
},
|
|
3140
|
+
}, z = k(() => [
|
|
3141
3141
|
"dk:fixed dk:pointer-events-none",
|
|
3142
|
-
|
|
3142
|
+
n[r.position],
|
|
3143
3143
|
`dk:z-[${r.zIndex}]`
|
|
3144
|
-
].join(" ")),
|
|
3144
|
+
].join(" ")), v = k(() => "dk:relative dk:flex dk:flex-col dk:gap-2 dk:w-80 dk:max-w-[calc(100vw-2rem)]"), l = {
|
|
3145
3145
|
neutral: "dk:bg-zinc-800 dk:dark:bg-zinc-700 dk:text-white dk:border-zinc-600",
|
|
3146
3146
|
primary: "dk:bg-slate-700 dk:dark:bg-slate-700 dk:text-white dk:border-slate-500",
|
|
3147
3147
|
secondary: "dk:bg-pink-600 dk:dark:bg-pink-700 dk:text-white dk:border-pink-400",
|
|
3148
3148
|
success: "dk:bg-emerald-600 dk:dark:bg-emerald-700 dk:text-white dk:border-emerald-400",
|
|
3149
3149
|
warning: "dk:bg-amber-600 dk:dark:bg-amber-700 dk:text-white dk:border-amber-400",
|
|
3150
3150
|
danger: "dk:bg-rose-600 dk:dark:bg-rose-700 dk:text-white dk:border-rose-400"
|
|
3151
|
-
},
|
|
3151
|
+
}, b = {
|
|
3152
3152
|
neutral: "dk:bg-zinc-300",
|
|
3153
3153
|
primary: "dk:bg-slate-300",
|
|
3154
3154
|
secondary: "dk:bg-pink-200",
|
|
@@ -3156,25 +3156,25 @@ const at = {
|
|
|
3156
3156
|
warning: "dk:bg-amber-200",
|
|
3157
3157
|
danger: "dk:bg-rose-200"
|
|
3158
3158
|
};
|
|
3159
|
-
function x(
|
|
3159
|
+
function x(S) {
|
|
3160
3160
|
return [
|
|
3161
3161
|
"dk:pointer-events-auto dk:flex dk:items-start dk:gap-3",
|
|
3162
3162
|
"dk:rounded-xl dk:border dk:px-4 dk:py-3 dk:shadow-xl",
|
|
3163
|
-
|
|
3163
|
+
l[S]
|
|
3164
3164
|
].join(" ");
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3167
|
-
return ["dk:flex-shrink-0 dk:w-2 dk:h-2 dk:rounded-full dk:mt-1",
|
|
3166
|
+
function y(S) {
|
|
3167
|
+
return ["dk:flex-shrink-0 dk:w-2 dk:h-2 dk:rounded-full dk:mt-1", b[S]].join(" ");
|
|
3168
3168
|
}
|
|
3169
|
-
return (
|
|
3170
|
-
|
|
3171
|
-
class:
|
|
3169
|
+
return (S, M) => (t(), W(me, { to: "body" }, [
|
|
3170
|
+
p("div", {
|
|
3171
|
+
class: c(z.value),
|
|
3172
3172
|
"aria-live": "polite",
|
|
3173
3173
|
"aria-atomic": "false"
|
|
3174
3174
|
}, [
|
|
3175
|
-
|
|
3175
|
+
J(Ae, {
|
|
3176
3176
|
tag: "div",
|
|
3177
|
-
class:
|
|
3177
|
+
class: c(v.value),
|
|
3178
3178
|
"enter-active-class": "dk:transition-all dk:duration-300 dk:ease-out",
|
|
3179
3179
|
"leave-active-class": "dk:transition-all dk:duration-200 dk:ease-in dk:absolute dk:w-full",
|
|
3180
3180
|
"enter-from-class": "dk:opacity-0 dk:translate-y-2 dk:scale-95",
|
|
@@ -3182,29 +3182,29 @@ const at = {
|
|
|
3182
3182
|
"move-class": "dk:transition-all dk:duration-300"
|
|
3183
3183
|
}, {
|
|
3184
3184
|
default: A(() => [
|
|
3185
|
-
(t(!0), a(E, null,
|
|
3185
|
+
(t(!0), a(E, null, K(f.value, (h) => (t(), a("div", {
|
|
3186
3186
|
key: h.id,
|
|
3187
3187
|
role: "alert",
|
|
3188
|
-
class:
|
|
3188
|
+
class: c(x(h.color))
|
|
3189
3189
|
}, [
|
|
3190
|
-
h.icon ? (t(), a("span",
|
|
3190
|
+
h.icon ? (t(), a("span", ot, j(h.icon), 1)) : (t(), a("span", {
|
|
3191
3191
|
key: 1,
|
|
3192
|
-
class:
|
|
3192
|
+
class: c(y(h.color)),
|
|
3193
3193
|
"aria-hidden": "true"
|
|
3194
3194
|
}, null, 2)),
|
|
3195
|
-
|
|
3196
|
-
h.title ? (t(), a("p",
|
|
3197
|
-
|
|
3198
|
-
class:
|
|
3195
|
+
p("div", kt, [
|
|
3196
|
+
h.title ? (t(), a("p", nt, j(h.title), 1)) : $("", !0),
|
|
3197
|
+
p("p", {
|
|
3198
|
+
class: c(["dk:text-sm dk:leading-snug", { "dk:opacity-80": h.title }])
|
|
3199
3199
|
}, j(h.message), 3)
|
|
3200
3200
|
]),
|
|
3201
3201
|
h.closable ? (t(), a("button", {
|
|
3202
3202
|
key: 2,
|
|
3203
3203
|
type: "button",
|
|
3204
|
-
class:
|
|
3204
|
+
class: c(lt),
|
|
3205
3205
|
"aria-label": "Cerrar notificacion",
|
|
3206
|
-
onClick: (
|
|
3207
|
-
}, " × ", 8,
|
|
3206
|
+
onClick: (m) => Z(u)(h.id)
|
|
3207
|
+
}, " × ", 8, st)) : $("", !0)
|
|
3208
3208
|
], 2))), 128))
|
|
3209
3209
|
]),
|
|
3210
3210
|
_: 1
|
|
@@ -3212,23 +3212,80 @@ const at = {
|
|
|
3212
3212
|
], 2)
|
|
3213
3213
|
]));
|
|
3214
3214
|
}
|
|
3215
|
-
}),
|
|
3215
|
+
}), it = { key: 1 }, Jt = /* @__PURE__ */ L({
|
|
3216
|
+
__name: "DuiConfirmation",
|
|
3217
|
+
props: {
|
|
3218
|
+
label: {},
|
|
3219
|
+
checkLabel: {},
|
|
3220
|
+
confirmLabel: {},
|
|
3221
|
+
variant: { default: "outline" },
|
|
3222
|
+
color: { default: "danger" },
|
|
3223
|
+
size: { default: "md" }
|
|
3224
|
+
},
|
|
3225
|
+
emits: ["confirmed"],
|
|
3226
|
+
setup(d, { emit: r }) {
|
|
3227
|
+
const e = F(!1), u = F(!1), f = r, n = d;
|
|
3228
|
+
function z() {
|
|
3229
|
+
e.value = !0, setTimeout(() => {
|
|
3230
|
+
e.value = !1, u.value = !1;
|
|
3231
|
+
}, 1e4);
|
|
3232
|
+
}
|
|
3233
|
+
function v() {
|
|
3234
|
+
f("confirmed"), e.value = !1, u.value = !1;
|
|
3235
|
+
}
|
|
3236
|
+
return (l, b) => e.value ? (t(), a("div", it, [
|
|
3237
|
+
J(ld, {
|
|
3238
|
+
modelValue: u.value,
|
|
3239
|
+
"onUpdate:modelValue": b[0] || (b[0] = (x) => u.value = x),
|
|
3240
|
+
label: n.checkLabel,
|
|
3241
|
+
size: n.size,
|
|
3242
|
+
variant: n.variant,
|
|
3243
|
+
color: n.color,
|
|
3244
|
+
checked: u.value
|
|
3245
|
+
}, null, 8, ["modelValue", "label", "size", "variant", "color", "checked"]),
|
|
3246
|
+
b[2] || (b[2] = p("br", null, null, -1)),
|
|
3247
|
+
u.value ? (t(), W(oe, {
|
|
3248
|
+
key: 0,
|
|
3249
|
+
onClick: b[1] || (b[1] = (x) => v()),
|
|
3250
|
+
variant: n.variant,
|
|
3251
|
+
color: n.color,
|
|
3252
|
+
size: n.size
|
|
3253
|
+
}, {
|
|
3254
|
+
default: A(() => [
|
|
3255
|
+
P(j(n.confirmLabel), 1)
|
|
3256
|
+
]),
|
|
3257
|
+
_: 1
|
|
3258
|
+
}, 8, ["variant", "color", "size"])) : $("", !0)
|
|
3259
|
+
])) : (t(), W(oe, {
|
|
3260
|
+
key: 0,
|
|
3261
|
+
onClick: z,
|
|
3262
|
+
variant: n.variant,
|
|
3263
|
+
color: n.color,
|
|
3264
|
+
size: n.size
|
|
3265
|
+
}, {
|
|
3266
|
+
default: A(() => [
|
|
3267
|
+
P(j(n.label), 1)
|
|
3268
|
+
]),
|
|
3269
|
+
_: 1
|
|
3270
|
+
}, 8, ["variant", "color", "size"]));
|
|
3271
|
+
}
|
|
3272
|
+
}), ct = {
|
|
3216
3273
|
key: 0,
|
|
3217
3274
|
class: "dk:flex dk:items-center dk:gap-4 dk:flex-shrink-0"
|
|
3218
|
-
},
|
|
3275
|
+
}, ut = { class: "dk:hidden dk:md:flex dk:items-center dk:flex-1" }, bt = {
|
|
3219
3276
|
key: 0,
|
|
3220
3277
|
class: "dk:relative dk:group"
|
|
3221
|
-
},
|
|
3278
|
+
}, pt = { 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" }, mt = {
|
|
3222
3279
|
key: 1,
|
|
3223
3280
|
class: "dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"
|
|
3224
|
-
},
|
|
3281
|
+
}, ft = {
|
|
3225
3282
|
class: "dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",
|
|
3226
3283
|
fill: "none",
|
|
3227
3284
|
viewBox: "0 0 24 24"
|
|
3228
|
-
},
|
|
3285
|
+
}, gt = ["d"], xt = { 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" }, ht = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, vt = { key: 0 }, yt = ["onClick"], wt = { class: "dk:flex dk:items-center" }, zt = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, Ct = {
|
|
3229
3286
|
key: 0,
|
|
3230
3287
|
class: "dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"
|
|
3231
|
-
},
|
|
3288
|
+
}, Xt = /* @__PURE__ */ L({
|
|
3232
3289
|
__name: "DuiNavbar",
|
|
3233
3290
|
props: {
|
|
3234
3291
|
items: { default: () => [] },
|
|
@@ -3237,18 +3294,18 @@ const at = {
|
|
|
3237
3294
|
underlineColor: { default: "primary" }
|
|
3238
3295
|
},
|
|
3239
3296
|
setup(d) {
|
|
3240
|
-
const r = d, e =
|
|
3241
|
-
const w = g
|
|
3242
|
-
return fe(
|
|
3243
|
-
},
|
|
3297
|
+
const r = d, e = F(!1), u = ze({}), f = (g) => se(g.to), n = (g) => {
|
|
3298
|
+
const w = f(g);
|
|
3299
|
+
return fe(g.to, w);
|
|
3300
|
+
}, z = () => {
|
|
3244
3301
|
e.value = !e.value;
|
|
3245
|
-
},
|
|
3246
|
-
e.value = !1, Object.keys(
|
|
3247
|
-
|
|
3302
|
+
}, v = () => {
|
|
3303
|
+
e.value = !1, Object.keys(u).forEach((g) => {
|
|
3304
|
+
u[g] = !1;
|
|
3248
3305
|
});
|
|
3249
|
-
},
|
|
3250
|
-
|
|
3251
|
-
},
|
|
3306
|
+
}, l = (g) => {
|
|
3307
|
+
u[g] = !u[g];
|
|
3308
|
+
}, b = {
|
|
3252
3309
|
s: {
|
|
3253
3310
|
height: "dk:h-12",
|
|
3254
3311
|
padding: "dk:px-3",
|
|
@@ -3268,7 +3325,7 @@ const at = {
|
|
|
3268
3325
|
itemPadding: "dk:px-4 dk:py-3"
|
|
3269
3326
|
}
|
|
3270
3327
|
}, x = k(() => {
|
|
3271
|
-
const
|
|
3328
|
+
const g = b[r.size];
|
|
3272
3329
|
return [
|
|
3273
3330
|
"dk:relative",
|
|
3274
3331
|
"dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
|
|
@@ -3281,19 +3338,19 @@ const at = {
|
|
|
3281
3338
|
"dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
|
|
3282
3339
|
"dk:dark:before:hidden",
|
|
3283
3340
|
"dk:flex dk:items-center dk:w-full dk:gap-4",
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3341
|
+
g.height,
|
|
3342
|
+
g.padding,
|
|
3343
|
+
g.text
|
|
3287
3344
|
].join(" ");
|
|
3288
|
-
}),
|
|
3345
|
+
}), y = k(() => [
|
|
3289
3346
|
"dk:flex dk:items-center dk:space-x-1 dk:flex-1",
|
|
3290
3347
|
{
|
|
3291
3348
|
left: "dk:justify-start",
|
|
3292
3349
|
center: "dk:justify-center",
|
|
3293
3350
|
right: "dk:justify-end"
|
|
3294
3351
|
}[r.itemsAlignment]
|
|
3295
|
-
].join(" ")),
|
|
3296
|
-
const
|
|
3352
|
+
].join(" ")), S = () => {
|
|
3353
|
+
const g = {
|
|
3297
3354
|
neutral: "dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",
|
|
3298
3355
|
primary: "dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",
|
|
3299
3356
|
secondary: "dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",
|
|
@@ -3301,13 +3358,13 @@ const at = {
|
|
|
3301
3358
|
danger: "dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",
|
|
3302
3359
|
warning: "dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"
|
|
3303
3360
|
};
|
|
3304
|
-
return
|
|
3305
|
-
},
|
|
3306
|
-
const
|
|
3307
|
-
return (o,
|
|
3308
|
-
const
|
|
3361
|
+
return g[r.underlineColor] || g.primary;
|
|
3362
|
+
}, M = k(() => {
|
|
3363
|
+
const g = b[r.size], w = S();
|
|
3364
|
+
return (o, s = !0) => {
|
|
3365
|
+
const C = o.active ?? !1, B = s ? "dk:pl-3" : "dk:pl-2", I = "dk:pr-3", X = s ? "dk:pl-2" : "dk:pl-1", ee = "dk:pr-2", de = s ? "dk:pl-4" : "dk:pl-3", ge = "dk:pr-4";
|
|
3309
3366
|
let te = "";
|
|
3310
|
-
return
|
|
3367
|
+
return g.itemPadding.includes("px-2") ? te = `${X} ${ee} dk:py-1.5` : g.itemPadding.includes("px-4") ? te = `${de} ${ge} dk:py-3` : te = `${B} ${I} dk:py-2`, [
|
|
3311
3368
|
// Block style with animated underline
|
|
3312
3369
|
"dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300",
|
|
3313
3370
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
@@ -3318,7 +3375,7 @@ const at = {
|
|
|
3318
3375
|
"dk:before:bg-gradient-to-r",
|
|
3319
3376
|
w,
|
|
3320
3377
|
"dk:before:transition-all dk:before:duration-300",
|
|
3321
|
-
|
|
3378
|
+
C ? "dk:before:w-full dk:text-gray-900 dk:dark:text-gray-100" : "dk:before:w-0 dk:hover:before:w-full",
|
|
3322
3379
|
te
|
|
3323
3380
|
].join(" ");
|
|
3324
3381
|
};
|
|
@@ -3328,50 +3385,50 @@ const at = {
|
|
|
3328
3385
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
3329
3386
|
"dk:transition-all dk:duration-200 dk:no-underline",
|
|
3330
3387
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"
|
|
3331
|
-
].join(" ")),
|
|
3388
|
+
].join(" ")), m = k(() => [
|
|
3332
3389
|
"dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
3333
3390
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg",
|
|
3334
3391
|
"dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15",
|
|
3335
3392
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
3336
3393
|
"dk:border dk:border-white/20 dk:dark:border-white/10 dk:hover:border-white/40 dk:dark:hover:border-white/20",
|
|
3337
3394
|
"dk:transition-all dk:duration-200 dk:no-underline"
|
|
3338
|
-
].join(" ")),
|
|
3395
|
+
].join(" ")), i = k(() => [
|
|
3339
3396
|
"dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
|
|
3340
3397
|
"dk:text-gray-600 dk:hover:text-gray-800 dk:hover:bg-white/30 dk:dark:hover:bg-white/10",
|
|
3341
3398
|
"dk:dark:text-gray-400 dk:dark:hover:text-gray-200",
|
|
3342
3399
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500",
|
|
3343
3400
|
"dk:transition-all dk:duration-200 dk:no-underline"
|
|
3344
3401
|
].join(" "));
|
|
3345
|
-
return (
|
|
3346
|
-
class:
|
|
3402
|
+
return (g, w) => (t(), a("nav", {
|
|
3403
|
+
class: c(x.value)
|
|
3347
3404
|
}, [
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
])) :
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
class:
|
|
3405
|
+
g.$slots.brand ? (t(), a("div", ct, [
|
|
3406
|
+
T(g.$slots, "brand")
|
|
3407
|
+
])) : $("", !0),
|
|
3408
|
+
p("div", ut, [
|
|
3409
|
+
p("div", {
|
|
3410
|
+
class: c(y.value)
|
|
3354
3411
|
}, [
|
|
3355
|
-
(t(!0), a(E, null,
|
|
3412
|
+
(t(!0), a(E, null, K(d.items, (o) => (t(), a(E, {
|
|
3356
3413
|
key: o.label
|
|
3357
3414
|
}, [
|
|
3358
|
-
o.children && o.children.length > 0 ? (t(), a("div",
|
|
3359
|
-
(t(),
|
|
3360
|
-
class:
|
|
3415
|
+
o.children && o.children.length > 0 ? (t(), a("div", bt, [
|
|
3416
|
+
(t(), W(Q(f(o)), O({ ref_for: !0 }, n(o), {
|
|
3417
|
+
class: M.value(o, !0)
|
|
3361
3418
|
}), {
|
|
3362
3419
|
default: A(() => [
|
|
3363
3420
|
o.icon ? (t(), a("i", {
|
|
3364
3421
|
key: 0,
|
|
3365
|
-
class:
|
|
3366
|
-
}, null, 2)) :
|
|
3367
|
-
|
|
3368
|
-
w[0] || (w[0] =
|
|
3422
|
+
class: c([o.icon, "dk:mr-2"])
|
|
3423
|
+
}, null, 2)) : $("", !0),
|
|
3424
|
+
P(" " + j(o.label) + " ", 1),
|
|
3425
|
+
w[0] || (w[0] = p("svg", {
|
|
3369
3426
|
class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
|
|
3370
3427
|
fill: "none",
|
|
3371
3428
|
stroke: "currentColor",
|
|
3372
3429
|
viewBox: "0 0 24 24"
|
|
3373
3430
|
}, [
|
|
3374
|
-
|
|
3431
|
+
p("path", {
|
|
3375
3432
|
"stroke-linecap": "round",
|
|
3376
3433
|
"stroke-linejoin": "round",
|
|
3377
3434
|
"stroke-width": "2",
|
|
@@ -3381,126 +3438,126 @@ const at = {
|
|
|
3381
3438
|
]),
|
|
3382
3439
|
_: 2
|
|
3383
3440
|
}, 1040, ["class"])),
|
|
3384
|
-
|
|
3385
|
-
(t(!0), a(E, null,
|
|
3386
|
-
key:
|
|
3387
|
-
}, { ref_for: !0 },
|
|
3441
|
+
p("div", pt, [
|
|
3442
|
+
(t(!0), a(E, null, K(o.children, (s) => (t(), W(Q(f(s)), O({
|
|
3443
|
+
key: s.label
|
|
3444
|
+
}, { ref_for: !0 }, n(s), { class: h.value }), {
|
|
3388
3445
|
default: A(() => [
|
|
3389
|
-
|
|
3446
|
+
s.icon ? (t(), a("i", {
|
|
3390
3447
|
key: 0,
|
|
3391
|
-
class:
|
|
3392
|
-
}, null, 2)) :
|
|
3393
|
-
|
|
3448
|
+
class: c([s.icon, "dk:mr-2"])
|
|
3449
|
+
}, null, 2)) : $("", !0),
|
|
3450
|
+
P(" " + j(s.label), 1)
|
|
3394
3451
|
]),
|
|
3395
3452
|
_: 2
|
|
3396
3453
|
}, 1040, ["class"]))), 128))
|
|
3397
3454
|
])
|
|
3398
|
-
])) : (t(),
|
|
3455
|
+
])) : (t(), W(Q(f(o)), O({
|
|
3399
3456
|
key: 1,
|
|
3400
3457
|
ref_for: !0
|
|
3401
|
-
},
|
|
3402
|
-
class:
|
|
3458
|
+
}, n(o), {
|
|
3459
|
+
class: M.value(o, !1)
|
|
3403
3460
|
}), {
|
|
3404
3461
|
default: A(() => [
|
|
3405
3462
|
o.icon ? (t(), a("i", {
|
|
3406
3463
|
key: 0,
|
|
3407
|
-
class:
|
|
3408
|
-
}, null, 2)) :
|
|
3409
|
-
|
|
3464
|
+
class: c([o.icon, "dk:mr-2"])
|
|
3465
|
+
}, null, 2)) : $("", !0),
|
|
3466
|
+
P(" " + j(o.label), 1)
|
|
3410
3467
|
]),
|
|
3411
3468
|
_: 2
|
|
3412
3469
|
}, 1040, ["class"]))
|
|
3413
3470
|
], 64))), 128))
|
|
3414
3471
|
], 2)
|
|
3415
3472
|
]),
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
])) :
|
|
3419
|
-
|
|
3473
|
+
g.$slots.actions ? (t(), a("div", mt, [
|
|
3474
|
+
T(g.$slots, "actions")
|
|
3475
|
+
])) : $("", !0),
|
|
3476
|
+
p("button", {
|
|
3420
3477
|
type: "button",
|
|
3421
|
-
onClick:
|
|
3478
|
+
onClick: z,
|
|
3422
3479
|
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"
|
|
3423
3480
|
}, [
|
|
3424
|
-
(t(), a("svg",
|
|
3425
|
-
|
|
3481
|
+
(t(), a("svg", ft, [
|
|
3482
|
+
p("path", {
|
|
3426
3483
|
"stroke-linecap": "round",
|
|
3427
3484
|
"stroke-linejoin": "round",
|
|
3428
3485
|
"stroke-width": "2",
|
|
3429
3486
|
d: e.value ? "M6 18L18 6M6 6l12 12" : "M4 6h16M4 12h16M4 18h16"
|
|
3430
|
-
}, null, 8,
|
|
3487
|
+
}, null, 8, gt)
|
|
3431
3488
|
]))
|
|
3432
3489
|
]),
|
|
3433
|
-
xe(
|
|
3434
|
-
|
|
3435
|
-
(t(!0), a(E, null,
|
|
3490
|
+
xe(p("div", xt, [
|
|
3491
|
+
p("div", ht, [
|
|
3492
|
+
(t(!0), a(E, null, K(d.items, (o) => (t(), a(E, {
|
|
3436
3493
|
key: o.label
|
|
3437
3494
|
}, [
|
|
3438
|
-
o.children && o.children.length > 0 ? (t(), a("div",
|
|
3439
|
-
|
|
3495
|
+
o.children && o.children.length > 0 ? (t(), a("div", vt, [
|
|
3496
|
+
p("button", {
|
|
3440
3497
|
type: "button",
|
|
3441
|
-
onClick: (
|
|
3442
|
-
class:
|
|
3498
|
+
onClick: (s) => l(o.label),
|
|
3499
|
+
class: c([m.value, "dk:justify-between"])
|
|
3443
3500
|
}, [
|
|
3444
|
-
|
|
3501
|
+
p("div", wt, [
|
|
3445
3502
|
o.icon ? (t(), a("i", {
|
|
3446
3503
|
key: 0,
|
|
3447
|
-
class:
|
|
3448
|
-
}, null, 2)) :
|
|
3449
|
-
|
|
3504
|
+
class: c([o.icon, "dk:mr-2"])
|
|
3505
|
+
}, null, 2)) : $("", !0),
|
|
3506
|
+
P(" " + j(o.label), 1)
|
|
3450
3507
|
]),
|
|
3451
3508
|
(t(), a("svg", {
|
|
3452
|
-
class:
|
|
3509
|
+
class: c(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", u[o.label] ? "dk:rotate-180" : ""]),
|
|
3453
3510
|
fill: "none",
|
|
3454
3511
|
stroke: "currentColor",
|
|
3455
3512
|
viewBox: "0 0 24 24"
|
|
3456
3513
|
}, [...w[1] || (w[1] = [
|
|
3457
|
-
|
|
3514
|
+
p("path", {
|
|
3458
3515
|
"stroke-linecap": "round",
|
|
3459
3516
|
"stroke-linejoin": "round",
|
|
3460
3517
|
"stroke-width": "2",
|
|
3461
3518
|
d: "M19 9l-7 7-7-7"
|
|
3462
3519
|
}, null, -1)
|
|
3463
3520
|
])], 2))
|
|
3464
|
-
], 10,
|
|
3465
|
-
xe(
|
|
3466
|
-
(t(!0), a(E, null,
|
|
3467
|
-
key:
|
|
3468
|
-
}, { ref_for: !0 },
|
|
3469
|
-
class:
|
|
3470
|
-
onClick:
|
|
3521
|
+
], 10, yt),
|
|
3522
|
+
xe(p("div", zt, [
|
|
3523
|
+
(t(!0), a(E, null, K(o.children, (s) => (t(), W(Q(f(s)), O({
|
|
3524
|
+
key: s.label
|
|
3525
|
+
}, { ref_for: !0 }, n(s), {
|
|
3526
|
+
class: i.value,
|
|
3527
|
+
onClick: v
|
|
3471
3528
|
}), {
|
|
3472
3529
|
default: A(() => [
|
|
3473
|
-
|
|
3530
|
+
s.icon ? (t(), a("i", {
|
|
3474
3531
|
key: 0,
|
|
3475
|
-
class:
|
|
3476
|
-
}, null, 2)) :
|
|
3477
|
-
|
|
3532
|
+
class: c([s.icon, "dk:mr-2"])
|
|
3533
|
+
}, null, 2)) : $("", !0),
|
|
3534
|
+
P(" " + j(s.label), 1)
|
|
3478
3535
|
]),
|
|
3479
3536
|
_: 2
|
|
3480
3537
|
}, 1040, ["class"]))), 128))
|
|
3481
3538
|
], 512), [
|
|
3482
|
-
[he,
|
|
3539
|
+
[he, u[o.label]]
|
|
3483
3540
|
])
|
|
3484
|
-
])) : (t(),
|
|
3541
|
+
])) : (t(), W(Q(f(o)), O({
|
|
3485
3542
|
key: 1,
|
|
3486
3543
|
ref_for: !0
|
|
3487
|
-
},
|
|
3488
|
-
class:
|
|
3489
|
-
onClick:
|
|
3544
|
+
}, n(o), {
|
|
3545
|
+
class: m.value,
|
|
3546
|
+
onClick: v
|
|
3490
3547
|
}), {
|
|
3491
3548
|
default: A(() => [
|
|
3492
3549
|
o.icon ? (t(), a("i", {
|
|
3493
3550
|
key: 0,
|
|
3494
|
-
class:
|
|
3495
|
-
}, null, 2)) :
|
|
3496
|
-
|
|
3551
|
+
class: c([o.icon, "dk:mr-2"])
|
|
3552
|
+
}, null, 2)) : $("", !0),
|
|
3553
|
+
P(" " + j(o.label), 1)
|
|
3497
3554
|
]),
|
|
3498
3555
|
_: 2
|
|
3499
3556
|
}, 1040, ["class"]))
|
|
3500
3557
|
], 64))), 128)),
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
])) :
|
|
3558
|
+
g.$slots.actions ? (t(), a("div", Ct, [
|
|
3559
|
+
T(g.$slots, "actions")
|
|
3560
|
+
])) : $("", !0)
|
|
3504
3561
|
])
|
|
3505
3562
|
], 512), [
|
|
3506
3563
|
[he, e.value]
|
|
@@ -3509,30 +3566,31 @@ const at = {
|
|
|
3509
3566
|
}
|
|
3510
3567
|
});
|
|
3511
3568
|
export {
|
|
3512
|
-
|
|
3569
|
+
Ot as DuiAccordion,
|
|
3513
3570
|
Pt as DuiAction,
|
|
3514
3571
|
Tt as DuiAlert,
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
Ft as
|
|
3522
|
-
Kt as
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3572
|
+
Nt as DuiBadge,
|
|
3573
|
+
oe as DuiButton,
|
|
3574
|
+
It as DuiCard,
|
|
3575
|
+
Mt as DuiCheckbox,
|
|
3576
|
+
Jt as DuiConfirmation,
|
|
3577
|
+
Et as DuiDrawer,
|
|
3578
|
+
Ft as DuiDropdown,
|
|
3579
|
+
Kt as DuiDropdownItem,
|
|
3580
|
+
qt as DuiDropdownSeparator,
|
|
3581
|
+
St as DuiFile,
|
|
3582
|
+
jt as DuiInput,
|
|
3583
|
+
Dt as DuiLabel,
|
|
3584
|
+
At as DuiModal,
|
|
3585
|
+
Xt as DuiNavbar,
|
|
3586
|
+
Ut as DuiPagination,
|
|
3587
|
+
_t as DuiRadio,
|
|
3588
|
+
Bt as DuiSelect,
|
|
3531
3589
|
Ht as DuiSkeleton,
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3590
|
+
ld as DuiSwitch,
|
|
3591
|
+
Lt as DuiTable,
|
|
3592
|
+
Qt as DuiTabs,
|
|
3593
|
+
Vt as DuiTextarea,
|
|
3594
|
+
Gt as DuiToast,
|
|
3595
|
+
Wt as DuiTooltip
|
|
3538
3596
|
};
|