@stlhorizon/vue-ui 3.15.2 → 3.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3474,7 +3474,7 @@ xa({
3474
3474
  };
3475
3475
  }
3476
3476
  });
3477
- const ee = {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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 }, (Z, ie) => V - L + ie + 1);
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 }, (Z, ie) => ie + 1);
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), Z = String(L.getMonth() + 1).padStart(2, "0"), ie = String(L.getDate()).padStart(2, "0"), le = L.getFullYear();
6509
- return t.format.replace("MM", Z).replace("DD", ie).replace("YYYY", le);
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 Z = V.split("-");
6516
- if (Z.length === 3) {
6517
- const ie = parseInt(Z[0], 10), le = parseInt(Z[1], 10) - 1, Se = parseInt(Z[2], 10);
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 Z = i(t.min);
6536
- if (Z && L < Z) return !0;
6535
+ const ee = i(t.min);
6536
+ if (ee && L < ee) return !0;
6537
6537
  }
6538
6538
  if (t.max) {
6539
- const Z = i(t.max);
6540
- if (Z && L > Z) return !0;
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 Z = L.getFullYear(), ie = String(L.getMonth() + 1).padStart(2, "0"), le = String(L.getDate()).padStart(2, "0"), Se = `${Z}-${ie}-${le}`;
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, (Z) => o("div", {
6696
- key: Z,
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(Z), 1)), 64))
6698
+ }, w(ee), 1)), 64))
6699
6699
  ]),
6700
6700
  o("div", td, [
6701
- (s(!0), d(X, null, Q(A.value, (Z, ie) => (s(), d("div", {
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(Z), 1))), 128)),
6705
- (s(!0), d(X, null, Q(S.value, (Z) => (s(), d("button", {
6706
- key: Z,
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(Z),
6708
+ disabled: B(ee),
6709
6709
  class: h([
6710
6710
  "w-9 h-9 rounded-lg text-sm font-medium transition-colors",
6711
- c(Z) && !x(Z) ? "bg-blue-50 text-blue-600 border border-blue-200" : "",
6712
- x(Z) ? "bg-blue-500 text-white hover:bg-blue-600" : "text-slate-700 hover:bg-slate-100",
6713
- B(Z) ? "text-slate-300 cursor-not-allowed hover:bg-transparent" : "cursor-pointer"
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(Z)
6716
- }, w(Z), 11, ad))), 128)),
6717
- (s(!0), d(X, null, Q(z.value, (Z, ie) => (s(), d("div", {
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(Z), 1))), 128))
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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, Z) => W - V + Z + 1);
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, Z) => Z + 1);
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"), Z = String(V.getDate()).padStart(2, "0"), ie = V.getFullYear();
8624
- return t.format.replace("MM", L).replace("DD", Z).replace("YYYY", ie);
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, Z) => (s(), d("div", {
8803
- key: "prev-" + Z,
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: (Z) => G(L)
8815
+ onClick: (ee) => G(L)
8816
8816
  }, w(L), 11, of))), 128)),
