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