@dronico/droni-kit 1.12.3 → 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/dist/droni-kit.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
function
|
|
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
3
|
try {
|
|
4
|
-
const r =
|
|
4
|
+
const r = O(), e = r == null ? void 0 : r.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 r ? e ? "NuxtLink" :
|
|
10
|
+
function A(r, e = !1) {
|
|
11
|
+
return r ? e ? "NuxtLink" : E() ? "RouterLink" : "a" : "button";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
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;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const F = { key: 1 }, H = `
|
|
18
18
|
dk:transition
|
|
19
19
|
dk:text-center
|
|
20
20
|
dk:disabled:opacity-50
|
|
@@ -25,7 +25,7 @@ const H = { key: 1 }, G = `
|
|
|
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`, Se = /* @__PURE__ */ B({
|
|
29
29
|
__name: "DuiButton",
|
|
30
30
|
props: {
|
|
31
31
|
variant: { default: "solid" },
|
|
@@ -41,21 +41,21 @@ const H = { key: 1 }, G = `
|
|
|
41
41
|
nuxt: { type: Boolean, default: !1 }
|
|
42
42
|
},
|
|
43
43
|
setup(r) {
|
|
44
|
-
const e = r,
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
}),
|
|
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 = {
|
|
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
|
+
}, l = {
|
|
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
|
+
}, c = {
|
|
59
59
|
solid: {
|
|
60
60
|
base: "dk:border-b",
|
|
61
61
|
neutral: `
|
|
@@ -227,23 +227,23 @@ const H = { key: 1 }, G = `
|
|
|
227
227
|
dk:dark:text-amber-100
|
|
228
228
|
dk:dark:hover:bg-amber-800`
|
|
229
229
|
}
|
|
230
|
-
}, y =
|
|
230
|
+
}, y = p(() => {
|
|
231
231
|
var f;
|
|
232
|
-
const
|
|
233
|
-
return [
|
|
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(" ");
|
|
234
234
|
});
|
|
235
|
-
return (
|
|
235
|
+
return (a, h) => (d(), D(V(k.value), C(n.value, {
|
|
236
236
|
class: y.value,
|
|
237
237
|
title: e.title,
|
|
238
238
|
disabled: e.disabled || e.loading
|
|
239
239
|
}), {
|
|
240
240
|
default: T(() => [
|
|
241
|
-
e.loading ? (d(), t("span",
|
|
241
|
+
e.loading ? (d(), t("span", F, "Cargando...")) : j(a.$slots, "default", { key: 0 })
|
|
242
242
|
]),
|
|
243
243
|
_: 3
|
|
244
244
|
}, 16, ["class", "title", "disabled"]));
|
|
245
245
|
}
|
|
246
|
-
}),
|
|
246
|
+
}), G = ["value"], J = `
|
|
247
247
|
dk:border-b
|
|
248
248
|
dk:border-zinc-300
|
|
249
249
|
dk:bg-zinc-50
|
|
@@ -255,7 +255,7 @@ const H = { key: 1 }, G = `
|
|
|
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]`, $e = /* @__PURE__ */ B({
|
|
259
259
|
inheritAttrs: !1,
|
|
260
260
|
__name: "DuiInput",
|
|
261
261
|
props: {
|
|
@@ -278,32 +278,32 @@ const H = { key: 1 }, G = `
|
|
|
278
278
|
},
|
|
279
279
|
emits: ["update:modelValue"],
|
|
280
280
|
setup(r, { emit: e }) {
|
|
281
|
-
const
|
|
282
|
-
function
|
|
283
|
-
const
|
|
284
|
-
|
|
281
|
+
const k = r, n = e;
|
|
282
|
+
function s(a) {
|
|
283
|
+
const h = a.target;
|
|
284
|
+
n("update:modelValue", h.value);
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const l = {
|
|
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
|
+
}, c = {
|
|
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
|
-
}, y =
|
|
298
|
-
const
|
|
299
|
-
return [
|
|
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(" ");
|
|
300
300
|
});
|
|
301
|
-
return (
|
|
301
|
+
return (a, h) => (d(), t("input", C({
|
|
302
302
|
class: y.value,
|
|
303
303
|
value: r.modelValue
|
|
304
|
-
},
|
|
304
|
+
}, a.$attrs, { onInput: s }), null, 16, G));
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), K = ["value"], Q = `
|
|
307
307
|
dk:border-b
|
|
308
308
|
dk:border-zinc-300
|
|
309
309
|
dk:bg-zinc-50
|
|
@@ -315,7 +315,7 @@ const H = { key: 1 }, G = `
|
|
|
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]`, _e = /* @__PURE__ */ B({
|
|
319
319
|
inheritAttrs: !1,
|
|
320
320
|
__name: "DuiTextarea",
|
|
321
321
|
props: {
|
|
@@ -346,16 +346,16 @@ const H = { key: 1 }, G = `
|
|
|
346
346
|
},
|
|
347
347
|
emits: ["update:modelValue"],
|
|
348
348
|
setup(r, { emit: e }) {
|
|
349
|
-
const
|
|
350
|
-
function
|
|
351
|
-
const
|
|
352
|
-
|
|
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);
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const l = {
|
|
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
|
+
}, c = {
|
|
359
359
|
all: "dk:rounded",
|
|
360
360
|
top: "dk:rounded-t",
|
|
361
361
|
bottom: "dk:rounded-b",
|
|
@@ -367,24 +367,24 @@ const H = { key: 1 }, G = `
|
|
|
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 = 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`;
|
|
375
375
|
};
|
|
376
|
-
return (
|
|
377
|
-
class:
|
|
376
|
+
return (o, i) => (d(), t("textarea", C(o.$attrs, {
|
|
377
|
+
class: a.value,
|
|
378
378
|
value: r.modelValue,
|
|
379
|
-
onInput:
|
|
380
|
-
}), null, 16,
|
|
379
|
+
onInput: s
|
|
380
|
+
}), null, 16, K));
|
|
381
381
|
}
|
|
382
|
-
}),
|
|
382
|
+
}), U = {
|
|
383
383
|
key: 0,
|
|
384
384
|
disabled: "",
|
|
385
385
|
selected: "",
|
|
386
386
|
hidden: ""
|
|
387
|
-
},
|
|
387
|
+
}, X = ["value", "selected"], Y = `
|
|
388
388
|
dk:border-b
|
|
389
389
|
dk:border-zinc-300
|
|
390
390
|
dk:bg-zinc-50
|
|
@@ -397,7 +397,7 @@ const H = { key: 1 }, G = `
|
|
|
397
397
|
dk:dark:text-zinc-100
|
|
398
398
|
dk:dark:focus:bg-zinc-700
|
|
399
399
|
dk:dark:[color-scheme:dark]
|
|
400
|
-
`,
|
|
400
|
+
`, je = /* @__PURE__ */ B({
|
|
401
401
|
inheritAttrs: !1,
|
|
402
402
|
__name: "DuiSelect",
|
|
403
403
|
props: {
|
|
@@ -436,42 +436,42 @@ const H = { key: 1 }, G = `
|
|
|
436
436
|
},
|
|
437
437
|
emits: ["update:modelValue"],
|
|
438
438
|
setup(r, { emit: e }) {
|
|
439
|
-
const
|
|
440
|
-
function
|
|
441
|
-
const
|
|
442
|
-
!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);
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const l = {
|
|
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
|
+
}, c = {
|
|
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
|
-
}, y =
|
|
456
|
-
const
|
|
457
|
-
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(" ");
|
|
458
458
|
});
|
|
459
|
-
return (
|
|
459
|
+
return (a, h) => (d(), t("select", C(a.$attrs, {
|
|
460
460
|
class: y.value,
|
|
461
|
-
onChange:
|
|
461
|
+
onChange: s
|
|
462
462
|
}), [
|
|
463
|
-
r.placeholder ? (d(), t("option",
|
|
464
|
-
(d(!0), t(
|
|
465
|
-
key:
|
|
466
|
-
value:
|
|
467
|
-
selected:
|
|
468
|
-
}, 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))
|
|
469
469
|
], 16));
|
|
470
470
|
}
|
|
471
|
-
}),
|
|
471
|
+
}), Z = {
|
|
472
472
|
key: 1,
|
|
473
473
|
class: "dk:text-rose-500 dk:ml-1"
|
|
474
|
-
},
|
|
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({
|
|
475
475
|
__name: "DuiLabel",
|
|
476
476
|
props: {
|
|
477
477
|
title: {
|
|
@@ -500,74 +500,74 @@ const H = { key: 1 }, G = `
|
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
502
|
setup(r) {
|
|
503
|
-
const e =
|
|
503
|
+
const e = W(!1), k = r, n = {
|
|
504
504
|
s: "dk:text-sm",
|
|
505
505
|
m: "dk:text-base",
|
|
506
506
|
l: "dk:text-lg"
|
|
507
|
-
},
|
|
507
|
+
}, s = {
|
|
508
508
|
s: "dk:mt-1",
|
|
509
509
|
m: "dk:mt-1.5",
|
|
510
510
|
l: "dk:mt-2"
|
|
511
|
-
},
|
|
511
|
+
}, l = {
|
|
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
|
+
}, 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)
|
|
521
521
|
}, [
|
|
522
522
|
r.title ? (d(), t("div", {
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "dk:relative",
|
|
525
|
-
onMouseenter:
|
|
526
|
-
onMouseleave:
|
|
525
|
+
onMouseenter: i[0] || (i[0] = (f) => e.value = !!r.helpText),
|
|
526
|
+
onMouseleave: i[1] || (i[1] = (f) => e.value = !1)
|
|
527
527
|
}, [
|
|
528
|
-
|
|
529
|
-
class:
|
|
528
|
+
g("div", {
|
|
529
|
+
class: x(y.value)
|
|
530
530
|
}, [
|
|
531
531
|
r.icon ? (d(), t("i", {
|
|
532
532
|
key: 0,
|
|
533
|
-
class:
|
|
533
|
+
class: x([r.icon, "dk:mr-2"])
|
|
534
534
|
}, null, 2)) : m("", !0),
|
|
535
|
-
|
|
536
|
-
r.required ? (d(), t("span",
|
|
535
|
+
$(" " + z(r.title) + " ", 1),
|
|
536
|
+
r.required ? (d(), t("span", Z, "*")) : m("", !0)
|
|
537
537
|
], 2),
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
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))
|
|
541
541
|
], 512), [
|
|
542
|
-
[
|
|
542
|
+
[R, e.value && r.helpText]
|
|
543
543
|
])
|
|
544
544
|
], 32)) : m("", !0),
|
|
545
|
-
|
|
546
|
-
class:
|
|
545
|
+
g("div", {
|
|
546
|
+
class: x(a.value)
|
|
547
547
|
}, [
|
|
548
|
-
|
|
548
|
+
j(o.$slots, "default", {}, void 0, !0)
|
|
549
549
|
], 2),
|
|
550
550
|
r.error ? (d(), t("div", {
|
|
551
551
|
key: 1,
|
|
552
|
-
class: h
|
|
552
|
+
class: x(h.value)
|
|
553
553
|
}, [
|
|
554
|
-
|
|
555
|
-
|
|
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)
|
|
556
556
|
], 2)) : m("", !0)
|
|
557
557
|
], 2));
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
560
|
-
const
|
|
561
|
-
for (const [
|
|
562
|
-
|
|
563
|
-
return
|
|
564
|
-
},
|
|
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 = `
|
|
565
565
|
dk:px-4
|
|
566
566
|
dk:py-3
|
|
567
567
|
dk:text-sm
|
|
568
568
|
dk:leading-relaxed
|
|
569
569
|
dk:max-w-full
|
|
570
|
-
`,
|
|
570
|
+
`, De = /* @__PURE__ */ B({
|
|
571
571
|
__name: "DuiAlert",
|
|
572
572
|
props: {
|
|
573
573
|
variant: {
|
|
@@ -584,14 +584,14 @@ const H = { key: 1 }, G = `
|
|
|
584
584
|
}
|
|
585
585
|
},
|
|
586
586
|
setup(r) {
|
|
587
|
-
const e = r,
|
|
587
|
+
const e = r, k = {
|
|
588
588
|
all: "dk:rounded",
|
|
589
589
|
top: "dk:rounded-t",
|
|
590
590
|
bottom: "dk:rounded-b",
|
|
591
591
|
left: "dk:rounded-l",
|
|
592
592
|
right: "dk:rounded-r",
|
|
593
593
|
none: "dk:rounded-none"
|
|
594
|
-
},
|
|
594
|
+
}, n = {
|
|
595
595
|
solid: {
|
|
596
596
|
base: "",
|
|
597
597
|
neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
|
|
@@ -619,19 +619,19 @@ const H = { key: 1 }, G = `
|
|
|
619
619
|
warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
|
|
620
620
|
danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
|
|
621
621
|
}
|
|
622
|
-
},
|
|
623
|
-
var
|
|
624
|
-
const
|
|
625
|
-
return [ke,
|
|
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(" ");
|
|
626
626
|
});
|
|
627
|
-
return (
|
|
628
|
-
class:
|
|
627
|
+
return (l, c) => (d(), t("div", {
|
|
628
|
+
class: x(s.value),
|
|
629
629
|
role: "alert"
|
|
630
630
|
}, [
|
|
631
|
-
|
|
631
|
+
j(l.$slots, "default")
|
|
632
632
|
], 2));
|
|
633
633
|
}
|
|
634
|
-
}),
|
|
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({
|
|
635
635
|
__name: "DuiTable",
|
|
636
636
|
props: {
|
|
637
637
|
columns: {
|
|
@@ -645,27 +645,27 @@ const H = { key: 1 }, G = `
|
|
|
645
645
|
},
|
|
646
646
|
setup(r) {
|
|
647
647
|
const e = r;
|
|
648
|
-
return (
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
(d(!0), t(
|
|
653
|
-
key:
|
|
654
|
-
class:
|
|
655
|
-
}, 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))
|
|
656
656
|
])
|
|
657
657
|
]),
|
|
658
|
-
|
|
659
|
-
(d(!0), t(
|
|
660
|
-
key:
|
|
658
|
+
g("tbody", null, [
|
|
659
|
+
(d(!0), t(_, null, M(e.rows, (s, l) => (d(), t("tr", {
|
|
660
|
+
key: l,
|
|
661
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"
|
|
662
662
|
}, [
|
|
663
|
-
(d(!0), t(
|
|
664
|
-
key:
|
|
663
|
+
(d(!0), t(_, null, M(e.columns, (c) => (d(), t("td", {
|
|
664
|
+
key: c.name,
|
|
665
665
|
class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
|
|
666
666
|
}, [
|
|
667
|
-
|
|
668
|
-
|
|
667
|
+
j(k.$slots, c.name, C({ ref_for: !0 }, s), () => [
|
|
668
|
+
$(z(s[c.name]), 1)
|
|
669
669
|
])
|
|
670
670
|
]))), 128))
|
|
671
671
|
]))), 128))
|
|
@@ -673,7 +673,7 @@ const H = { key: 1 }, G = `
|
|
|
673
673
|
])
|
|
674
674
|
]));
|
|
675
675
|
}
|
|
676
|
-
}),
|
|
676
|
+
}), ne = { key: 1 }, le = `
|
|
677
677
|
dk:transition
|
|
678
678
|
dk:text-center
|
|
679
679
|
dk:disabled:opacity-50
|
|
@@ -684,7 +684,7 @@ const H = { key: 1 }, G = `
|
|
|
684
684
|
dk:text-ellipsis
|
|
685
685
|
dk:whitespace-nowrap
|
|
686
686
|
dk:active:scale-95
|
|
687
|
-
dk:max-w-full`,
|
|
687
|
+
dk:max-w-full`, Te = /* @__PURE__ */ B({
|
|
688
688
|
__name: "DuiAction",
|
|
689
689
|
props: {
|
|
690
690
|
variant: { default: "solid" },
|
|
@@ -698,18 +698,18 @@ const H = { key: 1 }, G = `
|
|
|
698
698
|
nuxt: { type: Boolean, default: !1 }
|
|
699
699
|
},
|
|
700
700
|
setup(r) {
|
|
701
|
-
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 = {
|
|
702
702
|
sm: "dk:text-sm dk:px-3 dk:py-1.5",
|
|
703
703
|
md: "dk:text-base dk:px-4 dk:py-2",
|
|
704
704
|
lg: "dk:text-lg dk:px-5 dk:py-3"
|
|
705
|
-
},
|
|
705
|
+
}, l = {
|
|
706
706
|
all: "dk:rounded",
|
|
707
707
|
top: "dk:rounded-t",
|
|
708
708
|
bottom: "dk:rounded-b",
|
|
709
709
|
left: "dk:rounded-l",
|
|
710
710
|
right: "dk:rounded-r",
|
|
711
711
|
none: "dk:rounded-none"
|
|
712
|
-
},
|
|
712
|
+
}, c = {
|
|
713
713
|
solid: {
|
|
714
714
|
base: "dk:border-b",
|
|
715
715
|
neutral: `
|
|
@@ -881,52 +881,39 @@ const H = { key: 1 }, G = `
|
|
|
881
881
|
dk:dark:text-amber-100
|
|
882
882
|
dk:dark:hover:bg-amber-800`
|
|
883
883
|
}
|
|
884
|
-
}, y =
|
|
884
|
+
}, y = p(() => {
|
|
885
885
|
var f;
|
|
886
|
-
const
|
|
887
|
-
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(" ");
|
|
888
888
|
});
|
|
889
|
-
return (
|
|
889
|
+
return (a, h) => (d(), D(V(k.value), C(n.value, {
|
|
890
890
|
class: y.value,
|
|
891
891
|
title: e.title
|
|
892
892
|
}), {
|
|
893
893
|
default: T(() => [
|
|
894
|
-
e.loading ? (d(), t("span",
|
|
894
|
+
e.loading ? (d(), t("span", ne, "Cargando...")) : j(a.$slots, "default", { key: 0 })
|
|
895
895
|
]),
|
|
896
896
|
_: 3
|
|
897
897
|
}, 16, ["class", "title"]));
|
|
898
898
|
}
|
|
899
|
-
}),
|
|
899
|
+
}), ie = {
|
|
900
900
|
key: 0,
|
|
901
901
|
class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
|
|
902
|
-
},
|
|
902
|
+
}, ue = ["src", "alt"], Me = /* @__PURE__ */ B({
|
|
903
903
|
__name: "DuiCard",
|
|
904
904
|
props: {
|
|
905
905
|
size: { default: "m" },
|
|
906
906
|
image: { default: void 0 },
|
|
907
907
|
title: { default: void 0 },
|
|
908
908
|
subtitle: { default: void 0 },
|
|
909
|
-
to: { default: void 0 }
|
|
909
|
+
to: { default: void 0 },
|
|
910
|
+
nuxt: { type: Boolean, default: !1 }
|
|
910
911
|
},
|
|
911
912
|
setup(r) {
|
|
912
|
-
const e = r,
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
return !1;
|
|
917
|
-
}
|
|
918
|
-
}), g = c(() => {
|
|
919
|
-
try {
|
|
920
|
-
return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || a != null && a.component("NuxtLink"));
|
|
921
|
-
} catch {
|
|
922
|
-
return !1;
|
|
923
|
-
}
|
|
924
|
-
}), b = () => e.to ? g.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "div", y = () => e.to ? g.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "h3", n = () => {
|
|
925
|
-
const k = {};
|
|
926
|
-
if (!e.to) return k;
|
|
927
|
-
const L = b();
|
|
928
|
-
return L === "a" ? k.href = typeof e.to == "string" ? e.to : "#" : (L === "RouterLink" || L === "NuxtLink") && (k.to = e.to), k;
|
|
929
|
-
}, 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 = {
|
|
930
917
|
s: {
|
|
931
918
|
padding: "dk:p-3",
|
|
932
919
|
spacing: "dk:space-y-2",
|
|
@@ -948,112 +935,112 @@ const H = { key: 1 }, G = `
|
|
|
948
935
|
subtitleSize: "dk:text-lg",
|
|
949
936
|
contentSize: "dk:text-lg"
|
|
950
937
|
}
|
|
951
|
-
},
|
|
938
|
+
}, c = p(() => [
|
|
952
939
|
// Base card styles
|
|
953
940
|
"dk:bg-white dk:rounded-lg dk:shadow-md dk:border dk:border-gray-200",
|
|
954
941
|
"dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:dark:shadow-gray-900/20",
|
|
955
942
|
"dk:transition-all dk:duration-200",
|
|
956
943
|
"dk:hover:shadow-lg dk:dark:hover:shadow-gray-900/40",
|
|
957
944
|
"dk:overflow-hidden"
|
|
958
|
-
].join(" ")),
|
|
945
|
+
].join(" ")), y = p(() => [
|
|
959
946
|
"dk:w-full dk:h-48 dk:object-cover"
|
|
960
|
-
].join(" ")),
|
|
961
|
-
const
|
|
947
|
+
].join(" ")), a = p(() => {
|
|
948
|
+
const v = l[e.size];
|
|
962
949
|
return [
|
|
963
|
-
|
|
964
|
-
|
|
950
|
+
v.padding,
|
|
951
|
+
v.spacing
|
|
965
952
|
].join(" ");
|
|
966
|
-
}),
|
|
967
|
-
|
|
968
|
-
].join(" ")),
|
|
969
|
-
const
|
|
970
|
-
|
|
953
|
+
}), h = p(() => [
|
|
954
|
+
l[e.size].spacing
|
|
955
|
+
].join(" ")), o = p(() => {
|
|
956
|
+
const b = [
|
|
957
|
+
l[e.size].titleSize,
|
|
971
958
|
"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
|
|
972
959
|
"dk:line-clamp-2"
|
|
973
960
|
];
|
|
974
|
-
return e.to &&
|
|
961
|
+
return e.to && b.push(
|
|
975
962
|
"dk:no-underline dk:hover:underline dk:transition-colors",
|
|
976
963
|
"dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
|
|
977
|
-
),
|
|
978
|
-
}),
|
|
979
|
-
const
|
|
964
|
+
), b.join(" ");
|
|
965
|
+
}), i = p(() => {
|
|
966
|
+
const v = [
|
|
980
967
|
"dk:block",
|
|
981
968
|
"dk:transition-transform dk:duration-200",
|
|
982
969
|
"dk:hover:scale-105"
|
|
983
970
|
];
|
|
984
|
-
return e.to &&
|
|
985
|
-
}),
|
|
986
|
-
|
|
971
|
+
return e.to && v.push("dk:no-underline"), v.join(" ");
|
|
972
|
+
}), f = p(() => [
|
|
973
|
+
l[e.size].subtitleSize,
|
|
987
974
|
"dk:text-gray-600 dk:dark:text-gray-400",
|
|
988
975
|
"dk:line-clamp-3"
|
|
989
|
-
].join(" ")),
|
|
990
|
-
|
|
976
|
+
].join(" ")), P = p(() => [
|
|
977
|
+
l[e.size].contentSize,
|
|
991
978
|
"dk:text-gray-700 dk:dark:text-gray-300"
|
|
992
|
-
].join(" ")),
|
|
979
|
+
].join(" ")), N = p(() => [
|
|
993
980
|
"dk:border-t dk:border-gray-200 dk:dark:border-gray-700",
|
|
994
981
|
"dk:pt-3 dk:mt-3"
|
|
995
982
|
].join(" "));
|
|
996
|
-
return (
|
|
997
|
-
class:
|
|
983
|
+
return (v, b) => (d(), t("div", {
|
|
984
|
+
class: x(c.value)
|
|
998
985
|
}, [
|
|
999
|
-
|
|
1000
|
-
(d(), V(
|
|
986
|
+
v.image ? (d(), t("div", ie, [
|
|
987
|
+
(d(), D(V(k()), C(s(), { class: i.value }), {
|
|
1001
988
|
default: T(() => [
|
|
1002
|
-
|
|
1003
|
-
src:
|
|
1004
|
-
alt:
|
|
1005
|
-
class:
|
|
1006
|
-
}, null, 10,
|
|
989
|
+
g("img", {
|
|
990
|
+
src: v.image,
|
|
991
|
+
alt: v.title || "Card image",
|
|
992
|
+
class: x(y.value)
|
|
993
|
+
}, null, 10, ue)
|
|
1007
994
|
]),
|
|
1008
995
|
_: 1
|
|
1009
996
|
}, 16, ["class"]))
|
|
1010
997
|
])) : m("", !0),
|
|
1011
|
-
|
|
1012
|
-
class:
|
|
998
|
+
g("div", {
|
|
999
|
+
class: x(a.value)
|
|
1013
1000
|
}, [
|
|
1014
|
-
|
|
1001
|
+
v.title || v.subtitle ? (d(), t("div", {
|
|
1015
1002
|
key: 0,
|
|
1016
|
-
class: h
|
|
1003
|
+
class: x(h.value)
|
|
1017
1004
|
}, [
|
|
1018
|
-
|
|
1005
|
+
v.title ? (d(), D(V(n()), C({ key: 0 }, s(), { class: o.value }), {
|
|
1019
1006
|
default: T(() => [
|
|
1020
|
-
|
|
1007
|
+
$(z(v.title), 1)
|
|
1021
1008
|
]),
|
|
1022
1009
|
_: 1
|
|
1023
1010
|
}, 16, ["class"])) : m("", !0),
|
|
1024
|
-
|
|
1011
|
+
v.subtitle ? (d(), t("p", {
|
|
1025
1012
|
key: 1,
|
|
1026
|
-
class:
|
|
1027
|
-
}, z(
|
|
1013
|
+
class: x(f.value)
|
|
1014
|
+
}, z(v.subtitle), 3)) : m("", !0)
|
|
1028
1015
|
], 2)) : m("", !0),
|
|
1029
|
-
|
|
1016
|
+
v.$slots.default ? (d(), t("div", {
|
|
1030
1017
|
key: 1,
|
|
1031
|
-
class:
|
|
1018
|
+
class: x(P.value)
|
|
1032
1019
|
}, [
|
|
1033
|
-
|
|
1020
|
+
j(v.$slots, "default")
|
|
1034
1021
|
], 2)) : m("", !0),
|
|
1035
|
-
|
|
1022
|
+
v.$slots.footer ? (d(), t("div", {
|
|
1036
1023
|
key: 2,
|
|
1037
|
-
class:
|
|
1024
|
+
class: x(N.value)
|
|
1038
1025
|
}, [
|
|
1039
|
-
|
|
1026
|
+
j(v.$slots, "footer")
|
|
1040
1027
|
], 2)) : m("", !0)
|
|
1041
1028
|
], 2)
|
|
1042
1029
|
], 2));
|
|
1043
1030
|
}
|
|
1044
|
-
}),
|
|
1031
|
+
}), ce = {
|
|
1045
1032
|
key: 0,
|
|
1046
1033
|
class: "dk:flex dk:items-center dk:gap-4"
|
|
1047
|
-
},
|
|
1034
|
+
}, be = { class: "dk:hidden dk:md:flex dk:items-center dk:space-x-1" }, ge = {
|
|
1048
1035
|
key: 0,
|
|
1049
1036
|
class: "dk:relative dk:group"
|
|
1050
|
-
},
|
|
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 = {
|
|
1051
1038
|
key: 2,
|
|
1052
1039
|
class: "dk:hidden dk:md:flex dk:items-center dk:gap-2"
|
|
1053
|
-
},
|
|
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 = {
|
|
1054
1041
|
key: 0,
|
|
1055
1042
|
class: "dk:pt-3 dk:border-t dk:border-gray-200 dk:dark:border-gray-700"
|
|
1056
|
-
}, Pe = /* @__PURE__ */
|
|
1043
|
+
}, Pe = /* @__PURE__ */ B({
|
|
1057
1044
|
__name: "DuiNavbar",
|
|
1058
1045
|
props: {
|
|
1059
1046
|
items: { default: () => [] },
|
|
@@ -1061,18 +1048,18 @@ const H = { key: 1 }, G = `
|
|
|
1061
1048
|
nuxt: { type: Boolean, default: !1 }
|
|
1062
1049
|
},
|
|
1063
1050
|
setup(r) {
|
|
1064
|
-
const e = r,
|
|
1065
|
-
const
|
|
1066
|
-
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);
|
|
1067
1054
|
}, y = () => {
|
|
1068
|
-
|
|
1069
|
-
},
|
|
1070
|
-
|
|
1071
|
-
|
|
1055
|
+
n.value = !n.value;
|
|
1056
|
+
}, a = () => {
|
|
1057
|
+
n.value = !1, Object.keys(s).forEach((b) => {
|
|
1058
|
+
s[b] = !1;
|
|
1072
1059
|
});
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1075
|
-
},
|
|
1060
|
+
}, h = (b) => {
|
|
1061
|
+
s[b] = !s[b];
|
|
1062
|
+
}, o = {
|
|
1076
1063
|
s: {
|
|
1077
1064
|
height: "dk:h-12",
|
|
1078
1065
|
padding: "dk:px-3",
|
|
@@ -1091,61 +1078,61 @@ const H = { key: 1 }, G = `
|
|
|
1091
1078
|
text: "dk:text-lg",
|
|
1092
1079
|
itemPadding: "dk:px-4 dk:py-3"
|
|
1093
1080
|
}
|
|
1094
|
-
},
|
|
1095
|
-
const
|
|
1081
|
+
}, i = p(() => {
|
|
1082
|
+
const b = o[e.size];
|
|
1096
1083
|
return [
|
|
1097
1084
|
// Base classes
|
|
1098
1085
|
"dk:relative dk:bg-white dk:border-b dk:border-gray-200 dk:shadow-sm",
|
|
1099
1086
|
"dk:dark:bg-gray-800 dk:dark:border-gray-700",
|
|
1100
1087
|
"dk:flex dk:items-center dk:w-full",
|
|
1101
1088
|
// Conditional justify based on slots
|
|
1102
|
-
!!(
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
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
|
|
1106
1093
|
].join(" ");
|
|
1107
|
-
}), f =
|
|
1094
|
+
}), f = p(() => [
|
|
1108
1095
|
// Base styles
|
|
1109
1096
|
"dk:flex dk:items-center dk:rounded-lg dk:transition-all dk:duration-200",
|
|
1110
1097
|
"dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-gray-100",
|
|
1111
1098
|
"dk:dark:text-gray-300 dk:dark:hover:text-gray-100 dk:dark:hover:bg-gray-700",
|
|
1112
1099
|
"dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:focus:ring-gray-600",
|
|
1113
1100
|
"dk:no-underline",
|
|
1114
|
-
|
|
1115
|
-
].join(" ")),
|
|
1101
|
+
o[e.size].itemPadding
|
|
1102
|
+
].join(" ")), P = p(() => [
|
|
1116
1103
|
"dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm",
|
|
1117
1104
|
"dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900",
|
|
1118
1105
|
"dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
|
|
1119
1106
|
"dk:transition-colors dk:duration-200 dk:no-underline"
|
|
1120
|
-
].join(" ")),
|
|
1107
|
+
].join(" ")), N = p(() => [
|
|
1121
1108
|
"dk:flex dk:items-center dk:justify-between dk:w-full dk:text-left dk:px-3 dk:py-2",
|
|
1122
1109
|
"dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900 dk:rounded-lg",
|
|
1123
1110
|
"dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
|
|
1124
1111
|
"dk:transition-colors dk:duration-200 dk:no-underline"
|
|
1125
|
-
].join(" ")),
|
|
1112
|
+
].join(" ")), v = p(() => [
|
|
1126
1113
|
"dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
|
|
1127
1114
|
"dk:text-gray-600 dk:hover:bg-gray-100 dk:hover:text-gray-800",
|
|
1128
1115
|
"dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-200",
|
|
1129
1116
|
"dk:transition-colors dk:duration-200 dk:no-underline"
|
|
1130
1117
|
].join(" "));
|
|
1131
|
-
return (
|
|
1132
|
-
class:
|
|
1118
|
+
return (b, S) => (d(), t("nav", {
|
|
1119
|
+
class: x(i.value)
|
|
1133
1120
|
}, [
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1121
|
+
b.$slots.brand ? (d(), t("div", ce, [
|
|
1122
|
+
j(b.$slots, "brand"),
|
|
1123
|
+
g("button", {
|
|
1137
1124
|
type: "button",
|
|
1138
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",
|
|
1139
1126
|
onClick: y
|
|
1140
|
-
},
|
|
1141
|
-
|
|
1142
|
-
|
|
1127
|
+
}, S[0] || (S[0] = [
|
|
1128
|
+
g("span", { class: "dk:sr-only" }, "Open main menu", -1),
|
|
1129
|
+
g("svg", {
|
|
1143
1130
|
class: "dk:w-5 dk:h-5",
|
|
1144
1131
|
fill: "none",
|
|
1145
1132
|
stroke: "currentColor",
|
|
1146
1133
|
viewBox: "0 0 24 24"
|
|
1147
1134
|
}, [
|
|
1148
|
-
|
|
1135
|
+
g("path", {
|
|
1149
1136
|
"stroke-linecap": "round",
|
|
1150
1137
|
"stroke-linejoin": "round",
|
|
1151
1138
|
"stroke-width": "2",
|
|
@@ -1154,20 +1141,20 @@ const H = { key: 1 }, G = `
|
|
|
1154
1141
|
], -1)
|
|
1155
1142
|
]))
|
|
1156
1143
|
])) : m("", !0),
|
|
1157
|
-
|
|
1144
|
+
b.$slots.brand ? m("", !0) : (d(), t("button", {
|
|
1158
1145
|
key: 1,
|
|
1159
1146
|
type: "button",
|
|
1160
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",
|
|
1161
1148
|
onClick: y
|
|
1162
|
-
},
|
|
1163
|
-
|
|
1164
|
-
|
|
1149
|
+
}, S[1] || (S[1] = [
|
|
1150
|
+
g("span", { class: "dk:sr-only" }, "Open main menu", -1),
|
|
1151
|
+
g("svg", {
|
|
1165
1152
|
class: "dk:w-5 dk:h-5",
|
|
1166
1153
|
fill: "none",
|
|
1167
1154
|
stroke: "currentColor",
|
|
1168
1155
|
viewBox: "0 0 24 24"
|
|
1169
1156
|
}, [
|
|
1170
|
-
|
|
1157
|
+
g("path", {
|
|
1171
1158
|
"stroke-linecap": "round",
|
|
1172
1159
|
"stroke-linejoin": "round",
|
|
1173
1160
|
"stroke-width": "2",
|
|
@@ -1175,25 +1162,25 @@ const H = { key: 1 }, G = `
|
|
|
1175
1162
|
})
|
|
1176
1163
|
], -1)
|
|
1177
1164
|
]))),
|
|
1178
|
-
|
|
1179
|
-
(d(!0), t(
|
|
1180
|
-
key:
|
|
1165
|
+
g("div", be, [
|
|
1166
|
+
(d(!0), t(_, null, M(b.items, (u) => (d(), t(_, {
|
|
1167
|
+
key: u.label
|
|
1181
1168
|
}, [
|
|
1182
|
-
|
|
1183
|
-
(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 }), {
|
|
1184
1171
|
default: T(() => [
|
|
1185
|
-
|
|
1172
|
+
u.icon ? (d(), t("i", {
|
|
1186
1173
|
key: 0,
|
|
1187
|
-
class:
|
|
1174
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1188
1175
|
}, null, 2)) : m("", !0),
|
|
1189
|
-
|
|
1190
|
-
|
|
1176
|
+
$(" " + z(u.label) + " ", 1),
|
|
1177
|
+
S[2] || (S[2] = g("svg", {
|
|
1191
1178
|
class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
|
|
1192
1179
|
fill: "none",
|
|
1193
1180
|
stroke: "currentColor",
|
|
1194
1181
|
viewBox: "0 0 24 24"
|
|
1195
1182
|
}, [
|
|
1196
|
-
|
|
1183
|
+
g("path", {
|
|
1197
1184
|
"stroke-linecap": "round",
|
|
1198
1185
|
"stroke-linejoin": "round",
|
|
1199
1186
|
"stroke-width": "2",
|
|
@@ -1203,127 +1190,127 @@ const H = { key: 1 }, G = `
|
|
|
1203
1190
|
]),
|
|
1204
1191
|
_: 2
|
|
1205
1192
|
}, 1040, ["class"])),
|
|
1206
|
-
|
|
1207
|
-
(d(!0), t(
|
|
1208
|
-
key:
|
|
1193
|
+
g("div", pe, [
|
|
1194
|
+
(d(!0), t(_, null, M(u.children, (w) => (d(), D(V(l(w)), C({
|
|
1195
|
+
key: w.label,
|
|
1209
1196
|
ref_for: !0
|
|
1210
|
-
},
|
|
1197
|
+
}, c(w), { class: P.value }), {
|
|
1211
1198
|
default: T(() => [
|
|
1212
|
-
|
|
1199
|
+
w.icon ? (d(), t("i", {
|
|
1213
1200
|
key: 0,
|
|
1214
|
-
class:
|
|
1201
|
+
class: x([w.icon, "dk:mr-2"])
|
|
1215
1202
|
}, null, 2)) : m("", !0),
|
|
1216
|
-
|
|
1203
|
+
$(" " + z(w.label), 1)
|
|
1217
1204
|
]),
|
|
1218
1205
|
_: 2
|
|
1219
1206
|
}, 1040, ["class"]))), 128))
|
|
1220
1207
|
])
|
|
1221
|
-
])) : (d(), V(
|
|
1208
|
+
])) : (d(), D(V(l(u)), C({
|
|
1222
1209
|
key: 1,
|
|
1223
1210
|
ref_for: !0
|
|
1224
|
-
},
|
|
1211
|
+
}, c(u), { class: f.value }), {
|
|
1225
1212
|
default: T(() => [
|
|
1226
|
-
|
|
1213
|
+
u.icon ? (d(), t("i", {
|
|
1227
1214
|
key: 0,
|
|
1228
|
-
class:
|
|
1215
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1229
1216
|
}, null, 2)) : m("", !0),
|
|
1230
|
-
|
|
1217
|
+
$(" " + z(u.label), 1)
|
|
1231
1218
|
]),
|
|
1232
1219
|
_: 2
|
|
1233
1220
|
}, 1040, ["class"]))
|
|
1234
1221
|
], 64))), 128))
|
|
1235
1222
|
]),
|
|
1236
|
-
|
|
1237
|
-
|
|
1223
|
+
b.$slots.actions ? (d(), t("div", ve, [
|
|
1224
|
+
j(b.$slots, "actions")
|
|
1238
1225
|
])) : m("", !0),
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
(d(!0), t(
|
|
1242
|
-
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
|
|
1243
1230
|
}, [
|
|
1244
|
-
|
|
1245
|
-
|
|
1231
|
+
u.children && u.children.length > 0 ? (d(), t("div", me, [
|
|
1232
|
+
g("button", {
|
|
1246
1233
|
type: "button",
|
|
1247
|
-
onClick: (
|
|
1248
|
-
class:
|
|
1234
|
+
onClick: (w) => h(u.label),
|
|
1235
|
+
class: x(N.value)
|
|
1249
1236
|
}, [
|
|
1250
|
-
|
|
1251
|
-
|
|
1237
|
+
g("div", fe, [
|
|
1238
|
+
u.icon ? (d(), t("i", {
|
|
1252
1239
|
key: 0,
|
|
1253
|
-
class:
|
|
1240
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1254
1241
|
}, null, 2)) : m("", !0),
|
|
1255
|
-
|
|
1242
|
+
$(" " + z(u.label), 1)
|
|
1256
1243
|
]),
|
|
1257
1244
|
(d(), t("svg", {
|
|
1258
|
-
class:
|
|
1245
|
+
class: x(["dk:w-4 dk:h-4 dk:transform dk:transition-transform", s[u.label] ? "dk:rotate-180" : ""]),
|
|
1259
1246
|
fill: "none",
|
|
1260
1247
|
stroke: "currentColor",
|
|
1261
1248
|
viewBox: "0 0 24 24"
|
|
1262
|
-
},
|
|
1263
|
-
|
|
1249
|
+
}, S[3] || (S[3] = [
|
|
1250
|
+
g("path", {
|
|
1264
1251
|
"stroke-linecap": "round",
|
|
1265
1252
|
"stroke-linejoin": "round",
|
|
1266
1253
|
"stroke-width": "2",
|
|
1267
1254
|
d: "M19 9l-7 7-7-7"
|
|
1268
1255
|
}, null, -1)
|
|
1269
1256
|
]), 2))
|
|
1270
|
-
], 10,
|
|
1271
|
-
|
|
1272
|
-
(d(!0), t(
|
|
1273
|
-
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,
|
|
1274
1261
|
ref_for: !0
|
|
1275
|
-
},
|
|
1276
|
-
class:
|
|
1277
|
-
onClick:
|
|
1262
|
+
}, c(w), {
|
|
1263
|
+
class: v.value,
|
|
1264
|
+
onClick: a
|
|
1278
1265
|
}), {
|
|
1279
1266
|
default: T(() => [
|
|
1280
|
-
|
|
1267
|
+
w.icon ? (d(), t("i", {
|
|
1281
1268
|
key: 0,
|
|
1282
|
-
class:
|
|
1269
|
+
class: x([w.icon, "dk:mr-2"])
|
|
1283
1270
|
}, null, 2)) : m("", !0),
|
|
1284
|
-
|
|
1271
|
+
$(" " + z(w.label), 1)
|
|
1285
1272
|
]),
|
|
1286
1273
|
_: 2
|
|
1287
1274
|
}, 1040, ["class"]))), 128))
|
|
1288
1275
|
], 512), [
|
|
1289
|
-
[
|
|
1276
|
+
[R, s[u.label]]
|
|
1290
1277
|
])
|
|
1291
|
-
])) : (d(), V(
|
|
1278
|
+
])) : (d(), D(V(l(u)), C({
|
|
1292
1279
|
key: 1,
|
|
1293
1280
|
ref_for: !0
|
|
1294
|
-
},
|
|
1295
|
-
class:
|
|
1296
|
-
onClick:
|
|
1281
|
+
}, c(u), {
|
|
1282
|
+
class: N.value,
|
|
1283
|
+
onClick: a
|
|
1297
1284
|
}), {
|
|
1298
1285
|
default: T(() => [
|
|
1299
|
-
|
|
1286
|
+
u.icon ? (d(), t("i", {
|
|
1300
1287
|
key: 0,
|
|
1301
|
-
class:
|
|
1288
|
+
class: x([u.icon, "dk:mr-2"])
|
|
1302
1289
|
}, null, 2)) : m("", !0),
|
|
1303
|
-
|
|
1290
|
+
$(" " + z(u.label), 1)
|
|
1304
1291
|
]),
|
|
1305
1292
|
_: 2
|
|
1306
1293
|
}, 1040, ["class"]))
|
|
1307
1294
|
], 64))), 128)),
|
|
1308
|
-
|
|
1309
|
-
|
|
1295
|
+
b.$slots.actions ? (d(), t("div", we, [
|
|
1296
|
+
j(b.$slots, "actions")
|
|
1310
1297
|
])) : m("", !0)
|
|
1311
1298
|
])
|
|
1312
1299
|
], 512), [
|
|
1313
|
-
[
|
|
1300
|
+
[R, n.value]
|
|
1314
1301
|
])
|
|
1315
1302
|
], 2));
|
|
1316
1303
|
}
|
|
1317
1304
|
});
|
|
1318
1305
|
export {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1306
|
+
Te as DuiAction,
|
|
1307
|
+
De as DuiAlert,
|
|
1308
|
+
Se as DuiButton,
|
|
1309
|
+
Me as DuiCard,
|
|
1310
|
+
$e as DuiInput,
|
|
1311
|
+
Be as DuiLabel,
|
|
1325
1312
|
Pe as DuiNavbar,
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1313
|
+
je as DuiSelect,
|
|
1314
|
+
Ve as DuiTable,
|
|
1315
|
+
_e as DuiTextarea
|
|
1329
1316
|
};
|