8817
- (s(!0), d(X, null, Q(z.value, (L, Z) => (s(), d("div", {
8818
- key: "next-" + Z,
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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(ee, {
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 te = n.columns.find((ne) => ne.key === m.value);
10517
- te && E.sort((ne, xe) => {
10518
- const ue = $(ne, te), Qe = $(xe, te);
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, te = E + u.value;
10526
- return v.value.slice(E, te);
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((te) => te.visible && typeof te.visible == "function" ? te.visible(E) : !0), B = (E, te) => E.permission && typeof E.permission == "function" ? E.permission(te) : !0, C = (E, te) => E.disabled && typeof E.disabled == "function" ? E.disabled(te) : !1, j = (E, te) => {
10531
- C(E, te) || !B(E, te) || (r("action", { action: E.key, item: te, actionConfig: E }), E.onClick && typeof E.onClick == "function" && E.onClick(te));
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((te) => W(te)).length;
10559
+ const E = v.value.filter((Z) => W(Z)).length;
10551
10560
  return E > 0 && E < v.value.length;
10552
- }), $ = (E, te) => te.accessor ? te.accessor(E) : te.key.split(".").reduce((ne, xe) => ne?.[xe], E), D = (E, te) => E[n.rowKey] || te, W = (E) => n.selectedItems.some(
10553
- (te) => D(te) === D(E)
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 te = [...n.selectedItems], ne = te.findIndex(
10564
+ const Z = [...n.selectedItems], ne = Z.findIndex(
10556
10565
  (xe) => D(xe) === D(E)
10557
10566
  );
10558
- ne > -1 ? te.splice(ne, 1) : te.push(E), r("selection-change", te);
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
- }, Z = async (E) => {
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, te) => {
10606
+ ), nt = (E, Z) => {
10598
10607
  const ne = [];
10599
- return n.striped && te % 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);
10600
- }, Ge = (E, te) => {
10601
- const ne = $(E, te);
10602
- return typeof te == "object" && te.formatter ? te.formatter(ne, E) : ne == null ? "" : ne instanceof Date ? ne.toLocaleDateString() : Array.isArray(ne) ? ne.join(", ") : ne;
10603
- }, Ht = (E, te = 10) => {
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 <= te ? E : ne.slice(0, te).join(" ") + "...";
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, te) => P(
10641
+ )), $t = (E, Z) => P(
10633
10642
  {
10634
- "text-blue-600": m.value === E.key && g.value === te,
10635
- "text-slate-300": m.value !== E.key || g.value !== te
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, te) => (s(), d("div", {
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) => Z(ne)
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
- }, [...te[1] || (te[1] = [
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
- }, [...te[2] || (te[2] = [
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
- }, [...te[3] || (te[3] = [
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
- }, [...te[4] || (te[4] = [
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
- }, [...te[5] || (te[5] = [
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(ee, {
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(ee, {
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": te[0] || (te[0] = (ne) => y.value = ne),
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
- te[6] || (te[6] = o("h3", { class: "text-md font-semibold mb-4" }, " Full Text ", -1)),
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-30b63d46"]]), ig = {
10932
+ }, og = /* @__PURE__ */ Rt(lg, [["__scopeId", "data-v-2fc21870"]]), ig = {
10924
10933
  __name: "DataTableRow",
10925
10934
  props: {
10926
10935
  item: {
@@ -11359,7 +11368,17 @@ const nc = {
11359
11368
  "file-removed"
11360
11369
  ],
11361
11370
  setup(e, { emit: a }) {
11362
- const t = e, n = a, r = N(!1), l = N(!1), u = b(() => Object.keys(t.addButton).length > 0), m = b(() => u.value ? t.addButton.visible && typeof t.addButton.visible == "function" ? t.addButton.visible() : !0 : t.showAdd), g = b(() => u.value && t.addButton.permission && typeof t.addButton.permission == "function" ? t.addButton.permission() : !0), y = b(() => u.value && t.addButton.disabled && typeof t.addButton.disabled == "function" ? t.addButton.disabled() : !1), k = () => {
11371
+ const t = e, n = a, r = N(!1), l = N(!1), u = b(() => Object.keys(t.addButton).length > 0), m = b(() => {
11372
+ if (!u.value) return t.showAdd;
11373
+ if (t.addButton.permission !== void 0) {
11374
+ if (typeof t.addButton.permission == "function") {
11375
+ if (!t.addButton.permission())
11376
+ return !1;
11377
+ } else if (!t.addButton.permission)
11378
+ return !1;
11379
+ }
11380
+ return t.addButton.visible && typeof t.addButton.visible == "function" ? t.addButton.visible() : !0;
11381
+ }), g = b(() => u.value && t.addButton.permission !== void 0 ? typeof t.addButton.permission == "function" ? t.addButton.permission() : t.addButton.permission : !0), y = b(() => u.value && t.addButton.disabled && typeof t.addButton.disabled == "function" ? t.addButton.disabled() : !1), k = () => {
11363
11382
  l.value = !0;
11364
11383
  }, S = () => {
11365
11384
  l.value = !1;
@@ -11459,7 +11478,7 @@ const nc = {
11459
11478
  selected: J.selected.filter((de) => de !== O)
11460
11479
  } : J);
11461
11480
  n("update:multiSelectFilters", I);
11462
- }, Z = (K, O) => {
11481
+ }, ee = (K, O) => {
11463
11482
  const I = K.options.find((J) => J.value === O);
11464
11483
  return I ? I.label : O;
11465
11484
  }, ie = () => {
@@ -11583,7 +11602,7 @@ const nc = {
11583
11602
  () => P(i({ variant: "ghost", size: "md" }))
11584
11603
  ), E = b(
11585
11604
  () => P(i({ variant: "default", size: "lg" }))
11586
- ), te = b(
11605
+ ), Z = b(
11587
11606
  () => "px-6 py-3 bg-blue-50 border-t border-blue-100"
11588
11607
  ), ne = b(
11589
11608
  () => "text-sm font-semibold text-blue-800"
@@ -11658,7 +11677,7 @@ const nc = {
11658
11677
  }, [
11659
11678
  e.showSearch ? (s(), d("div", cg, [
11660
11679
  o("div", fg, [
11661
- T(ee, {
11680
+ T(te, {
11662
11681
  icon: "magnifying-glass",
11663
11682
  class: h(Ut.value)
11664
11683
  }, null, 8, ["class"]),
@@ -11673,7 +11692,7 @@ const nc = {
11673
11692
  class: h(wt.value),
11674
11693
  onClick: O[1] || (O[1] = (I) => K.$emit("update:searchQuery", ""))
11675
11694
  }, [
11676
- T(ee, {
11695
+ T(te, {
11677
11696
  icon: "xmark",
11678
11697
  class: "w-3 h-3"
11679
11698
  })
@@ -11699,7 +11718,7 @@ const nc = {
11699
11718
  ]),
11700
11719
  _: 2
11701
11720
  }, 1032, ["model-value", "class", "onChange"]),
11702
- T(ee, {
11721
+ T(te, {
11703
11722
  icon: "chevron-down",
11704
11723
  class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
11705
11724
  })
@@ -11721,7 +11740,7 @@ const nc = {
11721
11740
  ]),
11722
11741
  _: 1
11723
11742
  }, 8, ["model-value", "class"]),
11724
- T(ee, {
11743
+ T(te, {
11725
11744
  icon: "chevron-down",
11726
11745
  class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
11727
11746
  })
@@ -11732,7 +11751,7 @@ const nc = {
11732
11751
  class: h(Ge.value),
11733
11752
  onClick: ie
11734
11753
  }, [
11735
- T(ee, {
11754
+ T(te, {
11736
11755
  icon: "filter",
11737
11756
  class: "w-4 h-4"
11738
11757
  }),
@@ -11741,7 +11760,7 @@ const nc = {
11741
11760
  key: 0,
11742
11761
  class: h(Ht.value)
11743
11762
  }, w(yt.value), 3)) : p("", !0),
11744
- T(ee, {
11763
+ T(te, {
11745
11764
  icon: r.value ? "chevron-up" : "chevron-down",
11746
11765
  class: "w-4 h-4 ml-1"
11747
11766
  }, null, 8, ["icon"])
@@ -11757,7 +11776,7 @@ const nc = {
11757
11776
  onClick: k
11758
11777
  }, {
11759
11778
  default: U(() => [
11760
- T(ee, {
11779
+ T(te, {
11761
11780
  icon: "upload",
11762
11781
  class: "w-4 h-4 mr-2"
11763
11782
  }),
@@ -11772,7 +11791,7 @@ const nc = {
11772
11791
  onClick: Qe
11773
11792
  }, {
11774
11793
  default: U(() => [
11775
- T(ee, {
11794
+ T(te, {
11776
11795
  icon: "rotate-left",
11777
11796
  class: "w-4 h-4 mr-2"
11778
11797
  }),
@@ -11786,7 +11805,7 @@ const nc = {
11786
11805
  onClick: O[3] || (O[3] = (I) => K.$emit("export"))
11787
11806
  }, {
11788
11807
  default: U(() => [
11789
- T(ee, {
11808
+ T(te, {
11790
11809
  icon: "download",
11791
11810
  class: "w-4 h-4 mr-2"
11792
11811
  }),
@@ -11804,7 +11823,7 @@ const nc = {
11804
11823
  onClick: z
11805
11824
  }, {
11806
11825
  default: U(() => [
11807
- e.addButton.icon ? (s(), R(ee, {
11826
+ e.addButton.icon ? (s(), R(te, {
11808
11827
  key: 0,
11809
11828
  icon: e.addButton.icon,
11810
11829
  class: "w-4 h-4 mr-2"
@@ -11819,7 +11838,7 @@ const nc = {
11819
11838
  onClick: O[4] || (O[4] = (I) => K.$emit("add"))
11820
11839
  }, {
11821
11840
  default: U(() => [
11822
- T(ee, {
11841
+ T(te, {
11823
11842
  icon: "plus",
11824
11843
  class: "w-4 h-4 mr-2"
11825
11844
  }),
@@ -11850,7 +11869,7 @@ const nc = {
11850
11869
  ]),
11851
11870
  o("div", zg, [
11852
11871
  o("div", Ag, [
11853
- T(ee, {
11872
+ T(te, {
11854
11873
  icon: "calendar",
11855
11874
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
11856
11875
  }),
@@ -11866,7 +11885,7 @@ const nc = {
11866
11885
  class: h(Xe.value)
11867
11886
  }, "to", 2),
11868
11887
  o("div", Pg, [
11869
- T(ee, {
11888
+ T(te, {
11870
11889
  icon: "calendar",
11871
11890
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
11872
11891
  }),
@@ -11884,7 +11903,7 @@ const nc = {
11884
11903
  title: "Clear this filter",
11885
11904
  onClick: (J) => B(I.key)
11886
11905
  }, [
11887
- T(ee, {
11906
+ T(te, {
11888
11907
  icon: "xmark",
11889
11908
  class: "w-4 h-4"
11890
11909
  })
@@ -11933,7 +11952,7 @@ const nc = {
11933
11952
  title: "Clear this filter",
11934
11953
  onClick: (J) => G(I.key)
11935
11954
  }, [
11936
- T(ee, {
11955
+ T(te, {
11937
11956
  icon: "xmark",
11938
11957
  class: "w-4 h-4"
11939
11958
  })
@@ -11967,7 +11986,7 @@ const nc = {
11967
11986
  ]),
11968
11987
  _: 2
11969
11988
  }, 1032, ["class", "onChange"]),
11970
- T(ee, {
11989
+ T(te, {
11971
11990
  icon: "chevron-down",
11972
11991
  class: "absolute right-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none"
11973
11992
  })
@@ -11977,12 +11996,12 @@ const nc = {
11977
11996
  key: J,
11978
11997
  class: "inline-flex items-center gap-1 bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full"
11979
11998
  }, [
11980
- ae(w(Z(I, J)) + " ", 1),
11999
+ ae(w(ee(I, J)) + " ", 1),
11981
12000
  o("button", {
11982
12001
  class: "hover:bg-blue-200 rounded-full p-0.5",
11983
12002
  onClick: (de) => L(I.key, J)
11984
12003
  }, [
11985
- T(ee, {
12004
+ T(te, {
11986
12005
  icon: "xmark",
11987
12006
  class: "w-3 h-3"
11988
12007
  })
@@ -11994,7 +12013,7 @@ const nc = {
11994
12013
  ], 2)) : p("", !0),
11995
12014
  e.showFilters && xt.value.length > 0 ? (s(), d("div", {
11996
12015
  key: 1,
11997
- class: h(te.value)
12016
+ class: h(Z.value)
11998
12017
  }, [
11999
12018
  o("div", Hg, [
12000
12019
  o("span", {
@@ -12004,7 +12023,7 @@ const nc = {
12004
12023
  key: I.key,
12005
12024
  class: h(xe.value)
12006
12025
  }, [
12007
- T(ee, {
12026
+ T(te, {
12008
12027
  icon: I.icon,
12009
12028
  class: "w-3 h-3"
12010
12029
  }, null, 8, ["icon"]),
@@ -12013,7 +12032,7 @@ const nc = {
12013
12032
  class: h(ue.value),
12014
12033
  onClick: (J) => Dr(I.key)
12015
12034
  }, [
12016
- T(ee, {
12035
+ T(te, {
12017
12036
  icon: "xmark",
12018
12037
  class: "w-3 h-3"
12019
12038
  })
@@ -12044,7 +12063,7 @@ const nc = {
12044
12063
  class: "text-gray-400 hover:text-gray-600 p-2 hover:bg-gray-100 rounded-full transition-all",
12045
12064
  onClick: S
12046
12065
  }, [
12047
- T(ee, {
12066
+ T(te, {
12048
12067
  icon: "xmark",
12049
12068
  class: "w-5 h-5"
12050
12069
  })
@@ -12210,23 +12229,23 @@ const nc = {
12210
12229
  }, H = () => {
12211
12230
  r.value = !r.value;
12212
12231
  }, G = (L) => P(k({ variant: L.variant || "secondary" })), se = (L) => {
12213
- let Z = "middle";
12214
- return L === "compact" ? Z = "first" : L === "comfortable" && (Z = "last"), P(S({
12232
+ let ee = "middle";
12233
+ return L === "compact" ? ee = "first" : L === "comfortable" && (ee = "last"), P(S({
12215
12234
  active: t.density === L,
12216
- position: Z
12235
+ position: ee
12217
12236
  }));
12218
12237
  }, $ = () => P(M({
12219
12238
  state: t.isRefreshing ? "refreshing" : "normal"
12220
12239
  })), D = () => P("w-4 h-4", {
12221
12240
  "animate-spin": t.isRefreshing
12222
- }), W = (L) => t.visibleColumns.includes(L), V = (L, Z) => {
12223
- n("toggle-column", { column: L, visible: Z });
12241
+ }), W = (L) => t.visibleColumns.includes(L), V = (L, ee) => {
12242
+ n("toggle-column", { column: L, visible: ee });
12224
12243
  };
12225
12244
  return $e(() => {
12226
12245
  document.addEventListener("click", j);
12227
12246
  }), Be(() => {
12228
12247
  document.removeEventListener("click", j);
12229
- }), (L, Z) => {
12248
+ }), (L, ee) => {
12230
12249
  const ie = he("font-awesome-icon");
12231
12250
  return s(), d("div", {
12232
12251
  class: h(A.value)
@@ -12286,13 +12305,13 @@ const nc = {
12286
12305
  icon: "columns",
12287
12306
  class: "w-4 h-4"
12288
12307
  }),
12289
- Z[2] || (Z[2] = o("span", null, "Columns", -1))
12308
+ ee[2] || (ee[2] = o("span", null, "Columns", -1))
12290
12309
  ], 2),
12291
12310
  Ie(o("div", {
12292
12311
  ref_key: "columnMenu",
12293
12312
  ref: u,
12294
12313
  class: h(i.value),
12295
- onClick: Z[0] || (Z[0] = pe(() => {
12314
+ onClick: ee[0] || (ee[0] = pe(() => {
12296
12315
  }, ["stop"]))
12297
12316
  }, [
12298
12317
  o("div", u0, [
@@ -12327,13 +12346,13 @@ const nc = {
12327
12346
  disabled: e.isRefreshing,
12328
12347
  class: h($()),
12329
12348
  type: "button",
12330
- onClick: Z[1] || (Z[1] = (le) => L.$emit("refresh"))
12349
+ onClick: ee[1] || (ee[1] = (le) => L.$emit("refresh"))
12331
12350
  }, [
12332
12351
  T(ie, {
12333
12352
  icon: "sync",
12334
12353
  class: h(D())
12335
12354
  }, null, 8, ["class"]),
12336
- Z[3] || (Z[3] = o("span", null, "Refresh", -1))
12355
+ ee[3] || (ee[3] = o("span", null, "Refresh", -1))
12337
12356
  ], 10, m0)) : p("", !0),
12338
12357
  L.$slots.actions ? (s(), d("div", g0, [
12339
12358
  F(L.$slots, "actions")
@@ -12881,7 +12900,7 @@ const nc = {
12881
12900
  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
12901
  ))
12883
12902
  }, [
12884
- $.icon ? (s(), R(ee, {
12903
+ $.icon ? (s(), R(te, {
12885
12904
  key: 0,
12886
12905
  icon: $.icon,
12887
12906
  class: "w-4 h-4"
@@ -12901,7 +12920,7 @@ const nc = {
12901
12920
  onClick: (D) => c($)
12902
12921
  }, [
12903
12922
  o("div", wv, [
12904
- $.icon ? (s(), R(ee, {
12923
+ $.icon ? (s(), R(te, {
12905
12924
  key: 0,
12906
12925
  icon: $.icon,
12907
12926
  class: "w-4 h-4"
@@ -14273,7 +14292,7 @@ const nc = {
14273
14292
  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
14293
  ))
14275
14294
  }, [
14276
- T(ee, {
14295
+ T(te, {
14277
14296
  icon: V.icon,
14278
14297
  class: "w-6 h-6"
14279
14298
  }, null, 8, ["icon"])
@@ -14303,7 +14322,7 @@ const nc = {
14303
14322
  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
14323
  ))
14305
14324
  }, [
14306
- T(ee, {
14325
+ T(te, {
14307
14326
  icon: V.icon,
14308
14327
  class: "w-6 h-6"
14309
14328
  }, null, 8, ["icon"])
@@ -14337,7 +14356,7 @@ const nc = {
14337
14356
  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
14357
  ))
14339
14358
  }, [
14340
- T(ee, {
14359
+ T(te, {
14341
14360
  icon: "cog",
14342
14361
  class: "w-6 h-6"
14343
14362
  })
@@ -14418,7 +14437,7 @@ const nc = {
14418
14437
  )
14419
14438
  )
14420
14439
  }, [
14421
- V.icon ? (s(), R(ee, {
14440
+ V.icon ? (s(), R(te, {
14422
14441
  key: 0,
14423
14442
  icon: V.icon,
14424
14443
  class: "w-4 h-4"
@@ -14509,7 +14528,7 @@ const nc = {
14509
14528
  )
14510
14529
  )
14511
14530
  }, [
14512
- V.icon ? (s(), R(ee, {
14531
+ V.icon ? (s(), R(te, {
14513
14532
  key: 0,
14514
14533
  icon: V.icon,
14515
14534
  class: "w-4 h-4"
@@ -15138,7 +15157,7 @@ const vb = /* @__PURE__ */ Rt(Nh, [["render", gb]]), hb = { class: "min-h-screen
15138
15157
  "text-lg text-slate-600 max-w-lg mx-auto"
15139
15158
  ]), L = b(() => [
15140
15159
  "mt-8"
15141
- ]), Z = b(() => [
15160
+ ]), ee = b(() => [
15142
15161
  "mt-8"
15143
15162
  ]), ie = b(() => [
15144
15163
  "mt-6"
@@ -15173,7 +15192,7 @@ const vb = /* @__PURE__ */ Rt(Nh, [["render", gb]]), hb = { class: "min-h-screen
15173
15192
  titleClasses: W,
15174
15193
  messageClasses: V,
15175
15194
  actionsClasses: L,
15176
- additionalInfoClasses: Z,
15195
+ additionalInfoClasses: ee,
15177
15196
  helpClasses: ie
15178
15197
  };
15179
15198
  }
@@ -15473,12 +15492,12 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15473
15492
  k.value,
15474
15493
  B,
15475
15494
  $
15476
- ), W = t.doughnut ? (y.value + k.value) / 2 : y.value * 0.7, V = B + se / 2, L = m.value + Math.cos(V) * W, Z = g.value + Math.sin(V) * W, ie = {
15495
+ ), 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
15496
  value: H,
15478
15497
  percentage: G,
15479
15498
  path: D,
15480
15499
  labelX: L,
15481
- labelY: Z,
15500
+ labelY: ee,
15482
15501
  label: t.labels[j] || `Item ${j + 1}`,
15483
15502
  startAngle: B,
15484
15503
  endAngle: $
@@ -15490,8 +15509,8 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15490
15509
  if (j === 0)
15491
15510
  return `M ${x} ${B} L ${se} ${$} A ${C} ${C} 0 ${V} 1 ${D} ${W} Z`;
15492
15511
  {
15493
- const L = x + j * Math.cos(G), Z = B + j * Math.sin(G), ie = x + j * Math.cos(H), le = B + j * Math.sin(H);
15494
- return `M ${se} ${$} A ${C} ${C} 0 ${V} 1 ${D} ${W} L ${L} ${Z} A ${j} ${j} 0 ${V} 0 ${ie} ${le} Z`;
15512
+ 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);
15513
+ return `M ${se} ${$} A ${C} ${C} 0 ${V} 1 ${D} ${W} L ${L} ${ee} A ${j} ${j} 0 ${V} 0 ${ie} ${le} Z`;
15495
15514
  }
15496
15515
  }, A = (x) => t.colors[x % t.colors.length], z = (x) => {
15497
15516
  if (t.legendPosition === "right")
@@ -15788,7 +15807,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15788
15807
  }, [
15789
15808
  e.showHeader ? (s(), d("div", up, [
15790
15809
  o("div", dp, [
15791
- e.icon ? (s(), R(ee, {
15810
+ e.icon ? (s(), R(te, {
15792
15811
  key: 0,
15793
15812
  icon: e.icon,
15794
15813
  class: "w-5 h-5 text-slate-700"
@@ -15802,7 +15821,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15802
15821
  title: "Keyboard shortcuts (?)",
15803
15822
  onClick: D[0] || (D[0] = (W) => f.value = !f.value)
15804
15823
  }, [
15805
- T(ee, {
15824
+ T(te, {
15806
15825
  icon: "circle-info",
15807
15826
  class: "w-4 h-4 text-slate-600"
15808
15827
  })
@@ -15813,7 +15832,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15813
15832
  title: "Customize (C)",
15814
15833
  onClick: y
15815
15834
  }, [
15816
- T(ee, {
15835
+ T(te, {
15817
15836
  icon: "gear",
15818
15837
  class: "w-4 h-4 text-slate-600"
15819
15838
  })
@@ -15825,7 +15844,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15825
15844
  title: "Refresh (R)",
15826
15845
  onClick: D[1] || (D[1] = (W) => $.$emit("refresh"))
15827
15846
  }, [
15828
- T(ee, {
15847
+ T(te, {
15829
15848
  icon: "refresh",
15830
15849
  class: h([
15831
15850
  "w-4 h-4 text-slate-600 transition-transform duration-500",
@@ -15842,7 +15861,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15842
15861
  class: "p-1 rounded hover:bg-slate-100",
15843
15862
  onClick: D[2] || (D[2] = (W) => m.value = !1)
15844
15863
  }, [
15845
- T(ee, {
15864
+ T(te, {
15846
15865
  icon: "x",
15847
15866
  class: "w-4 h-4 text-slate-600"
15848
15867
  })
@@ -15882,7 +15901,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
15882
15901
  class: "p-1 rounded hover:bg-slate-100",
15883
15902
  onClick: D[3] || (D[3] = (W) => f.value = !1)
15884
15903
  }, [
15885
- T(ee, {
15904
+ T(te, {
15886
15905
  icon: "x",
15887
15906
  class: "w-4 h-4 text-slate-600"
15888
15907
  })
@@ -16040,7 +16059,7 @@ const _b = /* @__PURE__ */ Rt(kb, [["render", Rb]]), Ub = { class: "w-full h-ful
16040
16059
  Button: be,
16041
16060
  Checkbox: Mt,
16042
16061
  Divider: Vi,
16043
- Icon: ee,
16062
+ Icon: te,
16044
16063
  Image: ji,
16045
16064
  Input: ve,
16046
16065
  Label: De,
@@ -16162,7 +16181,7 @@ export {
16162
16181
  hf as Graph,
16163
16182
  fm as GraphFilters,
16164
16183
  $v as Header,
16165
- ee as Icon,
16184
+ te as Icon,
16166
16185
  ji as Image,
16167
16186
  ve as Input,
16168
16187
  Md as InputGroup,