@dronico/droni-kit 1.12.2 → 1.12.4
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 +14 -0
- package/dist/droni-kit.cjs.js +9 -9
- package/dist/droni-kit.es.js +308 -333
- package/dist/stories/Elements/DuiAction.stories.d.ts +6 -3
- package/dist/stories/Elements/DuiAction.vue.d.ts +3 -1
- package/dist/stories/Elements/DuiCard.stories.d.ts +3 -0
- package/dist/stories/Elements/DuiCard.vue.d.ts +2 -0
- package/dist/stories/Forms/DuiButton.stories.d.ts +6 -3
- package/dist/stories/Forms/DuiButton.vue.d.ts +3 -1
- package/dist/stories/Widgets/DuiNavbar.stories.d.ts +3 -0
- package/dist/stories/Widgets/DuiNavbar.vue.d.ts +2 -0
- package/dist/utils/router-detection.d.ts +9 -15
- package/package.json +1 -1
package/dist/droni-kit.es.js
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return !1;
|
|
10
|
-
}
|
|
11
|
-
})(), k = (() => {
|
|
12
|
-
try {
|
|
13
|
-
return e ? !!(e.config.globalProperties.$router || e.config.globalProperties.$route || e.component("RouterLink")) : typeof window < "u" ? !!window.VueRouter : !1;
|
|
14
|
-
} catch {
|
|
15
|
-
return !1;
|
|
16
|
-
}
|
|
17
|
-
})();
|
|
18
|
-
return {
|
|
19
|
-
hasNuxtRouter: t,
|
|
20
|
-
hasVueRouter: !t && k
|
|
21
|
-
};
|
|
1
|
+
import { getCurrentInstance as O, defineComponent as B, computed as p, createBlock as D, openBlock as d, resolveDynamicComponent as V, mergeProps as C, withCtx as T, renderSlot as j, createElementBlock as t, createCommentVNode as m, toDisplayString as z, Fragment as _, renderList as M, ref as W, normalizeClass as x, createElementVNode as g, withDirectives as L, createTextVNode as $, vShow as R, reactive as q } from "vue";
|
|
2
|
+
function E() {
|
|
3
|
+
try {
|
|
4
|
+
const r = O(), e = r == null ? void 0 : r.appContext.app;
|
|
5
|
+
return e ? !!(e.config.globalProperties.$router || e.config.globalProperties.$route || e.component("RouterLink")) : typeof window < "u" ? !!window.VueRouter : !1;
|
|
6
|
+
} catch {
|
|
7
|
+
return !1;
|
|
8
|
+
}
|
|
22
9
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
const { hasNuxtRouter: e, hasVueRouter: t } = X();
|
|
26
|
-
return e ? "NuxtLink" : t ? "RouterLink" : "a";
|
|
10
|
+
function A(r, e = !1) {
|
|
11
|
+
return r ? e ? "NuxtLink" : E() ? "RouterLink" : "a" : "button";
|
|
27
12
|
}
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
return e === "a" ? (
|
|
13
|
+
function I(r, e, k = {}) {
|
|
14
|
+
const n = { ...k };
|
|
15
|
+
return e === "a" ? (n.href = typeof r == "string" ? r : "#", n.role = "button") : e !== "button" && e !== "span" && (n.to = r), n;
|
|
31
16
|
}
|
|
32
17
|
const F = { key: 1 }, H = `
|
|
33
18
|
dk:transition
|
|
@@ -40,7 +25,7 @@ const F = { key: 1 }, H = `
|
|
|
40
25
|
dk:text-ellipsis
|
|
41
26
|
dk:whitespace-nowrap
|
|
42
27
|
dk:active:scale-95
|
|
43
|
-
dk:max-w-full`,
|
|
28
|
+
dk:max-w-full`, Se = /* @__PURE__ */ B({
|
|
44
29
|
__name: "DuiButton",
|
|
45
30
|
props: {
|
|
46
31
|
variant: { default: "solid" },
|
|
@@ -52,17 +37,18 @@ const F = { key: 1 }, H = `
|
|
|
52
37
|
block: { type: Boolean, default: !1 },
|
|
53
38
|
title: { default: void 0 },
|
|
54
39
|
rounded: { default: "all" },
|
|
55
|
-
to: { default: void 0 }
|
|
40
|
+
to: { default: void 0 },
|
|
41
|
+
nuxt: { type: Boolean, default: !1 }
|
|
56
42
|
},
|
|
57
43
|
setup(r) {
|
|
58
|
-
const e = r,
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
}),
|
|
44
|
+
const e = r, k = p(() => A(e.to, e.nuxt)), n = p(() => {
|
|
45
|
+
const a = {};
|
|
46
|
+
return k.value === "button" && (a.type = e.type), I(e.to, k.value, a);
|
|
47
|
+
}), s = {
|
|
62
48
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
63
49
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
64
50
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
65
|
-
},
|
|
51
|
+
}, l = {
|
|
66
52
|
all: "dk:rounded",
|
|
67
53
|
top: "dk:rounded-t",
|
|
68
54
|
bottom: "dk:rounded-b",
|
|
@@ -241,18 +227,18 @@ const F = { key: 1 }, H = `
|
|
|
241
227
|
dk:dark:text-amber-100
|
|
242
228
|
dk:dark:hover:bg-amber-800`
|
|
243
229
|
}
|
|
244
|
-
}, y =
|
|
230
|
+
}, y = p(() => {
|
|
245
231
|
var f;
|
|
246
|
-
const
|
|
247
|
-
return [H,
|
|
232
|
+
const a = (((f = c[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + c[e.variant].base, h = s[e.size] || "", o = e.block ? "dk:w-full" : "", i = l[e.rounded] || "";
|
|
233
|
+
return [H, a, h, o, i].join(" ");
|
|
248
234
|
});
|
|
249
|
-
return (
|
|
235
|
+
return (a, h) => (d(), D(V(k.value), C(n.value, {
|
|
250
236
|
class: y.value,
|
|
251
237
|
title: e.title,
|
|
252
238
|
disabled: e.disabled || e.loading
|
|
253
239
|
}), {
|
|
254
240
|
default: T(() => [
|
|
255
|
-
e.loading ? (d(),
|
|
241
|
+
e.loading ? (d(), t("span", F, "Cargando...")) : j(a.$slots, "default", { key: 0 })
|
|
256
242
|
]),
|
|
257
243
|
_: 3
|
|
258
244
|
}, 16, ["class", "title", "disabled"]));
|
|
@@ -269,7 +255,7 @@ const F = { key: 1 }, H = `
|
|
|
269
255
|
dk:dark:bg-zinc-800
|
|
270
256
|
dk:dark:text-zinc-100
|
|
271
257
|
dk:dark:focus:bg-zinc-700
|
|
272
|
-
dk:dark:[color-scheme:dark]`,
|
|
258
|
+
dk:dark:[color-scheme:dark]`, $e = /* @__PURE__ */ B({
|
|
273
259
|
inheritAttrs: !1,
|
|
274
260
|
__name: "DuiInput",
|
|
275
261
|
props: {
|
|
@@ -292,12 +278,12 @@ const F = { key: 1 }, H = `
|
|
|
292
278
|
},
|
|
293
279
|
emits: ["update:modelValue"],
|
|
294
280
|
setup(r, { emit: e }) {
|
|
295
|
-
const
|
|
296
|
-
function
|
|
297
|
-
const
|
|
298
|
-
|
|
281
|
+
const k = r, n = e;
|
|
282
|
+
function s(a) {
|
|
283
|
+
const h = a.target;
|
|
284
|
+
n("update:modelValue", h.value);
|
|
299
285
|
}
|
|
300
|
-
const
|
|
286
|
+
const l = {
|
|
301
287
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
302
288
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
303
289
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -308,14 +294,14 @@ const F = { key: 1 }, H = `
|
|
|
308
294
|
left: "dk:rounded-l",
|
|
309
295
|
right: "dk:rounded-r",
|
|
310
296
|
none: "dk:rounded-none"
|
|
311
|
-
}, y =
|
|
312
|
-
const
|
|
313
|
-
return [J,
|
|
297
|
+
}, y = p(() => {
|
|
298
|
+
const a = l[k.size] || "", h = k.block ? "dk:w-full" : "", o = c[k.rounded] || "";
|
|
299
|
+
return [J, a, h, o].join(" ");
|
|
314
300
|
});
|
|
315
|
-
return (
|
|
301
|
+
return (a, h) => (d(), t("input", C({
|
|
316
302
|
class: y.value,
|
|
317
303
|
value: r.modelValue
|
|
318
|
-
},
|
|
304
|
+
}, a.$attrs, { onInput: s }), null, 16, G));
|
|
319
305
|
}
|
|
320
306
|
}), K = ["value"], Q = `
|
|
321
307
|
dk:border-b
|
|
@@ -329,7 +315,7 @@ const F = { key: 1 }, H = `
|
|
|
329
315
|
dk:dark:bg-zinc-800
|
|
330
316
|
dk:dark:text-zinc-100
|
|
331
317
|
dk:dark:focus:bg-zinc-700
|
|
332
|
-
dk:dark:[color-scheme:dark]`,
|
|
318
|
+
dk:dark:[color-scheme:dark]`, _e = /* @__PURE__ */ B({
|
|
333
319
|
inheritAttrs: !1,
|
|
334
320
|
__name: "DuiTextarea",
|
|
335
321
|
props: {
|
|
@@ -360,12 +346,12 @@ const F = { key: 1 }, H = `
|
|
|
360
346
|
},
|
|
361
347
|
emits: ["update:modelValue"],
|
|
362
348
|
setup(r, { emit: e }) {
|
|
363
|
-
const
|
|
364
|
-
function
|
|
365
|
-
const
|
|
366
|
-
|
|
349
|
+
const k = r, n = e;
|
|
350
|
+
function s(o) {
|
|
351
|
+
const i = o.target;
|
|
352
|
+
k.autoheight && h(i), n("update:modelValue", i.value);
|
|
367
353
|
}
|
|
368
|
-
const
|
|
354
|
+
const l = {
|
|
369
355
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
370
356
|
md: "dk:text-base dk:px-3 dk:py-2",
|
|
371
357
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -381,24 +367,24 @@ const F = { key: 1 }, H = `
|
|
|
381
367
|
both: "dk:resize",
|
|
382
368
|
horizontal: "dk:resize-x",
|
|
383
369
|
vertical: "dk:resize-y"
|
|
384
|
-
},
|
|
385
|
-
const
|
|
386
|
-
return [Q,
|
|
387
|
-
}),
|
|
388
|
-
|
|
370
|
+
}, a = p(() => {
|
|
371
|
+
const o = l[k.size] || "", i = k.block ? "dk:w-full" : "", f = c[k.rounded] || "", P = y[k.resize] || "";
|
|
372
|
+
return [Q, o, i, f, P].join(" ");
|
|
373
|
+
}), h = (o) => {
|
|
374
|
+
o.style.height = "auto", o.style.height = `${o.scrollHeight + 5}px`;
|
|
389
375
|
};
|
|
390
|
-
return (
|
|
391
|
-
class:
|
|
376
|
+
return (o, i) => (d(), t("textarea", C(o.$attrs, {
|
|
377
|
+
class: a.value,
|
|
392
378
|
value: r.modelValue,
|
|
393
|
-
onInput:
|
|
379
|
+
onInput: s
|
|
394
380
|
}), null, 16, K));
|
|
395
381
|
}
|
|
396
|
-
}),
|
|
382
|
+
}), U = {
|
|
397
383
|
key: 0,
|
|
398
384
|
disabled: "",
|
|
399
385
|
selected: "",
|
|
400
386
|
hidden: ""
|
|
401
|
-
},
|
|
387
|
+
}, X = ["value", "selected"], Y = `
|
|
402
388
|
dk:border-b
|
|
403
389
|
dk:border-zinc-300
|
|
404
390
|
dk:bg-zinc-50
|
|
@@ -411,7 +397,7 @@ const F = { key: 1 }, H = `
|
|
|
411
397
|
dk:dark:text-zinc-100
|
|
412
398
|
dk:dark:focus:bg-zinc-700
|
|
413
399
|
dk:dark:[color-scheme:dark]
|
|
414
|
-
`,
|
|
400
|
+
`, je = /* @__PURE__ */ B({
|
|
415
401
|
inheritAttrs: !1,
|
|
416
402
|
__name: "DuiSelect",
|
|
417
403
|
props: {
|
|
@@ -450,12 +436,12 @@ const F = { key: 1 }, H = `
|
|
|
450
436
|
},
|
|
451
437
|
emits: ["update:modelValue"],
|
|
452
438
|
setup(r, { emit: e }) {
|
|
453
|
-
const
|
|
454
|
-
function
|
|
455
|
-
const
|
|
456
|
-
!isNaN(
|
|
439
|
+
const k = r, n = e;
|
|
440
|
+
function s(a) {
|
|
441
|
+
const o = a.target.value, i = Number(o);
|
|
442
|
+
!isNaN(i) && o !== "" ? n("update:modelValue", i) : n("update:modelValue", o);
|
|
457
443
|
}
|
|
458
|
-
const
|
|
444
|
+
const l = {
|
|
459
445
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
460
446
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
461
447
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
@@ -466,26 +452,26 @@ const F = { key: 1 }, H = `
|
|
|
466
452
|
left: "dk:rounded-l",
|
|
467
453
|
right: "dk:rounded-r",
|
|
468
454
|
none: "dk:rounded-none"
|
|
469
|
-
}, y =
|
|
470
|
-
const
|
|
471
|
-
return [
|
|
455
|
+
}, y = p(() => {
|
|
456
|
+
const a = l[k.size] || "", h = k.block ? "dk:w-full" : "", o = c[k.rounded] || "";
|
|
457
|
+
return [Y, a, h, o].join(" ");
|
|
472
458
|
});
|
|
473
|
-
return (
|
|
459
|
+
return (a, h) => (d(), t("select", C(a.$attrs, {
|
|
474
460
|
class: y.value,
|
|
475
|
-
onChange:
|
|
461
|
+
onChange: s
|
|
476
462
|
}), [
|
|
477
|
-
r.placeholder ? (d(),
|
|
478
|
-
(d(!0),
|
|
479
|
-
key:
|
|
480
|
-
value:
|
|
481
|
-
selected:
|
|
482
|
-
}, z(
|
|
463
|
+
r.placeholder ? (d(), t("option", U, z(r.placeholder), 1)) : m("", !0),
|
|
464
|
+
(d(!0), t(_, null, M(r.options, (o, i) => (d(), t("option", {
|
|
465
|
+
key: i,
|
|
466
|
+
value: o[r.itemValue] ?? "",
|
|
467
|
+
selected: o[r.itemValue] == r.modelValue
|
|
468
|
+
}, z(o[r.itemLabel] ?? ""), 9, X))), 128))
|
|
483
469
|
], 16));
|
|
484
470
|
}
|
|
485
|
-
}),
|
|
471
|
+
}), Z = {
|
|
486
472
|
key: 1,
|
|
487
473
|
class: "dk:text-rose-500 dk:ml-1"
|
|
488
|
-
},
|
|
474
|
+
}, ee = { 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" }, de = "dk:space-y-1", re = /* @__PURE__ */ B({
|
|
489
475
|
__name: "DuiLabel",
|
|
490
476
|
props: {
|
|
491
477
|
title: {
|
|
@@ -514,74 +500,74 @@ const F = { key: 1 }, H = `
|
|
|
514
500
|
}
|
|
515
501
|
},
|
|
516
502
|
setup(r) {
|
|
517
|
-
const e =
|
|
503
|
+
const e = W(!1), k = r, n = {
|
|
518
504
|
s: "dk:text-sm",
|
|
519
505
|
m: "dk:text-base",
|
|
520
506
|
l: "dk:text-lg"
|
|
521
|
-
},
|
|
507
|
+
}, s = {
|
|
522
508
|
s: "dk:mt-1",
|
|
523
509
|
m: "dk:mt-1.5",
|
|
524
510
|
l: "dk:mt-2"
|
|
525
|
-
},
|
|
511
|
+
}, l = {
|
|
526
512
|
s: "dk:text-xs",
|
|
527
513
|
m: "dk:text-sm",
|
|
528
514
|
l: "dk:text-base"
|
|
529
|
-
}, c =
|
|
530
|
-
const
|
|
531
|
-
return [
|
|
532
|
-
}),
|
|
533
|
-
return (
|
|
534
|
-
class:
|
|
515
|
+
}, c = p(() => [de].join(" ")), y = p(() => {
|
|
516
|
+
const o = n[k.size] || n.m, i = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", f = k.helpText ? "dk:cursor-help" : "";
|
|
517
|
+
return [i, o, f].join(" ");
|
|
518
|
+
}), a = p(() => [s[k.size] || s.m].join(" ")), h = p(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", l[k.size] || l.m].join(" "));
|
|
519
|
+
return (o, i) => (d(), t("label", {
|
|
520
|
+
class: x(c.value)
|
|
535
521
|
}, [
|
|
536
|
-
r.title ? (d(),
|
|
522
|
+
r.title ? (d(), t("div", {
|
|
537
523
|
key: 0,
|
|
538
524
|
class: "dk:relative",
|
|
539
|
-
onMouseenter:
|
|
540
|
-
onMouseleave:
|
|
525
|
+
onMouseenter: i[0] || (i[0] = (f) => e.value = !!r.helpText),
|
|
526
|
+
onMouseleave: i[1] || (i[1] = (f) => e.value = !1)
|
|
541
527
|
}, [
|
|
542
|
-
|
|
543
|
-
class:
|
|
528
|
+
g("div", {
|
|
529
|
+
class: x(y.value)
|
|
544
530
|
}, [
|
|
545
|
-
r.icon ? (d(),
|
|
531
|
+
r.icon ? (d(), t("i", {
|
|
546
532
|
key: 0,
|
|
547
|
-
class:
|
|
533
|
+
class: x([r.icon, "dk:mr-2"])
|
|
548
534
|
}, null, 2)) : m("", !0),
|
|
549
|
-
|
|
550
|
-
r.required ? (d(),
|
|
535
|
+
$(" " + z(r.title) + " ", 1),
|
|
536
|
+
r.required ? (d(), t("span", Z, "*")) : m("", !0)
|
|
551
537
|
], 2),
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
538
|
+
L(g("div", ee, [
|
|
539
|
+
$(z(r.helpText) + " ", 1),
|
|
540
|
+
i[2] || (i[2] = g("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
|
|
555
541
|
], 512), [
|
|
556
|
-
[
|
|
542
|
+
[R, e.value && r.helpText]
|
|
557
543
|
])
|
|
558
544
|
], 32)) : m("", !0),
|
|
559
|
-
|
|
560
|
-
class:
|
|
545
|
+
g("div", {
|
|
546
|
+
class: x(a.value)
|
|
561
547
|
}, [
|
|
562
|
-
|
|
548
|
+
j(o.$slots, "default", {}, void 0, !0)
|
|
563
549
|
], 2),
|
|
564
|
-
r.error ? (d(),
|
|
550
|
+
r.error ? (d(), t("div", {
|
|
565
551
|
key: 1,
|
|
566
|
-
class: h
|
|
552
|
+
class: x(h.value)
|
|
567
553
|
}, [
|
|
568
|
-
|
|
569
|
-
|
|
554
|
+
i[3] || (i[3] = g("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
|
+
$(" " + z(r.error), 1)
|
|
570
556
|
], 2)) : m("", !0)
|
|
571
557
|
], 2));
|
|
572
558
|
}
|
|
573
|
-
}),
|
|
574
|
-
const
|
|
575
|
-
for (const [
|
|
576
|
-
|
|
577
|
-
return
|
|
578
|
-
},
|
|
559
|
+
}), te = (r, e) => {
|
|
560
|
+
const k = r.__vccOpts || r;
|
|
561
|
+
for (const [n, s] of e)
|
|
562
|
+
k[n] = s;
|
|
563
|
+
return k;
|
|
564
|
+
}, Be = /* @__PURE__ */ te(re, [["__scopeId", "data-v-aa6b6cdc"]]), ke = `
|
|
579
565
|
dk:px-4
|
|
580
566
|
dk:py-3
|
|
581
567
|
dk:text-sm
|
|
582
568
|
dk:leading-relaxed
|
|
583
569
|
dk:max-w-full
|
|
584
|
-
`, De = /* @__PURE__ */
|
|
570
|
+
`, De = /* @__PURE__ */ B({
|
|
585
571
|
__name: "DuiAlert",
|
|
586
572
|
props: {
|
|
587
573
|
variant: {
|
|
@@ -598,14 +584,14 @@ const F = { key: 1 }, H = `
|
|
|
598
584
|
}
|
|
599
585
|
},
|
|
600
586
|
setup(r) {
|
|
601
|
-
const e = r,
|
|
587
|
+
const e = r, k = {
|
|
602
588
|
all: "dk:rounded",
|
|
603
589
|
top: "dk:rounded-t",
|
|
604
590
|
bottom: "dk:rounded-b",
|
|
605
591
|
left: "dk:rounded-l",
|
|
606
592
|
right: "dk:rounded-r",
|
|
607
593
|
none: "dk:rounded-none"
|
|
608
|
-
},
|
|
594
|
+
}, n = {
|
|
609
595
|
solid: {
|
|
610
596
|
base: "",
|
|
611
597
|
neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
|
|
@@ -633,19 +619,19 @@ const F = { key: 1 }, H = `
|
|
|
633
619
|
warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
|
|
634
620
|
danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
|
|
635
621
|
}
|
|
636
|
-
},
|
|
637
|
-
var
|
|
638
|
-
const
|
|
639
|
-
return [
|
|
622
|
+
}, s = p(() => {
|
|
623
|
+
var a;
|
|
624
|
+
const l = ((a = n[e.variant]) == null ? void 0 : a[e.color]) || "", c = n[e.variant].base || "", y = k[e.rounded] || "";
|
|
625
|
+
return [ke, c, l, y].join(" ");
|
|
640
626
|
});
|
|
641
|
-
return (
|
|
642
|
-
class:
|
|
627
|
+
return (l, c) => (d(), t("div", {
|
|
628
|
+
class: x(s.value),
|
|
643
629
|
role: "alert"
|
|
644
630
|
}, [
|
|
645
|
-
|
|
631
|
+
j(l.$slots, "default")
|
|
646
632
|
], 2));
|
|
647
633
|
}
|
|
648
|
-
}),
|
|
634
|
+
}), oe = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, ae = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, se = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, Ve = /* @__PURE__ */ B({
|
|
649
635
|
__name: "DuiTable",
|
|
650
636
|
props: {
|
|
651
637
|
columns: {
|
|
@@ -659,27 +645,27 @@ const F = { key: 1 }, H = `
|
|
|
659
645
|
},
|
|
660
646
|
setup(r) {
|
|
661
647
|
const e = r;
|
|
662
|
-
return (
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
(d(!0),
|
|
667
|
-
key:
|
|
668
|
-
class:
|
|
669
|
-
}, z(
|
|
648
|
+
return (k, n) => (d(), t("div", oe, [
|
|
649
|
+
g("table", ae, [
|
|
650
|
+
g("thead", se, [
|
|
651
|
+
g("tr", null, [
|
|
652
|
+
(d(!0), t(_, null, M(e.columns, (s) => (d(), t("th", {
|
|
653
|
+
key: s.name,
|
|
654
|
+
class: x(["dk:px-6 dk:py-3", s.classes])
|
|
655
|
+
}, z(s.label), 3))), 128))
|
|
670
656
|
])
|
|
671
657
|
]),
|
|
672
|
-
|
|
673
|
-
(d(!0),
|
|
674
|
-
key:
|
|
658
|
+
g("tbody", null, [
|
|
659
|
+
(d(!0), t(_, null, M(e.rows, (s, l) => (d(), t("tr", {
|
|
660
|
+
key: l,
|
|
675
661
|
class: "dk:bg-white dk:border-b dk:border-gray-200 dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:hover:bg-gray-50 dk:dark:hover:bg-gray-600 dk:transition-colors"
|
|
676
662
|
}, [
|
|
677
|
-
(d(!0),
|
|
663
|
+
(d(!0), t(_, null, M(e.columns, (c) => (d(), t("td", {
|
|
678
664
|
key: c.name,
|
|
679
665
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
680
666
|
}, [
|
|
681
|
-
|
|
682
|
-
|
|
667
|
+
j(k.$slots, c.name, C({ ref_for: !0 }, s), () => [
|
|
668
|
+
$(z(s[c.name]), 1)
|
|
683
669
|
])
|
|
684
670
|
]))), 128))
|
|
685
671
|
]))), 128))
|
|
@@ -687,7 +673,7 @@ const F = { key: 1 }, H = `
|
|
|
687
673
|
])
|
|
688
674
|
]));
|
|
689
675
|
}
|
|
690
|
-
}),
|
|
676
|
+
}), ne = { key: 1 }, le = `
|
|
691
677
|
dk:transition
|
|
692
678
|
dk:text-center
|
|
693
679
|
dk:disabled:opacity-50
|
|
@@ -698,7 +684,7 @@ const F = { key: 1 }, H = `
|
|
|
698
684
|
dk:text-ellipsis
|
|
699
685
|
dk:whitespace-nowrap
|
|
700
686
|
dk:active:scale-95
|
|
701
|
-
dk:max-w-full`,
|
|
687
|
+
dk:max-w-full`, Te = /* @__PURE__ */ B({
|
|
702
688
|
__name: "DuiAction",
|
|
703
689
|
props: {
|
|
704
690
|
variant: { default: "solid" },
|
|
@@ -708,14 +694,15 @@ const F = { key: 1 }, H = `
|
|
|
708
694
|
block: { type: Boolean, default: !1 },
|
|
709
695
|
title: { default: void 0 },
|
|
710
696
|
rounded: { default: "all" },
|
|
711
|
-
to: { default: void 0 }
|
|
697
|
+
to: { default: void 0 },
|
|
698
|
+
nuxt: { type: Boolean, default: !1 }
|
|
712
699
|
},
|
|
713
700
|
setup(r) {
|
|
714
|
-
const e = r,
|
|
701
|
+
const e = r, k = p(() => e.to ? A(e.to, e.nuxt) : "span"), n = p(() => I(e.to, k.value)), s = {
|
|
715
702
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
716
703
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
717
704
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
718
|
-
},
|
|
705
|
+
}, l = {
|
|
719
706
|
all: "dk:rounded",
|
|
720
707
|
top: "dk:rounded-t",
|
|
721
708
|
bottom: "dk:rounded-b",
|
|
@@ -894,52 +881,39 @@ const F = { key: 1 }, H = `
|
|
|
894
881
|
dk:dark:text-amber-100
|
|
895
882
|
dk:dark:hover:bg-amber-800`
|
|
896
883
|
}
|
|
897
|
-
}, y =
|
|
884
|
+
}, y = p(() => {
|
|
898
885
|
var f;
|
|
899
|
-
const
|
|
900
|
-
return [
|
|
886
|
+
const a = (((f = c[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + c[e.variant].base, h = s[e.size] || "", o = e.block ? "dk:block" : "dk:inline-block", i = l[e.rounded] || "";
|
|
887
|
+
return [le, a, h, o, i].join(" ");
|
|
901
888
|
});
|
|
902
|
-
return (
|
|
889
|
+
return (a, h) => (d(), D(V(k.value), C(n.value, {
|
|
903
890
|
class: y.value,
|
|
904
891
|
title: e.title
|
|
905
892
|
}), {
|
|
906
893
|
default: T(() => [
|
|
907
|
-
e.loading ? (d(),
|
|
894
|
+
e.loading ? (d(), t("span", ne, "Cargando...")) : j(a.$slots, "default", { key: 0 })
|
|
908
895
|
]),
|
|
909
896
|
_: 3
|
|
910
897
|
}, 16, ["class", "title"]));
|
|
911
898
|
}
|
|
912
|
-
}),
|
|
899
|
+
}), ie = {
|
|
913
900
|
key: 0,
|
|
914
901
|
class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
|
|
915
|
-
},
|
|
902
|
+
}, ue = ["src", "alt"], Me = /* @__PURE__ */ B({
|
|
916
903
|
__name: "DuiCard",
|
|
917
904
|
props: {
|
|
918
905
|
size: { default: "m" },
|
|
919
906
|
image: { default: void 0 },
|
|
920
907
|
title: { default: void 0 },
|
|
921
908
|
subtitle: { default: void 0 },
|
|
922
|
-
to: { default: void 0 }
|
|
909
|
+
to: { default: void 0 },
|
|
910
|
+
nuxt: { type: Boolean, default: !1 }
|
|
923
911
|
},
|
|
924
912
|
setup(r) {
|
|
925
|
-
const e = r,
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
return !1;
|
|
930
|
-
}
|
|
931
|
-
}), u = g(() => {
|
|
932
|
-
try {
|
|
933
|
-
return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || k != null && k.component("NuxtLink"));
|
|
934
|
-
} catch {
|
|
935
|
-
return !1;
|
|
936
|
-
}
|
|
937
|
-
}), c = () => e.to ? u.value ? "NuxtLink" : n.value ? "RouterLink" : "a" : "div", y = () => e.to ? u.value ? "NuxtLink" : n.value ? "RouterLink" : "a" : "h3", l = () => {
|
|
938
|
-
const a = {};
|
|
939
|
-
if (!e.to) return a;
|
|
940
|
-
const R = c();
|
|
941
|
-
return R === "a" ? a.href = typeof e.to == "string" ? e.to : "#" : (R === "RouterLink" || R === "NuxtLink") && (a.to = e.to), a;
|
|
942
|
-
}, v = {
|
|
913
|
+
const e = r, k = () => e.to ? A(e.to, e.nuxt) : "div", n = () => e.to ? A(e.to, e.nuxt) : "h3", s = () => {
|
|
914
|
+
const v = k();
|
|
915
|
+
return I(e.to, v);
|
|
916
|
+
}, l = {
|
|
943
917
|
s: {
|
|
944
918
|
padding: "dk:p-3",
|
|
945
919
|
spacing: "dk:space-y-2",
|
|
@@ -961,130 +935,131 @@ const F = { key: 1 }, H = `
|
|
|
961
935
|
subtitleSize: "dk:text-lg",
|
|
962
936
|
contentSize: "dk:text-lg"
|
|
963
937
|
}
|
|
964
|
-
},
|
|
938
|
+
}, c = p(() => [
|
|
965
939
|
// Base card styles
|
|
966
940
|
"dk:bg-white dk:rounded-lg dk:shadow-md dk:border dk:border-gray-200",
|
|
967
941
|
"dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:dark:shadow-gray-900/20",
|
|
968
942
|
"dk:transition-all dk:duration-200",
|
|
969
943
|
"dk:hover:shadow-lg dk:dark:hover:shadow-gray-900/40",
|
|
970
944
|
"dk:overflow-hidden"
|
|
971
|
-
].join(" ")),
|
|
945
|
+
].join(" ")), y = p(() => [
|
|
972
946
|
"dk:w-full dk:h-48 dk:object-cover"
|
|
973
|
-
].join(" ")),
|
|
974
|
-
const
|
|
947
|
+
].join(" ")), a = p(() => {
|
|
948
|
+
const v = l[e.size];
|
|
975
949
|
return [
|
|
976
|
-
|
|
977
|
-
|
|
950
|
+
v.padding,
|
|
951
|
+
v.spacing
|
|
978
952
|
].join(" ");
|
|
979
|
-
}),
|
|
980
|
-
|
|
981
|
-
].join(" ")),
|
|
982
|
-
const
|
|
983
|
-
|
|
953
|
+
}), h = p(() => [
|
|
954
|
+
l[e.size].spacing
|
|
955
|
+
].join(" ")), o = p(() => {
|
|
956
|
+
const b = [
|
|
957
|
+
l[e.size].titleSize,
|
|
984
958
|
"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
|
|
985
959
|
"dk:line-clamp-2"
|
|
986
960
|
];
|
|
987
|
-
return e.to &&
|
|
961
|
+
return e.to && b.push(
|
|
988
962
|
"dk:no-underline dk:hover:underline dk:transition-colors",
|
|
989
963
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
990
|
-
),
|
|
991
|
-
}),
|
|
992
|
-
const
|
|
964
|
+
), b.join(" ");
|
|
965
|
+
}), i = p(() => {
|
|
966
|
+
const v = [
|
|
993
967
|
"dk:block",
|
|
994
968
|
"dk:transition-transform dk:duration-200",
|
|
995
969
|
"dk:hover:scale-105"
|
|
996
970
|
];
|
|
997
|
-
return e.to &&
|
|
998
|
-
}),
|
|
999
|
-
|
|
971
|
+
return e.to && v.push("dk:no-underline"), v.join(" ");
|
|
972
|
+
}), f = p(() => [
|
|
973
|
+
l[e.size].subtitleSize,
|
|
1000
974
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
1001
975
|
"dk:line-clamp-3"
|
|
1002
|
-
].join(" ")),
|
|
1003
|
-
|
|
976
|
+
].join(" ")), P = p(() => [
|
|
977
|
+
l[e.size].contentSize,
|
|
1004
978
|
"dk:text-gray-700 dk:dark:text-gray-300"
|
|
1005
|
-
].join(" ")),
|
|
979
|
+
].join(" ")), N = p(() => [
|
|
1006
980
|
"dk:border-t dk:border-gray-200 dk:dark:border-gray-700",
|
|
1007
981
|
"dk:pt-3 dk:mt-3"
|
|
1008
982
|
].join(" "));
|
|
1009
|
-
return (
|
|
1010
|
-
class:
|
|
983
|
+
return (v, b) => (d(), t("div", {
|
|
984
|
+
class: x(c.value)
|
|
1011
985
|
}, [
|
|
1012
|
-
|
|
1013
|
-
(d(), V(
|
|
986
|
+
v.image ? (d(), t("div", ie, [
|
|
987
|
+
(d(), D(V(k()), C(s(), { class: i.value }), {
|
|
1014
988
|
default: T(() => [
|
|
1015
|
-
|
|
1016
|
-
src:
|
|
1017
|
-
alt:
|
|
1018
|
-
class:
|
|
1019
|
-
}, null, 10,
|
|
989
|
+
g("img", {
|
|
990
|
+
src: v.image,
|
|
991
|
+
alt: v.title || "Card image",
|
|
992
|
+
class: x(y.value)
|
|
993
|
+
}, null, 10, ue)
|
|
1020
994
|
]),
|
|
1021
995
|
_: 1
|
|
1022
996
|
}, 16, ["class"]))
|
|
1023
997
|
])) : m("", !0),
|
|
1024
|
-
|
|
1025
|
-
class:
|
|
998
|
+
g("div", {
|
|
999
|
+
class: x(a.value)
|
|
1026
1000
|
}, [
|
|
1027
|
-
|
|
1001
|
+
v.title || v.subtitle ? (d(), t("div", {
|
|
1028
1002
|
key: 0,
|
|
1029
|
-
class: h
|
|
1003
|
+
class: x(h.value)
|
|
1030
1004
|
}, [
|
|
1031
|
-
|
|
1005
|
+
v.title ? (d(), D(V(n()), C({ key: 0 }, s(), { class: o.value }), {
|
|
1032
1006
|
default: T(() => [
|
|
1033
|
-
|
|
1007
|
+
$(z(v.title), 1)
|
|
1034
1008
|
]),
|
|
1035
1009
|
_: 1
|
|
1036
1010
|
}, 16, ["class"])) : m("", !0),
|
|
1037
|
-
|
|
1011
|
+
v.subtitle ? (d(), t("p", {
|
|
1038
1012
|
key: 1,
|
|
1039
|
-
class:
|
|
1040
|
-
}, z(
|
|
1013
|
+
class: x(f.value)
|
|
1014
|
+
}, z(v.subtitle), 3)) : m("", !0)
|
|
1041
1015
|
], 2)) : m("", !0),
|
|
1042
|
-
|
|
1016
|
+
v.$slots.default ? (d(), t("div", {
|
|
1043
1017
|
key: 1,
|
|
1044
|
-
class:
|
|
1018
|
+
class: x(P.value)
|
|
1045
1019
|
}, [
|
|
1046
|
-
|
|
1020
|
+
j(v.$slots, "default")
|
|
1047
1021
|
], 2)) : m("", !0),
|
|
1048
|
-
|
|
1022
|
+
v.$slots.footer ? (d(), t("div", {
|
|
1049
1023
|
key: 2,
|
|
1050
|
-
class:
|
|
1024
|
+
class: x(N.value)
|
|
1051
1025
|
}, [
|
|
1052
|
-
|
|
1026
|
+
j(v.$slots, "footer")
|
|
1053
1027
|
], 2)) : m("", !0)
|
|
1054
1028
|
], 2)
|
|
1055
1029
|
], 2));
|
|
1056
1030
|
}
|
|
1057
|
-
}),
|
|
1031
|
+
}), ce = {
|
|
1058
1032
|
key: 0,
|
|
1059
1033
|
class: "dk:flex dk:items-center dk:gap-4"
|
|
1060
|
-
},
|
|
1034
|
+
}, be = { class: "dk:hidden dk:md:flex dk:items-center dk:space-x-1" }, ge = {
|
|
1061
1035
|
key: 0,
|
|
1062
1036
|
class: "dk:relative dk:group"
|
|
1063
|
-
},
|
|
1037
|
+
}, pe = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-48 dk:py-2 dk:mt-1 dk:bg-white dk:rounded-lg dk:shadow-lg dk:border dk:border-gray-200 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50 dk:dark:bg-gray-800 dk:dark:border-gray-700" }, ve = {
|
|
1064
1038
|
key: 2,
|
|
1065
1039
|
class: "dk:hidden dk:md:flex dk:items-center dk:gap-2"
|
|
1066
|
-
},
|
|
1040
|
+
}, xe = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-white dk:border-t dk:border-gray-200 dk:shadow-lg dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:z-40" }, he = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, me = { key: 0 }, ye = ["onClick"], fe = { class: "dk:flex dk:items-center dk:flex-1" }, ze = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, we = {
|
|
1067
1041
|
key: 0,
|
|
1068
1042
|
class: "dk:pt-3 dk:border-t dk:border-gray-200 dk:dark:border-gray-700"
|
|
1069
|
-
},
|
|
1043
|
+
}, Pe = /* @__PURE__ */ B({
|
|
1070
1044
|
__name: "DuiNavbar",
|
|
1071
1045
|
props: {
|
|
1072
1046
|
items: { default: () => [] },
|
|
1073
|
-
size: { default: "m" }
|
|
1047
|
+
size: { default: "m" },
|
|
1048
|
+
nuxt: { type: Boolean, default: !1 }
|
|
1074
1049
|
},
|
|
1075
1050
|
setup(r) {
|
|
1076
|
-
const e = r,
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1051
|
+
const e = r, k = O(), n = W(!1), s = q({}), l = (b) => A(b.to, e.nuxt), c = (b) => {
|
|
1052
|
+
const S = l(b);
|
|
1053
|
+
return I(b.to, S);
|
|
1079
1054
|
}, y = () => {
|
|
1080
|
-
|
|
1081
|
-
},
|
|
1082
|
-
|
|
1083
|
-
|
|
1055
|
+
n.value = !n.value;
|
|
1056
|
+
}, a = () => {
|
|
1057
|
+
n.value = !1, Object.keys(s).forEach((b) => {
|
|
1058
|
+
s[b] = !1;
|
|
1084
1059
|
});
|
|
1085
|
-
},
|
|
1086
|
-
|
|
1087
|
-
},
|
|
1060
|
+
}, h = (b) => {
|
|
1061
|
+
s[b] = !s[b];
|
|
1062
|
+
}, o = {
|
|
1088
1063
|
s: {
|
|
1089
1064
|
height: "dk:h-12",
|
|
1090
1065
|
padding: "dk:px-3",
|
|
@@ -1103,61 +1078,61 @@ const F = { key: 1 }, H = `
|
|
|
1103
1078
|
text: "dk:text-lg",
|
|
1104
1079
|
itemPadding: "dk:px-4 dk:py-3"
|
|
1105
1080
|
}
|
|
1106
|
-
},
|
|
1107
|
-
const
|
|
1081
|
+
}, i = p(() => {
|
|
1082
|
+
const b = o[e.size];
|
|
1108
1083
|
return [
|
|
1109
1084
|
// Base classes
|
|
1110
1085
|
"dk:relative dk:bg-white dk:border-b dk:border-gray-200 dk:shadow-sm",
|
|
1111
1086
|
"dk:dark:bg-gray-800 dk:dark:border-gray-700",
|
|
1112
1087
|
"dk:flex dk:items-center dk:w-full",
|
|
1113
1088
|
// Conditional justify based on slots
|
|
1114
|
-
!!(
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1089
|
+
!!(k != null && k.slots.brand || k != null && k.slots.actions) ? "dk:justify-between" : "dk:justify-center dk:md:justify-start",
|
|
1090
|
+
b.height,
|
|
1091
|
+
b.padding,
|
|
1092
|
+
b.text
|
|
1118
1093
|
].join(" ");
|
|
1119
|
-
}), f =
|
|
1094
|
+
}), f = p(() => [
|
|
1120
1095
|
// Base styles
|
|
1121
1096
|
"dk:flex dk:items-center dk:rounded-lg dk:transition-all dk:duration-200",
|
|
1122
1097
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-gray-100",
|
|
1123
1098
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100 dk:dark:hover:bg-gray-700",
|
|
1124
1099
|
"dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:focus:ring-gray-600",
|
|
1125
1100
|
"dk:no-underline",
|
|
1126
|
-
|
|
1127
|
-
].join(" ")), P =
|
|
1101
|
+
o[e.size].itemPadding
|
|
1102
|
+
].join(" ")), P = p(() => [
|
|
1128
1103
|
"dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm",
|
|
1129
1104
|
"dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900",
|
|
1130
1105
|
"dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
|
|
1131
1106
|
"dk:transition-colors dk:duration-200 dk:no-underline"
|
|
1132
|
-
].join(" ")),
|
|
1107
|
+
].join(" ")), N = p(() => [
|
|
1133
1108
|
"dk:flex dk:items-center dk:justify-between dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
1134
1109
|
"dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900 dk:rounded-lg",
|
|
1135
1110
|
"dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
|
|
1136
1111
|
"dk:transition-colors dk:duration-200 dk:no-underline"
|
|
1137
|
-
].join(" ")),
|
|
1112
|
+
].join(" ")), v = p(() => [
|
|
1138
1113
|
"dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
|
|
1139
1114
|
"dk:text-gray-600 dk:hover:bg-gray-100 dk:hover:text-gray-800",
|
|
1140
1115
|
"dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-200",
|
|
1141
1116
|
"dk:transition-colors dk:duration-200 dk:no-underline"
|
|
1142
1117
|
].join(" "));
|
|
1143
|
-
return (
|
|
1144
|
-
class:
|
|
1118
|
+
return (b, S) => (d(), t("nav", {
|
|
1119
|
+
class: x(i.value)
|
|
1145
1120
|
}, [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1121
|
+
b.$slots.brand ? (d(), t("div", ce, [
|
|
1122
|
+
j(b.$slots, "brand"),
|
|
1123
|
+
g("button", {
|
|
1149
1124
|
type: "button",
|
|
1150
1125
|
class: "dk:md:hidden dk:p-2 dk:rounded-lg dk:text-gray-500 dk:hover:bg-gray-100 dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:focus:ring-gray-600",
|
|
1151
1126
|
onClick: y
|
|
1152
|
-
},
|
|
1153
|
-
|
|
1154
|
-
|
|
1127
|
+
}, S[0] || (S[0] = [
|
|
1128
|
+
g("span", { class: "dk:sr-only" }, "Open main menu", -1),
|
|
1129
|
+
g("svg", {
|
|
1155
1130
|
class: "dk:w-5 dk:h-5",
|
|
1156
1131
|
fill: "none",
|
|
1157
1132
|
stroke: "currentColor",
|
|
1158
1133
|
viewBox: "0 0 24 24"
|
|
1159
1134
|
}, [
|
|
1160
|
-
|
|
1135
|
+
g("path", {
|
|
1161
1136
|
"stroke-linecap": "round",
|
|
1162
1137
|
"stroke-linejoin": "round",
|
|
1163
1138
|
"stroke-width": "2",
|
|
@@ -1166,20 +1141,20 @@ const F = { key: 1 }, H = `
|
|
|
1166
1141
|
], -1)
|
|
1167
1142
|
]))
|
|
1168
1143
|
])) : m("", !0),
|
|
1169
|
-
|
|
1144
|
+
b.$slots.brand ? m("", !0) : (d(), t("button", {
|
|
1170
1145
|
key: 1,
|
|
1171
1146
|
type: "button",
|
|
1172
1147
|
class: "dk:md:hidden dk:p-2 dk:rounded-lg dk:text-gray-500 dk:hover:bg-gray-100 dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:focus:ring-gray-600",
|
|
1173
1148
|
onClick: y
|
|
1174
|
-
},
|
|
1175
|
-
|
|
1176
|
-
|
|
1149
|
+
}, S[1] || (S[1] = [
|
|
1150
|
+
g("span", { class: "dk:sr-only" }, "Open main menu", -1),
|
|
1151
|
+
g("svg", {
|
|
1177
1152
|
class: "dk:w-5 dk:h-5",
|
|
1178
1153
|
fill: "none",
|
|
1179
1154
|
stroke: "currentColor",
|
|
1180
1155
|
viewBox: "0 0 24 24"
|
|
1181
1156
|
}, [
|
|
1182
|
-
|
|
1157
|
+
g("path", {
|
|
1183
1158
|
"stroke-linecap": "round",
|
|
1184
1159
|
"stroke-linejoin": "round",
|
|
1185
1160
|
"stroke-width": "2",
|
|
@@ -1187,25 +1162,25 @@ const F = { key: 1 }, H = `
|
|
|
1187
1162
|
})
|
|
1188
1163
|
], -1)
|
|
1189
1164
|
]))),
|
|
1190
|
-
|
|
1191
|
-
(d(!0),
|
|
1192
|
-
key:
|
|
1165
|
+
g("div", be, [
|
|
1166
|
+
(d(!0), t(_, null, M(b.items, (u) => (d(), t(_, {
|
|
1167
|
+
key: u.label
|
|
1193
1168
|
}, [
|
|
1194
|
-
|
|
1195
|
-
(d(), V(
|
|
1169
|
+
u.children && u.children.length > 0 ? (d(), t("div", ge, [
|
|
1170
|
+
(d(), D(V(l(u)), C({ ref_for: !0 }, c(u), { class: f.value }), {
|
|
1196
1171
|
default: T(() => [
|
|
1197
|
-
|
|
1172
|
+
u.icon ? (d(), t("i", {
|
|
1198
1173
|
key: 0,
|
|
1199
|
-
class:
|
|
1174
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1200
1175
|
}, null, 2)) : m("", !0),
|
|
1201
|
-
|
|
1202
|
-
|
|
1176
|
+
$(" " + z(u.label) + " ", 1),
|
|
1177
|
+
S[2] || (S[2] = g("svg", {
|
|
1203
1178
|
class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
|
|
1204
1179
|
fill: "none",
|
|
1205
1180
|
stroke: "currentColor",
|
|
1206
1181
|
viewBox: "0 0 24 24"
|
|
1207
1182
|
}, [
|
|
1208
|
-
|
|
1183
|
+
g("path", {
|
|
1209
1184
|
"stroke-linecap": "round",
|
|
1210
1185
|
"stroke-linejoin": "round",
|
|
1211
1186
|
"stroke-width": "2",
|
|
@@ -1215,127 +1190,127 @@ const F = { key: 1 }, H = `
|
|
|
1215
1190
|
]),
|
|
1216
1191
|
_: 2
|
|
1217
1192
|
}, 1040, ["class"])),
|
|
1218
|
-
|
|
1219
|
-
(d(!0),
|
|
1220
|
-
key:
|
|
1193
|
+
g("div", pe, [
|
|
1194
|
+
(d(!0), t(_, null, M(u.children, (w) => (d(), D(V(l(w)), C({
|
|
1195
|
+
key: w.label,
|
|
1221
1196
|
ref_for: !0
|
|
1222
|
-
}, c(
|
|
1197
|
+
}, c(w), { class: P.value }), {
|
|
1223
1198
|
default: T(() => [
|
|
1224
|
-
|
|
1199
|
+
w.icon ? (d(), t("i", {
|
|
1225
1200
|
key: 0,
|
|
1226
|
-
class:
|
|
1201
|
+
class: x([w.icon, "dk:mr-2"])
|
|
1227
1202
|
}, null, 2)) : m("", !0),
|
|
1228
|
-
|
|
1203
|
+
$(" " + z(w.label), 1)
|
|
1229
1204
|
]),
|
|
1230
1205
|
_: 2
|
|
1231
1206
|
}, 1040, ["class"]))), 128))
|
|
1232
1207
|
])
|
|
1233
|
-
])) : (d(), V(
|
|
1208
|
+
])) : (d(), D(V(l(u)), C({
|
|
1234
1209
|
key: 1,
|
|
1235
1210
|
ref_for: !0
|
|
1236
|
-
}, c(
|
|
1211
|
+
}, c(u), { class: f.value }), {
|
|
1237
1212
|
default: T(() => [
|
|
1238
|
-
|
|
1213
|
+
u.icon ? (d(), t("i", {
|
|
1239
1214
|
key: 0,
|
|
1240
|
-
class:
|
|
1215
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1241
1216
|
}, null, 2)) : m("", !0),
|
|
1242
|
-
|
|
1217
|
+
$(" " + z(u.label), 1)
|
|
1243
1218
|
]),
|
|
1244
1219
|
_: 2
|
|
1245
1220
|
}, 1040, ["class"]))
|
|
1246
1221
|
], 64))), 128))
|
|
1247
1222
|
]),
|
|
1248
|
-
|
|
1249
|
-
|
|
1223
|
+
b.$slots.actions ? (d(), t("div", ve, [
|
|
1224
|
+
j(b.$slots, "actions")
|
|
1250
1225
|
])) : m("", !0),
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
(d(!0),
|
|
1254
|
-
key:
|
|
1226
|
+
L(g("div", xe, [
|
|
1227
|
+
g("div", he, [
|
|
1228
|
+
(d(!0), t(_, null, M(b.items, (u) => (d(), t(_, {
|
|
1229
|
+
key: u.label
|
|
1255
1230
|
}, [
|
|
1256
|
-
|
|
1257
|
-
|
|
1231
|
+
u.children && u.children.length > 0 ? (d(), t("div", me, [
|
|
1232
|
+
g("button", {
|
|
1258
1233
|
type: "button",
|
|
1259
|
-
onClick: (
|
|
1260
|
-
class:
|
|
1234
|
+
onClick: (w) => h(u.label),
|
|
1235
|
+
class: x(N.value)
|
|
1261
1236
|
}, [
|
|
1262
|
-
|
|
1263
|
-
|
|
1237
|
+
g("div", fe, [
|
|
1238
|
+
u.icon ? (d(), t("i", {
|
|
1264
1239
|
key: 0,
|
|
1265
|
-
class:
|
|
1240
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1266
1241
|
}, null, 2)) : m("", !0),
|
|
1267
|
-
|
|
1242
|
+
$(" " + z(u.label), 1)
|
|
1268
1243
|
]),
|
|
1269
|
-
(d(),
|
|
1270
|
-
class:
|
|
1244
|
+
(d(), t("svg", {
|
|
1245
|
+
class: x(["dk:w-4 dk:h-4 dk:transform dk:transition-transform", s[u.label] ? "dk:rotate-180" : ""]),
|
|
1271
1246
|
fill: "none",
|
|
1272
1247
|
stroke: "currentColor",
|
|
1273
1248
|
viewBox: "0 0 24 24"
|
|
1274
|
-
},
|
|
1275
|
-
|
|
1249
|
+
}, S[3] || (S[3] = [
|
|
1250
|
+
g("path", {
|
|
1276
1251
|
"stroke-linecap": "round",
|
|
1277
1252
|
"stroke-linejoin": "round",
|
|
1278
1253
|
"stroke-width": "2",
|
|
1279
1254
|
d: "M19 9l-7 7-7-7"
|
|
1280
1255
|
}, null, -1)
|
|
1281
1256
|
]), 2))
|
|
1282
|
-
], 10,
|
|
1283
|
-
|
|
1284
|
-
(d(!0),
|
|
1285
|
-
key:
|
|
1257
|
+
], 10, ye),
|
|
1258
|
+
L(g("div", ze, [
|
|
1259
|
+
(d(!0), t(_, null, M(u.children, (w) => (d(), D(V(l(w)), C({
|
|
1260
|
+
key: w.label,
|
|
1286
1261
|
ref_for: !0
|
|
1287
|
-
}, c(
|
|
1288
|
-
class:
|
|
1289
|
-
onClick:
|
|
1262
|
+
}, c(w), {
|
|
1263
|
+
class: v.value,
|
|
1264
|
+
onClick: a
|
|
1290
1265
|
}), {
|
|
1291
1266
|
default: T(() => [
|
|
1292
|
-
|
|
1267
|
+
w.icon ? (d(), t("i", {
|
|
1293
1268
|
key: 0,
|
|
1294
|
-
class:
|
|
1269
|
+
class: x([w.icon, "dk:mr-2"])
|
|
1295
1270
|
}, null, 2)) : m("", !0),
|
|
1296
|
-
|
|
1271
|
+
$(" " + z(w.label), 1)
|
|
1297
1272
|
]),
|
|
1298
1273
|
_: 2
|
|
1299
1274
|
}, 1040, ["class"]))), 128))
|
|
1300
1275
|
], 512), [
|
|
1301
|
-
[
|
|
1276
|
+
[R, s[u.label]]
|
|
1302
1277
|
])
|
|
1303
|
-
])) : (d(), V(
|
|
1278
|
+
])) : (d(), D(V(l(u)), C({
|
|
1304
1279
|
key: 1,
|
|
1305
1280
|
ref_for: !0
|
|
1306
|
-
}, c(
|
|
1307
|
-
class:
|
|
1308
|
-
onClick:
|
|
1281
|
+
}, c(u), {
|
|
1282
|
+
class: N.value,
|
|
1283
|
+
onClick: a
|
|
1309
1284
|
}), {
|
|
1310
1285
|
default: T(() => [
|
|
1311
|
-
|
|
1286
|
+
u.icon ? (d(), t("i", {
|
|
1312
1287
|
key: 0,
|
|
1313
|
-
class:
|
|
1288
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1314
1289
|
}, null, 2)) : m("", !0),
|
|
1315
|
-
|
|
1290
|
+
$(" " + z(u.label), 1)
|
|
1316
1291
|
]),
|
|
1317
1292
|
_: 2
|
|
1318
1293
|
}, 1040, ["class"]))
|
|
1319
1294
|
], 64))), 128)),
|
|
1320
|
-
|
|
1321
|
-
|
|
1295
|
+
b.$slots.actions ? (d(), t("div", we, [
|
|
1296
|
+
j(b.$slots, "actions")
|
|
1322
1297
|
])) : m("", !0)
|
|
1323
1298
|
])
|
|
1324
1299
|
], 512), [
|
|
1325
|
-
[
|
|
1300
|
+
[R, n.value]
|
|
1326
1301
|
])
|
|
1327
1302
|
], 2));
|
|
1328
1303
|
}
|
|
1329
1304
|
});
|
|
1330
1305
|
export {
|
|
1331
|
-
|
|
1306
|
+
Te as DuiAction,
|
|
1332
1307
|
De as DuiAlert,
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1308
|
+
Se as DuiButton,
|
|
1309
|
+
Me as DuiCard,
|
|
1310
|
+
$e as DuiInput,
|
|
1311
|
+
Be as DuiLabel,
|
|
1312
|
+
Pe as DuiNavbar,
|
|
1313
|
+
je as DuiSelect,
|
|
1314
|
+
Ve as DuiTable,
|
|
1315
|
+
_e as DuiTextarea
|
|
1341
1316
|
};
|