@dronico/droni-kit 1.12.7 → 1.14.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/CHANGELOG.md +19 -0
- package/dist/droni-kit.cjs.js +9 -9
- package/dist/droni-kit.css +1 -1
- package/dist/droni-kit.es.js +578 -364
- package/dist/index.d.ts +2 -1
- package/dist/stories/Elements/DuiTable.stories.d.ts +63 -3
- package/dist/stories/Elements/DuiTable.vue.d.ts +30 -2
- package/dist/stories/Forms/DuiCheckbox.stories.d.ts +226 -0
- package/dist/stories/Forms/DuiCheckbox.vue.d.ts +97 -0
- package/package.json +8 -8
package/dist/droni-kit.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
function
|
|
1
|
+
import { getCurrentInstance as Z, defineComponent as B, computed as c, openBlock as r, createBlock as D, resolveDynamicComponent as M, mergeProps as $, withCtx as P, renderSlot as j, createElementBlock as o, toDisplayString as z, createCommentVNode as x, Fragment as V, renderList as T, ref as F, normalizeClass as p, createElementVNode as i, createTextVNode as S, withDirectives as W, vShow as q, useSlots as ee, createVNode as E, reactive as de } from "vue";
|
|
2
|
+
function te() {
|
|
3
3
|
try {
|
|
4
|
-
const
|
|
4
|
+
const t = Z(), e = t == null ? void 0 : t.appContext.app;
|
|
5
5
|
return e ? !!(e.config.globalProperties.$router || e.config.globalProperties.$route || e.component("RouterLink")) : typeof window < "u" ? !!window.VueRouter : !1;
|
|
6
6
|
} catch {
|
|
7
7
|
return !1;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function I(t, e = !1) {
|
|
11
|
+
return t ? e ? "NuxtLink" : te() ? "RouterLink" : "a" : "button";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
return e === "a" ? (
|
|
13
|
+
function R(t, e, d = {}) {
|
|
14
|
+
const l = { ...d };
|
|
15
|
+
return e === "a" ? (l.href = typeof t == "string" ? t : "#", l.role = "button") : e !== "button" && e !== "span" && (l.to = t), l;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const re = { key: 1 }, oe = `
|
|
18
18
|
dk:transition
|
|
19
19
|
dk:text-center
|
|
20
20
|
dk:disabled:opacity-50
|
|
@@ -25,7 +25,7 @@ const Z = { key: 1 }, ee = `
|
|
|
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`, O = /* @__PURE__ */ B({
|
|
29
29
|
__name: "DuiButton",
|
|
30
30
|
props: {
|
|
31
31
|
variant: { default: "solid" },
|
|
@@ -40,22 +40,22 @@ const Z = { key: 1 }, ee = `
|
|
|
40
40
|
to: { default: void 0 },
|
|
41
41
|
nuxt: { type: Boolean, default: !1 }
|
|
42
42
|
},
|
|
43
|
-
setup(
|
|
44
|
-
const e =
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
}),
|
|
43
|
+
setup(t) {
|
|
44
|
+
const e = t, d = c(() => I(e.to, e.nuxt)), l = c(() => {
|
|
45
|
+
const a = {};
|
|
46
|
+
return d.value === "button" && (a.type = e.type), R(e.to, d.value, a);
|
|
47
|
+
}), g = {
|
|
48
48
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
49
49
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
50
50
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
51
|
-
},
|
|
51
|
+
}, u = {
|
|
52
52
|
all: "dk:rounded",
|
|
53
53
|
top: "dk:rounded-t",
|
|
54
54
|
bottom: "dk:rounded-b",
|
|
55
55
|
left: "dk:rounded-l",
|
|
56
56
|
right: "dk:rounded-r",
|
|
57
57
|
none: "dk:rounded-none"
|
|
58
|
-
},
|
|
58
|
+
}, f = {
|
|
59
59
|
solid: {
|
|
60
60
|
base: "dk:border-b",
|
|
61
61
|
neutral: `
|
|
@@ -227,23 +227,23 @@ const Z = { key: 1 }, ee = `
|
|
|
227
227
|
dk:dark:text-amber-100
|
|
228
228
|
dk:dark:hover:bg-amber-800`
|
|
229
229
|
}
|
|
230
|
-
},
|
|
231
|
-
var
|
|
232
|
-
const
|
|
233
|
-
return [
|
|
230
|
+
}, h = c(() => {
|
|
231
|
+
var y;
|
|
232
|
+
const a = (((y = f[e.variant]) == null ? void 0 : y[e.color]) || "") + " " + f[e.variant].base, n = g[e.size] || "", k = e.block ? "dk:w-full" : "", s = u[e.rounded] || "";
|
|
233
|
+
return [oe, a, n, k, s].join(" ");
|
|
234
234
|
});
|
|
235
|
-
return (
|
|
236
|
-
class:
|
|
235
|
+
return (a, n) => (r(), D(M(d.value), $(l.value, {
|
|
236
|
+
class: h.value,
|
|
237
237
|
title: e.title,
|
|
238
238
|
disabled: e.disabled || e.loading
|
|
239
239
|
}), {
|
|
240
|
-
default:
|
|
241
|
-
e.loading ? (r(),
|
|
240
|
+
default: P(() => [
|
|
241
|
+
e.loading ? (r(), o("span", re, "Cargando...")) : j(a.$slots, "default", { key: 0 })
|
|
242
242
|
]),
|
|
243
243
|
_: 3
|
|
244
244
|
}, 16, ["class", "title", "disabled"]));
|
|
245
245
|
}
|
|
246
|
-
}),
|
|
246
|
+
}), ae = ["value"], ke = `
|
|
247
247
|
dk:border-b
|
|
248
248
|
dk:border-zinc-300
|
|
249
249
|
dk:bg-zinc-50
|
|
@@ -255,7 +255,7 @@ const Z = { key: 1 }, ee = `
|
|
|
255
255
|
dk:dark:bg-zinc-800
|
|
256
256
|
dk:dark:text-zinc-100
|
|
257
257
|
dk:dark:focus:bg-zinc-700
|
|
258
|
-
dk:dark:[color-scheme:dark]`,
|
|
258
|
+
dk:dark:[color-scheme:dark]`, Xe = /* @__PURE__ */ B({
|
|
259
259
|
inheritAttrs: !1,
|
|
260
260
|
__name: "DuiInput",
|
|
261
261
|
props: {
|
|
@@ -277,33 +277,33 @@ const Z = { key: 1 }, ee = `
|
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
emits: ["update:modelValue"],
|
|
280
|
-
setup(
|
|
281
|
-
const
|
|
282
|
-
function
|
|
283
|
-
const
|
|
284
|
-
|
|
280
|
+
setup(t, { emit: e }) {
|
|
281
|
+
const d = t, l = e;
|
|
282
|
+
function g(a) {
|
|
283
|
+
const n = a.target;
|
|
284
|
+
l("update:modelValue", n.value);
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const u = {
|
|
287
287
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
288
288
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
289
289
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
290
|
-
},
|
|
290
|
+
}, f = {
|
|
291
291
|
all: "dk:rounded",
|
|
292
292
|
top: "dk:rounded-t",
|
|
293
293
|
bottom: "dk:rounded-b",
|
|
294
294
|
left: "dk:rounded-l",
|
|
295
295
|
right: "dk:rounded-r",
|
|
296
296
|
none: "dk:rounded-none"
|
|
297
|
-
},
|
|
298
|
-
const
|
|
299
|
-
return [
|
|
297
|
+
}, h = c(() => {
|
|
298
|
+
const a = u[d.size] || "", n = d.block ? "dk:w-full" : "", k = f[d.rounded] || "";
|
|
299
|
+
return [ke, a, n, k].join(" ");
|
|
300
300
|
});
|
|
301
|
-
return (
|
|
302
|
-
class:
|
|
303
|
-
value:
|
|
304
|
-
},
|
|
301
|
+
return (a, n) => (r(), o("input", $({
|
|
302
|
+
class: h.value,
|
|
303
|
+
value: t.modelValue
|
|
304
|
+
}, a.$attrs, { onInput: g }), null, 16, ae));
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), ne = ["value"], se = `
|
|
307
307
|
dk:border-b
|
|
308
308
|
dk:border-zinc-300
|
|
309
309
|
dk:bg-zinc-50
|
|
@@ -315,7 +315,7 @@ const Z = { key: 1 }, ee = `
|
|
|
315
315
|
dk:dark:bg-zinc-800
|
|
316
316
|
dk:dark:text-zinc-100
|
|
317
317
|
dk:dark:focus:bg-zinc-700
|
|
318
|
-
dk:dark:[color-scheme:dark]`,
|
|
318
|
+
dk:dark:[color-scheme:dark]`, Ye = /* @__PURE__ */ B({
|
|
319
319
|
inheritAttrs: !1,
|
|
320
320
|
__name: "DuiTextarea",
|
|
321
321
|
props: {
|
|
@@ -345,46 +345,46 @@ const Z = { key: 1 }, ee = `
|
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
emits: ["update:modelValue"],
|
|
348
|
-
setup(
|
|
349
|
-
const
|
|
350
|
-
function
|
|
351
|
-
const
|
|
352
|
-
|
|
348
|
+
setup(t, { emit: e }) {
|
|
349
|
+
const d = t, l = e;
|
|
350
|
+
function g(k) {
|
|
351
|
+
const s = k.target;
|
|
352
|
+
d.autoheight && n(s), l("update:modelValue", s.value);
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const u = {
|
|
355
355
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
356
356
|
md: "dk:text-base dk:px-3 dk:py-2",
|
|
357
357
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
358
|
-
},
|
|
358
|
+
}, f = {
|
|
359
359
|
all: "dk:rounded",
|
|
360
360
|
top: "dk:rounded-t",
|
|
361
361
|
bottom: "dk:rounded-b",
|
|
362
362
|
left: "dk:rounded-l",
|
|
363
363
|
right: "dk:rounded-r",
|
|
364
364
|
none: "dk:rounded-none"
|
|
365
|
-
},
|
|
365
|
+
}, h = {
|
|
366
366
|
none: "dk:resize-none",
|
|
367
367
|
both: "dk:resize",
|
|
368
368
|
horizontal: "dk:resize-x",
|
|
369
369
|
vertical: "dk:resize-y"
|
|
370
|
-
},
|
|
371
|
-
const
|
|
372
|
-
return [
|
|
373
|
-
}),
|
|
374
|
-
|
|
370
|
+
}, a = c(() => {
|
|
371
|
+
const k = u[d.size] || "", s = d.block ? "dk:w-full" : "", y = f[d.rounded] || "", _ = h[d.resize] || "";
|
|
372
|
+
return [se, k, s, y, _].join(" ");
|
|
373
|
+
}), n = (k) => {
|
|
374
|
+
k.style.height = "auto", k.style.height = `${k.scrollHeight + 5}px`;
|
|
375
375
|
};
|
|
376
|
-
return (
|
|
377
|
-
class:
|
|
378
|
-
value:
|
|
379
|
-
onInput:
|
|
380
|
-
}), null, 16,
|
|
376
|
+
return (k, s) => (r(), o("textarea", $(k.$attrs, {
|
|
377
|
+
class: a.value,
|
|
378
|
+
value: t.modelValue,
|
|
379
|
+
onInput: g
|
|
380
|
+
}), null, 16, ne));
|
|
381
381
|
}
|
|
382
|
-
}),
|
|
382
|
+
}), le = {
|
|
383
383
|
key: 0,
|
|
384
384
|
disabled: "",
|
|
385
385
|
selected: "",
|
|
386
386
|
hidden: ""
|
|
387
|
-
},
|
|
387
|
+
}, ie = ["value", "selected"], ce = `
|
|
388
388
|
dk:border-b
|
|
389
389
|
dk:border-zinc-300
|
|
390
390
|
dk:bg-zinc-50
|
|
@@ -397,7 +397,7 @@ const Z = { key: 1 }, ee = `
|
|
|
397
397
|
dk:dark:text-zinc-100
|
|
398
398
|
dk:dark:focus:bg-zinc-700
|
|
399
399
|
dk:dark:[color-scheme:dark]
|
|
400
|
-
`,
|
|
400
|
+
`, Ze = /* @__PURE__ */ B({
|
|
401
401
|
inheritAttrs: !1,
|
|
402
402
|
__name: "DuiSelect",
|
|
403
403
|
props: {
|
|
@@ -435,43 +435,43 @@ const Z = { key: 1 }, ee = `
|
|
|
435
435
|
}
|
|
436
436
|
},
|
|
437
437
|
emits: ["update:modelValue"],
|
|
438
|
-
setup(
|
|
439
|
-
const
|
|
440
|
-
function
|
|
441
|
-
const
|
|
442
|
-
!isNaN(
|
|
438
|
+
setup(t, { emit: e }) {
|
|
439
|
+
const d = t, l = e;
|
|
440
|
+
function g(a) {
|
|
441
|
+
const k = a.target.value, s = Number(k);
|
|
442
|
+
!isNaN(s) && k !== "" ? l("update:modelValue", s) : l("update:modelValue", k);
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const u = {
|
|
445
445
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
446
446
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
447
447
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
448
|
-
},
|
|
448
|
+
}, f = {
|
|
449
449
|
all: "dk:rounded",
|
|
450
450
|
top: "dk:rounded-t",
|
|
451
451
|
bottom: "dk:rounded-b",
|
|
452
452
|
left: "dk:rounded-l",
|
|
453
453
|
right: "dk:rounded-r",
|
|
454
454
|
none: "dk:rounded-none"
|
|
455
|
-
},
|
|
456
|
-
const
|
|
457
|
-
return [
|
|
455
|
+
}, h = c(() => {
|
|
456
|
+
const a = u[d.size] || "", n = d.block ? "dk:w-full" : "", k = f[d.rounded] || "";
|
|
457
|
+
return [ce, a, n, k].join(" ");
|
|
458
458
|
});
|
|
459
|
-
return (
|
|
460
|
-
class:
|
|
461
|
-
onChange:
|
|
459
|
+
return (a, n) => (r(), o("select", $(a.$attrs, {
|
|
460
|
+
class: h.value,
|
|
461
|
+
onChange: g
|
|
462
462
|
}), [
|
|
463
|
-
|
|
464
|
-
(r(!0),
|
|
465
|
-
key:
|
|
466
|
-
value:
|
|
467
|
-
selected:
|
|
468
|
-
},
|
|
463
|
+
t.placeholder ? (r(), o("option", le, z(t.placeholder), 1)) : x("", !0),
|
|
464
|
+
(r(!0), o(V, null, T(t.options, (k, s) => (r(), o("option", {
|
|
465
|
+
key: s,
|
|
466
|
+
value: k[t.itemValue] ?? "",
|
|
467
|
+
selected: k[t.itemValue] == t.modelValue
|
|
468
|
+
}, z(k[t.itemLabel] ?? ""), 9, ie))), 128))
|
|
469
469
|
], 16));
|
|
470
470
|
}
|
|
471
|
-
}),
|
|
471
|
+
}), ue = {
|
|
472
472
|
key: 1,
|
|
473
473
|
class: "dk:text-rose-500 dk:ml-1"
|
|
474
|
-
},
|
|
474
|
+
}, be = { 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" }, ge = "dk:space-y-1", pe = /* @__PURE__ */ B({
|
|
475
475
|
__name: "DuiLabel",
|
|
476
476
|
props: {
|
|
477
477
|
title: {
|
|
@@ -499,75 +499,211 @@ const Z = { key: 1 }, ee = `
|
|
|
499
499
|
default: !1
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
|
-
setup(
|
|
503
|
-
const e =
|
|
502
|
+
setup(t) {
|
|
503
|
+
const e = F(!1), d = t, l = {
|
|
504
504
|
s: "dk:text-sm",
|
|
505
505
|
m: "dk:text-base",
|
|
506
506
|
l: "dk:text-lg"
|
|
507
|
-
},
|
|
507
|
+
}, g = {
|
|
508
508
|
s: "dk:mt-1",
|
|
509
509
|
m: "dk:mt-1.5",
|
|
510
510
|
l: "dk:mt-2"
|
|
511
|
-
},
|
|
511
|
+
}, u = {
|
|
512
512
|
s: "dk:text-xs",
|
|
513
513
|
m: "dk:text-sm",
|
|
514
514
|
l: "dk:text-base"
|
|
515
|
-
},
|
|
516
|
-
const
|
|
517
|
-
return [
|
|
518
|
-
}),
|
|
519
|
-
return (
|
|
520
|
-
class:
|
|
515
|
+
}, f = c(() => [ge].join(" ")), h = c(() => {
|
|
516
|
+
const k = l[d.size] || l.m, s = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", y = d.helpText ? "dk:cursor-help" : "";
|
|
517
|
+
return [s, k, y].join(" ");
|
|
518
|
+
}), a = c(() => [g[d.size] || g.m].join(" ")), n = c(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", u[d.size] || u.m].join(" "));
|
|
519
|
+
return (k, s) => (r(), o("label", {
|
|
520
|
+
class: p(f.value)
|
|
521
521
|
}, [
|
|
522
|
-
|
|
522
|
+
t.title ? (r(), o("div", {
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "dk:relative",
|
|
525
|
-
onMouseenter:
|
|
526
|
-
onMouseleave:
|
|
525
|
+
onMouseenter: s[0] || (s[0] = (y) => e.value = !!t.helpText),
|
|
526
|
+
onMouseleave: s[1] || (s[1] = (y) => e.value = !1)
|
|
527
527
|
}, [
|
|
528
|
-
|
|
529
|
-
class: h
|
|
528
|
+
i("div", {
|
|
529
|
+
class: p(h.value)
|
|
530
530
|
}, [
|
|
531
|
-
|
|
531
|
+
t.icon ? (r(), o("i", {
|
|
532
532
|
key: 0,
|
|
533
|
-
class:
|
|
534
|
-
}, null, 2)) :
|
|
535
|
-
S(" " +
|
|
536
|
-
|
|
533
|
+
class: p([t.icon, "dk:mr-2"])
|
|
534
|
+
}, null, 2)) : x("", !0),
|
|
535
|
+
S(" " + z(t.title) + " ", 1),
|
|
536
|
+
t.required ? (r(), o("span", ue, "*")) : x("", !0)
|
|
537
537
|
], 2),
|
|
538
|
-
W(
|
|
539
|
-
S(
|
|
540
|
-
|
|
538
|
+
W(i("div", be, [
|
|
539
|
+
S(z(t.helpText) + " ", 1),
|
|
540
|
+
s[2] || (s[2] = i("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
|
|
541
541
|
], 512), [
|
|
542
|
-
[q, e.value &&
|
|
542
|
+
[q, e.value && t.helpText]
|
|
543
543
|
])
|
|
544
|
-
], 32)) :
|
|
545
|
-
|
|
546
|
-
class:
|
|
544
|
+
], 32)) : x("", !0),
|
|
545
|
+
i("div", {
|
|
546
|
+
class: p(a.value)
|
|
547
547
|
}, [
|
|
548
|
-
|
|
548
|
+
j(k.$slots, "default", {}, void 0, !0)
|
|
549
549
|
], 2),
|
|
550
|
-
|
|
550
|
+
t.error ? (r(), o("div", {
|
|
551
|
+
key: 1,
|
|
552
|
+
class: p(n.value)
|
|
553
|
+
}, [
|
|
554
|
+
s[3] || (s[3] = i("span", { class: "dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0" }, " ! ", -1)),
|
|
555
|
+
S(" " + z(t.error), 1)
|
|
556
|
+
], 2)) : x("", !0)
|
|
557
|
+
], 2));
|
|
558
|
+
}
|
|
559
|
+
}), H = (t, e) => {
|
|
560
|
+
const d = t.__vccOpts || t;
|
|
561
|
+
for (const [l, g] of e)
|
|
562
|
+
d[l] = g;
|
|
563
|
+
return d;
|
|
564
|
+
}, ed = /* @__PURE__ */ H(pe, [["__scopeId", "data-v-aa6b6cdc"]]), he = { class: "dk:relative dk:inline-flex dk:items-center dk:flex-shrink-0" }, fe = ["checked", "disabled"], dd = /* @__PURE__ */ B({
|
|
565
|
+
inheritAttrs: !1,
|
|
566
|
+
__name: "DuiCheckbox",
|
|
567
|
+
props: {
|
|
568
|
+
modelValue: {
|
|
569
|
+
type: Boolean,
|
|
570
|
+
default: !1
|
|
571
|
+
},
|
|
572
|
+
label: {
|
|
573
|
+
type: String,
|
|
574
|
+
default: ""
|
|
575
|
+
},
|
|
576
|
+
labelPosition: {
|
|
577
|
+
type: String,
|
|
578
|
+
default: "right"
|
|
579
|
+
},
|
|
580
|
+
color: {
|
|
581
|
+
type: String,
|
|
582
|
+
default: "primary"
|
|
583
|
+
},
|
|
584
|
+
size: {
|
|
585
|
+
type: String,
|
|
586
|
+
default: "md"
|
|
587
|
+
},
|
|
588
|
+
block: {
|
|
589
|
+
type: Boolean,
|
|
590
|
+
default: !1
|
|
591
|
+
},
|
|
592
|
+
rounded: {
|
|
593
|
+
type: String,
|
|
594
|
+
default: "all"
|
|
595
|
+
},
|
|
596
|
+
disabled: {
|
|
597
|
+
type: Boolean,
|
|
598
|
+
default: !1
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
emits: ["update:modelValue"],
|
|
602
|
+
setup(t, { emit: e }) {
|
|
603
|
+
const d = t, l = e, g = ee(), u = {
|
|
604
|
+
sm: {
|
|
605
|
+
track: "dk:w-9 dk:h-5",
|
|
606
|
+
thumb: "dk:w-3.5 dk:h-3.5",
|
|
607
|
+
translate: "dk:peer-checked:translate-x-[14px]"
|
|
608
|
+
},
|
|
609
|
+
md: {
|
|
610
|
+
track: "dk:w-11 dk:h-6",
|
|
611
|
+
thumb: "dk:w-4 dk:h-4",
|
|
612
|
+
translate: "dk:peer-checked:translate-x-5"
|
|
613
|
+
},
|
|
614
|
+
lg: {
|
|
615
|
+
track: "dk:w-14 dk:h-7",
|
|
616
|
+
thumb: "dk:w-5 dk:h-5",
|
|
617
|
+
translate: "dk:peer-checked:translate-x-7"
|
|
618
|
+
}
|
|
619
|
+
}, f = {
|
|
620
|
+
all: "dk:rounded-full",
|
|
621
|
+
top: "dk:rounded-t-full",
|
|
622
|
+
bottom: "dk:rounded-b-full",
|
|
623
|
+
left: "dk:rounded-l-full",
|
|
624
|
+
right: "dk:rounded-r-full",
|
|
625
|
+
none: "dk:rounded-none"
|
|
626
|
+
}, h = {
|
|
627
|
+
neutral: "dk:peer-checked:bg-zinc-500 dk:peer-checked:dark:bg-zinc-500",
|
|
628
|
+
primary: "dk:peer-checked:bg-slate-600 dk:peer-checked:dark:bg-slate-500",
|
|
629
|
+
secondary: "dk:peer-checked:bg-pink-600 dk:peer-checked:dark:bg-pink-500",
|
|
630
|
+
success: "dk:peer-checked:bg-emerald-600 dk:peer-checked:dark:bg-emerald-500",
|
|
631
|
+
warning: "dk:peer-checked:bg-amber-500 dk:peer-checked:dark:bg-amber-400",
|
|
632
|
+
danger: "dk:peer-checked:bg-rose-600 dk:peer-checked:dark:bg-rose-500"
|
|
633
|
+
}, a = c(() => !!(d.label || g.default)), n = c(() => {
|
|
634
|
+
const C = d.block ? "dk:w-full dk:justify-between" : "", v = d.disabled ? "dk:opacity-60 dk:cursor-not-allowed" : "dk:cursor-pointer";
|
|
635
|
+
return ["dk:inline-flex dk:items-center dk:gap-3 dk:select-none", C, v].join(" ");
|
|
636
|
+
}), k = c(() => [
|
|
637
|
+
"dk:text-sm dk:leading-none dk:text-zinc-700 dk:dark:text-zinc-200",
|
|
638
|
+
d.disabled ? "dk:cursor-not-allowed" : "dk:cursor-pointer"
|
|
639
|
+
].join(" ")), s = c(() => {
|
|
640
|
+
const C = u[d.size] || u.md, v = f[d.rounded] || f.all, L = h[d.color] || h.primary;
|
|
641
|
+
return [
|
|
642
|
+
"dk:inline-flex dk:items-center dk:transition-colors dk:duration-200",
|
|
643
|
+
"dk:bg-zinc-300 dk:dark:bg-zinc-700",
|
|
644
|
+
"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",
|
|
645
|
+
"dk:peer-disabled:opacity-70",
|
|
646
|
+
C.track,
|
|
647
|
+
v,
|
|
648
|
+
L
|
|
649
|
+
].join(" ");
|
|
650
|
+
}), y = c(() => {
|
|
651
|
+
const C = u[d.size] || u.md;
|
|
652
|
+
return [
|
|
653
|
+
"dk:absolute dk:left-1 dk:top-1/2 dk:-translate-y-1/2",
|
|
654
|
+
"dk:bg-white dk:dark:bg-zinc-100",
|
|
655
|
+
"dk:rounded-full dk:shadow-sm dk:transition-transform dk:duration-200",
|
|
656
|
+
"dk:pointer-events-none",
|
|
657
|
+
C.thumb,
|
|
658
|
+
C.translate
|
|
659
|
+
].join(" ");
|
|
660
|
+
});
|
|
661
|
+
function _(C) {
|
|
662
|
+
const v = C.target;
|
|
663
|
+
l("update:modelValue", v.checked);
|
|
664
|
+
}
|
|
665
|
+
return (C, v) => (r(), o("label", {
|
|
666
|
+
class: p(n.value)
|
|
667
|
+
}, [
|
|
668
|
+
a.value && t.labelPosition === "left" ? (r(), o("span", {
|
|
669
|
+
key: 0,
|
|
670
|
+
class: p(k.value)
|
|
671
|
+
}, [
|
|
672
|
+
j(C.$slots, "default", {}, () => [
|
|
673
|
+
S(z(t.label), 1)
|
|
674
|
+
])
|
|
675
|
+
], 2)) : x("", !0),
|
|
676
|
+
i("span", he, [
|
|
677
|
+
i("input", $({
|
|
678
|
+
type: "checkbox",
|
|
679
|
+
class: "dk:sr-only dk:peer",
|
|
680
|
+
checked: t.modelValue,
|
|
681
|
+
disabled: t.disabled
|
|
682
|
+
}, C.$attrs, { onChange: _ }), null, 16, fe),
|
|
683
|
+
i("span", {
|
|
684
|
+
class: p(s.value)
|
|
685
|
+
}, null, 2),
|
|
686
|
+
i("span", {
|
|
687
|
+
class: p(y.value)
|
|
688
|
+
}, null, 2)
|
|
689
|
+
]),
|
|
690
|
+
a.value && t.labelPosition === "right" ? (r(), o("span", {
|
|
551
691
|
key: 1,
|
|
552
|
-
class:
|
|
692
|
+
class: p(k.value)
|
|
553
693
|
}, [
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
694
|
+
j(C.$slots, "default", {}, () => [
|
|
695
|
+
S(z(t.label), 1)
|
|
696
|
+
])
|
|
697
|
+
], 2)) : x("", !0)
|
|
557
698
|
], 2));
|
|
558
699
|
}
|
|
559
|
-
}),
|
|
560
|
-
const k = d.__vccOpts || d;
|
|
561
|
-
for (const [s, n] of e)
|
|
562
|
-
k[s] = n;
|
|
563
|
-
return k;
|
|
564
|
-
}, We = /* @__PURE__ */ be(ue, [["__scopeId", "data-v-aa6b6cdc"]]), ce = `
|
|
700
|
+
}), me = `
|
|
565
701
|
dk:px-4
|
|
566
702
|
dk:py-3
|
|
567
703
|
dk:text-sm
|
|
568
704
|
dk:leading-relaxed
|
|
569
705
|
dk:max-w-full
|
|
570
|
-
`,
|
|
706
|
+
`, td = /* @__PURE__ */ B({
|
|
571
707
|
__name: "DuiAlert",
|
|
572
708
|
props: {
|
|
573
709
|
variant: {
|
|
@@ -583,15 +719,15 @@ const Z = { key: 1 }, ee = `
|
|
|
583
719
|
default: "all"
|
|
584
720
|
}
|
|
585
721
|
},
|
|
586
|
-
setup(
|
|
587
|
-
const e =
|
|
722
|
+
setup(t) {
|
|
723
|
+
const e = t, d = {
|
|
588
724
|
all: "dk:rounded",
|
|
589
725
|
top: "dk:rounded-t",
|
|
590
726
|
bottom: "dk:rounded-b",
|
|
591
727
|
left: "dk:rounded-l",
|
|
592
728
|
right: "dk:rounded-r",
|
|
593
729
|
none: "dk:rounded-none"
|
|
594
|
-
},
|
|
730
|
+
}, l = {
|
|
595
731
|
solid: {
|
|
596
732
|
base: "",
|
|
597
733
|
neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
|
|
@@ -619,19 +755,22 @@ const Z = { key: 1 }, ee = `
|
|
|
619
755
|
warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
|
|
620
756
|
danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
|
|
621
757
|
}
|
|
622
|
-
},
|
|
623
|
-
var
|
|
624
|
-
const
|
|
625
|
-
return [
|
|
758
|
+
}, g = c(() => {
|
|
759
|
+
var a;
|
|
760
|
+
const u = ((a = l[e.variant]) == null ? void 0 : a[e.color]) || "", f = l[e.variant].base || "", h = d[e.rounded] || "";
|
|
761
|
+
return [me, f, u, h].join(" ");
|
|
626
762
|
});
|
|
627
|
-
return (
|
|
628
|
-
class:
|
|
763
|
+
return (u, f) => (r(), o("div", {
|
|
764
|
+
class: p(g.value),
|
|
629
765
|
role: "alert"
|
|
630
766
|
}, [
|
|
631
|
-
|
|
767
|
+
j(u.$slots, "default")
|
|
632
768
|
], 2));
|
|
633
769
|
}
|
|
634
|
-
}),
|
|
770
|
+
}), ve = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, xe = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, ye = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200 dk:relative" }, ze = { key: 0 }, we = ["colspan"], Ce = {
|
|
771
|
+
key: 0,
|
|
772
|
+
class: "dk:bg-gray-50 dk:dark:bg-gray-700 dk:border-t dk:border-gray-200 dk:dark:border-gray-600"
|
|
773
|
+
}, Se = ["colspan"], $e = { class: "pagination-container" }, _e = { class: "pagination-info" }, je = { class: "pagination-buttons" }, Ve = { class: "page-numbers" }, Pe = ["onClick"], Be = /* @__PURE__ */ B({
|
|
635
774
|
__name: "DuiTable",
|
|
636
775
|
props: {
|
|
637
776
|
columns: {
|
|
@@ -641,39 +780,113 @@ const Z = { key: 1 }, ee = `
|
|
|
641
780
|
rows: {
|
|
642
781
|
type: Array,
|
|
643
782
|
required: !0
|
|
783
|
+
},
|
|
784
|
+
loading: {
|
|
785
|
+
type: Boolean,
|
|
786
|
+
default: !1
|
|
787
|
+
},
|
|
788
|
+
pagination: {
|
|
789
|
+
type: Object,
|
|
790
|
+
default: void 0
|
|
644
791
|
}
|
|
645
792
|
},
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
793
|
+
emits: ["paginate"],
|
|
794
|
+
setup(t, { emit: e }) {
|
|
795
|
+
const d = t, l = e, g = c(() => d.pagination ? Math.ceil(d.pagination.total / d.pagination.perPage) : 0), u = c(() => {
|
|
796
|
+
if (!d.pagination) return [];
|
|
797
|
+
const h = [], a = 5, { page: n } = d.pagination, k = g.value;
|
|
798
|
+
let s = Math.max(1, n - Math.floor(a / 2)), y = Math.min(k, s + a - 1);
|
|
799
|
+
y - s < a - 1 && (s = Math.max(1, y - a + 1));
|
|
800
|
+
for (let _ = s; _ <= y; _++)
|
|
801
|
+
h.push(_);
|
|
802
|
+
return h;
|
|
803
|
+
}), f = (h) => {
|
|
804
|
+
d.pagination && h >= 1 && h <= g.value && l("paginate", h);
|
|
805
|
+
};
|
|
806
|
+
return (h, a) => (r(), o("div", ve, [
|
|
807
|
+
i("table", xe, [
|
|
808
|
+
i("thead", ye, [
|
|
809
|
+
i("tr", null, [
|
|
810
|
+
(r(!0), o(V, null, T(d.columns, (n) => (r(), o("th", {
|
|
653
811
|
key: n.name,
|
|
654
|
-
class:
|
|
655
|
-
},
|
|
656
|
-
])
|
|
812
|
+
class: p(["dk:px-6 dk:py-3", n.classes])
|
|
813
|
+
}, z(n.label), 3))), 128))
|
|
814
|
+
]),
|
|
815
|
+
d.loading ? (r(), o("tr", ze, [
|
|
816
|
+
i("td", {
|
|
817
|
+
colspan: d.columns.length,
|
|
818
|
+
class: "dk:p-0"
|
|
819
|
+
}, [...a[2] || (a[2] = [
|
|
820
|
+
i("div", { class: "loading-bar" }, null, -1)
|
|
821
|
+
])], 8, we)
|
|
822
|
+
])) : x("", !0)
|
|
657
823
|
]),
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
824
|
+
i("tbody", {
|
|
825
|
+
class: p({ "is-loading": d.loading })
|
|
826
|
+
}, [
|
|
827
|
+
(r(!0), o(V, null, T(d.rows, (n, k) => (r(), o("tr", {
|
|
828
|
+
key: k,
|
|
661
829
|
class: "dk:bg-white dk:border-b dk:border-gray-200 dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:hover:bg-gray-50 dk:dark:hover:bg-gray-600 dk:transition-colors"
|
|
662
830
|
}, [
|
|
663
|
-
(r(!0),
|
|
664
|
-
key:
|
|
831
|
+
(r(!0), o(V, null, T(d.columns, (s) => (r(), o("td", {
|
|
832
|
+
key: s.name,
|
|
665
833
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
666
834
|
}, [
|
|
667
|
-
|
|
668
|
-
S(
|
|
669
|
-
])
|
|
835
|
+
j(h.$slots, s.name, $({ ref_for: !0 }, n), () => [
|
|
836
|
+
S(z(n[s.name]), 1)
|
|
837
|
+
], !0)
|
|
670
838
|
]))), 128))
|
|
671
839
|
]))), 128))
|
|
672
|
-
])
|
|
840
|
+
], 2),
|
|
841
|
+
d.pagination ? (r(), o("tfoot", Ce, [
|
|
842
|
+
i("tr", null, [
|
|
843
|
+
i("td", {
|
|
844
|
+
colspan: d.columns.length,
|
|
845
|
+
class: "dk:px-6 dk:py-4"
|
|
846
|
+
}, [
|
|
847
|
+
i("div", $e, [
|
|
848
|
+
i("div", _e, " Página " + z(d.pagination.page) + " de " + z(g.value) + " | " + z(d.pagination.total) + " registros ", 1),
|
|
849
|
+
i("div", je, [
|
|
850
|
+
E(O, {
|
|
851
|
+
variant: "outline",
|
|
852
|
+
color: "neutral",
|
|
853
|
+
size: "sm",
|
|
854
|
+
onClick: a[0] || (a[0] = (n) => f(d.pagination.page - 1)),
|
|
855
|
+
disabled: d.pagination.page === 1
|
|
856
|
+
}, {
|
|
857
|
+
default: P(() => [...a[3] || (a[3] = [
|
|
858
|
+
S(" ← Anterior ", -1)
|
|
859
|
+
])]),
|
|
860
|
+
_: 1
|
|
861
|
+
}, 8, ["disabled"]),
|
|
862
|
+
i("div", Ve, [
|
|
863
|
+
(r(!0), o(V, null, T(u.value, (n) => (r(), o("button", {
|
|
864
|
+
key: n,
|
|
865
|
+
onClick: (k) => f(n),
|
|
866
|
+
class: p(["page-number", { active: n === d.pagination.page }])
|
|
867
|
+
}, z(n), 11, Pe))), 128))
|
|
868
|
+
]),
|
|
869
|
+
E(O, {
|
|
870
|
+
variant: "outline",
|
|
871
|
+
color: "neutral",
|
|
872
|
+
size: "sm",
|
|
873
|
+
onClick: a[1] || (a[1] = (n) => f(d.pagination.page + 1)),
|
|
874
|
+
disabled: d.pagination.page === g.value
|
|
875
|
+
}, {
|
|
876
|
+
default: P(() => [...a[4] || (a[4] = [
|
|
877
|
+
S(" Siguiente → ", -1)
|
|
878
|
+
])]),
|
|
879
|
+
_: 1
|
|
880
|
+
}, 8, ["disabled"])
|
|
881
|
+
])
|
|
882
|
+
])
|
|
883
|
+
], 8, Se)
|
|
884
|
+
])
|
|
885
|
+
])) : x("", !0)
|
|
673
886
|
])
|
|
674
887
|
]));
|
|
675
888
|
}
|
|
676
|
-
}),
|
|
889
|
+
}), rd = /* @__PURE__ */ H(Be, [["__scopeId", "data-v-60002528"]]), De = { key: 1 }, Me = `
|
|
677
890
|
dk:transition
|
|
678
891
|
dk:text-center
|
|
679
892
|
dk:disabled:opacity-50
|
|
@@ -684,7 +897,7 @@ const Z = { key: 1 }, ee = `
|
|
|
684
897
|
dk:text-ellipsis
|
|
685
898
|
dk:whitespace-nowrap
|
|
686
899
|
dk:active:scale-95
|
|
687
|
-
dk:max-w-full`,
|
|
900
|
+
dk:max-w-full`, od = /* @__PURE__ */ B({
|
|
688
901
|
__name: "DuiAction",
|
|
689
902
|
props: {
|
|
690
903
|
variant: { default: "solid" },
|
|
@@ -697,19 +910,19 @@ const Z = { key: 1 }, ee = `
|
|
|
697
910
|
to: { default: void 0 },
|
|
698
911
|
nuxt: { type: Boolean, default: !1 }
|
|
699
912
|
},
|
|
700
|
-
setup(
|
|
701
|
-
const e =
|
|
913
|
+
setup(t) {
|
|
914
|
+
const e = t, d = c(() => e.to ? I(e.to, e.nuxt) : "span"), l = c(() => R(e.to, d.value)), g = {
|
|
702
915
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
703
916
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
704
917
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
705
|
-
},
|
|
918
|
+
}, u = {
|
|
706
919
|
all: "dk:rounded",
|
|
707
920
|
top: "dk:rounded-t",
|
|
708
921
|
bottom: "dk:rounded-b",
|
|
709
922
|
left: "dk:rounded-l",
|
|
710
923
|
right: "dk:rounded-r",
|
|
711
924
|
none: "dk:rounded-none"
|
|
712
|
-
},
|
|
925
|
+
}, f = {
|
|
713
926
|
solid: {
|
|
714
927
|
base: "dk:border-b",
|
|
715
928
|
neutral: `
|
|
@@ -881,25 +1094,25 @@ const Z = { key: 1 }, ee = `
|
|
|
881
1094
|
dk:dark:text-amber-100
|
|
882
1095
|
dk:dark:hover:bg-amber-800`
|
|
883
1096
|
}
|
|
884
|
-
},
|
|
885
|
-
var
|
|
886
|
-
const
|
|
887
|
-
return [
|
|
1097
|
+
}, h = c(() => {
|
|
1098
|
+
var y;
|
|
1099
|
+
const a = (((y = f[e.variant]) == null ? void 0 : y[e.color]) || "") + " " + f[e.variant].base, n = g[e.size] || "", k = e.block ? "dk:block" : "dk:inline-block", s = u[e.rounded] || "";
|
|
1100
|
+
return [Me, a, n, k, s].join(" ");
|
|
888
1101
|
});
|
|
889
|
-
return (
|
|
890
|
-
class:
|
|
1102
|
+
return (a, n) => (r(), D(M(d.value), $(l.value, {
|
|
1103
|
+
class: h.value,
|
|
891
1104
|
title: e.title
|
|
892
1105
|
}), {
|
|
893
|
-
default:
|
|
894
|
-
e.loading ? (r(),
|
|
1106
|
+
default: P(() => [
|
|
1107
|
+
e.loading ? (r(), o("span", De, "Cargando...")) : j(a.$slots, "default", { key: 0 })
|
|
895
1108
|
]),
|
|
896
1109
|
_: 3
|
|
897
1110
|
}, 16, ["class", "title"]));
|
|
898
1111
|
}
|
|
899
|
-
}),
|
|
1112
|
+
}), Te = {
|
|
900
1113
|
key: 0,
|
|
901
1114
|
class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
|
|
902
|
-
},
|
|
1115
|
+
}, Ae = ["src", "alt"], ad = /* @__PURE__ */ B({
|
|
903
1116
|
__name: "DuiCard",
|
|
904
1117
|
props: {
|
|
905
1118
|
size: { default: "m" },
|
|
@@ -909,11 +1122,11 @@ const Z = { key: 1 }, ee = `
|
|
|
909
1122
|
to: { default: void 0 },
|
|
910
1123
|
nuxt: { type: Boolean, default: !1 }
|
|
911
1124
|
},
|
|
912
|
-
setup(
|
|
913
|
-
const e =
|
|
914
|
-
const
|
|
915
|
-
return
|
|
916
|
-
},
|
|
1125
|
+
setup(t) {
|
|
1126
|
+
const e = t, d = () => e.to ? I(e.to, e.nuxt) : "div", l = () => e.to ? I(e.to, e.nuxt) : "h3", g = () => {
|
|
1127
|
+
const v = d();
|
|
1128
|
+
return R(e.to, v);
|
|
1129
|
+
}, u = {
|
|
917
1130
|
s: {
|
|
918
1131
|
padding: "dk:p-3",
|
|
919
1132
|
spacing: "dk:space-y-2",
|
|
@@ -935,7 +1148,7 @@ const Z = { key: 1 }, ee = `
|
|
|
935
1148
|
subtitleSize: "dk:text-lg",
|
|
936
1149
|
contentSize: "dk:text-lg"
|
|
937
1150
|
}
|
|
938
|
-
},
|
|
1151
|
+
}, f = c(() => [
|
|
939
1152
|
// Glassmorphism card styles (Windows Vista inspired)
|
|
940
1153
|
"dk:relative dk:bg-gradient-to-br dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
|
|
941
1154
|
"dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60",
|
|
@@ -951,114 +1164,114 @@ const Z = { key: 1 }, ee = `
|
|
|
951
1164
|
"dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5",
|
|
952
1165
|
"dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
|
|
953
1166
|
"dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent"
|
|
954
|
-
].join(" ")),
|
|
1167
|
+
].join(" ")), h = c(() => [
|
|
955
1168
|
"dk:w-full dk:h-48 dk:object-cover",
|
|
956
1169
|
"dk:relative dk:z-10"
|
|
957
|
-
].join(" ")),
|
|
958
|
-
const
|
|
1170
|
+
].join(" ")), a = c(() => {
|
|
1171
|
+
const v = u[e.size];
|
|
959
1172
|
return [
|
|
960
|
-
|
|
961
|
-
|
|
1173
|
+
v.padding,
|
|
1174
|
+
v.spacing,
|
|
962
1175
|
// Glass effect for content wrapper
|
|
963
1176
|
"dk:relative dk:z-10"
|
|
964
1177
|
].join(" ");
|
|
965
|
-
}),
|
|
966
|
-
|
|
967
|
-
].join(" ")),
|
|
968
|
-
const
|
|
969
|
-
|
|
1178
|
+
}), n = c(() => [
|
|
1179
|
+
u[e.size].spacing
|
|
1180
|
+
].join(" ")), k = c(() => {
|
|
1181
|
+
const L = [
|
|
1182
|
+
u[e.size].titleSize,
|
|
970
1183
|
"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
|
|
971
1184
|
"dk:line-clamp-2"
|
|
972
1185
|
];
|
|
973
|
-
return e.to &&
|
|
1186
|
+
return e.to && L.push(
|
|
974
1187
|
"dk:no-underline dk:hover:underline dk:transition-colors",
|
|
975
1188
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
976
|
-
),
|
|
977
|
-
}),
|
|
978
|
-
const
|
|
1189
|
+
), L.join(" ");
|
|
1190
|
+
}), s = c(() => {
|
|
1191
|
+
const v = [
|
|
979
1192
|
"dk:block",
|
|
980
1193
|
"dk:transition-transform dk:duration-300",
|
|
981
1194
|
"dk:hover:scale-105",
|
|
982
1195
|
"dk:relative dk:z-10"
|
|
983
1196
|
];
|
|
984
|
-
return e.to &&
|
|
985
|
-
}),
|
|
986
|
-
|
|
1197
|
+
return e.to && v.push("dk:no-underline"), v.join(" ");
|
|
1198
|
+
}), y = c(() => [
|
|
1199
|
+
u[e.size].subtitleSize,
|
|
987
1200
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
988
1201
|
"dk:line-clamp-3"
|
|
989
|
-
].join(" ")),
|
|
990
|
-
|
|
1202
|
+
].join(" ")), _ = c(() => [
|
|
1203
|
+
u[e.size].contentSize,
|
|
991
1204
|
"dk:text-gray-700 dk:dark:text-gray-300"
|
|
992
|
-
].join(" ")),
|
|
1205
|
+
].join(" ")), C = c(() => [
|
|
993
1206
|
"dk:border-t dk:border-gray-300/40 dk:dark:border-white/10",
|
|
994
1207
|
"dk:pt-3 dk:mt-3",
|
|
995
1208
|
"dk:relative dk:z-10"
|
|
996
1209
|
].join(" "));
|
|
997
|
-
return (
|
|
998
|
-
class:
|
|
1210
|
+
return (v, L) => (r(), o("div", {
|
|
1211
|
+
class: p(f.value)
|
|
999
1212
|
}, [
|
|
1000
|
-
|
|
1001
|
-
(r(),
|
|
1002
|
-
default:
|
|
1003
|
-
|
|
1004
|
-
src:
|
|
1005
|
-
alt:
|
|
1006
|
-
class: h
|
|
1007
|
-
}, null, 10,
|
|
1213
|
+
t.image ? (r(), o("div", Te, [
|
|
1214
|
+
(r(), D(M(d()), $(g(), { class: s.value }), {
|
|
1215
|
+
default: P(() => [
|
|
1216
|
+
i("img", {
|
|
1217
|
+
src: t.image,
|
|
1218
|
+
alt: t.title || "Card image",
|
|
1219
|
+
class: p(h.value)
|
|
1220
|
+
}, null, 10, Ae)
|
|
1008
1221
|
]),
|
|
1009
1222
|
_: 1
|
|
1010
1223
|
}, 16, ["class"]))
|
|
1011
|
-
])) :
|
|
1012
|
-
|
|
1013
|
-
class:
|
|
1224
|
+
])) : x("", !0),
|
|
1225
|
+
i("div", {
|
|
1226
|
+
class: p(a.value)
|
|
1014
1227
|
}, [
|
|
1015
|
-
|
|
1228
|
+
t.title || t.subtitle ? (r(), o("div", {
|
|
1016
1229
|
key: 0,
|
|
1017
|
-
class:
|
|
1230
|
+
class: p(n.value)
|
|
1018
1231
|
}, [
|
|
1019
|
-
|
|
1020
|
-
default:
|
|
1021
|
-
S(
|
|
1232
|
+
t.title ? (r(), D(M(l()), $({ key: 0 }, g(), { class: k.value }), {
|
|
1233
|
+
default: P(() => [
|
|
1234
|
+
S(z(t.title), 1)
|
|
1022
1235
|
]),
|
|
1023
1236
|
_: 1
|
|
1024
|
-
}, 16, ["class"])) :
|
|
1025
|
-
|
|
1237
|
+
}, 16, ["class"])) : x("", !0),
|
|
1238
|
+
t.subtitle ? (r(), o("p", {
|
|
1026
1239
|
key: 1,
|
|
1027
|
-
class:
|
|
1028
|
-
},
|
|
1029
|
-
], 2)) :
|
|
1030
|
-
|
|
1240
|
+
class: p(y.value)
|
|
1241
|
+
}, z(t.subtitle), 3)) : x("", !0)
|
|
1242
|
+
], 2)) : x("", !0),
|
|
1243
|
+
v.$slots.default ? (r(), o("div", {
|
|
1031
1244
|
key: 1,
|
|
1032
|
-
class:
|
|
1245
|
+
class: p(_.value)
|
|
1033
1246
|
}, [
|
|
1034
|
-
|
|
1035
|
-
], 2)) :
|
|
1036
|
-
|
|
1247
|
+
j(v.$slots, "default")
|
|
1248
|
+
], 2)) : x("", !0),
|
|
1249
|
+
v.$slots.footer ? (r(), o("div", {
|
|
1037
1250
|
key: 2,
|
|
1038
|
-
class:
|
|
1251
|
+
class: p(C.value)
|
|
1039
1252
|
}, [
|
|
1040
|
-
|
|
1041
|
-
], 2)) :
|
|
1253
|
+
j(v.$slots, "footer")
|
|
1254
|
+
], 2)) : x("", !0)
|
|
1042
1255
|
], 2)
|
|
1043
1256
|
], 2));
|
|
1044
1257
|
}
|
|
1045
|
-
}),
|
|
1258
|
+
}), Le = {
|
|
1046
1259
|
key: 0,
|
|
1047
1260
|
class: "dk:flex dk:items-center dk:gap-4 dk:flex-shrink-0"
|
|
1048
|
-
},
|
|
1261
|
+
}, Ie = { class: "dk:hidden dk:md:flex dk:items-center dk:flex-1" }, Ne = {
|
|
1049
1262
|
key: 0,
|
|
1050
1263
|
class: "dk:relative dk:group"
|
|
1051
|
-
},
|
|
1264
|
+
}, Re = { 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:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:rounded-lg dk:shadow-lg dk:border dk:border-white/40 dk:dark:border-white/10 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50" }, We = {
|
|
1052
1265
|
key: 1,
|
|
1053
1266
|
class: "dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"
|
|
1054
|
-
},
|
|
1267
|
+
}, qe = {
|
|
1055
1268
|
class: "dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",
|
|
1056
1269
|
fill: "none",
|
|
1057
1270
|
viewBox: "0 0 24 24"
|
|
1058
|
-
},
|
|
1271
|
+
}, Ee = ["d"], Oe = { 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:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:border-t dk:border-white/40 dk:dark:border-white/10 dk:shadow-lg dk:dark:shadow-black/30 dk:z-40" }, Fe = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, He = { key: 0 }, Ue = ["onClick"], Ge = { class: "dk:flex dk:items-center" }, Je = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, Ke = {
|
|
1059
1272
|
key: 0,
|
|
1060
1273
|
class: "dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"
|
|
1061
|
-
},
|
|
1274
|
+
}, kd = /* @__PURE__ */ B({
|
|
1062
1275
|
__name: "DuiNavbar",
|
|
1063
1276
|
props: {
|
|
1064
1277
|
items: { default: () => [] },
|
|
@@ -1067,19 +1280,19 @@ const Z = { key: 1 }, ee = `
|
|
|
1067
1280
|
itemsAlignment: { default: "left" },
|
|
1068
1281
|
underlineColor: { default: "primary" }
|
|
1069
1282
|
},
|
|
1070
|
-
setup(
|
|
1071
|
-
const e =
|
|
1072
|
-
const
|
|
1073
|
-
return
|
|
1074
|
-
},
|
|
1075
|
-
|
|
1076
|
-
},
|
|
1077
|
-
|
|
1078
|
-
|
|
1283
|
+
setup(t) {
|
|
1284
|
+
const e = t, d = F(!1), l = de({}), g = (m) => I(m.to, e.nuxt), u = (m) => {
|
|
1285
|
+
const A = g(m);
|
|
1286
|
+
return R(m.to, A);
|
|
1287
|
+
}, f = () => {
|
|
1288
|
+
d.value = !d.value;
|
|
1289
|
+
}, h = () => {
|
|
1290
|
+
d.value = !1, Object.keys(l).forEach((m) => {
|
|
1291
|
+
l[m] = !1;
|
|
1079
1292
|
});
|
|
1080
|
-
},
|
|
1081
|
-
|
|
1082
|
-
},
|
|
1293
|
+
}, a = (m) => {
|
|
1294
|
+
l[m] = !l[m];
|
|
1295
|
+
}, n = {
|
|
1083
1296
|
s: {
|
|
1084
1297
|
height: "dk:h-12",
|
|
1085
1298
|
padding: "dk:px-3",
|
|
@@ -1098,8 +1311,8 @@ const Z = { key: 1 }, ee = `
|
|
|
1098
1311
|
text: "dk:text-lg",
|
|
1099
1312
|
itemPadding: "dk:px-4 dk:py-3"
|
|
1100
1313
|
}
|
|
1101
|
-
},
|
|
1102
|
-
const
|
|
1314
|
+
}, k = c(() => {
|
|
1315
|
+
const m = n[e.size];
|
|
1103
1316
|
return [
|
|
1104
1317
|
// Glassmorphism navbar styles (Windows Vista inspired)
|
|
1105
1318
|
"dk:relative dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
|
|
@@ -1112,19 +1325,19 @@ const Z = { key: 1 }, ee = `
|
|
|
1112
1325
|
"dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
|
|
1113
1326
|
"dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent",
|
|
1114
1327
|
"dk:flex dk:items-center dk:w-full dk:gap-4",
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1328
|
+
m.height,
|
|
1329
|
+
m.padding,
|
|
1330
|
+
m.text
|
|
1118
1331
|
].join(" ");
|
|
1119
|
-
}),
|
|
1332
|
+
}), s = c(() => [
|
|
1120
1333
|
"dk:flex dk:items-center dk:space-x-1 dk:flex-1",
|
|
1121
1334
|
{
|
|
1122
1335
|
left: "dk:justify-start",
|
|
1123
1336
|
center: "dk:justify-center",
|
|
1124
1337
|
right: "dk:justify-end"
|
|
1125
1338
|
}[e.itemsAlignment]
|
|
1126
|
-
].join(" ")),
|
|
1127
|
-
const
|
|
1339
|
+
].join(" ")), y = () => {
|
|
1340
|
+
const m = {
|
|
1128
1341
|
neutral: "dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",
|
|
1129
1342
|
primary: "dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",
|
|
1130
1343
|
secondary: "dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",
|
|
@@ -1132,13 +1345,13 @@ const Z = { key: 1 }, ee = `
|
|
|
1132
1345
|
danger: "dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",
|
|
1133
1346
|
warning: "dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"
|
|
1134
1347
|
};
|
|
1135
|
-
return
|
|
1136
|
-
},
|
|
1137
|
-
const
|
|
1138
|
-
return (
|
|
1139
|
-
const
|
|
1348
|
+
return m[e.underlineColor] || m.primary;
|
|
1349
|
+
}, _ = c(() => {
|
|
1350
|
+
const m = n[e.size], A = y();
|
|
1351
|
+
return (b, w = !0) => {
|
|
1352
|
+
const U = b.active ?? !1, G = w ? "dk:pl-3" : "dk:pl-2", J = "dk:pr-3", K = w ? "dk:pl-2" : "dk:pl-1", Q = "dk:pr-2", X = w ? "dk:pl-4" : "dk:pl-3", Y = "dk:pr-4";
|
|
1140
1353
|
let N = "";
|
|
1141
|
-
return
|
|
1354
|
+
return m.itemPadding.includes("px-2") ? N = `${K} ${Q} dk:py-1.5` : m.itemPadding.includes("px-4") ? N = `${X} ${Y} dk:py-3` : N = `${G} ${J} dk:py-2`, [
|
|
1142
1355
|
// Block style with animated underline
|
|
1143
1356
|
"dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300",
|
|
1144
1357
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
@@ -1147,62 +1360,62 @@ const Z = { key: 1 }, ee = `
|
|
|
1147
1360
|
// Animated underline effect
|
|
1148
1361
|
"dk:before:absolute dk:before:bottom-0 dk:before:left-0 dk:before:h-0.5",
|
|
1149
1362
|
"dk:before:bg-gradient-to-r",
|
|
1150
|
-
|
|
1363
|
+
A,
|
|
1151
1364
|
"dk:before:transition-all dk:before:duration-300",
|
|
1152
|
-
|
|
1365
|
+
U ? "dk:before:w-full dk:text-gray-900 dk:dark:text-gray-100" : "dk:before:w-0 dk:hover:before:w-full",
|
|
1153
1366
|
N
|
|
1154
1367
|
].join(" ");
|
|
1155
1368
|
};
|
|
1156
|
-
}),
|
|
1369
|
+
}), C = c(() => [
|
|
1157
1370
|
"dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm dk:whitespace-nowrap",
|
|
1158
1371
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-white/50 dk:dark:hover:bg-white/10",
|
|
1159
1372
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
1160
1373
|
"dk:transition-all dk:duration-200 dk:no-underline",
|
|
1161
1374
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"
|
|
1162
|
-
].join(" ")),
|
|
1375
|
+
].join(" ")), v = c(() => [
|
|
1163
1376
|
"dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
1164
1377
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg",
|
|
1165
1378
|
"dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15",
|
|
1166
1379
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
|
|
1167
1380
|
"dk:border dk:border-white/20 dk:dark:border-white/10 dk:hover:border-white/40 dk:dark:hover:border-white/20",
|
|
1168
1381
|
"dk:transition-all dk:duration-200 dk:no-underline"
|
|
1169
|
-
].join(" ")),
|
|
1382
|
+
].join(" ")), L = c(() => [
|
|
1170
1383
|
"dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
|
|
1171
1384
|
"dk:text-gray-600 dk:hover:text-gray-800 dk:hover:bg-white/30 dk:dark:hover:bg-white/10",
|
|
1172
1385
|
"dk:dark:text-gray-400 dk:dark:hover:text-gray-200",
|
|
1173
1386
|
"dk:border-l-2 dk:border-transparent dk:hover:border-blue-500",
|
|
1174
1387
|
"dk:transition-all dk:duration-200 dk:no-underline"
|
|
1175
1388
|
].join(" "));
|
|
1176
|
-
return (
|
|
1177
|
-
class:
|
|
1389
|
+
return (m, A) => (r(), o("nav", {
|
|
1390
|
+
class: p(k.value)
|
|
1178
1391
|
}, [
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
])) :
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
class:
|
|
1392
|
+
m.$slots.brand ? (r(), o("div", Le, [
|
|
1393
|
+
j(m.$slots, "brand")
|
|
1394
|
+
])) : x("", !0),
|
|
1395
|
+
i("div", Ie, [
|
|
1396
|
+
i("div", {
|
|
1397
|
+
class: p(s.value)
|
|
1185
1398
|
}, [
|
|
1186
|
-
(r(!0),
|
|
1187
|
-
key:
|
|
1399
|
+
(r(!0), o(V, null, T(t.items, (b) => (r(), o(V, {
|
|
1400
|
+
key: b.label
|
|
1188
1401
|
}, [
|
|
1189
|
-
|
|
1190
|
-
(r(),
|
|
1191
|
-
class:
|
|
1402
|
+
b.children && b.children.length > 0 ? (r(), o("div", Ne, [
|
|
1403
|
+
(r(), D(M(g(b)), $({ ref_for: !0 }, u(b), {
|
|
1404
|
+
class: _.value(b, !0)
|
|
1192
1405
|
}), {
|
|
1193
|
-
default:
|
|
1194
|
-
|
|
1406
|
+
default: P(() => [
|
|
1407
|
+
b.icon ? (r(), o("i", {
|
|
1195
1408
|
key: 0,
|
|
1196
|
-
class:
|
|
1197
|
-
}, null, 2)) :
|
|
1198
|
-
S(" " +
|
|
1199
|
-
|
|
1409
|
+
class: p([b.icon, "dk:mr-2"])
|
|
1410
|
+
}, null, 2)) : x("", !0),
|
|
1411
|
+
S(" " + z(b.label) + " ", 1),
|
|
1412
|
+
A[0] || (A[0] = i("svg", {
|
|
1200
1413
|
class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
|
|
1201
1414
|
fill: "none",
|
|
1202
1415
|
stroke: "currentColor",
|
|
1203
1416
|
viewBox: "0 0 24 24"
|
|
1204
1417
|
}, [
|
|
1205
|
-
|
|
1418
|
+
i("path", {
|
|
1206
1419
|
"stroke-linecap": "round",
|
|
1207
1420
|
"stroke-linejoin": "round",
|
|
1208
1421
|
"stroke-width": "2",
|
|
@@ -1212,142 +1425,143 @@ const Z = { key: 1 }, ee = `
|
|
|
1212
1425
|
]),
|
|
1213
1426
|
_: 2
|
|
1214
1427
|
}, 1040, ["class"])),
|
|
1215
|
-
|
|
1216
|
-
(r(!0),
|
|
1217
|
-
key:
|
|
1218
|
-
}, { ref_for: !0 },
|
|
1219
|
-
default:
|
|
1220
|
-
|
|
1428
|
+
i("div", Re, [
|
|
1429
|
+
(r(!0), o(V, null, T(b.children, (w) => (r(), D(M(g(w)), $({
|
|
1430
|
+
key: w.label
|
|
1431
|
+
}, { ref_for: !0 }, u(w), { class: C.value }), {
|
|
1432
|
+
default: P(() => [
|
|
1433
|
+
w.icon ? (r(), o("i", {
|
|
1221
1434
|
key: 0,
|
|
1222
|
-
class:
|
|
1223
|
-
}, null, 2)) :
|
|
1224
|
-
S(" " + w
|
|
1435
|
+
class: p([w.icon, "dk:mr-2"])
|
|
1436
|
+
}, null, 2)) : x("", !0),
|
|
1437
|
+
S(" " + z(w.label), 1)
|
|
1225
1438
|
]),
|
|
1226
1439
|
_: 2
|
|
1227
1440
|
}, 1040, ["class"]))), 128))
|
|
1228
1441
|
])
|
|
1229
|
-
])) : (r(),
|
|
1442
|
+
])) : (r(), D(M(g(b)), $({
|
|
1230
1443
|
key: 1,
|
|
1231
1444
|
ref_for: !0
|
|
1232
|
-
},
|
|
1233
|
-
class:
|
|
1445
|
+
}, u(b), {
|
|
1446
|
+
class: _.value(b, !1)
|
|
1234
1447
|
}), {
|
|
1235
|
-
default:
|
|
1236
|
-
|
|
1448
|
+
default: P(() => [
|
|
1449
|
+
b.icon ? (r(), o("i", {
|
|
1237
1450
|
key: 0,
|
|
1238
|
-
class:
|
|
1239
|
-
}, null, 2)) :
|
|
1240
|
-
S(" " +
|
|
1451
|
+
class: p([b.icon, "dk:mr-2"])
|
|
1452
|
+
}, null, 2)) : x("", !0),
|
|
1453
|
+
S(" " + z(b.label), 1)
|
|
1241
1454
|
]),
|
|
1242
1455
|
_: 2
|
|
1243
1456
|
}, 1040, ["class"]))
|
|
1244
1457
|
], 64))), 128))
|
|
1245
1458
|
], 2)
|
|
1246
1459
|
]),
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
])) :
|
|
1250
|
-
|
|
1460
|
+
m.$slots.actions ? (r(), o("div", We, [
|
|
1461
|
+
j(m.$slots, "actions")
|
|
1462
|
+
])) : x("", !0),
|
|
1463
|
+
i("button", {
|
|
1251
1464
|
type: "button",
|
|
1252
|
-
onClick:
|
|
1465
|
+
onClick: f,
|
|
1253
1466
|
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"
|
|
1254
1467
|
}, [
|
|
1255
|
-
(r(),
|
|
1256
|
-
|
|
1468
|
+
(r(), o("svg", qe, [
|
|
1469
|
+
i("path", {
|
|
1257
1470
|
"stroke-linecap": "round",
|
|
1258
1471
|
"stroke-linejoin": "round",
|
|
1259
1472
|
"stroke-width": "2",
|
|
1260
|
-
d:
|
|
1261
|
-
}, null, 8,
|
|
1473
|
+
d: d.value ? "M6 18L18 6M6 6l12 12" : "M4 6h16M4 12h16M4 18h16"
|
|
1474
|
+
}, null, 8, Ee)
|
|
1262
1475
|
]))
|
|
1263
1476
|
]),
|
|
1264
|
-
W(
|
|
1265
|
-
|
|
1266
|
-
(r(!0),
|
|
1267
|
-
key:
|
|
1477
|
+
W(i("div", Oe, [
|
|
1478
|
+
i("div", Fe, [
|
|
1479
|
+
(r(!0), o(V, null, T(t.items, (b) => (r(), o(V, {
|
|
1480
|
+
key: b.label
|
|
1268
1481
|
}, [
|
|
1269
|
-
|
|
1270
|
-
|
|
1482
|
+
b.children && b.children.length > 0 ? (r(), o("div", He, [
|
|
1483
|
+
i("button", {
|
|
1271
1484
|
type: "button",
|
|
1272
|
-
onClick: (
|
|
1273
|
-
class:
|
|
1485
|
+
onClick: (w) => a(b.label),
|
|
1486
|
+
class: p([v.value, "dk:justify-between"])
|
|
1274
1487
|
}, [
|
|
1275
|
-
|
|
1276
|
-
|
|
1488
|
+
i("div", Ge, [
|
|
1489
|
+
b.icon ? (r(), o("i", {
|
|
1277
1490
|
key: 0,
|
|
1278
|
-
class:
|
|
1279
|
-
}, null, 2)) :
|
|
1280
|
-
S(" " +
|
|
1491
|
+
class: p([b.icon, "dk:mr-2"])
|
|
1492
|
+
}, null, 2)) : x("", !0),
|
|
1493
|
+
S(" " + z(b.label), 1)
|
|
1281
1494
|
]),
|
|
1282
|
-
(r(),
|
|
1283
|
-
class:
|
|
1495
|
+
(r(), o("svg", {
|
|
1496
|
+
class: p(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", l[b.label] ? "dk:rotate-180" : ""]),
|
|
1284
1497
|
fill: "none",
|
|
1285
1498
|
stroke: "currentColor",
|
|
1286
1499
|
viewBox: "0 0 24 24"
|
|
1287
|
-
}, [...
|
|
1288
|
-
|
|
1500
|
+
}, [...A[1] || (A[1] = [
|
|
1501
|
+
i("path", {
|
|
1289
1502
|
"stroke-linecap": "round",
|
|
1290
1503
|
"stroke-linejoin": "round",
|
|
1291
1504
|
"stroke-width": "2",
|
|
1292
1505
|
d: "M19 9l-7 7-7-7"
|
|
1293
1506
|
}, null, -1)
|
|
1294
1507
|
])], 2))
|
|
1295
|
-
], 10,
|
|
1296
|
-
W(
|
|
1297
|
-
(r(!0),
|
|
1298
|
-
key:
|
|
1299
|
-
}, { ref_for: !0 },
|
|
1300
|
-
class:
|
|
1301
|
-
onClick:
|
|
1508
|
+
], 10, Ue),
|
|
1509
|
+
W(i("div", Je, [
|
|
1510
|
+
(r(!0), o(V, null, T(b.children, (w) => (r(), D(M(g(w)), $({
|
|
1511
|
+
key: w.label
|
|
1512
|
+
}, { ref_for: !0 }, u(w), {
|
|
1513
|
+
class: L.value,
|
|
1514
|
+
onClick: h
|
|
1302
1515
|
}), {
|
|
1303
|
-
default:
|
|
1304
|
-
|
|
1516
|
+
default: P(() => [
|
|
1517
|
+
w.icon ? (r(), o("i", {
|
|
1305
1518
|
key: 0,
|
|
1306
|
-
class:
|
|
1307
|
-
}, null, 2)) :
|
|
1308
|
-
S(" " + w
|
|
1519
|
+
class: p([w.icon, "dk:mr-2"])
|
|
1520
|
+
}, null, 2)) : x("", !0),
|
|
1521
|
+
S(" " + z(w.label), 1)
|
|
1309
1522
|
]),
|
|
1310
1523
|
_: 2
|
|
1311
1524
|
}, 1040, ["class"]))), 128))
|
|
1312
1525
|
], 512), [
|
|
1313
|
-
[q,
|
|
1526
|
+
[q, l[b.label]]
|
|
1314
1527
|
])
|
|
1315
|
-
])) : (r(),
|
|
1528
|
+
])) : (r(), D(M(g(b)), $({
|
|
1316
1529
|
key: 1,
|
|
1317
1530
|
ref_for: !0
|
|
1318
|
-
},
|
|
1319
|
-
class:
|
|
1320
|
-
onClick:
|
|
1531
|
+
}, u(b), {
|
|
1532
|
+
class: v.value,
|
|
1533
|
+
onClick: h
|
|
1321
1534
|
}), {
|
|
1322
|
-
default:
|
|
1323
|
-
|
|
1535
|
+
default: P(() => [
|
|
1536
|
+
b.icon ? (r(), o("i", {
|
|
1324
1537
|
key: 0,
|
|
1325
|
-
class:
|
|
1326
|
-
}, null, 2)) :
|
|
1327
|
-
S(" " +
|
|
1538
|
+
class: p([b.icon, "dk:mr-2"])
|
|
1539
|
+
}, null, 2)) : x("", !0),
|
|
1540
|
+
S(" " + z(b.label), 1)
|
|
1328
1541
|
]),
|
|
1329
1542
|
_: 2
|
|
1330
1543
|
}, 1040, ["class"]))
|
|
1331
1544
|
], 64))), 128)),
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
])) :
|
|
1545
|
+
m.$slots.actions ? (r(), o("div", Ke, [
|
|
1546
|
+
j(m.$slots, "actions")
|
|
1547
|
+
])) : x("", !0)
|
|
1335
1548
|
])
|
|
1336
1549
|
], 512), [
|
|
1337
|
-
[q,
|
|
1550
|
+
[q, d.value]
|
|
1338
1551
|
])
|
|
1339
1552
|
], 2));
|
|
1340
1553
|
}
|
|
1341
1554
|
});
|
|
1342
1555
|
export {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1556
|
+
od as DuiAction,
|
|
1557
|
+
td as DuiAlert,
|
|
1558
|
+
O as DuiButton,
|
|
1559
|
+
ad as DuiCard,
|
|
1560
|
+
dd as DuiCheckbox,
|
|
1561
|
+
Xe as DuiInput,
|
|
1562
|
+
ed as DuiLabel,
|
|
1563
|
+
kd as DuiNavbar,
|
|
1564
|
+
Ze as DuiSelect,
|
|
1565
|
+
rd as DuiTable,
|
|
1566
|
+
Ye as DuiTextarea
|
|
1353
1567
|
};
|