@stlhorizon/vue-ui 3.25.10 → 3.25.11
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 +791 -784
- package/dist/index.js +5 -5
- package/dist/src/components/ReusableFormModal.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Aa, computed as y, watch as ye, h as ve, createBlock as W, openBlock as s, unref as Z, normalizeClass as m, ref as U, createElementBlock as i, toDisplayString as w, createCommentVNode as v, renderSlot as q, resolveDynamicComponent as Be, createVNode as P, mergeProps as zt, createElementVNode as l, useId as Da, createTextVNode as oe, withCtx as J, normalizeStyle as be, onMounted as Oe, onUnmounted as Ne, Teleport as gt, withDirectives as Ge, withKeys as ia, withModifiers as $e, vModelText as rt, Fragment as
|
|
1
|
+
import { defineComponent as Aa, computed as y, watch as ye, h as ve, createBlock as W, openBlock as s, unref as Z, normalizeClass as m, ref as U, createElementBlock as i, toDisplayString as w, createCommentVNode as v, renderSlot as q, resolveDynamicComponent as Be, createVNode as P, mergeProps as zt, createElementVNode as l, useId as Da, createTextVNode as oe, withCtx as J, normalizeStyle as be, onMounted as Oe, onUnmounted as Ne, Teleport as gt, withDirectives as Ge, withKeys as ia, withModifiers as $e, vModelText as rt, Fragment as Y, renderList as X, nextTick as ft, Transition as we, onBeforeUnmount as Tn, reactive as Bn, resolveComponent as Ce, markRaw as jn, TransitionGroup as Ks, provide as Xs, inject as Pn, vShow as On, getCurrentInstance as Js, createStaticVNode as Qs } from "vue";
|
|
2
2
|
import { cva as ee } from "class-variance-authority";
|
|
3
3
|
import { clsx as Zs } from "clsx";
|
|
4
4
|
function O(...e) {
|
|
@@ -5240,7 +5240,7 @@ const Q = {
|
|
|
5240
5240
|
])
|
|
5241
5241
|
]),
|
|
5242
5242
|
x.value.length > 0 ? (s(), i("div", gu, [
|
|
5243
|
-
(s(!0), i(
|
|
5243
|
+
(s(!0), i(Y, null, X(x.value, (R) => (s(), i("button", {
|
|
5244
5244
|
key: R.value,
|
|
5245
5245
|
type: "button",
|
|
5246
5246
|
class: m(["cursor-pointer select-none relative py-2 pl-3 pr-9 w-full text-left hover:bg-blue-50 focus:bg-blue-50 focus:outline-none transition-colors duration-150", { "bg-blue-50 text-blue-900": e.modelValue === R.value }]),
|
|
@@ -6116,7 +6116,7 @@ const Q = {
|
|
|
6116
6116
|
], 2),
|
|
6117
6117
|
S.$slots.actions || e.actions.length > 0 ? (s(), i("div", Mu, [
|
|
6118
6118
|
q(S.$slots, "actions", {}, () => [
|
|
6119
|
-
(s(!0), i(
|
|
6119
|
+
(s(!0), i(Y, null, X(e.actions, (z) => (s(), W(Se, {
|
|
6120
6120
|
key: z.label,
|
|
6121
6121
|
variant: z.variant || "outline",
|
|
6122
6122
|
size: z.size || "sm",
|
|
@@ -6182,7 +6182,7 @@ const Q = {
|
|
|
6182
6182
|
class: m(["flex", n.value])
|
|
6183
6183
|
}, [
|
|
6184
6184
|
l("ol", Bu, [
|
|
6185
|
-
(s(!0), i(
|
|
6185
|
+
(s(!0), i(Y, null, X(e.items, (u, d) => (s(), i("li", {
|
|
6186
6186
|
key: d,
|
|
6187
6187
|
class: "flex items-center"
|
|
6188
6188
|
}, [
|
|
@@ -6823,7 +6823,7 @@ const Q = {
|
|
|
6823
6823
|
async function E() {
|
|
6824
6824
|
t.disabled || (r.value = !r.value, r.value && await ne());
|
|
6825
6825
|
}
|
|
6826
|
-
function
|
|
6826
|
+
function H() {
|
|
6827
6827
|
r.value = !1;
|
|
6828
6828
|
}
|
|
6829
6829
|
function b() {
|
|
@@ -6860,7 +6860,7 @@ const Q = {
|
|
|
6860
6860
|
r.value && ne();
|
|
6861
6861
|
}
|
|
6862
6862
|
function f(K) {
|
|
6863
|
-
K.key === "Escape" && r.value &&
|
|
6863
|
+
K.key === "Escape" && r.value && H();
|
|
6864
6864
|
}
|
|
6865
6865
|
return Oe(() => {
|
|
6866
6866
|
document.addEventListener("keydown", f), window.addEventListener("resize", p);
|
|
@@ -6985,17 +6985,17 @@ const Q = {
|
|
|
6985
6985
|
])])
|
|
6986
6986
|
]),
|
|
6987
6987
|
l("div", od, [
|
|
6988
|
-
(s(), i(
|
|
6988
|
+
(s(), i(Y, null, X(_, (ce) => l("div", {
|
|
6989
6989
|
key: ce,
|
|
6990
6990
|
class: "text-center text-xs font-medium text-slate-500 py-1"
|
|
6991
6991
|
}, w(ce), 1)), 64))
|
|
6992
6992
|
]),
|
|
6993
6993
|
l("div", id, [
|
|
6994
|
-
(s(!0), i(
|
|
6994
|
+
(s(!0), i(Y, null, X(S.value, (ce, ae) => (s(), i("div", {
|
|
6995
6995
|
key: "prev-" + ae,
|
|
6996
6996
|
class: "text-center text-xs text-slate-300 py-1.5"
|
|
6997
6997
|
}, w(ce), 1))), 128)),
|
|
6998
|
-
(s(!0), i(
|
|
6998
|
+
(s(!0), i(Y, null, X(j.value, (ce) => (s(), i("button", {
|
|
6999
6999
|
key: ce,
|
|
7000
7000
|
type: "button",
|
|
7001
7001
|
disabled: R(ce),
|
|
@@ -7007,7 +7007,7 @@ const Q = {
|
|
|
7007
7007
|
]),
|
|
7008
7008
|
onClick: (ae) => h(ce)
|
|
7009
7009
|
}, w(ce), 11, ud))), 128)),
|
|
7010
|
-
(s(!0), i(
|
|
7010
|
+
(s(!0), i(Y, null, X(k.value, (ce, ae) => (s(), i("div", {
|
|
7011
7011
|
key: "next-" + ae,
|
|
7012
7012
|
class: "text-center text-xs text-slate-300 py-1.5"
|
|
7013
7013
|
}, w(ce), 1))), 128))
|
|
@@ -7026,7 +7026,7 @@ const Q = {
|
|
|
7026
7026
|
r.value ? (s(), i("div", {
|
|
7027
7027
|
key: 0,
|
|
7028
7028
|
class: "fixed inset-0 z-[9999]",
|
|
7029
|
-
onClick:
|
|
7029
|
+
onClick: H
|
|
7030
7030
|
})) : v("", !0)
|
|
7031
7031
|
]))
|
|
7032
7032
|
]));
|
|
@@ -7252,8 +7252,8 @@ const Q = {
|
|
|
7252
7252
|
uploading: !0
|
|
7253
7253
|
}));
|
|
7254
7254
|
d.value.push(...V), V.forEach((F) => {
|
|
7255
|
-
const R = 2e3 + Math.random() * 2e3, re = 50, E = 100 / (R / re),
|
|
7256
|
-
F.progress += E, F.progress >= 100 && (F.progress = 100, F.uploading = !1, clearInterval(
|
|
7255
|
+
const R = 2e3 + Math.random() * 2e3, re = 50, E = 100 / (R / re), H = setInterval(() => {
|
|
7256
|
+
F.progress += E, F.progress >= 100 && (F.progress = 100, F.uploading = !1, clearInterval(H), t.multiple ? (r.value.push(F.file), n("files-selected", r.value)) : (r.value = [F.file], n("files-selected", F.file)), d.value.splice(d.value.indexOf(F), 1));
|
|
7257
7257
|
}, re);
|
|
7258
7258
|
});
|
|
7259
7259
|
}, k = (D) => {
|
|
@@ -7302,7 +7302,7 @@ const Q = {
|
|
|
7302
7302
|
])
|
|
7303
7303
|
], 34)) : v("", !0),
|
|
7304
7304
|
r.value.length > 0 || d.value.length > 0 ? (s(), i("div", kd, [
|
|
7305
|
-
(s(!0), i(
|
|
7305
|
+
(s(!0), i(Y, null, X(d.value, (V, F) => (s(), i("div", {
|
|
7306
7306
|
key: `uploading-${F}`,
|
|
7307
7307
|
class: "flex items-center justify-between p-3 bg-white border border-gray-200 rounded-lg shadow-sm"
|
|
7308
7308
|
}, [
|
|
@@ -7321,7 +7321,7 @@ const Q = {
|
|
|
7321
7321
|
])
|
|
7322
7322
|
])
|
|
7323
7323
|
]))), 128)),
|
|
7324
|
-
(s(!0), i(
|
|
7324
|
+
(s(!0), i(Y, null, X(r.value, (V, F) => (s(), i("div", {
|
|
7325
7325
|
key: `uploaded-${F}`,
|
|
7326
7326
|
class: "flex items-center justify-between p-3 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-md transition-shadow"
|
|
7327
7327
|
}, [
|
|
@@ -8177,7 +8177,7 @@ const dc = {
|
|
|
8177
8177
|
class: "space-y-2"
|
|
8178
8178
|
}, {
|
|
8179
8179
|
default: J(() => [
|
|
8180
|
-
(s(!0), i(
|
|
8180
|
+
(s(!0), i(Y, null, X(Z(t), (S) => (s(), i("div", {
|
|
8181
8181
|
key: S.id,
|
|
8182
8182
|
class: m([d(S), "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all"]),
|
|
8183
8183
|
role: "alert",
|
|
@@ -8323,9 +8323,9 @@ const dc = {
|
|
|
8323
8323
|
]);
|
|
8324
8324
|
}
|
|
8325
8325
|
}, o = e, u = a, d = U(null), c = U(null), x = U(!1), C = U(-1), A = U(null), _ = (E) => {
|
|
8326
|
-
const
|
|
8327
|
-
u("update:modelValue",
|
|
8328
|
-
|
|
8326
|
+
const H = E.target.value;
|
|
8327
|
+
u("update:modelValue", H), A.value && clearTimeout(A.value), A.value = setTimeout(() => {
|
|
8328
|
+
H.length >= o.minLength ? (u("search", H), x.value = !0) : x.value = !1;
|
|
8329
8329
|
}, o.debounce);
|
|
8330
8330
|
}, T = (E) => {
|
|
8331
8331
|
u("focus", E), o.modelValue.length >= o.minLength && (x.value = !0);
|
|
@@ -8355,8 +8355,8 @@ const dc = {
|
|
|
8355
8355
|
}
|
|
8356
8356
|
}, z = (E) => {
|
|
8357
8357
|
if (!o.highlightMatches || !o.modelValue || !E) return E;
|
|
8358
|
-
const
|
|
8359
|
-
return E.replace(
|
|
8358
|
+
const H = new RegExp(`(${o.modelValue})`, "gi");
|
|
8359
|
+
return E.replace(H, "$1");
|
|
8360
8360
|
}, D = ee(
|
|
8361
8361
|
"block w-full rounded-lg border bg-white transition-colors duration-200 placeholder:text-slate-400 disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",
|
|
8362
8362
|
{
|
|
@@ -8388,7 +8388,7 @@ const dc = {
|
|
|
8388
8388
|
};
|
|
8389
8389
|
return Oe(() => document.addEventListener("click", ne)), Ne(() => {
|
|
8390
8390
|
document.removeEventListener("click", ne), A.value && clearTimeout(A.value);
|
|
8391
|
-
}), ye(() => o.results, () => C.value = -1), (E,
|
|
8391
|
+
}), ye(() => o.results, () => C.value = -1), (E, H) => (s(), i("div", {
|
|
8392
8392
|
ref_key: "searchRef",
|
|
8393
8393
|
ref: d,
|
|
8394
8394
|
class: "relative"
|
|
@@ -8438,7 +8438,7 @@ const dc = {
|
|
|
8438
8438
|
class: m(R.value)
|
|
8439
8439
|
}, [
|
|
8440
8440
|
e.results.length > 0 ? (s(), i("div", Ac, [
|
|
8441
|
-
(s(!0), i(
|
|
8441
|
+
(s(!0), i(Y, null, X(e.results, (b, $) => (s(), i("button", {
|
|
8442
8442
|
key: b.id || $,
|
|
8443
8443
|
class: m(re($)),
|
|
8444
8444
|
onClick: (h) => S(b),
|
|
@@ -8572,7 +8572,7 @@ const dc = {
|
|
|
8572
8572
|
}
|
|
8573
8573
|
}), (c, x) => (s(), i("div", Hc, [
|
|
8574
8574
|
l("div", Wc, [
|
|
8575
|
-
(s(!0), i(
|
|
8575
|
+
(s(!0), i(Y, null, X(o.value, (C, A) => (s(), i("button", {
|
|
8576
8576
|
id: `tab-${A}`,
|
|
8577
8577
|
key: A,
|
|
8578
8578
|
disabled: t.loading,
|
|
@@ -8752,7 +8752,7 @@ const dc = {
|
|
|
8752
8752
|
), (z, D) => (s(), i("div", {
|
|
8753
8753
|
class: m(T.value)
|
|
8754
8754
|
}, [
|
|
8755
|
-
(s(!0), i(
|
|
8755
|
+
(s(!0), i(Y, null, X(e.items, (L, V) => (s(), i("div", {
|
|
8756
8756
|
key: L.id || V,
|
|
8757
8757
|
class: m(j.value)
|
|
8758
8758
|
}, [
|
|
@@ -9018,13 +9018,13 @@ const dc = {
|
|
|
9018
9018
|
} else
|
|
9019
9019
|
c.value = null;
|
|
9020
9020
|
}, { immediate: !0 });
|
|
9021
|
-
function
|
|
9021
|
+
function H(b) {
|
|
9022
9022
|
b.key === "Escape" && r.value && V();
|
|
9023
9023
|
}
|
|
9024
9024
|
return Oe(() => {
|
|
9025
|
-
document.addEventListener("keydown",
|
|
9025
|
+
document.addEventListener("keydown", H);
|
|
9026
9026
|
}), Tn(() => {
|
|
9027
|
-
document.removeEventListener("keydown",
|
|
9027
|
+
document.removeEventListener("keydown", H);
|
|
9028
9028
|
}), (b, $) => (s(), i("div", of, [
|
|
9029
9029
|
l("div", uf, [
|
|
9030
9030
|
l("input", {
|
|
@@ -9135,17 +9135,17 @@ const dc = {
|
|
|
9135
9135
|
])])
|
|
9136
9136
|
]),
|
|
9137
9137
|
l("div", mf, [
|
|
9138
|
-
(s(), i(
|
|
9138
|
+
(s(), i(Y, null, X(x, (h) => l("div", {
|
|
9139
9139
|
key: h,
|
|
9140
9140
|
class: "text-center text-xs font-medium text-slate-600 py-1"
|
|
9141
9141
|
}, w(h), 1)), 64))
|
|
9142
9142
|
]),
|
|
9143
9143
|
l("div", gf, [
|
|
9144
|
-
(s(!0), i(
|
|
9144
|
+
(s(!0), i(Y, null, X(T.value, (h, B) => (s(), i("div", {
|
|
9145
9145
|
key: "prev-" + B,
|
|
9146
9146
|
class: "text-center text-sm text-slate-300 py-2"
|
|
9147
9147
|
}, w(h), 1))), 128)),
|
|
9148
|
-
(s(!0), i(
|
|
9148
|
+
(s(!0), i(Y, null, X(A.value, (h) => (s(), i("button", {
|
|
9149
9149
|
key: h,
|
|
9150
9150
|
type: "button",
|
|
9151
9151
|
disabled: D(h),
|
|
@@ -9156,7 +9156,7 @@ const dc = {
|
|
|
9156
9156
|
]),
|
|
9157
9157
|
onClick: (B) => re(h)
|
|
9158
9158
|
}, w(h), 11, vf))), 128)),
|
|
9159
|
-
(s(!0), i(
|
|
9159
|
+
(s(!0), i(Y, null, X(j.value, (h, B) => (s(), i("div", {
|
|
9160
9160
|
key: "next-" + B,
|
|
9161
9161
|
class: "text-center text-sm text-slate-300 py-2"
|
|
9162
9162
|
}, w(h), 1))), 128))
|
|
@@ -9449,7 +9449,7 @@ const dc = {
|
|
|
9449
9449
|
class: "overflow-visible"
|
|
9450
9450
|
}, [
|
|
9451
9451
|
e.showGrid ? (s(), i("g", zf, [
|
|
9452
|
-
(s(!0), i(
|
|
9452
|
+
(s(!0), i(Y, null, X(C.value, (V) => (s(), i("line", {
|
|
9453
9453
|
key: `grid-${V}`,
|
|
9454
9454
|
x1: e.padding.left,
|
|
9455
9455
|
y1: V,
|
|
@@ -9462,7 +9462,7 @@ const dc = {
|
|
|
9462
9462
|
}, null, 8, Af))), 128))
|
|
9463
9463
|
])) : v("", !0),
|
|
9464
9464
|
l("defs", null, [
|
|
9465
|
-
(s(!0), i(
|
|
9465
|
+
(s(!0), i(Y, null, X(e.data, (V, F) => (s(), i("linearGradient", {
|
|
9466
9466
|
id: `barGradient-${F}`,
|
|
9467
9467
|
key: `gradient-${F}`,
|
|
9468
9468
|
x1: "0%",
|
|
@@ -9483,7 +9483,7 @@ const dc = {
|
|
|
9483
9483
|
], 8, Df))), 128))
|
|
9484
9484
|
]),
|
|
9485
9485
|
l("g", null, [
|
|
9486
|
-
(s(!0), i(
|
|
9486
|
+
(s(!0), i(Y, null, X(e.data, (V, F) => (s(), i("rect", {
|
|
9487
9487
|
key: `bar-${F}`,
|
|
9488
9488
|
x: A(F),
|
|
9489
9489
|
y: _(V),
|
|
@@ -9513,7 +9513,7 @@ const dc = {
|
|
|
9513
9513
|
], 42, Ff))), 128))
|
|
9514
9514
|
]),
|
|
9515
9515
|
e.showXAxis ? (s(), i("g", jf, [
|
|
9516
|
-
(s(!0), i(
|
|
9516
|
+
(s(!0), i(Y, null, X(e.labels, (V, F) => (s(), i("text", {
|
|
9517
9517
|
key: `xlabel-${F}`,
|
|
9518
9518
|
x: A(F) + c.value / 2,
|
|
9519
9519
|
y: e.height - e.padding.bottom + 20,
|
|
@@ -9530,7 +9530,7 @@ const dc = {
|
|
|
9530
9530
|
}, w(e.xAxisLabel), 9, _f)
|
|
9531
9531
|
])) : v("", !0),
|
|
9532
9532
|
e.showYAxis ? (s(), i("g", Lf, [
|
|
9533
|
-
(s(!0), i(
|
|
9533
|
+
(s(!0), i(Y, null, X(C.value, (V) => (s(), i("text", {
|
|
9534
9534
|
key: `ylabel-${V}`,
|
|
9535
9535
|
x: e.padding.left - 10,
|
|
9536
9536
|
y: V + 4,
|
|
@@ -9746,7 +9746,7 @@ const dc = {
|
|
|
9746
9746
|
class: "overflow-visible"
|
|
9747
9747
|
}, [
|
|
9748
9748
|
e.showGrid ? (s(), i("g", Jf, [
|
|
9749
|
-
(s(!0), i(
|
|
9749
|
+
(s(!0), i(Y, null, X(x.value, (k) => (s(), i("line", {
|
|
9750
9750
|
key: `grid-${k}`,
|
|
9751
9751
|
x1: e.padding.left,
|
|
9752
9752
|
y1: k,
|
|
@@ -9765,7 +9765,7 @@ const dc = {
|
|
|
9765
9765
|
class: m(e.lineClasses)
|
|
9766
9766
|
}, null, 10, Zf),
|
|
9767
9767
|
e.showPoints ? (s(), i("g", em, [
|
|
9768
|
-
(s(!0), i(
|
|
9768
|
+
(s(!0), i(Y, null, X(u.value, (k, z) => (s(), i("circle", {
|
|
9769
9769
|
key: `point-${z}`,
|
|
9770
9770
|
cx: k.x,
|
|
9771
9771
|
cy: k.y,
|
|
@@ -9785,7 +9785,7 @@ const dc = {
|
|
|
9785
9785
|
"fill-opacity": e.fillOpacity
|
|
9786
9786
|
}, null, 8, am)) : v("", !0),
|
|
9787
9787
|
e.showXAxis ? (s(), i("g", nm, [
|
|
9788
|
-
(s(!0), i(
|
|
9788
|
+
(s(!0), i(Y, null, X(e.labels, (k, z) => (s(), i("text", {
|
|
9789
9789
|
key: `xlabel-${z}`,
|
|
9790
9790
|
x: C(z),
|
|
9791
9791
|
y: e.height - e.padding.bottom + 20,
|
|
@@ -9794,7 +9794,7 @@ const dc = {
|
|
|
9794
9794
|
}, w(k), 11, sm))), 128))
|
|
9795
9795
|
])) : v("", !0),
|
|
9796
9796
|
e.showYAxis ? (s(), i("g", rm, [
|
|
9797
|
-
(s(!0), i(
|
|
9797
|
+
(s(!0), i(Y, null, X(x.value, (k) => (s(), i("text", {
|
|
9798
9798
|
key: `ylabel-${k}`,
|
|
9799
9799
|
x: e.padding.left - 10,
|
|
9800
9800
|
y: k + 4,
|
|
@@ -9908,7 +9908,7 @@ const dc = {
|
|
|
9908
9908
|
});
|
|
9909
9909
|
}
|
|
9910
9910
|
if (d.value) {
|
|
9911
|
-
const E = t.dataSources.find((
|
|
9911
|
+
const E = t.dataSources.find((H) => H.value === d.value);
|
|
9912
9912
|
ne.push({
|
|
9913
9913
|
key: "dataSource",
|
|
9914
9914
|
label: "Data Source",
|
|
@@ -9971,7 +9971,7 @@ const dc = {
|
|
|
9971
9971
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
|
|
9972
9972
|
}),
|
|
9973
9973
|
Ge(l("input", {
|
|
9974
|
-
"onUpdate:modelValue": E[0] || (E[0] = (
|
|
9974
|
+
"onUpdate:modelValue": E[0] || (E[0] = (H) => r.value = H),
|
|
9975
9975
|
type: "date",
|
|
9976
9976
|
class: m(_.value),
|
|
9977
9977
|
placeholder: "From date"
|
|
@@ -9986,7 +9986,7 @@ const dc = {
|
|
|
9986
9986
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
|
|
9987
9987
|
}),
|
|
9988
9988
|
Ge(l("input", {
|
|
9989
|
-
"onUpdate:modelValue": E[1] || (E[1] = (
|
|
9989
|
+
"onUpdate:modelValue": E[1] || (E[1] = (H) => o.value = H),
|
|
9990
9990
|
type: "date",
|
|
9991
9991
|
class: m(_.value),
|
|
9992
9992
|
placeholder: "To date"
|
|
@@ -9999,7 +9999,7 @@ const dc = {
|
|
|
9999
9999
|
l("div", vm, [
|
|
10000
10000
|
P(Ye, {
|
|
10001
10001
|
modelValue: u.value,
|
|
10002
|
-
"onUpdate:modelValue": E[2] || (E[2] = (
|
|
10002
|
+
"onUpdate:modelValue": E[2] || (E[2] = (H) => u.value = H),
|
|
10003
10003
|
class: m(T.value),
|
|
10004
10004
|
onChange: V
|
|
10005
10005
|
}, {
|
|
@@ -10020,16 +10020,16 @@ const dc = {
|
|
|
10020
10020
|
l("div", bm, [
|
|
10021
10021
|
P(Ye, {
|
|
10022
10022
|
modelValue: d.value,
|
|
10023
|
-
"onUpdate:modelValue": E[3] || (E[3] = (
|
|
10023
|
+
"onUpdate:modelValue": E[3] || (E[3] = (H) => d.value = H),
|
|
10024
10024
|
class: m(T.value),
|
|
10025
10025
|
onChange: F
|
|
10026
10026
|
}, {
|
|
10027
10027
|
default: J(() => [
|
|
10028
10028
|
E[8] || (E[8] = l("option", { value: "" }, " All Sources ", -1)),
|
|
10029
|
-
(s(!0), i(
|
|
10030
|
-
key:
|
|
10031
|
-
value:
|
|
10032
|
-
}, w(
|
|
10029
|
+
(s(!0), i(Y, null, X(e.dataSources, (H) => (s(), i("option", {
|
|
10030
|
+
key: H.value,
|
|
10031
|
+
value: H.value
|
|
10032
|
+
}, w(H.label), 9, pm))), 128))
|
|
10033
10033
|
]),
|
|
10034
10034
|
_: 1
|
|
10035
10035
|
}, 8, ["modelValue", "class"]),
|
|
@@ -10060,7 +10060,7 @@ const dc = {
|
|
|
10060
10060
|
e.showExport ? (s(), W(Se, {
|
|
10061
10061
|
key: 1,
|
|
10062
10062
|
class: m(M.value),
|
|
10063
|
-
onClick: E[4] || (E[4] = (
|
|
10063
|
+
onClick: E[4] || (E[4] = (H) => ne.$emit("export"))
|
|
10064
10064
|
}, {
|
|
10065
10065
|
default: J(() => [
|
|
10066
10066
|
P(Q, {
|
|
@@ -10074,7 +10074,7 @@ const dc = {
|
|
|
10074
10074
|
e.showRefresh ? (s(), W(Se, {
|
|
10075
10075
|
key: 2,
|
|
10076
10076
|
class: m(S.value),
|
|
10077
|
-
onClick: E[5] || (E[5] = (
|
|
10077
|
+
onClick: E[5] || (E[5] = (H) => ne.$emit("refresh"))
|
|
10078
10078
|
}, {
|
|
10079
10079
|
default: J(() => [
|
|
10080
10080
|
P(Q, {
|
|
@@ -10095,18 +10095,18 @@ const dc = {
|
|
|
10095
10095
|
l("span", {
|
|
10096
10096
|
class: m(z.value)
|
|
10097
10097
|
}, "Active filters:", 2),
|
|
10098
|
-
(s(!0), i(
|
|
10099
|
-
key:
|
|
10098
|
+
(s(!0), i(Y, null, X(C.value, (H) => (s(), i("div", {
|
|
10099
|
+
key: H.key,
|
|
10100
10100
|
class: m(D.value)
|
|
10101
10101
|
}, [
|
|
10102
10102
|
P(Q, {
|
|
10103
|
-
icon:
|
|
10103
|
+
icon: H.icon,
|
|
10104
10104
|
class: "w-3 h-3"
|
|
10105
10105
|
}, null, 8, ["icon"]),
|
|
10106
|
-
l("span", null, w(
|
|
10106
|
+
l("span", null, w(H.label) + ": " + w(H.value), 1),
|
|
10107
10107
|
l("button", {
|
|
10108
10108
|
class: m(L.value),
|
|
10109
|
-
onClick: (b) => re(
|
|
10109
|
+
onClick: (b) => re(H.key)
|
|
10110
10110
|
}, [
|
|
10111
10111
|
P(Q, {
|
|
10112
10112
|
icon: "xmark",
|
|
@@ -10403,7 +10403,7 @@ const dc = {
|
|
|
10403
10403
|
"onUpdate:modelValue": j[0] || (j[0] = (M) => T.$emit("update:pageSize", parseInt(M)))
|
|
10404
10404
|
}, {
|
|
10405
10405
|
default: J(() => [
|
|
10406
|
-
(s(!0), i(
|
|
10406
|
+
(s(!0), i(Y, null, X(e.pageSizeOptions, (M) => (s(), W(Es, {
|
|
10407
10407
|
key: M,
|
|
10408
10408
|
value: M.toString(),
|
|
10409
10409
|
label: M.toString()
|
|
@@ -10454,7 +10454,7 @@ const dc = {
|
|
|
10454
10454
|
], -1)
|
|
10455
10455
|
])], 10, jm),
|
|
10456
10456
|
l("div", Pm, [
|
|
10457
|
-
(s(!0), i(
|
|
10457
|
+
(s(!0), i(Y, null, X(c.value, (M) => (s(), i("button", {
|
|
10458
10458
|
key: M,
|
|
10459
10459
|
class: m(_(M === e.currentPage, !1)),
|
|
10460
10460
|
onClick: (S) => T.$emit("update:currentPage", M)
|
|
@@ -10615,25 +10615,25 @@ const dc = {
|
|
|
10615
10615
|
l("div", Nm, [
|
|
10616
10616
|
e.text && e.textPosition === "top" ? (s(), i("div", Rm, w(e.text), 1)) : v("", !0),
|
|
10617
10617
|
e.type === "spin" ? (s(), i("div", Um)) : e.type === "pulse" ? (s(), i("div", qm)) : e.type === "bounce" ? (s(), i("div", Ym, [
|
|
10618
|
-
(s(), i(
|
|
10618
|
+
(s(), i(Y, null, X(3, (n) => l("div", {
|
|
10619
10619
|
key: n,
|
|
10620
10620
|
class: "loader__bounce-dot",
|
|
10621
10621
|
style: be({ animationDelay: `${(n - 1) * 0.1}s` })
|
|
10622
10622
|
}, null, 4)), 64))
|
|
10623
10623
|
])) : e.type === "ripple" ? (s(), i("div", Hm, [
|
|
10624
|
-
(s(), i(
|
|
10624
|
+
(s(), i(Y, null, X(2, (n) => l("div", {
|
|
10625
10625
|
key: n,
|
|
10626
10626
|
class: "loader__ripple-ring",
|
|
10627
10627
|
style: be({ animationDelay: `${(n - 1) * 0.5}s` })
|
|
10628
10628
|
}, null, 4)), 64))
|
|
10629
10629
|
])) : e.type === "bars" ? (s(), i("div", Wm, [
|
|
10630
|
-
(s(), i(
|
|
10630
|
+
(s(), i(Y, null, X(5, (n) => l("div", {
|
|
10631
10631
|
key: n,
|
|
10632
10632
|
class: "loader__bar",
|
|
10633
10633
|
style: be({ animationDelay: `${(n - 1) * 0.1}s` })
|
|
10634
10634
|
}, null, 4)), 64))
|
|
10635
10635
|
])) : e.type === "dots" ? (s(), i("div", Gm, [
|
|
10636
|
-
(s(), i(
|
|
10636
|
+
(s(), i(Y, null, X(3, (n) => l("div", {
|
|
10637
10637
|
key: n,
|
|
10638
10638
|
class: "loader__dot",
|
|
10639
10639
|
style: be({ animationDelay: `${(n - 1) * 0.16}s` })
|
|
@@ -10886,7 +10886,7 @@ const dc = {
|
|
|
10886
10886
|
if (d.value) {
|
|
10887
10887
|
const le = n.columns.find((de) => de.key === d.value);
|
|
10888
10888
|
le && G.sort((de, Fe) => {
|
|
10889
|
-
const ge =
|
|
10889
|
+
const ge = H(de, le), it = H(Fe, le);
|
|
10890
10890
|
return ge < it ? c.value === "asc" ? -1 : 1 : ge > it ? c.value === "asc" ? 1 : -1 : 0;
|
|
10891
10891
|
});
|
|
10892
10892
|
}
|
|
@@ -10929,7 +10929,7 @@ const dc = {
|
|
|
10929
10929
|
})[G] || "ghost", ne = y(() => M.value.length > 0 && M.value.every((G) => $(G))), E = y(() => {
|
|
10930
10930
|
const G = M.value.filter((le) => $(le)).length;
|
|
10931
10931
|
return G > 0 && G < M.value.length;
|
|
10932
|
-
}),
|
|
10932
|
+
}), H = (G, le) => le.accessor ? le.accessor(G) : le.key.split(".").reduce((de, Fe) => de?.[Fe], G), b = (G, le) => G[n.rowKey] || le, $ = (G) => n.selectedItems.some(
|
|
10933
10933
|
(le) => b(le) === b(G)
|
|
10934
10934
|
), h = (G) => {
|
|
10935
10935
|
const le = [...n.selectedItems], de = le.findIndex(
|
|
@@ -10978,7 +10978,7 @@ const dc = {
|
|
|
10978
10978
|
const de = [];
|
|
10979
10979
|
return n.striped && le % 2 === 1 && de.push("bg-slate-50/50"), n.hoverable && !n.clickableRows && de.push("hover:bg-slate-50"), n.clickableRows && de.push("cursor-pointer hover:bg-slate-100"), n.selectable && $(G) && de.push("bg-blue-50 border-blue-200"), n.variant === "bordered" ? de.push("border-b border-slate-200") : n.variant === "minimal" && de.push("border-b border-slate-100"), O("transition-colors", ...de);
|
|
10980
10980
|
}, je = (G, le) => {
|
|
10981
|
-
const de =
|
|
10981
|
+
const de = H(G, le);
|
|
10982
10982
|
return typeof le == "object" && le.formatter ? le.formatter(de, G) : de == null ? "" : de instanceof Date ? de.toLocaleDateString() : Array.isArray(de) ? de.join(", ") : de;
|
|
10983
10983
|
}, ht = (G, le = 10) => {
|
|
10984
10984
|
if (!G) return G;
|
|
@@ -11095,7 +11095,7 @@ const dc = {
|
|
|
11095
11095
|
}, null, 8, ["model-value", "indeterminate", "disabled"]))
|
|
11096
11096
|
])
|
|
11097
11097
|
], 2)) : v("", !0),
|
|
11098
|
-
(s(!0), i(
|
|
11098
|
+
(s(!0), i(Y, null, X(e.columns, (de) => (s(), i("th", {
|
|
11099
11099
|
key: de.key,
|
|
11100
11100
|
class: m(ke(de)),
|
|
11101
11101
|
onClick: (Fe) => g(de)
|
|
@@ -11147,7 +11147,7 @@ const dc = {
|
|
|
11147
11147
|
l("tbody", {
|
|
11148
11148
|
class: m(xe.value)
|
|
11149
11149
|
}, [
|
|
11150
|
-
e.showSkeleton && (e.loading || e.dataLoading) ? (s(!0), i(
|
|
11150
|
+
e.showSkeleton && (e.loading || e.dataLoading) ? (s(!0), i(Y, { key: 0 }, X(e.skeletonRows, (de) => (s(), i("tr", {
|
|
11151
11151
|
key: `skeleton-${de}`,
|
|
11152
11152
|
class: "animate-pulse"
|
|
11153
11153
|
}, [
|
|
@@ -11157,7 +11157,7 @@ const dc = {
|
|
|
11157
11157
|
}, [...le[3] || (le[3] = [
|
|
11158
11158
|
l("div", { class: "w-4 h-4 bg-slate-200 rounded" }, null, -1)
|
|
11159
11159
|
])], 2)) : v("", !0),
|
|
11160
|
-
(s(!0), i(
|
|
11160
|
+
(s(!0), i(Y, null, X(e.columns, (Fe) => (s(), i("td", {
|
|
11161
11161
|
key: Fe.key,
|
|
11162
11162
|
class: m(ze())
|
|
11163
11163
|
}, [...le[4] || (le[4] = [
|
|
@@ -11172,7 +11172,7 @@ const dc = {
|
|
|
11172
11172
|
l("div", { class: "w-6 h-6 bg-slate-200 rounded" })
|
|
11173
11173
|
], -1)
|
|
11174
11174
|
])], 2)) : v("", !0)
|
|
11175
|
-
]))), 128)) : k.value.length > 0 ? (s(!0), i(
|
|
11175
|
+
]))), 128)) : k.value.length > 0 ? (s(!0), i(Y, { key: 1 }, X(k.value, (de, Fe) => (s(), i("tr", {
|
|
11176
11176
|
key: b(de, Fe),
|
|
11177
11177
|
class: m(Pe(de, Fe)),
|
|
11178
11178
|
onClick: (ge) => p({ item: de, index: Fe })
|
|
@@ -11186,13 +11186,13 @@ const dc = {
|
|
|
11186
11186
|
"onUpdate:modelValue": (ge) => h(de)
|
|
11187
11187
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
11188
11188
|
], 2)) : v("", !0),
|
|
11189
|
-
(s(!0), i(
|
|
11189
|
+
(s(!0), i(Y, null, X(e.columns, (ge) => (s(), i("td", {
|
|
11190
11190
|
key: ge.key,
|
|
11191
11191
|
class: m(ze())
|
|
11192
11192
|
}, [
|
|
11193
11193
|
q(G.$slots, `cell-${ge.key}`, {
|
|
11194
11194
|
item: de,
|
|
11195
|
-
value:
|
|
11195
|
+
value: H(de, ge),
|
|
11196
11196
|
column: ge,
|
|
11197
11197
|
index: Fe
|
|
11198
11198
|
}, () => [
|
|
@@ -11212,7 +11212,7 @@ const dc = {
|
|
|
11212
11212
|
item: de,
|
|
11213
11213
|
index: Fe
|
|
11214
11214
|
}, void 0, !0) : e.actions.length > 0 ? (s(), i("div", o0, [
|
|
11215
|
-
(s(!0), i(
|
|
11215
|
+
(s(!0), i(Y, null, X(L(de), (ge) => (s(), W(Ns, {
|
|
11216
11216
|
key: ge.key,
|
|
11217
11217
|
content: typeof ge.tooltip == "function" ? ge.tooltip(de) : ge.tooltip || ge.label || ge.key,
|
|
11218
11218
|
placement: "top"
|
|
@@ -11454,7 +11454,7 @@ const dc = {
|
|
|
11454
11454
|
"onUpdate:modelValue": S[0] || (S[0] = (k) => M.$emit("toggle-selection", e.item))
|
|
11455
11455
|
}, null, 8, ["model-value"])
|
|
11456
11456
|
], 2)) : v("", !0),
|
|
11457
|
-
(s(!0), i(
|
|
11457
|
+
(s(!0), i(Y, null, X(e.columns, (k) => (s(), i("td", {
|
|
11458
11458
|
key: u(k),
|
|
11459
11459
|
class: m(_(k))
|
|
11460
11460
|
}, [
|
|
@@ -11829,7 +11829,7 @@ const dc = {
|
|
|
11829
11829
|
(he) => he.key === se ? { ...he, [I]: N } : he
|
|
11830
11830
|
);
|
|
11831
11831
|
n("update:numberFilters", ue);
|
|
11832
|
-
},
|
|
11832
|
+
}, H = (se) => se.selected && se.selected.length > 0, b = (se) => `text-xs px-2 py-1 rounded ${H(se) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, $ = (se, I) => {
|
|
11833
11833
|
if (!I) return;
|
|
11834
11834
|
const N = t.multiSelectFilters.map((ue) => {
|
|
11835
11835
|
if (ue.key === se) {
|
|
@@ -12040,7 +12040,7 @@ const dc = {
|
|
|
12040
12040
|
break;
|
|
12041
12041
|
}
|
|
12042
12042
|
};
|
|
12043
|
-
return (se, I) => (s(), i(
|
|
12043
|
+
return (se, I) => (s(), i(Y, null, [
|
|
12044
12044
|
l("div", w0, [
|
|
12045
12045
|
l("div", {
|
|
12046
12046
|
class: m(ce.value)
|
|
@@ -12069,7 +12069,7 @@ const dc = {
|
|
|
12069
12069
|
], 2)) : v("", !0)
|
|
12070
12070
|
])
|
|
12071
12071
|
])) : v("", !0),
|
|
12072
|
-
(s(!0), i(
|
|
12072
|
+
(s(!0), i(Y, null, X(e.selectFilters, (N) => (s(), i("div", {
|
|
12073
12073
|
key: N.key,
|
|
12074
12074
|
class: "min-w-36"
|
|
12075
12075
|
}, [
|
|
@@ -12081,7 +12081,7 @@ const dc = {
|
|
|
12081
12081
|
}, {
|
|
12082
12082
|
default: J(() => [
|
|
12083
12083
|
l("option", z0, w(N.placeholder || `All ${N.label}`), 1),
|
|
12084
|
-
(s(!0), i(
|
|
12084
|
+
(s(!0), i(Y, null, X(N.options, (ue) => (s(), i("option", {
|
|
12085
12085
|
key: ue.value,
|
|
12086
12086
|
value: ue.value
|
|
12087
12087
|
}, w(ue.label), 9, A0))), 128))
|
|
@@ -12103,7 +12103,7 @@ const dc = {
|
|
|
12103
12103
|
}, {
|
|
12104
12104
|
default: J(() => [
|
|
12105
12105
|
I[5] || (I[5] = l("option", { value: "" }, " All Status ", -1)),
|
|
12106
|
-
(s(!0), i(
|
|
12106
|
+
(s(!0), i(Y, null, X(e.statusOptions, (N) => (s(), i("option", {
|
|
12107
12107
|
key: N.value,
|
|
12108
12108
|
value: N.value
|
|
12109
12109
|
}, w(N.label), 9, V0))), 128))
|
|
@@ -12225,7 +12225,7 @@ const dc = {
|
|
|
12225
12225
|
class: m(ht.value)
|
|
12226
12226
|
}, [
|
|
12227
12227
|
l("div", P0, [
|
|
12228
|
-
(s(!0), i(
|
|
12228
|
+
(s(!0), i(Y, null, X(e.dateFilters, (N) => (s(), i("div", {
|
|
12229
12229
|
key: N.key,
|
|
12230
12230
|
class: "space-y-3"
|
|
12231
12231
|
}, [
|
|
@@ -12280,7 +12280,7 @@ const dc = {
|
|
|
12280
12280
|
], 10, R0)) : v("", !0)
|
|
12281
12281
|
])
|
|
12282
12282
|
]))), 128)),
|
|
12283
|
-
(s(!0), i(
|
|
12283
|
+
(s(!0), i(Y, null, X(e.numberFilters, (N) => (s(), i("div", {
|
|
12284
12284
|
key: N.key,
|
|
12285
12285
|
class: "space-y-3"
|
|
12286
12286
|
}, [
|
|
@@ -12329,7 +12329,7 @@ const dc = {
|
|
|
12329
12329
|
], 10, K0)) : v("", !0)
|
|
12330
12330
|
])
|
|
12331
12331
|
]))), 128)),
|
|
12332
|
-
(s(!0), i(
|
|
12332
|
+
(s(!0), i(Y, null, X(e.multiSelectFilters, (N) => (s(), i("div", {
|
|
12333
12333
|
key: N.key,
|
|
12334
12334
|
class: "space-y-3"
|
|
12335
12335
|
}, [
|
|
@@ -12339,7 +12339,7 @@ const dc = {
|
|
|
12339
12339
|
}, w(N.label), 3),
|
|
12340
12340
|
l("span", {
|
|
12341
12341
|
class: m(b(N))
|
|
12342
|
-
}, w(
|
|
12342
|
+
}, w(H(N) ? `${N.selected.length} selected` : "None"), 3)
|
|
12343
12343
|
]),
|
|
12344
12344
|
l("div", J0, [
|
|
12345
12345
|
P(Ye, {
|
|
@@ -12349,7 +12349,7 @@ const dc = {
|
|
|
12349
12349
|
}, {
|
|
12350
12350
|
default: J(() => [
|
|
12351
12351
|
l("option", Q0, " Select " + w(N.label), 1),
|
|
12352
|
-
(s(!0), i(
|
|
12352
|
+
(s(!0), i(Y, null, X(N.options, (ue) => (s(), i("option", {
|
|
12353
12353
|
key: ue.value,
|
|
12354
12354
|
value: ue.value
|
|
12355
12355
|
}, w(ue.label), 9, Z0))), 128))
|
|
@@ -12362,7 +12362,7 @@ const dc = {
|
|
|
12362
12362
|
})
|
|
12363
12363
|
]),
|
|
12364
12364
|
N.selected.length > 0 ? (s(), i("div", eg, [
|
|
12365
|
-
(s(!0), i(
|
|
12365
|
+
(s(!0), i(Y, null, X(N.selected, (ue) => (s(), i("span", {
|
|
12366
12366
|
key: ue,
|
|
12367
12367
|
class: "inline-flex items-center gap-1 bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full"
|
|
12368
12368
|
}, [
|
|
@@ -12389,7 +12389,7 @@ const dc = {
|
|
|
12389
12389
|
l("span", {
|
|
12390
12390
|
class: m(le.value)
|
|
12391
12391
|
}, "Active filters:", 2),
|
|
12392
|
-
(s(!0), i(
|
|
12392
|
+
(s(!0), i(Y, null, X(ie.value, (N) => (s(), i("div", {
|
|
12393
12393
|
key: N.key,
|
|
12394
12394
|
class: m(de.value)
|
|
12395
12395
|
}, [
|
|
@@ -12632,7 +12632,7 @@ const dc = {
|
|
|
12632
12632
|
}));
|
|
12633
12633
|
}, E = () => O(_({
|
|
12634
12634
|
state: t.isRefreshing ? "refreshing" : "normal"
|
|
12635
|
-
})),
|
|
12635
|
+
})), H = () => O("w-4 h-4", {
|
|
12636
12636
|
"animate-spin": t.isRefreshing
|
|
12637
12637
|
}), b = (h) => t.visibleColumns.includes(h), $ = (h, B) => {
|
|
12638
12638
|
n("toggle-column", { column: h, visible: B });
|
|
@@ -12650,7 +12650,7 @@ const dc = {
|
|
|
12650
12650
|
d.value > 0 ? (s(), i("div", gg, [
|
|
12651
12651
|
l("span", vg, w(d.value) + " selected ", 1),
|
|
12652
12652
|
l("div", hg, [
|
|
12653
|
-
(s(!0), i(
|
|
12653
|
+
(s(!0), i(Y, null, X(e.bulkActions, (p) => (s(), W(Se, {
|
|
12654
12654
|
key: p.key,
|
|
12655
12655
|
class: m(re(p)),
|
|
12656
12656
|
onClick: (f) => h.$emit("bulk-action", { action: p.key, items: e.selectedItems })
|
|
@@ -12676,7 +12676,7 @@ const dc = {
|
|
|
12676
12676
|
key: 0,
|
|
12677
12677
|
class: m(M.value)
|
|
12678
12678
|
}, [
|
|
12679
|
-
(s(), i(
|
|
12679
|
+
(s(), i(Y, null, X(c, (p) => l("button", {
|
|
12680
12680
|
key: p.value,
|
|
12681
12681
|
class: m(ne(p.value)),
|
|
12682
12682
|
title: p.label,
|
|
@@ -12715,7 +12715,7 @@ const dc = {
|
|
|
12715
12715
|
class: m(z.value)
|
|
12716
12716
|
}, " Show Columns ", 2),
|
|
12717
12717
|
l("div", wg, [
|
|
12718
|
-
(s(!0), i(
|
|
12718
|
+
(s(!0), i(Y, null, X(e.toggleableColumns, (p) => (s(), i("div", {
|
|
12719
12719
|
key: p.key,
|
|
12720
12720
|
class: m(D.value)
|
|
12721
12721
|
}, [
|
|
@@ -12746,7 +12746,7 @@ const dc = {
|
|
|
12746
12746
|
}, [
|
|
12747
12747
|
P(g, {
|
|
12748
12748
|
icon: "sync",
|
|
12749
|
-
class: m(
|
|
12749
|
+
class: m(H())
|
|
12750
12750
|
}, null, 8, ["class"]),
|
|
12751
12751
|
B[3] || (B[3] = l("span", null, "Refresh", -1))
|
|
12752
12752
|
], 10, Cg)) : v("", !0),
|
|
@@ -13061,7 +13061,7 @@ const dc = {
|
|
|
13061
13061
|
error: "bg-red-100 text-red-600"
|
|
13062
13062
|
};
|
|
13063
13063
|
return B[h.type] || B.info;
|
|
13064
|
-
},
|
|
13064
|
+
}, H = (h) => {
|
|
13065
13065
|
if (!h) return "";
|
|
13066
13066
|
const B = h.split("\\");
|
|
13067
13067
|
return B[B.length - 1].replace(/([A-Z])/g, " $1").trim().split(" ").map((p) => p.charAt(0).toUpperCase() + p.slice(1).toLowerCase()).join(" ");
|
|
@@ -13171,7 +13171,7 @@ const dc = {
|
|
|
13171
13171
|
l("p", nv, w(e.organisationSwitcherDescription), 1)
|
|
13172
13172
|
]),
|
|
13173
13173
|
l("div", sv, [
|
|
13174
|
-
(s(!0), i(
|
|
13174
|
+
(s(!0), i(Y, null, X(e.organisations, (p) => (s(), i("button", {
|
|
13175
13175
|
key: p.org_id || p.organisation_name,
|
|
13176
13176
|
class: m(Z(O)(
|
|
13177
13177
|
"flex items-center w-full px-3 sm:px-4 py-2.5 sm:py-3 text-sm transition-all group",
|
|
@@ -13284,7 +13284,7 @@ const dc = {
|
|
|
13284
13284
|
class: "w-10 h-10 sm:w-12 sm:h-12 mx-auto text-gray-300 mb-2"
|
|
13285
13285
|
}),
|
|
13286
13286
|
B[5] || (B[5] = l("p", { class: "text-sm text-gray-500" }, " No notifications ", -1))
|
|
13287
|
-
])) : (s(!0), i(
|
|
13287
|
+
])) : (s(!0), i(Y, { key: 1 }, X(e.notifications, (p) => (s(), i("div", {
|
|
13288
13288
|
key: p.id,
|
|
13289
13289
|
class: m([
|
|
13290
13290
|
"p-3 sm:p-4 border-b border-gray-100 hover:bg-gray-50 cursor-pointer transition-colors",
|
|
@@ -13338,7 +13338,7 @@ const dc = {
|
|
|
13338
13338
|
icon: "file",
|
|
13339
13339
|
class: "w-2.5 h-2.5 sm:w-3 sm:h-3 mr-0.5 sm:mr-1"
|
|
13340
13340
|
}),
|
|
13341
|
-
l("span", _v, w(
|
|
13341
|
+
l("span", _v, w(H(p.model)), 1)
|
|
13342
13342
|
])) : v("", !0),
|
|
13343
13343
|
p.due_date ? (s(), i("span", {
|
|
13344
13344
|
key: 1,
|
|
@@ -13407,7 +13407,7 @@ const dc = {
|
|
|
13407
13407
|
l("p", Kv, w(e.user.email), 1)
|
|
13408
13408
|
]),
|
|
13409
13409
|
l("div", Xv, [
|
|
13410
|
-
(s(!0), i(
|
|
13410
|
+
(s(!0), i(Y, null, X(e.profileMenuItems, (p) => (s(), i(Y, {
|
|
13411
13411
|
key: p.name
|
|
13412
13412
|
}, [
|
|
13413
13413
|
p.route ? (s(), W(g, {
|
|
@@ -13587,7 +13587,7 @@ const dc = {
|
|
|
13587
13587
|
onKeydown: M
|
|
13588
13588
|
}, [
|
|
13589
13589
|
C.value.length === 0 ? (s(), i("div", lh, w(e.placeholder || "Select options"), 1)) : (s(), i("div", oh, [
|
|
13590
|
-
(s(!0), i(
|
|
13590
|
+
(s(!0), i(Y, null, X(C.value, (D) => (s(), W(Ls, {
|
|
13591
13591
|
key: D,
|
|
13592
13592
|
variant: "primary",
|
|
13593
13593
|
size: "sm"
|
|
@@ -13642,7 +13642,7 @@ const dc = {
|
|
|
13642
13642
|
])
|
|
13643
13643
|
]),
|
|
13644
13644
|
d.value.length > 0 ? (s(), i("div", uh, [
|
|
13645
|
-
(s(!0), i(
|
|
13645
|
+
(s(!0), i(Y, null, X(d.value, (D) => (s(), i("button", {
|
|
13646
13646
|
key: D.value,
|
|
13647
13647
|
type: "button",
|
|
13648
13648
|
class: m(["cursor-pointer select-none relative py-2.5 pl-3 pr-9 w-full text-left hover:bg-blue-50 focus:bg-blue-50 focus:outline-none transition-colors duration-150", { "bg-blue-50": e.modelValue.includes(D.value) }]),
|
|
@@ -13669,31 +13669,31 @@ const dc = {
|
|
|
13669
13669
|
]))
|
|
13670
13670
|
]));
|
|
13671
13671
|
}
|
|
13672
|
-
}, gh = { class: "mb-6" }, vh = { class: "text-xl font-semibold text-gray-900" }, hh = { class: "text-sm text-gray-600 mt-1" }, bh = ["value"],
|
|
13672
|
+
}, gh = { class: "mb-6" }, vh = { class: "text-xl font-semibold text-gray-900" }, hh = { class: "text-sm text-gray-600 mt-1" }, bh = { class: "grid grid-cols-12 gap-6" }, ph = ["value"], yh = {
|
|
13673
13673
|
key: 5,
|
|
13674
13674
|
class: "flex items-center"
|
|
13675
|
-
},
|
|
13675
|
+
}, xh = {
|
|
13676
13676
|
key: 6,
|
|
13677
13677
|
class: "flex items-center"
|
|
13678
|
-
},
|
|
13678
|
+
}, wh = ["id", "aria-checked", "disabled", "onClick"], kh = {
|
|
13679
13679
|
key: 7,
|
|
13680
13680
|
class: "space-y-2"
|
|
13681
|
-
},
|
|
13681
|
+
}, $h = {
|
|
13682
13682
|
key: 8,
|
|
13683
13683
|
class: "w-full"
|
|
13684
|
-
},
|
|
13684
|
+
}, Ch = {
|
|
13685
13685
|
key: 0,
|
|
13686
13686
|
class: "mt-2 text-xs text-gray-500"
|
|
13687
|
-
},
|
|
13687
|
+
}, Sh = {
|
|
13688
13688
|
key: 9,
|
|
13689
13689
|
class: "w-full"
|
|
13690
|
-
},
|
|
13690
|
+
}, zh = {
|
|
13691
13691
|
key: 0,
|
|
13692
13692
|
class: "mt-2 text-xs text-gray-500"
|
|
13693
|
-
},
|
|
13693
|
+
}, Ah = {
|
|
13694
13694
|
key: 11,
|
|
13695
13695
|
class: "space-y-2"
|
|
13696
|
-
},
|
|
13696
|
+
}, Dh = { class: "flex items-center gap-4" }, Mh = { class: "text-sm font-medium text-gray-700 min-w-[3rem] text-right" }, Vh = { class: "flex justify-end gap-3 pt-6" }, Fh = {
|
|
13697
13697
|
__name: "ReusableFormModal",
|
|
13698
13698
|
props: {
|
|
13699
13699
|
modelValue: {
|
|
@@ -13919,7 +13919,7 @@ const dc = {
|
|
|
13919
13919
|
} catch (h) {
|
|
13920
13920
|
console.error("Error in onChange handler:", h);
|
|
13921
13921
|
}
|
|
13922
|
-
},
|
|
13922
|
+
}, H = (b, $) => {
|
|
13923
13923
|
if (R(b.name, $), b.onChange && typeof b.onChange == "function")
|
|
13924
13924
|
try {
|
|
13925
13925
|
b.onChange($, u.value);
|
|
@@ -13943,256 +13943,263 @@ const dc = {
|
|
|
13943
13943
|
l("p", hh, w(e.modalType === "create" ? `Fill in the details to create a new ${e.entityName.toLowerCase()}.` : `Update the ${e.entityName.toLowerCase()} information below.`), 1)
|
|
13944
13944
|
]),
|
|
13945
13945
|
l("form", {
|
|
13946
|
-
class: "
|
|
13946
|
+
class: "overflow-y-auto",
|
|
13947
13947
|
onSubmit: $e(D, ["prevent"])
|
|
13948
13948
|
}, [
|
|
13949
|
-
(
|
|
13950
|
-
|
|
13951
|
-
|
|
13952
|
-
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
class: m(g ? "border-red-500" : "border-slate-300"),
|
|
13974
|
-
"aria-describedby": p,
|
|
13975
|
-
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
13976
|
-
}, null, 8, ["id", "model-value", "type", "placeholder", "disabled", "readonly", "class", "aria-describedby", "onUpdate:modelValue"])) : h.type === "textarea" ? (s(), W(Ua, {
|
|
13977
|
-
key: 1,
|
|
13978
|
-
id: B,
|
|
13979
|
-
"model-value": F(h.name),
|
|
13980
|
-
placeholder: h.placeholder,
|
|
13981
|
-
disabled: o.value || h.disabled,
|
|
13982
|
-
rows: h.rows || 3,
|
|
13983
|
-
class: m([
|
|
13984
|
-
"w-full px-3 py-2 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
13985
|
-
g ? "border-red-500" : "border-slate-300"
|
|
13986
|
-
]),
|
|
13987
|
-
"aria-describedby": p,
|
|
13988
|
-
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
13989
|
-
}, null, 8, ["id", "model-value", "placeholder", "disabled", "rows", "class", "aria-describedby", "onUpdate:modelValue"])) : h.type === "select" ? (s(), W(Ye, {
|
|
13990
|
-
key: 2,
|
|
13991
|
-
id: B,
|
|
13992
|
-
"model-value": F(h.name),
|
|
13993
|
-
options: h.options,
|
|
13994
|
-
placeholder: h.placeholder || "Select an option",
|
|
13995
|
-
disabled: o.value || h.disabled,
|
|
13996
|
-
"has-error": g,
|
|
13997
|
-
"aria-describedby": p,
|
|
13998
|
-
"onUpdate:modelValue": (f) => k(h, f)
|
|
13999
|
-
}, null, 8, ["id", "model-value", "options", "placeholder", "disabled", "has-error", "aria-describedby", "onUpdate:modelValue"])) : h.type === "multiselect" ? (s(), W(Ws, {
|
|
14000
|
-
key: 3,
|
|
14001
|
-
id: B,
|
|
14002
|
-
"model-value": F(h.name),
|
|
14003
|
-
options: h.options,
|
|
14004
|
-
disabled: o.value || h.disabled,
|
|
14005
|
-
placeholder: h.placeholder || "Select options",
|
|
14006
|
-
"has-error": g,
|
|
14007
|
-
"aria-describedby": p,
|
|
14008
|
-
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14009
|
-
}, null, 8, ["id", "model-value", "options", "disabled", "placeholder", "has-error", "aria-describedby", "onUpdate:modelValue"])) : h.type === "combobox" ? (s(), W(Ye, {
|
|
14010
|
-
key: 4,
|
|
14011
|
-
id: B,
|
|
14012
|
-
"model-value": F(h.name),
|
|
14013
|
-
options: h.options,
|
|
14014
|
-
placeholder: h.placeholder || "Select or type to add new",
|
|
14015
|
-
disabled: o.value || h.disabled,
|
|
14016
|
-
"has-error": g,
|
|
14017
|
-
"aria-describedby": p,
|
|
14018
|
-
"allow-create": h.allowCreate,
|
|
14019
|
-
"onUpdate:modelValue": (f) => k(h, f)
|
|
14020
|
-
}, null, 8, ["id", "model-value", "options", "placeholder", "disabled", "has-error", "aria-describedby", "allow-create", "onUpdate:modelValue"])) : h.type === "checkbox" ? (s(), i("div", ph, [
|
|
14021
|
-
P(Ae, {
|
|
13949
|
+
l("div", bh, [
|
|
13950
|
+
(s(!0), i(Y, null, X(e.fields, (h) => (s(), i("div", {
|
|
13951
|
+
key: h.name,
|
|
13952
|
+
class: m(h.wrapperClass || "col-span-12")
|
|
13953
|
+
}, [
|
|
13954
|
+
h.type === "hidden" ? (s(), i("input", {
|
|
13955
|
+
key: 0,
|
|
13956
|
+
value: F(h.name),
|
|
13957
|
+
type: "hidden"
|
|
13958
|
+
}, null, 8, ph)) : (s(), W(qa, {
|
|
13959
|
+
key: 1,
|
|
13960
|
+
id: `form-${e.entityName}-${h.name}-${Math.random().toString(36).slice(2, 5)}`,
|
|
13961
|
+
label: h.label,
|
|
13962
|
+
required: h.required && !h.disabled,
|
|
13963
|
+
error: d.value[h.name],
|
|
13964
|
+
"error-message": d.value[h.name]
|
|
13965
|
+
}, {
|
|
13966
|
+
default: J(({ fieldId: B, hasError: g, ariaDescribedBy: p }) => [
|
|
13967
|
+
(s(!0), i(Y, null, X(e.fields, (f) => (s(), i("div", {
|
|
13968
|
+
key: f.name,
|
|
13969
|
+
class: m(f.wrapperClass || "col-span-12")
|
|
13970
|
+
}, null, 2))), 128)),
|
|
13971
|
+
["text", "number", "password", "color", "email", "tel", "url", "search"].includes(h.type) ? (s(), W(Ae, {
|
|
13972
|
+
key: 0,
|
|
14022
13973
|
id: B,
|
|
14023
13974
|
"model-value": F(h.name),
|
|
14024
|
-
type:
|
|
13975
|
+
type: h.type,
|
|
13976
|
+
placeholder: h.placeholder,
|
|
14025
13977
|
disabled: o.value || h.disabled,
|
|
14026
|
-
|
|
13978
|
+
readonly: h.disabled,
|
|
13979
|
+
class: m(g ? "border-red-500" : "border-slate-300"),
|
|
14027
13980
|
"aria-describedby": p,
|
|
14028
13981
|
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14029
|
-
}, null, 8, ["id", "model-value", "disabled", "aria-describedby", "onUpdate:modelValue"]),
|
|
14030
|
-
|
|
14031
|
-
for: B,
|
|
14032
|
-
class: "ml-2 text-sm text-gray-700"
|
|
14033
|
-
}, {
|
|
14034
|
-
default: J(() => [
|
|
14035
|
-
oe(w(h.checkboxLabel || h.label), 1)
|
|
14036
|
-
]),
|
|
14037
|
-
_: 2
|
|
14038
|
-
}, 1032, ["for"])
|
|
14039
|
-
])) : h.type === "switch" ? (s(), i("div", yh, [
|
|
14040
|
-
l("button", {
|
|
13982
|
+
}, null, 8, ["id", "model-value", "type", "placeholder", "disabled", "readonly", "class", "aria-describedby", "onUpdate:modelValue"])) : h.type === "textarea" ? (s(), W(Ua, {
|
|
13983
|
+
key: 1,
|
|
14041
13984
|
id: B,
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
"aria-checked": F(h.name),
|
|
13985
|
+
"model-value": F(h.name),
|
|
13986
|
+
placeholder: h.placeholder,
|
|
14045
13987
|
disabled: o.value || h.disabled,
|
|
13988
|
+
rows: h.rows || 3,
|
|
14046
13989
|
class: m([
|
|
14047
|
-
"
|
|
14048
|
-
|
|
14049
|
-
o.value || h.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
13990
|
+
"w-full px-3 py-2 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
13991
|
+
g ? "border-red-500" : "border-slate-300"
|
|
14050
13992
|
]),
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
}, {
|
|
14064
|
-
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
}, [
|
|
13993
|
+
"aria-describedby": p,
|
|
13994
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
13995
|
+
}, null, 8, ["id", "model-value", "placeholder", "disabled", "rows", "class", "aria-describedby", "onUpdate:modelValue"])) : h.type === "select" ? (s(), W(Ye, {
|
|
13996
|
+
key: 2,
|
|
13997
|
+
id: B,
|
|
13998
|
+
"model-value": F(h.name),
|
|
13999
|
+
options: h.options,
|
|
14000
|
+
placeholder: h.placeholder || "Select an option",
|
|
14001
|
+
disabled: o.value || h.disabled,
|
|
14002
|
+
"has-error": g,
|
|
14003
|
+
"aria-describedby": p,
|
|
14004
|
+
"onUpdate:modelValue": (f) => k(h, f)
|
|
14005
|
+
}, null, 8, ["id", "model-value", "options", "placeholder", "disabled", "has-error", "aria-describedby", "onUpdate:modelValue"])) : h.type === "multiselect" ? (s(), W(Ws, {
|
|
14006
|
+
key: 3,
|
|
14007
|
+
id: B,
|
|
14008
|
+
"model-value": F(h.name),
|
|
14009
|
+
options: h.options,
|
|
14010
|
+
disabled: o.value || h.disabled,
|
|
14011
|
+
placeholder: h.placeholder || "Select options",
|
|
14012
|
+
"has-error": g,
|
|
14013
|
+
"aria-describedby": p,
|
|
14014
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14015
|
+
}, null, 8, ["id", "model-value", "options", "disabled", "placeholder", "has-error", "aria-describedby", "onUpdate:modelValue"])) : h.type === "combobox" ? (s(), W(Ye, {
|
|
14016
|
+
key: 4,
|
|
14017
|
+
id: B,
|
|
14018
|
+
"model-value": F(h.name),
|
|
14019
|
+
options: h.options,
|
|
14020
|
+
placeholder: h.placeholder || "Select or type to add new",
|
|
14021
|
+
disabled: o.value || h.disabled,
|
|
14022
|
+
"has-error": g,
|
|
14023
|
+
"aria-describedby": p,
|
|
14024
|
+
"allow-create": h.allowCreate,
|
|
14025
|
+
"onUpdate:modelValue": (f) => k(h, f)
|
|
14026
|
+
}, null, 8, ["id", "model-value", "options", "placeholder", "disabled", "has-error", "aria-describedby", "allow-create", "onUpdate:modelValue"])) : h.type === "checkbox" ? (s(), i("div", yh, [
|
|
14074
14027
|
P(Ae, {
|
|
14075
|
-
id:
|
|
14028
|
+
id: B,
|
|
14076
14029
|
"model-value": F(h.name),
|
|
14077
|
-
type: "
|
|
14078
|
-
value: f.value,
|
|
14030
|
+
type: "checkbox",
|
|
14079
14031
|
disabled: o.value || h.disabled,
|
|
14080
|
-
class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300",
|
|
14032
|
+
class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded",
|
|
14081
14033
|
"aria-describedby": p,
|
|
14082
|
-
"onUpdate:modelValue": (
|
|
14083
|
-
}, null, 8, ["id", "model-value", "
|
|
14034
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14035
|
+
}, null, 8, ["id", "model-value", "disabled", "aria-describedby", "onUpdate:modelValue"]),
|
|
14084
14036
|
P(Qe, {
|
|
14085
|
-
for:
|
|
14037
|
+
for: B,
|
|
14086
14038
|
class: "ml-2 text-sm text-gray-700"
|
|
14087
14039
|
}, {
|
|
14088
14040
|
default: J(() => [
|
|
14089
|
-
oe(w(
|
|
14041
|
+
oe(w(h.checkboxLabel || h.label), 1)
|
|
14090
14042
|
]),
|
|
14091
14043
|
_: 2
|
|
14092
14044
|
}, 1032, ["for"])
|
|
14093
|
-
]))),
|
|
14094
|
-
|
|
14095
|
-
P(qt, {
|
|
14096
|
-
multiple: !1,
|
|
14097
|
-
accept: h.accept,
|
|
14098
|
-
"max-size": h.maxSize,
|
|
14099
|
-
variant: h.variant || "default",
|
|
14100
|
-
onFilesSelected: (f) => re(h, f),
|
|
14101
|
-
onFileRemoved: (f) => ne(h, f)
|
|
14102
|
-
}, null, 8, ["accept", "max-size", "variant", "onFilesSelected", "onFileRemoved"]),
|
|
14103
|
-
h.helpText ? (s(), i("p", $h, w(h.helpText), 1)) : v("", !0)
|
|
14104
|
-
])) : h.type === "multifile" ? (s(), i("div", Ch, [
|
|
14105
|
-
P(qt, {
|
|
14106
|
-
multiple: h.multiple !== !1,
|
|
14107
|
-
accept: h.accept,
|
|
14108
|
-
"max-size": h.maxSize,
|
|
14109
|
-
"max-files": h.maxFiles,
|
|
14110
|
-
variant: h.variant || "default",
|
|
14111
|
-
onFilesSelected: (f) => E(h, f),
|
|
14112
|
-
onFileRemoved: (f) => Y(h, f)
|
|
14113
|
-
}, null, 8, ["multiple", "accept", "max-size", "max-files", "variant", "onFilesSelected", "onFileRemoved"]),
|
|
14114
|
-
h.helpText ? (s(), i("p", Sh, w(h.helpText), 1)) : v("", !0)
|
|
14115
|
-
])) : h.type === "slider" ? (s(), W(Ha, {
|
|
14116
|
-
key: 10,
|
|
14117
|
-
"model-value": F(h.name),
|
|
14118
|
-
min: h.min,
|
|
14119
|
-
max: h.max,
|
|
14120
|
-
step: h.step,
|
|
14121
|
-
disabled: o.value || h.disabled,
|
|
14122
|
-
"onUpdate:modelValue": (f) => z(h, f)
|
|
14123
|
-
}, null, 8, ["model-value", "min", "max", "step", "disabled", "onUpdate:modelValue"])) : h.type === "range" ? (s(), i("div", zh, [
|
|
14124
|
-
l("div", Ah, [
|
|
14125
|
-
P(Ae, {
|
|
14045
|
+
])) : h.type === "switch" ? (s(), i("div", xh, [
|
|
14046
|
+
l("button", {
|
|
14126
14047
|
id: B,
|
|
14127
|
-
"
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
max: h.max,
|
|
14131
|
-
step: h.step || 1,
|
|
14048
|
+
type: "button",
|
|
14049
|
+
role: "switch",
|
|
14050
|
+
"aria-checked": F(h.name),
|
|
14132
14051
|
disabled: o.value || h.disabled,
|
|
14133
|
-
class:
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
|
|
14179
|
-
|
|
14180
|
-
|
|
14181
|
-
|
|
14182
|
-
|
|
14183
|
-
|
|
14184
|
-
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
|
|
14052
|
+
class: m([
|
|
14053
|
+
"relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
14054
|
+
F(h.name) ? "bg-blue-600" : "bg-gray-200",
|
|
14055
|
+
o.value || h.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
14056
|
+
]),
|
|
14057
|
+
onClick: (f) => R(h.name, !F(h.name))
|
|
14058
|
+
}, [
|
|
14059
|
+
l("span", {
|
|
14060
|
+
class: m([
|
|
14061
|
+
"inline-block h-4 w-4 transform rounded-full bg-white transition-transform",
|
|
14062
|
+
F(h.name) ? "translate-x-6" : "translate-x-1"
|
|
14063
|
+
])
|
|
14064
|
+
}, null, 2)
|
|
14065
|
+
], 10, wh),
|
|
14066
|
+
P(Qe, {
|
|
14067
|
+
for: B,
|
|
14068
|
+
class: "ml-3 text-sm text-gray-700"
|
|
14069
|
+
}, {
|
|
14070
|
+
default: J(() => [
|
|
14071
|
+
oe(w(h.checkboxLabel || h.label), 1)
|
|
14072
|
+
]),
|
|
14073
|
+
_: 2
|
|
14074
|
+
}, 1032, ["for"])
|
|
14075
|
+
])) : h.type === "radio" ? (s(), i("div", kh, [
|
|
14076
|
+
(s(!0), i(Y, null, X(h.options, (f) => (s(), i("div", {
|
|
14077
|
+
key: f.value,
|
|
14078
|
+
class: "flex items-center"
|
|
14079
|
+
}, [
|
|
14080
|
+
P(Ae, {
|
|
14081
|
+
id: `${B}-${f.value}`,
|
|
14082
|
+
"model-value": F(h.name),
|
|
14083
|
+
type: "radio",
|
|
14084
|
+
value: f.value,
|
|
14085
|
+
disabled: o.value || h.disabled,
|
|
14086
|
+
class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300",
|
|
14087
|
+
"aria-describedby": p,
|
|
14088
|
+
"onUpdate:modelValue": (K) => R(h.name, K)
|
|
14089
|
+
}, null, 8, ["id", "model-value", "value", "disabled", "aria-describedby", "onUpdate:modelValue"]),
|
|
14090
|
+
P(Qe, {
|
|
14091
|
+
for: `${B}-${f.value}`,
|
|
14092
|
+
class: "ml-2 text-sm text-gray-700"
|
|
14093
|
+
}, {
|
|
14094
|
+
default: J(() => [
|
|
14095
|
+
oe(w(f.label), 1)
|
|
14096
|
+
]),
|
|
14097
|
+
_: 2
|
|
14098
|
+
}, 1032, ["for"])
|
|
14099
|
+
]))), 128))
|
|
14100
|
+
])) : h.type === "file" ? (s(), i("div", $h, [
|
|
14101
|
+
P(qt, {
|
|
14102
|
+
multiple: !1,
|
|
14103
|
+
accept: h.accept,
|
|
14104
|
+
"max-size": h.maxSize,
|
|
14105
|
+
variant: h.variant || "default",
|
|
14106
|
+
onFilesSelected: (f) => re(h, f),
|
|
14107
|
+
onFileRemoved: (f) => ne(h, f)
|
|
14108
|
+
}, null, 8, ["accept", "max-size", "variant", "onFilesSelected", "onFileRemoved"]),
|
|
14109
|
+
h.helpText ? (s(), i("p", Ch, w(h.helpText), 1)) : v("", !0)
|
|
14110
|
+
])) : h.type === "multifile" ? (s(), i("div", Sh, [
|
|
14111
|
+
P(qt, {
|
|
14112
|
+
multiple: h.multiple !== !1,
|
|
14113
|
+
accept: h.accept,
|
|
14114
|
+
"max-size": h.maxSize,
|
|
14115
|
+
"max-files": h.maxFiles,
|
|
14116
|
+
variant: h.variant || "default",
|
|
14117
|
+
onFilesSelected: (f) => E(h, f),
|
|
14118
|
+
onFileRemoved: (f) => H(h, f)
|
|
14119
|
+
}, null, 8, ["multiple", "accept", "max-size", "max-files", "variant", "onFilesSelected", "onFileRemoved"]),
|
|
14120
|
+
h.helpText ? (s(), i("p", zh, w(h.helpText), 1)) : v("", !0)
|
|
14121
|
+
])) : h.type === "slider" ? (s(), W(Ha, {
|
|
14122
|
+
key: 10,
|
|
14123
|
+
"model-value": F(h.name),
|
|
14124
|
+
min: h.min,
|
|
14125
|
+
max: h.max,
|
|
14126
|
+
step: h.step,
|
|
14127
|
+
disabled: o.value || h.disabled,
|
|
14128
|
+
"onUpdate:modelValue": (f) => z(h, f)
|
|
14129
|
+
}, null, 8, ["model-value", "min", "max", "step", "disabled", "onUpdate:modelValue"])) : h.type === "range" ? (s(), i("div", Ah, [
|
|
14130
|
+
l("div", Dh, [
|
|
14131
|
+
P(Ae, {
|
|
14132
|
+
id: B,
|
|
14133
|
+
"model-value": F(h.name),
|
|
14134
|
+
type: "range",
|
|
14135
|
+
min: h.min,
|
|
14136
|
+
max: h.max,
|
|
14137
|
+
step: h.step || 1,
|
|
14138
|
+
disabled: o.value || h.disabled,
|
|
14139
|
+
class: "flex-1",
|
|
14140
|
+
"aria-describedby": p,
|
|
14141
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14142
|
+
}, null, 8, ["id", "model-value", "min", "max", "step", "disabled", "aria-describedby", "onUpdate:modelValue"]),
|
|
14143
|
+
l("span", Mh, w(F(h.name)), 1)
|
|
14144
|
+
])
|
|
14145
|
+
])) : h.type === "date" ? (s(), W(Xt, {
|
|
14146
|
+
key: 12,
|
|
14147
|
+
id: B,
|
|
14148
|
+
"model-value": F(h.name),
|
|
14149
|
+
disabled: o.value || h.disabled,
|
|
14150
|
+
required: h.required,
|
|
14151
|
+
min: h.min,
|
|
14152
|
+
max: h.max,
|
|
14153
|
+
placeholder: h.placeholder || "Select date",
|
|
14154
|
+
format: h.format || "MM/DD/YYYY",
|
|
14155
|
+
clearable: h.clearable !== !1,
|
|
14156
|
+
"show-today": h.showToday !== !1,
|
|
14157
|
+
"calendar-position": h.calendarPosition || "left-0 bottom-full",
|
|
14158
|
+
"aria-describedby": p,
|
|
14159
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14160
|
+
}, null, 8, ["id", "model-value", "disabled", "required", "min", "max", "placeholder", "format", "clearable", "show-today", "calendar-position", "aria-describedby", "onUpdate:modelValue"])) : h.type === "time" ? (s(), W(Ae, {
|
|
14161
|
+
key: 13,
|
|
14162
|
+
id: B,
|
|
14163
|
+
"model-value": F(h.name),
|
|
14164
|
+
type: "time",
|
|
14165
|
+
disabled: o.value || h.disabled,
|
|
14166
|
+
class: m(g ? "border-red-500" : "border-slate-300"),
|
|
14167
|
+
"aria-describedby": p,
|
|
14168
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14169
|
+
}, null, 8, ["id", "model-value", "disabled", "class", "aria-describedby", "onUpdate:modelValue"])) : h.type === "datetime-local" ? (s(), W(Ae, {
|
|
14170
|
+
key: 14,
|
|
14171
|
+
id: B,
|
|
14172
|
+
"model-value": F(h.name),
|
|
14173
|
+
type: "datetime-local",
|
|
14174
|
+
disabled: o.value || h.disabled,
|
|
14175
|
+
class: m(g ? "border-red-500" : "border-slate-300"),
|
|
14176
|
+
"aria-describedby": p,
|
|
14177
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14178
|
+
}, null, 8, ["id", "model-value", "disabled", "class", "aria-describedby", "onUpdate:modelValue"])) : h.type === "month" ? (s(), W(Ae, {
|
|
14179
|
+
key: 15,
|
|
14180
|
+
id: B,
|
|
14181
|
+
"model-value": F(h.name),
|
|
14182
|
+
type: "month",
|
|
14183
|
+
disabled: o.value || h.disabled,
|
|
14184
|
+
class: m(g ? "border-red-500" : "border-slate-300"),
|
|
14185
|
+
"aria-describedby": p,
|
|
14186
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14187
|
+
}, null, 8, ["id", "model-value", "disabled", "class", "aria-describedby", "onUpdate:modelValue"])) : h.type === "week" ? (s(), W(Ae, {
|
|
14188
|
+
key: 16,
|
|
14189
|
+
id: B,
|
|
14190
|
+
"model-value": F(h.name),
|
|
14191
|
+
type: "week",
|
|
14192
|
+
disabled: o.value || h.disabled,
|
|
14193
|
+
class: m(g ? "border-red-500" : "border-slate-300"),
|
|
14194
|
+
"aria-describedby": p,
|
|
14195
|
+
"onUpdate:modelValue": (f) => R(h.name, f)
|
|
14196
|
+
}, null, 8, ["id", "model-value", "disabled", "class", "aria-describedby", "onUpdate:modelValue"])) : v("", !0)
|
|
14197
|
+
]),
|
|
14198
|
+
_: 2
|
|
14199
|
+
}, 1032, ["id", "label", "required", "error", "error-message"]))
|
|
14200
|
+
], 2))), 128))
|
|
14201
|
+
]),
|
|
14202
|
+
l("div", Vh, [
|
|
14196
14203
|
P(Se, {
|
|
14197
14204
|
type: "button",
|
|
14198
14205
|
variant: "outline",
|
|
@@ -14221,72 +14228,72 @@ const dc = {
|
|
|
14221
14228
|
_: 1
|
|
14222
14229
|
}, 8, ["modelValue", "size", "class", "resizable"]));
|
|
14223
14230
|
}
|
|
14224
|
-
},
|
|
14231
|
+
}, Th = { class: "w-full p-2" }, Bh = {
|
|
14225
14232
|
key: 0,
|
|
14226
14233
|
class: "mb-6"
|
|
14227
|
-
},
|
|
14234
|
+
}, jh = { class: "text-xl font-semibold text-gray-900" }, Ph = {
|
|
14228
14235
|
key: 0,
|
|
14229
14236
|
class: "text-sm text-gray-600 mt-1"
|
|
14230
|
-
},
|
|
14237
|
+
}, Oh = ["onUpdate:modelValue"], _h = {
|
|
14231
14238
|
key: 4,
|
|
14232
14239
|
class: "flex items-center"
|
|
14233
|
-
},
|
|
14240
|
+
}, Lh = {
|
|
14234
14241
|
key: 5,
|
|
14235
14242
|
class: "flex items-center"
|
|
14236
|
-
},
|
|
14243
|
+
}, Eh = ["id", "aria-checked", "disabled", "onClick"], Ih = {
|
|
14237
14244
|
key: 6,
|
|
14238
14245
|
class: "space-y-2"
|
|
14239
|
-
},
|
|
14246
|
+
}, Nh = {
|
|
14240
14247
|
key: 7,
|
|
14241
14248
|
class: "space-y-2"
|
|
14242
|
-
},
|
|
14249
|
+
}, Rh = {
|
|
14243
14250
|
key: 0,
|
|
14244
14251
|
class: "text-xs text-gray-500"
|
|
14245
|
-
},
|
|
14252
|
+
}, Uh = {
|
|
14246
14253
|
key: 8,
|
|
14247
14254
|
class: "space-y-3"
|
|
14248
|
-
},
|
|
14255
|
+
}, qh = ["onDrop", "onDragenter", "onDragleave", "onClick"], Yh = ["multiple", "accept", "disabled", "onChange"], Hh = { class: "flex items-center justify-center px-4 py-4" }, Wh = { class: "flex flex-col" }, Gh = { class: "text-xs text-gray-500" }, Kh = {
|
|
14249
14256
|
key: 0,
|
|
14250
14257
|
class: "ml-1"
|
|
14251
|
-
},
|
|
14258
|
+
}, Xh = {
|
|
14252
14259
|
key: 1,
|
|
14253
14260
|
class: "ml-1"
|
|
14254
|
-
},
|
|
14261
|
+
}, Jh = {
|
|
14255
14262
|
key: 0,
|
|
14256
14263
|
class: "text-xs text-gray-500"
|
|
14257
|
-
},
|
|
14264
|
+
}, Qh = {
|
|
14258
14265
|
key: 1,
|
|
14259
14266
|
class: "space-y-2"
|
|
14260
|
-
},
|
|
14267
|
+
}, Zh = { class: "flex items-center space-x-3 flex-1 min-w-0" }, eb = { class: "relative h-10 w-10 shrink-0" }, tb = {
|
|
14261
14268
|
class: "h-10 w-10 text-gray-300",
|
|
14262
14269
|
viewBox: "0 0 36 36"
|
|
14263
|
-
},
|
|
14270
|
+
}, ab = ["stroke-dasharray"], nb = { class: "absolute inset-0 flex items-center justify-center text-xs font-medium text-gray-700" }, sb = { class: "flex flex-col min-w-0" }, rb = { class: "text-sm font-medium text-gray-900 truncate" }, lb = ["onClick"], ob = {
|
|
14264
14271
|
key: 2,
|
|
14265
14272
|
class: "space-y-2"
|
|
14266
|
-
},
|
|
14273
|
+
}, ib = { class: "flex items-center space-x-3 flex-1 min-w-0" }, ub = {
|
|
14267
14274
|
class: "h-5 w-5",
|
|
14268
14275
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14269
14276
|
fill: "none",
|
|
14270
14277
|
viewBox: "0 0 24 24",
|
|
14271
14278
|
"stroke-width": "1.5",
|
|
14272
14279
|
stroke: "currentColor"
|
|
14273
|
-
},
|
|
14280
|
+
}, db = {
|
|
14274
14281
|
key: 0,
|
|
14275
14282
|
"stroke-linecap": "round",
|
|
14276
14283
|
"stroke-linejoin": "round",
|
|
14277
14284
|
d: "M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"
|
|
14278
|
-
},
|
|
14285
|
+
}, cb = {
|
|
14279
14286
|
key: 1,
|
|
14280
14287
|
"stroke-linecap": "round",
|
|
14281
14288
|
"stroke-linejoin": "round",
|
|
14282
14289
|
d: "M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"
|
|
14283
|
-
},
|
|
14290
|
+
}, fb = { class: "flex flex-col min-w-0" }, mb = { class: "text-sm font-medium text-gray-900 truncate" }, gb = { class: "text-xs text-gray-500" }, vb = ["disabled", "onClick"], hb = {
|
|
14284
14291
|
key: 3,
|
|
14285
14292
|
class: "text-xs text-blue-600 font-medium"
|
|
14286
|
-
},
|
|
14293
|
+
}, bb = { key: 0 }, pb = {
|
|
14287
14294
|
key: 10,
|
|
14288
14295
|
class: "space-y-2"
|
|
14289
|
-
},
|
|
14296
|
+
}, yb = { class: "flex items-center gap-4" }, xb = { class: "text-sm font-medium text-gray-700 min-w-[3rem] text-right" }, wb = { class: "flex justify-end gap-3 pt-6" }, kb = {
|
|
14290
14297
|
__name: "ReusableForm",
|
|
14291
14298
|
props: {
|
|
14292
14299
|
title: {
|
|
@@ -14493,7 +14500,7 @@ const dc = {
|
|
|
14493
14500
|
if (g === 0) return "0 Bytes";
|
|
14494
14501
|
const p = 1024, f = ["Bytes", "KB", "MB", "GB"], K = Math.floor(Math.log(g) / Math.log(p));
|
|
14495
14502
|
return parseFloat((g / Math.pow(p, K)).toFixed(2)) + " " + f[K];
|
|
14496
|
-
},
|
|
14503
|
+
}, H = (g) => {
|
|
14497
14504
|
const p = g.name.split(".").pop()?.toLowerCase();
|
|
14498
14505
|
return ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp"].includes(p) ? "image" : ["pdf"].includes(p) || ["doc", "docx"].includes(p) ? "file-text" : ["xls", "xlsx", "csv"].includes(p) ? "table" : ["zip", "rar", "7z", "tar", "gz"].includes(p) ? "archive" : ["mp4", "mov", "avi", "mkv", "webm"].includes(p) ? "video" : ["mp3", "wav", "ogg", "flac"].includes(p) ? "music" : "file";
|
|
14499
14506
|
}, b = (g) => {
|
|
@@ -14525,23 +14532,23 @@ const dc = {
|
|
|
14525
14532
|
}, B = () => {
|
|
14526
14533
|
n("cancel");
|
|
14527
14534
|
};
|
|
14528
|
-
return (g, p) => (s(), i("div",
|
|
14529
|
-
e.title ? (s(), i("div",
|
|
14530
|
-
l("h2",
|
|
14531
|
-
e.description ? (s(), i("p",
|
|
14535
|
+
return (g, p) => (s(), i("div", Th, [
|
|
14536
|
+
e.title ? (s(), i("div", Bh, [
|
|
14537
|
+
l("h2", jh, w(e.title), 1),
|
|
14538
|
+
e.description ? (s(), i("p", Ph, w(e.description), 1)) : v("", !0)
|
|
14532
14539
|
])) : v("", !0),
|
|
14533
14540
|
l("form", {
|
|
14534
14541
|
class: "space-y-6",
|
|
14535
14542
|
onSubmit: $e($, ["prevent"])
|
|
14536
14543
|
}, [
|
|
14537
|
-
(s(!0), i(
|
|
14544
|
+
(s(!0), i(Y, null, X(e.fields, (f) => (s(), i("div", {
|
|
14538
14545
|
key: f.name
|
|
14539
14546
|
}, [
|
|
14540
14547
|
f.type === "hidden" ? Ge((s(), i("input", {
|
|
14541
14548
|
key: 0,
|
|
14542
14549
|
"onUpdate:modelValue": (K) => o.value[f.name] = K,
|
|
14543
14550
|
type: "hidden"
|
|
14544
|
-
}, null, 8,
|
|
14551
|
+
}, null, 8, Oh)), [
|
|
14545
14552
|
[rt, o.value[f.name]]
|
|
14546
14553
|
]) : (s(), W(qa, {
|
|
14547
14554
|
key: 1,
|
|
@@ -14596,7 +14603,7 @@ const dc = {
|
|
|
14596
14603
|
"has-error": ie,
|
|
14597
14604
|
"aria-describedby": ce,
|
|
14598
14605
|
"onUpdate:modelValue": (ae) => o.value[f.name] = ae
|
|
14599
|
-
}, null, 8, ["id", "model-value", "options", "disabled", "placeholder", "has-error", "aria-describedby", "onUpdate:modelValue"])) : f.type === "checkbox" ? (s(), i("div",
|
|
14606
|
+
}, null, 8, ["id", "model-value", "options", "disabled", "placeholder", "has-error", "aria-describedby", "onUpdate:modelValue"])) : f.type === "checkbox" ? (s(), i("div", _h, [
|
|
14600
14607
|
P(Ae, {
|
|
14601
14608
|
id: K,
|
|
14602
14609
|
modelValue: o.value[f.name],
|
|
@@ -14615,7 +14622,7 @@ const dc = {
|
|
|
14615
14622
|
]),
|
|
14616
14623
|
_: 2
|
|
14617
14624
|
}, 1032, ["for"])
|
|
14618
|
-
])) : f.type === "switch" ? (s(), i("div",
|
|
14625
|
+
])) : f.type === "switch" ? (s(), i("div", Lh, [
|
|
14619
14626
|
l("button", {
|
|
14620
14627
|
id: K,
|
|
14621
14628
|
type: "button",
|
|
@@ -14635,7 +14642,7 @@ const dc = {
|
|
|
14635
14642
|
o.value[f.name] ? "translate-x-6" : "translate-x-1"
|
|
14636
14643
|
])
|
|
14637
14644
|
}, null, 2)
|
|
14638
|
-
], 10,
|
|
14645
|
+
], 10, Eh),
|
|
14639
14646
|
P(Qe, {
|
|
14640
14647
|
for: K,
|
|
14641
14648
|
class: "ml-3 text-sm text-gray-700"
|
|
@@ -14645,8 +14652,8 @@ const dc = {
|
|
|
14645
14652
|
]),
|
|
14646
14653
|
_: 2
|
|
14647
14654
|
}, 1032, ["for"])
|
|
14648
|
-
])) : f.type === "radio" ? (s(), i("div",
|
|
14649
|
-
(s(!0), i(
|
|
14655
|
+
])) : f.type === "radio" ? (s(), i("div", Ih, [
|
|
14656
|
+
(s(!0), i(Y, null, X(f.options, (ae) => (s(), i("div", {
|
|
14650
14657
|
key: ae.value,
|
|
14651
14658
|
class: "flex items-center"
|
|
14652
14659
|
}, [
|
|
@@ -14670,7 +14677,7 @@ const dc = {
|
|
|
14670
14677
|
_: 2
|
|
14671
14678
|
}, 1032, ["for"])
|
|
14672
14679
|
]))), 128))
|
|
14673
|
-
])) : f.type === "file" ? (s(), i("div",
|
|
14680
|
+
])) : f.type === "file" ? (s(), i("div", Nh, [
|
|
14674
14681
|
P(Ae, {
|
|
14675
14682
|
id: K,
|
|
14676
14683
|
type: "file",
|
|
@@ -14683,8 +14690,8 @@ const dc = {
|
|
|
14683
14690
|
"aria-describedby": ce,
|
|
14684
14691
|
onChange: (ae) => k(f, ae)
|
|
14685
14692
|
}, null, 8, ["id", "accept", "disabled", "class", "aria-describedby", "onChange"]),
|
|
14686
|
-
f.helpText ? (s(), i("p",
|
|
14687
|
-
])) : f.type === "multifile" ? (s(), i("div",
|
|
14693
|
+
f.helpText ? (s(), i("p", Rh, w(f.helpText), 1)) : v("", !0)
|
|
14694
|
+
])) : f.type === "multifile" ? (s(), i("div", Uh, [
|
|
14688
14695
|
l("div", {
|
|
14689
14696
|
class: m([
|
|
14690
14697
|
"border-2 border-dashed rounded-xl cursor-pointer transition-all duration-200",
|
|
@@ -14706,8 +14713,8 @@ const dc = {
|
|
|
14706
14713
|
class: "hidden",
|
|
14707
14714
|
disabled: r.value || f.disabled,
|
|
14708
14715
|
onChange: (ae) => F(f, ae)
|
|
14709
|
-
}, null, 40,
|
|
14710
|
-
l("div",
|
|
14716
|
+
}, null, 40, Yh),
|
|
14717
|
+
l("div", Hh, [
|
|
14711
14718
|
p[1] || (p[1] = l("div", { class: "bg-gray-100 rounded-full p-2.5 mr-3" }, [
|
|
14712
14719
|
l("svg", {
|
|
14713
14720
|
class: "h-6 w-6 text-gray-600",
|
|
@@ -14724,28 +14731,28 @@ const dc = {
|
|
|
14724
14731
|
})
|
|
14725
14732
|
])
|
|
14726
14733
|
], -1)),
|
|
14727
|
-
l("div",
|
|
14734
|
+
l("div", Wh, [
|
|
14728
14735
|
p[0] || (p[0] = l("p", { class: "text-sm font-medium text-gray-700" }, [
|
|
14729
14736
|
l("span", { class: "text-blue-600 font-semibold" }, "Click to upload"),
|
|
14730
14737
|
oe(" or drag and drop ")
|
|
14731
14738
|
], -1)),
|
|
14732
|
-
l("p",
|
|
14739
|
+
l("p", Gh, [
|
|
14733
14740
|
oe(w(f.maxSize ? `Up to ${E(f.maxSize)}` : "No size limit") + " ", 1),
|
|
14734
|
-
f.accept ? (s(), i("span",
|
|
14735
|
-
f.maxFiles ? (s(), i("span",
|
|
14741
|
+
f.accept ? (s(), i("span", Kh, "• " + w(f.accept), 1)) : v("", !0),
|
|
14742
|
+
f.maxFiles ? (s(), i("span", Xh, "• Max " + w(f.maxFiles) + " files", 1)) : v("", !0)
|
|
14736
14743
|
])
|
|
14737
14744
|
])
|
|
14738
14745
|
])
|
|
14739
|
-
], 42,
|
|
14740
|
-
f.helpText ? (s(), i("p",
|
|
14741
|
-
c.value[f.name]?.length > 0 ? (s(), i("div",
|
|
14742
|
-
(s(!0), i(
|
|
14746
|
+
], 42, qh),
|
|
14747
|
+
f.helpText ? (s(), i("p", Jh, w(f.helpText), 1)) : v("", !0),
|
|
14748
|
+
c.value[f.name]?.length > 0 ? (s(), i("div", Qh, [
|
|
14749
|
+
(s(!0), i(Y, null, X(c.value[f.name], (ae) => (s(), i("div", {
|
|
14743
14750
|
key: ae.id,
|
|
14744
14751
|
class: "flex items-center justify-between p-3 bg-white border border-gray-200 rounded-lg"
|
|
14745
14752
|
}, [
|
|
14746
|
-
l("div",
|
|
14747
|
-
l("div",
|
|
14748
|
-
(s(), i("svg",
|
|
14753
|
+
l("div", Zh, [
|
|
14754
|
+
l("div", eb, [
|
|
14755
|
+
(s(), i("svg", tb, [
|
|
14749
14756
|
p[2] || (p[2] = l("circle", {
|
|
14750
14757
|
cx: "18",
|
|
14751
14758
|
cy: "18",
|
|
@@ -14764,12 +14771,12 @@ const dc = {
|
|
|
14764
14771
|
"stroke-linecap": "round",
|
|
14765
14772
|
"stroke-dasharray": `${ae.progress} 100`,
|
|
14766
14773
|
transform: "rotate(-90 18 18)"
|
|
14767
|
-
}, null, 8,
|
|
14774
|
+
}, null, 8, ab)
|
|
14768
14775
|
])),
|
|
14769
|
-
l("span",
|
|
14776
|
+
l("span", nb, w(Math.round(ae.progress)) + "% ", 1)
|
|
14770
14777
|
]),
|
|
14771
|
-
l("div",
|
|
14772
|
-
l("span",
|
|
14778
|
+
l("div", sb, [
|
|
14779
|
+
l("span", rb, w(ae.file.name), 1),
|
|
14773
14780
|
p[3] || (p[3] = l("span", { class: "text-xs text-gray-500" }, "Uploading...", -1))
|
|
14774
14781
|
])
|
|
14775
14782
|
]),
|
|
@@ -14792,28 +14799,28 @@ const dc = {
|
|
|
14792
14799
|
d: "M6 18L18 6M6 6l12 12"
|
|
14793
14800
|
})
|
|
14794
14801
|
], -1)
|
|
14795
|
-
])], 8,
|
|
14802
|
+
])], 8, lb)
|
|
14796
14803
|
]))), 128))
|
|
14797
14804
|
])) : v("", !0),
|
|
14798
|
-
o.value[f.name]?.length > 0 ? (s(), i("div",
|
|
14799
|
-
(s(!0), i(
|
|
14805
|
+
o.value[f.name]?.length > 0 ? (s(), i("div", ob, [
|
|
14806
|
+
(s(!0), i(Y, null, X(o.value[f.name], (ae, xe) => (s(), i("div", {
|
|
14800
14807
|
key: `uploaded-${xe}`,
|
|
14801
14808
|
class: "flex items-center justify-between p-3 bg-white border border-gray-200 rounded-lg hover:shadow-sm transition-shadow"
|
|
14802
14809
|
}, [
|
|
14803
|
-
l("div",
|
|
14810
|
+
l("div", ib, [
|
|
14804
14811
|
l("div", {
|
|
14805
14812
|
class: m([
|
|
14806
14813
|
"rounded-lg p-2 shrink-0",
|
|
14807
14814
|
b(ae)
|
|
14808
14815
|
])
|
|
14809
14816
|
}, [
|
|
14810
|
-
(s(), i("svg",
|
|
14811
|
-
|
|
14817
|
+
(s(), i("svg", ub, [
|
|
14818
|
+
H(ae) === "image" ? (s(), i("path", db)) : (s(), i("path", cb))
|
|
14812
14819
|
]))
|
|
14813
14820
|
], 2),
|
|
14814
|
-
l("div",
|
|
14815
|
-
l("span",
|
|
14816
|
-
l("span",
|
|
14821
|
+
l("div", fb, [
|
|
14822
|
+
l("span", mb, w(ae.name), 1),
|
|
14823
|
+
l("span", gb, w(E(ae.size)), 1)
|
|
14817
14824
|
])
|
|
14818
14825
|
]),
|
|
14819
14826
|
l("button", {
|
|
@@ -14836,12 +14843,12 @@ const dc = {
|
|
|
14836
14843
|
d: "M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
|
|
14837
14844
|
})
|
|
14838
14845
|
], -1)
|
|
14839
|
-
])], 8,
|
|
14846
|
+
])], 8, vb)
|
|
14840
14847
|
]))), 128))
|
|
14841
14848
|
])) : v("", !0),
|
|
14842
|
-
o.value[f.name]?.length > 0 ? (s(), i("p",
|
|
14849
|
+
o.value[f.name]?.length > 0 ? (s(), i("p", hb, [
|
|
14843
14850
|
oe(w(o.value[f.name].length) + " file(s) uploaded ", 1),
|
|
14844
|
-
f.maxFiles ? (s(), i("span",
|
|
14851
|
+
f.maxFiles ? (s(), i("span", bb, " of " + w(f.maxFiles) + " max", 1)) : v("", !0)
|
|
14845
14852
|
])) : v("", !0)
|
|
14846
14853
|
])) : f.type === "slider" ? (s(), W(Ha, {
|
|
14847
14854
|
key: 9,
|
|
@@ -14851,8 +14858,8 @@ const dc = {
|
|
|
14851
14858
|
step: f.step,
|
|
14852
14859
|
disabled: r.value || f.disabled,
|
|
14853
14860
|
"onUpdate:modelValue": (ae) => S(f, ae)
|
|
14854
|
-
}, null, 8, ["model-value", "min", "max", "step", "disabled", "onUpdate:modelValue"])) : f.type === "range" ? (s(), i("div",
|
|
14855
|
-
l("div",
|
|
14861
|
+
}, null, 8, ["model-value", "min", "max", "step", "disabled", "onUpdate:modelValue"])) : f.type === "range" ? (s(), i("div", pb, [
|
|
14862
|
+
l("div", yb, [
|
|
14856
14863
|
P(Ae, {
|
|
14857
14864
|
id: K,
|
|
14858
14865
|
modelValue: o.value[f.name],
|
|
@@ -14865,7 +14872,7 @@ const dc = {
|
|
|
14865
14872
|
class: "flex-1",
|
|
14866
14873
|
"aria-describedby": ce
|
|
14867
14874
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "min", "max", "step", "disabled", "aria-describedby"]),
|
|
14868
|
-
l("span",
|
|
14875
|
+
l("span", xb, w(o.value[f.name]), 1)
|
|
14869
14876
|
])
|
|
14870
14877
|
])) : f.type === "date" ? (s(), W(Xt, {
|
|
14871
14878
|
key: 11,
|
|
@@ -14923,7 +14930,7 @@ const dc = {
|
|
|
14923
14930
|
_: 2
|
|
14924
14931
|
}, 1032, ["id", "label", "required", "error", "error-message"]))
|
|
14925
14932
|
]))), 128)),
|
|
14926
|
-
l("div",
|
|
14933
|
+
l("div", wb, [
|
|
14927
14934
|
e.showReset ? (s(), W(Se, {
|
|
14928
14935
|
key: 0,
|
|
14929
14936
|
type: "button",
|
|
@@ -14963,49 +14970,49 @@ const dc = {
|
|
|
14963
14970
|
], 32)
|
|
14964
14971
|
]));
|
|
14965
14972
|
}
|
|
14966
|
-
},
|
|
14973
|
+
}, $b = {
|
|
14967
14974
|
key: 0,
|
|
14968
14975
|
class: "flex items-center justify-between p-4 border-b border-gray-200 shrink-0 lg:hidden"
|
|
14969
|
-
},
|
|
14976
|
+
}, Cb = { class: "text-lg font-bold text-gray-900" }, Sb = { class: "flex-1 overflow-y-auto overflow-x-hidden p-4" }, zb = { class: "space-y-2" }, Ab = { key: 0 }, Db = {
|
|
14970
14977
|
key: 0,
|
|
14971
14978
|
class: "absolute top-2 right-2 inline-flex items-center justify-center w-5 h-5 text-xs font-bold rounded-full bg-red-500 text-white"
|
|
14972
|
-
},
|
|
14979
|
+
}, Mb = ["onClick"], Vb = {
|
|
14973
14980
|
key: 0,
|
|
14974
14981
|
class: "absolute top-2 right-2 inline-flex items-center justify-center w-5 h-5 text-xs font-bold rounded-full bg-red-500 text-white"
|
|
14975
|
-
},
|
|
14982
|
+
}, Fb = {
|
|
14976
14983
|
key: 1,
|
|
14977
14984
|
class: "absolute top-1.5 right-1.5 w-2 h-2 bg-blue-500 rounded-full"
|
|
14978
|
-
},
|
|
14985
|
+
}, Tb = {
|
|
14979
14986
|
key: 1,
|
|
14980
14987
|
class: "border-t border-gray-200 p-4 shrink-0"
|
|
14981
|
-
},
|
|
14988
|
+
}, Bb = {
|
|
14982
14989
|
key: 0,
|
|
14983
14990
|
class: "absolute top-1.5 right-1.5 w-2 h-2 bg-blue-500 rounded-full"
|
|
14984
|
-
},
|
|
14991
|
+
}, jb = { class: "sticky top-0 bg-white border-b border-gray-200 z-10" }, Pb = { class: "flex items-center justify-between p-4" }, Ob = { class: "flex-1 text-sm font-bold text-gray-900 ml-2" }, _b = {
|
|
14985
14992
|
key: 0,
|
|
14986
14993
|
class: "px-4 pb-3"
|
|
14987
|
-
},
|
|
14994
|
+
}, Lb = { class: "relative" }, Eb = ["placeholder"], Ib = { class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400" }, Nb = {
|
|
14988
14995
|
key: 0,
|
|
14989
14996
|
class: "mt-2 text-xs text-gray-500 px-1"
|
|
14990
|
-
},
|
|
14997
|
+
}, Rb = { class: "p-3" }, Ub = {
|
|
14991
14998
|
key: 0,
|
|
14992
14999
|
class: "px-3 py-8 text-center"
|
|
14993
|
-
},
|
|
15000
|
+
}, qb = {
|
|
14994
15001
|
key: 1,
|
|
14995
15002
|
class: "space-y-1"
|
|
14996
|
-
},
|
|
15003
|
+
}, Yb = {
|
|
14997
15004
|
key: 0,
|
|
14998
15005
|
class: "absolute left-0 top-1/2 transform -translate-y-1/2 w-1 h-8 bg-linear-to-b from-blue-500 to-blue-600 rounded-r-full"
|
|
14999
|
-
},
|
|
15006
|
+
}, Hb = {
|
|
15000
15007
|
key: 1,
|
|
15001
15008
|
class: "ml-2 inline-flex items-center justify-center px-2 py-0.5 text-xs font-bold rounded-full bg-red-500 text-white"
|
|
15002
|
-
},
|
|
15009
|
+
}, Wb = { class: "p-3" }, Gb = { class: "space-y-1" }, Kb = {
|
|
15003
15010
|
key: 0,
|
|
15004
15011
|
class: "px-3 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider"
|
|
15005
|
-
},
|
|
15012
|
+
}, Xb = {
|
|
15006
15013
|
key: 0,
|
|
15007
15014
|
class: "absolute left-0 top-1/2 transform -translate-y-1/2 w-1 h-8 bg-linear-to-b from-blue-500 to-blue-600 rounded-r-full"
|
|
15008
|
-
},
|
|
15015
|
+
}, Jb = {
|
|
15009
15016
|
__name: "Sidebar",
|
|
15010
15017
|
props: {
|
|
15011
15018
|
sidebarWidth: {
|
|
@@ -15111,7 +15118,7 @@ const dc = {
|
|
|
15111
15118
|
S(B);
|
|
15112
15119
|
}, E = (B) => {
|
|
15113
15120
|
x.value = B, r("search", { query: B, menu: d.value?.name });
|
|
15114
|
-
},
|
|
15121
|
+
}, H = () => {
|
|
15115
15122
|
x.value = "";
|
|
15116
15123
|
}, b = (B) => {
|
|
15117
15124
|
const g = n.currentPath;
|
|
@@ -15162,8 +15169,8 @@ const dc = {
|
|
|
15162
15169
|
)),
|
|
15163
15170
|
style: be({ width: e.sidebarWidth + "px", top: o.value ? "0px" : "4rem" })
|
|
15164
15171
|
}, [
|
|
15165
|
-
o.value ? (s(), i("div",
|
|
15166
|
-
l("h2",
|
|
15172
|
+
o.value ? (s(), i("div", $b, [
|
|
15173
|
+
l("h2", Cb, w(e.header?.title), 1),
|
|
15167
15174
|
l("button", {
|
|
15168
15175
|
class: "p-2 rounded-lg text-gray-500 hover:text-gray-900 hover:bg-gray-100 transition-colors",
|
|
15169
15176
|
"aria-label": "Close sidebar",
|
|
@@ -15184,12 +15191,12 @@ const dc = {
|
|
|
15184
15191
|
], -1)
|
|
15185
15192
|
])])
|
|
15186
15193
|
])) : v("", !0),
|
|
15187
|
-
l("nav",
|
|
15188
|
-
l("div",
|
|
15189
|
-
(s(!0), i(
|
|
15194
|
+
l("nav", Sb, [
|
|
15195
|
+
l("div", zb, [
|
|
15196
|
+
(s(!0), i(Y, null, X(e.navigationItems, (f) => (s(), i(Y, {
|
|
15190
15197
|
key: f.name || f.label
|
|
15191
15198
|
}, [
|
|
15192
|
-
f.type === "link" ? (s(), i("div",
|
|
15199
|
+
f.type === "link" ? (s(), i("div", Ab, [
|
|
15193
15200
|
z(f) ? (s(), i("div", {
|
|
15194
15201
|
key: 1,
|
|
15195
15202
|
class: m(Z(O)(
|
|
@@ -15216,9 +15223,9 @@ const dc = {
|
|
|
15216
15223
|
b(f) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
|
|
15217
15224
|
))
|
|
15218
15225
|
}, w(f.label), 3),
|
|
15219
|
-
f.badge ? (s(), i("span",
|
|
15220
|
-
b(f) && z(f) ? (s(), i("div",
|
|
15221
|
-
], 10,
|
|
15226
|
+
f.badge ? (s(), i("span", Vb, w(f.badge), 1)) : v("", !0),
|
|
15227
|
+
b(f) && z(f) ? (s(), i("div", Fb)) : v("", !0)
|
|
15228
|
+
], 10, Mb)) : (s(), W(p, {
|
|
15222
15229
|
key: 0,
|
|
15223
15230
|
to: f.route,
|
|
15224
15231
|
class: m(Z(O)(
|
|
@@ -15246,7 +15253,7 @@ const dc = {
|
|
|
15246
15253
|
b(f) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
|
|
15247
15254
|
))
|
|
15248
15255
|
}, w(f.label), 3),
|
|
15249
|
-
f.badge ? (s(), i("span",
|
|
15256
|
+
f.badge ? (s(), i("span", Db, w(f.badge), 1)) : v("", !0)
|
|
15250
15257
|
]),
|
|
15251
15258
|
_: 2
|
|
15252
15259
|
}, 1032, ["to", "class", "onClick"]))
|
|
@@ -15254,7 +15261,7 @@ const dc = {
|
|
|
15254
15261
|
], 64))), 128))
|
|
15255
15262
|
])
|
|
15256
15263
|
]),
|
|
15257
|
-
e.showManagementSettings ? (s(), i("div",
|
|
15264
|
+
e.showManagementSettings ? (s(), i("div", Tb, [
|
|
15258
15265
|
l("div", {
|
|
15259
15266
|
class: m(Z(O)(
|
|
15260
15267
|
"flex flex-col items-center justify-center rounded-xl transition-all duration-200 cursor-pointer group relative py-4 px-3",
|
|
@@ -15280,7 +15287,7 @@ const dc = {
|
|
|
15280
15287
|
e.isManagementSettingsActive ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
|
|
15281
15288
|
))
|
|
15282
15289
|
}, " Settings ", 2),
|
|
15283
|
-
e.isManagementSettingsActive ? (s(), i("div",
|
|
15290
|
+
e.isManagementSettingsActive ? (s(), i("div", Bb)) : v("", !0)
|
|
15284
15291
|
], 2)
|
|
15285
15292
|
])) : v("", !0)
|
|
15286
15293
|
], 6),
|
|
@@ -15303,8 +15310,8 @@ const dc = {
|
|
|
15303
15310
|
),
|
|
15304
15311
|
style: be(A.value)
|
|
15305
15312
|
}, [
|
|
15306
|
-
l("div",
|
|
15307
|
-
l("div",
|
|
15313
|
+
l("div", jb, [
|
|
15314
|
+
l("div", Pb, [
|
|
15308
15315
|
l("button", {
|
|
15309
15316
|
class: "p-2 -ml-2 rounded-lg text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors",
|
|
15310
15317
|
"aria-label": "Close submenu",
|
|
@@ -15324,20 +15331,20 @@ const dc = {
|
|
|
15324
15331
|
})
|
|
15325
15332
|
], -1)
|
|
15326
15333
|
])]),
|
|
15327
|
-
l("h3",
|
|
15334
|
+
l("h3", Ob, w(d.value?.label), 1)
|
|
15328
15335
|
]),
|
|
15329
|
-
T.value ? (s(), i("div",
|
|
15330
|
-
l("div",
|
|
15336
|
+
T.value ? (s(), i("div", _b, [
|
|
15337
|
+
l("div", Lb, [
|
|
15331
15338
|
Ge(l("input", {
|
|
15332
15339
|
"onUpdate:modelValue": g[0] || (g[0] = (f) => x.value = f),
|
|
15333
15340
|
type: "text",
|
|
15334
15341
|
placeholder: e.searchPlaceholder,
|
|
15335
15342
|
class: "w-full px-3 py-2 pl-9 pr-9 text-sm border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all",
|
|
15336
15343
|
onInput: g[1] || (g[1] = (f) => E(x.value))
|
|
15337
|
-
}, null, 40,
|
|
15344
|
+
}, null, 40, Eb), [
|
|
15338
15345
|
[rt, x.value]
|
|
15339
15346
|
]),
|
|
15340
|
-
l("div",
|
|
15347
|
+
l("div", Ib, [
|
|
15341
15348
|
P(Q, {
|
|
15342
15349
|
icon: "search",
|
|
15343
15350
|
class: "w-4 h-4"
|
|
@@ -15346,7 +15353,7 @@ const dc = {
|
|
|
15346
15353
|
x.value ? (s(), i("button", {
|
|
15347
15354
|
key: 0,
|
|
15348
15355
|
class: "absolute right-2 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 transition-colors p-1",
|
|
15349
|
-
onClick:
|
|
15356
|
+
onClick: H
|
|
15350
15357
|
}, [
|
|
15351
15358
|
P(Q, {
|
|
15352
15359
|
icon: "times",
|
|
@@ -15354,19 +15361,19 @@ const dc = {
|
|
|
15354
15361
|
})
|
|
15355
15362
|
])) : v("", !0)
|
|
15356
15363
|
]),
|
|
15357
|
-
x.value ? (s(), i("div",
|
|
15364
|
+
x.value ? (s(), i("div", Nb, w(j.value.length) + " result" + w(j.value.length !== 1 ? "s" : "") + " found ", 1)) : v("", !0)
|
|
15358
15365
|
])) : v("", !0)
|
|
15359
15366
|
]),
|
|
15360
|
-
l("nav",
|
|
15361
|
-
T.value && x.value && j.value.length === 0 ? (s(), i("div",
|
|
15367
|
+
l("nav", Rb, [
|
|
15368
|
+
T.value && x.value && j.value.length === 0 ? (s(), i("div", Ub, [
|
|
15362
15369
|
P(Q, {
|
|
15363
15370
|
icon: "search",
|
|
15364
15371
|
class: "w-12 h-12 mx-auto text-gray-300 mb-3"
|
|
15365
15372
|
}),
|
|
15366
15373
|
g[4] || (g[4] = l("p", { class: "text-sm text-gray-500 mb-1" }, " No results found ", -1)),
|
|
15367
15374
|
g[5] || (g[5] = l("p", { class: "text-xs text-gray-400" }, " Try a different search term ", -1))
|
|
15368
|
-
])) : (s(), i("div",
|
|
15369
|
-
(s(!0), i(
|
|
15375
|
+
])) : (s(), i("div", qb, [
|
|
15376
|
+
(s(!0), i(Y, null, X(j.value, (f) => (s(), W(p, {
|
|
15370
15377
|
key: f.name,
|
|
15371
15378
|
to: f.route,
|
|
15372
15379
|
class: m(
|
|
@@ -15378,7 +15385,7 @@ const dc = {
|
|
|
15378
15385
|
onClick: (K) => re(f)
|
|
15379
15386
|
}, {
|
|
15380
15387
|
default: J(() => [
|
|
15381
|
-
b(f) ? (s(), i("div",
|
|
15388
|
+
b(f) ? (s(), i("div", Yb)) : v("", !0),
|
|
15382
15389
|
l("div", {
|
|
15383
15390
|
class: m(
|
|
15384
15391
|
Z(O)(
|
|
@@ -15399,7 +15406,7 @@ const dc = {
|
|
|
15399
15406
|
b(f) ? "text-blue-700" : "text-gray-700"
|
|
15400
15407
|
))
|
|
15401
15408
|
}, w(f.label), 3),
|
|
15402
|
-
f.badge ? (s(), i("span",
|
|
15409
|
+
f.badge ? (s(), i("span", Hb, w(f.badge), 1)) : v("", !0)
|
|
15403
15410
|
]),
|
|
15404
15411
|
_: 2
|
|
15405
15412
|
}, 1032, ["to", "class", "onClick"]))), 128))
|
|
@@ -15452,12 +15459,12 @@ const dc = {
|
|
|
15452
15459
|
g[7] || (g[7] = l("h3", { class: "flex-1 text-sm font-bold text-gray-900 ml-2" }, " Management Settings ", -1))
|
|
15453
15460
|
])
|
|
15454
15461
|
]),
|
|
15455
|
-
l("nav",
|
|
15456
|
-
l("div",
|
|
15457
|
-
(s(!0), i(
|
|
15462
|
+
l("nav", Wb, [
|
|
15463
|
+
l("div", Gb, [
|
|
15464
|
+
(s(!0), i(Y, null, X(e.managementSettings, (f) => (s(), i(Y, {
|
|
15458
15465
|
key: f.name
|
|
15459
15466
|
}, [
|
|
15460
|
-
f.type === "section" ? (s(), i("div",
|
|
15467
|
+
f.type === "section" ? (s(), i("div", Kb, w(f.label), 1)) : f.route ? (s(), W(p, {
|
|
15461
15468
|
key: 1,
|
|
15462
15469
|
to: f.route,
|
|
15463
15470
|
class: m(
|
|
@@ -15469,7 +15476,7 @@ const dc = {
|
|
|
15469
15476
|
onClick: (K) => ne(f)
|
|
15470
15477
|
}, {
|
|
15471
15478
|
default: J(() => [
|
|
15472
|
-
b(f) ? (s(), i("div",
|
|
15479
|
+
b(f) ? (s(), i("div", Xb)) : v("", !0),
|
|
15473
15480
|
l("div", {
|
|
15474
15481
|
class: m(
|
|
15475
15482
|
Z(O)(
|
|
@@ -15520,7 +15527,7 @@ const dc = {
|
|
|
15520
15527
|
]);
|
|
15521
15528
|
};
|
|
15522
15529
|
}
|
|
15523
|
-
},
|
|
15530
|
+
}, Qb = {
|
|
15524
15531
|
__name: "Timeline",
|
|
15525
15532
|
props: {
|
|
15526
15533
|
orientation: {
|
|
@@ -15539,13 +15546,13 @@ const dc = {
|
|
|
15539
15546
|
q(a.$slots, "default")
|
|
15540
15547
|
], 2));
|
|
15541
15548
|
}
|
|
15542
|
-
},
|
|
15549
|
+
}, Zb = {
|
|
15543
15550
|
key: 0,
|
|
15544
15551
|
class: "absolute left-3 top-0 w-0.5 h-full bg-slate-200"
|
|
15545
|
-
},
|
|
15552
|
+
}, ep = { class: "z-10 flex items-center justify-center w-6 h-6 rounded-full border-2 border-blue-500 bg-white text-blue-500" }, tp = { class: "text-slate-900 font-medium" }, ap = {
|
|
15546
15553
|
key: 0,
|
|
15547
15554
|
class: "text-slate-500 text-sm"
|
|
15548
|
-
},
|
|
15555
|
+
}, np = { class: "mt-2 text-slate-600 text-sm" }, sp = {
|
|
15549
15556
|
__name: "TimelineItem",
|
|
15550
15557
|
props: {
|
|
15551
15558
|
title: {
|
|
@@ -15569,8 +15576,8 @@ const dc = {
|
|
|
15569
15576
|
e.orientation === "vertical" ? "items-start mb-8 last:mb-0" : "flex-col items-center mx-8 last:mx-0"
|
|
15570
15577
|
])
|
|
15571
15578
|
}, [
|
|
15572
|
-
e.orientation === "vertical" ? (s(), i("div",
|
|
15573
|
-
l("div",
|
|
15579
|
+
e.orientation === "vertical" ? (s(), i("div", Zb)) : v("", !0),
|
|
15580
|
+
l("div", ep, [
|
|
15574
15581
|
q(a.$slots, "icon", {}, () => [
|
|
15575
15582
|
t[0] || (t[0] = l("div", { class: "w-2 h-2 rounded-full bg-blue-500" }, null, -1))
|
|
15576
15583
|
])
|
|
@@ -15581,23 +15588,23 @@ const dc = {
|
|
|
15581
15588
|
e.orientation === "horizontal" ? "mt-2 text-center" : ""
|
|
15582
15589
|
])
|
|
15583
15590
|
}, [
|
|
15584
|
-
l("h3",
|
|
15591
|
+
l("h3", tp, [
|
|
15585
15592
|
q(a.$slots, "title", {}, () => [
|
|
15586
15593
|
oe(w(e.title), 1)
|
|
15587
15594
|
])
|
|
15588
15595
|
]),
|
|
15589
|
-
e.subtitle ? (s(), i("p",
|
|
15596
|
+
e.subtitle ? (s(), i("p", ap, [
|
|
15590
15597
|
q(a.$slots, "subtitle", {}, () => [
|
|
15591
15598
|
oe(w(e.subtitle), 1)
|
|
15592
15599
|
])
|
|
15593
15600
|
])) : v("", !0),
|
|
15594
|
-
l("div",
|
|
15601
|
+
l("div", np, [
|
|
15595
15602
|
q(a.$slots, "default")
|
|
15596
15603
|
])
|
|
15597
15604
|
], 2)
|
|
15598
15605
|
], 2));
|
|
15599
15606
|
}
|
|
15600
|
-
},
|
|
15607
|
+
}, rp = {
|
|
15601
15608
|
name: "AuthLayout",
|
|
15602
15609
|
props: {
|
|
15603
15610
|
title: {
|
|
@@ -15663,26 +15670,26 @@ const dc = {
|
|
|
15663
15670
|
currentYear: y(() => (/* @__PURE__ */ new Date()).getFullYear())
|
|
15664
15671
|
};
|
|
15665
15672
|
}
|
|
15666
|
-
},
|
|
15673
|
+
}, lp = { class: "container mx-auto px-4 py-10 lg:py-0 relative z-10 w-full" }, op = { class: "grid lg:grid-cols-10 gap-6 lg:gap-8 items-center min-h-screen" }, ip = { class: "hidden lg:block lg:col-span-6 text-white text-center lg:text-left space-y-6" }, up = { class: "mb-6 flex justify-center lg:justify-start" }, dp = ["src"], cp = {
|
|
15667
15674
|
key: 0,
|
|
15668
15675
|
class: "max-w-md mx-auto lg:mx-0"
|
|
15669
|
-
},
|
|
15676
|
+
}, fp = { class: "text-sm lg:text-base font-light text-white/70 italic leading-relaxed" }, mp = { class: "lg:col-span-4 w-full" }, gp = { class: "lg:hidden mb-6 flex justify-center" }, vp = ["src"], hp = { class: "bg-white rounded-lg shadow-xl p-4 sm:p-6 lg:p-8 max-w-md mx-auto w-full" }, bp = {
|
|
15670
15677
|
key: 0,
|
|
15671
15678
|
class: "mb-4 sm:mb-6"
|
|
15672
|
-
},
|
|
15679
|
+
}, pp = { class: "text-center" }, yp = { class: "text-xl sm:text-2xl font-bold text-gray-900" }, xp = {
|
|
15673
15680
|
key: 0,
|
|
15674
15681
|
class: "text-sm sm:text-base text-gray-600 mt-2"
|
|
15675
|
-
},
|
|
15682
|
+
}, wp = { class: "space-y-4 sm:space-y-6" }, kp = {
|
|
15676
15683
|
key: 1,
|
|
15677
15684
|
class: "mt-4 sm:mt-6"
|
|
15678
|
-
},
|
|
15685
|
+
}, $p = {
|
|
15679
15686
|
key: 0,
|
|
15680
15687
|
class: "mt-4 sm:mt-6 text-center"
|
|
15681
|
-
},
|
|
15688
|
+
}, Cp = {
|
|
15682
15689
|
key: 0,
|
|
15683
15690
|
class: "absolute bottom-2 right-2 sm:bottom-4 sm:right-4 text-right"
|
|
15684
|
-
},
|
|
15685
|
-
function
|
|
15691
|
+
}, Sp = ["src"], zp = { class: "text-white/90 text-[10px] sm:text-xs bg-black/30 sm:bg-transparent px-2 py-1 sm:p-0 rounded" }, Ap = { class: "font-medium" }, Dp = { class: "hidden sm:block" }, Mp = { class: "hidden sm:block" }, Vp = { class: "absolute bottom-2 left-2 sm:bottom-4 sm:left-4 flex gap-1.5 sm:gap-2" }, Fp = ["href"];
|
|
15692
|
+
function Tp(e, a, t, n, r, o) {
|
|
15686
15693
|
const u = Ce("router-view"), d = Ce("font-awesome-icon");
|
|
15687
15694
|
return s(), i("div", {
|
|
15688
15695
|
class: "min-h-screen relative flex items-center justify-center overflow-x-hidden",
|
|
@@ -15695,64 +15702,64 @@ function Fp(e, a, t, n, r, o) {
|
|
|
15695
15702
|
opacity: t.backgroundOpacity
|
|
15696
15703
|
})
|
|
15697
15704
|
}, null, 4),
|
|
15698
|
-
l("div",
|
|
15699
|
-
l("div",
|
|
15700
|
-
l("div",
|
|
15701
|
-
l("div",
|
|
15705
|
+
l("div", lp, [
|
|
15706
|
+
l("div", op, [
|
|
15707
|
+
l("div", ip, [
|
|
15708
|
+
l("div", up, [
|
|
15702
15709
|
l("img", {
|
|
15703
15710
|
src: t.logoUrl,
|
|
15704
15711
|
alt: "Company Logo",
|
|
15705
15712
|
class: "h-52 lg:h-72 w-auto object-contain"
|
|
15706
|
-
}, null, 8,
|
|
15713
|
+
}, null, 8, dp)
|
|
15707
15714
|
]),
|
|
15708
|
-
t.quote ? (s(), i("div",
|
|
15709
|
-
l("p",
|
|
15715
|
+
t.quote ? (s(), i("div", cp, [
|
|
15716
|
+
l("p", fp, ' "' + w(t.quote) + '" ', 1)
|
|
15710
15717
|
])) : v("", !0)
|
|
15711
15718
|
]),
|
|
15712
|
-
l("div",
|
|
15713
|
-
l("div",
|
|
15719
|
+
l("div", mp, [
|
|
15720
|
+
l("div", gp, [
|
|
15714
15721
|
l("img", {
|
|
15715
15722
|
src: t.logoUrl,
|
|
15716
15723
|
alt: "Company Logo",
|
|
15717
15724
|
class: "h-24 w-auto object-contain"
|
|
15718
|
-
}, null, 8,
|
|
15725
|
+
}, null, 8, vp)
|
|
15719
15726
|
]),
|
|
15720
|
-
l("div",
|
|
15721
|
-
e.$slots["card-header"] || t.title ? (s(), i("div",
|
|
15727
|
+
l("div", hp, [
|
|
15728
|
+
e.$slots["card-header"] || t.title ? (s(), i("div", bp, [
|
|
15722
15729
|
q(e.$slots, "card-header", {}, () => [
|
|
15723
|
-
l("div",
|
|
15724
|
-
l("h1",
|
|
15725
|
-
t.subtitle ? (s(), i("p",
|
|
15730
|
+
l("div", pp, [
|
|
15731
|
+
l("h1", yp, w(t.title), 1),
|
|
15732
|
+
t.subtitle ? (s(), i("p", xp, w(t.subtitle), 1)) : v("", !0)
|
|
15726
15733
|
])
|
|
15727
15734
|
])
|
|
15728
15735
|
])) : v("", !0),
|
|
15729
|
-
l("div",
|
|
15736
|
+
l("div", wp, [
|
|
15730
15737
|
P(u)
|
|
15731
15738
|
]),
|
|
15732
|
-
e.$slots["card-footer"] ? (s(), i("div",
|
|
15739
|
+
e.$slots["card-footer"] ? (s(), i("div", kp, [
|
|
15733
15740
|
q(e.$slots, "card-footer")
|
|
15734
15741
|
])) : v("", !0)
|
|
15735
15742
|
]),
|
|
15736
|
-
e.$slots.links ? (s(), i("div",
|
|
15743
|
+
e.$slots.links ? (s(), i("div", $p, [
|
|
15737
15744
|
q(e.$slots, "links")
|
|
15738
15745
|
])) : v("", !0)
|
|
15739
15746
|
])
|
|
15740
15747
|
])
|
|
15741
15748
|
]),
|
|
15742
|
-
t.showFooter ? (s(), i("div",
|
|
15749
|
+
t.showFooter ? (s(), i("div", Cp, [
|
|
15743
15750
|
l("img", {
|
|
15744
15751
|
src: t.logoUrl,
|
|
15745
15752
|
alt: "Company Logo",
|
|
15746
15753
|
class: "hidden sm:block h-20 sm:h-32 lg:h-40 w-auto object-contain ml-auto mb-2"
|
|
15747
|
-
}, null, 8,
|
|
15748
|
-
l("div",
|
|
15749
|
-
l("div",
|
|
15750
|
-
l("div",
|
|
15751
|
-
l("div",
|
|
15754
|
+
}, null, 8, Sp),
|
|
15755
|
+
l("div", zp, [
|
|
15756
|
+
l("div", Ap, w(t.appName), 1),
|
|
15757
|
+
l("div", Dp, "(" + w(t.appVersion) + ")", 1),
|
|
15758
|
+
l("div", Mp, w(t.copyright), 1)
|
|
15752
15759
|
])
|
|
15753
15760
|
])) : v("", !0),
|
|
15754
|
-
l("div",
|
|
15755
|
-
(s(!0), i(
|
|
15761
|
+
l("div", Vp, [
|
|
15762
|
+
(s(!0), i(Y, null, X(t.socialLinks, (c) => (s(), i("a", {
|
|
15756
15763
|
key: c.name,
|
|
15757
15764
|
href: c.url,
|
|
15758
15765
|
class: m([
|
|
@@ -15763,14 +15770,14 @@ function Fp(e, a, t, n, r, o) {
|
|
|
15763
15770
|
P(d, {
|
|
15764
15771
|
icon: ["fab", c.icon]
|
|
15765
15772
|
}, null, 8, ["icon"])
|
|
15766
|
-
], 10,
|
|
15773
|
+
], 10, Fp))), 128))
|
|
15767
15774
|
])
|
|
15768
15775
|
], 4);
|
|
15769
15776
|
}
|
|
15770
|
-
const
|
|
15777
|
+
const Bp = /* @__PURE__ */ Vt(rp, [["render", Tp]]), jp = { class: "min-h-screen bg-gray-50" }, Pp = { class: "flex-1" }, Op = {
|
|
15771
15778
|
key: 0,
|
|
15772
15779
|
class: "bg-white border-b border-gray-200"
|
|
15773
|
-
},
|
|
15780
|
+
}, _p = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4" }, Lp = { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8" }, Ep = {
|
|
15774
15781
|
__name: "DefaultLayout",
|
|
15775
15782
|
props: {
|
|
15776
15783
|
navigationItems: {
|
|
@@ -15794,7 +15801,7 @@ const Tp = /* @__PURE__ */ Vt(sp, [["render", Fp]]), Bp = { class: "min-h-screen
|
|
|
15794
15801
|
setup(e) {
|
|
15795
15802
|
return (a, t) => {
|
|
15796
15803
|
const n = Ce("Logo"), r = Ce("MainNavigation"), o = Ce("Button"), u = Ce("Header"), d = Ce("Breadcrumb"), c = Ce("Text"), x = Ce("Footer");
|
|
15797
|
-
return s(), i("div",
|
|
15804
|
+
return s(), i("div", jp, [
|
|
15798
15805
|
P(u, null, {
|
|
15799
15806
|
logo: J(() => [
|
|
15800
15807
|
q(a.$slots, "logo", {}, () => [
|
|
@@ -15827,15 +15834,15 @@ const Tp = /* @__PURE__ */ Vt(sp, [["render", Fp]]), Bp = { class: "min-h-screen
|
|
|
15827
15834
|
]),
|
|
15828
15835
|
_: 3
|
|
15829
15836
|
}),
|
|
15830
|
-
l("main",
|
|
15831
|
-
e.showBreadcrumb ? (s(), i("div",
|
|
15832
|
-
l("div",
|
|
15837
|
+
l("main", Pp, [
|
|
15838
|
+
e.showBreadcrumb ? (s(), i("div", Op, [
|
|
15839
|
+
l("div", _p, [
|
|
15833
15840
|
q(a.$slots, "breadcrumb", {}, () => [
|
|
15834
15841
|
P(d, { items: e.breadcrumbItems }, null, 8, ["items"])
|
|
15835
15842
|
])
|
|
15836
15843
|
])
|
|
15837
15844
|
])) : v("", !0),
|
|
15838
|
-
l("div",
|
|
15845
|
+
l("div", Lp, [
|
|
15839
15846
|
q(a.$slots, "default")
|
|
15840
15847
|
])
|
|
15841
15848
|
]),
|
|
@@ -15856,7 +15863,7 @@ const Tp = /* @__PURE__ */ Vt(sp, [["render", Fp]]), Bp = { class: "min-h-screen
|
|
|
15856
15863
|
]);
|
|
15857
15864
|
};
|
|
15858
15865
|
}
|
|
15859
|
-
},
|
|
15866
|
+
}, Ip = {
|
|
15860
15867
|
name: "ErrorLayout",
|
|
15861
15868
|
props: {
|
|
15862
15869
|
errorType: {
|
|
@@ -16075,7 +16082,7 @@ const Tp = /* @__PURE__ */ Vt(sp, [["render", Fp]]), Bp = { class: "min-h-screen
|
|
|
16075
16082
|
"w-32 h-32 flex items-center justify-center"
|
|
16076
16083
|
]), E = y(() => [
|
|
16077
16084
|
"space-y-4"
|
|
16078
|
-
]),
|
|
16085
|
+
]), H = y(() => [
|
|
16079
16086
|
"text-6xl font-bold text-slate-300 mb-4"
|
|
16080
16087
|
]), b = y(() => [
|
|
16081
16088
|
"text-3xl font-bold text-slate-900"
|
|
@@ -16114,7 +16121,7 @@ const Tp = /* @__PURE__ */ Vt(sp, [["render", Fp]]), Bp = { class: "min-h-screen
|
|
|
16114
16121
|
illustrationClasses: re,
|
|
16115
16122
|
iconContainerClasses: ne,
|
|
16116
16123
|
detailsClasses: E,
|
|
16117
|
-
codeClasses:
|
|
16124
|
+
codeClasses: H,
|
|
16118
16125
|
titleClasses: b,
|
|
16119
16126
|
messageClasses: $,
|
|
16120
16127
|
actionsClasses: h,
|
|
@@ -16122,20 +16129,20 @@ const Tp = /* @__PURE__ */ Vt(sp, [["render", Fp]]), Bp = { class: "min-h-screen
|
|
|
16122
16129
|
helpClasses: g
|
|
16123
16130
|
};
|
|
16124
16131
|
}
|
|
16125
|
-
},
|
|
16132
|
+
}, Np = { class: "flex justify-center" }, Rp = { class: "flex items-center gap-3" }, Up = { class: "text-2xl font-bold text-slate-900" }, qp = {
|
|
16126
16133
|
key: 1,
|
|
16127
16134
|
class: "bg-red-100 border border-red-200 rounded-lg p-4 mx-auto max-w-md mb-6"
|
|
16128
|
-
},
|
|
16135
|
+
}, Yp = { class: "flex flex-col sm:flex-row gap-4 justify-center" }, Hp = ["disabled"], Wp = {
|
|
16129
16136
|
key: 0,
|
|
16130
16137
|
class: "animate-spin"
|
|
16131
|
-
},
|
|
16138
|
+
}, Gp = { key: 1 }, Kp = ["disabled"], Xp = { key: 0 }, Jp = { key: 1 }, Qp = {
|
|
16132
16139
|
key: 0,
|
|
16133
16140
|
class: "mt-8 max-w-md mx-auto"
|
|
16134
|
-
},
|
|
16141
|
+
}, Zp = { class: "bg-white rounded-lg border border-slate-200 shadow-sm p-6" }, ey = { class: "text-lg font-semibold text-slate-900 mb-4" }, ty = { class: "space-y-3" }, ay = { class: "text-sm text-slate-600" }, ny = ["href"], sy = {
|
|
16135
16142
|
key: 5,
|
|
16136
16143
|
class: "text-xs text-slate-400 font-mono mt-4"
|
|
16137
16144
|
};
|
|
16138
|
-
function
|
|
16145
|
+
function ry(e, a, t, n, r, o) {
|
|
16139
16146
|
return s(), i("div", {
|
|
16140
16147
|
class: m(n.layoutClasses)
|
|
16141
16148
|
}, [
|
|
@@ -16155,13 +16162,13 @@ function sy(e, a, t, n, r, o) {
|
|
|
16155
16162
|
class: m(n.headerClasses)
|
|
16156
16163
|
}, [
|
|
16157
16164
|
q(e.$slots, "header", {}, () => [
|
|
16158
|
-
l("div",
|
|
16165
|
+
l("div", Np, [
|
|
16159
16166
|
q(e.$slots, "logo", {}, () => [
|
|
16160
|
-
l("div",
|
|
16167
|
+
l("div", Rp, [
|
|
16161
16168
|
a[5] || (a[5] = l("div", { class: "w-10 h-10 bg-blue-600 rounded-xl flex items-center justify-center" }, [
|
|
16162
16169
|
l("span", { class: "text-white font-bold text-lg" }, "STL")
|
|
16163
16170
|
], -1)),
|
|
16164
|
-
l("span",
|
|
16171
|
+
l("span", Up, w(t.brandName), 1)
|
|
16165
16172
|
])
|
|
16166
16173
|
])
|
|
16167
16174
|
])
|
|
@@ -16207,7 +16214,7 @@ function sy(e, a, t, n, r, o) {
|
|
|
16207
16214
|
])
|
|
16208
16215
|
], 2)
|
|
16209
16216
|
], 2),
|
|
16210
|
-
n.isOnline ? v("", !0) : (s(), i("div",
|
|
16217
|
+
n.isOnline ? v("", !0) : (s(), i("div", qp, [...a[6] || (a[6] = [
|
|
16211
16218
|
l("div", { class: "flex items-center justify-center gap-2 text-red-700" }, [
|
|
16212
16219
|
l("span", { class: "w-3 h-3 bg-red-500 rounded-full animate-pulse" }),
|
|
16213
16220
|
l("span", { class: "font-medium" }, "No Internet Connection")
|
|
@@ -16218,7 +16225,7 @@ function sy(e, a, t, n, r, o) {
|
|
|
16218
16225
|
class: m(n.actionsClasses)
|
|
16219
16226
|
}, [
|
|
16220
16227
|
q(e.$slots, "actions", {}, () => [
|
|
16221
|
-
l("div",
|
|
16228
|
+
l("div", Yp, [
|
|
16222
16229
|
t.showHomeButton ? (s(), i("button", {
|
|
16223
16230
|
key: 0,
|
|
16224
16231
|
class: "bg-blue-600 text-white px-6 py-3 rounded-lg font-medium hover:bg-blue-700 transition-colors flex items-center justify-center gap-2",
|
|
@@ -16241,18 +16248,18 @@ function sy(e, a, t, n, r, o) {
|
|
|
16241
16248
|
class: "border border-slate-300 text-slate-700 px-6 py-3 rounded-lg font-medium hover:bg-slate-50 transition-colors flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
16242
16249
|
onClick: a[2] || (a[2] = (...u) => n.retry && n.retry(...u))
|
|
16243
16250
|
}, [
|
|
16244
|
-
n.isRetrying ? (s(), i("span",
|
|
16251
|
+
n.isRetrying ? (s(), i("span", Wp, "↻")) : (s(), i("span", Gp, "🔄")),
|
|
16245
16252
|
oe(" " + w(n.isRetrying ? "Retrying..." : t.retryButtonText), 1)
|
|
16246
|
-
], 8,
|
|
16253
|
+
], 8, Hp)) : v("", !0),
|
|
16247
16254
|
t.showSupportButton ? (s(), i("button", {
|
|
16248
16255
|
key: 3,
|
|
16249
16256
|
disabled: n.reportSent,
|
|
16250
16257
|
class: "bg-slate-600 text-white px-6 py-3 rounded-lg font-medium hover:bg-slate-700 transition-colors flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
16251
16258
|
onClick: a[3] || (a[3] = (u) => e.$emit("contact-support"))
|
|
16252
16259
|
}, [
|
|
16253
|
-
n.reportSent ? (s(), i("span",
|
|
16260
|
+
n.reportSent ? (s(), i("span", Xp, "✓")) : (s(), i("span", Jp, "📝")),
|
|
16254
16261
|
oe(" " + w(n.reportSent ? "Report Sent" : "Contact Support"), 1)
|
|
16255
|
-
], 8,
|
|
16262
|
+
], 8, Kp)) : v("", !0)
|
|
16256
16263
|
])
|
|
16257
16264
|
])
|
|
16258
16265
|
], 2)) : v("", !0),
|
|
@@ -16261,11 +16268,11 @@ function sy(e, a, t, n, r, o) {
|
|
|
16261
16268
|
class: m(n.additionalInfoClasses)
|
|
16262
16269
|
}, [
|
|
16263
16270
|
q(e.$slots, "additional-info", {}, () => [
|
|
16264
|
-
n.additionalInfoConfig ? (s(), i("div",
|
|
16265
|
-
l("div",
|
|
16266
|
-
l("h3",
|
|
16267
|
-
l("ul",
|
|
16268
|
-
(s(!0), i(
|
|
16271
|
+
n.additionalInfoConfig ? (s(), i("div", Qp, [
|
|
16272
|
+
l("div", Zp, [
|
|
16273
|
+
l("h3", ey, w(n.additionalInfoConfig.title), 1),
|
|
16274
|
+
l("ul", ty, [
|
|
16275
|
+
(s(!0), i(Y, null, X(n.additionalInfoConfig.items, (u, d) => (s(), i("li", {
|
|
16269
16276
|
key: d,
|
|
16270
16277
|
class: "flex items-start gap-3 text-sm text-slate-600"
|
|
16271
16278
|
}, [
|
|
@@ -16284,7 +16291,7 @@ function sy(e, a, t, n, r, o) {
|
|
|
16284
16291
|
class: m(n.helpClasses)
|
|
16285
16292
|
}, [
|
|
16286
16293
|
q(e.$slots, "help", {}, () => [
|
|
16287
|
-
l("p",
|
|
16294
|
+
l("p", ay, [
|
|
16288
16295
|
oe(w(t.helpText) + " ", 1),
|
|
16289
16296
|
t.supportUrl ? (s(), i("a", {
|
|
16290
16297
|
key: 0,
|
|
@@ -16293,19 +16300,19 @@ function sy(e, a, t, n, r, o) {
|
|
|
16293
16300
|
}, [...a[8] || (a[8] = [
|
|
16294
16301
|
l("span", { class: "inline-block w-4 h-4 mr-1" }, "❓", -1),
|
|
16295
16302
|
oe(" Get Help ", -1)
|
|
16296
|
-
])], 8,
|
|
16303
|
+
])], 8, ny)) : v("", !0)
|
|
16297
16304
|
])
|
|
16298
16305
|
])
|
|
16299
16306
|
], 2)) : v("", !0),
|
|
16300
|
-
n.isDev ? (s(), i("div",
|
|
16307
|
+
n.isDev ? (s(), i("div", sy, " Error ID: " + w(n.errorId), 1)) : v("", !0)
|
|
16301
16308
|
], 2)
|
|
16302
16309
|
], 2)
|
|
16303
16310
|
], 2);
|
|
16304
16311
|
}
|
|
16305
|
-
const
|
|
16312
|
+
const ly = /* @__PURE__ */ Vt(Ip, [["render", ry]]), oy = { class: "w-full h-full relative" }, iy = {
|
|
16306
16313
|
key: 0,
|
|
16307
16314
|
class: "w-full h-full flex items-center justify-center"
|
|
16308
|
-
},
|
|
16315
|
+
}, uy = ["width", "height", "viewBox"], dy = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], cy = ["cx", "cy", "r", "fill"], fy = { key: 1 }, my = ["x", "y"], gy = ["x", "y"], vy = { key: 2 }, hy = ["x", "y"], by = { key: 3 }, py = ["transform"], yy = ["fill"], xy = { class: "bg-slate-900 text-white px-4 py-3 rounded-lg shadow-2xl border border-slate-700 min-w-[180px]" }, wy = { class: "flex items-center gap-2 mb-1.5" }, ky = { class: "font-semibold text-sm" }, $y = { class: "flex items-baseline gap-2 ml-5" }, Cy = { class: "text-2xl font-bold" }, Sy = { class: "mt-1 ml-5" }, zy = { class: "text-xs text-slate-300" }, zn = {
|
|
16309
16316
|
__name: "PieChart",
|
|
16310
16317
|
props: {
|
|
16311
16318
|
data: {
|
|
@@ -16411,7 +16418,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16411
16418
|
const D = o.value;
|
|
16412
16419
|
let L = -Math.PI / 2;
|
|
16413
16420
|
return t.data.map((V, F) => {
|
|
16414
|
-
const R = V || 0, re = (R / D * 100).toFixed(1), ne = R / D * 2 * Math.PI, E = L + ne,
|
|
16421
|
+
const R = V || 0, re = (R / D * 100).toFixed(1), ne = R / D * 2 * Math.PI, E = L + ne, H = _(
|
|
16415
16422
|
d.value,
|
|
16416
16423
|
c.value,
|
|
16417
16424
|
x.value,
|
|
@@ -16421,7 +16428,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16421
16428
|
), b = t.doughnut ? (x.value + C.value) / 2 : x.value * 0.7, $ = L + ne / 2, h = d.value + Math.cos($) * b, B = c.value + Math.sin($) * b, g = {
|
|
16422
16429
|
value: R,
|
|
16423
16430
|
percentage: re,
|
|
16424
|
-
path:
|
|
16431
|
+
path: H,
|
|
16425
16432
|
labelX: h,
|
|
16426
16433
|
labelY: B,
|
|
16427
16434
|
label: t.labels[F] || `Item ${F + 1}`,
|
|
@@ -16431,12 +16438,12 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16431
16438
|
return L = E, g;
|
|
16432
16439
|
}).filter((V) => V.value > 0);
|
|
16433
16440
|
}), _ = (D, L, V, F, R, re) => {
|
|
16434
|
-
const ne = D + V * Math.cos(R), E = L + V * Math.sin(R),
|
|
16441
|
+
const ne = D + V * Math.cos(R), E = L + V * Math.sin(R), H = D + V * Math.cos(re), b = L + V * Math.sin(re), $ = re - R > Math.PI ? 1 : 0;
|
|
16435
16442
|
if (F === 0)
|
|
16436
|
-
return `M ${D} ${L} L ${ne} ${E} A ${V} ${V} 0 ${$} 1 ${
|
|
16443
|
+
return `M ${D} ${L} L ${ne} ${E} A ${V} ${V} 0 ${$} 1 ${H} ${b} Z`;
|
|
16437
16444
|
{
|
|
16438
16445
|
const h = D + F * Math.cos(re), B = L + F * Math.sin(re), g = D + F * Math.cos(R), p = L + F * Math.sin(R);
|
|
16439
|
-
return `M ${ne} ${E} A ${V} ${V} 0 ${$} 1 ${
|
|
16446
|
+
return `M ${ne} ${E} A ${V} ${V} 0 ${$} 1 ${H} ${b} L ${h} ${B} A ${F} ${F} 0 ${$} 0 ${g} ${p} Z`;
|
|
16440
16447
|
}
|
|
16441
16448
|
}, T = (D) => t.colors[D % t.colors.length], j = (D) => {
|
|
16442
16449
|
if (t.legendPosition === "right")
|
|
@@ -16473,7 +16480,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16473
16480
|
percentage: D.percentage
|
|
16474
16481
|
});
|
|
16475
16482
|
};
|
|
16476
|
-
return (D, L) => (s(), i("div",
|
|
16483
|
+
return (D, L) => (s(), i("div", oy, [
|
|
16477
16484
|
u.value ? (s(), i("svg", {
|
|
16478
16485
|
key: 1,
|
|
16479
16486
|
width: e.width,
|
|
@@ -16482,7 +16489,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16482
16489
|
class: "overflow-visible"
|
|
16483
16490
|
}, [
|
|
16484
16491
|
l("g", null, [
|
|
16485
|
-
(s(!0), i(
|
|
16492
|
+
(s(!0), i(Y, null, X(A.value, (V, F) => (s(), i("path", {
|
|
16486
16493
|
key: `slice-${F}`,
|
|
16487
16494
|
d: V.path,
|
|
16488
16495
|
fill: T(F),
|
|
@@ -16492,7 +16499,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16492
16499
|
onMouseenter: (R) => S(R, V, F),
|
|
16493
16500
|
onMouseleave: k,
|
|
16494
16501
|
onClick: (R) => z(V, F)
|
|
16495
|
-
}, null, 42,
|
|
16502
|
+
}, null, 42, dy))), 128))
|
|
16496
16503
|
]),
|
|
16497
16504
|
e.doughnut ? (s(), i("circle", {
|
|
16498
16505
|
key: 0,
|
|
@@ -16500,35 +16507,35 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16500
16507
|
cy: c.value,
|
|
16501
16508
|
r: C.value,
|
|
16502
16509
|
fill: e.centerFill
|
|
16503
|
-
}, null, 8,
|
|
16504
|
-
e.doughnut && e.showCenterText ? (s(), i("g",
|
|
16510
|
+
}, null, 8, cy)) : v("", !0),
|
|
16511
|
+
e.doughnut && e.showCenterText ? (s(), i("g", fy, [
|
|
16505
16512
|
l("text", {
|
|
16506
16513
|
x: d.value,
|
|
16507
16514
|
y: c.value - 5,
|
|
16508
16515
|
class: m(e.centerTextClasses),
|
|
16509
16516
|
"text-anchor": "middle",
|
|
16510
16517
|
"dominant-baseline": "middle"
|
|
16511
|
-
}, w(o.value), 11,
|
|
16518
|
+
}, w(o.value), 11, my),
|
|
16512
16519
|
l("text", {
|
|
16513
16520
|
x: d.value,
|
|
16514
16521
|
y: c.value + 15,
|
|
16515
16522
|
class: m(e.centerLabelClasses),
|
|
16516
16523
|
"text-anchor": "middle",
|
|
16517
16524
|
"dominant-baseline": "middle"
|
|
16518
|
-
}, " Total ", 10,
|
|
16525
|
+
}, " Total ", 10, gy)
|
|
16519
16526
|
])) : v("", !0),
|
|
16520
|
-
e.showValues ? (s(), i("g",
|
|
16521
|
-
(s(!0), i(
|
|
16527
|
+
e.showValues ? (s(), i("g", vy, [
|
|
16528
|
+
(s(!0), i(Y, null, X(A.value, (V, F) => (s(), i("text", {
|
|
16522
16529
|
key: `value-${F}`,
|
|
16523
16530
|
x: V.labelX,
|
|
16524
16531
|
y: V.labelY,
|
|
16525
16532
|
class: m(e.valueLabelClasses),
|
|
16526
16533
|
"text-anchor": "middle",
|
|
16527
16534
|
"dominant-baseline": "middle"
|
|
16528
|
-
}, w(e.showPercentages ? `${V.percentage}%` : V.value), 11,
|
|
16535
|
+
}, w(e.showPercentages ? `${V.percentage}%` : V.value), 11, hy))), 128))
|
|
16529
16536
|
])) : v("", !0),
|
|
16530
|
-
e.showLegend ? (s(), i("g",
|
|
16531
|
-
(s(!0), i(
|
|
16537
|
+
e.showLegend ? (s(), i("g", by, [
|
|
16538
|
+
(s(!0), i(Y, null, X(A.value, (V, F) => (s(), i("g", {
|
|
16532
16539
|
key: `legend-${F}`,
|
|
16533
16540
|
transform: `translate(${j(F)}, ${M(F)})`
|
|
16534
16541
|
}, [
|
|
@@ -16537,15 +16544,15 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16537
16544
|
height: 12,
|
|
16538
16545
|
fill: T(F),
|
|
16539
16546
|
rx: "2"
|
|
16540
|
-
}, null, 8,
|
|
16547
|
+
}, null, 8, yy),
|
|
16541
16548
|
l("text", {
|
|
16542
16549
|
x: 18,
|
|
16543
16550
|
y: 10,
|
|
16544
16551
|
class: m(e.legendTextClasses)
|
|
16545
16552
|
}, w(V.label), 3)
|
|
16546
|
-
], 8,
|
|
16553
|
+
], 8, py))), 128))
|
|
16547
16554
|
])) : v("", !0)
|
|
16548
|
-
], 8,
|
|
16555
|
+
], 8, uy)) : (s(), i("div", iy, [...L[0] || (L[0] = [
|
|
16549
16556
|
Qs('<div class="text-center"><div class="text-slate-300 mb-2"><svg class="w-16 h-16 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path></svg></div><p class="text-sm text-slate-500"> No data available </p></div>', 1)
|
|
16550
16557
|
])])),
|
|
16551
16558
|
r.value.visible ? (s(), i("div", {
|
|
@@ -16560,42 +16567,42 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16560
16567
|
}),
|
|
16561
16568
|
class: "animate-in fade-in duration-200"
|
|
16562
16569
|
}, [
|
|
16563
|
-
l("div",
|
|
16564
|
-
l("div",
|
|
16570
|
+
l("div", xy, [
|
|
16571
|
+
l("div", wy, [
|
|
16565
16572
|
l("div", {
|
|
16566
16573
|
style: be({ backgroundColor: r.value.color }),
|
|
16567
16574
|
class: "w-3 h-3 rounded-full shadow-sm"
|
|
16568
16575
|
}, null, 4),
|
|
16569
|
-
l("p",
|
|
16576
|
+
l("p", ky, w(r.value.label), 1)
|
|
16570
16577
|
]),
|
|
16571
|
-
l("div",
|
|
16572
|
-
l("span",
|
|
16578
|
+
l("div", $y, [
|
|
16579
|
+
l("span", Cy, w(r.value.value), 1),
|
|
16573
16580
|
L[1] || (L[1] = l("span", { class: "text-xs text-slate-400" }, "tasks", -1))
|
|
16574
16581
|
]),
|
|
16575
|
-
l("div",
|
|
16576
|
-
l("span",
|
|
16582
|
+
l("div", Sy, [
|
|
16583
|
+
l("span", zy, w(r.value.percentage) + "% of total", 1)
|
|
16577
16584
|
]),
|
|
16578
16585
|
L[2] || (L[2] = l("div", { class: "absolute bottom-0 left-1/2 transform -translate-x-1/2 translate-y-1/2 rotate-45 w-2 h-2 bg-slate-900 border-r border-b border-slate-700" }, null, -1))
|
|
16579
16586
|
])
|
|
16580
16587
|
], 4)) : v("", !0)
|
|
16581
16588
|
]));
|
|
16582
16589
|
}
|
|
16583
|
-
},
|
|
16590
|
+
}, Ay = {
|
|
16584
16591
|
key: 0,
|
|
16585
16592
|
class: "flex items-center justify-between px-6 py-4 border-b border-slate-200 bg-linear-to-r from-slate-50 to-slate-100 shrink-0"
|
|
16586
|
-
},
|
|
16593
|
+
}, Dy = { class: "flex items-center gap-3" }, My = { class: "font-semibold text-lg text-slate-900" }, Vy = { class: "flex items-center gap-2" }, Fy = ["disabled"], Ty = {
|
|
16587
16594
|
key: 1,
|
|
16588
16595
|
class: "absolute top-16 right-4 z-20 bg-white rounded-lg shadow-xl border border-slate-200 p-4 min-w-[250px]"
|
|
16589
|
-
},
|
|
16596
|
+
}, By = { class: "flex items-center justify-between mb-3" }, jy = { class: "space-y-3" }, Py = ["for"], Oy = ["id", "onClick"], _y = {
|
|
16590
16597
|
key: 2,
|
|
16591
16598
|
class: "absolute top-16 right-4 z-20 bg-white rounded-lg shadow-xl border border-slate-200 p-4 min-w-[280px]"
|
|
16592
|
-
},
|
|
16599
|
+
}, Ly = { class: "flex items-center justify-between mb-3" }, Ey = { class: "space-y-2" }, Iy = { class: "text-slate-700" }, Ny = { class: "px-2 py-1 bg-slate-100 border border-slate-300 rounded text-xs font-mono" }, Ry = { class: "relative flex-1 overflow-hidden" }, Uy = {
|
|
16593
16600
|
key: 0,
|
|
16594
16601
|
class: "absolute inset-0 bg-white/90 backdrop-blur-sm z-10 flex items-center justify-center"
|
|
16595
|
-
},
|
|
16602
|
+
}, qy = { class: "w-full h-full flex items-center justify-center" }, Yy = {
|
|
16596
16603
|
key: 3,
|
|
16597
16604
|
class: "border-t border-slate-200 px-6 py-3 bg-slate-50 shrink-0"
|
|
16598
|
-
},
|
|
16605
|
+
}, Hy = {
|
|
16599
16606
|
__name: "DashboardWidget",
|
|
16600
16607
|
props: {
|
|
16601
16608
|
id: { type: String, required: !0 },
|
|
@@ -16642,11 +16649,11 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16642
16649
|
});
|
|
16643
16650
|
const x = () => {
|
|
16644
16651
|
d.value = !d.value;
|
|
16645
|
-
}, C = (E,
|
|
16646
|
-
c.value[E] =
|
|
16652
|
+
}, C = (E, H) => {
|
|
16653
|
+
c.value[E] = H, n("customize", { ...c.value });
|
|
16647
16654
|
}, A = U(null), _ = U(!1), T = (E) => {
|
|
16648
16655
|
if (!_.value) return;
|
|
16649
|
-
const
|
|
16656
|
+
const H = {
|
|
16650
16657
|
r: () => n("refresh"),
|
|
16651
16658
|
R: () => n("refresh"),
|
|
16652
16659
|
c: () => x(),
|
|
@@ -16656,7 +16663,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16656
16663
|
H: () => S.value = !S.value,
|
|
16657
16664
|
"?": () => S.value = !S.value
|
|
16658
16665
|
};
|
|
16659
|
-
|
|
16666
|
+
H[E.key] && (E.preventDefault(), H[E.key](), n("keypress", E.key));
|
|
16660
16667
|
}, j = () => {
|
|
16661
16668
|
_.value = !0;
|
|
16662
16669
|
}, M = () => {
|
|
@@ -16671,28 +16678,28 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16671
16678
|
const L = (E) => {
|
|
16672
16679
|
if (!E.dataTransfer) return;
|
|
16673
16680
|
z.value = !0, n("dragstart", t.id);
|
|
16674
|
-
const
|
|
16681
|
+
const H = E.target.getBoundingClientRect();
|
|
16675
16682
|
D = E.target.cloneNode(!0), Object.assign(D.style, {
|
|
16676
16683
|
position: "fixed",
|
|
16677
|
-
width: `${
|
|
16678
|
-
height: `${
|
|
16684
|
+
width: `${H.width}px`,
|
|
16685
|
+
height: `${H.height}px`,
|
|
16679
16686
|
pointerEvents: "none",
|
|
16680
16687
|
opacity: "0.8",
|
|
16681
16688
|
zIndex: "1000",
|
|
16682
|
-
left: `${E.clientX -
|
|
16683
|
-
top: `${E.clientY -
|
|
16684
|
-
}), document.body.appendChild(D), E.dataTransfer.setDragImage(D,
|
|
16689
|
+
left: `${E.clientX - H.width / 2}px`,
|
|
16690
|
+
top: `${E.clientY - H.height / 2}px`
|
|
16691
|
+
}), document.body.appendChild(D), E.dataTransfer.setDragImage(D, H.width / 2, H.height / 2), E.dataTransfer.effectAllowed = "move", E.dataTransfer.setData("text/plain", t.id);
|
|
16685
16692
|
}, V = (E) => {
|
|
16686
16693
|
D && E.clientX && E.clientY && (D.style.left = `${E.clientX - D.offsetWidth / 2}px`, D.style.top = `${E.clientY - D.offsetHeight / 2}px`);
|
|
16687
16694
|
}, F = () => {
|
|
16688
16695
|
z.value = !1, n("dragend", t.id), D && (document.body.removeChild(D), D = null);
|
|
16689
16696
|
}, R = y(() => {
|
|
16690
16697
|
if (!t.chartType || !t.chartData) return null;
|
|
16691
|
-
const E = t.chartData.datasets?.[0]?.data || t.chartData.data || [],
|
|
16698
|
+
const E = t.chartData.datasets?.[0]?.data || t.chartData.data || [], H = t.chartData.labels || [], b = E.filter((p) => p != null && !isNaN(p));
|
|
16692
16699
|
if (b.length === 0) return null;
|
|
16693
16700
|
const $ = t.chartType === "pie" || t.chartType === "doughnut", h = $ ? 450 : 400, B = $ ? 450 : 400, g = {
|
|
16694
16701
|
data: b,
|
|
16695
|
-
labels:
|
|
16702
|
+
labels: H.slice(0, b.length),
|
|
16696
16703
|
width: h,
|
|
16697
16704
|
height: B,
|
|
16698
16705
|
...t.chartOptions
|
|
@@ -16720,7 +16727,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16720
16727
|
window.addEventListener("dragover", V), window.addEventListener("keydown", T);
|
|
16721
16728
|
}), Ne(() => {
|
|
16722
16729
|
window.removeEventListener("dragover", V), window.removeEventListener("keydown", T), D && document.body.removeChild(D);
|
|
16723
|
-
}), (E,
|
|
16730
|
+
}), (E, H) => r.value ? (s(), i("div", {
|
|
16724
16731
|
key: 0,
|
|
16725
16732
|
ref_key: "widgetRef",
|
|
16726
16733
|
ref: A,
|
|
@@ -16737,21 +16744,21 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16737
16744
|
onFocus: j,
|
|
16738
16745
|
onBlur: M
|
|
16739
16746
|
}, [
|
|
16740
|
-
e.showHeader ? (s(), i("div",
|
|
16741
|
-
l("div",
|
|
16747
|
+
e.showHeader ? (s(), i("div", Ay, [
|
|
16748
|
+
l("div", Dy, [
|
|
16742
16749
|
e.icon ? (s(), W(Q, {
|
|
16743
16750
|
key: 0,
|
|
16744
16751
|
icon: e.icon,
|
|
16745
16752
|
class: "w-5 h-5 text-slate-700"
|
|
16746
16753
|
}, null, 8, ["icon"])) : v("", !0),
|
|
16747
|
-
l("h3",
|
|
16754
|
+
l("h3", My, w(e.title), 1)
|
|
16748
16755
|
]),
|
|
16749
|
-
l("div",
|
|
16756
|
+
l("div", Vy, [
|
|
16750
16757
|
q(E.$slots, "header-actions"),
|
|
16751
16758
|
l("button", {
|
|
16752
16759
|
class: "p-2 rounded-lg hover:bg-white/80 transition-all duration-200 hover:scale-105 active:scale-95",
|
|
16753
16760
|
title: "Keyboard shortcuts (?)",
|
|
16754
|
-
onClick:
|
|
16761
|
+
onClick: H[0] || (H[0] = (b) => S.value = !S.value)
|
|
16755
16762
|
}, [
|
|
16756
16763
|
P(Q, {
|
|
16757
16764
|
icon: "circle-info",
|
|
@@ -16774,7 +16781,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16774
16781
|
class: "p-2 rounded-lg hover:bg-white/80 transition-all duration-200 hover:scale-105 active:scale-95",
|
|
16775
16782
|
disabled: e.loading,
|
|
16776
16783
|
title: "Refresh (R)",
|
|
16777
|
-
onClick:
|
|
16784
|
+
onClick: H[1] || (H[1] = (b) => E.$emit("refresh"))
|
|
16778
16785
|
}, [
|
|
16779
16786
|
P(Q, {
|
|
16780
16787
|
icon: "refresh",
|
|
@@ -16783,15 +16790,15 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16783
16790
|
{ "animate-spin": e.loading }
|
|
16784
16791
|
])
|
|
16785
16792
|
}, null, 8, ["class"])
|
|
16786
|
-
], 8,
|
|
16793
|
+
], 8, Fy)) : v("", !0)
|
|
16787
16794
|
])
|
|
16788
16795
|
])) : v("", !0),
|
|
16789
|
-
d.value ? (s(), i("div",
|
|
16790
|
-
l("div",
|
|
16791
|
-
|
|
16796
|
+
d.value ? (s(), i("div", Ty, [
|
|
16797
|
+
l("div", By, [
|
|
16798
|
+
H[4] || (H[4] = l("h4", { class: "font-semibold text-sm text-slate-900" }, " Customize Widget ", -1)),
|
|
16792
16799
|
l("button", {
|
|
16793
16800
|
class: "p-1 rounded hover:bg-slate-100",
|
|
16794
|
-
onClick:
|
|
16801
|
+
onClick: H[2] || (H[2] = (b) => d.value = !1)
|
|
16795
16802
|
}, [
|
|
16796
16803
|
P(Q, {
|
|
16797
16804
|
icon: "x",
|
|
@@ -16799,15 +16806,15 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16799
16806
|
})
|
|
16800
16807
|
])
|
|
16801
16808
|
]),
|
|
16802
|
-
l("div",
|
|
16803
|
-
(s(!0), i(
|
|
16809
|
+
l("div", jy, [
|
|
16810
|
+
(s(!0), i(Y, null, X(e.customizationOptions, (b) => (s(), i("div", {
|
|
16804
16811
|
key: b.id,
|
|
16805
16812
|
class: "flex items-center justify-between"
|
|
16806
16813
|
}, [
|
|
16807
16814
|
l("label", {
|
|
16808
16815
|
for: `setting-${b.id}`,
|
|
16809
16816
|
class: "text-sm text-slate-700 cursor-pointer"
|
|
16810
|
-
}, w(b.label), 9,
|
|
16817
|
+
}, w(b.label), 9, Py),
|
|
16811
16818
|
l("button", {
|
|
16812
16819
|
id: `setting-${b.id}`,
|
|
16813
16820
|
class: m([
|
|
@@ -16822,16 +16829,16 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16822
16829
|
c.value[b.id] ? "translate-x-6" : "translate-x-1"
|
|
16823
16830
|
])
|
|
16824
16831
|
}, null, 2)
|
|
16825
|
-
], 10,
|
|
16832
|
+
], 10, Oy)
|
|
16826
16833
|
]))), 128))
|
|
16827
16834
|
])
|
|
16828
16835
|
])) : v("", !0),
|
|
16829
|
-
S.value ? (s(), i("div",
|
|
16830
|
-
l("div",
|
|
16831
|
-
|
|
16836
|
+
S.value ? (s(), i("div", _y, [
|
|
16837
|
+
l("div", Ly, [
|
|
16838
|
+
H[5] || (H[5] = l("h4", { class: "font-semibold text-sm text-slate-900" }, " Keyboard Shortcuts ", -1)),
|
|
16832
16839
|
l("button", {
|
|
16833
16840
|
class: "p-1 rounded hover:bg-slate-100",
|
|
16834
|
-
onClick:
|
|
16841
|
+
onClick: H[3] || (H[3] = (b) => S.value = !1)
|
|
16835
16842
|
}, [
|
|
16836
16843
|
P(Q, {
|
|
16837
16844
|
icon: "x",
|
|
@@ -16839,18 +16846,18 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16839
16846
|
})
|
|
16840
16847
|
])
|
|
16841
16848
|
]),
|
|
16842
|
-
l("div",
|
|
16843
|
-
(s(), i(
|
|
16849
|
+
l("div", Ey, [
|
|
16850
|
+
(s(), i(Y, null, X(k, (b) => l("div", {
|
|
16844
16851
|
key: b.key,
|
|
16845
16852
|
class: "flex items-center justify-between text-sm"
|
|
16846
16853
|
}, [
|
|
16847
|
-
l("span",
|
|
16848
|
-
l("kbd",
|
|
16854
|
+
l("span", Iy, w(b.description), 1),
|
|
16855
|
+
l("kbd", Ny, w(b.key), 1)
|
|
16849
16856
|
])), 64))
|
|
16850
16857
|
])
|
|
16851
16858
|
])) : v("", !0),
|
|
16852
|
-
l("div",
|
|
16853
|
-
e.loading ? (s(), i("div",
|
|
16859
|
+
l("div", Ry, [
|
|
16860
|
+
e.loading ? (s(), i("div", Uy, [
|
|
16854
16861
|
P($t, {
|
|
16855
16862
|
type: "spin",
|
|
16856
16863
|
size: "medium",
|
|
@@ -16861,7 +16868,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16861
16868
|
key: 1,
|
|
16862
16869
|
class: m(["w-full h-full flex items-center justify-center p-4", u[e.padding]])
|
|
16863
16870
|
}, [
|
|
16864
|
-
l("div",
|
|
16871
|
+
l("div", qy, [
|
|
16865
16872
|
(s(), W(Be(re.value), zt(R.value, { doughnut: ne.value }), null, 16, ["doughnut"]))
|
|
16866
16873
|
])
|
|
16867
16874
|
], 2)) : (s(), i("div", {
|
|
@@ -16871,7 +16878,7 @@ const ry = /* @__PURE__ */ Vt(Ep, [["render", sy]]), ly = { class: "w-full h-ful
|
|
|
16871
16878
|
q(E.$slots, "default")
|
|
16872
16879
|
], 2))
|
|
16873
16880
|
]),
|
|
16874
|
-
E.$slots.footer ? (s(), i("div",
|
|
16881
|
+
E.$slots.footer ? (s(), i("div", Yy, [
|
|
16875
16882
|
q(E.$slots, "footer")
|
|
16876
16883
|
])) : v("", !0)
|
|
16877
16884
|
], 38)) : v("", !0);
|
|
@@ -16997,7 +17004,7 @@ function Ze(e) {
|
|
|
16997
17004
|
}
|
|
16998
17005
|
return null;
|
|
16999
17006
|
}
|
|
17000
|
-
function
|
|
17007
|
+
function Wy(e) {
|
|
17001
17008
|
if (!e) return null;
|
|
17002
17009
|
if (/^\d{4}-\d{2}-\d{2}$/.test(e)) {
|
|
17003
17010
|
const [a, t, n] = e.split("-").map(Number);
|
|
@@ -17014,7 +17021,7 @@ function Gs(e) {
|
|
|
17014
17021
|
const n = new Date(t);
|
|
17015
17022
|
return n.setDate(t.getDate() + 6), { startDate: t, endDate: n };
|
|
17016
17023
|
}
|
|
17017
|
-
function
|
|
17024
|
+
function Gy(e) {
|
|
17018
17025
|
const { startDate: a } = Gs(e), t = [];
|
|
17019
17026
|
for (let n = 0; n < 7; n++) {
|
|
17020
17027
|
const r = new Date(a);
|
|
@@ -17059,7 +17066,7 @@ function Dn(e) {
|
|
|
17059
17066
|
}
|
|
17060
17067
|
function Mn(e, a = "full") {
|
|
17061
17068
|
if (!e) return "";
|
|
17062
|
-
const t =
|
|
17069
|
+
const t = Wy(e);
|
|
17063
17070
|
if (!t) return String(e);
|
|
17064
17071
|
const n = {
|
|
17065
17072
|
full: {
|
|
@@ -17080,7 +17087,7 @@ function Mn(e, a = "full") {
|
|
|
17080
17087
|
};
|
|
17081
17088
|
return t.toLocaleDateString("en-US", n[a] || n.full);
|
|
17082
17089
|
}
|
|
17083
|
-
function
|
|
17090
|
+
function Ky(e = 0, a = 23, t = 60) {
|
|
17084
17091
|
const n = [];
|
|
17085
17092
|
for (let r = e; r <= a; r++)
|
|
17086
17093
|
for (let o = 0; o < 60; o += t) {
|
|
@@ -17099,7 +17106,7 @@ function la(e, a = "long") {
|
|
|
17099
17106
|
function oa(e) {
|
|
17100
17107
|
return e.getFullYear();
|
|
17101
17108
|
}
|
|
17102
|
-
const
|
|
17109
|
+
const Xy = {
|
|
17103
17110
|
name: "EventsCalendar",
|
|
17104
17111
|
props: {
|
|
17105
17112
|
events: {
|
|
@@ -17120,7 +17127,7 @@ const Ky = {
|
|
|
17120
17127
|
selectedEvent: null,
|
|
17121
17128
|
weekDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
17122
17129
|
weekDaysShort: ["S", "M", "T", "W", "T", "F", "S"],
|
|
17123
|
-
timeSlots:
|
|
17130
|
+
timeSlots: Ky(0, 23, 60),
|
|
17124
17131
|
monthNames: [
|
|
17125
17132
|
"January",
|
|
17126
17133
|
"February",
|
|
@@ -17156,7 +17163,7 @@ const Ky = {
|
|
|
17156
17163
|
}));
|
|
17157
17164
|
},
|
|
17158
17165
|
weekViewDays() {
|
|
17159
|
-
return
|
|
17166
|
+
return Gy(this.currentDate).map((a) => {
|
|
17160
17167
|
const t = Ze(a);
|
|
17161
17168
|
return {
|
|
17162
17169
|
dateObj: a,
|
|
@@ -17273,66 +17280,66 @@ const Ky = {
|
|
|
17273
17280
|
this.currentDate = new Date(this.currentDate.getFullYear(), e, 1), this.viewMode = "month";
|
|
17274
17281
|
}
|
|
17275
17282
|
}
|
|
17276
|
-
},
|
|
17283
|
+
}, Jy = { class: "flex gap-0 h-full bg-white rounded-lg shadow-sm border border-gray-200" }, Qy = { class: "flex-1 flex flex-col" }, Zy = { class: "flex items-center justify-between px-6 py-4 border-b border-gray-200" }, e1 = { class: "flex items-center gap-3" }, t1 = { class: "flex items-center gap-1" }, a1 = { class: "text-xl font-semibold text-gray-900 ml-2" }, n1 = { class: "flex items-center gap-2" }, s1 = { class: "flex-1 flex flex-col p-4" }, r1 = {
|
|
17277
17284
|
key: 0,
|
|
17278
17285
|
class: "flex-1 overflow-y-auto"
|
|
17279
|
-
},
|
|
17286
|
+
}, l1 = { class: "grid grid-cols-3 gap-6 pb-6" }, o1 = ["onClick"], i1 = { class: "bg-linear-to-r from-blue-500 to-blue-600 px-3 py-3" }, u1 = { class: "text-sm font-bold text-white text-center" }, d1 = { class: "p-3" }, c1 = { class: "grid grid-cols-7 mb-2" }, f1 = { class: "grid grid-cols-7 gap-1" }, m1 = {
|
|
17280
17287
|
key: 1,
|
|
17281
17288
|
class: "flex-1 flex flex-col"
|
|
17282
|
-
},
|
|
17289
|
+
}, g1 = { class: "grid grid-cols-7 border-b border-gray-200" }, v1 = { class: "grid grid-cols-7 flex-1 border-l border-t border-gray-200" }, h1 = ["onClick"], b1 = { class: "flex items-center justify-between mb-1 px-1" }, p1 = { class: "space-y-1" }, y1 = ["onClick"], x1 = {
|
|
17283
17290
|
key: 0,
|
|
17284
17291
|
class: "text-xs px-2 py-1 text-gray-600 font-medium cursor-pointer hover:text-gray-900"
|
|
17285
|
-
},
|
|
17292
|
+
}, w1 = {
|
|
17286
17293
|
key: 2,
|
|
17287
17294
|
class: "flex-1 flex flex-col overflow-hidden"
|
|
17288
|
-
},
|
|
17295
|
+
}, k1 = { class: "grid grid-cols-8 border-b border-gray-200 bg-gray-50" }, $1 = { class: "text-xs font-semibold text-gray-600 uppercase" }, C1 = { class: "grid grid-cols-8 border-b border-gray-200 bg-gray-50 min-h-[60px]" }, S1 = ["onClick"], z1 = { class: "font-semibold truncate" }, A1 = { class: "flex-1 overflow-y-auto" }, D1 = { class: "grid grid-cols-8" }, M1 = { class: "border-r border-gray-200 bg-gray-50" }, V1 = ["onClick"], F1 = { class: "font-semibold truncate" }, T1 = { class: "text-xs opacity-90 truncate" }, B1 = {
|
|
17289
17296
|
key: 3,
|
|
17290
17297
|
class: "flex-1 flex flex-col overflow-hidden"
|
|
17291
|
-
},
|
|
17298
|
+
}, j1 = { class: "border-b border-gray-200 bg-gray-50 p-4" }, P1 = { class: "text-center" }, O1 = { class: "text-sm font-semibold text-gray-600 uppercase" }, _1 = {
|
|
17292
17299
|
key: 0,
|
|
17293
17300
|
class: "border-b border-gray-200 bg-gray-50 p-4"
|
|
17294
|
-
},
|
|
17301
|
+
}, L1 = { class: "space-y-2" }, E1 = ["onClick"], I1 = { class: "font-semibold" }, N1 = {
|
|
17295
17302
|
key: 0,
|
|
17296
17303
|
class: "text-xs opacity-80 mt-1"
|
|
17297
|
-
},
|
|
17304
|
+
}, R1 = { class: "flex-1 overflow-y-auto" }, U1 = { class: "flex" }, q1 = { class: "w-24 border-r border-gray-200 bg-gray-50 shrink-0" }, Y1 = { class: "flex-1 relative" }, H1 = ["onClick"], W1 = { class: "font-semibold" }, G1 = { class: "text-xs opacity-90 mt-1" }, K1 = {
|
|
17298
17305
|
key: 0,
|
|
17299
17306
|
class: "text-xs opacity-80 mt-1 line-clamp-2"
|
|
17300
|
-
},
|
|
17307
|
+
}, X1 = {
|
|
17301
17308
|
key: 0,
|
|
17302
17309
|
class: "w-80 border-l border-gray-200 bg-white flex flex-col"
|
|
17303
|
-
},
|
|
17310
|
+
}, J1 = { class: "px-6 py-4 border-b border-gray-200 flex items-start justify-between" }, Q1 = { class: "flex-1 overflow-y-auto px-6 py-4 space-y-4" }, Z1 = { class: "text-xl font-bold text-gray-900" }, ex = { key: 0 }, tx = {
|
|
17304
17311
|
key: 0,
|
|
17305
17312
|
class: "w-4 h-4 mr-1.5",
|
|
17306
17313
|
fill: "currentColor",
|
|
17307
17314
|
viewBox: "0 0 20 20"
|
|
17308
|
-
},
|
|
17315
|
+
}, ax = {
|
|
17309
17316
|
key: 1,
|
|
17310
17317
|
class: "w-4 h-4 mr-1.5",
|
|
17311
17318
|
fill: "currentColor",
|
|
17312
17319
|
viewBox: "0 0 20 20"
|
|
17313
|
-
},
|
|
17320
|
+
}, nx = { class: "space-y-3 pt-2" }, sx = { class: "flex items-start gap-3" }, rx = { class: "text-sm font-medium text-gray-900" }, lx = { class: "flex items-start gap-3" }, ox = { class: "text-sm text-gray-600" }, ix = {
|
|
17314
17321
|
key: 1,
|
|
17315
17322
|
class: "pt-4 border-t border-gray-200"
|
|
17316
|
-
},
|
|
17323
|
+
}, ux = { class: "text-sm text-gray-600 leading-relaxed" }, dx = {
|
|
17317
17324
|
key: 2,
|
|
17318
17325
|
class: "pt-4 border-t border-gray-200 space-y-3"
|
|
17319
|
-
},
|
|
17326
|
+
}, cx = {
|
|
17320
17327
|
key: 0,
|
|
17321
17328
|
class: "text-sm"
|
|
17322
|
-
},
|
|
17329
|
+
}, fx = { class: "text-gray-600 mt-1" }, mx = {
|
|
17323
17330
|
key: 1,
|
|
17324
17331
|
class: "text-sm"
|
|
17325
|
-
},
|
|
17326
|
-
function
|
|
17327
|
-
return s(), i("div",
|
|
17328
|
-
l("div",
|
|
17329
|
-
l("div",
|
|
17330
|
-
l("div",
|
|
17332
|
+
}, gx = { class: "text-gray-600 mt-1" };
|
|
17333
|
+
function vx(e, a, t, n, r, o) {
|
|
17334
|
+
return s(), i("div", Jy, [
|
|
17335
|
+
l("div", Qy, [
|
|
17336
|
+
l("div", Zy, [
|
|
17337
|
+
l("div", e1, [
|
|
17331
17338
|
l("button", {
|
|
17332
17339
|
class: "px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded hover:bg-gray-50 transition-colors",
|
|
17333
17340
|
onClick: a[0] || (a[0] = (...u) => o.goToToday && o.goToToday(...u))
|
|
17334
17341
|
}, " Today "),
|
|
17335
|
-
l("div",
|
|
17342
|
+
l("div", t1, [
|
|
17336
17343
|
l("button", {
|
|
17337
17344
|
class: "p-2 text-gray-600 hover:bg-gray-100 rounded transition-colors",
|
|
17338
17345
|
onClick: a[1] || (a[1] = (...u) => o.previousPeriod && o.previousPeriod(...u))
|
|
@@ -17370,9 +17377,9 @@ function gx(e, a, t, n, r, o) {
|
|
|
17370
17377
|
], -1)
|
|
17371
17378
|
])])
|
|
17372
17379
|
]),
|
|
17373
|
-
l("h2",
|
|
17380
|
+
l("h2", a1, w(o.displayTitle), 1)
|
|
17374
17381
|
]),
|
|
17375
|
-
l("div",
|
|
17382
|
+
l("div", n1, [
|
|
17376
17383
|
l("button", {
|
|
17377
17384
|
class: m(["px-3 py-2 text-sm font-medium rounded transition-colors", r.viewMode === "year" ? "bg-blue-100 text-blue-700" : "text-gray-700 hover:bg-gray-100"]),
|
|
17378
17385
|
onClick: a[3] || (a[3] = (u) => r.viewMode = "year")
|
|
@@ -17391,26 +17398,26 @@ function gx(e, a, t, n, r, o) {
|
|
|
17391
17398
|
}, " Day ", 2)
|
|
17392
17399
|
])
|
|
17393
17400
|
]),
|
|
17394
|
-
l("div",
|
|
17395
|
-
r.viewMode === "year" ? (s(), i("div",
|
|
17396
|
-
l("div",
|
|
17397
|
-
(s(!0), i(
|
|
17401
|
+
l("div", s1, [
|
|
17402
|
+
r.viewMode === "year" ? (s(), i("div", r1, [
|
|
17403
|
+
l("div", l1, [
|
|
17404
|
+
(s(!0), i(Y, null, X(o.yearViewMonths, (u) => (s(), i("div", {
|
|
17398
17405
|
key: u.index,
|
|
17399
17406
|
class: "bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow cursor-pointer",
|
|
17400
17407
|
onClick: (d) => o.selectMonthFromYear(u.index)
|
|
17401
17408
|
}, [
|
|
17402
|
-
l("div",
|
|
17403
|
-
l("h3",
|
|
17409
|
+
l("div", i1, [
|
|
17410
|
+
l("h3", u1, w(u.name), 1)
|
|
17404
17411
|
]),
|
|
17405
|
-
l("div",
|
|
17406
|
-
l("div",
|
|
17407
|
-
(s(!0), i(
|
|
17412
|
+
l("div", d1, [
|
|
17413
|
+
l("div", c1, [
|
|
17414
|
+
(s(!0), i(Y, null, X(r.weekDaysShort, (d) => (s(), i("div", {
|
|
17408
17415
|
key: d,
|
|
17409
17416
|
class: "text-center text-[10px] font-bold text-gray-600"
|
|
17410
17417
|
}, w(d), 1))), 128))
|
|
17411
17418
|
]),
|
|
17412
|
-
l("div",
|
|
17413
|
-
(s(!0), i(
|
|
17419
|
+
l("div", f1, [
|
|
17420
|
+
(s(!0), i(Y, null, X(u.days, (d, c) => (s(), i("div", {
|
|
17414
17421
|
key: c,
|
|
17415
17422
|
class: m(["aspect-square flex items-center justify-center text-xs rounded-md relative transition-all hover:scale-110", [
|
|
17416
17423
|
// Base styles
|
|
@@ -17431,18 +17438,18 @@ function gx(e, a, t, n, r, o) {
|
|
|
17431
17438
|
], 2))), 128))
|
|
17432
17439
|
])
|
|
17433
17440
|
])
|
|
17434
|
-
], 8,
|
|
17441
|
+
], 8, o1))), 128))
|
|
17435
17442
|
])
|
|
17436
17443
|
])) : v("", !0),
|
|
17437
|
-
r.viewMode === "month" ? (s(), i("div",
|
|
17438
|
-
l("div",
|
|
17439
|
-
(s(!0), i(
|
|
17444
|
+
r.viewMode === "month" ? (s(), i("div", m1, [
|
|
17445
|
+
l("div", g1, [
|
|
17446
|
+
(s(!0), i(Y, null, X(r.weekDays, (u) => (s(), i("div", {
|
|
17440
17447
|
key: u,
|
|
17441
17448
|
class: "text-center text-xs font-semibold text-gray-600 py-3 uppercase tracking-wider"
|
|
17442
17449
|
}, w(u), 1))), 128))
|
|
17443
17450
|
]),
|
|
17444
|
-
l("div",
|
|
17445
|
-
(s(!0), i(
|
|
17451
|
+
l("div", v1, [
|
|
17452
|
+
(s(!0), i(Y, null, X(o.calendarDays, (u, d) => (s(), i("div", {
|
|
17446
17453
|
key: d,
|
|
17447
17454
|
class: m(["border-r border-b border-gray-200 p-1 min-h-[120px] relative cursor-pointer hover:bg-gray-50 transition-colors", [
|
|
17448
17455
|
u.isCurrentMonth ? "bg-white" : "bg-gray-50",
|
|
@@ -17451,7 +17458,7 @@ function gx(e, a, t, n, r, o) {
|
|
|
17451
17458
|
]]),
|
|
17452
17459
|
onClick: (c) => o.selectDay(u)
|
|
17453
17460
|
}, [
|
|
17454
|
-
l("div",
|
|
17461
|
+
l("div", b1, [
|
|
17455
17462
|
l("span", {
|
|
17456
17463
|
class: m(["text-sm font-medium", [
|
|
17457
17464
|
u.isCurrentMonth ? "text-gray-900" : "text-gray-400",
|
|
@@ -17459,24 +17466,24 @@ function gx(e, a, t, n, r, o) {
|
|
|
17459
17466
|
]])
|
|
17460
17467
|
}, w(u.dayNumber), 3)
|
|
17461
17468
|
]),
|
|
17462
|
-
l("div",
|
|
17463
|
-
(s(!0), i(
|
|
17469
|
+
l("div", p1, [
|
|
17470
|
+
(s(!0), i(Y, null, X(u.events.slice(0, 3), (c, x) => (s(), i("div", {
|
|
17464
17471
|
key: x,
|
|
17465
17472
|
class: m(["text-xs px-2 py-1 rounded cursor-pointer truncate border-l-2 text-white font-medium hover:opacity-90 transition-opacity", o.getEventColorClass(c.color)]),
|
|
17466
17473
|
onClick: $e((C) => o.selectEvent(c, u), ["stop"])
|
|
17467
|
-
}, w(c.title), 11,
|
|
17468
|
-
u.events.length > 3 ? (s(), i("div",
|
|
17474
|
+
}, w(c.title), 11, y1))), 128)),
|
|
17475
|
+
u.events.length > 3 ? (s(), i("div", x1, " +" + w(u.events.length - 3) + " more ", 1)) : v("", !0)
|
|
17469
17476
|
])
|
|
17470
|
-
], 10,
|
|
17477
|
+
], 10, h1))), 128))
|
|
17471
17478
|
])
|
|
17472
|
-
])) : r.viewMode === "week" ? (s(), i("div",
|
|
17473
|
-
l("div",
|
|
17479
|
+
])) : r.viewMode === "week" ? (s(), i("div", w1, [
|
|
17480
|
+
l("div", k1, [
|
|
17474
17481
|
a[10] || (a[10] = l("div", { class: "border-r border-gray-200 p-2" }, null, -1)),
|
|
17475
|
-
(s(!0), i(
|
|
17482
|
+
(s(!0), i(Y, null, X(o.weekViewDays, (u) => (s(), i("div", {
|
|
17476
17483
|
key: u.date,
|
|
17477
17484
|
class: m(["text-center p-2 border-r border-gray-200", u.isToday ? "bg-blue-50" : ""])
|
|
17478
17485
|
}, [
|
|
17479
|
-
l("div",
|
|
17486
|
+
l("div", $1, w(u.dayName), 1),
|
|
17480
17487
|
l("div", {
|
|
17481
17488
|
class: m(["text-lg font-bold mt-1", [
|
|
17482
17489
|
u.isToday ? "bg-blue-600 text-white w-8 h-8 flex items-center justify-center rounded-full mx-auto" : "text-gray-900"
|
|
@@ -17484,53 +17491,53 @@ function gx(e, a, t, n, r, o) {
|
|
|
17484
17491
|
}, w(u.dayNumber), 3)
|
|
17485
17492
|
], 2))), 128))
|
|
17486
17493
|
]),
|
|
17487
|
-
l("div",
|
|
17494
|
+
l("div", C1, [
|
|
17488
17495
|
a[11] || (a[11] = l("div", { class: "border-r border-gray-200 px-2 py-1 text-xs text-gray-600 text-right flex items-center justify-end" }, " All Day ", -1)),
|
|
17489
|
-
(s(!0), i(
|
|
17496
|
+
(s(!0), i(Y, null, X(o.weekViewDays, (u) => (s(), i("div", {
|
|
17490
17497
|
key: "allday-" + u.date,
|
|
17491
17498
|
class: m(["border-r border-gray-200 p-1 space-y-1", u.isToday ? "bg-blue-50 bg-opacity-30" : ""])
|
|
17492
17499
|
}, [
|
|
17493
|
-
(s(!0), i(
|
|
17500
|
+
(s(!0), i(Y, null, X(o.getAllDayEvents(u.events), (d) => (s(), i("div", {
|
|
17494
17501
|
key: d.id,
|
|
17495
17502
|
class: m(["rounded border-l-2 p-1 text-xs font-medium text-white cursor-pointer hover:opacity-90 transition-opacity", o.getEventColorClass(d.color)]),
|
|
17496
17503
|
onClick: (c) => o.selectEvent(d, u)
|
|
17497
17504
|
}, [
|
|
17498
|
-
l("div",
|
|
17499
|
-
], 10,
|
|
17505
|
+
l("div", z1, w(d.title), 1)
|
|
17506
|
+
], 10, S1))), 128))
|
|
17500
17507
|
], 2))), 128))
|
|
17501
17508
|
]),
|
|
17502
|
-
l("div",
|
|
17503
|
-
l("div",
|
|
17504
|
-
l("div",
|
|
17505
|
-
(s(!0), i(
|
|
17509
|
+
l("div", A1, [
|
|
17510
|
+
l("div", D1, [
|
|
17511
|
+
l("div", M1, [
|
|
17512
|
+
(s(!0), i(Y, null, X(r.timeSlots, (u) => (s(), i("div", {
|
|
17506
17513
|
key: u.time,
|
|
17507
17514
|
class: "h-16 border-b border-gray-200 px-2 py-1 text-xs text-gray-600 text-right"
|
|
17508
17515
|
}, w(u.display), 1))), 128))
|
|
17509
17516
|
]),
|
|
17510
|
-
(s(!0), i(
|
|
17517
|
+
(s(!0), i(Y, null, X(o.weekViewDays, (u) => (s(), i("div", {
|
|
17511
17518
|
key: u.date,
|
|
17512
17519
|
class: "border-r border-gray-200 relative"
|
|
17513
17520
|
}, [
|
|
17514
|
-
(s(!0), i(
|
|
17521
|
+
(s(!0), i(Y, null, X(r.timeSlots, (d) => (s(), i("div", {
|
|
17515
17522
|
key: d.time,
|
|
17516
17523
|
class: m(["h-16 border-b border-gray-200 hover:bg-gray-50 transition-colors cursor-pointer relative", u.isToday ? "bg-blue-50 bg-opacity-30" : ""])
|
|
17517
17524
|
}, [
|
|
17518
|
-
(s(!0), i(
|
|
17525
|
+
(s(!0), i(Y, null, X(o.getEventsAtTime(u.events, d), (c) => (s(), i("div", {
|
|
17519
17526
|
key: c.id,
|
|
17520
17527
|
class: m(["absolute inset-x-1 top-1 bottom-1 rounded border-l-2 p-1 text-xs font-medium text-white cursor-pointer hover:opacity-90 transition-opacity overflow-hidden", o.getEventColorClass(c.color)]),
|
|
17521
17528
|
onClick: (x) => o.selectEvent(c, u)
|
|
17522
17529
|
}, [
|
|
17523
|
-
l("div",
|
|
17524
|
-
l("div",
|
|
17525
|
-
], 10,
|
|
17530
|
+
l("div", F1, w(c.title), 1),
|
|
17531
|
+
l("div", T1, w(c.time), 1)
|
|
17532
|
+
], 10, V1))), 128))
|
|
17526
17533
|
], 2))), 128))
|
|
17527
17534
|
]))), 128))
|
|
17528
17535
|
])
|
|
17529
17536
|
])
|
|
17530
|
-
])) : r.viewMode === "day" ? (s(), i("div",
|
|
17531
|
-
l("div",
|
|
17532
|
-
l("div",
|
|
17533
|
-
l("div",
|
|
17537
|
+
])) : r.viewMode === "day" ? (s(), i("div", B1, [
|
|
17538
|
+
l("div", j1, [
|
|
17539
|
+
l("div", P1, [
|
|
17540
|
+
l("div", O1, w(o.dayViewDate.dayName), 1),
|
|
17534
17541
|
l("div", {
|
|
17535
17542
|
class: m(["text-3xl font-bold mt-2", [
|
|
17536
17543
|
o.dayViewDate.isToday ? "text-blue-600" : "text-gray-900"
|
|
@@ -17538,41 +17545,41 @@ function gx(e, a, t, n, r, o) {
|
|
|
17538
17545
|
}, w(o.dayViewDate.dayNumber), 3)
|
|
17539
17546
|
])
|
|
17540
17547
|
]),
|
|
17541
|
-
o.getAllDayEvents(o.dayViewDate.events).length > 0 ? (s(), i("div",
|
|
17548
|
+
o.getAllDayEvents(o.dayViewDate.events).length > 0 ? (s(), i("div", _1, [
|
|
17542
17549
|
a[12] || (a[12] = l("h4", { class: "text-xs font-semibold text-gray-600 uppercase tracking-wide mb-2" }, " All Day Events ", -1)),
|
|
17543
|
-
l("div",
|
|
17544
|
-
(s(!0), i(
|
|
17550
|
+
l("div", L1, [
|
|
17551
|
+
(s(!0), i(Y, null, X(o.getAllDayEvents(o.dayViewDate.events), (u) => (s(), i("div", {
|
|
17545
17552
|
key: u.id,
|
|
17546
17553
|
class: m(["rounded border-l-4 p-3 text-sm font-medium text-white cursor-pointer hover:opacity-90 transition-opacity shadow-sm", o.getEventColorClass(u.color)]),
|
|
17547
17554
|
onClick: (d) => o.selectEvent(u, o.dayViewDate)
|
|
17548
17555
|
}, [
|
|
17549
|
-
l("div",
|
|
17550
|
-
u.description ? (s(), i("div",
|
|
17551
|
-
], 10,
|
|
17556
|
+
l("div", I1, w(u.title), 1),
|
|
17557
|
+
u.description ? (s(), i("div", N1, w(u.description), 1)) : v("", !0)
|
|
17558
|
+
], 10, E1))), 128))
|
|
17552
17559
|
])
|
|
17553
17560
|
])) : v("", !0),
|
|
17554
|
-
l("div",
|
|
17555
|
-
l("div",
|
|
17556
|
-
l("div",
|
|
17557
|
-
(s(!0), i(
|
|
17561
|
+
l("div", R1, [
|
|
17562
|
+
l("div", U1, [
|
|
17563
|
+
l("div", q1, [
|
|
17564
|
+
(s(!0), i(Y, null, X(r.timeSlots, (u) => (s(), i("div", {
|
|
17558
17565
|
key: u.time,
|
|
17559
17566
|
class: "h-16 border-b border-gray-200 px-2 py-1 text-xs text-gray-600 text-right"
|
|
17560
17567
|
}, w(u.display), 1))), 128))
|
|
17561
17568
|
]),
|
|
17562
|
-
l("div",
|
|
17563
|
-
(s(!0), i(
|
|
17569
|
+
l("div", Y1, [
|
|
17570
|
+
(s(!0), i(Y, null, X(r.timeSlots, (u) => (s(), i("div", {
|
|
17564
17571
|
key: u.time,
|
|
17565
17572
|
class: m(["h-16 border-b border-gray-200 hover:bg-gray-50 transition-colors cursor-pointer relative", o.dayViewDate.isToday ? "bg-blue-50 bg-opacity-30" : ""])
|
|
17566
17573
|
}, [
|
|
17567
|
-
(s(!0), i(
|
|
17574
|
+
(s(!0), i(Y, null, X(o.getEventsAtTime(o.dayViewDate.events, u), (d) => (s(), i("div", {
|
|
17568
17575
|
key: d.id,
|
|
17569
17576
|
class: m(["absolute inset-x-2 top-1 bottom-1 rounded border-l-4 p-2 text-sm font-medium text-white cursor-pointer hover:opacity-90 transition-opacity shadow-sm", o.getEventColorClass(d.color)]),
|
|
17570
17577
|
onClick: (c) => o.selectEvent(d, o.dayViewDate)
|
|
17571
17578
|
}, [
|
|
17572
|
-
l("div",
|
|
17573
|
-
l("div",
|
|
17574
|
-
d.description ? (s(), i("div",
|
|
17575
|
-
], 10,
|
|
17579
|
+
l("div", W1, w(d.title), 1),
|
|
17580
|
+
l("div", G1, w(d.time), 1),
|
|
17581
|
+
d.description ? (s(), i("div", K1, w(d.description), 1)) : v("", !0)
|
|
17582
|
+
], 10, H1))), 128))
|
|
17576
17583
|
], 2))), 128))
|
|
17577
17584
|
])
|
|
17578
17585
|
])
|
|
@@ -17591,8 +17598,8 @@ function gx(e, a, t, n, r, o) {
|
|
|
17591
17598
|
"leave-to-class": "opacity-0 translate-x-4"
|
|
17592
17599
|
}, {
|
|
17593
17600
|
default: J(() => [
|
|
17594
|
-
r.selectedEvent ? (s(), i("div",
|
|
17595
|
-
l("div",
|
|
17601
|
+
r.selectedEvent ? (s(), i("div", X1, [
|
|
17602
|
+
l("div", J1, [
|
|
17596
17603
|
a[14] || (a[14] = l("h3", { class: "text-lg font-semibold text-gray-900" }, " Event Details ", -1)),
|
|
17597
17604
|
l("button", {
|
|
17598
17605
|
class: "text-gray-400 hover:text-gray-600 transition-colors",
|
|
@@ -17613,24 +17620,24 @@ function gx(e, a, t, n, r, o) {
|
|
|
17613
17620
|
], -1)
|
|
17614
17621
|
])])
|
|
17615
17622
|
]),
|
|
17616
|
-
l("div",
|
|
17623
|
+
l("div", Q1, [
|
|
17617
17624
|
l("div", {
|
|
17618
17625
|
class: m(["h-1 w-full rounded-full", o.getEventColorClass(r.selectedEvent.color)])
|
|
17619
17626
|
}, null, 2),
|
|
17620
17627
|
l("div", null, [
|
|
17621
|
-
l("h4",
|
|
17628
|
+
l("h4", Z1, w(r.selectedEvent.title), 1)
|
|
17622
17629
|
]),
|
|
17623
|
-
r.selectedEvent.status ? (s(), i("div",
|
|
17630
|
+
r.selectedEvent.status ? (s(), i("div", ex, [
|
|
17624
17631
|
l("span", {
|
|
17625
17632
|
class: m(["inline-flex items-center px-3 py-1.5 rounded-full text-sm font-medium", r.selectedEvent.status === "complied" ? "bg-green-100 text-green-800 border border-green-200" : "bg-orange-100 text-orange-800 border border-orange-200"])
|
|
17626
17633
|
}, [
|
|
17627
|
-
r.selectedEvent.status === "complied" ? (s(), i("svg",
|
|
17634
|
+
r.selectedEvent.status === "complied" ? (s(), i("svg", tx, [...a[15] || (a[15] = [
|
|
17628
17635
|
l("path", {
|
|
17629
17636
|
"fill-rule": "evenodd",
|
|
17630
17637
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
17631
17638
|
"clip-rule": "evenodd"
|
|
17632
17639
|
}, null, -1)
|
|
17633
|
-
])])) : (s(), i("svg",
|
|
17640
|
+
])])) : (s(), i("svg", ax, [...a[16] || (a[16] = [
|
|
17634
17641
|
l("path", {
|
|
17635
17642
|
"fill-rule": "evenodd",
|
|
17636
17643
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z",
|
|
@@ -17640,8 +17647,8 @@ function gx(e, a, t, n, r, o) {
|
|
|
17640
17647
|
oe(" " + w(r.selectedEvent.status === "complied" ? "Complied" : "Pending"), 1)
|
|
17641
17648
|
], 2)
|
|
17642
17649
|
])) : v("", !0),
|
|
17643
|
-
l("div",
|
|
17644
|
-
l("div",
|
|
17650
|
+
l("div", nx, [
|
|
17651
|
+
l("div", sx, [
|
|
17645
17652
|
a[17] || (a[17] = l("svg", {
|
|
17646
17653
|
class: "w-5 h-5 text-gray-400 mt-0.5",
|
|
17647
17654
|
fill: "none",
|
|
@@ -17656,10 +17663,10 @@ function gx(e, a, t, n, r, o) {
|
|
|
17656
17663
|
})
|
|
17657
17664
|
], -1)),
|
|
17658
17665
|
l("div", null, [
|
|
17659
|
-
l("p",
|
|
17666
|
+
l("p", rx, w(o.formatEventDate(r.selectedEvent.date, "full")), 1)
|
|
17660
17667
|
])
|
|
17661
17668
|
]),
|
|
17662
|
-
l("div",
|
|
17669
|
+
l("div", lx, [
|
|
17663
17670
|
a[18] || (a[18] = l("svg", {
|
|
17664
17671
|
class: "w-5 h-5 text-gray-400 mt-0.5",
|
|
17665
17672
|
fill: "none",
|
|
@@ -17673,22 +17680,22 @@ function gx(e, a, t, n, r, o) {
|
|
|
17673
17680
|
d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
17674
17681
|
})
|
|
17675
17682
|
], -1)),
|
|
17676
|
-
l("p",
|
|
17683
|
+
l("p", ox, w(r.selectedEvent.time), 1)
|
|
17677
17684
|
])
|
|
17678
17685
|
]),
|
|
17679
|
-
r.selectedEvent.description ? (s(), i("div",
|
|
17686
|
+
r.selectedEvent.description ? (s(), i("div", ix, [
|
|
17680
17687
|
a[19] || (a[19] = l("h5", { class: "text-sm font-semibold text-gray-900 mb-2" }, " Description ", -1)),
|
|
17681
|
-
l("p",
|
|
17688
|
+
l("p", ux, w(r.selectedEvent.description), 1)
|
|
17682
17689
|
])) : v("", !0),
|
|
17683
|
-
r.selectedEvent.compliance ? (s(), i("div",
|
|
17690
|
+
r.selectedEvent.compliance ? (s(), i("div", dx, [
|
|
17684
17691
|
a[22] || (a[22] = l("h5", { class: "text-sm font-semibold text-gray-900 mb-2" }, " Compliance Details ", -1)),
|
|
17685
|
-
r.selectedEvent.compliance.remarks ? (s(), i("div",
|
|
17692
|
+
r.selectedEvent.compliance.remarks ? (s(), i("div", cx, [
|
|
17686
17693
|
a[20] || (a[20] = l("span", { class: "font-medium text-gray-700" }, "Remarks:", -1)),
|
|
17687
|
-
l("p",
|
|
17694
|
+
l("p", fx, w(r.selectedEvent.compliance.remarks), 1)
|
|
17688
17695
|
])) : v("", !0),
|
|
17689
|
-
r.selectedEvent.compliance.compliance_documents?.length ? (s(), i("div",
|
|
17696
|
+
r.selectedEvent.compliance.compliance_documents?.length ? (s(), i("div", mx, [
|
|
17690
17697
|
a[21] || (a[21] = l("span", { class: "font-medium text-gray-700" }, "Documents:", -1)),
|
|
17691
|
-
l("p",
|
|
17698
|
+
l("p", gx, w(r.selectedEvent.compliance.compliance_documents.length) + " document(s) attached ", 1)
|
|
17692
17699
|
])) : v("", !0)
|
|
17693
17700
|
])) : v("", !0)
|
|
17694
17701
|
])
|
|
@@ -17699,7 +17706,7 @@ function gx(e, a, t, n, r, o) {
|
|
|
17699
17706
|
], !0)
|
|
17700
17707
|
]);
|
|
17701
17708
|
}
|
|
17702
|
-
const
|
|
17709
|
+
const hx = /* @__PURE__ */ Vt(Xy, [["render", vx], ["__scopeId", "data-v-6e1ab614"]]), bx = { class: "w-full h-full relative" }, px = ["width", "height", "viewBox"], yx = { key: 0 }, xx = ["x1", "y1", "x2", "y2", "stroke"], wx = ["id"], kx = ["stop-color"], $x = ["stop-color"], Cx = ["x", "y", "width", "height", "fill", "onMouseenter", "onClick"], Sx = ["to", "begin"], zx = ["from", "to", "begin"], Ax = { key: 1 }, Dx = ["x", "y"], Mx = { key: 2 }, Vx = ["x", "y"], Fx = { key: 3 }, Tx = ["x", "y"], Bx = { key: 4 }, jx = ["x", "y"], Px = ["x1", "y1", "x2", "y2"], Ox = ["x1", "y1", "x2", "y2"], _x = { class: "bg-slate-900 text-white px-4 py-3 rounded-lg shadow-2xl border border-slate-700 min-w-[180px]" }, Lx = { class: "flex items-center gap-2 mb-2" }, Ex = { class: "font-semibold text-sm" }, Ix = { class: "ml-5" }, Nx = { class: "text-xs text-slate-300 mb-1" }, Rx = { class: "text-2xl font-bold" }, Ux = {
|
|
17703
17710
|
__name: "StackedBarChart",
|
|
17704
17711
|
props: {
|
|
17705
17712
|
data: {
|
|
@@ -17798,31 +17805,31 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
17798
17805
|
const R = (t.height - t.padding.bottom - F) / o.value * t.maxValue;
|
|
17799
17806
|
return Math.round(R);
|
|
17800
17807
|
}, z = (F) => F.charAt(0).toUpperCase() + F.slice(1), D = (F, R, re) => {
|
|
17801
|
-
const ne = t.data[R], E = t.groupKeys[re],
|
|
17808
|
+
const ne = t.data[R], E = t.groupKeys[re], H = ne[E] || 0, b = t.labels[R] || `Item ${R + 1}`, $ = z(E);
|
|
17802
17809
|
r.value = {
|
|
17803
17810
|
visible: !0,
|
|
17804
17811
|
x: F.clientX,
|
|
17805
17812
|
y: F.clientY,
|
|
17806
17813
|
label: b,
|
|
17807
17814
|
barLabel: $,
|
|
17808
|
-
value:
|
|
17815
|
+
value: H,
|
|
17809
17816
|
color: S(re)
|
|
17810
|
-
}, n("bar-hover", { dataIndex: R, barIndex: re, key: E, value:
|
|
17817
|
+
}, n("bar-hover", { dataIndex: R, barIndex: re, key: E, value: H, label: b });
|
|
17811
17818
|
}, L = () => {
|
|
17812
17819
|
r.value.visible = !1;
|
|
17813
17820
|
}, V = (F, R) => {
|
|
17814
|
-
const re = t.data[F], ne = t.groupKeys[R], E = re[ne] || 0,
|
|
17815
|
-
n("bar-click", { dataIndex: F, barIndex: R, key: ne, value: E, label:
|
|
17821
|
+
const re = t.data[F], ne = t.groupKeys[R], E = re[ne] || 0, H = t.labels[F] || `Item ${F + 1}`;
|
|
17822
|
+
n("bar-click", { dataIndex: F, barIndex: R, key: ne, value: E, label: H });
|
|
17816
17823
|
};
|
|
17817
|
-
return (F, R) => (s(), i("div",
|
|
17824
|
+
return (F, R) => (s(), i("div", bx, [
|
|
17818
17825
|
(s(), i("svg", {
|
|
17819
17826
|
width: e.width,
|
|
17820
17827
|
height: e.height,
|
|
17821
17828
|
viewBox: `0 0 ${e.width} ${e.height}`,
|
|
17822
17829
|
class: "overflow-visible"
|
|
17823
17830
|
}, [
|
|
17824
|
-
e.showGrid ? (s(), i("g",
|
|
17825
|
-
(s(!0), i(
|
|
17831
|
+
e.showGrid ? (s(), i("g", yx, [
|
|
17832
|
+
(s(!0), i(Y, null, X(A.value, (re) => (s(), i("line", {
|
|
17826
17833
|
key: `grid-${re}`,
|
|
17827
17834
|
x1: e.padding.left,
|
|
17828
17835
|
y1: re,
|
|
@@ -17832,10 +17839,10 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
17832
17839
|
"stroke-width": "1",
|
|
17833
17840
|
"stroke-dasharray": "4,4",
|
|
17834
17841
|
opacity: "0.3"
|
|
17835
|
-
}, null, 8,
|
|
17842
|
+
}, null, 8, xx))), 128))
|
|
17836
17843
|
])) : v("", !0),
|
|
17837
17844
|
l("defs", null, [
|
|
17838
|
-
(s(!0), i(
|
|
17845
|
+
(s(!0), i(Y, null, X(e.groupKeys, (re, ne) => (s(), i("linearGradient", {
|
|
17839
17846
|
id: `barGradient-${ne}`,
|
|
17840
17847
|
key: `gradient-${ne}`,
|
|
17841
17848
|
x1: "0%",
|
|
@@ -17847,84 +17854,84 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
17847
17854
|
offset: "0%",
|
|
17848
17855
|
"stop-color": S(ne),
|
|
17849
17856
|
"stop-opacity": "0.95"
|
|
17850
|
-
}, null, 8,
|
|
17857
|
+
}, null, 8, kx),
|
|
17851
17858
|
l("stop", {
|
|
17852
17859
|
offset: "100%",
|
|
17853
17860
|
"stop-color": S(ne),
|
|
17854
17861
|
"stop-opacity": "0.85"
|
|
17855
|
-
}, null, 8,
|
|
17856
|
-
], 8,
|
|
17862
|
+
}, null, 8, $x)
|
|
17863
|
+
], 8, wx))), 128))
|
|
17857
17864
|
]),
|
|
17858
17865
|
l("g", null, [
|
|
17859
|
-
(s(!0), i(
|
|
17866
|
+
(s(!0), i(Y, null, X(e.data, (re, ne) => (s(), i("g", {
|
|
17860
17867
|
key: `bar-group-${ne}`
|
|
17861
17868
|
}, [
|
|
17862
|
-
(s(!0), i(
|
|
17863
|
-
key: `bar-${ne}-${
|
|
17864
|
-
x: T(ne,
|
|
17869
|
+
(s(!0), i(Y, null, X(e.groupKeys, (E, H) => (s(), i("rect", {
|
|
17870
|
+
key: `bar-${ne}-${H}`,
|
|
17871
|
+
x: T(ne, H),
|
|
17865
17872
|
y: j(re[E] || 0),
|
|
17866
17873
|
width: x.value,
|
|
17867
17874
|
height: M(re[E] || 0),
|
|
17868
|
-
fill: `url(#barGradient-${
|
|
17875
|
+
fill: `url(#barGradient-${H})`,
|
|
17869
17876
|
class: m(e.barClasses),
|
|
17870
17877
|
rx: "4",
|
|
17871
|
-
onMouseenter: (b) => D(b, ne,
|
|
17878
|
+
onMouseenter: (b) => D(b, ne, H),
|
|
17872
17879
|
onMouseleave: L,
|
|
17873
|
-
onClick: (b) => V(ne,
|
|
17880
|
+
onClick: (b) => V(ne, H)
|
|
17874
17881
|
}, [
|
|
17875
17882
|
l("animate", {
|
|
17876
17883
|
attributeName: "height",
|
|
17877
17884
|
from: 0,
|
|
17878
17885
|
to: M(re[E] || 0),
|
|
17879
17886
|
dur: "0.6s",
|
|
17880
|
-
begin: `${
|
|
17887
|
+
begin: `${H * 0.1}s`,
|
|
17881
17888
|
fill: "freeze"
|
|
17882
|
-
}, null, 8,
|
|
17889
|
+
}, null, 8, Sx),
|
|
17883
17890
|
l("animate", {
|
|
17884
17891
|
attributeName: "y",
|
|
17885
17892
|
from: e.padding.top + o.value,
|
|
17886
17893
|
to: j(re[E] || 0),
|
|
17887
17894
|
dur: "0.6s",
|
|
17888
|
-
begin: `${
|
|
17895
|
+
begin: `${H * 0.1}s`,
|
|
17889
17896
|
fill: "freeze"
|
|
17890
|
-
}, null, 8,
|
|
17891
|
-
], 42,
|
|
17897
|
+
}, null, 8, zx)
|
|
17898
|
+
], 42, Cx))), 128))
|
|
17892
17899
|
]))), 128))
|
|
17893
17900
|
]),
|
|
17894
|
-
e.showXAxis ? (s(), i("g",
|
|
17895
|
-
(s(!0), i(
|
|
17901
|
+
e.showXAxis ? (s(), i("g", Ax, [
|
|
17902
|
+
(s(!0), i(Y, null, X(e.labels, (re, ne) => (s(), i("text", {
|
|
17896
17903
|
key: `xlabel-${ne}`,
|
|
17897
17904
|
x: _(ne) + d.value / 2,
|
|
17898
17905
|
y: e.height - e.padding.bottom + 20,
|
|
17899
17906
|
class: m(e.axisLabelClasses),
|
|
17900
17907
|
"text-anchor": "middle"
|
|
17901
|
-
}, w(re), 11,
|
|
17908
|
+
}, w(re), 11, Dx))), 128))
|
|
17902
17909
|
])) : v("", !0),
|
|
17903
|
-
e.xAxisLabel ? (s(), i("g",
|
|
17910
|
+
e.xAxisLabel ? (s(), i("g", Mx, [
|
|
17904
17911
|
l("text", {
|
|
17905
17912
|
x: e.padding.left + u.value / 2,
|
|
17906
17913
|
y: e.height - 10,
|
|
17907
17914
|
class: "fill-slate-700 text-sm font-semibold",
|
|
17908
17915
|
"text-anchor": "middle"
|
|
17909
|
-
}, w(e.xAxisLabel), 9,
|
|
17916
|
+
}, w(e.xAxisLabel), 9, Vx)
|
|
17910
17917
|
])) : v("", !0),
|
|
17911
|
-
e.showYAxis ? (s(), i("g",
|
|
17912
|
-
(s(!0), i(
|
|
17918
|
+
e.showYAxis ? (s(), i("g", Fx, [
|
|
17919
|
+
(s(!0), i(Y, null, X(A.value, (re) => (s(), i("text", {
|
|
17913
17920
|
key: `ylabel-${re}`,
|
|
17914
17921
|
x: e.padding.left - 10,
|
|
17915
17922
|
y: re + 4,
|
|
17916
17923
|
class: m(e.axisLabelClasses),
|
|
17917
17924
|
"text-anchor": "end"
|
|
17918
|
-
}, w(k(re)), 11,
|
|
17925
|
+
}, w(k(re)), 11, Tx))), 128))
|
|
17919
17926
|
])) : v("", !0),
|
|
17920
|
-
e.yAxisLabel ? (s(), i("g",
|
|
17927
|
+
e.yAxisLabel ? (s(), i("g", Bx, [
|
|
17921
17928
|
l("text", {
|
|
17922
17929
|
x: -(e.padding.top + o.value / 2),
|
|
17923
17930
|
y: e.padding.left - 40,
|
|
17924
17931
|
class: "fill-slate-700 text-sm font-semibold",
|
|
17925
17932
|
"text-anchor": "middle",
|
|
17926
17933
|
transform: "rotate(-90)"
|
|
17927
|
-
}, w(e.yAxisLabel), 9,
|
|
17934
|
+
}, w(e.yAxisLabel), 9, jx)
|
|
17928
17935
|
])) : v("", !0),
|
|
17929
17936
|
l("line", {
|
|
17930
17937
|
x1: e.padding.left,
|
|
@@ -17933,7 +17940,7 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
17933
17940
|
y2: e.height - e.padding.bottom,
|
|
17934
17941
|
stroke: "#cbd5e1",
|
|
17935
17942
|
"stroke-width": "2"
|
|
17936
|
-
}, null, 8,
|
|
17943
|
+
}, null, 8, Px),
|
|
17937
17944
|
l("line", {
|
|
17938
17945
|
x1: e.padding.left,
|
|
17939
17946
|
y1: e.height - e.padding.bottom,
|
|
@@ -17941,8 +17948,8 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
17941
17948
|
y2: e.height - e.padding.bottom,
|
|
17942
17949
|
stroke: "#cbd5e1",
|
|
17943
17950
|
"stroke-width": "2"
|
|
17944
|
-
}, null, 8,
|
|
17945
|
-
], 8,
|
|
17951
|
+
}, null, 8, Ox)
|
|
17952
|
+
], 8, px)),
|
|
17946
17953
|
r.value.visible ? (s(), i("div", {
|
|
17947
17954
|
key: 0,
|
|
17948
17955
|
style: be({
|
|
@@ -17955,17 +17962,17 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
17955
17962
|
}),
|
|
17956
17963
|
class: "animate-in fade-in duration-200"
|
|
17957
17964
|
}, [
|
|
17958
|
-
l("div",
|
|
17959
|
-
l("div",
|
|
17965
|
+
l("div", _x, [
|
|
17966
|
+
l("div", Lx, [
|
|
17960
17967
|
l("div", {
|
|
17961
17968
|
style: be({ backgroundColor: r.value.color }),
|
|
17962
17969
|
class: "w-3 h-3 rounded shadow-sm"
|
|
17963
17970
|
}, null, 4),
|
|
17964
|
-
l("p",
|
|
17971
|
+
l("p", Ex, w(r.value.label), 1)
|
|
17965
17972
|
]),
|
|
17966
|
-
l("div",
|
|
17967
|
-
l("p",
|
|
17968
|
-
l("span",
|
|
17973
|
+
l("div", Ix, [
|
|
17974
|
+
l("p", Nx, w(r.value.barLabel), 1),
|
|
17975
|
+
l("span", Rx, w(r.value.value) + "%", 1)
|
|
17969
17976
|
]),
|
|
17970
17977
|
R[0] || (R[0] = l("div", { class: "absolute bottom-0 left-1/2 transform -translate-x-1/2 translate-y-1/2 rotate-45 w-2 h-2 bg-slate-900 border-r border-b border-slate-700" }, null, -1))
|
|
17971
17978
|
])
|
|
@@ -18028,13 +18035,13 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
18028
18035
|
TabPanel: Zc,
|
|
18029
18036
|
BarChart: Us,
|
|
18030
18037
|
LineChart: qs,
|
|
18031
|
-
StackedBarChart:
|
|
18038
|
+
StackedBarChart: Ux,
|
|
18032
18039
|
GraphFilters: $m,
|
|
18033
18040
|
Accordion: rf,
|
|
18034
18041
|
AccordionItem: lf,
|
|
18035
18042
|
Graph: $f,
|
|
18036
18043
|
Calendar: bf,
|
|
18037
|
-
EventsCalendar:
|
|
18044
|
+
EventsCalendar: hx,
|
|
18038
18045
|
DataTable: p0,
|
|
18039
18046
|
DataTableHeader: Ys,
|
|
18040
18047
|
DataTableRow: y0,
|
|
@@ -18044,16 +18051,16 @@ const vx = /* @__PURE__ */ Vt(Ky, [["render", gx], ["__scopeId", "data-v-6e1ab61
|
|
|
18044
18051
|
DataTableToolBar: Dg,
|
|
18045
18052
|
Footer: Og,
|
|
18046
18053
|
Header: nh,
|
|
18047
|
-
ReusableFormModal:
|
|
18048
|
-
ReusableForm:
|
|
18049
|
-
Sidebar:
|
|
18050
|
-
Timeline:
|
|
18051
|
-
TimelineItem:
|
|
18052
|
-
AuthLayout:
|
|
18053
|
-
DefaultLayout:
|
|
18054
|
-
ErrorLayout:
|
|
18055
|
-
DashboardWidget:
|
|
18056
|
-
},
|
|
18054
|
+
ReusableFormModal: Fh,
|
|
18055
|
+
ReusableForm: kb,
|
|
18056
|
+
Sidebar: Jb,
|
|
18057
|
+
Timeline: Qb,
|
|
18058
|
+
TimelineItem: sp,
|
|
18059
|
+
AuthLayout: Bp,
|
|
18060
|
+
DefaultLayout: Ep,
|
|
18061
|
+
ErrorLayout: ly,
|
|
18062
|
+
DashboardWidget: Hy
|
|
18063
|
+
}, Wx = {
|
|
18057
18064
|
install(e, a = {}) {
|
|
18058
18065
|
const { prefix: t = "" } = a;
|
|
18059
18066
|
Object.keys(Fn).forEach((n) => {
|
|
@@ -18066,7 +18073,7 @@ export {
|
|
|
18066
18073
|
rf as Accordion,
|
|
18067
18074
|
lf as AccordionItem,
|
|
18068
18075
|
Fu as Alert,
|
|
18069
|
-
|
|
18076
|
+
Bp as AuthLayout,
|
|
18070
18077
|
Si as Avatar,
|
|
18071
18078
|
Ls as Badge,
|
|
18072
18079
|
Us as BarChart,
|
|
@@ -18082,7 +18089,7 @@ export {
|
|
|
18082
18089
|
td as CardTitle,
|
|
18083
18090
|
Ut as Checkbox,
|
|
18084
18091
|
Is as CircularProgress,
|
|
18085
|
-
|
|
18092
|
+
Hy as DashboardWidget,
|
|
18086
18093
|
p0 as DataTable,
|
|
18087
18094
|
x0 as DataTableCell,
|
|
18088
18095
|
fg as DataTableFilters,
|
|
@@ -18091,12 +18098,12 @@ export {
|
|
|
18091
18098
|
y0 as DataTableRow,
|
|
18092
18099
|
Dg as DataTableToolBar,
|
|
18093
18100
|
Xt as DatePicker,
|
|
18094
|
-
|
|
18101
|
+
Ep as DefaultLayout,
|
|
18095
18102
|
Pi as Divider,
|
|
18096
18103
|
fd as Dropdown,
|
|
18097
18104
|
gd as DropdownItem,
|
|
18098
|
-
|
|
18099
|
-
|
|
18105
|
+
ly as ErrorLayout,
|
|
18106
|
+
hx as EventsCalendar,
|
|
18100
18107
|
qt as FileUpload,
|
|
18101
18108
|
Og as Footer,
|
|
18102
18109
|
qa as FormField,
|
|
@@ -18123,14 +18130,14 @@ export {
|
|
|
18123
18130
|
Ji as Progress,
|
|
18124
18131
|
Zi as ProgressBar,
|
|
18125
18132
|
lu as Radio,
|
|
18126
|
-
|
|
18127
|
-
|
|
18133
|
+
kb as ReusableForm,
|
|
18134
|
+
Fh as ReusableFormModal,
|
|
18128
18135
|
Pc as Search,
|
|
18129
18136
|
Ye as Select,
|
|
18130
|
-
|
|
18137
|
+
Jb as Sidebar,
|
|
18131
18138
|
Ha as Slider,
|
|
18132
18139
|
Ra as Spinner,
|
|
18133
|
-
|
|
18140
|
+
Ux as StackedBarChart,
|
|
18134
18141
|
Ic as Stepper,
|
|
18135
18142
|
Yc as StepperItem,
|
|
18136
18143
|
wu as Switch,
|
|
@@ -18138,13 +18145,13 @@ export {
|
|
|
18138
18145
|
Zc as TabPanel,
|
|
18139
18146
|
ku as Text,
|
|
18140
18147
|
Ua as Textarea,
|
|
18141
|
-
|
|
18142
|
-
|
|
18148
|
+
Qb as Timeline,
|
|
18149
|
+
sp as TimelineItem,
|
|
18143
18150
|
xc as Toast,
|
|
18144
18151
|
Ns as Tooltip,
|
|
18145
18152
|
za as Typography,
|
|
18146
18153
|
O as cn,
|
|
18147
|
-
|
|
18154
|
+
Wx as default,
|
|
18148
18155
|
De as toast,
|
|
18149
18156
|
An as tooltip,
|
|
18150
18157
|
fc as useToaster
|