@stlhorizon/vue-ui 1.2.8 → 1.2.9
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/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as u, createElementBlock as n, openBlock as a, normalizeClass as c, ref as _, createBlock as T, toDisplayString as g, unref as L, createCommentVNode as f, renderSlot as
|
|
1
|
+
import { computed as u, createElementBlock as n, openBlock as a, normalizeClass as c, ref as _, createBlock as T, toDisplayString as g, unref as L, createCommentVNode as f, renderSlot as b, resolveDynamicComponent as Y, createVNode as S, mergeProps as fe, createElementVNode as s, useId as be, watch as oe, createTextVNode as N, withCtx as V, normalizeStyle as ce, nextTick as $e, Transition as ae, Fragment as E, renderList as U, onMounted as ue, onUnmounted as ye, Teleport as Ve, markRaw as Me, TransitionGroup as Ne, withDirectives as xe, vModelText as je, provide as He, inject as Oe, vShow as Te, createSlots as qe, withModifiers as pe, resolveComponent as J } from "vue";
|
|
2
2
|
import { cva as k } from "class-variance-authority";
|
|
3
3
|
import { clsx as Ee } from "clsx";
|
|
4
4
|
function h(...e) {
|
|
@@ -223,7 +223,7 @@ const Ue = {
|
|
|
223
223
|
), p = () => {
|
|
224
224
|
t.value = !0;
|
|
225
225
|
};
|
|
226
|
-
return (C,
|
|
226
|
+
return (C, x) => (a(), n("div", {
|
|
227
227
|
class: c(o.value)
|
|
228
228
|
}, [
|
|
229
229
|
e.src ? (a(), n("img", {
|
|
@@ -322,7 +322,7 @@ const Ue = {
|
|
|
322
322
|
key: 0,
|
|
323
323
|
class: c(m.value)
|
|
324
324
|
}, null, 8, ["class"])) : f("", !0),
|
|
325
|
-
|
|
325
|
+
b(p.$slots, "default"),
|
|
326
326
|
e.dismissible ? (a(), n("button", {
|
|
327
327
|
key: 1,
|
|
328
328
|
onClick: i,
|
|
@@ -414,8 +414,8 @@ const Ue = {
|
|
|
414
414
|
d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
|
|
415
415
|
}, null, -1)
|
|
416
416
|
])])) : f("", !0),
|
|
417
|
-
e.loading ? f("", !0) :
|
|
418
|
-
e.loading && e.loadingText ? (a(), n("span", Je, g(e.loadingText), 1)) :
|
|
417
|
+
e.loading ? f("", !0) : b(t.$slots, "icon", { key: 1 }),
|
|
418
|
+
e.loading && e.loadingText ? (a(), n("span", Je, g(e.loadingText), 1)) : b(t.$slots, "default", { key: 3 })
|
|
419
419
|
], 16, We));
|
|
420
420
|
}
|
|
421
421
|
}), et = { class: "flex items-center gap-3" }, tt = { class: "relative" }, at = ["id", "checked", "indeterminate", "disabled", "required", "aria-describedby"], st = { class: "flex-1" }, lt = ["for"], we = {
|
|
@@ -483,10 +483,10 @@ const Ue = {
|
|
|
483
483
|
</svg>
|
|
484
484
|
`
|
|
485
485
|
}, o = e, i = l, d = _(null), m = u(() => o.id || be()), p = u(() => Array.isArray(o.modelValue) ? o.modelValue.includes(o.value) : o.modelValue), C = ($) => {
|
|
486
|
-
const
|
|
486
|
+
const y = $.target.checked;
|
|
487
487
|
if (Array.isArray(o.modelValue)) {
|
|
488
488
|
const I = [...o.modelValue];
|
|
489
|
-
if (
|
|
489
|
+
if (y)
|
|
490
490
|
I.push(o.value);
|
|
491
491
|
else {
|
|
492
492
|
const F = I.indexOf(o.value);
|
|
@@ -494,13 +494,13 @@ const Ue = {
|
|
|
494
494
|
}
|
|
495
495
|
i("update:modelValue", I);
|
|
496
496
|
} else
|
|
497
|
-
i("update:modelValue",
|
|
498
|
-
i("change",
|
|
499
|
-
},
|
|
497
|
+
i("update:modelValue", y);
|
|
498
|
+
i("change", y);
|
|
499
|
+
}, x = () => {
|
|
500
500
|
!o.disabled && d.value && d.value.click();
|
|
501
|
-
},
|
|
501
|
+
}, M = u(() => {
|
|
502
502
|
if (o.error) return `${m.value}-error`;
|
|
503
|
-
}),
|
|
503
|
+
}), z = u(() => ({
|
|
504
504
|
sm: "w-4 h-4",
|
|
505
505
|
md: "w-5 h-5",
|
|
506
506
|
lg: "w-6 h-6"
|
|
@@ -517,7 +517,7 @@ const Ue = {
|
|
|
517
517
|
]), B = u(() => [
|
|
518
518
|
"flex items-center justify-center rounded border-2 transition-all duration-200",
|
|
519
519
|
"cursor-pointer select-none",
|
|
520
|
-
|
|
520
|
+
z.value,
|
|
521
521
|
{
|
|
522
522
|
"bg-blue-600 border-blue-600 text-white": p.value && !o.disabled && o.variant === "default",
|
|
523
523
|
"bg-red-600 border-red-600 text-white": p.value && !o.disabled && o.variant === "error",
|
|
@@ -541,7 +541,7 @@ const Ue = {
|
|
|
541
541
|
]);
|
|
542
542
|
return oe(() => o.indeterminate, ($) => {
|
|
543
543
|
d.value && (d.value.indeterminate = $);
|
|
544
|
-
}, { immediate: !0 }), ($,
|
|
544
|
+
}, { immediate: !0 }), ($, y) => (a(), n("div", et, [
|
|
545
545
|
s("div", tt, [
|
|
546
546
|
s("input", {
|
|
547
547
|
id: m.value,
|
|
@@ -553,12 +553,12 @@ const Ue = {
|
|
|
553
553
|
disabled: e.disabled,
|
|
554
554
|
required: e.required,
|
|
555
555
|
class: c(P.value),
|
|
556
|
-
"aria-describedby":
|
|
556
|
+
"aria-describedby": M.value,
|
|
557
557
|
onChange: C
|
|
558
558
|
}, null, 42, at),
|
|
559
559
|
s("div", {
|
|
560
560
|
class: c(B.value),
|
|
561
|
-
onClick:
|
|
561
|
+
onClick: x
|
|
562
562
|
}, [
|
|
563
563
|
p.value && !e.indeterminate ? (a(), T(t, {
|
|
564
564
|
key: 0,
|
|
@@ -574,8 +574,8 @@ const Ue = {
|
|
|
574
574
|
for: m.value,
|
|
575
575
|
class: c(w.value)
|
|
576
576
|
}, [
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
b($.$slots, "default", {}, () => [
|
|
578
|
+
N(g(e.label), 1)
|
|
579
579
|
])
|
|
580
580
|
], 10, lt),
|
|
581
581
|
e.description ? (a(), n("p", {
|
|
@@ -585,10 +585,10 @@ const Ue = {
|
|
|
585
585
|
])
|
|
586
586
|
]));
|
|
587
587
|
}
|
|
588
|
-
},
|
|
588
|
+
}, rt = {
|
|
589
589
|
key: 0,
|
|
590
590
|
class: "px-3 text-sm text-gray-500 bg-white dark:bg-gray-900 dark:text-gray-400 relative z-10"
|
|
591
|
-
},
|
|
591
|
+
}, nt = {
|
|
592
592
|
__name: "Divider",
|
|
593
593
|
props: {
|
|
594
594
|
orientation: {
|
|
@@ -678,7 +678,7 @@ const Ue = {
|
|
|
678
678
|
return (o, i) => (a(), n("div", {
|
|
679
679
|
class: c(L(h)(L(t)({ orientation: e.orientation, size: e.size, color: e.color }), { "opacity-50": e.faded }, r.value))
|
|
680
680
|
}, [
|
|
681
|
-
e.label && e.orientation === "horizontal" ? (a(), n("span",
|
|
681
|
+
e.label && e.orientation === "horizontal" ? (a(), n("span", rt, g(e.label), 1)) : f("", !0)
|
|
682
682
|
], 2));
|
|
683
683
|
}
|
|
684
684
|
}, ot = ["aria-label"], it = {
|
|
@@ -825,11 +825,11 @@ const Ue = {
|
|
|
825
825
|
)
|
|
826
826
|
), C = u(
|
|
827
827
|
() => "absolute inset-0 flex items-center justify-center bg-muted"
|
|
828
|
-
),
|
|
828
|
+
), x = u(
|
|
829
829
|
() => "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted"
|
|
830
|
-
),
|
|
830
|
+
), M = (P) => {
|
|
831
831
|
o.value = !1, i.value = !1, r("load", P);
|
|
832
|
-
},
|
|
832
|
+
}, z = (P) => {
|
|
833
833
|
o.value = !1, i.value = !0, r("error", P);
|
|
834
834
|
};
|
|
835
835
|
return (P, B) => (a(), n("div", {
|
|
@@ -840,8 +840,8 @@ const Ue = {
|
|
|
840
840
|
alt: e.alt,
|
|
841
841
|
class: c(p.value),
|
|
842
842
|
loading: e.loading,
|
|
843
|
-
onLoad:
|
|
844
|
-
onError:
|
|
843
|
+
onLoad: M,
|
|
844
|
+
onError: z
|
|
845
845
|
}, null, 42, dt),
|
|
846
846
|
o.value ? (a(), n("div", {
|
|
847
847
|
key: 0,
|
|
@@ -854,7 +854,7 @@ const Ue = {
|
|
|
854
854
|
], 2)) : f("", !0),
|
|
855
855
|
i.value ? (a(), n("div", {
|
|
856
856
|
key: 1,
|
|
857
|
-
class: c(
|
|
857
|
+
class: c(x.value)
|
|
858
858
|
}, [
|
|
859
859
|
S(Q, {
|
|
860
860
|
name: "ImageOff",
|
|
@@ -939,17 +939,17 @@ const Ue = {
|
|
|
939
939
|
},
|
|
940
940
|
emits: ["update:modelValue", "blur", "focus", "clear", "keydown"],
|
|
941
941
|
setup(e, { expose: l, emit: t }) {
|
|
942
|
-
const r = e, o = t, i = _(null), d = u(() => r.id || be()), m = (
|
|
943
|
-
o("update:modelValue",
|
|
944
|
-
}, p = (
|
|
945
|
-
o("blur",
|
|
946
|
-
}, C = (
|
|
947
|
-
o("focus",
|
|
948
|
-
},
|
|
949
|
-
o("keydown",
|
|
950
|
-
},
|
|
942
|
+
const r = e, o = t, i = _(null), d = u(() => r.id || be()), m = (y) => {
|
|
943
|
+
o("update:modelValue", y.target.value);
|
|
944
|
+
}, p = (y) => {
|
|
945
|
+
o("blur", y);
|
|
946
|
+
}, C = (y) => {
|
|
947
|
+
o("focus", y);
|
|
948
|
+
}, x = (y) => {
|
|
949
|
+
o("keydown", y);
|
|
950
|
+
}, M = () => {
|
|
951
951
|
o("update:modelValue", ""), o("clear"), i.value?.focus();
|
|
952
|
-
},
|
|
952
|
+
}, z = u(() => !!r.error || r.variant === "error"), P = u(() => {
|
|
953
953
|
if (r.error) return `${d.value}-error`;
|
|
954
954
|
}), B = u(() => ({
|
|
955
955
|
sm: "px-3 py-1.5 text-sm",
|
|
@@ -979,7 +979,7 @@ const Ue = {
|
|
|
979
979
|
focus: () => i.value?.focus(),
|
|
980
980
|
blur: () => i.value?.blur(),
|
|
981
981
|
select: () => i.value?.select()
|
|
982
|
-
}), (
|
|
982
|
+
}), (y, I) => (a(), n("div", ut, [
|
|
983
983
|
e.iconLeft ? (a(), n("div", mt, [
|
|
984
984
|
(a(), T(Y(e.iconLeft), {
|
|
985
985
|
class: c(v.value)
|
|
@@ -998,16 +998,16 @@ const Ue = {
|
|
|
998
998
|
autocomplete: e.autocomplete,
|
|
999
999
|
class: c($.value),
|
|
1000
1000
|
"aria-describedby": P.value,
|
|
1001
|
-
"aria-invalid":
|
|
1001
|
+
"aria-invalid": z.value,
|
|
1002
1002
|
onInput: m,
|
|
1003
1003
|
onBlur: p,
|
|
1004
1004
|
onFocus: C,
|
|
1005
|
-
onKeydown:
|
|
1005
|
+
onKeydown: x
|
|
1006
1006
|
}, null, 42, ft),
|
|
1007
1007
|
e.iconRight || e.clearable ? (a(), n("div", vt, [
|
|
1008
1008
|
e.clearable && e.modelValue && !e.disabled ? (a(), n("button", {
|
|
1009
1009
|
key: 0,
|
|
1010
|
-
onClick:
|
|
1010
|
+
onClick: M,
|
|
1011
1011
|
class: "text-slate-400 hover:text-slate-600 transition-colors",
|
|
1012
1012
|
type: "button",
|
|
1013
1013
|
"aria-label": e.clearLabel
|
|
@@ -1059,7 +1059,7 @@ const Ue = {
|
|
|
1059
1059
|
class: c(r.value),
|
|
1060
1060
|
for: e.htmlFor
|
|
1061
1061
|
}, [
|
|
1062
|
-
|
|
1062
|
+
b(o.$slots, "default")
|
|
1063
1063
|
], 10, ht));
|
|
1064
1064
|
}
|
|
1065
1065
|
}, pt = {
|
|
@@ -1158,7 +1158,7 @@ const Ue = {
|
|
|
1158
1158
|
name: e.icon,
|
|
1159
1159
|
class: c(o.value)
|
|
1160
1160
|
}, null, 8, ["name", "class"])) : f("", !0),
|
|
1161
|
-
|
|
1161
|
+
b(p.$slots, "default"),
|
|
1162
1162
|
e.icon && e.iconPosition === "right" ? (a(), T(Q, {
|
|
1163
1163
|
key: 1,
|
|
1164
1164
|
name: e.icon,
|
|
@@ -1259,8 +1259,8 @@ const Ue = {
|
|
|
1259
1259
|
disabled: e.disabled,
|
|
1260
1260
|
selected: e.selected
|
|
1261
1261
|
}, [
|
|
1262
|
-
|
|
1263
|
-
|
|
1262
|
+
b(l.$slots, "default", {}, () => [
|
|
1263
|
+
N(g(e.label), 1)
|
|
1264
1264
|
])
|
|
1265
1265
|
], 8, xt));
|
|
1266
1266
|
}
|
|
@@ -1391,7 +1391,7 @@ const Ue = {
|
|
|
1391
1391
|
), C = () => {
|
|
1392
1392
|
t.disabled || r("update:modelValue", t.value);
|
|
1393
1393
|
};
|
|
1394
|
-
return (
|
|
1394
|
+
return (x, M) => (a(), n("div", Ct, [
|
|
1395
1395
|
s("button", {
|
|
1396
1396
|
type: "button",
|
|
1397
1397
|
role: "radio",
|
|
@@ -1450,7 +1450,7 @@ const Ue = {
|
|
|
1450
1450
|
disabled: e.disabled,
|
|
1451
1451
|
class: r.value
|
|
1452
1452
|
}, o.$attrs), [
|
|
1453
|
-
|
|
1453
|
+
b(o.$slots, "default")
|
|
1454
1454
|
], 16, zt));
|
|
1455
1455
|
}
|
|
1456
1456
|
}, Bt = ["aria-checked", "disabled"], Vt = {
|
|
@@ -1545,7 +1545,7 @@ const Ue = {
|
|
|
1545
1545
|
), p = () => {
|
|
1546
1546
|
t.disabled || r("update:modelValue", !t.modelValue);
|
|
1547
1547
|
};
|
|
1548
|
-
return (C,
|
|
1548
|
+
return (C, x) => (a(), n("button", {
|
|
1549
1549
|
type: "button",
|
|
1550
1550
|
role: "switch",
|
|
1551
1551
|
"aria-checked": e.modelValue,
|
|
@@ -1630,7 +1630,7 @@ const Ue = {
|
|
|
1630
1630
|
class: c(r.value)
|
|
1631
1631
|
}, {
|
|
1632
1632
|
default: V(() => [
|
|
1633
|
-
|
|
1633
|
+
b(o.$slots, "default")
|
|
1634
1634
|
]),
|
|
1635
1635
|
_: 3
|
|
1636
1636
|
}, 8, ["class"]));
|
|
@@ -1668,7 +1668,7 @@ const Ue = {
|
|
|
1668
1668
|
setup(e, { expose: l, emit: t }) {
|
|
1669
1669
|
const r = e, o = t, i = _(null), d = u(() => r.id || be()), m = (v) => {
|
|
1670
1670
|
o("update:modelValue", v.target.value), r.autoResize && $e(() => w());
|
|
1671
|
-
}, p = (v) => o("blur", v), C = (v) => o("focus", v),
|
|
1671
|
+
}, p = (v) => o("blur", v), C = (v) => o("focus", v), x = (v) => o("keydown", v), M = u(() => !!r.error || r.variant === "error"), z = u(
|
|
1672
1672
|
() => r.error ? `${d.value}-error` : void 0
|
|
1673
1673
|
), P = k(
|
|
1674
1674
|
"block w-full rounded-lg border transition-colors duration-200 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
|
|
@@ -1722,12 +1722,12 @@ const Ue = {
|
|
|
1722
1722
|
rows: e.rows,
|
|
1723
1723
|
maxlength: e.maxlength,
|
|
1724
1724
|
class: c(B.value),
|
|
1725
|
-
"aria-describedby":
|
|
1726
|
-
"aria-invalid":
|
|
1725
|
+
"aria-describedby": z.value,
|
|
1726
|
+
"aria-invalid": M.value,
|
|
1727
1727
|
onInput: m,
|
|
1728
1728
|
onBlur: p,
|
|
1729
1729
|
onFocus: C,
|
|
1730
|
-
onKeydown:
|
|
1730
|
+
onKeydown: x
|
|
1731
1731
|
}, null, 42, jt));
|
|
1732
1732
|
}
|
|
1733
1733
|
}, It = {
|
|
@@ -1786,12 +1786,12 @@ const Ue = {
|
|
|
1786
1786
|
}, C = () => {
|
|
1787
1787
|
r && clearTimeout(r), t.value = !1;
|
|
1788
1788
|
};
|
|
1789
|
-
return (
|
|
1789
|
+
return (x, M) => (a(), n("div", {
|
|
1790
1790
|
class: "relative inline-block",
|
|
1791
1791
|
onMouseenter: p,
|
|
1792
1792
|
onMouseleave: C
|
|
1793
1793
|
}, [
|
|
1794
|
-
|
|
1794
|
+
b(x.$slots, "default"),
|
|
1795
1795
|
S(ae, {
|
|
1796
1796
|
"enter-active-class": "transition-opacity duration-200",
|
|
1797
1797
|
"enter-from-class": "opacity-0",
|
|
@@ -1806,7 +1806,7 @@ const Ue = {
|
|
|
1806
1806
|
class: c(d.value),
|
|
1807
1807
|
role: "tooltip"
|
|
1808
1808
|
}, [
|
|
1809
|
-
|
|
1809
|
+
N(g(e.content) + " ", 1),
|
|
1810
1810
|
s("div", {
|
|
1811
1811
|
class: c(m.value)
|
|
1812
1812
|
}, null, 2)
|
|
@@ -1925,7 +1925,7 @@ const Ue = {
|
|
|
1925
1925
|
class: c(d.value)
|
|
1926
1926
|
}, {
|
|
1927
1927
|
default: V(() => [
|
|
1928
|
-
|
|
1928
|
+
b(m.$slots, "default")
|
|
1929
1929
|
]),
|
|
1930
1930
|
_: 3
|
|
1931
1931
|
}, 8, ["class"]));
|
|
@@ -1939,7 +1939,7 @@ const Ue = {
|
|
|
1939
1939
|
}, Ft = {
|
|
1940
1940
|
key: 1,
|
|
1941
1941
|
class: "mt-3 flex gap-2"
|
|
1942
|
-
}, _t = ["aria-label"],
|
|
1942
|
+
}, _t = ["aria-label"], Rt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1943
1943
|
__name: "Alert",
|
|
1944
1944
|
props: {
|
|
1945
1945
|
variant: {
|
|
@@ -1989,27 +1989,27 @@ const Ue = {
|
|
|
1989
1989
|
d="M12 9v2m0 4h.01M10.29 3.86L1.82 18a1.5 1.5 0 001.29 2.25h18.78a1.5 1.5 0 001.29-2.25L13.71 3.86a1.5 1.5 0 00-2.42 0z" />
|
|
1990
1990
|
</svg>
|
|
1991
1991
|
`
|
|
1992
|
-
},
|
|
1992
|
+
}, x = {
|
|
1993
1993
|
template: `
|
|
1994
1994
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
1995
1995
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
1996
1996
|
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0a9 9 0 0118 0z" />
|
|
1997
1997
|
</svg>
|
|
1998
1998
|
`
|
|
1999
|
-
},
|
|
1999
|
+
}, M = {
|
|
2000
2000
|
template: `
|
|
2001
2001
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
2002
2002
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
2003
2003
|
d="M6 18L18 6M6 6l12 12" />
|
|
2004
2004
|
</svg>
|
|
2005
2005
|
`
|
|
2006
|
-
},
|
|
2006
|
+
}, z = u(() => ({
|
|
2007
2007
|
info: m,
|
|
2008
2008
|
success: p,
|
|
2009
2009
|
warning: C,
|
|
2010
|
-
error:
|
|
2010
|
+
error: x,
|
|
2011
2011
|
default: m,
|
|
2012
|
-
destructive:
|
|
2012
|
+
destructive: x
|
|
2013
2013
|
})[t.variant]), P = k(
|
|
2014
2014
|
"relative w-full rounded-lg border p-4 flex items-start gap-3",
|
|
2015
2015
|
{
|
|
@@ -2056,7 +2056,7 @@ const Ue = {
|
|
|
2056
2056
|
}, [
|
|
2057
2057
|
s("div", Lt, [
|
|
2058
2058
|
e.showIcon ? (a(), n("div", Dt, [
|
|
2059
|
-
(a(), T(Y(
|
|
2059
|
+
(a(), T(Y(z.value), {
|
|
2060
2060
|
class: c(B.value)
|
|
2061
2061
|
}, null, 8, ["class"]))
|
|
2062
2062
|
])) : f("", !0),
|
|
@@ -2065,20 +2065,20 @@ const Ue = {
|
|
|
2065
2065
|
s("div", {
|
|
2066
2066
|
class: c(["text-sm", { "mt-0": !e.title, "mt-1": e.title }])
|
|
2067
2067
|
}, [
|
|
2068
|
-
|
|
2069
|
-
|
|
2068
|
+
b(v.$slots, "default", {}, () => [
|
|
2069
|
+
N(g(e.message), 1)
|
|
2070
2070
|
])
|
|
2071
2071
|
], 2),
|
|
2072
2072
|
v.$slots.actions || e.actions.length > 0 ? (a(), n("div", Ft, [
|
|
2073
|
-
|
|
2074
|
-
(a(!0), n(E, null, U(e.actions, (
|
|
2075
|
-
key:
|
|
2076
|
-
variant:
|
|
2077
|
-
size:
|
|
2078
|
-
onClick: (I) => d(
|
|
2073
|
+
b(v.$slots, "actions", {}, () => [
|
|
2074
|
+
(a(!0), n(E, null, U(e.actions, (y) => (a(), T(ee, {
|
|
2075
|
+
key: y.label,
|
|
2076
|
+
variant: y.variant || "outline",
|
|
2077
|
+
size: y.size || "sm",
|
|
2078
|
+
onClick: (I) => d(y)
|
|
2079
2079
|
}, {
|
|
2080
2080
|
default: V(() => [
|
|
2081
|
-
|
|
2081
|
+
N(g(y.label), 1)
|
|
2082
2082
|
]),
|
|
2083
2083
|
_: 2
|
|
2084
2084
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
@@ -2091,7 +2091,7 @@ const Ue = {
|
|
|
2091
2091
|
class: c(w.value),
|
|
2092
2092
|
"aria-label": e.dismissLabel
|
|
2093
2093
|
}, [
|
|
2094
|
-
S(
|
|
2094
|
+
S(M, { class: "w-4 h-4" })
|
|
2095
2095
|
], 10, _t)) : f("", !0)
|
|
2096
2096
|
])
|
|
2097
2097
|
], 2)) : f("", !0)
|
|
@@ -2099,7 +2099,7 @@ const Ue = {
|
|
|
2099
2099
|
_: 3
|
|
2100
2100
|
}));
|
|
2101
2101
|
}
|
|
2102
|
-
}),
|
|
2102
|
+
}), Nt = ["aria-label"], Ht = { class: "flex items-center space-x-1" }, Ot = {
|
|
2103
2103
|
__name: "Breadcrumb",
|
|
2104
2104
|
props: {
|
|
2105
2105
|
items: {
|
|
@@ -2150,7 +2150,7 @@ const Ue = {
|
|
|
2150
2150
|
"aria-current": m === e.items.length - 1 ? "page" : void 0
|
|
2151
2151
|
}, {
|
|
2152
2152
|
default: V(() => [
|
|
2153
|
-
|
|
2153
|
+
N(g(d.label), 1)
|
|
2154
2154
|
]),
|
|
2155
2155
|
_: 2
|
|
2156
2156
|
}, 1032, ["href", "class", "aria-current"])),
|
|
@@ -2161,7 +2161,7 @@ const Ue = {
|
|
|
2161
2161
|
}, null, 8, ["name"])) : f("", !0)
|
|
2162
2162
|
]))), 128))
|
|
2163
2163
|
])
|
|
2164
|
-
], 10,
|
|
2164
|
+
], 10, Nt));
|
|
2165
2165
|
}
|
|
2166
2166
|
}, qt = ["aria-label"], Et = {
|
|
2167
2167
|
__name: "ButtonGroup",
|
|
@@ -2199,7 +2199,7 @@ const Ue = {
|
|
|
2199
2199
|
role: "group",
|
|
2200
2200
|
"aria-label": e.ariaLabel
|
|
2201
2201
|
}, [
|
|
2202
|
-
|
|
2202
|
+
b(o.$slots, "default")
|
|
2203
2203
|
], 10, qt));
|
|
2204
2204
|
}
|
|
2205
2205
|
}, Ut = { class: "flex items-start justify-between" }, Zt = { class: "flex-1 min-w-0" }, Gt = {
|
|
@@ -2231,8 +2231,8 @@ const Ue = {
|
|
|
2231
2231
|
},
|
|
2232
2232
|
emits: ["click"],
|
|
2233
2233
|
setup(e, { emit: l }) {
|
|
2234
|
-
const t = e, r = l, o = (
|
|
2235
|
-
t.clickable && r("click",
|
|
2234
|
+
const t = e, r = l, o = (x) => {
|
|
2235
|
+
t.clickable && r("click", x);
|
|
2236
2236
|
}, i = k(
|
|
2237
2237
|
"rounded-lg overflow-hidden transition-all duration-200",
|
|
2238
2238
|
{
|
|
@@ -2312,15 +2312,15 @@ const Ue = {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
|
-
return (
|
|
2315
|
+
return (x, M) => (a(), n("div", {
|
|
2316
2316
|
class: c(L(h)(L(i)({ variant: e.variant, padding: e.padding, hoverable: e.hoverable, clickable: e.clickable, loading: e.loading }))),
|
|
2317
2317
|
onClick: o
|
|
2318
2318
|
}, [
|
|
2319
|
-
|
|
2319
|
+
x.$slots.header || e.title || e.subtitle ? (a(), n("div", {
|
|
2320
2320
|
key: 0,
|
|
2321
2321
|
class: c(L(h)(L(d)({ padding: e.padding })))
|
|
2322
2322
|
}, [
|
|
2323
|
-
|
|
2323
|
+
b(x.$slots, "header", {}, () => [
|
|
2324
2324
|
s("div", Ut, [
|
|
2325
2325
|
s("div", Zt, [
|
|
2326
2326
|
e.title ? (a(), n("h3", {
|
|
@@ -2332,17 +2332,17 @@ const Ue = {
|
|
|
2332
2332
|
class: c(Wt)
|
|
2333
2333
|
}, g(e.subtitle), 1)) : f("", !0)
|
|
2334
2334
|
]),
|
|
2335
|
-
|
|
2336
|
-
|
|
2335
|
+
x.$slots.actions ? (a(), n("div", Gt, [
|
|
2336
|
+
b(x.$slots, "actions")
|
|
2337
2337
|
])) : f("", !0)
|
|
2338
2338
|
])
|
|
2339
2339
|
])
|
|
2340
2340
|
], 2)) : f("", !0),
|
|
2341
|
-
|
|
2341
|
+
x.$slots.image || e.image ? (a(), n("div", {
|
|
2342
2342
|
key: 1,
|
|
2343
2343
|
class: c(L(h)(L(C)({ padding: e.padding })))
|
|
2344
2344
|
}, [
|
|
2345
|
-
|
|
2345
|
+
b(x.$slots, "image", {}, () => [
|
|
2346
2346
|
e.image ? (a(), n("img", {
|
|
2347
2347
|
key: 0,
|
|
2348
2348
|
src: e.image,
|
|
@@ -2351,17 +2351,17 @@ const Ue = {
|
|
|
2351
2351
|
}, null, 8, Kt)) : f("", !0)
|
|
2352
2352
|
])
|
|
2353
2353
|
], 2)) : f("", !0),
|
|
2354
|
-
|
|
2354
|
+
x.$slots.default ? (a(), n("div", {
|
|
2355
2355
|
key: 2,
|
|
2356
2356
|
class: c(L(h)(L(m)({ padding: e.padding })))
|
|
2357
2357
|
}, [
|
|
2358
|
-
|
|
2358
|
+
b(x.$slots, "default")
|
|
2359
2359
|
], 2)) : f("", !0),
|
|
2360
|
-
|
|
2360
|
+
x.$slots.footer ? (a(), n("div", {
|
|
2361
2361
|
key: 3,
|
|
2362
2362
|
class: c(L(h)(L(p)({ padding: e.padding })))
|
|
2363
2363
|
}, [
|
|
2364
|
-
|
|
2364
|
+
b(x.$slots, "footer")
|
|
2365
2365
|
], 2)) : f("", !0)
|
|
2366
2366
|
], 2));
|
|
2367
2367
|
}
|
|
@@ -2373,7 +2373,7 @@ const Ue = {
|
|
|
2373
2373
|
return (l, t) => (a(), n("div", {
|
|
2374
2374
|
class: c(L(h)("flex flex-col space-y-1.5 p-6", l.$attrs.class))
|
|
2375
2375
|
}, [
|
|
2376
|
-
|
|
2376
|
+
b(l.$slots, "default")
|
|
2377
2377
|
], 2));
|
|
2378
2378
|
}
|
|
2379
2379
|
}), ea = {
|
|
@@ -2400,7 +2400,7 @@ const Ue = {
|
|
|
2400
2400
|
return (o, i) => (a(), n("div", {
|
|
2401
2401
|
class: c(r.value)
|
|
2402
2402
|
}, [
|
|
2403
|
-
|
|
2403
|
+
b(o.$slots, "default")
|
|
2404
2404
|
], 2));
|
|
2405
2405
|
}
|
|
2406
2406
|
}, ta = {
|
|
@@ -2427,7 +2427,7 @@ const Ue = {
|
|
|
2427
2427
|
return (o, i) => (a(), n("div", {
|
|
2428
2428
|
class: c(r.value)
|
|
2429
2429
|
}, [
|
|
2430
|
-
|
|
2430
|
+
b(o.$slots, "default")
|
|
2431
2431
|
], 2));
|
|
2432
2432
|
}
|
|
2433
2433
|
}, aa = /* @__PURE__ */ Object.assign({
|
|
@@ -2438,7 +2438,7 @@ const Ue = {
|
|
|
2438
2438
|
return (l, t) => (a(), n("div", {
|
|
2439
2439
|
class: c(L(h)("p-6 pt-0", l.$attrs.class))
|
|
2440
2440
|
}, [
|
|
2441
|
-
|
|
2441
|
+
b(l.$slots, "default")
|
|
2442
2442
|
], 2));
|
|
2443
2443
|
}
|
|
2444
2444
|
}), sa = /* @__PURE__ */ Object.assign({
|
|
@@ -2449,10 +2449,10 @@ const Ue = {
|
|
|
2449
2449
|
return (l, t) => (a(), n("h3", {
|
|
2450
2450
|
class: c(L(h)("text-2xl font-semibold leading-none tracking-tight", l.$attrs.class))
|
|
2451
2451
|
}, [
|
|
2452
|
-
|
|
2452
|
+
b(l.$slots, "default")
|
|
2453
2453
|
], 2));
|
|
2454
2454
|
}
|
|
2455
|
-
}), la = { class: "relative" },
|
|
2455
|
+
}), la = { class: "relative" }, ra = ["id", "value", "disabled", "required", "min", "max"], na = {
|
|
2456
2456
|
__name: "DatePicker",
|
|
2457
2457
|
props: {
|
|
2458
2458
|
modelValue: String,
|
|
@@ -2504,7 +2504,7 @@ const Ue = {
|
|
|
2504
2504
|
min: e.min,
|
|
2505
2505
|
max: e.max,
|
|
2506
2506
|
onInput: i[0] || (i[0] = (d) => o.$emit("update:modelValue", d.target.value))
|
|
2507
|
-
}, null, 42,
|
|
2507
|
+
}, null, 42, ra),
|
|
2508
2508
|
S(Q, {
|
|
2509
2509
|
name: "calendar",
|
|
2510
2510
|
class: "absolute right-3 top-1/2 transform -translate-y-1/2 w-4 h-4 pointer-events-none text-gray-400"
|
|
@@ -2559,14 +2559,14 @@ const Ue = {
|
|
|
2559
2559
|
() => h(i({ placement: l.placement }))
|
|
2560
2560
|
), p = () => {
|
|
2561
2561
|
t.value = !t.value;
|
|
2562
|
-
}, C = (
|
|
2563
|
-
r.value && !r.value.contains(
|
|
2562
|
+
}, C = (x) => {
|
|
2563
|
+
r.value && !r.value.contains(x.target) && (t.value = !1);
|
|
2564
2564
|
};
|
|
2565
2565
|
return ue(() => {
|
|
2566
2566
|
document.addEventListener("click", C);
|
|
2567
2567
|
}), ye(() => {
|
|
2568
2568
|
document.removeEventListener("click", C);
|
|
2569
|
-
}), (
|
|
2569
|
+
}), (x, M) => (a(), n("div", {
|
|
2570
2570
|
class: "relative",
|
|
2571
2571
|
ref_key: "dropdownRef",
|
|
2572
2572
|
ref: r
|
|
@@ -2577,7 +2577,7 @@ const Ue = {
|
|
|
2577
2577
|
"aria-expanded": t.value,
|
|
2578
2578
|
"aria-haspopup": !0
|
|
2579
2579
|
}, [
|
|
2580
|
-
|
|
2580
|
+
b(x.$slots, "trigger", {}, () => [
|
|
2581
2581
|
s("span", null, g(e.triggerText), 1),
|
|
2582
2582
|
S(Q, {
|
|
2583
2583
|
name: "chevron-down",
|
|
@@ -2600,7 +2600,7 @@ const Ue = {
|
|
|
2600
2600
|
role: "menu",
|
|
2601
2601
|
"aria-orientation": "vertical"
|
|
2602
2602
|
}, [
|
|
2603
|
-
|
|
2603
|
+
b(x.$slots, "default")
|
|
2604
2604
|
], 2)) : f("", !0)
|
|
2605
2605
|
]),
|
|
2606
2606
|
_: 3
|
|
@@ -2653,7 +2653,7 @@ const Ue = {
|
|
|
2653
2653
|
name: e.icon,
|
|
2654
2654
|
class: "mr-2 h-4 w-4"
|
|
2655
2655
|
}, null, 8, ["name"])) : f("", !0),
|
|
2656
|
-
|
|
2656
|
+
b(m.$slots, "default"),
|
|
2657
2657
|
e.shortcut ? (a(), n("span", da, g(e.shortcut), 1)) : f("", !0)
|
|
2658
2658
|
]),
|
|
2659
2659
|
_: 3
|
|
@@ -2695,38 +2695,38 @@ const Ue = {
|
|
|
2695
2695
|
m({ variant: t.variant }),
|
|
2696
2696
|
i.value && "border-primary bg-primary/5"
|
|
2697
2697
|
)
|
|
2698
|
-
), C = (
|
|
2699
|
-
|
|
2700
|
-
const I = Array.from(
|
|
2698
|
+
), C = (y) => {
|
|
2699
|
+
y.preventDefault(), i.value = !1;
|
|
2700
|
+
const I = Array.from(y.dataTransfer.files);
|
|
2701
2701
|
w(I);
|
|
2702
|
-
},
|
|
2703
|
-
|
|
2704
|
-
},
|
|
2705
|
-
|
|
2706
|
-
},
|
|
2707
|
-
|
|
2702
|
+
}, x = (y) => {
|
|
2703
|
+
y.preventDefault();
|
|
2704
|
+
}, M = (y) => {
|
|
2705
|
+
y.preventDefault(), i.value = !0;
|
|
2706
|
+
}, z = (y) => {
|
|
2707
|
+
y.preventDefault(), i.value = !1;
|
|
2708
2708
|
}, P = () => {
|
|
2709
2709
|
d.value?.click();
|
|
2710
|
-
}, B = (
|
|
2711
|
-
const I = Array.from(
|
|
2710
|
+
}, B = (y) => {
|
|
2711
|
+
const I = Array.from(y.target.files);
|
|
2712
2712
|
w(I);
|
|
2713
|
-
}, w = (
|
|
2714
|
-
const I =
|
|
2713
|
+
}, w = (y) => {
|
|
2714
|
+
const I = y.filter((F) => !(t.maxSize && F.size > t.maxSize));
|
|
2715
2715
|
t.multiple ? o.value.push(...I) : o.value = I.slice(0, 1), r("files-selected", o.value);
|
|
2716
|
-
}, v = (
|
|
2717
|
-
o.value.splice(
|
|
2718
|
-
}, $ = (
|
|
2719
|
-
if (
|
|
2720
|
-
const I = 1024, F = ["Bytes", "KB", "MB", "GB"], Z = Math.floor(Math.log(
|
|
2721
|
-
return parseFloat((
|
|
2716
|
+
}, v = (y) => {
|
|
2717
|
+
o.value.splice(y, 1), r("file-removed", o.value);
|
|
2718
|
+
}, $ = (y) => {
|
|
2719
|
+
if (y === 0) return "0 Bytes";
|
|
2720
|
+
const I = 1024, F = ["Bytes", "KB", "MB", "GB"], Z = Math.floor(Math.log(y) / Math.log(I));
|
|
2721
|
+
return parseFloat((y / Math.pow(I, Z)).toFixed(2)) + " " + F[Z];
|
|
2722
2722
|
};
|
|
2723
|
-
return (
|
|
2723
|
+
return (y, I) => (a(), n("div", ua, [
|
|
2724
2724
|
s("div", {
|
|
2725
2725
|
class: c(p.value),
|
|
2726
2726
|
onDrop: C,
|
|
2727
|
-
onDragover:
|
|
2728
|
-
onDragenter:
|
|
2729
|
-
onDragleave:
|
|
2727
|
+
onDragover: x,
|
|
2728
|
+
onDragenter: M,
|
|
2729
|
+
onDragleave: z,
|
|
2730
2730
|
onClick: P
|
|
2731
2731
|
}, [
|
|
2732
2732
|
s("input", {
|
|
@@ -2745,7 +2745,7 @@ const Ue = {
|
|
|
2745
2745
|
}),
|
|
2746
2746
|
I[0] || (I[0] = s("p", { class: "text-sm text-muted-foreground text-center" }, [
|
|
2747
2747
|
s("span", { class: "font-semibold" }, "Click to upload"),
|
|
2748
|
-
|
|
2748
|
+
N(" or drag and drop ")
|
|
2749
2749
|
], -1)),
|
|
2750
2750
|
e.accept ? (a(), n("p", va, g(e.accept), 1)) : f("", !0)
|
|
2751
2751
|
])
|
|
@@ -2810,8 +2810,8 @@ const Ue = {
|
|
|
2810
2810
|
</svg>
|
|
2811
2811
|
`
|
|
2812
2812
|
}, r = e, o = be(), i = u(() => !!r.error), d = u(() => {
|
|
2813
|
-
const
|
|
2814
|
-
return r.error ?
|
|
2813
|
+
const z = [];
|
|
2814
|
+
return r.error ? z.push(`${o}-error`) : r.helpText && z.push(`${o}-help`), z.length > 0 ? z.join(" ") : void 0;
|
|
2815
2815
|
}), m = k("", {
|
|
2816
2816
|
variants: {
|
|
2817
2817
|
size: {
|
|
@@ -2839,7 +2839,7 @@ const Ue = {
|
|
|
2839
2839
|
}
|
|
2840
2840
|
},
|
|
2841
2841
|
defaultVariants: { size: "md" }
|
|
2842
|
-
}),
|
|
2842
|
+
}), x = k("flex items-start gap-2", {
|
|
2843
2843
|
variants: {
|
|
2844
2844
|
size: {
|
|
2845
2845
|
sm: "text-xs",
|
|
@@ -2853,7 +2853,7 @@ const Ue = {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
},
|
|
2855
2855
|
defaultVariants: { size: "md", intent: "error" }
|
|
2856
|
-
}),
|
|
2856
|
+
}), M = k("text-slate-500", {
|
|
2857
2857
|
variants: {
|
|
2858
2858
|
size: {
|
|
2859
2859
|
sm: "text-xs",
|
|
@@ -2863,15 +2863,15 @@ const Ue = {
|
|
|
2863
2863
|
},
|
|
2864
2864
|
defaultVariants: { size: "md" }
|
|
2865
2865
|
});
|
|
2866
|
-
return (
|
|
2867
|
-
class: c(L(h)(L(m)({ size: e.size }),
|
|
2866
|
+
return (z, P) => (a(), n("div", {
|
|
2867
|
+
class: c(L(h)(L(m)({ size: e.size }), z.$attrs.class))
|
|
2868
2868
|
}, [
|
|
2869
2869
|
e.label ? (a(), n("label", {
|
|
2870
2870
|
key: 0,
|
|
2871
2871
|
for: L(o),
|
|
2872
2872
|
class: c(L(h)(L(p)({ size: e.size })))
|
|
2873
2873
|
}, [
|
|
2874
|
-
|
|
2874
|
+
N(g(e.label) + " ", 1),
|
|
2875
2875
|
e.required ? (a(), n("span", wa, "*")) : f("", !0)
|
|
2876
2876
|
], 10, ka)) : f("", !0),
|
|
2877
2877
|
e.description ? (a(), n("p", {
|
|
@@ -2879,7 +2879,7 @@ const Ue = {
|
|
|
2879
2879
|
class: c(L(h)(L(C)({ size: e.size })))
|
|
2880
2880
|
}, g(e.description), 3)) : f("", !0),
|
|
2881
2881
|
s("div", Ca, [
|
|
2882
|
-
|
|
2882
|
+
b(z.$slots, "default", {
|
|
2883
2883
|
fieldId: L(o),
|
|
2884
2884
|
hasError: i.value,
|
|
2885
2885
|
ariaDescribedBy: d.value
|
|
@@ -2897,7 +2897,7 @@ const Ue = {
|
|
|
2897
2897
|
i.value ? (a(), n("div", {
|
|
2898
2898
|
key: 0,
|
|
2899
2899
|
id: `${L(o)}-error`,
|
|
2900
|
-
class: c(L(h)(L(
|
|
2900
|
+
class: c(L(h)(L(x)({ size: e.size, intent: "error" }))),
|
|
2901
2901
|
role: "alert",
|
|
2902
2902
|
"aria-live": "polite"
|
|
2903
2903
|
}, [
|
|
@@ -2910,7 +2910,7 @@ const Ue = {
|
|
|
2910
2910
|
e.helpText && !i.value ? (a(), n("p", {
|
|
2911
2911
|
key: 2,
|
|
2912
2912
|
id: `${L(o)}-help`,
|
|
2913
|
-
class: c(L(h)(L(
|
|
2913
|
+
class: c(L(h)(L(M)({ size: e.size })))
|
|
2914
2914
|
}, g(e.helpText), 11, Sa)) : f("", !0),
|
|
2915
2915
|
S(ae, {
|
|
2916
2916
|
"enter-active-class": "transition-all duration-200",
|
|
@@ -2923,7 +2923,7 @@ const Ue = {
|
|
|
2923
2923
|
default: V(() => [
|
|
2924
2924
|
e.success && !i.value ? (a(), n("div", {
|
|
2925
2925
|
key: 0,
|
|
2926
|
-
class: c(L(h)(L(
|
|
2926
|
+
class: c(L(h)(L(x)({ size: e.size, intent: "success" })))
|
|
2927
2927
|
}, [
|
|
2928
2928
|
S(t, { class: "w-4 h-4 flex-shrink-0 mt-0.5" }),
|
|
2929
2929
|
s("span", null, g(e.success), 1)
|
|
@@ -2963,11 +2963,11 @@ const Ue = {
|
|
|
2963
2963
|
class: c(r.value)
|
|
2964
2964
|
}, [
|
|
2965
2965
|
o.$slots.prefix ? (a(), n("div", Ba, [
|
|
2966
|
-
|
|
2966
|
+
b(o.$slots, "prefix")
|
|
2967
2967
|
])) : f("", !0),
|
|
2968
|
-
|
|
2968
|
+
b(o.$slots, "default"),
|
|
2969
2969
|
o.$slots.suffix ? (a(), n("div", Va, [
|
|
2970
|
-
|
|
2970
|
+
b(o.$slots, "suffix")
|
|
2971
2971
|
])) : f("", !0)
|
|
2972
2972
|
], 2));
|
|
2973
2973
|
}
|
|
@@ -3020,7 +3020,7 @@ const Ue = {
|
|
|
3020
3020
|
), p = (C) => {
|
|
3021
3021
|
r("click", C);
|
|
3022
3022
|
};
|
|
3023
|
-
return (C,
|
|
3023
|
+
return (C, x) => (a(), n("li", {
|
|
3024
3024
|
class: c(d.value),
|
|
3025
3025
|
role: e.role
|
|
3026
3026
|
}, [
|
|
@@ -3031,7 +3031,7 @@ const Ue = {
|
|
|
3031
3031
|
}, {
|
|
3032
3032
|
default: V(() => [
|
|
3033
3033
|
C.$slots.icon || e.icon ? (a(), n("div", Ta, [
|
|
3034
|
-
|
|
3034
|
+
b(C.$slots, "icon", {}, () => [
|
|
3035
3035
|
e.icon ? (a(), T(Q, {
|
|
3036
3036
|
key: 0,
|
|
3037
3037
|
name: e.icon,
|
|
@@ -3042,10 +3042,10 @@ const Ue = {
|
|
|
3042
3042
|
s("div", Ia, [
|
|
3043
3043
|
e.title ? (a(), n("div", La, g(e.title), 1)) : f("", !0),
|
|
3044
3044
|
e.description ? (a(), n("div", Da, g(e.description), 1)) : f("", !0),
|
|
3045
|
-
|
|
3045
|
+
b(C.$slots, "default")
|
|
3046
3046
|
]),
|
|
3047
3047
|
C.$slots.action ? (a(), n("div", Aa, [
|
|
3048
|
-
|
|
3048
|
+
b(C.$slots, "action")
|
|
3049
3049
|
])) : f("", !0)
|
|
3050
3050
|
]),
|
|
3051
3051
|
_: 3
|
|
@@ -3099,7 +3099,7 @@ const Ue = {
|
|
|
3099
3099
|
name: e.icon,
|
|
3100
3100
|
class: "mr-2 h-4 w-4"
|
|
3101
3101
|
}, null, 8, ["name"])) : f("", !0),
|
|
3102
|
-
|
|
3102
|
+
b(m.$slots, "default"),
|
|
3103
3103
|
e.shortcut ? (a(), n("span", Fa, g(e.shortcut), 1)) : f("", !0),
|
|
3104
3104
|
e.hasSubmenu ? (a(), T(Q, {
|
|
3105
3105
|
key: 2,
|
|
@@ -3110,7 +3110,7 @@ const Ue = {
|
|
|
3110
3110
|
_: 3
|
|
3111
3111
|
}, 8, ["href", "class", "disabled"]));
|
|
3112
3112
|
}
|
|
3113
|
-
},
|
|
3113
|
+
}, Ra = { class: "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg" }, Na = {
|
|
3114
3114
|
__name: "Modal",
|
|
3115
3115
|
props: {
|
|
3116
3116
|
modelValue: Boolean,
|
|
@@ -3154,7 +3154,7 @@ const Ue = {
|
|
|
3154
3154
|
class: "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",
|
|
3155
3155
|
onClick: i
|
|
3156
3156
|
}, [
|
|
3157
|
-
s("div",
|
|
3157
|
+
s("div", Ra, [
|
|
3158
3158
|
e.showClose ? (a(), n("button", {
|
|
3159
3159
|
key: 0,
|
|
3160
3160
|
onClick: o,
|
|
@@ -3166,7 +3166,7 @@ const Ue = {
|
|
|
3166
3166
|
}),
|
|
3167
3167
|
m[0] || (m[0] = s("span", { class: "sr-only" }, "Close", -1))
|
|
3168
3168
|
])) : f("", !0),
|
|
3169
|
-
|
|
3169
|
+
b(d.$slots, "default")
|
|
3170
3170
|
])
|
|
3171
3171
|
])) : f("", !0)
|
|
3172
3172
|
]),
|
|
@@ -3190,7 +3190,7 @@ const Ue = {
|
|
|
3190
3190
|
return (l, t) => (a(), n("div", Ha, [
|
|
3191
3191
|
e.title ? (a(), n("h2", Oa, g(e.title), 1)) : f("", !0),
|
|
3192
3192
|
e.description ? (a(), n("p", qa, g(e.description), 1)) : f("", !0),
|
|
3193
|
-
|
|
3193
|
+
b(l.$slots, "default")
|
|
3194
3194
|
]));
|
|
3195
3195
|
}
|
|
3196
3196
|
}, Ua = {
|
|
@@ -3216,7 +3216,7 @@ const Ue = {
|
|
|
3216
3216
|
return (o, i) => (a(), n("div", {
|
|
3217
3217
|
class: c(r.value)
|
|
3218
3218
|
}, [
|
|
3219
|
-
|
|
3219
|
+
b(o.$slots, "default")
|
|
3220
3220
|
], 2));
|
|
3221
3221
|
}
|
|
3222
3222
|
}, Za = {
|
|
@@ -3242,7 +3242,7 @@ const Ue = {
|
|
|
3242
3242
|
return (o, i) => (a(), n("div", {
|
|
3243
3243
|
class: c(r.value)
|
|
3244
3244
|
}, [
|
|
3245
|
-
|
|
3245
|
+
b(o.$slots, "default")
|
|
3246
3246
|
], 2));
|
|
3247
3247
|
}
|
|
3248
3248
|
}, Ga = ["aria-live"], Ka = { class: "flex items-start space-x-3" }, Qa = {
|
|
@@ -3305,14 +3305,14 @@ const Ue = {
|
|
|
3305
3305
|
}
|
|
3306
3306
|
}), p = u(
|
|
3307
3307
|
() => h(i({ variant: t.variant }), "p-4")
|
|
3308
|
-
), C = u(() => d[t.variant]),
|
|
3308
|
+
), C = u(() => d[t.variant]), x = u(() => m({ variant: t.variant })), M = () => {
|
|
3309
3309
|
o.value = !1, r("dismiss");
|
|
3310
3310
|
};
|
|
3311
3311
|
return ue(() => {
|
|
3312
3312
|
t.autoClose > 0 && setTimeout(() => {
|
|
3313
|
-
|
|
3313
|
+
M();
|
|
3314
3314
|
}, t.autoClose);
|
|
3315
|
-
}), (
|
|
3315
|
+
}), (z, P) => (a(), T(ae, {
|
|
3316
3316
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
3317
3317
|
"enter-from-class": "transform translate-x-full opacity-0",
|
|
3318
3318
|
"enter-to-class": "transform translate-x-0 opacity-100",
|
|
@@ -3331,7 +3331,7 @@ const Ue = {
|
|
|
3331
3331
|
e.showIcon ? (a(), n("div", Qa, [
|
|
3332
3332
|
S(Q, {
|
|
3333
3333
|
name: C.value,
|
|
3334
|
-
class: c(
|
|
3334
|
+
class: c(x.value)
|
|
3335
3335
|
}, null, 8, ["name", "class"])
|
|
3336
3336
|
])) : f("", !0),
|
|
3337
3337
|
s("div", Ya, [
|
|
@@ -3340,11 +3340,11 @@ const Ue = {
|
|
|
3340
3340
|
key: 1,
|
|
3341
3341
|
class: c(["text-sm", { "mt-1": e.title }])
|
|
3342
3342
|
}, g(e.message), 3)) : f("", !0),
|
|
3343
|
-
|
|
3343
|
+
b(z.$slots, "default")
|
|
3344
3344
|
]),
|
|
3345
3345
|
e.dismissible ? (a(), n("button", {
|
|
3346
3346
|
key: 1,
|
|
3347
|
-
onClick:
|
|
3347
|
+
onClick: M,
|
|
3348
3348
|
class: "flex-shrink-0 rounded-md p-1.5 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
3349
3349
|
}, [
|
|
3350
3350
|
S(Q, {
|
|
@@ -3365,7 +3365,7 @@ const es = {
|
|
|
3365
3365
|
position: "top-center",
|
|
3366
3366
|
dismissible: !0,
|
|
3367
3367
|
closeButton: !1
|
|
3368
|
-
}, ts = () => `toast-${++Ja}-${Date.now()}`,
|
|
3368
|
+
}, ts = () => `toast-${++Ja}-${Date.now()}`, ne = (e, l = {}) => {
|
|
3369
3369
|
const t = ts(), r = {
|
|
3370
3370
|
id: t,
|
|
3371
3371
|
message: e,
|
|
@@ -3383,13 +3383,13 @@ const es = {
|
|
|
3383
3383
|
ve.value = [];
|
|
3384
3384
|
}, Se = Object.assign(
|
|
3385
3385
|
// Default toast function
|
|
3386
|
-
(e, l) =>
|
|
3386
|
+
(e, l) => ne(e, { ...l }),
|
|
3387
3387
|
// Toast type methods
|
|
3388
3388
|
{
|
|
3389
|
-
success: (e, l) =>
|
|
3390
|
-
error: (e, l) =>
|
|
3391
|
-
warning: (e, l) =>
|
|
3392
|
-
info: (e, l) =>
|
|
3389
|
+
success: (e, l) => ne(e, { ...l, variant: "success" }),
|
|
3390
|
+
error: (e, l) => ne(e, { ...l, variant: "error" }),
|
|
3391
|
+
warning: (e, l) => ne(e, { ...l, variant: "warning" }),
|
|
3392
|
+
info: (e, l) => ne(e, { ...l, variant: "info" }),
|
|
3393
3393
|
// Promise toast for async operations
|
|
3394
3394
|
promise: (e, l = {}) => {
|
|
3395
3395
|
const {
|
|
@@ -3397,7 +3397,7 @@ const es = {
|
|
|
3397
3397
|
success: r = "Success",
|
|
3398
3398
|
error: o = "Error",
|
|
3399
3399
|
...i
|
|
3400
|
-
} = l, d =
|
|
3400
|
+
} = l, d = ne(t, {
|
|
3401
3401
|
...i,
|
|
3402
3402
|
variant: "loading",
|
|
3403
3403
|
duration: 0,
|
|
@@ -3407,14 +3407,14 @@ const es = {
|
|
|
3407
3407
|
return e.then((m) => {
|
|
3408
3408
|
me(d);
|
|
3409
3409
|
const p = typeof r == "function" ? r(m) : r;
|
|
3410
|
-
return
|
|
3410
|
+
return ne(p, {
|
|
3411
3411
|
...i,
|
|
3412
3412
|
variant: "success"
|
|
3413
3413
|
}), m;
|
|
3414
3414
|
}).catch((m) => {
|
|
3415
3415
|
me(d);
|
|
3416
3416
|
const p = typeof o == "function" ? o(m) : o;
|
|
3417
|
-
throw
|
|
3417
|
+
throw ne(p, {
|
|
3418
3418
|
...i,
|
|
3419
3419
|
variant: "error"
|
|
3420
3420
|
}), m;
|
|
@@ -3424,7 +3424,7 @@ const es = {
|
|
|
3424
3424
|
dismiss: me,
|
|
3425
3425
|
dismissAll: Ae,
|
|
3426
3426
|
// Custom toast with component
|
|
3427
|
-
custom: (e, l = {}) =>
|
|
3427
|
+
custom: (e, l = {}) => ne("", {
|
|
3428
3428
|
...l,
|
|
3429
3429
|
component: Me(e)
|
|
3430
3430
|
})
|
|
@@ -3433,10 +3433,10 @@ const es = {
|
|
|
3433
3433
|
toasts: ve,
|
|
3434
3434
|
dismiss: me,
|
|
3435
3435
|
dismissAll: Ae
|
|
3436
|
-
}), ss = ["aria-live"], ls = { class: "flex-1 grid gap-1" },
|
|
3436
|
+
}), ss = ["aria-live"], ls = { class: "flex-1 grid gap-1" }, rs = {
|
|
3437
3437
|
key: 0,
|
|
3438
3438
|
class: "text-sm font-semibold"
|
|
3439
|
-
},
|
|
3439
|
+
}, ns = {
|
|
3440
3440
|
key: 1,
|
|
3441
3441
|
class: "text-sm opacity-90"
|
|
3442
3442
|
}, os = {
|
|
@@ -3517,10 +3517,10 @@ const es = {
|
|
|
3517
3517
|
warning: "text-yellow-600 dark:text-yellow-400",
|
|
3518
3518
|
error: "text-red-600 dark:text-red-400",
|
|
3519
3519
|
loading: "text-muted-foreground animate-spin"
|
|
3520
|
-
},
|
|
3520
|
+
}, x = (B) => B.icon || p[B.variant] || p.default, M = (B) => {
|
|
3521
3521
|
const w = C[B.variant] || C.default;
|
|
3522
3522
|
return B.variant === "loading" ? `${w} animate-spin` : w;
|
|
3523
|
-
},
|
|
3523
|
+
}, z = (B) => B.icon !== !1, P = (B) => B.dismissible !== !1 && (B.closeButton || l.closeButton || B.dismissible);
|
|
3524
3524
|
return (B, w) => (a(), T(Ve, { to: "body" }, [
|
|
3525
3525
|
s("div", {
|
|
3526
3526
|
class: c(L(h)(
|
|
@@ -3528,7 +3528,7 @@ const es = {
|
|
|
3528
3528
|
"fixed z-[100] flex max-h-screen w-full p-4 md:max-w-[420px]"
|
|
3529
3529
|
))
|
|
3530
3530
|
}, [
|
|
3531
|
-
S(
|
|
3531
|
+
S(Ne, {
|
|
3532
3532
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
3533
3533
|
"enter-from-class": "transform translate-x-full opacity-0 scale-95",
|
|
3534
3534
|
"enter-to-class": "transform translate-x-0 opacity-100 scale-100",
|
|
@@ -3546,14 +3546,14 @@ const es = {
|
|
|
3546
3546
|
role: "alert",
|
|
3547
3547
|
"aria-live": v.variant === "error" ? "assertive" : "polite"
|
|
3548
3548
|
}, [
|
|
3549
|
-
|
|
3549
|
+
z(v) ? (a(), T(Q, {
|
|
3550
3550
|
key: 0,
|
|
3551
|
-
name:
|
|
3552
|
-
class: c([
|
|
3551
|
+
name: x(v),
|
|
3552
|
+
class: c([M(v), "h-4 w-4 shrink-0"])
|
|
3553
3553
|
}, null, 8, ["name", "class"])) : f("", !0),
|
|
3554
3554
|
s("div", ls, [
|
|
3555
|
-
v.title ? (a(), n("div",
|
|
3556
|
-
v.message ? (a(), n("div",
|
|
3555
|
+
v.title ? (a(), n("div", rs, g(v.title), 1)) : f("", !0),
|
|
3556
|
+
v.message ? (a(), n("div", ns, g(v.message), 1)) : f("", !0),
|
|
3557
3557
|
v.description ? (a(), n("div", os, g(v.description), 1)) : f("", !0),
|
|
3558
3558
|
v.component ? (a(), T(Y(v.component), fe({
|
|
3559
3559
|
key: 3,
|
|
@@ -3643,38 +3643,38 @@ const es = {
|
|
|
3643
3643
|
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
|
|
3644
3644
|
<path class="opacity-75" fill="currentColor" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"/>
|
|
3645
3645
|
</svg>`
|
|
3646
|
-
}, i = e, d = l, m = _(null), p = _(null), C = _(!1),
|
|
3646
|
+
}, i = e, d = l, m = _(null), p = _(null), C = _(!1), x = _(-1), M = _(null), z = (A) => {
|
|
3647
3647
|
const G = A.target.value;
|
|
3648
|
-
d("update:modelValue", G),
|
|
3648
|
+
d("update:modelValue", G), M.value && clearTimeout(M.value), M.value = setTimeout(() => {
|
|
3649
3649
|
G.length >= i.minLength ? (d("search", G), C.value = !0) : C.value = !1;
|
|
3650
3650
|
}, i.debounce);
|
|
3651
3651
|
}, P = (A) => {
|
|
3652
3652
|
d("focus", A), i.modelValue.length >= i.minLength && (C.value = !0);
|
|
3653
3653
|
}, B = (A) => {
|
|
3654
3654
|
d("blur", A), setTimeout(() => {
|
|
3655
|
-
C.value = !1,
|
|
3655
|
+
C.value = !1, x.value = -1;
|
|
3656
3656
|
}, 150);
|
|
3657
3657
|
}, w = () => {
|
|
3658
3658
|
d("update:modelValue", ""), d("clear"), C.value = !1, p.value?.focus();
|
|
3659
3659
|
}, v = (A) => {
|
|
3660
|
-
d("select", A), C.value = !1,
|
|
3660
|
+
d("select", A), C.value = !1, x.value = -1;
|
|
3661
3661
|
}, $ = (A) => {
|
|
3662
3662
|
if (!(!C.value || i.results.length === 0))
|
|
3663
3663
|
switch (A.key) {
|
|
3664
3664
|
case "ArrowDown":
|
|
3665
|
-
A.preventDefault(),
|
|
3665
|
+
A.preventDefault(), x.value = Math.min(x.value + 1, i.results.length - 1);
|
|
3666
3666
|
break;
|
|
3667
3667
|
case "ArrowUp":
|
|
3668
|
-
A.preventDefault(),
|
|
3668
|
+
A.preventDefault(), x.value = Math.max(x.value - 1, -1);
|
|
3669
3669
|
break;
|
|
3670
3670
|
case "Enter":
|
|
3671
|
-
A.preventDefault(),
|
|
3671
|
+
A.preventDefault(), x.value >= 0 && v(i.results[x.value]);
|
|
3672
3672
|
break;
|
|
3673
3673
|
case "Escape":
|
|
3674
|
-
A.preventDefault(), C.value = !1,
|
|
3674
|
+
A.preventDefault(), C.value = !1, x.value = -1;
|
|
3675
3675
|
break;
|
|
3676
3676
|
}
|
|
3677
|
-
},
|
|
3677
|
+
}, y = (A) => {
|
|
3678
3678
|
if (!i.highlightMatches || !i.modelValue || !A) return A;
|
|
3679
3679
|
const G = new RegExp(`(${i.modelValue})`, "gi");
|
|
3680
3680
|
return A.replace(G, '<mark class="bg-yellow-200">$1</mark>');
|
|
@@ -3703,13 +3703,13 @@ const es = {
|
|
|
3703
3703
|
() => h("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
|
|
3704
3704
|
), q = (A) => h(
|
|
3705
3705
|
"flex items-center w-full px-4 py-3 text-left transition-colors duration-150 hover:bg-slate-50 focus:bg-slate-50 focus:outline-none",
|
|
3706
|
-
{ "bg-slate-50":
|
|
3706
|
+
{ "bg-slate-50": x.value === A }
|
|
3707
3707
|
), W = (A) => {
|
|
3708
|
-
m.value && !m.value.contains(A.target) && (C.value = !1,
|
|
3708
|
+
m.value && !m.value.contains(A.target) && (C.value = !1, x.value = -1);
|
|
3709
3709
|
};
|
|
3710
3710
|
return ue(() => document.addEventListener("click", W)), ye(() => {
|
|
3711
|
-
document.removeEventListener("click", W),
|
|
3712
|
-
}), oe(() => i.results, () =>
|
|
3711
|
+
document.removeEventListener("click", W), M.value && clearTimeout(M.value);
|
|
3712
|
+
}), oe(() => i.results, () => x.value = -1), (A, G) => (a(), n("div", {
|
|
3713
3713
|
class: "relative",
|
|
3714
3714
|
ref_key: "searchRef",
|
|
3715
3715
|
ref: m
|
|
@@ -3727,7 +3727,7 @@ const es = {
|
|
|
3727
3727
|
placeholder: e.placeholder,
|
|
3728
3728
|
disabled: e.disabled,
|
|
3729
3729
|
class: c(Z.value),
|
|
3730
|
-
onInput:
|
|
3730
|
+
onInput: z,
|
|
3731
3731
|
onFocus: P,
|
|
3732
3732
|
onBlur: B,
|
|
3733
3733
|
onKeydown: $
|
|
@@ -3763,7 +3763,7 @@ const es = {
|
|
|
3763
3763
|
key: X.id || le,
|
|
3764
3764
|
class: c(q(le)),
|
|
3765
3765
|
onClick: (H) => v(X),
|
|
3766
|
-
onMouseenter: (H) =>
|
|
3766
|
+
onMouseenter: (H) => x.value = le
|
|
3767
3767
|
}, [
|
|
3768
3768
|
X.icon ? (a(), T(Y(X.icon), {
|
|
3769
3769
|
key: 0,
|
|
@@ -3772,19 +3772,19 @@ const es = {
|
|
|
3772
3772
|
s("div", ys, [
|
|
3773
3773
|
s("div", {
|
|
3774
3774
|
class: "font-medium text-slate-900",
|
|
3775
|
-
innerHTML:
|
|
3775
|
+
innerHTML: y(X.title)
|
|
3776
3776
|
}, null, 8, xs),
|
|
3777
3777
|
X.description ? (a(), n("div", {
|
|
3778
3778
|
key: 0,
|
|
3779
3779
|
class: "text-sm text-slate-500 truncate",
|
|
3780
|
-
innerHTML:
|
|
3780
|
+
innerHTML: y(X.description)
|
|
3781
3781
|
}, null, 8, ks)) : f("", !0)
|
|
3782
3782
|
]),
|
|
3783
3783
|
X.category ? (a(), n("div", ws, g(X.category), 1)) : f("", !0)
|
|
3784
3784
|
], 42, bs))), 128))
|
|
3785
3785
|
])) : e.showNoResults ? (a(), n("div", Cs, g(e.noResultsText), 1)) : f("", !0),
|
|
3786
3786
|
A.$slots.footer ? (a(), n("div", $s, [
|
|
3787
|
-
|
|
3787
|
+
b(A.$slots, "footer")
|
|
3788
3788
|
])) : f("", !0)
|
|
3789
3789
|
], 2)) : f("", !0)
|
|
3790
3790
|
]),
|
|
@@ -3832,7 +3832,7 @@ const es = {
|
|
|
3832
3832
|
__name: "Stepper",
|
|
3833
3833
|
setup(e) {
|
|
3834
3834
|
return (l, t) => (a(), n("div", js, [
|
|
3835
|
-
|
|
3835
|
+
b(l.$slots, "default")
|
|
3836
3836
|
]));
|
|
3837
3837
|
}
|
|
3838
3838
|
}, Is = { class: "flex items-center" }, Ls = { class: "ml-2" }, Ds = { class: "font-medium" }, As = {
|
|
@@ -3863,7 +3863,7 @@ const es = {
|
|
|
3863
3863
|
])
|
|
3864
3864
|
]));
|
|
3865
3865
|
}
|
|
3866
|
-
}, Fs = { class: "flex border-b border-slate-200" }, _s = ["onClick"],
|
|
3866
|
+
}, Fs = { class: "flex border-b border-slate-200" }, _s = ["onClick"], Rs = { class: "p-4" }, Ns = {
|
|
3867
3867
|
__name: "Tab",
|
|
3868
3868
|
props: {
|
|
3869
3869
|
defaultIndex: { type: Number, default: 0 }
|
|
@@ -3887,8 +3887,8 @@ const es = {
|
|
|
3887
3887
|
])
|
|
3888
3888
|
}, g(m.label), 11, _s))), 128))
|
|
3889
3889
|
]),
|
|
3890
|
-
s("div",
|
|
3891
|
-
|
|
3890
|
+
s("div", Rs, [
|
|
3891
|
+
b(i.$slots, "default")
|
|
3892
3892
|
])
|
|
3893
3893
|
]));
|
|
3894
3894
|
}
|
|
@@ -3904,7 +3904,7 @@ const es = {
|
|
|
3904
3904
|
o.value = i === r.value;
|
|
3905
3905
|
});
|
|
3906
3906
|
}), (i, d) => xe((a(), n("div", null, [
|
|
3907
|
-
|
|
3907
|
+
b(i.$slots, "default")
|
|
3908
3908
|
], 512)), [
|
|
3909
3909
|
[Te, o.value]
|
|
3910
3910
|
]);
|
|
@@ -3972,7 +3972,7 @@ const es = {
|
|
|
3972
3972
|
flush: ""
|
|
3973
3973
|
}
|
|
3974
3974
|
}
|
|
3975
|
-
}),
|
|
3975
|
+
}), x = k(
|
|
3976
3976
|
"flex items-center w-full text-left transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
3977
3977
|
{
|
|
3978
3978
|
variants: {
|
|
@@ -3989,7 +3989,7 @@ const es = {
|
|
|
3989
3989
|
}
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
|
-
),
|
|
3992
|
+
), M = k("text-slate-900", {
|
|
3993
3993
|
variants: {
|
|
3994
3994
|
size: {
|
|
3995
3995
|
sm: "text-sm font-medium",
|
|
@@ -3997,7 +3997,7 @@ const es = {
|
|
|
3997
3997
|
lg: "text-lg font-medium"
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
|
-
}),
|
|
4000
|
+
}), z = k("text-slate-500 mt-1", {
|
|
4001
4001
|
variants: {
|
|
4002
4002
|
size: {
|
|
4003
4003
|
sm: "text-xs",
|
|
@@ -4032,15 +4032,15 @@ const es = {
|
|
|
4032
4032
|
() => h(p({ variant: r.variant }))
|
|
4033
4033
|
), $ = u(
|
|
4034
4034
|
() => h(C({ variant: r.variant }))
|
|
4035
|
-
),
|
|
4036
|
-
|
|
4035
|
+
), y = (q) => h(
|
|
4036
|
+
x({ variant: r.variant, size: r.size }),
|
|
4037
4037
|
r.variant === "bordered" && m(q) && "bg-slate-50",
|
|
4038
4038
|
r.variant === "filled" && m(q) && "bg-white",
|
|
4039
4039
|
(r.disabled || r.items[q]?.disabled) && "cursor-not-allowed opacity-50"
|
|
4040
4040
|
), I = u(
|
|
4041
|
-
() => h(
|
|
4041
|
+
() => h(M({ size: r.size }))
|
|
4042
4042
|
), F = u(
|
|
4043
|
-
() => h(
|
|
4043
|
+
() => h(z({ size: r.size }))
|
|
4044
4044
|
), Z = u(
|
|
4045
4045
|
() => h(P({ size: r.size }))
|
|
4046
4046
|
), te = (q) => h(B({ expanded: m(q) })), se = u(
|
|
@@ -4059,7 +4059,7 @@ const es = {
|
|
|
4059
4059
|
class: c($.value)
|
|
4060
4060
|
}, [
|
|
4061
4061
|
s("button", {
|
|
4062
|
-
class: c(
|
|
4062
|
+
class: c(y(G)),
|
|
4063
4063
|
"aria-expanded": m(G),
|
|
4064
4064
|
"aria-controls": `panel-${A.id || G}`,
|
|
4065
4065
|
id: `header-${A.id || G}`,
|
|
@@ -4102,7 +4102,7 @@ const es = {
|
|
|
4102
4102
|
"aria-labelledby": `header-${A.id || G}`,
|
|
4103
4103
|
role: "region"
|
|
4104
4104
|
}, [
|
|
4105
|
-
|
|
4105
|
+
b(q.$slots, A.slot || `item-${G}`, {
|
|
4106
4106
|
item: A,
|
|
4107
4107
|
index: G
|
|
4108
4108
|
}, () => [
|
|
@@ -4171,10 +4171,10 @@ const es = {
|
|
|
4171
4171
|
() => h(i({ variant: t.variant }))
|
|
4172
4172
|
), C = u(
|
|
4173
4173
|
() => h(d({ size: t.size }))
|
|
4174
|
-
),
|
|
4174
|
+
), x = u(
|
|
4175
4175
|
() => h(m({ size: t.size }))
|
|
4176
4176
|
);
|
|
4177
|
-
return (
|
|
4177
|
+
return (M, z) => (a(), n("div", {
|
|
4178
4178
|
class: c(p.value)
|
|
4179
4179
|
}, [
|
|
4180
4180
|
S(ee, {
|
|
@@ -4183,7 +4183,7 @@ const es = {
|
|
|
4183
4183
|
onClick: o
|
|
4184
4184
|
}, {
|
|
4185
4185
|
default: V(() => [
|
|
4186
|
-
|
|
4186
|
+
b(M.$slots, "header", { isOpen: r.value }),
|
|
4187
4187
|
S(l, {
|
|
4188
4188
|
class: c(L(h)("w-5 h-5 transition-transform ml-2", { "rotate-180": r.value }))
|
|
4189
4189
|
}, null, 8, ["class"])
|
|
@@ -4201,9 +4201,9 @@ const es = {
|
|
|
4201
4201
|
default: V(() => [
|
|
4202
4202
|
r.value ? (a(), n("div", {
|
|
4203
4203
|
key: 0,
|
|
4204
|
-
class: c(
|
|
4204
|
+
class: c(x.value)
|
|
4205
4205
|
}, [
|
|
4206
|
-
|
|
4206
|
+
b(M.$slots, "content", { isOpen: r.value })
|
|
4207
4207
|
], 2)) : f("", !0)
|
|
4208
4208
|
]),
|
|
4209
4209
|
_: 3
|
|
@@ -4226,11 +4226,11 @@ const es = {
|
|
|
4226
4226
|
() => new Date(i.value, o.value).toLocaleString("default", {
|
|
4227
4227
|
month: "long"
|
|
4228
4228
|
})
|
|
4229
|
-
), C = u(() => new Date(i.value, o.value + 1, 0).getDate()),
|
|
4230
|
-
{ length:
|
|
4231
|
-
(
|
|
4232
|
-
).reverse()),
|
|
4233
|
-
const
|
|
4229
|
+
), C = u(() => new Date(i.value, o.value + 1, 0).getDate()), x = u(() => new Date(i.value, o.value, 1).getDay()), M = u(() => Array.from(
|
|
4230
|
+
{ length: x.value },
|
|
4231
|
+
(y, I) => new Date(i.value, o.value, -I).getDate()
|
|
4232
|
+
).reverse()), z = u(() => {
|
|
4233
|
+
const y = M.value.length + C.value, I = y % 7 === 0 ? 0 : 7 - y % 7;
|
|
4234
4234
|
return Array.from({ length: I }, (F, Z) => Z + 1);
|
|
4235
4235
|
});
|
|
4236
4236
|
function P() {
|
|
@@ -4239,16 +4239,16 @@ const es = {
|
|
|
4239
4239
|
function B() {
|
|
4240
4240
|
o.value === 11 ? (o.value = 0, i.value++) : o.value++;
|
|
4241
4241
|
}
|
|
4242
|
-
function w(
|
|
4243
|
-
return r.getDate() ===
|
|
4242
|
+
function w(y) {
|
|
4243
|
+
return r.getDate() === y && r.getMonth() === o.value && r.getFullYear() === i.value;
|
|
4244
4244
|
}
|
|
4245
|
-
function v(
|
|
4246
|
-
return d.value && d.value.getDate() ===
|
|
4245
|
+
function v(y) {
|
|
4246
|
+
return d.value && d.value.getDate() === y && d.value.getMonth() === o.value && d.value.getFullYear() === i.value;
|
|
4247
4247
|
}
|
|
4248
|
-
function $(
|
|
4249
|
-
d.value = new Date(i.value, o.value,
|
|
4248
|
+
function $(y) {
|
|
4249
|
+
d.value = new Date(i.value, o.value, y), emit("update:modelValue", d.value);
|
|
4250
4250
|
}
|
|
4251
|
-
return (
|
|
4251
|
+
return (y, I) => (a(), n("div", Qs, [
|
|
4252
4252
|
s("div", Ys, [
|
|
4253
4253
|
S(ee, {
|
|
4254
4254
|
class: "p-2 rounded-lg hover:bg-slate-100",
|
|
@@ -4276,7 +4276,7 @@ const es = {
|
|
|
4276
4276
|
(a(), n(E, null, U(m, (F) => s("div", { key: F }, g(F), 1)), 64))
|
|
4277
4277
|
]),
|
|
4278
4278
|
s("div", Js, [
|
|
4279
|
-
(a(!0), n(E, null, U(
|
|
4279
|
+
(a(!0), n(E, null, U(M.value, (F) => (a(), n("div", {
|
|
4280
4280
|
key: "prev-" + F,
|
|
4281
4281
|
class: "text-slate-400 text-sm"
|
|
4282
4282
|
}, g(F), 1))), 128)),
|
|
@@ -4290,11 +4290,11 @@ const es = {
|
|
|
4290
4290
|
])
|
|
4291
4291
|
}, {
|
|
4292
4292
|
default: V(() => [
|
|
4293
|
-
|
|
4293
|
+
N(g(F), 1)
|
|
4294
4294
|
]),
|
|
4295
4295
|
_: 2
|
|
4296
4296
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
4297
|
-
(a(!0), n(E, null, U(
|
|
4297
|
+
(a(!0), n(E, null, U(z.value, (F) => (a(), n("div", {
|
|
4298
4298
|
key: "next-" + F,
|
|
4299
4299
|
class: "text-slate-400 text-sm"
|
|
4300
4300
|
}, g(F), 1))), 128))
|
|
@@ -4380,7 +4380,7 @@ const es = {
|
|
|
4380
4380
|
key: 0,
|
|
4381
4381
|
class: c(i.value)
|
|
4382
4382
|
}, [
|
|
4383
|
-
|
|
4383
|
+
b(p.$slots, "header", {}, () => [
|
|
4384
4384
|
s("div", tl, [
|
|
4385
4385
|
s("div", null, [
|
|
4386
4386
|
e.title ? (a(), T(ke, {
|
|
@@ -4388,7 +4388,7 @@ const es = {
|
|
|
4388
4388
|
class: c(d.value)
|
|
4389
4389
|
}, {
|
|
4390
4390
|
default: V(() => [
|
|
4391
|
-
|
|
4391
|
+
N(g(e.title), 1)
|
|
4392
4392
|
]),
|
|
4393
4393
|
_: 1
|
|
4394
4394
|
}, 8, ["class"])) : f("", !0),
|
|
@@ -4397,13 +4397,13 @@ const es = {
|
|
|
4397
4397
|
class: c(m.value)
|
|
4398
4398
|
}, {
|
|
4399
4399
|
default: V(() => [
|
|
4400
|
-
|
|
4400
|
+
N(g(e.description), 1)
|
|
4401
4401
|
]),
|
|
4402
4402
|
_: 1
|
|
4403
4403
|
}, 8, ["class"])) : f("", !0)
|
|
4404
4404
|
]),
|
|
4405
4405
|
p.$slots.filters ? (a(), n("div", al, [
|
|
4406
|
-
|
|
4406
|
+
b(p.$slots, "filters")
|
|
4407
4407
|
])) : f("", !0)
|
|
4408
4408
|
])
|
|
4409
4409
|
])
|
|
@@ -4514,13 +4514,13 @@ const es = {
|
|
|
4514
4514
|
}
|
|
4515
4515
|
}), d = (w) => typeof w == "string" ? w : w?.key || w?.field || "unknown", m = (w, v) => {
|
|
4516
4516
|
const $ = d(v);
|
|
4517
|
-
return typeof v == "object" && v.accessor ? v.accessor(w) : $ && $.includes(".") ? $.split(".").reduce((
|
|
4517
|
+
return typeof v == "object" && v.accessor ? v.accessor(w) : $ && $.includes(".") ? $.split(".").reduce((y, I) => y?.[I], w) : w?.[$];
|
|
4518
4518
|
}, p = (w, v) => {
|
|
4519
4519
|
const $ = m(w, v);
|
|
4520
4520
|
return typeof v == "object" && v.formatter ? v.formatter($, w) : $ == null ? "" : $ instanceof Date ? $.toLocaleDateString() : Array.isArray($) ? $.join(", ") : $;
|
|
4521
4521
|
}, C = () => {
|
|
4522
4522
|
t.clickableRows && r("row-click", { item: t.item, index: t.index });
|
|
4523
|
-
},
|
|
4523
|
+
}, x = (w) => typeof w == "object" && w.align ? w.align : "left", M = u(
|
|
4524
4524
|
() => h(o({
|
|
4525
4525
|
striped: t.striped,
|
|
4526
4526
|
hoverable: t.hoverable && !t.clickableRows,
|
|
@@ -4528,8 +4528,8 @@ const es = {
|
|
|
4528
4528
|
selected: t.isSelected,
|
|
4529
4529
|
variant: t.variant
|
|
4530
4530
|
}))
|
|
4531
|
-
),
|
|
4532
|
-
const v =
|
|
4531
|
+
), z = (w) => {
|
|
4532
|
+
const v = x(w);
|
|
4533
4533
|
return h(
|
|
4534
4534
|
i({
|
|
4535
4535
|
density: t.density,
|
|
@@ -4552,7 +4552,7 @@ const es = {
|
|
|
4552
4552
|
)
|
|
4553
4553
|
);
|
|
4554
4554
|
return (w, v) => (a(), n("tr", {
|
|
4555
|
-
class: c(
|
|
4555
|
+
class: c(M.value),
|
|
4556
4556
|
onClick: C
|
|
4557
4557
|
}, [
|
|
4558
4558
|
e.selectable ? (a(), n("td", {
|
|
@@ -4566,22 +4566,22 @@ const es = {
|
|
|
4566
4566
|
], 2)) : f("", !0),
|
|
4567
4567
|
(a(!0), n(E, null, U(e.columns, ($) => (a(), n("td", {
|
|
4568
4568
|
key: d($),
|
|
4569
|
-
class: c(
|
|
4569
|
+
class: c(z($))
|
|
4570
4570
|
}, [
|
|
4571
|
-
|
|
4571
|
+
b(w.$slots, `cell-${d($)}`, {
|
|
4572
4572
|
item: e.item,
|
|
4573
4573
|
value: m(e.item, $),
|
|
4574
4574
|
column: $,
|
|
4575
4575
|
index: e.index
|
|
4576
4576
|
}, () => [
|
|
4577
|
-
|
|
4577
|
+
N(g(p(e.item, $)), 1)
|
|
4578
4578
|
])
|
|
4579
4579
|
], 2))), 128)),
|
|
4580
4580
|
w.$slots.actions ? (a(), n("td", {
|
|
4581
4581
|
key: 1,
|
|
4582
4582
|
class: c(B.value)
|
|
4583
4583
|
}, [
|
|
4584
|
-
|
|
4584
|
+
b(w.$slots, "actions", {
|
|
4585
4585
|
item: e.item,
|
|
4586
4586
|
index: e.index
|
|
4587
4587
|
})
|
|
@@ -4591,10 +4591,10 @@ const es = {
|
|
|
4591
4591
|
}, sl = { class: "flex items-center justify-between" }, ll = {
|
|
4592
4592
|
key: 0,
|
|
4593
4593
|
class: "text-sm text-slate-600"
|
|
4594
|
-
},
|
|
4594
|
+
}, rl = {
|
|
4595
4595
|
key: 1,
|
|
4596
4596
|
class: "text-sm text-slate-600"
|
|
4597
|
-
},
|
|
4597
|
+
}, nl = {
|
|
4598
4598
|
key: 2,
|
|
4599
4599
|
class: "flex items-center gap-4"
|
|
4600
4600
|
}, ol = {
|
|
@@ -4711,24 +4711,24 @@ const es = {
|
|
|
4711
4711
|
}), m = u(() => (t.currentPage - 1) * t.pageSize + 1), p = u(() => Math.min(t.currentPage * t.pageSize, t.total)), C = u(() => {
|
|
4712
4712
|
const B = [], w = t.totalPages, v = t.currentPage, $ = t.maxVisiblePages;
|
|
4713
4713
|
if (w <= $)
|
|
4714
|
-
for (let
|
|
4715
|
-
B.push(
|
|
4714
|
+
for (let y = 1; y <= w; y++)
|
|
4715
|
+
B.push(y);
|
|
4716
4716
|
else {
|
|
4717
|
-
const
|
|
4718
|
-
let I = Math.max(1, v -
|
|
4717
|
+
const y = Math.floor($ / 2);
|
|
4718
|
+
let I = Math.max(1, v - y), F = Math.min(w, I + $ - 1);
|
|
4719
4719
|
F - I + 1 < $ && (I = Math.max(1, F - $ + 1));
|
|
4720
4720
|
for (let Z = I; Z <= F; Z++)
|
|
4721
4721
|
B.push(Z);
|
|
4722
4722
|
}
|
|
4723
4723
|
return B;
|
|
4724
|
-
}),
|
|
4724
|
+
}), x = u(
|
|
4725
4725
|
() => h(r({
|
|
4726
4726
|
variant: t.variant,
|
|
4727
4727
|
padding: t.padding
|
|
4728
4728
|
}))
|
|
4729
|
-
),
|
|
4729
|
+
), M = u(
|
|
4730
4730
|
() => h(i({ size: "md" }))
|
|
4731
|
-
),
|
|
4731
|
+
), z = u(
|
|
4732
4732
|
() => h(d({ size: "sm" }))
|
|
4733
4733
|
), P = (B, w) => {
|
|
4734
4734
|
let v = "inactive";
|
|
@@ -4739,22 +4739,22 @@ const es = {
|
|
|
4739
4739
|
};
|
|
4740
4740
|
return (B, w) => e.showPagination || B.$slots.footer ? (a(), n("div", {
|
|
4741
4741
|
key: 0,
|
|
4742
|
-
class: c(
|
|
4742
|
+
class: c(x.value)
|
|
4743
4743
|
}, [
|
|
4744
4744
|
s("div", sl, [
|
|
4745
|
-
e.selectable && e.selectedCount > 0 ? (a(), n("div", ll, g(e.selectedCount) + " of " + g(e.total) + " selected ", 1)) : (a(), n("div",
|
|
4746
|
-
B.$slots.footer ? (a(), n("div",
|
|
4747
|
-
|
|
4745
|
+
e.selectable && e.selectedCount > 0 ? (a(), n("div", ll, g(e.selectedCount) + " of " + g(e.total) + " selected ", 1)) : (a(), n("div", rl, " Showing " + g(m.value) + " to " + g(p.value) + " of " + g(e.total) + " entries ", 1)),
|
|
4746
|
+
B.$slots.footer ? (a(), n("div", nl, [
|
|
4747
|
+
b(B.$slots, "footer")
|
|
4748
4748
|
])) : f("", !0),
|
|
4749
4749
|
e.showPagination ? (a(), n("div", ol, [
|
|
4750
4750
|
s("div", il, [
|
|
4751
4751
|
S(Le, {
|
|
4752
4752
|
for: "pageSize",
|
|
4753
|
-
class: c(
|
|
4753
|
+
class: c(M.value),
|
|
4754
4754
|
inline: !0
|
|
4755
4755
|
}, {
|
|
4756
4756
|
default: V(() => [...w[5] || (w[5] = [
|
|
4757
|
-
|
|
4757
|
+
N("Show:", -1)
|
|
4758
4758
|
])]),
|
|
4759
4759
|
_: 1
|
|
4760
4760
|
}, 8, ["class"]),
|
|
@@ -4762,7 +4762,7 @@ const es = {
|
|
|
4762
4762
|
id: "pageSize",
|
|
4763
4763
|
"model-value": e.pageSize.toString(),
|
|
4764
4764
|
"onUpdate:modelValue": w[0] || (w[0] = (v) => B.$emit("update:pageSize", parseInt(v))),
|
|
4765
|
-
class: c(
|
|
4765
|
+
class: c(z.value)
|
|
4766
4766
|
}, {
|
|
4767
4767
|
default: V(() => [
|
|
4768
4768
|
(a(!0), n(E, null, U(e.pageSizeOptions, (v) => (a(), T(De, {
|
|
@@ -4986,7 +4986,7 @@ const es = {
|
|
|
4986
4986
|
defaultVariants: {
|
|
4987
4987
|
variant: "default"
|
|
4988
4988
|
}
|
|
4989
|
-
}),
|
|
4989
|
+
}), x = k("", {
|
|
4990
4990
|
variants: {
|
|
4991
4991
|
variant: {
|
|
4992
4992
|
default: "bg-slate-50",
|
|
@@ -4997,7 +4997,7 @@ const es = {
|
|
|
4997
4997
|
defaultVariants: {
|
|
4998
4998
|
variant: "default"
|
|
4999
4999
|
}
|
|
5000
|
-
}),
|
|
5000
|
+
}), M = k("divide-y", {
|
|
5001
5001
|
variants: {
|
|
5002
5002
|
variant: {
|
|
5003
5003
|
default: "bg-white divide-slate-200",
|
|
@@ -5008,49 +5008,49 @@ const es = {
|
|
|
5008
5008
|
defaultVariants: {
|
|
5009
5009
|
variant: "default"
|
|
5010
5010
|
}
|
|
5011
|
-
}),
|
|
5012
|
-
let
|
|
5011
|
+
}), z = u(() => {
|
|
5012
|
+
let j = [...t.data];
|
|
5013
5013
|
if (d.value) {
|
|
5014
5014
|
const O = t.columns.find((K) => K.key === d.value);
|
|
5015
|
-
O &&
|
|
5016
|
-
const de =
|
|
5015
|
+
O && j.sort((K, re) => {
|
|
5016
|
+
const de = y(K, O), ge = y(re, O);
|
|
5017
5017
|
return de < ge ? m.value === "asc" ? -1 : 1 : de > ge ? m.value === "asc" ? 1 : -1 : 0;
|
|
5018
5018
|
});
|
|
5019
5019
|
}
|
|
5020
|
-
return
|
|
5021
|
-
}), P = u(() => Math.ceil(
|
|
5022
|
-
if (!t.showPagination) return
|
|
5023
|
-
const
|
|
5024
|
-
return
|
|
5020
|
+
return j;
|
|
5021
|
+
}), P = u(() => Math.ceil(z.value.length / i.value)), B = u(() => {
|
|
5022
|
+
if (!t.showPagination) return z.value;
|
|
5023
|
+
const j = (o.value - 1) * i.value, O = j + i.value;
|
|
5024
|
+
return z.value.slice(j, O);
|
|
5025
5025
|
}), w = u(() => {
|
|
5026
|
-
let
|
|
5027
|
-
return t.selectable &&
|
|
5028
|
-
}), v = u(() =>
|
|
5029
|
-
const
|
|
5030
|
-
return
|
|
5031
|
-
}),
|
|
5032
|
-
(O) => I(O) === I(
|
|
5033
|
-
), Z = (
|
|
5026
|
+
let j = t.columns.length;
|
|
5027
|
+
return t.selectable && j++, t.$slots?.actions && j++, j;
|
|
5028
|
+
}), v = u(() => z.value.length > 0 && z.value.every((j) => F(j))), $ = u(() => {
|
|
5029
|
+
const j = z.value.filter((O) => F(O)).length;
|
|
5030
|
+
return j > 0 && j < z.value.length;
|
|
5031
|
+
}), y = (j, O) => O.accessor ? O.accessor(j) : O.key.split(".").reduce((K, re) => K?.[re], j), I = (j, O) => j[t.rowKey] || O, F = (j) => t.selectedItems.some(
|
|
5032
|
+
(O) => I(O) === I(j)
|
|
5033
|
+
), Z = (j) => {
|
|
5034
5034
|
const O = [...t.selectedItems], K = O.findIndex(
|
|
5035
|
-
(
|
|
5035
|
+
(re) => I(re) === I(j)
|
|
5036
5036
|
);
|
|
5037
|
-
K > -1 ? O.splice(K, 1) : O.push(
|
|
5037
|
+
K > -1 ? O.splice(K, 1) : O.push(j), r("selection-change", O);
|
|
5038
5038
|
}, te = () => {
|
|
5039
|
-
const
|
|
5040
|
-
r("selection-change",
|
|
5041
|
-
}, se = (
|
|
5042
|
-
|
|
5043
|
-
}, q = (
|
|
5044
|
-
r("row-click",
|
|
5039
|
+
const j = v.value ? [] : [...z.value];
|
|
5040
|
+
r("selection-change", j);
|
|
5041
|
+
}, se = (j) => {
|
|
5042
|
+
j.sortable && (d.value === j.key ? m.value = m.value === "asc" ? "desc" : "asc" : (d.value = j.key, m.value = "asc"), r("sort-change", { column: j.key, direction: m.value }));
|
|
5043
|
+
}, q = (j) => {
|
|
5044
|
+
r("row-click", j);
|
|
5045
5045
|
}, W = u(
|
|
5046
5046
|
() => h(p({ variant: t.variant }))
|
|
5047
5047
|
), A = u(
|
|
5048
5048
|
() => h(C({ variant: t.variant }))
|
|
5049
5049
|
), G = u(
|
|
5050
|
-
() => h(
|
|
5050
|
+
() => h(x({ variant: t.variant }))
|
|
5051
5051
|
), X = u(
|
|
5052
|
-
() => h(
|
|
5053
|
-
), le = (
|
|
5052
|
+
() => h(M({ variant: t.variant }))
|
|
5053
|
+
), le = (j) => h(
|
|
5054
5054
|
{
|
|
5055
5055
|
compact: "px-4 py-2",
|
|
5056
5056
|
normal: "px-6 py-3",
|
|
@@ -5058,7 +5058,7 @@ const es = {
|
|
|
5058
5058
|
}[t.density],
|
|
5059
5059
|
"text-left text-xs font-medium text-slate-500 uppercase tracking-wider",
|
|
5060
5060
|
{
|
|
5061
|
-
"cursor-pointer hover:bg-slate-100":
|
|
5061
|
+
"cursor-pointer hover:bg-slate-100": j.sortable
|
|
5062
5062
|
}
|
|
5063
5063
|
), H = u(() => h(
|
|
5064
5064
|
{
|
|
@@ -5074,26 +5074,26 @@ const es = {
|
|
|
5074
5074
|
comfortable: "px-8 py-6"
|
|
5075
5075
|
}[t.density],
|
|
5076
5076
|
"whitespace-nowrap text-sm font-medium"
|
|
5077
|
-
)),
|
|
5077
|
+
)), R = u(() => h(
|
|
5078
5078
|
{
|
|
5079
5079
|
compact: "px-4 py-4",
|
|
5080
5080
|
normal: "px-6 py-6",
|
|
5081
5081
|
comfortable: "px-8 py-8"
|
|
5082
5082
|
}[t.density],
|
|
5083
5083
|
"text-center"
|
|
5084
|
-
)), ie = (
|
|
5084
|
+
)), ie = (j, O) => h(
|
|
5085
5085
|
{
|
|
5086
|
-
"text-blue-600": d.value ===
|
|
5087
|
-
"text-slate-300": d.value !==
|
|
5086
|
+
"text-blue-600": d.value === j.key && m.value === O,
|
|
5087
|
+
"text-slate-300": d.value !== j.key || m.value !== O
|
|
5088
5088
|
}
|
|
5089
5089
|
);
|
|
5090
|
-
return oe(() => t.selectedItems, (
|
|
5091
|
-
}, { deep: !0 }), oe(() => t.pageSize, (
|
|
5092
|
-
i.value =
|
|
5093
|
-
}), (
|
|
5090
|
+
return oe(() => t.selectedItems, (j) => {
|
|
5091
|
+
}, { deep: !0 }), oe(() => t.pageSize, (j) => {
|
|
5092
|
+
i.value = j;
|
|
5093
|
+
}), (j, O) => (a(), n("div", {
|
|
5094
5094
|
class: c(W.value)
|
|
5095
5095
|
}, [
|
|
5096
|
-
e.title || e.description ||
|
|
5096
|
+
e.title || e.description || j.$slots.header ? (a(), T(Pe, {
|
|
5097
5097
|
key: 0,
|
|
5098
5098
|
title: e.title,
|
|
5099
5099
|
description: e.description,
|
|
@@ -5101,10 +5101,10 @@ const es = {
|
|
|
5101
5101
|
padding: e.headerPadding
|
|
5102
5102
|
}, {
|
|
5103
5103
|
header: V(() => [
|
|
5104
|
-
|
|
5104
|
+
b(j.$slots, "header")
|
|
5105
5105
|
]),
|
|
5106
5106
|
filters: V(() => [
|
|
5107
|
-
|
|
5107
|
+
b(j.$slots, "filters")
|
|
5108
5108
|
]),
|
|
5109
5109
|
_: 3
|
|
5110
5110
|
}, 8, ["title", "description", "variant", "padding"])) : f("", !0),
|
|
@@ -5129,7 +5129,7 @@ const es = {
|
|
|
5129
5129
|
(a(!0), n(E, null, U(e.columns, (K) => (a(), n("th", {
|
|
5130
5130
|
key: K.key,
|
|
5131
5131
|
class: c(le(K)),
|
|
5132
|
-
onClick: (
|
|
5132
|
+
onClick: (re) => se(K)
|
|
5133
5133
|
}, [
|
|
5134
5134
|
s("div", yl, [
|
|
5135
5135
|
s("span", null, g(K.label), 1),
|
|
@@ -5163,7 +5163,7 @@ const es = {
|
|
|
5163
5163
|
])) : f("", !0)
|
|
5164
5164
|
])
|
|
5165
5165
|
], 10, bl))), 128)),
|
|
5166
|
-
|
|
5166
|
+
j.$slots.actions ? (a(), n("th", {
|
|
5167
5167
|
key: 1,
|
|
5168
5168
|
class: c(D.value)
|
|
5169
5169
|
}, " Actions ", 2)) : f("", !0)
|
|
@@ -5172,11 +5172,11 @@ const es = {
|
|
|
5172
5172
|
s("tbody", {
|
|
5173
5173
|
class: c(X.value)
|
|
5174
5174
|
}, [
|
|
5175
|
-
(a(!0), n(E, null, U(B.value, (K,
|
|
5176
|
-
key: I(K,
|
|
5175
|
+
(a(!0), n(E, null, U(B.value, (K, re) => (a(), T(Fe, {
|
|
5176
|
+
key: I(K, re),
|
|
5177
5177
|
item: K,
|
|
5178
5178
|
columns: e.columns,
|
|
5179
|
-
index:
|
|
5179
|
+
index: re,
|
|
5180
5180
|
selectable: e.selectable,
|
|
5181
5181
|
"is-selected": F(K),
|
|
5182
5182
|
striped: e.striped,
|
|
@@ -5187,23 +5187,23 @@ const es = {
|
|
|
5187
5187
|
onRowClick: q
|
|
5188
5188
|
}, qe({
|
|
5189
5189
|
actions: V((de) => [
|
|
5190
|
-
|
|
5190
|
+
b(j.$slots, "actions", fe({ ref_for: !0 }, de))
|
|
5191
5191
|
]),
|
|
5192
5192
|
_: 2
|
|
5193
5193
|
}, [
|
|
5194
5194
|
U(e.columns, (de) => ({
|
|
5195
5195
|
name: `cell-${de.key}`,
|
|
5196
5196
|
fn: V((ge) => [
|
|
5197
|
-
|
|
5197
|
+
b(j.$slots, `cell-${de.key}`, fe({ ref_for: !0 }, ge))
|
|
5198
5198
|
])
|
|
5199
5199
|
}))
|
|
5200
5200
|
]), 1032, ["item", "columns", "index", "selectable", "is-selected", "striped", "hoverable", "clickable-rows", "density"]))), 128)),
|
|
5201
5201
|
B.value.length === 0 ? (a(), n("tr", kl, [
|
|
5202
5202
|
s("td", {
|
|
5203
5203
|
colspan: w.value,
|
|
5204
|
-
class: c(
|
|
5204
|
+
class: c(R.value)
|
|
5205
5205
|
}, [
|
|
5206
|
-
|
|
5206
|
+
b(j.$slots, "empty", {}, () => [
|
|
5207
5207
|
s("div", Cl, [
|
|
5208
5208
|
O[4] || (O[4] = s("div", { class: "text-slate-400 mb-2" }, [
|
|
5209
5209
|
s("svg", {
|
|
@@ -5228,11 +5228,11 @@ const es = {
|
|
|
5228
5228
|
], 2)
|
|
5229
5229
|
], 2)
|
|
5230
5230
|
]),
|
|
5231
|
-
e.showPagination ||
|
|
5231
|
+
e.showPagination || j.$slots.footer ? (a(), T(_e, {
|
|
5232
5232
|
key: 1,
|
|
5233
5233
|
"current-page": o.value,
|
|
5234
5234
|
"total-pages": P.value,
|
|
5235
|
-
total:
|
|
5235
|
+
total: z.value.length,
|
|
5236
5236
|
"page-size": i.value,
|
|
5237
5237
|
"show-pagination": e.showPagination,
|
|
5238
5238
|
selectable: e.selectable,
|
|
@@ -5243,7 +5243,7 @@ const es = {
|
|
|
5243
5243
|
"onUpdate:pageSize": O[1] || (O[1] = (K) => i.value = K)
|
|
5244
5244
|
}, {
|
|
5245
5245
|
footer: V(() => [
|
|
5246
|
-
|
|
5246
|
+
b(j.$slots, "footer")
|
|
5247
5247
|
]),
|
|
5248
5248
|
_: 3
|
|
5249
5249
|
}, 8, ["current-page", "total-pages", "total", "page-size", "show-pagination", "selectable", "selected-count", "variant", "padding"])) : f("", !0)
|
|
@@ -5332,8 +5332,8 @@ const es = {
|
|
|
5332
5332
|
return (d, m) => (a(), n("td", {
|
|
5333
5333
|
class: c(i.value)
|
|
5334
5334
|
}, [
|
|
5335
|
-
|
|
5336
|
-
|
|
5335
|
+
b(d.$slots, "default", {}, () => [
|
|
5336
|
+
N(g(t.value), 1)
|
|
5337
5337
|
])
|
|
5338
5338
|
], 2));
|
|
5339
5339
|
}
|
|
@@ -5442,7 +5442,7 @@ const es = {
|
|
|
5442
5442
|
defaultVariants: {
|
|
5443
5443
|
size: "md"
|
|
5444
5444
|
}
|
|
5445
|
-
}),
|
|
5445
|
+
}), x = k("rounded-md flex items-center gap-2 font-medium transition-colors", {
|
|
5446
5446
|
variants: {
|
|
5447
5447
|
variant: {
|
|
5448
5448
|
default: "text-slate-600 hover:text-slate-800 border border-slate-300 hover:bg-slate-50",
|
|
@@ -5460,7 +5460,7 @@ const es = {
|
|
|
5460
5460
|
variant: "default",
|
|
5461
5461
|
size: "md"
|
|
5462
5462
|
}
|
|
5463
|
-
}),
|
|
5463
|
+
}), M = k("border-b", {
|
|
5464
5464
|
variants: {
|
|
5465
5465
|
variant: {
|
|
5466
5466
|
default: "px-4 py-2 bg-blue-50 border-blue-200",
|
|
@@ -5471,14 +5471,14 @@ const es = {
|
|
|
5471
5471
|
defaultVariants: {
|
|
5472
5472
|
variant: "default"
|
|
5473
5473
|
}
|
|
5474
|
-
}),
|
|
5474
|
+
}), z = u(() => d.searchQuery || d.selectedStatus || d.dateFrom || d.dateTo), P = u(() => {
|
|
5475
5475
|
const H = [];
|
|
5476
5476
|
if (d.searchQuery && d.searchQuery.trim() && H.push({
|
|
5477
5477
|
key: "search",
|
|
5478
5478
|
label: "Search",
|
|
5479
5479
|
value: d.searchQuery
|
|
5480
5480
|
}), d.selectedStatus) {
|
|
5481
|
-
const D = d.statusOptions.find((
|
|
5481
|
+
const D = d.statusOptions.find((R) => R.value === d.selectedStatus);
|
|
5482
5482
|
H.push({
|
|
5483
5483
|
key: "status",
|
|
5484
5484
|
label: "Status",
|
|
@@ -5508,7 +5508,7 @@ const es = {
|
|
|
5508
5508
|
)
|
|
5509
5509
|
), $ = u(
|
|
5510
5510
|
() => "absolute right-2 top-1/2 transform -translate-y-1/2 text-slate-400 hover:text-slate-600 p-1"
|
|
5511
|
-
),
|
|
5511
|
+
), y = u(
|
|
5512
5512
|
() => h(
|
|
5513
5513
|
C({ size: "md" }),
|
|
5514
5514
|
"w-full focus:border-transparent"
|
|
@@ -5518,13 +5518,13 @@ const es = {
|
|
|
5518
5518
|
), F = u(
|
|
5519
5519
|
() => "text-slate-500"
|
|
5520
5520
|
), Z = u(
|
|
5521
|
-
() => h(
|
|
5521
|
+
() => h(x({ variant: "default", size: "md" }))
|
|
5522
5522
|
), te = u(
|
|
5523
|
-
() => h(
|
|
5523
|
+
() => h(x({ variant: "primary", size: "md" }))
|
|
5524
5524
|
), se = u(
|
|
5525
|
-
() => h(
|
|
5525
|
+
() => h(x({ variant: "success", size: "md" }))
|
|
5526
5526
|
), q = u(
|
|
5527
|
-
() => h(
|
|
5527
|
+
() => h(M({ variant: d.variant }))
|
|
5528
5528
|
), W = u(
|
|
5529
5529
|
() => "text-sm text-blue-700 font-medium"
|
|
5530
5530
|
), A = u(
|
|
@@ -5557,13 +5557,13 @@ const es = {
|
|
|
5557
5557
|
}, null, 8, ["class"]),
|
|
5558
5558
|
S(he, {
|
|
5559
5559
|
"model-value": e.searchQuery,
|
|
5560
|
-
onInput: D[0] || (D[0] = (
|
|
5560
|
+
onInput: D[0] || (D[0] = (R) => H.$emit("update:searchQuery", R.target.value)),
|
|
5561
5561
|
placeholder: e.searchPlaceholder,
|
|
5562
5562
|
class: c(v.value)
|
|
5563
5563
|
}, null, 8, ["model-value", "placeholder", "class"]),
|
|
5564
5564
|
e.searchQuery ? (a(), T(ee, {
|
|
5565
5565
|
key: 0,
|
|
5566
|
-
onClick: D[1] || (D[1] = (
|
|
5566
|
+
onClick: D[1] || (D[1] = (R) => H.$emit("update:searchQuery", "")),
|
|
5567
5567
|
class: c($.value)
|
|
5568
5568
|
}, {
|
|
5569
5569
|
default: V(() => [
|
|
@@ -5576,15 +5576,15 @@ const es = {
|
|
|
5576
5576
|
e.statusOptions.length > 0 ? (a(), n("div", Ml, [
|
|
5577
5577
|
S(Ce, {
|
|
5578
5578
|
"model-value": e.selectedStatus,
|
|
5579
|
-
onChange: D[2] || (D[2] = (
|
|
5580
|
-
class: c(
|
|
5579
|
+
onChange: D[2] || (D[2] = (R) => H.$emit("update:selectedStatus", R.target.value)),
|
|
5580
|
+
class: c(y.value)
|
|
5581
5581
|
}, {
|
|
5582
5582
|
default: V(() => [
|
|
5583
5583
|
D[7] || (D[7] = s("option", { value: "" }, "All Status", -1)),
|
|
5584
|
-
(a(!0), n(E, null, U(e.statusOptions, (
|
|
5585
|
-
key:
|
|
5586
|
-
value:
|
|
5587
|
-
}, g(
|
|
5584
|
+
(a(!0), n(E, null, U(e.statusOptions, (R) => (a(), n("option", {
|
|
5585
|
+
key: R.value,
|
|
5586
|
+
value: R.value
|
|
5587
|
+
}, g(R.label), 9, jl))), 128))
|
|
5588
5588
|
]),
|
|
5589
5589
|
_: 1
|
|
5590
5590
|
}, 8, ["model-value", "class"])
|
|
@@ -5593,7 +5593,7 @@ const es = {
|
|
|
5593
5593
|
S(he, {
|
|
5594
5594
|
type: "date",
|
|
5595
5595
|
"model-value": e.dateFrom,
|
|
5596
|
-
onInput: D[3] || (D[3] = (
|
|
5596
|
+
onInput: D[3] || (D[3] = (R) => H.$emit("update:dateFrom", R.target.value)),
|
|
5597
5597
|
class: c(I.value)
|
|
5598
5598
|
}, null, 8, ["model-value", "class"]),
|
|
5599
5599
|
s("span", {
|
|
@@ -5602,43 +5602,43 @@ const es = {
|
|
|
5602
5602
|
S(he, {
|
|
5603
5603
|
type: "date",
|
|
5604
5604
|
"model-value": e.dateTo,
|
|
5605
|
-
onInput: D[4] || (D[4] = (
|
|
5605
|
+
onInput: D[4] || (D[4] = (R) => H.$emit("update:dateTo", R.target.value)),
|
|
5606
5606
|
class: c(I.value)
|
|
5607
5607
|
}, null, 8, ["model-value", "class"])
|
|
5608
5608
|
])) : f("", !0),
|
|
5609
5609
|
H.$slots.filters ? (a(), n("div", Il, [
|
|
5610
|
-
|
|
5610
|
+
b(H.$slots, "filters")
|
|
5611
5611
|
])) : f("", !0),
|
|
5612
5612
|
s("div", Ll, [
|
|
5613
|
-
|
|
5613
|
+
z.value ? (a(), T(ee, {
|
|
5614
5614
|
key: 0,
|
|
5615
5615
|
onClick: X,
|
|
5616
5616
|
class: c(Z.value)
|
|
5617
5617
|
}, {
|
|
5618
5618
|
default: V(() => [...D[8] || (D[8] = [
|
|
5619
|
-
|
|
5619
|
+
N(" Clear Filters ", -1)
|
|
5620
5620
|
])]),
|
|
5621
5621
|
_: 1
|
|
5622
5622
|
}, 8, ["class"])) : f("", !0),
|
|
5623
5623
|
e.showExport ? (a(), T(ee, {
|
|
5624
5624
|
key: 1,
|
|
5625
|
-
onClick: D[5] || (D[5] = (
|
|
5625
|
+
onClick: D[5] || (D[5] = (R) => H.$emit("export")),
|
|
5626
5626
|
class: c(te.value)
|
|
5627
5627
|
}, {
|
|
5628
5628
|
default: V(() => [
|
|
5629
5629
|
S(o, { class: "w-4 h-4" }),
|
|
5630
|
-
D[9] || (D[9] =
|
|
5630
|
+
D[9] || (D[9] = N(" Export ", -1))
|
|
5631
5631
|
]),
|
|
5632
5632
|
_: 1
|
|
5633
5633
|
}, 8, ["class"])) : f("", !0),
|
|
5634
5634
|
e.showAdd ? (a(), T(ee, {
|
|
5635
5635
|
key: 2,
|
|
5636
|
-
onClick: D[6] || (D[6] = (
|
|
5636
|
+
onClick: D[6] || (D[6] = (R) => H.$emit("add")),
|
|
5637
5637
|
class: c(se.value)
|
|
5638
5638
|
}, {
|
|
5639
5639
|
default: V(() => [
|
|
5640
5640
|
S(i, { class: "w-4 h-4" }),
|
|
5641
|
-
D[10] || (D[10] =
|
|
5641
|
+
D[10] || (D[10] = N(" Add New ", -1))
|
|
5642
5642
|
]),
|
|
5643
5643
|
_: 1
|
|
5644
5644
|
}, 8, ["class"])) : f("", !0)
|
|
@@ -5652,13 +5652,13 @@ const es = {
|
|
|
5652
5652
|
s("span", {
|
|
5653
5653
|
class: c(W.value)
|
|
5654
5654
|
}, "Active filters:", 2),
|
|
5655
|
-
(a(!0), n(E, null, U(P.value, (
|
|
5656
|
-
key:
|
|
5655
|
+
(a(!0), n(E, null, U(P.value, (R) => (a(), n("div", {
|
|
5656
|
+
key: R.key,
|
|
5657
5657
|
class: c(A.value)
|
|
5658
5658
|
}, [
|
|
5659
|
-
s("span", null, g(
|
|
5659
|
+
s("span", null, g(R.label) + ": " + g(R.value), 1),
|
|
5660
5660
|
S(ee, {
|
|
5661
|
-
onClick: (ie) => le(
|
|
5661
|
+
onClick: (ie) => le(R.key),
|
|
5662
5662
|
class: c(G.value)
|
|
5663
5663
|
}, {
|
|
5664
5664
|
default: V(() => [
|
|
@@ -5674,7 +5674,7 @@ const es = {
|
|
|
5674
5674
|
}, Pl = { class: "flex items-center gap-3" }, Fl = {
|
|
5675
5675
|
key: 0,
|
|
5676
5676
|
class: "flex items-center gap-3"
|
|
5677
|
-
}, _l = { class: "text-sm text-slate-600" },
|
|
5677
|
+
}, _l = { class: "text-sm text-slate-600" }, Rl = { class: "flex items-center gap-2" }, Nl = { class: "flex items-center gap-3" }, Hl = ["onClick", "title"], Ol = {
|
|
5678
5678
|
key: 1,
|
|
5679
5679
|
class: "relative"
|
|
5680
5680
|
}, ql = { class: "p-3" }, El = { class: "space-y-1" }, Ul = { class: "flex items-center gap-2 cursor-pointer w-full" }, Zl = ["checked", "onChange"], Gl = ["disabled"], Kl = {
|
|
@@ -5690,7 +5690,7 @@ const es = {
|
|
|
5690
5690
|
template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9h16.5m-16.5 6.75h16.5" /></svg>'
|
|
5691
5691
|
}, Jl = {
|
|
5692
5692
|
template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14" /></svg>'
|
|
5693
|
-
},
|
|
5693
|
+
}, er = [
|
|
5694
5694
|
{
|
|
5695
5695
|
key: "delete",
|
|
5696
5696
|
label: "Delete",
|
|
@@ -5707,13 +5707,13 @@ const es = {
|
|
|
5707
5707
|
},
|
|
5708
5708
|
variant: "primary"
|
|
5709
5709
|
}
|
|
5710
|
-
],
|
|
5710
|
+
], tr = {
|
|
5711
5711
|
name: "DataTableToolBar"
|
|
5712
|
-
},
|
|
5712
|
+
}, ar = /* @__PURE__ */ Object.assign(tr, {
|
|
5713
5713
|
props: {
|
|
5714
5714
|
selectedItems: { type: Array, default: () => [] },
|
|
5715
5715
|
totalItems: { type: Number, default: 0 },
|
|
5716
|
-
bulkActions: { type: Array, default: () =>
|
|
5716
|
+
bulkActions: { type: Array, default: () => er },
|
|
5717
5717
|
showDensityToggle: { type: Boolean, default: !0 },
|
|
5718
5718
|
showColumnToggle: { type: Boolean, default: !0 },
|
|
5719
5719
|
showRefresh: { type: Boolean, default: !0 },
|
|
@@ -5759,7 +5759,7 @@ const es = {
|
|
|
5759
5759
|
variant: "default",
|
|
5760
5760
|
padding: "normal"
|
|
5761
5761
|
}
|
|
5762
|
-
}),
|
|
5762
|
+
}), x = k("px-3 py-1.5 text-sm font-medium rounded-md flex items-center gap-1 transition-colors", {
|
|
5763
5763
|
variants: {
|
|
5764
5764
|
variant: {
|
|
5765
5765
|
danger: "text-red-700 bg-red-50 hover:bg-red-100 border border-red-200",
|
|
@@ -5770,7 +5770,7 @@ const es = {
|
|
|
5770
5770
|
defaultVariants: {
|
|
5771
5771
|
variant: "secondary"
|
|
5772
5772
|
}
|
|
5773
|
-
}),
|
|
5773
|
+
}), M = k("p-2 border border-slate-300 transition-colors", {
|
|
5774
5774
|
variants: {
|
|
5775
5775
|
active: {
|
|
5776
5776
|
true: "bg-blue-50 text-blue-600 border-blue-300",
|
|
@@ -5786,7 +5786,7 @@ const es = {
|
|
|
5786
5786
|
active: !1,
|
|
5787
5787
|
position: "middle"
|
|
5788
5788
|
}
|
|
5789
|
-
}),
|
|
5789
|
+
}), z = k("px-3 py-2 text-sm border border-slate-300 rounded-md flex items-center gap-2 transition-colors", {
|
|
5790
5790
|
variants: {
|
|
5791
5791
|
state: {
|
|
5792
5792
|
normal: "text-slate-600 hover:text-slate-800 hover:bg-slate-50",
|
|
@@ -5805,7 +5805,7 @@ const es = {
|
|
|
5805
5805
|
() => "flex items-center gap-2 px-3 py-2 text-sm text-slate-600 hover:text-slate-800 border border-slate-300 rounded-md hover:bg-slate-50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1"
|
|
5806
5806
|
), $ = u(
|
|
5807
5807
|
() => "absolute right-0 top-full mt-1 w-56 bg-white border border-slate-200 rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
|
|
5808
|
-
),
|
|
5808
|
+
), y = u(
|
|
5809
5809
|
() => "text-xs font-medium text-slate-500 uppercase tracking-wider mb-2 border-b border-slate-100 pb-2"
|
|
5810
5810
|
), I = u(
|
|
5811
5811
|
() => "py-1 hover:bg-slate-50 rounded transition-colors"
|
|
@@ -5817,13 +5817,13 @@ const es = {
|
|
|
5817
5817
|
i.value && d.value && !i.value.contains(H.target) && !d.value.contains(H.target) && (o.value = !1);
|
|
5818
5818
|
}, se = () => {
|
|
5819
5819
|
o.value = !o.value;
|
|
5820
|
-
}, q = (H) => h(
|
|
5820
|
+
}, q = (H) => h(x({ variant: H.variant || "secondary" })), W = (H) => {
|
|
5821
5821
|
let D = "middle";
|
|
5822
|
-
return H === "compact" ? D = "first" : H === "comfortable" && (D = "last"), h(
|
|
5822
|
+
return H === "compact" ? D = "first" : H === "comfortable" && (D = "last"), h(M({
|
|
5823
5823
|
active: t.density === H,
|
|
5824
5824
|
position: D
|
|
5825
5825
|
}));
|
|
5826
|
-
}, A = () => h(
|
|
5826
|
+
}, A = () => h(z({
|
|
5827
5827
|
state: t.isRefreshing ? "refreshing" : "normal"
|
|
5828
5828
|
})), G = () => h("w-4 h-4", {
|
|
5829
5829
|
"animate-spin": t.isRefreshing
|
|
@@ -5840,18 +5840,18 @@ const es = {
|
|
|
5840
5840
|
s("div", Pl, [
|
|
5841
5841
|
m.value > 0 ? (a(), n("div", Fl, [
|
|
5842
5842
|
s("span", _l, g(m.value) + " selected ", 1),
|
|
5843
|
-
s("div",
|
|
5844
|
-
(a(!0), n(E, null, U(e.bulkActions, (
|
|
5845
|
-
key:
|
|
5846
|
-
onClick: (ie) => H.$emit("bulk-action", { action:
|
|
5847
|
-
class: c(q(
|
|
5843
|
+
s("div", Rl, [
|
|
5844
|
+
(a(!0), n(E, null, U(e.bulkActions, (R) => (a(), T(ee, {
|
|
5845
|
+
key: R.key,
|
|
5846
|
+
onClick: (ie) => H.$emit("bulk-action", { action: R.key, items: e.selectedItems }),
|
|
5847
|
+
class: c(q(R))
|
|
5848
5848
|
}, {
|
|
5849
5849
|
default: V(() => [
|
|
5850
|
-
|
|
5850
|
+
R.icon ? (a(), T(Y(R.icon), {
|
|
5851
5851
|
key: 0,
|
|
5852
5852
|
class: "w-4 h-4"
|
|
5853
5853
|
})) : f("", !0),
|
|
5854
|
-
|
|
5854
|
+
N(" " + g(R.label), 1)
|
|
5855
5855
|
]),
|
|
5856
5856
|
_: 2
|
|
5857
5857
|
}, 1032, ["onClick", "class"]))), 128))
|
|
@@ -5861,19 +5861,19 @@ const es = {
|
|
|
5861
5861
|
class: c(B.value)
|
|
5862
5862
|
}, g(e.totalItems) + " " + g(e.totalItems === 1 ? "item" : "items"), 3)) : f("", !0)
|
|
5863
5863
|
]),
|
|
5864
|
-
s("div",
|
|
5864
|
+
s("div", Nl, [
|
|
5865
5865
|
e.showDensityToggle ? (a(), n("div", {
|
|
5866
5866
|
key: 0,
|
|
5867
5867
|
class: c(w.value)
|
|
5868
5868
|
}, [
|
|
5869
|
-
(a(), n(E, null, U(p, (
|
|
5870
|
-
key:
|
|
5871
|
-
onClick: (ie) => H.$emit("update:density",
|
|
5872
|
-
class: c(W(
|
|
5873
|
-
title:
|
|
5869
|
+
(a(), n(E, null, U(p, (R) => s("button", {
|
|
5870
|
+
key: R.value,
|
|
5871
|
+
onClick: (ie) => H.$emit("update:density", R.value),
|
|
5872
|
+
class: c(W(R.value)),
|
|
5873
|
+
title: R.label,
|
|
5874
5874
|
type: "button"
|
|
5875
5875
|
}, [
|
|
5876
|
-
(a(), T(Y(
|
|
5876
|
+
(a(), T(Y(R.icon), { class: "w-4 h-4" }))
|
|
5877
5877
|
], 10, Hl)), 64))
|
|
5878
5878
|
], 2)) : f("", !0),
|
|
5879
5879
|
e.showColumnToggle ? (a(), n("div", Ol, [
|
|
@@ -5896,23 +5896,23 @@ const es = {
|
|
|
5896
5896
|
}, [
|
|
5897
5897
|
s("div", ql, [
|
|
5898
5898
|
s("div", {
|
|
5899
|
-
class: c(
|
|
5899
|
+
class: c(y.value)
|
|
5900
5900
|
}, " Show Columns ", 2),
|
|
5901
5901
|
s("div", El, [
|
|
5902
|
-
(a(!0), n(E, null, U(e.toggleableColumns, (
|
|
5903
|
-
key:
|
|
5902
|
+
(a(!0), n(E, null, U(e.toggleableColumns, (R) => (a(), n("div", {
|
|
5903
|
+
key: R.key,
|
|
5904
5904
|
class: c(I.value)
|
|
5905
5905
|
}, [
|
|
5906
5906
|
s("label", Ul, [
|
|
5907
5907
|
s("input", {
|
|
5908
5908
|
type: "checkbox",
|
|
5909
|
-
checked: X(
|
|
5910
|
-
onChange: (ie) => le(
|
|
5909
|
+
checked: X(R.key),
|
|
5910
|
+
onChange: (ie) => le(R.key, ie.target.checked),
|
|
5911
5911
|
class: c(F.value)
|
|
5912
5912
|
}, null, 42, Zl),
|
|
5913
5913
|
s("span", {
|
|
5914
5914
|
class: c(Z.value)
|
|
5915
|
-
}, g(
|
|
5915
|
+
}, g(R.label), 3)
|
|
5916
5916
|
])
|
|
5917
5917
|
], 2))), 128))
|
|
5918
5918
|
])
|
|
@@ -5923,7 +5923,7 @@ const es = {
|
|
|
5923
5923
|
])) : f("", !0),
|
|
5924
5924
|
e.showRefresh ? (a(), n("button", {
|
|
5925
5925
|
key: 2,
|
|
5926
|
-
onClick: D[1] || (D[1] = (
|
|
5926
|
+
onClick: D[1] || (D[1] = (R) => H.$emit("refresh")),
|
|
5927
5927
|
disabled: e.isRefreshing,
|
|
5928
5928
|
class: c(A()),
|
|
5929
5929
|
type: "button"
|
|
@@ -5934,12 +5934,12 @@ const es = {
|
|
|
5934
5934
|
D[3] || (D[3] = s("span", null, "Refresh", -1))
|
|
5935
5935
|
], 10, Gl)) : f("", !0),
|
|
5936
5936
|
H.$slots.actions ? (a(), n("div", Kl, [
|
|
5937
|
-
|
|
5937
|
+
b(H.$slots, "actions")
|
|
5938
5938
|
])) : f("", !0)
|
|
5939
5939
|
])
|
|
5940
5940
|
], 2));
|
|
5941
5941
|
}
|
|
5942
|
-
}),
|
|
5942
|
+
}), sr = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12" }, lr = { class: "grid grid-cols-1 md:grid-cols-4 gap-8" }, rr = { class: "col-span-1 md:col-span-2" }, nr = { class: "space-y-2" }, or = { class: "flex space-x-4" }, ir = { class: "flex flex-col md:flex-row justify-between items-center" }, dr = { class: "flex space-x-6 mt-4 md:mt-0" }, cr = {
|
|
5943
5943
|
__name: "Footer",
|
|
5944
5944
|
props: {
|
|
5945
5945
|
className: {
|
|
@@ -5953,37 +5953,37 @@ const es = {
|
|
|
5953
5953
|
return a(), n("footer", {
|
|
5954
5954
|
class: c(L(h)("bg-gray-50 border-t border-gray-200", e.className))
|
|
5955
5955
|
}, [
|
|
5956
|
-
s("div",
|
|
5957
|
-
s("div",
|
|
5958
|
-
s("div",
|
|
5959
|
-
|
|
5956
|
+
s("div", sr, [
|
|
5957
|
+
s("div", lr, [
|
|
5958
|
+
s("div", rr, [
|
|
5959
|
+
b(l.$slots, "brand", {}, () => [
|
|
5960
5960
|
S(r, { class: "mb-4" }),
|
|
5961
5961
|
S(o, { class: "text-gray-600 max-w-md" }, {
|
|
5962
5962
|
default: V(() => [...t[0] || (t[0] = [
|
|
5963
|
-
|
|
5963
|
+
N(" Building beautiful applications with modern Vue.js components. ", -1)
|
|
5964
5964
|
])]),
|
|
5965
5965
|
_: 1
|
|
5966
5966
|
})
|
|
5967
5967
|
])
|
|
5968
5968
|
]),
|
|
5969
5969
|
s("div", null, [
|
|
5970
|
-
|
|
5970
|
+
b(l.$slots, "links", {}, () => [
|
|
5971
5971
|
S(i, {
|
|
5972
5972
|
variant: "h6",
|
|
5973
5973
|
class: "mb-4"
|
|
5974
5974
|
}, {
|
|
5975
5975
|
default: V(() => [...t[1] || (t[1] = [
|
|
5976
|
-
|
|
5976
|
+
N("Quick Links", -1)
|
|
5977
5977
|
])]),
|
|
5978
5978
|
_: 1
|
|
5979
5979
|
}),
|
|
5980
|
-
s("div",
|
|
5980
|
+
s("div", nr, [
|
|
5981
5981
|
S(d, {
|
|
5982
5982
|
href: "#",
|
|
5983
5983
|
class: "block text-gray-600 hover:text-gray-900"
|
|
5984
5984
|
}, {
|
|
5985
5985
|
default: V(() => [...t[2] || (t[2] = [
|
|
5986
|
-
|
|
5986
|
+
N("About", -1)
|
|
5987
5987
|
])]),
|
|
5988
5988
|
_: 1
|
|
5989
5989
|
}),
|
|
@@ -5992,7 +5992,7 @@ const es = {
|
|
|
5992
5992
|
class: "block text-gray-600 hover:text-gray-900"
|
|
5993
5993
|
}, {
|
|
5994
5994
|
default: V(() => [...t[3] || (t[3] = [
|
|
5995
|
-
|
|
5995
|
+
N("Services", -1)
|
|
5996
5996
|
])]),
|
|
5997
5997
|
_: 1
|
|
5998
5998
|
}),
|
|
@@ -6001,7 +6001,7 @@ const es = {
|
|
|
6001
6001
|
class: "block text-gray-600 hover:text-gray-900"
|
|
6002
6002
|
}, {
|
|
6003
6003
|
default: V(() => [...t[4] || (t[4] = [
|
|
6004
|
-
|
|
6004
|
+
N("Contact", -1)
|
|
6005
6005
|
])]),
|
|
6006
6006
|
_: 1
|
|
6007
6007
|
})
|
|
@@ -6009,17 +6009,17 @@ const es = {
|
|
|
6009
6009
|
])
|
|
6010
6010
|
]),
|
|
6011
6011
|
s("div", null, [
|
|
6012
|
-
|
|
6012
|
+
b(l.$slots, "social", {}, () => [
|
|
6013
6013
|
S(i, {
|
|
6014
6014
|
variant: "h6",
|
|
6015
6015
|
class: "mb-4"
|
|
6016
6016
|
}, {
|
|
6017
6017
|
default: V(() => [...t[5] || (t[5] = [
|
|
6018
|
-
|
|
6018
|
+
N("Follow Us", -1)
|
|
6019
6019
|
])]),
|
|
6020
6020
|
_: 1
|
|
6021
6021
|
}),
|
|
6022
|
-
s("div",
|
|
6022
|
+
s("div", or, [
|
|
6023
6023
|
S(d, {
|
|
6024
6024
|
href: "#",
|
|
6025
6025
|
class: "text-gray-600 hover:text-gray-900"
|
|
@@ -6049,23 +6049,23 @@ const es = {
|
|
|
6049
6049
|
])
|
|
6050
6050
|
]),
|
|
6051
6051
|
S(p, { class: "my-8" }),
|
|
6052
|
-
s("div",
|
|
6053
|
-
|
|
6052
|
+
s("div", ir, [
|
|
6053
|
+
b(l.$slots, "copyright", {}, () => [
|
|
6054
6054
|
S(o, { class: "text-gray-600" }, {
|
|
6055
6055
|
default: V(() => [
|
|
6056
|
-
|
|
6056
|
+
N(" © " + g((/* @__PURE__ */ new Date()).getFullYear()) + " Your Company. All rights reserved. ", 1)
|
|
6057
6057
|
]),
|
|
6058
6058
|
_: 1
|
|
6059
6059
|
})
|
|
6060
6060
|
]),
|
|
6061
|
-
|
|
6062
|
-
s("div",
|
|
6061
|
+
b(l.$slots, "legal", {}, () => [
|
|
6062
|
+
s("div", dr, [
|
|
6063
6063
|
S(d, {
|
|
6064
6064
|
href: "#",
|
|
6065
6065
|
class: "text-gray-600 hover:text-gray-900"
|
|
6066
6066
|
}, {
|
|
6067
6067
|
default: V(() => [...t[6] || (t[6] = [
|
|
6068
|
-
|
|
6068
|
+
N("Privacy", -1)
|
|
6069
6069
|
])]),
|
|
6070
6070
|
_: 1
|
|
6071
6071
|
}),
|
|
@@ -6074,7 +6074,7 @@ const es = {
|
|
|
6074
6074
|
class: "text-gray-600 hover:text-gray-900"
|
|
6075
6075
|
}, {
|
|
6076
6076
|
default: V(() => [...t[7] || (t[7] = [
|
|
6077
|
-
|
|
6077
|
+
N("Terms", -1)
|
|
6078
6078
|
])]),
|
|
6079
6079
|
_: 1
|
|
6080
6080
|
})
|
|
@@ -6085,19 +6085,19 @@ const es = {
|
|
|
6085
6085
|
], 2);
|
|
6086
6086
|
};
|
|
6087
6087
|
}
|
|
6088
|
-
},
|
|
6088
|
+
}, ur = { class: "flex items-center justify-between h-16 px-6" }, mr = { class: "flex items-center" }, fr = {
|
|
6089
6089
|
key: 0,
|
|
6090
6090
|
class: "flex items-center space-x-3 mr-6"
|
|
6091
|
-
},
|
|
6091
|
+
}, vr = { class: "flex items-center space-x-2 text-sm" }, gr = { class: "text-gray-500" }, hr = { class: "text-gray-900 font-medium" }, pr = { class: "flex items-center space-x-4" }, br = { class: "relative" }, yr = {
|
|
6092
6092
|
key: 0,
|
|
6093
6093
|
class: "absolute -top-1 -right-1 w-4 h-4 bg-red-500 text-white text-xs rounded-full flex items-center justify-center"
|
|
6094
|
-
},
|
|
6094
|
+
}, xr = {
|
|
6095
6095
|
key: 0,
|
|
6096
6096
|
class: "absolute right-6 top-16 mt-2 w-80 bg-white rounded-lg shadow-lg border border-gray-200 z-50"
|
|
6097
|
-
},
|
|
6097
|
+
}, kr = { class: "max-h-96 overflow-y-auto" }, wr = { class: "flex items-start space-x-3" }, Cr = { class: "flex-1" }, $r = { class: "text-sm text-gray-900" }, Sr = { class: "text-xs text-gray-500 mt-1" }, zr = { class: "relative" }, Br = { class: "w-8 h-8 bg-gray-300 rounded-full flex items-center justify-center" }, Vr = { class: "text-gray-600 text-sm font-medium" }, Mr = { class: "hidden md:block text-left" }, jr = { class: "text-sm font-medium text-gray-900" }, Tr = { class: "text-xs text-gray-500" }, Ir = {
|
|
6098
6098
|
key: 0,
|
|
6099
6099
|
class: "absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg border border-gray-200 z-50"
|
|
6100
|
-
},
|
|
6100
|
+
}, Lr = { class: "p-4 border-b border-gray-200" }, Dr = { class: "text-sm font-medium text-gray-900" }, Ar = { class: "text-xs text-gray-500" }, Pr = { class: "py-2" }, Fr = ["href", "onClick"], _r = {
|
|
6101
6101
|
__name: "Header",
|
|
6102
6102
|
props: {
|
|
6103
6103
|
sidebarWidth: {
|
|
@@ -6156,9 +6156,9 @@ const es = {
|
|
|
6156
6156
|
template: '<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"/></svg>'
|
|
6157
6157
|
}
|
|
6158
6158
|
}
|
|
6159
|
-
],
|
|
6159
|
+
], x = u(() => t.user.name.split(" ").map((v) => v[0]).join("").toUpperCase()), M = () => {
|
|
6160
6160
|
i.value = !i.value, d.value = !1;
|
|
6161
|
-
},
|
|
6161
|
+
}, z = () => {
|
|
6162
6162
|
d.value = !d.value, i.value = !1;
|
|
6163
6163
|
}, P = (v) => {
|
|
6164
6164
|
r("profile-action", v), d.value = !1;
|
|
@@ -6181,16 +6181,16 @@ const es = {
|
|
|
6181
6181
|
)),
|
|
6182
6182
|
style: ce({ left: `${e.sidebarWidth}px` })
|
|
6183
6183
|
}, [
|
|
6184
|
-
s("div",
|
|
6185
|
-
s("div",
|
|
6186
|
-
e.sidebarCollapsed ? (a(), n("div",
|
|
6184
|
+
s("div", ur, [
|
|
6185
|
+
s("div", mr, [
|
|
6186
|
+
e.sidebarCollapsed ? (a(), n("div", fr, [...$[1] || ($[1] = [
|
|
6187
6187
|
s("div", { class: "w-8 h-8 bg-blue-600 rounded-lg flex items-center justify-center" }, [
|
|
6188
6188
|
s("span", { class: "text-white font-bold text-sm" }, "UI")
|
|
6189
6189
|
], -1),
|
|
6190
6190
|
s("h1", { class: "text-xl font-semibold text-gray-900" }, "Dashboard", -1)
|
|
6191
6191
|
])])) : f("", !0),
|
|
6192
|
-
s("nav",
|
|
6193
|
-
s("span",
|
|
6192
|
+
s("nav", vr, [
|
|
6193
|
+
s("span", gr, g(e.currentSection), 1),
|
|
6194
6194
|
$[2] || ($[2] = s("svg", {
|
|
6195
6195
|
class: "w-4 h-4 text-gray-400",
|
|
6196
6196
|
fill: "none",
|
|
@@ -6204,11 +6204,11 @@ const es = {
|
|
|
6204
6204
|
d: "M9 5l7 7-7 7"
|
|
6205
6205
|
})
|
|
6206
6206
|
], -1)),
|
|
6207
|
-
s("span",
|
|
6207
|
+
s("span", hr, g(e.currentPage), 1)
|
|
6208
6208
|
])
|
|
6209
6209
|
]),
|
|
6210
|
-
s("div",
|
|
6211
|
-
s("div",
|
|
6210
|
+
s("div", pr, [
|
|
6211
|
+
s("div", br, [
|
|
6212
6212
|
$[3] || ($[3] = s("div", { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" }, [
|
|
6213
6213
|
s("svg", {
|
|
6214
6214
|
class: "w-4 h-4 text-gray-400",
|
|
@@ -6228,13 +6228,13 @@ const es = {
|
|
|
6228
6228
|
type: "text",
|
|
6229
6229
|
placeholder: "Search...",
|
|
6230
6230
|
class: "pl-10 pr-4 py-2 w-64 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none",
|
|
6231
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
6231
|
+
"onUpdate:modelValue": $[0] || ($[0] = (y) => o.value = y)
|
|
6232
6232
|
}, null, 512), [
|
|
6233
6233
|
[je, o.value]
|
|
6234
6234
|
])
|
|
6235
6235
|
]),
|
|
6236
6236
|
s("button", {
|
|
6237
|
-
onClick:
|
|
6237
|
+
onClick: M,
|
|
6238
6238
|
class: "relative p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-50 transition-colors"
|
|
6239
6239
|
}, [
|
|
6240
6240
|
$[4] || ($[4] = s("svg", {
|
|
@@ -6256,22 +6256,22 @@ const es = {
|
|
|
6256
6256
|
d: "M13 3h2.586a1 1 0 01.707.293l6.414 6.414a1 1 0 01.293.707V19a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h4L13 3z"
|
|
6257
6257
|
})
|
|
6258
6258
|
], -1)),
|
|
6259
|
-
m.value > 0 ? (a(), n("span",
|
|
6259
|
+
m.value > 0 ? (a(), n("span", yr, g(m.value), 1)) : f("", !0)
|
|
6260
6260
|
]),
|
|
6261
|
-
i.value ? (a(), n("div",
|
|
6261
|
+
i.value ? (a(), n("div", xr, [
|
|
6262
6262
|
$[6] || ($[6] = s("div", { class: "p-4 border-b border-gray-200" }, [
|
|
6263
6263
|
s("h3", { class: "text-lg font-semibold text-gray-900" }, "Notifications")
|
|
6264
6264
|
], -1)),
|
|
6265
|
-
s("div",
|
|
6266
|
-
(a(!0), n(E, null, U(p.value, (
|
|
6267
|
-
key:
|
|
6265
|
+
s("div", kr, [
|
|
6266
|
+
(a(!0), n(E, null, U(p.value, (y) => (a(), n("div", {
|
|
6267
|
+
key: y.id,
|
|
6268
6268
|
class: "p-4 border-b border-gray-100 hover:bg-gray-50 cursor-pointer"
|
|
6269
6269
|
}, [
|
|
6270
|
-
s("div",
|
|
6270
|
+
s("div", wr, [
|
|
6271
6271
|
$[5] || ($[5] = s("div", { class: "flex-shrink-0 w-2 h-2 mt-2 bg-blue-500 rounded-full" }, null, -1)),
|
|
6272
|
-
s("div",
|
|
6273
|
-
s("p",
|
|
6274
|
-
s("p",
|
|
6272
|
+
s("div", Cr, [
|
|
6273
|
+
s("p", $r, g(y.title), 1),
|
|
6274
|
+
s("p", Sr, g(y.time), 1)
|
|
6275
6275
|
])
|
|
6276
6276
|
])
|
|
6277
6277
|
]))), 128))
|
|
@@ -6280,17 +6280,17 @@ const es = {
|
|
|
6280
6280
|
s("button", { class: "text-sm text-blue-600 hover:text-blue-800" }, "View all notifications")
|
|
6281
6281
|
], -1))
|
|
6282
6282
|
])) : f("", !0),
|
|
6283
|
-
s("div",
|
|
6283
|
+
s("div", zr, [
|
|
6284
6284
|
s("button", {
|
|
6285
|
-
onClick:
|
|
6285
|
+
onClick: z,
|
|
6286
6286
|
class: "flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-50 transition-colors"
|
|
6287
6287
|
}, [
|
|
6288
|
-
s("div",
|
|
6289
|
-
s("span",
|
|
6288
|
+
s("div", Br, [
|
|
6289
|
+
s("span", Vr, g(x.value), 1)
|
|
6290
6290
|
]),
|
|
6291
|
-
s("div",
|
|
6292
|
-
s("p",
|
|
6293
|
-
s("p",
|
|
6291
|
+
s("div", Mr, [
|
|
6292
|
+
s("p", jr, g(e.user.name), 1),
|
|
6293
|
+
s("p", Tr, g(e.user.role), 1)
|
|
6294
6294
|
]),
|
|
6295
6295
|
$[8] || ($[8] = s("svg", {
|
|
6296
6296
|
class: "w-4 h-4 text-gray-400",
|
|
@@ -6306,21 +6306,21 @@ const es = {
|
|
|
6306
6306
|
})
|
|
6307
6307
|
], -1))
|
|
6308
6308
|
]),
|
|
6309
|
-
d.value ? (a(), n("div",
|
|
6310
|
-
s("div",
|
|
6311
|
-
s("p",
|
|
6312
|
-
s("p",
|
|
6309
|
+
d.value ? (a(), n("div", Ir, [
|
|
6310
|
+
s("div", Lr, [
|
|
6311
|
+
s("p", Dr, g(e.user.name), 1),
|
|
6312
|
+
s("p", Ar, g(e.user.email), 1)
|
|
6313
6313
|
]),
|
|
6314
|
-
s("div",
|
|
6315
|
-
(a(), n(E, null, U(C, (
|
|
6316
|
-
key:
|
|
6317
|
-
href:
|
|
6318
|
-
onClick: pe((I) => P(
|
|
6314
|
+
s("div", Pr, [
|
|
6315
|
+
(a(), n(E, null, U(C, (y) => s("a", {
|
|
6316
|
+
key: y.name,
|
|
6317
|
+
href: y.href,
|
|
6318
|
+
onClick: pe((I) => P(y), ["prevent"]),
|
|
6319
6319
|
class: "flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-50"
|
|
6320
6320
|
}, [
|
|
6321
|
-
(a(), T(Y(
|
|
6322
|
-
|
|
6323
|
-
], 8,
|
|
6321
|
+
(a(), T(Y(y.icon), { class: "w-4 h-4 mr-3 text-gray-400" })),
|
|
6322
|
+
N(" " + g(y.label), 1)
|
|
6323
|
+
], 8, Fr)), 64))
|
|
6324
6324
|
]),
|
|
6325
6325
|
s("div", { class: "border-t border-gray-200 py-2" }, [
|
|
6326
6326
|
s("button", {
|
|
@@ -6340,7 +6340,7 @@ const es = {
|
|
|
6340
6340
|
d: "M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
|
|
6341
6341
|
})
|
|
6342
6342
|
], -1),
|
|
6343
|
-
|
|
6343
|
+
N(" Sign out ", -1)
|
|
6344
6344
|
])])
|
|
6345
6345
|
])
|
|
6346
6346
|
])) : f("", !0)
|
|
@@ -6349,30 +6349,30 @@ const es = {
|
|
|
6349
6349
|
])
|
|
6350
6350
|
], 6));
|
|
6351
6351
|
}
|
|
6352
|
-
},
|
|
6352
|
+
}, Rr = { class: "flex items-center justify-between p-4 border-b border-gray-200" }, Nr = {
|
|
6353
6353
|
key: 0,
|
|
6354
6354
|
class: "flex items-center space-x-2"
|
|
6355
|
-
},
|
|
6355
|
+
}, Hr = {
|
|
6356
6356
|
class: "w-5 h-5 text-gray-600",
|
|
6357
6357
|
fill: "none",
|
|
6358
6358
|
stroke: "currentColor",
|
|
6359
6359
|
viewBox: "0 0 24 24"
|
|
6360
|
-
},
|
|
6360
|
+
}, Or = ["d"], qr = { class: "p-4 space-y-2" }, Er = {
|
|
6361
6361
|
key: 0,
|
|
6362
6362
|
class: "mt-6 mb-2"
|
|
6363
|
-
},
|
|
6363
|
+
}, Ur = { class: "px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider" }, Zr = ["href", "onClick"], Gr = {
|
|
6364
6364
|
key: 0,
|
|
6365
6365
|
class: "truncate"
|
|
6366
|
-
},
|
|
6366
|
+
}, Kr = {
|
|
6367
6367
|
key: 1,
|
|
6368
6368
|
class: "ml-auto inline-flex items-center justify-center px-2 py-1 text-xs font-medium rounded-full bg-red-100 text-red-800"
|
|
6369
|
-
},
|
|
6369
|
+
}, Qr = { class: "absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200" }, Yr = {
|
|
6370
6370
|
key: 0,
|
|
6371
6371
|
class: "flex-1 min-w-0"
|
|
6372
|
-
},
|
|
6372
|
+
}, Wr = {
|
|
6373
6373
|
key: 1,
|
|
6374
6374
|
class: "flex-shrink-0 p-1 text-gray-400 hover:text-gray-600"
|
|
6375
|
-
},
|
|
6375
|
+
}, Xr = {
|
|
6376
6376
|
__name: "Sidebar",
|
|
6377
6377
|
props: {
|
|
6378
6378
|
collapsed: {
|
|
@@ -6382,27 +6382,31 @@ const es = {
|
|
|
6382
6382
|
navigationItems: {
|
|
6383
6383
|
type: Array,
|
|
6384
6384
|
default: () => []
|
|
6385
|
+
},
|
|
6386
|
+
currentRoute: {
|
|
6387
|
+
type: String,
|
|
6388
|
+
default: ""
|
|
6385
6389
|
}
|
|
6386
6390
|
},
|
|
6387
6391
|
emits: ["toggle", "navigate"],
|
|
6388
6392
|
setup(e, { expose: l, emit: t }) {
|
|
6389
6393
|
const r = e, o = t, i = _(r.collapsed), d = () => {
|
|
6390
6394
|
i.value = !i.value, o("toggle", i.value);
|
|
6391
|
-
}, m = (
|
|
6392
|
-
o("navigate",
|
|
6393
|
-
}, p = u(() => i.value ? 64 : 256);
|
|
6395
|
+
}, m = (x) => {
|
|
6396
|
+
o("navigate", x);
|
|
6397
|
+
}, p = (x) => x.route ? !!(r.currentRoute === x.route || r.currentRoute.startsWith(x.route + "/")) : !1, C = u(() => i.value ? 64 : 256);
|
|
6394
6398
|
return l({
|
|
6395
6399
|
isCollapsed: i,
|
|
6396
|
-
sidebarWidth:
|
|
6400
|
+
sidebarWidth: C,
|
|
6397
6401
|
toggleSidebar: d
|
|
6398
|
-
}), (
|
|
6402
|
+
}), (x, M) => (a(), n("aside", {
|
|
6399
6403
|
class: c(L(h)(
|
|
6400
6404
|
"fixed left-0 top-0 z-40 h-screen bg-white border-r border-gray-200 transition-all duration-300 ease-in-out",
|
|
6401
6405
|
i.value ? "w-16" : "w-64"
|
|
6402
6406
|
))
|
|
6403
6407
|
}, [
|
|
6404
|
-
s("div",
|
|
6405
|
-
i.value ? f("", !0) : (a(), n("div",
|
|
6408
|
+
s("div", Rr, [
|
|
6409
|
+
i.value ? f("", !0) : (a(), n("div", Nr, [...M[0] || (M[0] = [
|
|
6406
6410
|
s("div", { class: "w-8 h-8 bg-blue-600 rounded-lg flex items-center justify-center" }, [
|
|
6407
6411
|
s("span", { class: "text-white font-bold text-sm" }, "UI")
|
|
6408
6412
|
], -1),
|
|
@@ -6412,29 +6416,29 @@ const es = {
|
|
|
6412
6416
|
onClick: d,
|
|
6413
6417
|
class: "p-1 rounded-md hover:bg-gray-100 transition-colors"
|
|
6414
6418
|
}, [
|
|
6415
|
-
(a(), n("svg",
|
|
6419
|
+
(a(), n("svg", Hr, [
|
|
6416
6420
|
s("path", {
|
|
6417
6421
|
"stroke-linecap": "round",
|
|
6418
6422
|
"stroke-linejoin": "round",
|
|
6419
6423
|
"stroke-width": "2",
|
|
6420
6424
|
d: i.value ? "M9 5l7 7-7 7" : "M15 19l-7-7 7-7"
|
|
6421
|
-
}, null, 8,
|
|
6425
|
+
}, null, 8, Or)
|
|
6422
6426
|
]))
|
|
6423
6427
|
])
|
|
6424
6428
|
]),
|
|
6425
|
-
s("nav",
|
|
6429
|
+
s("nav", qr, [
|
|
6426
6430
|
(a(!0), n(E, null, U(e.navigationItems, (z) => (a(), n(E, {
|
|
6427
6431
|
key: z.name
|
|
6428
6432
|
}, [
|
|
6429
|
-
z.type === "section" && !i.value ? (a(), n("div",
|
|
6430
|
-
s("h3",
|
|
6433
|
+
z.type === "section" && !i.value ? (a(), n("div", Er, [
|
|
6434
|
+
s("h3", Ur, g(z.label), 1)
|
|
6431
6435
|
])) : z.type === "link" ? (a(), n("a", {
|
|
6432
6436
|
key: 1,
|
|
6433
6437
|
href: z.href,
|
|
6434
|
-
onClick: pe((
|
|
6438
|
+
onClick: pe((P) => m(z), ["prevent"]),
|
|
6435
6439
|
class: c(L(h)(
|
|
6436
6440
|
"flex items-center px-3 py-2 rounded-lg text-sm font-medium transition-colors",
|
|
6437
|
-
z
|
|
6441
|
+
p(z) ? "bg-blue-50 text-blue-700 border-r-2 border-blue-700" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900"
|
|
6438
6442
|
))
|
|
6439
6443
|
}, [
|
|
6440
6444
|
(a(), T(Y(z.icon), {
|
|
@@ -6443,26 +6447,26 @@ const es = {
|
|
|
6443
6447
|
i.value ? "w-5 h-5" : "w-5 h-5 mr-3"
|
|
6444
6448
|
))
|
|
6445
6449
|
}, null, 8, ["class"])),
|
|
6446
|
-
i.value ? f("", !0) : (a(), n("span",
|
|
6447
|
-
z.badge && !i.value ? (a(), n("span",
|
|
6448
|
-
], 10,
|
|
6450
|
+
i.value ? f("", !0) : (a(), n("span", Gr, g(z.label), 1)),
|
|
6451
|
+
z.badge && !i.value ? (a(), n("span", Kr, g(z.badge), 1)) : f("", !0)
|
|
6452
|
+
], 10, Zr)) : f("", !0)
|
|
6449
6453
|
], 64))), 128))
|
|
6450
6454
|
]),
|
|
6451
|
-
s("div",
|
|
6455
|
+
s("div", Qr, [
|
|
6452
6456
|
s("div", {
|
|
6453
6457
|
class: c(L(h)(
|
|
6454
6458
|
"flex items-center",
|
|
6455
6459
|
i.value ? "justify-center" : "space-x-3"
|
|
6456
6460
|
))
|
|
6457
6461
|
}, [
|
|
6458
|
-
|
|
6462
|
+
M[3] || (M[3] = s("div", { class: "w-8 h-8 bg-gray-300 rounded-full flex items-center justify-center" }, [
|
|
6459
6463
|
s("span", { class: "text-gray-600 text-sm font-medium" }, "JD")
|
|
6460
6464
|
], -1)),
|
|
6461
|
-
i.value ? f("", !0) : (a(), n("div",
|
|
6465
|
+
i.value ? f("", !0) : (a(), n("div", Yr, [...M[1] || (M[1] = [
|
|
6462
6466
|
s("p", { class: "text-sm font-medium text-gray-900 truncate" }, "John Doe", -1),
|
|
6463
6467
|
s("p", { class: "text-xs text-gray-500 truncate" }, "john@example.com", -1)
|
|
6464
6468
|
])])),
|
|
6465
|
-
i.value ? f("", !0) : (a(), n("button",
|
|
6469
|
+
i.value ? f("", !0) : (a(), n("button", Wr, [...M[2] || (M[2] = [
|
|
6466
6470
|
s("svg", {
|
|
6467
6471
|
class: "w-4 h-4",
|
|
6468
6472
|
fill: "none",
|
|
@@ -6481,7 +6485,7 @@ const es = {
|
|
|
6481
6485
|
])
|
|
6482
6486
|
], 2));
|
|
6483
6487
|
}
|
|
6484
|
-
},
|
|
6488
|
+
}, Jr = {
|
|
6485
6489
|
__name: "Timeline",
|
|
6486
6490
|
props: {
|
|
6487
6491
|
orientation: {
|
|
@@ -6497,16 +6501,16 @@ const es = {
|
|
|
6497
6501
|
e.orientation === "vertical" ? "flex-col" : "flex-row"
|
|
6498
6502
|
])
|
|
6499
6503
|
}, [
|
|
6500
|
-
|
|
6504
|
+
b(l.$slots, "default")
|
|
6501
6505
|
], 2));
|
|
6502
6506
|
}
|
|
6503
|
-
},
|
|
6507
|
+
}, en = {
|
|
6504
6508
|
key: 0,
|
|
6505
6509
|
class: "absolute left-3 top-0 w-0.5 h-full bg-slate-200"
|
|
6506
|
-
},
|
|
6510
|
+
}, tn = { class: "z-10 flex items-center justify-center w-6 h-6 rounded-full border-2 border-blue-500 bg-white text-blue-500" }, an = { class: "text-slate-900 font-medium" }, sn = {
|
|
6507
6511
|
key: 0,
|
|
6508
6512
|
class: "text-slate-500 text-sm"
|
|
6509
|
-
},
|
|
6513
|
+
}, ln = { class: "mt-2 text-slate-600 text-sm" }, rn = {
|
|
6510
6514
|
__name: "TimelineItem",
|
|
6511
6515
|
props: {
|
|
6512
6516
|
title: {
|
|
@@ -6530,9 +6534,9 @@ const es = {
|
|
|
6530
6534
|
e.orientation === "vertical" ? "items-start mb-8 last:mb-0" : "flex-col items-center mx-8 last:mx-0"
|
|
6531
6535
|
])
|
|
6532
6536
|
}, [
|
|
6533
|
-
e.orientation === "vertical" ? (a(), n("div",
|
|
6534
|
-
s("div",
|
|
6535
|
-
|
|
6537
|
+
e.orientation === "vertical" ? (a(), n("div", en)) : f("", !0),
|
|
6538
|
+
s("div", tn, [
|
|
6539
|
+
b(l.$slots, "icon", {}, () => [
|
|
6536
6540
|
t[0] || (t[0] = s("div", { class: "w-2 h-2 rounded-full bg-blue-500" }, null, -1))
|
|
6537
6541
|
])
|
|
6538
6542
|
]),
|
|
@@ -6542,28 +6546,28 @@ const es = {
|
|
|
6542
6546
|
e.orientation === "horizontal" ? "mt-2 text-center" : ""
|
|
6543
6547
|
])
|
|
6544
6548
|
}, [
|
|
6545
|
-
s("h3",
|
|
6546
|
-
|
|
6547
|
-
|
|
6549
|
+
s("h3", an, [
|
|
6550
|
+
b(l.$slots, "title", {}, () => [
|
|
6551
|
+
N(g(e.title), 1)
|
|
6548
6552
|
])
|
|
6549
6553
|
]),
|
|
6550
|
-
e.subtitle ? (a(), n("p",
|
|
6551
|
-
|
|
6552
|
-
|
|
6554
|
+
e.subtitle ? (a(), n("p", sn, [
|
|
6555
|
+
b(l.$slots, "subtitle", {}, () => [
|
|
6556
|
+
N(g(e.subtitle), 1)
|
|
6553
6557
|
])
|
|
6554
6558
|
])) : f("", !0),
|
|
6555
|
-
s("div",
|
|
6556
|
-
|
|
6559
|
+
s("div", ln, [
|
|
6560
|
+
b(l.$slots, "default")
|
|
6557
6561
|
])
|
|
6558
6562
|
], 2)
|
|
6559
6563
|
], 2));
|
|
6560
6564
|
}
|
|
6561
|
-
},
|
|
6565
|
+
}, Re = (e, l) => {
|
|
6562
6566
|
const t = e.__vccOpts || e;
|
|
6563
6567
|
for (const [r, o] of l)
|
|
6564
6568
|
t[r] = o;
|
|
6565
6569
|
return t;
|
|
6566
|
-
},
|
|
6570
|
+
}, nn = {
|
|
6567
6571
|
name: "AuthLayout",
|
|
6568
6572
|
props: {
|
|
6569
6573
|
title: {
|
|
@@ -6652,20 +6656,20 @@ const es = {
|
|
|
6652
6656
|
currentYear: u(() => (/* @__PURE__ */ new Date()).getFullYear())
|
|
6653
6657
|
};
|
|
6654
6658
|
}
|
|
6655
|
-
},
|
|
6659
|
+
}, on = { class: "container mx-auto px-4 relative z-10" }, dn = { class: "grid lg:grid-cols-10 gap-8 items-center min-h-screen" }, cn = { class: "lg:col-span-6 text-white text-center lg:text-left space-y-6" }, un = { class: "mb-6" }, mn = { class: "text-4xl lg:text-6xl font-bold mb-2" }, fn = { class: "text-white" }, vn = { class: "flex items-center justify-center lg:justify-start mb-6" }, gn = { class: "text-3xl lg:text-4xl font-bold text-white" }, hn = { class: "lg:col-span-4" }, pn = { class: "bg-white rounded-lg shadow-xl p-6 lg:p-8 max-w-md mx-auto" }, bn = {
|
|
6656
6660
|
key: 0,
|
|
6657
6661
|
class: "mb-6"
|
|
6658
|
-
},
|
|
6662
|
+
}, yn = { class: "text-center" }, xn = { class: "text-2xl font-bold text-gray-900" }, kn = {
|
|
6659
6663
|
key: 0,
|
|
6660
6664
|
class: "text-gray-600 mt-2"
|
|
6661
|
-
},
|
|
6665
|
+
}, wn = { class: "space-y-6" }, Cn = {
|
|
6662
6666
|
key: 1,
|
|
6663
6667
|
class: "mt-6"
|
|
6664
|
-
}, $
|
|
6668
|
+
}, $n = {
|
|
6665
6669
|
key: 0,
|
|
6666
6670
|
class: "mt-6 text-center"
|
|
6667
|
-
},
|
|
6668
|
-
function
|
|
6671
|
+
}, Sn = { class: "absolute bottom-4 right-4 text-right" }, zn = { class: "flex items-end justify-end mb-2" }, Bn = { class: "text-right mr-3" }, Vn = { class: "text-red-500 font-bold text-xs" }, Mn = { class: "text-white text-xs" }, jn = { class: "text-white/70 text-xs" }, Tn = { class: "w-8 h-8 bg-red-500 rounded flex items-center justify-center text-white font-bold text-xs" }, In = { class: "text-white/70 text-xs" }, Ln = { class: "absolute bottom-4 left-4 flex gap-2" }, Dn = ["href"];
|
|
6672
|
+
function An(e, l, t, r, o, i) {
|
|
6669
6673
|
const d = J("router-view");
|
|
6670
6674
|
return a(), n("div", {
|
|
6671
6675
|
class: "min-h-screen relative flex items-center justify-center",
|
|
@@ -6678,70 +6682,70 @@ function Ar(e, l, t, r, o, i) {
|
|
|
6678
6682
|
opacity: t.backgroundOpacity
|
|
6679
6683
|
})
|
|
6680
6684
|
}, null, 4),
|
|
6681
|
-
s("div",
|
|
6682
|
-
s("div",
|
|
6683
|
-
s("div",
|
|
6684
|
-
s("div",
|
|
6685
|
-
s("div",
|
|
6685
|
+
s("div", on, [
|
|
6686
|
+
s("div", dn, [
|
|
6687
|
+
s("div", cn, [
|
|
6688
|
+
s("div", un, [
|
|
6689
|
+
s("div", mn, [
|
|
6686
6690
|
s("span", {
|
|
6687
6691
|
style: ce({ color: t.primaryColor })
|
|
6688
6692
|
}, g(t.primaryLogoPrefix), 5),
|
|
6689
|
-
s("span",
|
|
6693
|
+
s("span", fn, g(t.primaryLogoText), 1)
|
|
6690
6694
|
]),
|
|
6691
6695
|
s("div", {
|
|
6692
6696
|
class: "h-0.5 w-30 mx-auto lg:mx-0",
|
|
6693
6697
|
style: ce({ backgroundColor: t.primaryColor })
|
|
6694
6698
|
}, null, 4)
|
|
6695
6699
|
]),
|
|
6696
|
-
s("div",
|
|
6700
|
+
s("div", vn, [
|
|
6697
6701
|
s("div", {
|
|
6698
6702
|
class: "flex items-center justify-center w-15 h-15 rounded-lg mr-4 text-white font-bold text-xl",
|
|
6699
6703
|
style: ce({ backgroundColor: t.primaryColor })
|
|
6700
6704
|
}, g(t.secondaryLogoPrefix), 5),
|
|
6701
|
-
s("span",
|
|
6705
|
+
s("span", gn, g(t.secondaryLogoText), 1)
|
|
6702
6706
|
]),
|
|
6703
6707
|
l[0] || (l[0] = s("div", { class: "max-w-md mx-auto lg:mx-0" }, [
|
|
6704
6708
|
s("p", { class: "text-sm lg:text-base font-light text-white/70 italic leading-relaxed" })
|
|
6705
6709
|
], -1))
|
|
6706
6710
|
]),
|
|
6707
|
-
s("div",
|
|
6708
|
-
s("div",
|
|
6709
|
-
e.$slots["card-header"] || t.title ? (a(), n("div",
|
|
6710
|
-
|
|
6711
|
-
s("div",
|
|
6712
|
-
s("h1",
|
|
6713
|
-
t.subtitle ? (a(), n("p",
|
|
6711
|
+
s("div", hn, [
|
|
6712
|
+
s("div", pn, [
|
|
6713
|
+
e.$slots["card-header"] || t.title ? (a(), n("div", bn, [
|
|
6714
|
+
b(e.$slots, "card-header", {}, () => [
|
|
6715
|
+
s("div", yn, [
|
|
6716
|
+
s("h1", xn, g(t.title), 1),
|
|
6717
|
+
t.subtitle ? (a(), n("p", kn, g(t.subtitle), 1)) : f("", !0)
|
|
6714
6718
|
])
|
|
6715
6719
|
])
|
|
6716
6720
|
])) : f("", !0),
|
|
6717
|
-
s("div",
|
|
6721
|
+
s("div", wn, [
|
|
6718
6722
|
S(d)
|
|
6719
6723
|
]),
|
|
6720
|
-
e.$slots["card-footer"] ? (a(), n("div",
|
|
6721
|
-
|
|
6724
|
+
e.$slots["card-footer"] ? (a(), n("div", Cn, [
|
|
6725
|
+
b(e.$slots, "card-footer")
|
|
6722
6726
|
])) : f("", !0)
|
|
6723
6727
|
]),
|
|
6724
|
-
e.$slots.links ? (a(), n("div", $
|
|
6725
|
-
|
|
6728
|
+
e.$slots.links ? (a(), n("div", $n, [
|
|
6729
|
+
b(e.$slots, "links")
|
|
6726
6730
|
])) : f("", !0)
|
|
6727
6731
|
])
|
|
6728
6732
|
])
|
|
6729
6733
|
]),
|
|
6730
|
-
s("div",
|
|
6731
|
-
s("div",
|
|
6732
|
-
s("div",
|
|
6733
|
-
s("div",
|
|
6734
|
-
s("div",
|
|
6735
|
-
s("div",
|
|
6734
|
+
s("div", Sn, [
|
|
6735
|
+
s("div", zn, [
|
|
6736
|
+
s("div", Bn, [
|
|
6737
|
+
s("div", Vn, g(t.companyName), 1),
|
|
6738
|
+
s("div", Mn, g(t.companyType), 1),
|
|
6739
|
+
s("div", jn, g(t.companyTagline), 1)
|
|
6736
6740
|
]),
|
|
6737
|
-
s("div",
|
|
6741
|
+
s("div", Tn, g(t.companyInitials), 1)
|
|
6738
6742
|
]),
|
|
6739
|
-
s("div",
|
|
6743
|
+
s("div", In, [
|
|
6740
6744
|
s("div", null, g(t.appName) + " (" + g(t.appVersion) + ")", 1),
|
|
6741
6745
|
s("div", null, g(t.copyright), 1)
|
|
6742
6746
|
])
|
|
6743
6747
|
]),
|
|
6744
|
-
s("div",
|
|
6748
|
+
s("div", Ln, [
|
|
6745
6749
|
(a(!0), n(E, null, U(t.socialLinks, (m) => (a(), n("a", {
|
|
6746
6750
|
key: m.name,
|
|
6747
6751
|
href: m.url,
|
|
@@ -6753,14 +6757,14 @@ function Ar(e, l, t, r, o, i) {
|
|
|
6753
6757
|
s("i", {
|
|
6754
6758
|
class: c(m.icon)
|
|
6755
6759
|
}, null, 2)
|
|
6756
|
-
], 10,
|
|
6760
|
+
], 10, Dn))), 128))
|
|
6757
6761
|
])
|
|
6758
6762
|
], 4);
|
|
6759
6763
|
}
|
|
6760
|
-
const
|
|
6764
|
+
const Pn = /* @__PURE__ */ Re(nn, [["render", An]]), Fn = { class: "min-h-screen bg-gray-50" }, _n = { class: "flex-1" }, Rn = {
|
|
6761
6765
|
key: 0,
|
|
6762
6766
|
class: "bg-white border-b border-gray-200"
|
|
6763
|
-
},
|
|
6767
|
+
}, Nn = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4" }, Hn = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8" }, On = {
|
|
6764
6768
|
__name: "DefaultLayout",
|
|
6765
6769
|
props: {
|
|
6766
6770
|
navigationItems: {
|
|
@@ -6784,32 +6788,32 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
6784
6788
|
setup(e) {
|
|
6785
6789
|
return (l, t) => {
|
|
6786
6790
|
const r = J("Logo"), o = J("MainNavigation"), i = J("Button"), d = J("Header"), m = J("Breadcrumb"), p = J("Text"), C = J("Footer");
|
|
6787
|
-
return a(), n("div",
|
|
6791
|
+
return a(), n("div", Fn, [
|
|
6788
6792
|
S(d, null, {
|
|
6789
6793
|
logo: V(() => [
|
|
6790
|
-
|
|
6794
|
+
b(l.$slots, "logo", {}, () => [
|
|
6791
6795
|
S(r)
|
|
6792
6796
|
])
|
|
6793
6797
|
]),
|
|
6794
6798
|
navigation: V(() => [
|
|
6795
|
-
|
|
6799
|
+
b(l.$slots, "navigation", {}, () => [
|
|
6796
6800
|
S(o, { items: e.navigationItems }, null, 8, ["items"])
|
|
6797
6801
|
])
|
|
6798
6802
|
]),
|
|
6799
6803
|
actions: V(() => [
|
|
6800
|
-
|
|
6804
|
+
b(l.$slots, "header-actions", {}, () => [
|
|
6801
6805
|
S(i, {
|
|
6802
6806
|
variant: "ghost",
|
|
6803
6807
|
size: "sm"
|
|
6804
6808
|
}, {
|
|
6805
6809
|
default: V(() => [...t[0] || (t[0] = [
|
|
6806
|
-
|
|
6810
|
+
N("Sign In", -1)
|
|
6807
6811
|
])]),
|
|
6808
6812
|
_: 1
|
|
6809
6813
|
}),
|
|
6810
6814
|
S(i, { size: "sm" }, {
|
|
6811
6815
|
default: V(() => [...t[1] || (t[1] = [
|
|
6812
|
-
|
|
6816
|
+
N("Get Started", -1)
|
|
6813
6817
|
])]),
|
|
6814
6818
|
_: 1
|
|
6815
6819
|
})
|
|
@@ -6817,25 +6821,25 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
6817
6821
|
]),
|
|
6818
6822
|
_: 3
|
|
6819
6823
|
}),
|
|
6820
|
-
s("main",
|
|
6821
|
-
e.showBreadcrumb ? (a(), n("div",
|
|
6822
|
-
s("div",
|
|
6823
|
-
|
|
6824
|
+
s("main", _n, [
|
|
6825
|
+
e.showBreadcrumb ? (a(), n("div", Rn, [
|
|
6826
|
+
s("div", Nn, [
|
|
6827
|
+
b(l.$slots, "breadcrumb", {}, () => [
|
|
6824
6828
|
S(m, { items: e.breadcrumbItems }, null, 8, ["items"])
|
|
6825
6829
|
])
|
|
6826
6830
|
])
|
|
6827
6831
|
])) : f("", !0),
|
|
6828
|
-
s("div",
|
|
6829
|
-
|
|
6832
|
+
s("div", Hn, [
|
|
6833
|
+
b(l.$slots, "default")
|
|
6830
6834
|
])
|
|
6831
6835
|
]),
|
|
6832
6836
|
S(C, null, {
|
|
6833
6837
|
brand: V(() => [
|
|
6834
|
-
|
|
6838
|
+
b(l.$slots, "footer-brand", {}, () => [
|
|
6835
6839
|
S(r, { class: "mb-4" }),
|
|
6836
6840
|
S(p, { class: "text-gray-600 max-w-md" }, {
|
|
6837
6841
|
default: V(() => [...t[2] || (t[2] = [
|
|
6838
|
-
|
|
6842
|
+
N(" Your application description goes here. ", -1)
|
|
6839
6843
|
])]),
|
|
6840
6844
|
_: 1
|
|
6841
6845
|
})
|
|
@@ -6846,14 +6850,14 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
6846
6850
|
]);
|
|
6847
6851
|
};
|
|
6848
6852
|
}
|
|
6849
|
-
},
|
|
6853
|
+
}, qn = {
|
|
6850
6854
|
template: `
|
|
6851
6855
|
<svg viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6852
6856
|
<circle cx="100" cy="100" r="80" fill="#f1f5f9" stroke="#cbd5e1" stroke-width="2"/>
|
|
6853
6857
|
<text x="100" y="110" text-anchor="middle" font-size="48" font-weight="bold" fill="#64748b">404</text>
|
|
6854
6858
|
</svg>
|
|
6855
6859
|
`
|
|
6856
|
-
},
|
|
6860
|
+
}, En = {
|
|
6857
6861
|
template: `
|
|
6858
6862
|
<svg viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6859
6863
|
<circle cx="100" cy="100" r="80" fill="#fef2f2" stroke="#fecaca" stroke-width="2"/>
|
|
@@ -6866,7 +6870,7 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
6866
6870
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z" />
|
|
6867
6871
|
</svg>
|
|
6868
6872
|
`
|
|
6869
|
-
},
|
|
6873
|
+
}, Un = {
|
|
6870
6874
|
name: "ErrorPage",
|
|
6871
6875
|
components: {
|
|
6872
6876
|
Button: ee
|
|
@@ -6953,12 +6957,12 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
6953
6957
|
404: {
|
|
6954
6958
|
title: "Page Not Found",
|
|
6955
6959
|
message: "Sorry, we couldn't find the page you're looking for.",
|
|
6956
|
-
icon:
|
|
6960
|
+
icon: qn
|
|
6957
6961
|
},
|
|
6958
6962
|
500: {
|
|
6959
6963
|
title: "Server Error",
|
|
6960
6964
|
message: "Something went wrong on our end. Please try again later.",
|
|
6961
|
-
icon:
|
|
6965
|
+
icon: En
|
|
6962
6966
|
},
|
|
6963
6967
|
403: {
|
|
6964
6968
|
title: "Access Denied",
|
|
@@ -6981,11 +6985,11 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
6981
6985
|
"px-4 sm:px-6 lg:px-8"
|
|
6982
6986
|
]), C = u(() => [
|
|
6983
6987
|
"absolute inset-0 -z-10"
|
|
6984
|
-
]),
|
|
6988
|
+
]), x = u(() => [
|
|
6985
6989
|
"w-full max-w-lg mx-auto text-center"
|
|
6986
|
-
]),
|
|
6990
|
+
]), M = u(() => [
|
|
6987
6991
|
"mb-8"
|
|
6988
|
-
]),
|
|
6992
|
+
]), z = u(() => [
|
|
6989
6993
|
"space-y-6"
|
|
6990
6994
|
]), P = u(() => [
|
|
6991
6995
|
"flex justify-center mb-6"
|
|
@@ -6997,7 +7001,7 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
6997
7001
|
"text-3xl font-bold text-slate-900"
|
|
6998
7002
|
]), $ = u(() => [
|
|
6999
7003
|
"text-lg text-slate-600"
|
|
7000
|
-
]),
|
|
7004
|
+
]), y = u(() => [
|
|
7001
7005
|
"text-sm text-slate-500 font-mono"
|
|
7002
7006
|
]), I = u(() => [
|
|
7003
7007
|
"mt-8"
|
|
@@ -7012,21 +7016,21 @@ const Pr = /* @__PURE__ */ Ne(or, [["render", Ar]]), Fr = { class: "min-h-screen
|
|
|
7012
7016
|
retry: m,
|
|
7013
7017
|
layoutClasses: p,
|
|
7014
7018
|
backgroundClasses: C,
|
|
7015
|
-
contentClasses:
|
|
7016
|
-
headerClasses:
|
|
7017
|
-
errorContentClasses:
|
|
7019
|
+
contentClasses: x,
|
|
7020
|
+
headerClasses: M,
|
|
7021
|
+
errorContentClasses: z,
|
|
7018
7022
|
illustrationClasses: P,
|
|
7019
7023
|
iconClasses: B,
|
|
7020
7024
|
detailsClasses: w,
|
|
7021
7025
|
titleClasses: v,
|
|
7022
7026
|
messageClasses: $,
|
|
7023
|
-
codeClasses:
|
|
7027
|
+
codeClasses: y,
|
|
7024
7028
|
actionsClasses: I,
|
|
7025
7029
|
helpClasses: F
|
|
7026
7030
|
};
|
|
7027
7031
|
}
|
|
7028
|
-
},
|
|
7029
|
-
function
|
|
7032
|
+
}, Zn = { class: "flex justify-center" }, Gn = { class: "flex items-center gap-3" }, Kn = { class: "text-2xl font-bold text-slate-900" }, Qn = { class: "flex flex-col sm:flex-row gap-3 justify-center" }, Yn = { class: "text-sm text-slate-600" }, Wn = ["href"];
|
|
7033
|
+
function Xn(e, l, t, r, o, i) {
|
|
7030
7034
|
const d = J("Button");
|
|
7031
7035
|
return a(), n("div", {
|
|
7032
7036
|
class: c(r.layoutClasses)
|
|
@@ -7035,7 +7039,7 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7035
7039
|
key: 0,
|
|
7036
7040
|
class: c(r.backgroundClasses)
|
|
7037
7041
|
}, [
|
|
7038
|
-
|
|
7042
|
+
b(e.$slots, "background", {}, () => [
|
|
7039
7043
|
l[0] || (l[0] = s("div", { class: "absolute inset-0 bg-gradient-to-br from-slate-50 to-slate-100" }, null, -1))
|
|
7040
7044
|
])
|
|
7041
7045
|
], 2)) : f("", !0),
|
|
@@ -7046,14 +7050,14 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7046
7050
|
key: 0,
|
|
7047
7051
|
class: c(r.headerClasses)
|
|
7048
7052
|
}, [
|
|
7049
|
-
|
|
7050
|
-
s("div",
|
|
7051
|
-
|
|
7052
|
-
s("div",
|
|
7053
|
+
b(e.$slots, "header", {}, () => [
|
|
7054
|
+
s("div", Zn, [
|
|
7055
|
+
b(e.$slots, "logo", {}, () => [
|
|
7056
|
+
s("div", Gn, [
|
|
7053
7057
|
l[1] || (l[1] = s("div", { class: "w-10 h-10 bg-blue-600 rounded-xl flex items-center justify-center" }, [
|
|
7054
7058
|
s("span", { class: "text-white font-bold text-lg" }, "STL")
|
|
7055
7059
|
], -1)),
|
|
7056
|
-
s("span",
|
|
7060
|
+
s("span", Kn, g(t.brandName), 1)
|
|
7057
7061
|
])
|
|
7058
7062
|
])
|
|
7059
7063
|
])
|
|
@@ -7066,7 +7070,7 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7066
7070
|
key: 0,
|
|
7067
7071
|
class: c(r.illustrationClasses)
|
|
7068
7072
|
}, [
|
|
7069
|
-
|
|
7073
|
+
b(e.$slots, "illustration", {}, () => [
|
|
7070
7074
|
(a(), T(Y(r.errorIcon), {
|
|
7071
7075
|
class: c(r.iconClasses)
|
|
7072
7076
|
}, null, 8, ["class"]))
|
|
@@ -7078,15 +7082,15 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7078
7082
|
s("h1", {
|
|
7079
7083
|
class: c(r.titleClasses)
|
|
7080
7084
|
}, [
|
|
7081
|
-
|
|
7082
|
-
|
|
7085
|
+
b(e.$slots, "title", {}, () => [
|
|
7086
|
+
N(g(r.errorTitle), 1)
|
|
7083
7087
|
])
|
|
7084
7088
|
], 2),
|
|
7085
7089
|
s("p", {
|
|
7086
7090
|
class: c(r.messageClasses)
|
|
7087
7091
|
}, [
|
|
7088
|
-
|
|
7089
|
-
|
|
7092
|
+
b(e.$slots, "message", {}, () => [
|
|
7093
|
+
N(g(r.errorMessage), 1)
|
|
7090
7094
|
])
|
|
7091
7095
|
], 2),
|
|
7092
7096
|
t.errorCode ? (a(), n("div", {
|
|
@@ -7098,8 +7102,8 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7098
7102
|
key: 1,
|
|
7099
7103
|
class: c(r.actionsClasses)
|
|
7100
7104
|
}, [
|
|
7101
|
-
|
|
7102
|
-
s("div",
|
|
7105
|
+
b(e.$slots, "actions", {}, () => [
|
|
7106
|
+
s("div", Qn, [
|
|
7103
7107
|
t.showHomeButton ? (a(), T(d, {
|
|
7104
7108
|
key: 0,
|
|
7105
7109
|
href: t.homeUrl,
|
|
@@ -7107,7 +7111,7 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7107
7111
|
size: "lg"
|
|
7108
7112
|
}, {
|
|
7109
7113
|
default: V(() => [
|
|
7110
|
-
|
|
7114
|
+
N(g(t.homeButtonText), 1)
|
|
7111
7115
|
]),
|
|
7112
7116
|
_: 1
|
|
7113
7117
|
}, 8, ["href"])) : f("", !0),
|
|
@@ -7118,7 +7122,7 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7118
7122
|
onClick: r.goBack
|
|
7119
7123
|
}, {
|
|
7120
7124
|
default: V(() => [
|
|
7121
|
-
|
|
7125
|
+
N(g(t.backButtonText), 1)
|
|
7122
7126
|
]),
|
|
7123
7127
|
_: 1
|
|
7124
7128
|
}, 8, ["onClick"])) : f("", !0),
|
|
@@ -7129,7 +7133,7 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7129
7133
|
onClick: r.retry
|
|
7130
7134
|
}, {
|
|
7131
7135
|
default: V(() => [
|
|
7132
|
-
|
|
7136
|
+
N(g(t.retryButtonText), 1)
|
|
7133
7137
|
]),
|
|
7134
7138
|
_: 1
|
|
7135
7139
|
}, 8, ["onClick"])) : f("", !0)
|
|
@@ -7140,14 +7144,14 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7140
7144
|
key: 2,
|
|
7141
7145
|
class: c(r.helpClasses)
|
|
7142
7146
|
}, [
|
|
7143
|
-
|
|
7144
|
-
s("p",
|
|
7145
|
-
|
|
7147
|
+
b(e.$slots, "help", {}, () => [
|
|
7148
|
+
s("p", Yn, [
|
|
7149
|
+
N(g(t.helpText) + " ", 1),
|
|
7146
7150
|
t.supportUrl ? (a(), n("a", {
|
|
7147
7151
|
key: 0,
|
|
7148
7152
|
href: t.supportUrl,
|
|
7149
7153
|
class: "text-blue-600 hover:text-blue-700 underline ml-1"
|
|
7150
|
-
}, " Contact Support ", 8,
|
|
7154
|
+
}, " Contact Support ", 8, Wn)) : f("", !0)
|
|
7151
7155
|
])
|
|
7152
7156
|
])
|
|
7153
7157
|
], 2)) : f("", !0)
|
|
@@ -7155,12 +7159,12 @@ function Xr(e, l, t, r, o, i) {
|
|
|
7155
7159
|
], 2)
|
|
7156
7160
|
], 2);
|
|
7157
7161
|
}
|
|
7158
|
-
const
|
|
7162
|
+
const Jn = /* @__PURE__ */ Re(Un, [["render", Xn]]), Be = {
|
|
7159
7163
|
Avatar: Ke,
|
|
7160
7164
|
Badge: Ye,
|
|
7161
7165
|
Button: ee,
|
|
7162
7166
|
Checkbox: we,
|
|
7163
|
-
Divider:
|
|
7167
|
+
Divider: nt,
|
|
7164
7168
|
Icon: Q,
|
|
7165
7169
|
Image: ct,
|
|
7166
7170
|
Input: he,
|
|
@@ -7177,7 +7181,7 @@ const Jr = /* @__PURE__ */ Ne(Ur, [["render", Xr]]), Be = {
|
|
|
7177
7181
|
Textarea: Tt,
|
|
7178
7182
|
Tooltip: It,
|
|
7179
7183
|
Typography: ke,
|
|
7180
|
-
Alert:
|
|
7184
|
+
Alert: Rt,
|
|
7181
7185
|
Breadcrumb: Ot,
|
|
7182
7186
|
ButtonGroup: Et,
|
|
7183
7187
|
Card: Xt,
|
|
@@ -7186,7 +7190,7 @@ const Jr = /* @__PURE__ */ Ne(Ur, [["render", Xr]]), Be = {
|
|
|
7186
7190
|
CardFooter: ta,
|
|
7187
7191
|
CardContent: aa,
|
|
7188
7192
|
CardTitle: sa,
|
|
7189
|
-
DatePicker:
|
|
7193
|
+
DatePicker: na,
|
|
7190
7194
|
Dropdown: ia,
|
|
7191
7195
|
DropdownItem: ca,
|
|
7192
7196
|
FileUpload: xa,
|
|
@@ -7194,7 +7198,7 @@ const Jr = /* @__PURE__ */ Ne(Ur, [["render", Xr]]), Be = {
|
|
|
7194
7198
|
InputGroup: Ma,
|
|
7195
7199
|
ListItem: Pa,
|
|
7196
7200
|
MenuItem: _a,
|
|
7197
|
-
Modal:
|
|
7201
|
+
Modal: Na,
|
|
7198
7202
|
ModalHeader: Ea,
|
|
7199
7203
|
ModalBody: Ua,
|
|
7200
7204
|
ModalFooter: Za,
|
|
@@ -7204,7 +7208,7 @@ const Jr = /* @__PURE__ */ Ne(Ur, [["render", Xr]]), Be = {
|
|
|
7204
7208
|
Slider: Ms,
|
|
7205
7209
|
Stepper: Ts,
|
|
7206
7210
|
StepperItem: Ps,
|
|
7207
|
-
Tab:
|
|
7211
|
+
Tab: Ns,
|
|
7208
7212
|
TabPanel: Hs,
|
|
7209
7213
|
Accordion: Gs,
|
|
7210
7214
|
AccordionItem: Ks,
|
|
@@ -7215,15 +7219,15 @@ const Jr = /* @__PURE__ */ Ne(Ur, [["render", Xr]]), Be = {
|
|
|
7215
7219
|
DataTableCell: zl,
|
|
7216
7220
|
DataTablePagination: _e,
|
|
7217
7221
|
DataTableFilters: Al,
|
|
7218
|
-
DataTableToolBar:
|
|
7219
|
-
Footer:
|
|
7220
|
-
Header:
|
|
7221
|
-
Sidebar:
|
|
7222
|
-
Timeline:
|
|
7223
|
-
TimelineItem:
|
|
7224
|
-
AuthLayout:
|
|
7225
|
-
DefaultLayout:
|
|
7226
|
-
ErrorLayout:
|
|
7222
|
+
DataTableToolBar: ar,
|
|
7223
|
+
Footer: cr,
|
|
7224
|
+
Header: _r,
|
|
7225
|
+
Sidebar: Xr,
|
|
7226
|
+
Timeline: Jr,
|
|
7227
|
+
TimelineItem: rn,
|
|
7228
|
+
AuthLayout: Pn,
|
|
7229
|
+
DefaultLayout: On,
|
|
7230
|
+
ErrorLayout: Jn
|
|
7227
7231
|
}, so = {
|
|
7228
7232
|
install(e, l = {}) {
|
|
7229
7233
|
const { prefix: t = "" } = l;
|
|
@@ -7236,8 +7240,8 @@ const Jr = /* @__PURE__ */ Ne(Ur, [["render", Xr]]), Be = {
|
|
|
7236
7240
|
export {
|
|
7237
7241
|
Gs as Accordion,
|
|
7238
7242
|
Ks as AccordionItem,
|
|
7239
|
-
|
|
7240
|
-
|
|
7243
|
+
Rt as Alert,
|
|
7244
|
+
Pn as AuthLayout,
|
|
7241
7245
|
Ke as Avatar,
|
|
7242
7246
|
Ye as Badge,
|
|
7243
7247
|
Ot as Breadcrumb,
|
|
@@ -7257,17 +7261,17 @@ export {
|
|
|
7257
7261
|
Pe as DataTableHeader,
|
|
7258
7262
|
_e as DataTablePagination,
|
|
7259
7263
|
Fe as DataTableRow,
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
+
ar as DataTableToolBar,
|
|
7265
|
+
na as DatePicker,
|
|
7266
|
+
On as DefaultLayout,
|
|
7267
|
+
nt as Divider,
|
|
7264
7268
|
ia as Dropdown,
|
|
7265
7269
|
ca as DropdownItem,
|
|
7266
|
-
|
|
7270
|
+
Jn as ErrorLayout,
|
|
7267
7271
|
xa as FileUpload,
|
|
7268
|
-
|
|
7272
|
+
cr as Footer,
|
|
7269
7273
|
za as FormField,
|
|
7270
|
-
|
|
7274
|
+
_r as Header,
|
|
7271
7275
|
Q as Icon,
|
|
7272
7276
|
ct as Image,
|
|
7273
7277
|
he as Input,
|
|
@@ -7277,7 +7281,7 @@ export {
|
|
|
7277
7281
|
Pa as ListItem,
|
|
7278
7282
|
yt as Logo,
|
|
7279
7283
|
_a as MenuItem,
|
|
7280
|
-
|
|
7284
|
+
Na as Modal,
|
|
7281
7285
|
Ua as ModalBody,
|
|
7282
7286
|
Za as ModalFooter,
|
|
7283
7287
|
Ea as ModalHeader,
|
|
@@ -7287,18 +7291,18 @@ export {
|
|
|
7287
7291
|
St as Radio,
|
|
7288
7292
|
Ss as Search,
|
|
7289
7293
|
Ce as Select,
|
|
7290
|
-
|
|
7294
|
+
Xr as Sidebar,
|
|
7291
7295
|
Ms as Slider,
|
|
7292
7296
|
Ie as Spinner,
|
|
7293
7297
|
Ts as Stepper,
|
|
7294
7298
|
Ps as StepperItem,
|
|
7295
7299
|
Vt as Switch,
|
|
7296
|
-
|
|
7300
|
+
Ns as Tab,
|
|
7297
7301
|
Hs as TabPanel,
|
|
7298
7302
|
Mt as Text,
|
|
7299
7303
|
Tt as Textarea,
|
|
7300
|
-
|
|
7301
|
-
|
|
7304
|
+
Jr as Timeline,
|
|
7305
|
+
rn as TimelineItem,
|
|
7302
7306
|
cs as Toast,
|
|
7303
7307
|
It as Tooltip,
|
|
7304
7308
|
ke as Typography,
|