@stlhorizon/vue-ui 3.15.2 → 3.15.3
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 +167 -158
- package/dist/index.js +5 -5
- package/dist/src/components/DataTable.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3474,7 +3474,7 @@ xa({
|
|
|
3474
3474
|
};
|
|
3475
3475
|
}
|
|
3476
3476
|
});
|
|
3477
|
-
const
|
|
3477
|
+
const te = {
|
|
3478
3478
|
__name: "Icon",
|
|
3479
3479
|
props: {
|
|
3480
3480
|
icon: {
|
|
@@ -3587,7 +3587,7 @@ const ee = {
|
|
|
3587
3587
|
}, null, 42, hi)) : e.initials ? (s(), d("span", {
|
|
3588
3588
|
key: 1,
|
|
3589
3589
|
class: h(u.value)
|
|
3590
|
-
}, w(e.initials), 3)) : (s(), R(
|
|
3590
|
+
}, w(e.initials), 3)) : (s(), R(te, {
|
|
3591
3591
|
key: 2,
|
|
3592
3592
|
name: "User",
|
|
3593
3593
|
class: h(m.value)
|
|
@@ -3688,7 +3688,7 @@ const ee = {
|
|
|
3688
3688
|
"aria-label": e.dismissLabel,
|
|
3689
3689
|
onClick: r
|
|
3690
3690
|
}, [
|
|
3691
|
-
T(
|
|
3691
|
+
T(te, {
|
|
3692
3692
|
icon: "xmark",
|
|
3693
3693
|
class: "w-3 h-3"
|
|
3694
3694
|
})
|
|
@@ -3811,7 +3811,7 @@ const ee = {
|
|
|
3811
3811
|
d: "M4 12a8 8 0 018-8"
|
|
3812
3812
|
}, null, -1)
|
|
3813
3813
|
])])) : p("", !0),
|
|
3814
|
-
e.icon && !e.loading ? (s(), R(
|
|
3814
|
+
e.icon && !e.loading ? (s(), R(te, {
|
|
3815
3815
|
key: 1,
|
|
3816
3816
|
icon: e.icon,
|
|
3817
3817
|
class: "h-4 w-4"
|
|
@@ -4252,7 +4252,7 @@ const ee = {
|
|
|
4252
4252
|
key: 1,
|
|
4253
4253
|
class: h(k.value)
|
|
4254
4254
|
}, [
|
|
4255
|
-
T(
|
|
4255
|
+
T(te, {
|
|
4256
4256
|
name: "ImageOff",
|
|
4257
4257
|
class: "h-8 w-8 text-muted-foreground"
|
|
4258
4258
|
}),
|
|
@@ -4409,7 +4409,7 @@ const ee = {
|
|
|
4409
4409
|
"aria-label": e.clearLabel,
|
|
4410
4410
|
onClick: S
|
|
4411
4411
|
}, [
|
|
4412
|
-
T(
|
|
4412
|
+
T(te, {
|
|
4413
4413
|
name: "x-mark",
|
|
4414
4414
|
class: "w-5 h-5"
|
|
4415
4415
|
})
|
|
@@ -4550,18 +4550,18 @@ const ee = {
|
|
|
4550
4550
|
onClick: u
|
|
4551
4551
|
}, {
|
|
4552
4552
|
default: U(() => [
|
|
4553
|
-
e.icon && e.iconPosition === "left" ? (s(), R(
|
|
4553
|
+
e.icon && e.iconPosition === "left" ? (s(), R(te, {
|
|
4554
4554
|
key: 0,
|
|
4555
4555
|
name: e.icon,
|
|
4556
4556
|
class: h(r.value)
|
|
4557
4557
|
}, null, 8, ["name", "class"])) : p("", !0),
|
|
4558
4558
|
F(g.$slots, "default"),
|
|
4559
|
-
e.icon && e.iconPosition === "right" ? (s(), R(
|
|
4559
|
+
e.icon && e.iconPosition === "right" ? (s(), R(te, {
|
|
4560
4560
|
key: 1,
|
|
4561
4561
|
name: e.icon,
|
|
4562
4562
|
class: h(r.value)
|
|
4563
4563
|
}, null, 8, ["name", "class"])) : p("", !0),
|
|
4564
|
-
e.external && e.showExternalIcon ? (s(), R(
|
|
4564
|
+
e.external && e.showExternalIcon ? (s(), R(te, {
|
|
4565
4565
|
key: 2,
|
|
4566
4566
|
name: "external-link",
|
|
4567
4567
|
class: "w-3 h-3 ml-1 inline-block"
|
|
@@ -5959,7 +5959,7 @@ const ee = {
|
|
|
5959
5959
|
]),
|
|
5960
5960
|
_: 2
|
|
5961
5961
|
}, 1032, ["href", "class", "aria-current"])),
|
|
5962
|
-
m < e.items.length - 1 ? (s(), R(
|
|
5962
|
+
m < e.items.length - 1 ? (s(), R(te, {
|
|
5963
5963
|
key: 0,
|
|
5964
5964
|
name: e.separator,
|
|
5965
5965
|
class: "mx-2 h-4 w-4 text-muted-foreground"
|
|
@@ -6498,23 +6498,23 @@ const ee = {
|
|
|
6498
6498
|
})
|
|
6499
6499
|
), S = b(() => new Date(m.value, u.value + 1, 0).getDate()), M = b(() => new Date(m.value, u.value, 1).getDay()), A = b(() => {
|
|
6500
6500
|
const V = new Date(m.value, u.value, 0).getDate(), L = M.value;
|
|
6501
|
-
return Array.from({ length: L }, (
|
|
6501
|
+
return Array.from({ length: L }, (ee, ie) => V - L + ie + 1);
|
|
6502
6502
|
}), z = b(() => {
|
|
6503
6503
|
const V = A.value.length + S.value, L = V % 7 === 0 ? 0 : 7 - V % 7;
|
|
6504
|
-
return Array.from({ length: L }, (
|
|
6504
|
+
return Array.from({ length: L }, (ee, ie) => ie + 1);
|
|
6505
6505
|
}), v = b(() => g.value ? f(g.value) : "");
|
|
6506
6506
|
function f(V) {
|
|
6507
6507
|
if (!V) return "";
|
|
6508
|
-
const L = new Date(V),
|
|
6509
|
-
return t.format.replace("MM",
|
|
6508
|
+
const L = new Date(V), ee = String(L.getMonth() + 1).padStart(2, "0"), ie = String(L.getDate()).padStart(2, "0"), le = L.getFullYear();
|
|
6509
|
+
return t.format.replace("MM", ee).replace("DD", ie).replace("YYYY", le);
|
|
6510
6510
|
}
|
|
6511
6511
|
function i(V) {
|
|
6512
6512
|
if (!V) return null;
|
|
6513
6513
|
if (V instanceof Date) return V;
|
|
6514
6514
|
if (typeof V == "string") {
|
|
6515
|
-
const
|
|
6516
|
-
if (
|
|
6517
|
-
const ie = parseInt(
|
|
6515
|
+
const ee = V.split("-");
|
|
6516
|
+
if (ee.length === 3) {
|
|
6517
|
+
const ie = parseInt(ee[0], 10), le = parseInt(ee[1], 10) - 1, Se = parseInt(ee[2], 10);
|
|
6518
6518
|
return new Date(ie, le, Se);
|
|
6519
6519
|
}
|
|
6520
6520
|
}
|
|
@@ -6532,12 +6532,12 @@ const ee = {
|
|
|
6532
6532
|
function B(V) {
|
|
6533
6533
|
const L = new Date(m.value, u.value, V);
|
|
6534
6534
|
if (t.min) {
|
|
6535
|
-
const
|
|
6536
|
-
if (
|
|
6535
|
+
const ee = i(t.min);
|
|
6536
|
+
if (ee && L < ee) return !0;
|
|
6537
6537
|
}
|
|
6538
6538
|
if (t.max) {
|
|
6539
|
-
const
|
|
6540
|
-
if (
|
|
6539
|
+
const ee = i(t.max);
|
|
6540
|
+
if (ee && L > ee) return !0;
|
|
6541
6541
|
}
|
|
6542
6542
|
return !1;
|
|
6543
6543
|
}
|
|
@@ -6557,7 +6557,7 @@ const ee = {
|
|
|
6557
6557
|
if (B(V)) return;
|
|
6558
6558
|
const L = new Date(m.value, u.value, V);
|
|
6559
6559
|
g.value = L;
|
|
6560
|
-
const
|
|
6560
|
+
const ee = L.getFullYear(), ie = String(L.getMonth() + 1).padStart(2, "0"), le = String(L.getDate()).padStart(2, "0"), Se = `${ee}-${ie}-${le}`;
|
|
6561
6561
|
n("update:modelValue", Se), setTimeout(() => {
|
|
6562
6562
|
r.value = !1;
|
|
6563
6563
|
}, 150);
|
|
@@ -6692,32 +6692,32 @@ const ee = {
|
|
|
6692
6692
|
])])
|
|
6693
6693
|
]),
|
|
6694
6694
|
o("div", ed, [
|
|
6695
|
-
(s(), d(X, null, Q(y, (
|
|
6696
|
-
key:
|
|
6695
|
+
(s(), d(X, null, Q(y, (ee) => o("div", {
|
|
6696
|
+
key: ee,
|
|
6697
6697
|
class: "text-center text-xs font-medium text-slate-600 py-1"
|
|
6698
|
-
}, w(
|
|
6698
|
+
}, w(ee), 1)), 64))
|
|
6699
6699
|
]),
|
|
6700
6700
|
o("div", td, [
|
|
6701
|
-
(s(!0), d(X, null, Q(A.value, (
|
|
6701
|
+
(s(!0), d(X, null, Q(A.value, (ee, ie) => (s(), d("div", {
|
|
6702
6702
|
key: "prev-" + ie,
|
|
6703
6703
|
class: "text-center text-sm text-slate-300 py-2"
|
|
6704
|
-
}, w(
|
|
6705
|
-
(s(!0), d(X, null, Q(S.value, (
|
|
6706
|
-
key:
|
|
6704
|
+
}, w(ee), 1))), 128)),
|
|
6705
|
+
(s(!0), d(X, null, Q(S.value, (ee) => (s(), d("button", {
|
|
6706
|
+
key: ee,
|
|
6707
6707
|
type: "button",
|
|
6708
|
-
disabled: B(
|
|
6708
|
+
disabled: B(ee),
|
|
6709
6709
|
class: h([
|
|
6710
6710
|
"w-9 h-9 rounded-lg text-sm font-medium transition-colors",
|
|
6711
|
-
c(
|
|
6712
|
-
x(
|
|
6713
|
-
B(
|
|
6711
|
+
c(ee) && !x(ee) ? "bg-blue-50 text-blue-600 border border-blue-200" : "",
|
|
6712
|
+
x(ee) ? "bg-blue-500 text-white hover:bg-blue-600" : "text-slate-700 hover:bg-slate-100",
|
|
6713
|
+
B(ee) ? "text-slate-300 cursor-not-allowed hover:bg-transparent" : "cursor-pointer"
|
|
6714
6714
|
]),
|
|
6715
|
-
onClick: (ie) => se(
|
|
6716
|
-
}, w(
|
|
6717
|
-
(s(!0), d(X, null, Q(z.value, (
|
|
6715
|
+
onClick: (ie) => se(ee)
|
|
6716
|
+
}, w(ee), 11, ad))), 128)),
|
|
6717
|
+
(s(!0), d(X, null, Q(z.value, (ee, ie) => (s(), d("div", {
|
|
6718
6718
|
key: "next-" + ie,
|
|
6719
6719
|
class: "text-center text-sm text-slate-300 py-2"
|
|
6720
|
-
}, w(
|
|
6720
|
+
}, w(ee), 1))), 128))
|
|
6721
6721
|
]),
|
|
6722
6722
|
e.showToday ? (s(), d("div", nd, [
|
|
6723
6723
|
o("button", {
|
|
@@ -6805,7 +6805,7 @@ const ee = {
|
|
|
6805
6805
|
}, [
|
|
6806
6806
|
F(k.$slots, "trigger", {}, () => [
|
|
6807
6807
|
o("span", null, w(e.triggerText), 1),
|
|
6808
|
-
T(
|
|
6808
|
+
T(te, {
|
|
6809
6809
|
name: "chevron-down",
|
|
6810
6810
|
class: "ml-2 h-4 w-4"
|
|
6811
6811
|
})
|
|
@@ -6874,7 +6874,7 @@ const ee = {
|
|
|
6874
6874
|
onClick: u
|
|
6875
6875
|
}, {
|
|
6876
6876
|
default: U(() => [
|
|
6877
|
-
e.icon ? (s(), R(
|
|
6877
|
+
e.icon ? (s(), R(te, {
|
|
6878
6878
|
key: 0,
|
|
6879
6879
|
name: e.icon,
|
|
6880
6880
|
class: "mr-2 h-4 w-4"
|
|
@@ -6979,7 +6979,7 @@ const ee = {
|
|
|
6979
6979
|
}, null, 40, ud),
|
|
6980
6980
|
o("div", dd, [
|
|
6981
6981
|
o("div", cd, [
|
|
6982
|
-
T(
|
|
6982
|
+
T(te, {
|
|
6983
6983
|
icon: "upload",
|
|
6984
6984
|
class: "h-6 w-6 text-gray-600"
|
|
6985
6985
|
})
|
|
@@ -7022,7 +7022,7 @@ const ee = {
|
|
|
7022
7022
|
}, [
|
|
7023
7023
|
o("div", xd, [
|
|
7024
7024
|
o("div", wd, [
|
|
7025
|
-
T(
|
|
7025
|
+
T(te, {
|
|
7026
7026
|
icon: "file",
|
|
7027
7027
|
class: "h-5 w-5 text-green-600"
|
|
7028
7028
|
})
|
|
@@ -7036,7 +7036,7 @@ const ee = {
|
|
|
7036
7036
|
class: "text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-full p-1 transition-colors",
|
|
7037
7037
|
onClick: (H) => i(j)
|
|
7038
7038
|
}, [
|
|
7039
|
-
T(
|
|
7039
|
+
T(te, {
|
|
7040
7040
|
icon: "x",
|
|
7041
7041
|
class: "h-4 w-4"
|
|
7042
7042
|
})
|
|
@@ -7326,7 +7326,7 @@ const ee = {
|
|
|
7326
7326
|
default: U(() => [
|
|
7327
7327
|
y.$slots.icon || e.icon ? (s(), d("div", Fd, [
|
|
7328
7328
|
F(y.$slots, "icon", {}, () => [
|
|
7329
|
-
e.icon ? (s(), R(
|
|
7329
|
+
e.icon ? (s(), R(te, {
|
|
7330
7330
|
key: 0,
|
|
7331
7331
|
name: e.icon,
|
|
7332
7332
|
class: "h-5 w-5"
|
|
@@ -7388,14 +7388,14 @@ const ee = {
|
|
|
7388
7388
|
onClick: u
|
|
7389
7389
|
}, {
|
|
7390
7390
|
default: U(() => [
|
|
7391
|
-
e.icon ? (s(), R(
|
|
7391
|
+
e.icon ? (s(), R(te, {
|
|
7392
7392
|
key: 0,
|
|
7393
7393
|
name: e.icon,
|
|
7394
7394
|
class: "mr-2 h-4 w-4"
|
|
7395
7395
|
}, null, 8, ["name"])) : p("", !0),
|
|
7396
7396
|
F(m.$slots, "default"),
|
|
7397
7397
|
e.shortcut ? (s(), d("span", _d, w(e.shortcut), 1)) : p("", !0),
|
|
7398
|
-
e.hasSubmenu ? (s(), R(
|
|
7398
|
+
e.hasSubmenu ? (s(), R(te, {
|
|
7399
7399
|
key: 2,
|
|
7400
7400
|
name: "chevron-right",
|
|
7401
7401
|
class: "ml-auto h-4 w-4"
|
|
@@ -7512,7 +7512,7 @@ const ee = {
|
|
|
7512
7512
|
class: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
7513
7513
|
onClick: l
|
|
7514
7514
|
}, [
|
|
7515
|
-
T(
|
|
7515
|
+
T(te, {
|
|
7516
7516
|
icon: "x",
|
|
7517
7517
|
class: "h-4 w-4"
|
|
7518
7518
|
}),
|
|
@@ -7681,7 +7681,7 @@ const ee = {
|
|
|
7681
7681
|
}, [
|
|
7682
7682
|
o("div", Qd, [
|
|
7683
7683
|
e.showIcon ? (s(), d("div", Jd, [
|
|
7684
|
-
T(
|
|
7684
|
+
T(te, {
|
|
7685
7685
|
name: y.value,
|
|
7686
7686
|
class: h(k.value)
|
|
7687
7687
|
}, null, 8, ["name", "class"])
|
|
@@ -7699,7 +7699,7 @@ const ee = {
|
|
|
7699
7699
|
class: "flex-shrink-0 rounded-md p-1.5 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
7700
7700
|
onClick: S
|
|
7701
7701
|
}, [
|
|
7702
|
-
T(
|
|
7702
|
+
T(te, {
|
|
7703
7703
|
name: "x",
|
|
7704
7704
|
class: "h-4 w-4"
|
|
7705
7705
|
})
|
|
@@ -7898,7 +7898,7 @@ const nc = {
|
|
|
7898
7898
|
role: "alert",
|
|
7899
7899
|
"aria-live": f.variant === "error" ? "assertive" : "polite"
|
|
7900
7900
|
}, [
|
|
7901
|
-
M(f) ? (s(), R(
|
|
7901
|
+
M(f) ? (s(), R(te, {
|
|
7902
7902
|
key: 0,
|
|
7903
7903
|
icon: k(f),
|
|
7904
7904
|
class: h([S(f), "h-4 w-4 shrink-0"])
|
|
@@ -7922,7 +7922,7 @@ const nc = {
|
|
|
7922
7922
|
class: "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100",
|
|
7923
7923
|
onClick: (i) => _(n)(f.id)
|
|
7924
7924
|
}, [
|
|
7925
|
-
T(
|
|
7925
|
+
T(te, {
|
|
7926
7926
|
icon: "x",
|
|
7927
7927
|
class: "h-4 w-4"
|
|
7928
7928
|
})
|
|
@@ -8613,15 +8613,15 @@ const nc = {
|
|
|
8613
8613
|
})
|
|
8614
8614
|
), S = b(() => new Date(m.value, u.value + 1, 0).getDate()), M = b(() => new Date(m.value, u.value, 1).getDay()), A = b(() => {
|
|
8615
8615
|
const W = new Date(m.value, u.value, 0).getDate(), V = M.value;
|
|
8616
|
-
return Array.from({ length: V }, (L,
|
|
8616
|
+
return Array.from({ length: V }, (L, ee) => W - V + ee + 1);
|
|
8617
8617
|
}), z = b(() => {
|
|
8618
8618
|
const W = A.value.length + S.value, V = W % 7 === 0 ? 0 : 7 - W % 7;
|
|
8619
|
-
return Array.from({ length: V }, (L,
|
|
8619
|
+
return Array.from({ length: V }, (L, ee) => ee + 1);
|
|
8620
8620
|
}), v = b(() => g.value ? f(g.value) : "");
|
|
8621
8621
|
function f(W) {
|
|
8622
8622
|
if (!W) return "";
|
|
8623
|
-
const V = new Date(W), L = String(V.getMonth() + 1).padStart(2, "0"),
|
|
8624
|
-
return t.format.replace("MM", L).replace("DD",
|
|
8623
|
+
const V = new Date(W), L = String(V.getMonth() + 1).padStart(2, "0"), ee = String(V.getDate()).padStart(2, "0"), ie = V.getFullYear();
|
|
8624
|
+
return t.format.replace("MM", L).replace("DD", ee).replace("YYYY", ie);
|
|
8625
8625
|
}
|
|
8626
8626
|
function i(W) {
|
|
8627
8627
|
if (!W) return null;
|
|
@@ -8799,8 +8799,8 @@ const nc = {
|
|
|
8799
8799
|
}, w(L), 1)), 64))
|
|
8800
8800
|
]),
|
|
8801
8801
|
o("div", lf, [
|
|
8802
|
-
(s(!0), d(X, null, Q(A.value, (L,
|
|
8803
|
-
key: "prev-" +
|
|
8802
|
+
(s(!0), d(X, null, Q(A.value, (L, ee) => (s(), d("div", {
|
|
8803
|
+
key: "prev-" + ee,
|
|
8804
8804
|
class: "text-center text-sm text-slate-300 py-2"
|
|
8805
8805
|
}, w(L), 1))), 128)),
|
|
8806
8806
|
(s(!0), d(X, null, Q(S.value, (L) => (s(), d("button", {
|
|
@@ -8812,10 +8812,10 @@ const nc = {
|
|
|
8812
8812
|
c(L) ? "bg-blue-500 text-white" : "hover:bg-gray-100",
|
|
8813
8813
|
x(L) ? "text-gray-300 cursor-not-allowed" : ""
|
|
8814
8814
|
]),
|
|
8815
|
-
onClick: (
|
|
8815
|
+
onClick: (ee) => G(L)
|
|
8816
8816
|
}, w(L), 11, of))), 128)),
|
|
8817
|
-
(s(!0), d(X, null, Q(z.value, (L,
|
|
8818
|
-
key: "next-" +
|
|
8817
|
+
(s(!0), d(X, null, Q(z.value, (L, ee) => (s(), d("div", {
|
|
8818
|
+
key: "next-" + ee,
|
|
8819
8819
|
class: "text-center text-sm text-slate-300 py-2"
|
|
8820
8820
|
}, w(L), 1))), 128))
|
|
8821
8821
|
]),
|
|
@@ -9595,7 +9595,7 @@ const nc = {
|
|
|
9595
9595
|
}, [
|
|
9596
9596
|
e.showDateFilter ? (s(), d("div", em, [
|
|
9597
9597
|
o("div", tm, [
|
|
9598
|
-
T(
|
|
9598
|
+
T(te, {
|
|
9599
9599
|
icon: "calendar",
|
|
9600
9600
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
|
|
9601
9601
|
}),
|
|
@@ -9610,7 +9610,7 @@ const nc = {
|
|
|
9610
9610
|
]),
|
|
9611
9611
|
$[6] || ($[6] = o("span", { class: "text-gray-500 text-sm" }, "to", -1)),
|
|
9612
9612
|
o("div", am, [
|
|
9613
|
-
T(
|
|
9613
|
+
T(te, {
|
|
9614
9614
|
icon: "calendar",
|
|
9615
9615
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
|
|
9616
9616
|
}),
|
|
@@ -9639,7 +9639,7 @@ const nc = {
|
|
|
9639
9639
|
])]),
|
|
9640
9640
|
_: 1
|
|
9641
9641
|
}, 8, ["modelValue", "class"]),
|
|
9642
|
-
T(
|
|
9642
|
+
T(te, {
|
|
9643
9643
|
icon: "chart-bar",
|
|
9644
9644
|
class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
|
|
9645
9645
|
})
|
|
@@ -9662,7 +9662,7 @@ const nc = {
|
|
|
9662
9662
|
]),
|
|
9663
9663
|
_: 1
|
|
9664
9664
|
}, 8, ["modelValue", "class"]),
|
|
9665
|
-
T(
|
|
9665
|
+
T(te, {
|
|
9666
9666
|
icon: "database",
|
|
9667
9667
|
class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
|
|
9668
9668
|
})
|
|
@@ -9678,7 +9678,7 @@ const nc = {
|
|
|
9678
9678
|
onClick: H
|
|
9679
9679
|
}, {
|
|
9680
9680
|
default: U(() => [
|
|
9681
|
-
T(
|
|
9681
|
+
T(te, {
|
|
9682
9682
|
icon: "rotate-left",
|
|
9683
9683
|
class: "w-4 h-4 mr-2"
|
|
9684
9684
|
}),
|
|
@@ -9692,7 +9692,7 @@ const nc = {
|
|
|
9692
9692
|
onClick: $[4] || ($[4] = (D) => se.$emit("export"))
|
|
9693
9693
|
}, {
|
|
9694
9694
|
default: U(() => [
|
|
9695
|
-
T(
|
|
9695
|
+
T(te, {
|
|
9696
9696
|
icon: "download",
|
|
9697
9697
|
class: "w-4 h-4 mr-2"
|
|
9698
9698
|
}),
|
|
@@ -9706,7 +9706,7 @@ const nc = {
|
|
|
9706
9706
|
onClick: $[5] || ($[5] = (D) => se.$emit("refresh"))
|
|
9707
9707
|
}, {
|
|
9708
9708
|
default: U(() => [
|
|
9709
|
-
T(
|
|
9709
|
+
T(te, {
|
|
9710
9710
|
icon: "sync",
|
|
9711
9711
|
class: "w-4 h-4 mr-2"
|
|
9712
9712
|
}),
|
|
@@ -9728,7 +9728,7 @@ const nc = {
|
|
|
9728
9728
|
key: D.key,
|
|
9729
9729
|
class: h(x.value)
|
|
9730
9730
|
}, [
|
|
9731
|
-
T(
|
|
9731
|
+
T(te, {
|
|
9732
9732
|
icon: D.icon,
|
|
9733
9733
|
class: "w-3 h-3"
|
|
9734
9734
|
}, null, 8, ["icon"]),
|
|
@@ -9737,7 +9737,7 @@ const nc = {
|
|
|
9737
9737
|
class: h(B.value),
|
|
9738
9738
|
onClick: (W) => G(D.key)
|
|
9739
9739
|
}, [
|
|
9740
|
-
T(
|
|
9740
|
+
T(te, {
|
|
9741
9741
|
icon: "xmark",
|
|
9742
9742
|
class: "w-3 h-3"
|
|
9743
9743
|
})
|
|
@@ -10513,22 +10513,31 @@ const nc = {
|
|
|
10513
10513
|
}), v = b(() => {
|
|
10514
10514
|
let E = [...n.data];
|
|
10515
10515
|
if (m.value) {
|
|
10516
|
-
const
|
|
10517
|
-
|
|
10518
|
-
const ue = $(ne,
|
|
10516
|
+
const Z = n.columns.find((ne) => ne.key === m.value);
|
|
10517
|
+
Z && E.sort((ne, xe) => {
|
|
10518
|
+
const ue = $(ne, Z), Qe = $(xe, Z);
|
|
10519
10519
|
return ue < Qe ? g.value === "asc" ? -1 : 1 : ue > Qe ? g.value === "asc" ? 1 : -1 : 0;
|
|
10520
10520
|
});
|
|
10521
10521
|
}
|
|
10522
10522
|
return E;
|
|
10523
10523
|
}), f = b(() => Math.ceil(v.value.length / u.value)), i = b(() => {
|
|
10524
10524
|
if (!n.showPagination) return v.value;
|
|
10525
|
-
const E = (l.value - 1) * u.value,
|
|
10526
|
-
return v.value.slice(E,
|
|
10525
|
+
const E = (l.value - 1) * u.value, Z = E + u.value;
|
|
10526
|
+
return v.value.slice(E, Z);
|
|
10527
10527
|
}), c = b(() => {
|
|
10528
10528
|
let E = n.columns.length;
|
|
10529
10529
|
return n.selectable && E++, (n.$slots?.actions || n.actions.length > 0 && n.showActionsColumn) && E++, E;
|
|
10530
|
-
}), x = (E) => n.actions.filter((
|
|
10531
|
-
|
|
10530
|
+
}), x = (E) => n.actions.filter((Z) => {
|
|
10531
|
+
if (Z.permission !== void 0) {
|
|
10532
|
+
if (typeof Z.permission == "function") {
|
|
10533
|
+
if (!Z.permission(E))
|
|
10534
|
+
return !1;
|
|
10535
|
+
} else if (!Z.permission)
|
|
10536
|
+
return !1;
|
|
10537
|
+
}
|
|
10538
|
+
return Z.visible && typeof Z.visible == "function" ? Z.visible(E) : !0;
|
|
10539
|
+
}), B = (E, Z) => E.permission && typeof E.permission == "function" ? E.permission(Z) : !0, C = (E, Z) => E.disabled && typeof E.disabled == "function" ? E.disabled(Z) : !1, j = (E, Z) => {
|
|
10540
|
+
C(E, Z) || !B(E, Z) || (r("action", { action: E.key, item: Z, actionConfig: E }), E.onClick && typeof E.onClick == "function" && E.onClick(Z));
|
|
10532
10541
|
}, H = (E) => ({
|
|
10533
10542
|
default: "default",
|
|
10534
10543
|
primary: "gradient",
|
|
@@ -10547,20 +10556,20 @@ const nc = {
|
|
|
10547
10556
|
link: "link",
|
|
10548
10557
|
ghost: "ghost"
|
|
10549
10558
|
})[E] || "ghost", G = b(() => v.value.length > 0 && v.value.every((E) => W(E))), se = b(() => {
|
|
10550
|
-
const E = v.value.filter((
|
|
10559
|
+
const E = v.value.filter((Z) => W(Z)).length;
|
|
10551
10560
|
return E > 0 && E < v.value.length;
|
|
10552
|
-
}), $ = (E,
|
|
10553
|
-
(
|
|
10561
|
+
}), $ = (E, Z) => Z.accessor ? Z.accessor(E) : Z.key.split(".").reduce((ne, xe) => ne?.[xe], E), D = (E, Z) => E[n.rowKey] || Z, W = (E) => n.selectedItems.some(
|
|
10562
|
+
(Z) => D(Z) === D(E)
|
|
10554
10563
|
), V = (E) => {
|
|
10555
|
-
const
|
|
10564
|
+
const Z = [...n.selectedItems], ne = Z.findIndex(
|
|
10556
10565
|
(xe) => D(xe) === D(E)
|
|
10557
10566
|
);
|
|
10558
|
-
ne > -1 ?
|
|
10567
|
+
ne > -1 ? Z.splice(ne, 1) : Z.push(E), r("selection-change", Z);
|
|
10559
10568
|
}, L = () => {
|
|
10560
10569
|
if (n.loading || n.dataLoading) return;
|
|
10561
10570
|
const E = G.value ? [] : [...v.value];
|
|
10562
10571
|
r("selection-change", E);
|
|
10563
|
-
},
|
|
10572
|
+
}, ee = async (E) => {
|
|
10564
10573
|
!E.sortable || n.loading || n.sortLoading || (m.value === E.key ? g.value = g.value === "asc" ? "desc" : "asc" : (m.value = E.key, g.value = "asc"), r("sort-change", { column: E.key, direction: g.value }));
|
|
10565
10574
|
}, ie = (E) => {
|
|
10566
10575
|
n.loading || r("row-click", E);
|
|
@@ -10594,16 +10603,16 @@ const nc = {
|
|
|
10594
10603
|
comfortable: "px-8 py-6"
|
|
10595
10604
|
}[n.density],
|
|
10596
10605
|
"whitespace-nowrap text-sm text-slate-900"
|
|
10597
|
-
), nt = (E,
|
|
10606
|
+
), nt = (E, Z) => {
|
|
10598
10607
|
const ne = [];
|
|
10599
|
-
return n.striped &&
|
|
10600
|
-
}, Ge = (E,
|
|
10601
|
-
const ne = $(E,
|
|
10602
|
-
return typeof
|
|
10603
|
-
}, Ht = (E,
|
|
10608
|
+
return n.striped && Z % 2 === 1 && ne.push("bg-slate-50/50"), n.hoverable && !n.clickableRows && ne.push("hover:bg-slate-50"), n.clickableRows && ne.push("cursor-pointer hover:bg-slate-100"), n.selectable && W(E) && ne.push("bg-blue-50 border-blue-200"), n.variant === "bordered" ? ne.push("border-b border-slate-200") : n.variant === "minimal" && ne.push("border-b border-slate-100"), P("transition-colors", ...ne);
|
|
10609
|
+
}, Ge = (E, Z) => {
|
|
10610
|
+
const ne = $(E, Z);
|
|
10611
|
+
return typeof Z == "object" && Z.formatter ? Z.formatter(ne, E) : ne == null ? "" : ne instanceof Date ? ne.toLocaleDateString() : Array.isArray(ne) ? ne.join(", ") : ne;
|
|
10612
|
+
}, Ht = (E, Z = 10) => {
|
|
10604
10613
|
if (!E) return E;
|
|
10605
10614
|
const ne = E.toString().split(" ");
|
|
10606
|
-
return ne.length <=
|
|
10615
|
+
return ne.length <= Z ? E : ne.slice(0, Z).join(" ") + "...";
|
|
10607
10616
|
}, Yt = (E) => {
|
|
10608
10617
|
k.value || (k.value = E, y.value = !0);
|
|
10609
10618
|
}, Ke = () => {
|
|
@@ -10629,10 +10638,10 @@ const nc = {
|
|
|
10629
10638
|
comfortable: "px-8 py-8"
|
|
10630
10639
|
}[n.density],
|
|
10631
10640
|
"text-center"
|
|
10632
|
-
)), $t = (E,
|
|
10641
|
+
)), $t = (E, Z) => P(
|
|
10633
10642
|
{
|
|
10634
|
-
"text-blue-600": m.value === E.key && g.value ===
|
|
10635
|
-
"text-slate-300": m.value !== E.key || g.value !==
|
|
10643
|
+
"text-blue-600": m.value === E.key && g.value === Z,
|
|
10644
|
+
"text-slate-300": m.value !== E.key || g.value !== Z
|
|
10636
10645
|
}
|
|
10637
10646
|
);
|
|
10638
10647
|
return me(() => n.selectedItems, () => {
|
|
@@ -10654,7 +10663,7 @@ const nc = {
|
|
|
10654
10663
|
getCurrentPage: () => l.value,
|
|
10655
10664
|
getTotalPages: () => f.value,
|
|
10656
10665
|
getSelectedItems: () => n.selectedItems
|
|
10657
|
-
}), (E,
|
|
10666
|
+
}), (E, Z) => (s(), d("div", {
|
|
10658
10667
|
class: h(yt.value)
|
|
10659
10668
|
}, [
|
|
10660
10669
|
e.title || e.description || E.$slots.header ? (s(), R(Fr, {
|
|
@@ -10718,7 +10727,7 @@ const nc = {
|
|
|
10718
10727
|
(s(!0), d(X, null, Q(e.columns, (ne) => (s(), d("th", {
|
|
10719
10728
|
key: ne.key,
|
|
10720
10729
|
class: h(qt(ne)),
|
|
10721
|
-
onClick: (xe) =>
|
|
10730
|
+
onClick: (xe) => ee(ne)
|
|
10722
10731
|
}, [
|
|
10723
10732
|
o("div", Hm, [
|
|
10724
10733
|
o("span", null, w(ne.label), 1),
|
|
@@ -10735,7 +10744,7 @@ const nc = {
|
|
|
10735
10744
|
viewBox: "0 0 24 24",
|
|
10736
10745
|
"stroke-width": "1.5",
|
|
10737
10746
|
stroke: "currentColor"
|
|
10738
|
-
}, [...
|
|
10747
|
+
}, [...Z[1] || (Z[1] = [
|
|
10739
10748
|
o("path", {
|
|
10740
10749
|
"stroke-linecap": "round",
|
|
10741
10750
|
"stroke-linejoin": "round",
|
|
@@ -10748,7 +10757,7 @@ const nc = {
|
|
|
10748
10757
|
viewBox: "0 0 24 24",
|
|
10749
10758
|
"stroke-width": "1.5",
|
|
10750
10759
|
stroke: "currentColor"
|
|
10751
|
-
}, [...
|
|
10760
|
+
}, [...Z[2] || (Z[2] = [
|
|
10752
10761
|
o("path", {
|
|
10753
10762
|
"stroke-linecap": "round",
|
|
10754
10763
|
"stroke-linejoin": "round",
|
|
@@ -10774,19 +10783,19 @@ const nc = {
|
|
|
10774
10783
|
e.selectable ? (s(), d("td", {
|
|
10775
10784
|
key: 0,
|
|
10776
10785
|
class: h(Ue.value)
|
|
10777
|
-
}, [...
|
|
10786
|
+
}, [...Z[3] || (Z[3] = [
|
|
10778
10787
|
o("div", { class: "w-4 h-4 bg-slate-200 rounded" }, null, -1)
|
|
10779
10788
|
])], 2)) : p("", !0),
|
|
10780
10789
|
(s(!0), d(X, null, Q(e.columns, (xe) => (s(), d("td", {
|
|
10781
10790
|
key: xe.key,
|
|
10782
10791
|
class: h(wt())
|
|
10783
|
-
}, [...
|
|
10792
|
+
}, [...Z[4] || (Z[4] = [
|
|
10784
10793
|
o("div", { class: "h-4 bg-slate-200 rounded w-3/4" }, null, -1)
|
|
10785
10794
|
])], 2))), 128)),
|
|
10786
10795
|
E.$slots.actions || e.actions.length > 0 && e.showActionsColumn ? (s(), d("td", {
|
|
10787
10796
|
key: 1,
|
|
10788
10797
|
class: h(Xe.value)
|
|
10789
|
-
}, [...
|
|
10798
|
+
}, [...Z[5] || (Z[5] = [
|
|
10790
10799
|
o("div", { class: "flex gap-2 justify-center" }, [
|
|
10791
10800
|
o("div", { class: "w-6 h-6 bg-slate-200 rounded" }),
|
|
10792
10801
|
o("div", { class: "w-6 h-6 bg-slate-200 rounded" })
|
|
@@ -10846,7 +10855,7 @@ const nc = {
|
|
|
10846
10855
|
onClick: pe((Qe) => j(ue, ne), ["stop"])
|
|
10847
10856
|
}, {
|
|
10848
10857
|
default: U(() => [
|
|
10849
|
-
ue.icon ? (s(), R(
|
|
10858
|
+
ue.icon ? (s(), R(te, {
|
|
10850
10859
|
key: 0,
|
|
10851
10860
|
icon: ue.icon,
|
|
10852
10861
|
class: "w-4 h-4"
|
|
@@ -10867,7 +10876,7 @@ const nc = {
|
|
|
10867
10876
|
F(E.$slots, "empty", {}, () => [
|
|
10868
10877
|
o("div", eg, [
|
|
10869
10878
|
o("div", tg, [
|
|
10870
|
-
T(
|
|
10879
|
+
T(te, {
|
|
10871
10880
|
icon: "search",
|
|
10872
10881
|
class: "w-16 h-16"
|
|
10873
10882
|
})
|
|
@@ -10905,14 +10914,14 @@ const nc = {
|
|
|
10905
10914
|
}, 8, ["current-page", "total-pages", "total", "page-size", "show-pagination", "selectable", "selected-count", "variant", "padding", "loading", "disabled"])) : p("", !0),
|
|
10906
10915
|
T(Ea, {
|
|
10907
10916
|
modelValue: y.value,
|
|
10908
|
-
"onUpdate:modelValue":
|
|
10917
|
+
"onUpdate:modelValue": Z[0] || (Z[0] = (ne) => y.value = ne),
|
|
10909
10918
|
size: "lg",
|
|
10910
10919
|
height: "auto",
|
|
10911
10920
|
onClose: Ke
|
|
10912
10921
|
}, {
|
|
10913
10922
|
default: U(() => [
|
|
10914
10923
|
o("div", rg, [
|
|
10915
|
-
|
|
10924
|
+
Z[6] || (Z[6] = o("h3", { class: "text-md font-semibold mb-4" }, " Full Text ", -1)),
|
|
10916
10925
|
o("div", sg, w(k.value), 1)
|
|
10917
10926
|
])
|
|
10918
10927
|
]),
|
|
@@ -10920,7 +10929,7 @@ const nc = {
|
|
|
10920
10929
|
}, 8, ["modelValue"])
|
|
10921
10930
|
], 2));
|
|
10922
10931
|
}
|
|
10923
|
-
}, og = /* @__PURE__ */ Rt(lg, [["__scopeId", "data-v-
|
|
10932
|
+
}, og = /* @__PURE__ */ Rt(lg, [["__scopeId", "data-v-2fc21870"]]), ig = {
|
|
10924
10933
|
__name: "DataTableRow",
|
|
10925
10934
|
props: {
|
|
10926
10935
|
item: {
|
|
@@ -11459,7 +11468,7 @@ const nc = {
|
|
|
11459
11468
|
selected: J.selected.filter((de) => de !== O)
|
|
11460
11469
|
} : J);
|
|
11461
11470
|
n("update:multiSelectFilters", I);
|
|
11462
|
-
},
|
|
11471
|
+
}, ee = (K, O) => {
|
|
11463
11472
|
const I = K.options.find((J) => J.value === O);
|
|
11464
11473
|
return I ? I.label : O;
|
|
11465
11474
|
}, ie = () => {
|
|
@@ -11583,7 +11592,7 @@ const nc = {
|
|
|
11583
11592
|
() => P(i({ variant: "ghost", size: "md" }))
|
|
11584
11593
|
), E = b(
|
|
11585
11594
|
() => P(i({ variant: "default", size: "lg" }))
|
|
11586
|
-
),
|
|
11595
|
+
), Z = b(
|
|
11587
11596
|
() => "px-6 py-3 bg-blue-50 border-t border-blue-100"
|
|
11588
11597
|
), ne = b(
|
|
11589
11598
|
() => "text-sm font-semibold text-blue-800"
|
|
@@ -11658,7 +11667,7 @@ const nc = {
|
|
|
11658
11667
|
}, [
|
|
11659
11668
|
e.showSearch ? (s(), d("div", cg, [
|
|
11660
11669
|
o("div", fg, [
|
|
11661
|
-
T(
|
|
11670
|
+
T(te, {
|
|
11662
11671
|
icon: "magnifying-glass",
|
|
11663
11672
|
class: h(Ut.value)
|
|
11664
11673
|
}, null, 8, ["class"]),
|
|
@@ -11673,7 +11682,7 @@ const nc = {
|
|
|
11673
11682
|
class: h(wt.value),
|
|
11674
11683
|
onClick: O[1] || (O[1] = (I) => K.$emit("update:searchQuery", ""))
|
|
11675
11684
|
}, [
|
|
11676
|
-
T(
|
|
11685
|
+
T(te, {
|
|
11677
11686
|
icon: "xmark",
|
|
11678
11687
|
class: "w-3 h-3"
|
|
11679
11688
|
})
|
|
@@ -11699,7 +11708,7 @@ const nc = {
|
|
|
11699
11708
|
]),
|
|
11700
11709
|
_: 2
|
|
11701
11710
|
}, 1032, ["model-value", "class", "onChange"]),
|
|
11702
|
-
T(
|
|
11711
|
+
T(te, {
|
|
11703
11712
|
icon: "chevron-down",
|
|
11704
11713
|
class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
|
|
11705
11714
|
})
|
|
@@ -11721,7 +11730,7 @@ const nc = {
|
|
|
11721
11730
|
]),
|
|
11722
11731
|
_: 1
|
|
11723
11732
|
}, 8, ["model-value", "class"]),
|
|
11724
|
-
T(
|
|
11733
|
+
T(te, {
|
|
11725
11734
|
icon: "chevron-down",
|
|
11726
11735
|
class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
|
|
11727
11736
|
})
|
|
@@ -11732,7 +11741,7 @@ const nc = {
|
|
|
11732
11741
|
class: h(Ge.value),
|
|
11733
11742
|
onClick: ie
|
|
11734
11743
|
}, [
|
|
11735
|
-
T(
|
|
11744
|
+
T(te, {
|
|
11736
11745
|
icon: "filter",
|
|
11737
11746
|
class: "w-4 h-4"
|
|
11738
11747
|
}),
|
|
@@ -11741,7 +11750,7 @@ const nc = {
|
|
|
11741
11750
|
key: 0,
|
|
11742
11751
|
class: h(Ht.value)
|
|
11743
11752
|
}, w(yt.value), 3)) : p("", !0),
|
|
11744
|
-
T(
|
|
11753
|
+
T(te, {
|
|
11745
11754
|
icon: r.value ? "chevron-up" : "chevron-down",
|
|
11746
11755
|
class: "w-4 h-4 ml-1"
|
|
11747
11756
|
}, null, 8, ["icon"])
|
|
@@ -11757,7 +11766,7 @@ const nc = {
|
|
|
11757
11766
|
onClick: k
|
|
11758
11767
|
}, {
|
|
11759
11768
|
default: U(() => [
|
|
11760
|
-
T(
|
|
11769
|
+
T(te, {
|
|
11761
11770
|
icon: "upload",
|
|
11762
11771
|
class: "w-4 h-4 mr-2"
|
|
11763
11772
|
}),
|
|
@@ -11772,7 +11781,7 @@ const nc = {
|
|
|
11772
11781
|
onClick: Qe
|
|
11773
11782
|
}, {
|
|
11774
11783
|
default: U(() => [
|
|
11775
|
-
T(
|
|
11784
|
+
T(te, {
|
|
11776
11785
|
icon: "rotate-left",
|
|
11777
11786
|
class: "w-4 h-4 mr-2"
|
|
11778
11787
|
}),
|
|
@@ -11786,7 +11795,7 @@ const nc = {
|
|
|
11786
11795
|
onClick: O[3] || (O[3] = (I) => K.$emit("export"))
|
|
11787
11796
|
}, {
|
|
11788
11797
|
default: U(() => [
|
|
11789
|
-
T(
|
|
11798
|
+
T(te, {
|
|
11790
11799
|
icon: "download",
|
|
11791
11800
|
class: "w-4 h-4 mr-2"
|
|
11792
11801
|
}),
|
|
@@ -11804,7 +11813,7 @@ const nc = {
|
|
|
11804
11813
|
onClick: z
|
|
11805
11814
|
}, {
|
|
11806
11815
|
default: U(() => [
|
|
11807
|
-
e.addButton.icon ? (s(), R(
|
|
11816
|
+
e.addButton.icon ? (s(), R(te, {
|
|
11808
11817
|
key: 0,
|
|
11809
11818
|
icon: e.addButton.icon,
|
|
11810
11819
|
class: "w-4 h-4 mr-2"
|
|
@@ -11819,7 +11828,7 @@ const nc = {
|
|
|
11819
11828
|
onClick: O[4] || (O[4] = (I) => K.$emit("add"))
|
|
11820
11829
|
}, {
|
|
11821
11830
|
default: U(() => [
|
|
11822
|
-
T(
|
|
11831
|
+
T(te, {
|
|
11823
11832
|
icon: "plus",
|
|
11824
11833
|
class: "w-4 h-4 mr-2"
|
|
11825
11834
|
}),
|
|
@@ -11850,7 +11859,7 @@ const nc = {
|
|
|
11850
11859
|
]),
|
|
11851
11860
|
o("div", zg, [
|
|
11852
11861
|
o("div", Ag, [
|
|
11853
|
-
T(
|
|
11862
|
+
T(te, {
|
|
11854
11863
|
icon: "calendar",
|
|
11855
11864
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
|
|
11856
11865
|
}),
|
|
@@ -11866,7 +11875,7 @@ const nc = {
|
|
|
11866
11875
|
class: h(Xe.value)
|
|
11867
11876
|
}, "to", 2),
|
|
11868
11877
|
o("div", Pg, [
|
|
11869
|
-
T(
|
|
11878
|
+
T(te, {
|
|
11870
11879
|
icon: "calendar",
|
|
11871
11880
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
|
|
11872
11881
|
}),
|
|
@@ -11884,7 +11893,7 @@ const nc = {
|
|
|
11884
11893
|
title: "Clear this filter",
|
|
11885
11894
|
onClick: (J) => B(I.key)
|
|
11886
11895
|
}, [
|
|
11887
|
-
T(
|
|
11896
|
+
T(te, {
|
|
11888
11897
|
icon: "xmark",
|
|
11889
11898
|
class: "w-4 h-4"
|
|
11890
11899
|
})
|
|
@@ -11933,7 +11942,7 @@ const nc = {
|
|
|
11933
11942
|
title: "Clear this filter",
|
|
11934
11943
|
onClick: (J) => G(I.key)
|
|
11935
11944
|
}, [
|
|
11936
|
-
T(
|
|
11945
|
+
T(te, {
|
|
11937
11946
|
icon: "xmark",
|
|
11938
11947
|
class: "w-4 h-4"
|
|
11939
11948
|
})
|
|
@@ -11967,7 +11976,7 @@ const nc = {
|
|
|
11967
11976
|
]),
|
|
11968
11977
|
_: 2
|
|
11969
11978
|
}, 1032, ["class", "onChange"]),
|
|
11970
|
-
T(
|
|
11979
|
+
T(te, {
|
|
11971
11980
|
icon: "chevron-down",
|
|
11972
11981
|
class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
|
|
11973
11982
|
})
|
|
@@ -11977,12 +11986,12 @@ const nc = {
|
|
|
11977
11986
|
key: J,
|
|
11978
11987
|
class: "inline-flex items-center gap-1 bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full"
|
|
11979
11988
|
}, [
|
|
11980
|
-
ae(w(
|
|
11989
|
+
ae(w(ee(I, J)) + " ", 1),
|
|
11981
11990
|
o("button", {
|
|
11982
11991
|
class: "hover:bg-blue-200 rounded-full p-0.5",
|
|
11983
11992
|
onClick: (de) => L(I.key, J)
|
|
11984
11993
|
}, [
|
|
11985
|
-
T(
|
|
11994
|
+
T(te, {
|
|
11986
11995
|
icon: "xmark",
|
|
11987
11996
|
class: "w-3 h-3"
|
|
11988
11997
|
})
|
|
@@ -11994,7 +12003,7 @@ const nc = {
|
|
|
11994
12003
|
], 2)) : p("", !0),
|
|
11995
12004
|
e.showFilters && xt.value.length > 0 ? (s(), d("div", {
|
|
11996
12005
|
key: 1,
|
|
11997
|
-
class: h(
|
|
12006
|
+
class: h(Z.value)
|
|
11998
12007
|
}, [
|
|
11999
12008
|
o("div", Hg, [
|
|
12000
12009
|
o("span", {
|
|
@@ -12004,7 +12013,7 @@ const nc = {
|
|
|
12004
12013
|
key: I.key,
|
|
12005
12014
|
class: h(xe.value)
|
|
12006
12015
|
}, [
|
|
12007
|
-
T(
|
|
12016
|
+
T(te, {
|
|
12008
12017
|
icon: I.icon,
|
|
12009
12018
|
class: "w-3 h-3"
|
|
12010
12019
|
}, null, 8, ["icon"]),
|
|
@@ -12013,7 +12022,7 @@ const nc = {
|
|
|
12013
12022
|
class: h(ue.value),
|
|
12014
12023
|
onClick: (J) => Dr(I.key)
|
|
12015
12024
|
}, [
|
|
12016
|
-
T(
|
|
12025
|
+
T(te, {
|
|
12017
12026
|
icon: "xmark",
|
|
12018
12027
|
class: "w-3 h-3"
|
|
12019
12028
|
})
|
|
@@ -12044,7 +12053,7 @@ const nc = {
|
|
|
12044
12053
|
class: "text-gray-400 hover:text-gray-600 p-2 hover:bg-gray-100 rounded-full transition-all",
|
|
12045
12054
|
onClick: S
|
|
12046
12055
|
}, [
|
|
12047
|
-
T(
|
|
12056
|
+
T(te, {
|
|
12048
12057
|
icon: "xmark",
|
|
12049
12058
|
class: "w-5 h-5"
|
|
12050
12059
|
})
|
|
@@ -12210,23 +12219,23 @@ const nc = {
|
|
|
12210
12219
|
}, H = () => {
|
|
12211
12220
|
r.value = !r.value;
|
|
12212
12221
|
}, G = (L) => P(k({ variant: L.variant || "secondary" })), se = (L) => {
|
|
12213
|
-
let
|
|
12214
|
-
return L === "compact" ?
|
|
12222
|
+
let ee = "middle";
|
|
12223
|
+
return L === "compact" ? ee = "first" : L === "comfortable" && (ee = "last"), P(S({
|
|
12215
12224
|
active: t.density === L,
|
|
12216
|
-
position:
|
|
12225
|
+
position: ee
|
|
12217
12226
|
}));
|
|
12218
12227
|
}, $ = () => P(M({
|
|
12219
12228
|
state: t.isRefreshing ? "refreshing" : "normal"
|
|
12220
12229
|
})), D = () => P("w-4 h-4", {
|
|
12221
12230
|
"animate-spin": t.isRefreshing
|
|
12222
|
-
}), W = (L) => t.visibleColumns.includes(L), V = (L,
|
|
12223
|
-
n("toggle-column", { column: L, visible:
|
|
12231
|
+
}), W = (L) => t.visibleColumns.includes(L), V = (L, ee) => {
|
|
12232
|
+
n("toggle-column", { column: L, visible: ee });
|
|
12224
12233
|
};
|
|
12225
12234
|
return $e(() => {
|
|
12226
12235
|
document.addEventListener("click", j);
|
|
12227
12236
|
}), Be(() => {
|
|
12228
12237
|
document.removeEventListener("click", j);
|
|
12229
|
-
}), (L,
|
|
12238
|
+
}), (L, ee) => {
|
|
12230
12239
|
const ie = he("font-awesome-icon");
|
|
12231
12240
|
return s(), d("div", {
|
|
12232
12241
|
class: h(A.value)
|
|
@@ -12286,13 +12295,13 @@ const nc = {
|
|
|
12286
12295
|
icon: "columns",
|
|
12287
12296
|
class: "w-4 h-4"
|
|
12288
12297
|
}),
|
|
12289
|
-
|
|
12298
|
+
ee[2] || (ee[2] = o("span", null, "Columns", -1))
|
|
12290
12299
|
], 2),
|
|
12291
12300
|
Ie(o("div", {
|
|
12292
12301
|
ref_key: "columnMenu",
|
|
12293
12302
|
ref: u,
|
|
12294
12303
|
class: h(i.value),
|
|
12295
|
-
onClick:
|
|
12304
|
+
onClick: ee[0] || (ee[0] = pe(() => {
|
|
12296
12305
|
}, ["stop"]))
|
|
12297
12306
|
}, [
|
|
12298
12307
|
o("div", u0, [
|
|
@@ -12327,13 +12336,13 @@ const nc = {
|
|
|
12327
12336
|
disabled: e.isRefreshing,
|
|
12328
12337
|
class: h($()),
|
|
12329
12338
|
type: "button",
|
|
12330
|
-
onClick:
|
|
12339
|
+
onClick: ee[1] || (ee[1] = (le) => L.$emit("refresh"))
|
|
12331
12340
|
}, [
|
|
12332
12341
|
T(ie, {
|
|
12333
12342
|
icon: "sync",
|
|
12334
12343
|
class: h(D())
|
|
12335
12344
|
}, null, 8, ["class"]),
|
|
12336
|
-
|
|
12345
|
+
ee[3] || (ee[3] = o("span", null, "Refresh", -1))
|
|
12337
12346
|
], 10, m0)) : p("", !0),
|
|
12338
12347
|
L.$slots.actions ? (s(), d("div", g0, [
|
|
12339
12348
|
F(L.$slots, "actions")
|
|
@@ -12881,7 +12890,7 @@ const nc = {
|
|
|
12881
12890
|
i($) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
|
|
12882
12891
|
))
|
|
12883
12892
|
}, [
|
|
12884
|
-
$.icon ? (s(), R(
|
|
12893
|
+
$.icon ? (s(), R(te, {
|
|
12885
12894
|
key: 0,
|
|
12886
12895
|
icon: $.icon,
|
|
12887
12896
|
class: "w-4 h-4"
|
|
@@ -12901,7 +12910,7 @@ const nc = {
|
|
|
12901
12910
|
onClick: (D) => c($)
|
|
12902
12911
|
}, [
|
|
12903
12912
|
o("div", wv, [
|
|
12904
|
-
$.icon ? (s(), R(
|
|
12913
|
+
$.icon ? (s(), R(te, {
|
|
12905
12914
|
key: 0,
|
|
12906
12915
|
icon: $.icon,
|
|
12907
12916
|
class: "w-4 h-4"
|
|
@@ -14273,7 +14282,7 @@ const nc = {
|
|
|
14273
14282
|
H(V) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
|
|
14274
14283
|
))
|
|
14275
14284
|
}, [
|
|
14276
|
-
T(
|
|
14285
|
+
T(te, {
|
|
14277
14286
|
icon: V.icon,
|
|
14278
14287
|
class: "w-6 h-6"
|
|
14279
14288
|
}, null, 8, ["icon"])
|
|
@@ -14303,7 +14312,7 @@ const nc = {
|
|
|
14303
14312
|
H(V) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
|
|
14304
14313
|
))
|
|
14305
14314
|
}, [
|
|
14306
|
-
T(
|
|
14315
|
+
T(te, {
|
|
14307
14316
|
icon: V.icon,
|
|
14308
14317
|
class: "w-6 h-6"
|
|
14309
14318
|
}, null, 8, ["icon"])
|
|
@@ -14337,7 +14346,7 @@ const nc = {
|
|
|
14337
14346
|
e.isManagementSettingsActive ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
|
|
14338
14347
|
))
|
|
14339
14348
|
}, [
|
|
14340
|
-
T(
|
|
14349
|
+
T(te, {
|
|
14341
14350
|
icon: "cog",
|
|
14342
14351
|
class: "w-6 h-6"
|
|
14343
14352
|
})
|
|
@@ -14418,7 +14427,7 @@ const nc = {
|
|
|
14418
14427
|
)
|
|
14419
14428
|
)
|
|
14420
14429
|
}, [
|
|
14421
|
-
V.icon ? (s(), R(
|
|
14430
|
+
V.icon ? (s(), R(te, {
|
|
14422
14431
|
key: 0,
|
|
14423
14432
|
icon: V.icon,
|
|
14424
14433
|
class: "w-4 h-4"
|
|
@@ -14509,7 +14518,7 @@ const nc = {
|
|
|
14509
14518
|
)
|
|
14510
14519
|
)
|
|
14511
14520
|
}, [
|
|
14512
|
-
V.icon ? (s(), R(
|
|
14521
|
+
V.icon ? (s(), R(te, {
|
|
14513
14522
|
key: 0,
|
|
14514
14523
|
icon: V.icon,
|
|
14515
14524
|
class: "w-4 h-4"
|
|
@@ -15138,7 +15147,7 @@ const vb = /* @__PURE__ */ Rt(Nh, [["render", gb]]), hb = { class: "min-h-screen
|
|
|
15138
15147
|
"text-lg text-slate-600 max-w-lg mx-auto"
|
|
15139
15148
|
]), L = b(() => [
|
|
15140
15149
|
"mt-8"
|
|
15141
|
-
]),
|
|
15150
|
+
]), ee = b(() => [
|
|
15142
15151
|
"mt-8"
|
|
15143
15152
|
]), ie = b(() => [
|
|
15144
15153
|
"mt-6"
|
|
@@ -15173,7 +15182,7 @@ const vb = /* @__PURE__ */ Rt(Nh, [["render", gb]]), hb = { class: "min-h-screen
|
|
|
15173
15182
|
titleClasses: W,
|
|
15174
15183
|
messageClasses: V,
|
|
15175
15184
|
actionsClasses: L,
|
|
15176
|
-
additionalInfoClasses:
|
|
15185
|
+
additionalInfoClasses: ee,
|
|
15177
15186
|
helpClasses: ie
|
|
15178
15187
|
};
|
|
15179
15188
|
}
|
|
@@ -15473,12 +15482,12 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15473
15482
|
k.value,
|
|
15474
15483
|
B,
|
|
15475
15484
|
$
|
|
15476
|
-
), W = t.doughnut ? (y.value + k.value) / 2 : y.value * 0.7, V = B + se / 2, L = m.value + Math.cos(V) * W,
|
|
15485
|
+
), W = t.doughnut ? (y.value + k.value) / 2 : y.value * 0.7, V = B + se / 2, L = m.value + Math.cos(V) * W, ee = g.value + Math.sin(V) * W, ie = {
|
|
15477
15486
|
value: H,
|
|
15478
15487
|
percentage: G,
|
|
15479
15488
|
path: D,
|
|
15480
15489
|
labelX: L,
|
|
15481
|
-
labelY:
|
|
15490
|
+
labelY: ee,
|
|
15482
15491
|
label: t.labels[j] || `Item ${j + 1}`,
|
|
15483
15492
|
startAngle: B,
|
|
15484
15493
|
endAngle: $
|
|
@@ -15490,8 +15499,8 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15490
15499
|
if (j === 0)
|
|
15491
15500
|
return `M ${x} ${B} L ${se} ${$} A ${C} ${C} 0 ${V} 1 ${D} ${W} Z`;
|
|
15492
15501
|
{
|
|
15493
|
-
const L = x + j * Math.cos(G),
|
|
15494
|
-
return `M ${se} ${$} A ${C} ${C} 0 ${V} 1 ${D} ${W} L ${L} ${
|
|
15502
|
+
const L = x + j * Math.cos(G), ee = B + j * Math.sin(G), ie = x + j * Math.cos(H), le = B + j * Math.sin(H);
|
|
15503
|
+
return `M ${se} ${$} A ${C} ${C} 0 ${V} 1 ${D} ${W} L ${L} ${ee} A ${j} ${j} 0 ${V} 0 ${ie} ${le} Z`;
|
|
15495
15504
|
}
|
|
15496
15505
|
}, A = (x) => t.colors[x % t.colors.length], z = (x) => {
|
|
15497
15506
|
if (t.legendPosition === "right")
|
|
@@ -15788,7 +15797,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15788
15797
|
}, [
|
|
15789
15798
|
e.showHeader ? (s(), d("div", up, [
|
|
15790
15799
|
o("div", dp, [
|
|
15791
|
-
e.icon ? (s(), R(
|
|
15800
|
+
e.icon ? (s(), R(te, {
|
|
15792
15801
|
key: 0,
|
|
15793
15802
|
icon: e.icon,
|
|
15794
15803
|
class: "w-5 h-5 text-slate-700"
|
|
@@ -15802,7 +15811,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15802
15811
|
title: "Keyboard shortcuts (?)",
|
|
15803
15812
|
onClick: D[0] || (D[0] = (W) => f.value = !f.value)
|
|
15804
15813
|
}, [
|
|
15805
|
-
T(
|
|
15814
|
+
T(te, {
|
|
15806
15815
|
icon: "circle-info",
|
|
15807
15816
|
class: "w-4 h-4 text-slate-600"
|
|
15808
15817
|
})
|
|
@@ -15813,7 +15822,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15813
15822
|
title: "Customize (C)",
|
|
15814
15823
|
onClick: y
|
|
15815
15824
|
}, [
|
|
15816
|
-
T(
|
|
15825
|
+
T(te, {
|
|
15817
15826
|
icon: "gear",
|
|
15818
15827
|
class: "w-4 h-4 text-slate-600"
|
|
15819
15828
|
})
|
|
@@ -15825,7 +15834,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15825
15834
|
title: "Refresh (R)",
|
|
15826
15835
|
onClick: D[1] || (D[1] = (W) => $.$emit("refresh"))
|
|
15827
15836
|
}, [
|
|
15828
|
-
T(
|
|
15837
|
+
T(te, {
|
|
15829
15838
|
icon: "refresh",
|
|
15830
15839
|
class: h([
|
|
15831
15840
|
"w-4 h-4 text-slate-600 transition-transform duration-500",
|
|
@@ -15842,7 +15851,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15842
15851
|
class: "p-1 rounded hover:bg-slate-100",
|
|
15843
15852
|
onClick: D[2] || (D[2] = (W) => m.value = !1)
|
|
15844
15853
|
}, [
|
|
15845
|
-
T(
|
|
15854
|
+
T(te, {
|
|
15846
15855
|
icon: "x",
|
|
15847
15856
|
class: "w-4 h-4 text-slate-600"
|
|
15848
15857
|
})
|
|
@@ -15882,7 +15891,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
15882
15891
|
class: "p-1 rounded hover:bg-slate-100",
|
|
15883
15892
|
onClick: D[3] || (D[3] = (W) => f.value = !1)
|
|
15884
15893
|
}, [
|
|
15885
|
-
T(
|
|
15894
|
+
T(te, {
|
|
15886
15895
|
icon: "x",
|
|
15887
15896
|
class: "w-4 h-4 text-slate-600"
|
|
15888
15897
|
})
|
|
@@ -16040,7 +16049,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
|
|
|
16040
16049
|
Button: be,
|
|
16041
16050
|
Checkbox: Mt,
|
|
16042
16051
|
Divider: Vi,
|
|
16043
|
-
Icon:
|
|
16052
|
+
Icon: te,
|
|
16044
16053
|
Image: ji,
|
|
16045
16054
|
Input: ve,
|
|
16046
16055
|
Label: De,
|
|
@@ -16162,7 +16171,7 @@ export {
|
|
|
16162
16171
|
hf as Graph,
|
|
16163
16172
|
fm as GraphFilters,
|
|
16164
16173
|
$v as Header,
|
|
16165
|
-
|
|
16174
|
+
te as Icon,
|
|
16166
16175
|
ji as Image,
|
|
16167
16176
|
ve as Input,
|
|
16168
16177
|
Md as InputGroup,
|