@stlhorizon/vue-ui 1.9.8 → 1.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +137 -135
- package/dist/index.js +13 -13
- package/dist/src/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2569,7 +2569,7 @@ function Oa(e, a) {
|
|
|
2569
2569
|
e.setAttribute(t, y), o && e.removeChild(o);
|
|
2570
2570
|
var V = Dl(), F = V.extra;
|
|
2571
2571
|
F.attributes[Pt] = a, Nt(w, z).then(function(re) {
|
|
2572
|
-
var
|
|
2572
|
+
var D = ea(I(I({}, V), {}, {
|
|
2573
2573
|
icons: {
|
|
2574
2574
|
main: re,
|
|
2575
2575
|
mask: Mn()
|
|
@@ -2579,7 +2579,7 @@ function Oa(e, a) {
|
|
|
2579
2579
|
extra: F,
|
|
2580
2580
|
watchable: !0
|
|
2581
2581
|
})), q = ne.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
2582
|
-
a === "::before" ? e.insertBefore(q, e.firstChild) : e.appendChild(q), q.outerHTML =
|
|
2582
|
+
a === "::before" ? e.insertBefore(q, e.firstChild) : e.appendChild(q), q.outerHTML = D.map(function(se) {
|
|
2583
2583
|
return Qe(se);
|
|
2584
2584
|
}).join(`
|
|
2585
2585
|
`), e.removeAttribute(t), n();
|
|
@@ -3120,8 +3120,8 @@ var $o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3120
3120
|
V.push(t(w, y[F], L));
|
|
3121
3121
|
else {
|
|
3122
3122
|
V = {};
|
|
3123
|
-
for (var
|
|
3124
|
-
Object.prototype.hasOwnProperty.call(y,
|
|
3123
|
+
for (var D in y)
|
|
3124
|
+
Object.prototype.hasOwnProperty.call(y, D) && (V[w(D, L)] = t(w, y[D], L));
|
|
3125
3125
|
}
|
|
3126
3126
|
return V;
|
|
3127
3127
|
}, n = function(w, y) {
|
|
@@ -7254,7 +7254,7 @@ const td = {
|
|
|
7254
7254
|
}
|
|
7255
7255
|
},
|
|
7256
7256
|
defaultVariants: { size: "md" }
|
|
7257
|
-
}), F = m(() => x(L({ size: s.size }))), re = m(() => x(V({ size: s.size }))),
|
|
7257
|
+
}), F = m(() => x(L({ size: s.size }))), re = m(() => x(V({ size: s.size }))), D = m(
|
|
7258
7258
|
() => x("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
|
|
7259
7259
|
), q = (O) => x(
|
|
7260
7260
|
"flex items-center w-full px-4 py-3 text-left transition-colors duration-150 hover:bg-slate-50 focus:bg-slate-50 focus:outline-none",
|
|
@@ -7311,14 +7311,14 @@ const td = {
|
|
|
7311
7311
|
default: E(() => [
|
|
7312
7312
|
v.value && (e.results.length > 0 || e.showNoResults) ? (l(), u("div", {
|
|
7313
7313
|
key: 0,
|
|
7314
|
-
class: f(
|
|
7314
|
+
class: f(D.value)
|
|
7315
7315
|
}, [
|
|
7316
7316
|
e.results.length > 0 ? (l(), u("div", yd, [
|
|
7317
|
-
(l(!0), u(X, null, J(e.results, (ae,
|
|
7318
|
-
key: ae.id ||
|
|
7319
|
-
class: f(q(
|
|
7317
|
+
(l(!0), u(X, null, J(e.results, (ae, M) => (l(), u("button", {
|
|
7318
|
+
key: ae.id || M,
|
|
7319
|
+
class: f(q(M)),
|
|
7320
7320
|
onClick: (ee) => h(ae),
|
|
7321
|
-
onMouseenter: (ee) => b.value =
|
|
7321
|
+
onMouseenter: (ee) => b.value = M
|
|
7322
7322
|
}, [
|
|
7323
7323
|
ae.icon ? (l(), R(me(ae.icon), {
|
|
7324
7324
|
key: 0,
|
|
@@ -7598,7 +7598,7 @@ const td = {
|
|
|
7598
7598
|
() => x(B({ size: n.size }))
|
|
7599
7599
|
), F = m(
|
|
7600
7600
|
() => x(z({ size: n.size }))
|
|
7601
|
-
), re = (q) => x($({ expanded: d(q) })),
|
|
7601
|
+
), re = (q) => x($({ expanded: d(q) })), D = m(
|
|
7602
7602
|
() => x(k({ size: n.size }))
|
|
7603
7603
|
);
|
|
7604
7604
|
return we(
|
|
@@ -7652,7 +7652,7 @@ const td = {
|
|
|
7652
7652
|
default: E(() => [
|
|
7653
7653
|
d(U) ? (l(), u("div", {
|
|
7654
7654
|
key: 0,
|
|
7655
|
-
class: f(
|
|
7655
|
+
class: f(D.value),
|
|
7656
7656
|
id: `panel-${O.id || U}`,
|
|
7657
7657
|
"aria-labelledby": `header-${O.id || U}`,
|
|
7658
7658
|
role: "region"
|
|
@@ -8648,7 +8648,7 @@ const td = {
|
|
|
8648
8648
|
(fe) => V(fe) === V(C)
|
|
8649
8649
|
);
|
|
8650
8650
|
K > -1 ? j.splice(K, 1) : j.push(C), r("selection-change", j);
|
|
8651
|
-
},
|
|
8651
|
+
}, D = () => {
|
|
8652
8652
|
if (n.loading || n.dataLoading) return;
|
|
8653
8653
|
const C = w.value ? [] : [...z.value];
|
|
8654
8654
|
r("selection-change", C);
|
|
@@ -8662,7 +8662,7 @@ const td = {
|
|
|
8662
8662
|
n.paginationLoading || n.loading || (o.value = C, s.value = 1, r("page-size-change", C));
|
|
8663
8663
|
}, ae = m(
|
|
8664
8664
|
() => x(v({ variant: n.variant }))
|
|
8665
|
-
),
|
|
8665
|
+
), M = m(
|
|
8666
8666
|
() => x(b({ variant: n.variant }))
|
|
8667
8667
|
), ee = m(
|
|
8668
8668
|
() => x(S({ variant: n.variant }))
|
|
@@ -8707,7 +8707,7 @@ const td = {
|
|
|
8707
8707
|
comfortable: "px-8 py-8"
|
|
8708
8708
|
}[n.density],
|
|
8709
8709
|
"text-center"
|
|
8710
|
-
)),
|
|
8710
|
+
)), _ = (C, j) => x(
|
|
8711
8711
|
{
|
|
8712
8712
|
"text-blue-600": d.value === C.key && c.value === j,
|
|
8713
8713
|
"text-slate-300": d.value !== C.key || c.value !== j
|
|
@@ -8724,7 +8724,7 @@ const td = {
|
|
|
8724
8724
|
O(C);
|
|
8725
8725
|
},
|
|
8726
8726
|
selectAll: () => {
|
|
8727
|
-
|
|
8727
|
+
D();
|
|
8728
8728
|
},
|
|
8729
8729
|
clearSelection: () => {
|
|
8730
8730
|
r("selection-change", []);
|
|
@@ -8767,7 +8767,7 @@ const td = {
|
|
|
8767
8767
|
class: f(["overflow-x-auto", { "opacity-50": e.loading }])
|
|
8768
8768
|
}, [
|
|
8769
8769
|
i("table", {
|
|
8770
|
-
class: f(
|
|
8770
|
+
class: f(M.value)
|
|
8771
8771
|
}, [
|
|
8772
8772
|
i("thead", {
|
|
8773
8773
|
class: f(ee.value)
|
|
@@ -8789,7 +8789,7 @@ const td = {
|
|
|
8789
8789
|
modelValue: w.value,
|
|
8790
8790
|
indeterminate: y.value,
|
|
8791
8791
|
disabled: e.loading || e.dataLoading,
|
|
8792
|
-
"onUpdate:modelValue":
|
|
8792
|
+
"onUpdate:modelValue": D
|
|
8793
8793
|
}, null, 8, ["modelValue", "indeterminate", "disabled"]))
|
|
8794
8794
|
])
|
|
8795
8795
|
], 2)) : g("", !0),
|
|
@@ -8808,7 +8808,7 @@ const td = {
|
|
|
8808
8808
|
color: e.loadingColor
|
|
8809
8809
|
}, null, 8, ["color"])) : K.sortable ? (l(), u("div", kc, [
|
|
8810
8810
|
(l(), u("svg", {
|
|
8811
|
-
class: f([
|
|
8811
|
+
class: f([_(K, "asc"), "w-3 h-3 transition-colors"]),
|
|
8812
8812
|
fill: "none",
|
|
8813
8813
|
viewBox: "0 0 24 24",
|
|
8814
8814
|
"stroke-width": "1.5",
|
|
@@ -8821,7 +8821,7 @@ const td = {
|
|
|
8821
8821
|
}, null, -1)
|
|
8822
8822
|
])], 2)),
|
|
8823
8823
|
(l(), u("svg", {
|
|
8824
|
-
class: f([
|
|
8824
|
+
class: f([_(K, "desc"), "w-3 h-3 transition-colors"]),
|
|
8825
8825
|
fill: "none",
|
|
8826
8826
|
viewBox: "0 0 24 24",
|
|
8827
8827
|
"stroke-width": "1.5",
|
|
@@ -9194,26 +9194,26 @@ const td = {
|
|
|
9194
9194
|
size: "md"
|
|
9195
9195
|
}
|
|
9196
9196
|
}), c = (Y) => !!(Y.from || Y.to), v = (Y) => {
|
|
9197
|
-
const
|
|
9198
|
-
C >= 0 && (
|
|
9199
|
-
...
|
|
9197
|
+
const _ = [...t.dateFilters], C = _.findIndex((j) => j.key === Y);
|
|
9198
|
+
C >= 0 && (_[C] = {
|
|
9199
|
+
..._[C],
|
|
9200
9200
|
from: "",
|
|
9201
9201
|
to: ""
|
|
9202
|
-
}, n("update:dateFilters",
|
|
9202
|
+
}, n("update:dateFilters", _));
|
|
9203
9203
|
}, b = (Y) => `text-xs px-2 py-1 rounded ${c(Y) ? "bg-blue-100 text-blue-700" : "bg-gray-100 text-gray-600"}`, S = () => {
|
|
9204
9204
|
r.value = !r.value;
|
|
9205
|
-
}, B = (Y,
|
|
9205
|
+
}, B = (Y, _, C) => {
|
|
9206
9206
|
const j = [...t.dateFilters], K = j.findIndex((fe) => fe.key === Y);
|
|
9207
9207
|
K >= 0 && (j[K] = {
|
|
9208
9208
|
...j[K],
|
|
9209
|
-
[
|
|
9209
|
+
[_]: C
|
|
9210
9210
|
}, n("update:dateFilters", j));
|
|
9211
9211
|
}, z = m(() => {
|
|
9212
|
-
const Y = t.searchQuery,
|
|
9213
|
-
return Y ||
|
|
9212
|
+
const Y = t.searchQuery, _ = t.selectedStatus, C = t.dateFrom || t.dateTo, j = t.dateFilters.some((K) => K.from || K.to);
|
|
9213
|
+
return Y || _ || C || j;
|
|
9214
9214
|
}), $ = m(() => {
|
|
9215
9215
|
let Y = 0;
|
|
9216
|
-
return t.searchQuery && Y++, t.selectedStatus && Y++, (t.dateFrom || t.dateTo) && Y++, Y += t.dateFilters.filter((
|
|
9216
|
+
return t.searchQuery && Y++, t.selectedStatus && Y++, (t.dateFrom || t.dateTo) && Y++, Y += t.dateFilters.filter((_) => _.from || _.to).length, Y;
|
|
9217
9217
|
}), k = m(() => {
|
|
9218
9218
|
const Y = [];
|
|
9219
9219
|
if (t.searchQuery && t.searchQuery.trim() && Y.push({
|
|
@@ -9222,29 +9222,29 @@ const td = {
|
|
|
9222
9222
|
value: `"${t.searchQuery}"`,
|
|
9223
9223
|
icon: "magnifying-glass"
|
|
9224
9224
|
}), t.selectedStatus) {
|
|
9225
|
-
const
|
|
9225
|
+
const _ = t.statusOptions.find((C) => C.value === t.selectedStatus);
|
|
9226
9226
|
Y.push({
|
|
9227
9227
|
key: "status",
|
|
9228
9228
|
label: "Status",
|
|
9229
|
-
value:
|
|
9229
|
+
value: _?.label || t.selectedStatus,
|
|
9230
9230
|
icon: "filter"
|
|
9231
9231
|
});
|
|
9232
9232
|
}
|
|
9233
9233
|
if (t.dateFrom || t.dateTo) {
|
|
9234
|
-
let
|
|
9235
|
-
t.dateFrom && t.dateTo ?
|
|
9234
|
+
let _ = "";
|
|
9235
|
+
t.dateFrom && t.dateTo ? _ = `${t.dateFrom} to ${t.dateTo}` : t.dateFrom ? _ = `From ${t.dateFrom}` : t.dateTo && (_ = `Until ${t.dateTo}`), _ && Y.push({
|
|
9236
9236
|
key: "date",
|
|
9237
9237
|
label: "Date Range",
|
|
9238
|
-
value:
|
|
9238
|
+
value: _,
|
|
9239
9239
|
icon: "calendar"
|
|
9240
9240
|
});
|
|
9241
9241
|
}
|
|
9242
|
-
return t.dateFilters.forEach((
|
|
9243
|
-
if (
|
|
9242
|
+
return t.dateFilters.forEach((_) => {
|
|
9243
|
+
if (_.from || _.to) {
|
|
9244
9244
|
let C = "";
|
|
9245
|
-
|
|
9246
|
-
key: `date-${
|
|
9247
|
-
label:
|
|
9245
|
+
_.from && _.to ? C = `${_.from} to ${_.to}` : _.from ? C = `From ${_.from}` : _.to && (C = `Until ${_.to}`), C && Y.push({
|
|
9246
|
+
key: `date-${_.key}`,
|
|
9247
|
+
label: _.label,
|
|
9248
9248
|
value: C,
|
|
9249
9249
|
icon: "calendar"
|
|
9250
9250
|
});
|
|
@@ -9280,7 +9280,7 @@ const td = {
|
|
|
9280
9280
|
);
|
|
9281
9281
|
}), re = m(
|
|
9282
9282
|
() => "bg-white text-blue-600 text-xs px-1.5 py-0.5 rounded-full min-w-[20px] text-center font-semibold"
|
|
9283
|
-
),
|
|
9283
|
+
), D = m(
|
|
9284
9284
|
() => "px-6 py-4 border-t border-gray-100 bg-gray-50"
|
|
9285
9285
|
), q = m(
|
|
9286
9286
|
() => x(o({ size: "md" }), "pl-10 pr-3")
|
|
@@ -9292,7 +9292,7 @@ const td = {
|
|
|
9292
9292
|
() => "text-gray-400 hover:text-gray-600 p-1.5 hover:bg-gray-200 rounded-full transition-all"
|
|
9293
9293
|
), ae = m(
|
|
9294
9294
|
() => x(d({ variant: "ghost", size: "md" }))
|
|
9295
|
-
),
|
|
9295
|
+
), M = m(
|
|
9296
9296
|
() => x(d({ variant: "default", size: "lg" }))
|
|
9297
9297
|
), ee = m(
|
|
9298
9298
|
() => "px-6 py-3 bg-blue-50 border-t border-blue-100"
|
|
@@ -9304,8 +9304,8 @@ const td = {
|
|
|
9304
9304
|
() => "text-blue-600 hover:text-blue-800 ml-1 hover:bg-blue-100 rounded-full p-0.5 transition-all"
|
|
9305
9305
|
), ze = () => {
|
|
9306
9306
|
n("update:searchQuery", ""), n("update:selectedStatus", ""), n("update:dateFrom", ""), n("update:dateTo", "");
|
|
9307
|
-
const Y = t.dateFilters.map((
|
|
9308
|
-
...
|
|
9307
|
+
const Y = t.dateFilters.map((_) => ({
|
|
9308
|
+
..._,
|
|
9309
9309
|
from: "",
|
|
9310
9310
|
to: ""
|
|
9311
9311
|
}));
|
|
@@ -9323,15 +9323,15 @@ const td = {
|
|
|
9323
9323
|
break;
|
|
9324
9324
|
default:
|
|
9325
9325
|
if (Y.startsWith("date-")) {
|
|
9326
|
-
const
|
|
9327
|
-
(j) => j.key ===
|
|
9326
|
+
const _ = Y.replace("date-", ""), C = t.dateFilters.map(
|
|
9327
|
+
(j) => j.key === _ ? { ...j, from: "", to: "" } : j
|
|
9328
9328
|
);
|
|
9329
9329
|
n("update:dateFilters", C);
|
|
9330
9330
|
}
|
|
9331
9331
|
break;
|
|
9332
9332
|
}
|
|
9333
9333
|
};
|
|
9334
|
-
return (Y,
|
|
9334
|
+
return (Y, _) => {
|
|
9335
9335
|
const C = oe("font-awesome-icon");
|
|
9336
9336
|
return l(), u("div", Oc, [
|
|
9337
9337
|
i("div", {
|
|
@@ -9345,13 +9345,13 @@ const td = {
|
|
|
9345
9345
|
}, null, 8, ["class"]),
|
|
9346
9346
|
i("input", {
|
|
9347
9347
|
"model-value": e.searchQuery,
|
|
9348
|
-
onInput:
|
|
9348
|
+
onInput: _[0] || (_[0] = (j) => Y.$emit("update:searchQuery", j.target.value)),
|
|
9349
9349
|
placeholder: e.searchPlaceholder,
|
|
9350
9350
|
class: f(y.value)
|
|
9351
9351
|
}, null, 42, Vc),
|
|
9352
9352
|
e.searchQuery ? (l(), u("button", {
|
|
9353
9353
|
key: 0,
|
|
9354
|
-
onClick:
|
|
9354
|
+
onClick: _[1] || (_[1] = (j) => Y.$emit("update:searchQuery", "")),
|
|
9355
9355
|
class: f(L.value)
|
|
9356
9356
|
}, [
|
|
9357
9357
|
A(C, {
|
|
@@ -9365,11 +9365,11 @@ const td = {
|
|
|
9365
9365
|
i("div", Ec, [
|
|
9366
9366
|
A(sa, {
|
|
9367
9367
|
"model-value": e.selectedStatus,
|
|
9368
|
-
onChange:
|
|
9368
|
+
onChange: _[2] || (_[2] = (j) => Y.$emit("update:selectedStatus", j.target.value)),
|
|
9369
9369
|
class: f(V.value)
|
|
9370
9370
|
}, {
|
|
9371
9371
|
default: E(() => [
|
|
9372
|
-
|
|
9372
|
+
_[5] || (_[5] = i("option", { value: "" }, "All Status", -1)),
|
|
9373
9373
|
(l(!0), u(X, null, J(e.statusOptions, (j) => (l(), u("option", {
|
|
9374
9374
|
key: j.value,
|
|
9375
9375
|
value: j.value
|
|
@@ -9391,7 +9391,7 @@ const td = {
|
|
|
9391
9391
|
icon: "filter",
|
|
9392
9392
|
class: "w-4 h-4"
|
|
9393
9393
|
}),
|
|
9394
|
-
|
|
9394
|
+
_[6] || (_[6] = G(" Filters ", -1)),
|
|
9395
9395
|
$.value > 0 ? (l(), u("span", {
|
|
9396
9396
|
key: 0,
|
|
9397
9397
|
class: f(re.value)
|
|
@@ -9415,21 +9415,21 @@ const td = {
|
|
|
9415
9415
|
icon: "rotate-left",
|
|
9416
9416
|
class: "w-4 h-4 mr-2"
|
|
9417
9417
|
}),
|
|
9418
|
-
|
|
9418
|
+
_[7] || (_[7] = G(" Clear All ", -1))
|
|
9419
9419
|
]),
|
|
9420
9420
|
_: 1
|
|
9421
9421
|
}, 8, ["class"])) : g("", !0),
|
|
9422
9422
|
e.showExport ? (l(), R(xe, {
|
|
9423
9423
|
key: 1,
|
|
9424
|
-
onClick:
|
|
9425
|
-
class: f(
|
|
9424
|
+
onClick: _[3] || (_[3] = (j) => Y.$emit("export")),
|
|
9425
|
+
class: f(M.value)
|
|
9426
9426
|
}, {
|
|
9427
9427
|
default: E(() => [
|
|
9428
9428
|
A(C, {
|
|
9429
9429
|
icon: "download",
|
|
9430
9430
|
class: "w-4 h-4 mr-2"
|
|
9431
9431
|
}),
|
|
9432
|
-
|
|
9432
|
+
_[8] || (_[8] = G(" Export ", -1))
|
|
9433
9433
|
]),
|
|
9434
9434
|
_: 1
|
|
9435
9435
|
}, 8, ["class"])) : g("", !0),
|
|
@@ -9438,14 +9438,14 @@ const td = {
|
|
|
9438
9438
|
key: 0,
|
|
9439
9439
|
variant: "success",
|
|
9440
9440
|
size: "lg",
|
|
9441
|
-
onClick:
|
|
9441
|
+
onClick: _[4] || (_[4] = (j) => Y.$emit("add"))
|
|
9442
9442
|
}, {
|
|
9443
9443
|
default: E(() => [
|
|
9444
9444
|
A(C, {
|
|
9445
9445
|
icon: "plus",
|
|
9446
9446
|
class: "w-4 h-4 mr-2"
|
|
9447
9447
|
}),
|
|
9448
|
-
|
|
9448
|
+
_[9] || (_[9] = G(" Add ", -1))
|
|
9449
9449
|
]),
|
|
9450
9450
|
_: 1
|
|
9451
9451
|
})) : g("", !0)
|
|
@@ -9454,7 +9454,7 @@ const td = {
|
|
|
9454
9454
|
], 2),
|
|
9455
9455
|
r.value && e.dateFilters.length > 0 ? (l(), u("div", {
|
|
9456
9456
|
key: 0,
|
|
9457
|
-
class: f(
|
|
9457
|
+
class: f(D.value)
|
|
9458
9458
|
}, [
|
|
9459
9459
|
i("div", Rc, [
|
|
9460
9460
|
(l(!0), u(X, null, J(e.dateFilters, (j) => (l(), u("div", {
|
|
@@ -9690,7 +9690,7 @@ const td = {
|
|
|
9690
9690
|
() => "text-sm text-slate-700 flex-1 select-none"
|
|
9691
9691
|
), re = (ee) => {
|
|
9692
9692
|
s.value && o.value && !s.value.contains(ee.target) && !o.value.contains(ee.target) && (r.value = !1);
|
|
9693
|
-
},
|
|
9693
|
+
}, D = () => {
|
|
9694
9694
|
r.value = !r.value;
|
|
9695
9695
|
}, q = (ee) => x(b({ variant: ee.variant || "secondary" })), se = (ee) => {
|
|
9696
9696
|
let le = "middle";
|
|
@@ -9702,7 +9702,7 @@ const td = {
|
|
|
9702
9702
|
state: t.isRefreshing ? "refreshing" : "normal"
|
|
9703
9703
|
})), U = () => x("w-4 h-4", {
|
|
9704
9704
|
"animate-spin": t.isRefreshing
|
|
9705
|
-
}), ae = (ee) => t.visibleColumns.includes(ee),
|
|
9705
|
+
}), ae = (ee) => t.visibleColumns.includes(ee), M = (ee, le) => {
|
|
9706
9706
|
n("toggle-column", { column: ee, visible: le });
|
|
9707
9707
|
};
|
|
9708
9708
|
return Te(() => {
|
|
@@ -9759,7 +9759,7 @@ const td = {
|
|
|
9759
9759
|
], 2)) : g("", !0),
|
|
9760
9760
|
e.showColumnToggle ? (l(), u("div", cf, [
|
|
9761
9761
|
i("button", {
|
|
9762
|
-
onClick: oa(
|
|
9762
|
+
onClick: oa(D, ["stop"]),
|
|
9763
9763
|
class: f(h.value),
|
|
9764
9764
|
type: "button",
|
|
9765
9765
|
ref_key: "columnToggleButton",
|
|
@@ -9791,7 +9791,7 @@ const td = {
|
|
|
9791
9791
|
i("input", {
|
|
9792
9792
|
type: "checkbox",
|
|
9793
9793
|
checked: ae(te.key),
|
|
9794
|
-
onChange: (ze) =>
|
|
9794
|
+
onChange: (ze) => M(te.key, ze.target.checked),
|
|
9795
9795
|
class: f(V.value)
|
|
9796
9796
|
}, null, 42, vf),
|
|
9797
9797
|
i("span", {
|
|
@@ -10062,7 +10062,7 @@ const td = {
|
|
|
10062
10062
|
i("div", Nf, [
|
|
10063
10063
|
v.value ? (l(), u("button", {
|
|
10064
10064
|
key: 0,
|
|
10065
|
-
onClick: F[0] || (F[0] = (
|
|
10065
|
+
onClick: F[0] || (F[0] = (D) => n("toggle-mobile-sidebar")),
|
|
10066
10066
|
class: "p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-50 transition-colors"
|
|
10067
10067
|
}, [...F[5] || (F[5] = [
|
|
10068
10068
|
i("svg", {
|
|
@@ -10099,18 +10099,18 @@ const td = {
|
|
|
10099
10099
|
type: "text",
|
|
10100
10100
|
placeholder: "Search...",
|
|
10101
10101
|
class: "pl-10 pr-4 py-2 w-48 md:w-64 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none",
|
|
10102
|
-
"onUpdate:modelValue": F[1] || (F[1] = (
|
|
10102
|
+
"onUpdate:modelValue": F[1] || (F[1] = (D) => r.value = D)
|
|
10103
10103
|
}, null, 512), [
|
|
10104
10104
|
[qa, r.value]
|
|
10105
10105
|
]),
|
|
10106
10106
|
v.value ? (l(), u("button", {
|
|
10107
10107
|
key: 0,
|
|
10108
10108
|
class: "absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",
|
|
10109
|
-
onClick: F[2] || (F[2] = (
|
|
10109
|
+
onClick: F[2] || (F[2] = (D) => c.value = !1)
|
|
10110
10110
|
}, " ✕ ")) : g("", !0)
|
|
10111
10111
|
])) : v.value ? (l(), u("button", {
|
|
10112
10112
|
key: 2,
|
|
10113
|
-
onClick: F[3] || (F[3] = (
|
|
10113
|
+
onClick: F[3] || (F[3] = (D) => c.value = !0),
|
|
10114
10114
|
class: "p-2 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-50 transition-colors"
|
|
10115
10115
|
}, [...F[7] || (F[7] = [
|
|
10116
10116
|
i("svg", {
|
|
@@ -10166,15 +10166,15 @@ const td = {
|
|
|
10166
10166
|
i("h3", { class: "text-lg font-semibold text-gray-900" }, "Notifications")
|
|
10167
10167
|
], -1)),
|
|
10168
10168
|
i("div", Df, [
|
|
10169
|
-
(l(!0), u(X, null, J(e.notifications, (
|
|
10170
|
-
key:
|
|
10169
|
+
(l(!0), u(X, null, J(e.notifications, (D) => (l(), u("div", {
|
|
10170
|
+
key: D.id,
|
|
10171
10171
|
class: "p-4 border-b border-gray-100 hover:bg-gray-50 cursor-pointer"
|
|
10172
10172
|
}, [
|
|
10173
10173
|
i("div", Rf, [
|
|
10174
10174
|
F[9] || (F[9] = i("div", { class: "flex-shrink-0 w-2 h-2 mt-2 bg-blue-500 rounded-full" }, null, -1)),
|
|
10175
10175
|
i("div", Wf, [
|
|
10176
|
-
i("p", Hf, p(
|
|
10177
|
-
i("p", qf, p(
|
|
10176
|
+
i("p", Hf, p(D.title), 1),
|
|
10177
|
+
i("p", qf, p(D.time), 1)
|
|
10178
10178
|
])
|
|
10179
10179
|
])
|
|
10180
10180
|
]))), 128))
|
|
@@ -10227,53 +10227,53 @@ const td = {
|
|
|
10227
10227
|
i("p", tm, p(e.user.email), 1)
|
|
10228
10228
|
]),
|
|
10229
10229
|
i("div", am, [
|
|
10230
|
-
(l(!0), u(X, null, J(e.profileMenuItems, (
|
|
10231
|
-
key:
|
|
10230
|
+
(l(!0), u(X, null, J(e.profileMenuItems, (D) => (l(), u(X, {
|
|
10231
|
+
key: D.name
|
|
10232
10232
|
}, [
|
|
10233
|
-
|
|
10233
|
+
D.route ? (l(), R(re, {
|
|
10234
10234
|
key: 0,
|
|
10235
|
-
to:
|
|
10235
|
+
to: D.route,
|
|
10236
10236
|
class: f(N(x)(
|
|
10237
10237
|
"flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
|
|
10238
|
-
k(
|
|
10238
|
+
k(D) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
|
|
10239
10239
|
)),
|
|
10240
|
-
onClick: (q) => $(
|
|
10240
|
+
onClick: (q) => $(D)
|
|
10241
10241
|
}, {
|
|
10242
10242
|
default: E(() => [
|
|
10243
|
-
k(
|
|
10243
|
+
k(D) ? (l(), u("div", nm)) : g("", !0),
|
|
10244
10244
|
i("div", {
|
|
10245
10245
|
class: f(N(x)(
|
|
10246
10246
|
"flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors ml-2",
|
|
10247
|
-
k(
|
|
10247
|
+
k(D) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
|
|
10248
10248
|
))
|
|
10249
10249
|
}, [
|
|
10250
|
-
|
|
10250
|
+
D.icon ? (l(), R(Z, {
|
|
10251
10251
|
key: 0,
|
|
10252
|
-
icon:
|
|
10252
|
+
icon: D.icon,
|
|
10253
10253
|
class: "w-4 h-4"
|
|
10254
10254
|
}, null, 8, ["icon"])) : g("", !0)
|
|
10255
10255
|
], 2),
|
|
10256
10256
|
i("span", {
|
|
10257
10257
|
class: f(N(x)(
|
|
10258
10258
|
"flex-1 truncate font-semibold",
|
|
10259
|
-
k(
|
|
10259
|
+
k(D) ? "text-blue-700" : "text-gray-700"
|
|
10260
10260
|
))
|
|
10261
|
-
}, p(
|
|
10261
|
+
}, p(D.label), 3)
|
|
10262
10262
|
]),
|
|
10263
10263
|
_: 2
|
|
10264
10264
|
}, 1032, ["to", "class", "onClick"])) : (l(), u("button", {
|
|
10265
10265
|
key: 1,
|
|
10266
|
-
onClick: (q) => h(
|
|
10266
|
+
onClick: (q) => h(D),
|
|
10267
10267
|
class: "flex items-center w-full px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
|
|
10268
10268
|
}, [
|
|
10269
10269
|
i("div", sm, [
|
|
10270
|
-
|
|
10270
|
+
D.icon ? (l(), R(Z, {
|
|
10271
10271
|
key: 0,
|
|
10272
|
-
icon:
|
|
10272
|
+
icon: D.icon,
|
|
10273
10273
|
class: "w-4 h-4"
|
|
10274
10274
|
}, null, 8, ["icon"])) : g("", !0)
|
|
10275
10275
|
]),
|
|
10276
|
-
i("span", lm, p(
|
|
10276
|
+
i("span", lm, p(D.label), 1)
|
|
10277
10277
|
], 8, rm))
|
|
10278
10278
|
], 64))), 128))
|
|
10279
10279
|
]),
|
|
@@ -10388,7 +10388,9 @@ const td = {
|
|
|
10388
10388
|
let O = n.sidebarWidth;
|
|
10389
10389
|
return o.value && (O += 256), c.value && (O += 256), O;
|
|
10390
10390
|
}), z = (O) => {
|
|
10391
|
-
r("navigate", O), s.value && $()
|
|
10391
|
+
r("navigate", O), s.value && $();
|
|
10392
|
+
const U = o.value && d.value && d.value.subItems.some((M) => M.route === O.route), ae = c.value && n.managementSettings.some((M) => M.route === O.route);
|
|
10393
|
+
U || ae || V();
|
|
10392
10394
|
}, $ = () => {
|
|
10393
10395
|
r("update:mobileOpen", !1);
|
|
10394
10396
|
}, k = (O) => O.subItems && O.subItems.length > 0, h = (O) => {
|
|
@@ -10409,7 +10411,7 @@ const td = {
|
|
|
10409
10411
|
z(O);
|
|
10410
10412
|
}, re = (O) => {
|
|
10411
10413
|
z(O);
|
|
10412
|
-
},
|
|
10414
|
+
}, D = (O) => {
|
|
10413
10415
|
const U = n.currentPath;
|
|
10414
10416
|
return O.route ? !!(U === O.route || U.startsWith(O.route + "/")) : O.subItems && O.subItems.length > 0 ? O.subItems.some((ae) => ae.route ? U === ae.route || U.startsWith(ae.route + "/") : !1) : !1;
|
|
10415
10417
|
}, q = () => {
|
|
@@ -10482,45 +10484,45 @@ const td = {
|
|
|
10482
10484
|
])) : g("", !0),
|
|
10483
10485
|
i("nav", dm, [
|
|
10484
10486
|
i("div", cm, [
|
|
10485
|
-
(l(!0), u(X, null, J(e.navigationItems, (
|
|
10486
|
-
key:
|
|
10487
|
+
(l(!0), u(X, null, J(e.navigationItems, (M) => (l(), u(X, {
|
|
10488
|
+
key: M.name || M.label
|
|
10487
10489
|
}, [
|
|
10488
|
-
|
|
10489
|
-
k(
|
|
10490
|
+
M.type === "link" ? (l(), u("div", fm, [
|
|
10491
|
+
k(M) ? (l(), u("div", {
|
|
10490
10492
|
key: 1,
|
|
10491
|
-
onClick: (ee) => h(
|
|
10493
|
+
onClick: (ee) => h(M),
|
|
10492
10494
|
class: f(N(x)(
|
|
10493
10495
|
"flex flex-col items-center justify-center rounded-xl transition-all duration-200 cursor-pointer group relative py-4 px-3",
|
|
10494
|
-
|
|
10496
|
+
D(M) ? "bg-gradient-to-br from-blue-50 to-blue-100 border border-blue-200 shadow-sm" : "text-gray-500 hover:bg-gray-100 hover:text-gray-900 border border-transparent"
|
|
10495
10497
|
))
|
|
10496
10498
|
}, [
|
|
10497
10499
|
i("div", {
|
|
10498
10500
|
class: f(N(x)(
|
|
10499
10501
|
"flex items-center justify-center rounded-lg transition-colors mb-2",
|
|
10500
10502
|
"w-12 h-12",
|
|
10501
|
-
|
|
10503
|
+
D(M) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
|
|
10502
10504
|
))
|
|
10503
10505
|
}, [
|
|
10504
10506
|
A(Z, {
|
|
10505
|
-
icon:
|
|
10507
|
+
icon: M.icon,
|
|
10506
10508
|
class: "w-6 h-6"
|
|
10507
10509
|
}, null, 8, ["icon"])
|
|
10508
10510
|
], 2),
|
|
10509
10511
|
i("span", {
|
|
10510
10512
|
class: f(N(x)(
|
|
10511
10513
|
"text-xs font-medium text-center",
|
|
10512
|
-
|
|
10514
|
+
D(M) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
|
|
10513
10515
|
))
|
|
10514
|
-
}, p(
|
|
10515
|
-
|
|
10516
|
-
|
|
10516
|
+
}, p(M.label), 3),
|
|
10517
|
+
M.badge ? (l(), u("span", vm, p(M.badge), 1)) : g("", !0),
|
|
10518
|
+
D(M) && k(M) ? (l(), u("div", bm)) : g("", !0)
|
|
10517
10519
|
], 10, gm)) : (l(), R(ae, {
|
|
10518
10520
|
key: 0,
|
|
10519
|
-
to:
|
|
10520
|
-
onClick: (ee) => z(
|
|
10521
|
+
to: M.route,
|
|
10522
|
+
onClick: (ee) => z(M),
|
|
10521
10523
|
class: f(N(x)(
|
|
10522
10524
|
"flex flex-col items-center justify-center rounded-xl transition-all duration-200 group relative py-4 px-3",
|
|
10523
|
-
|
|
10525
|
+
D(M) ? "bg-gradient-to-br from-blue-50 to-blue-100 border border-blue-200 shadow-sm" : "text-gray-500 hover:bg-gray-100 hover:text-gray-900 border border-transparent"
|
|
10524
10526
|
))
|
|
10525
10527
|
}, {
|
|
10526
10528
|
default: E(() => [
|
|
@@ -10528,21 +10530,21 @@ const td = {
|
|
|
10528
10530
|
class: f(N(x)(
|
|
10529
10531
|
"flex items-center justify-center rounded-lg transition-colors mb-2",
|
|
10530
10532
|
"w-12 h-12",
|
|
10531
|
-
|
|
10533
|
+
D(M) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "text-gray-500 group-hover:text-gray-900 bg-gray-100 group-hover:bg-gray-200"
|
|
10532
10534
|
))
|
|
10533
10535
|
}, [
|
|
10534
10536
|
A(Z, {
|
|
10535
|
-
icon:
|
|
10537
|
+
icon: M.icon,
|
|
10536
10538
|
class: "w-6 h-6"
|
|
10537
10539
|
}, null, 8, ["icon"])
|
|
10538
10540
|
], 2),
|
|
10539
10541
|
i("span", {
|
|
10540
10542
|
class: f(N(x)(
|
|
10541
10543
|
"text-xs font-medium text-center",
|
|
10542
|
-
|
|
10544
|
+
D(M) ? "text-blue-700 font-semibold" : "text-gray-500 group-hover:text-gray-900"
|
|
10543
10545
|
))
|
|
10544
|
-
}, p(
|
|
10545
|
-
|
|
10546
|
+
}, p(M.label), 3),
|
|
10547
|
+
M.badge ? (l(), u("span", mm, p(M.badge), 1)) : g("", !0)
|
|
10546
10548
|
]),
|
|
10547
10549
|
_: 2
|
|
10548
10550
|
}, 1032, ["to", "onClick", "class"]))
|
|
@@ -10625,40 +10627,40 @@ const td = {
|
|
|
10625
10627
|
]),
|
|
10626
10628
|
i("nav", km, [
|
|
10627
10629
|
i("div", Sm, [
|
|
10628
|
-
(l(!0), u(X, null, J(d.value?.subItems, (
|
|
10629
|
-
key:
|
|
10630
|
-
to:
|
|
10631
|
-
onClick: (ee) => F(
|
|
10630
|
+
(l(!0), u(X, null, J(d.value?.subItems, (M) => (l(), R(ae, {
|
|
10631
|
+
key: M.name,
|
|
10632
|
+
to: M.route,
|
|
10633
|
+
onClick: (ee) => F(M),
|
|
10632
10634
|
class: f(
|
|
10633
10635
|
N(x)(
|
|
10634
10636
|
"flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
|
|
10635
|
-
|
|
10637
|
+
D(M) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
|
|
10636
10638
|
)
|
|
10637
10639
|
)
|
|
10638
10640
|
}, {
|
|
10639
10641
|
default: E(() => [
|
|
10640
|
-
|
|
10642
|
+
D(M) ? (l(), u("div", Cm)) : g("", !0),
|
|
10641
10643
|
i("div", {
|
|
10642
10644
|
class: f(
|
|
10643
10645
|
N(x)(
|
|
10644
10646
|
"flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors ml-2",
|
|
10645
|
-
|
|
10647
|
+
D(M) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
|
|
10646
10648
|
)
|
|
10647
10649
|
)
|
|
10648
10650
|
}, [
|
|
10649
|
-
|
|
10651
|
+
M.icon ? (l(), R(Z, {
|
|
10650
10652
|
key: 0,
|
|
10651
|
-
icon:
|
|
10653
|
+
icon: M.icon,
|
|
10652
10654
|
class: "w-4 h-4"
|
|
10653
10655
|
}, null, 8, ["icon"])) : g("", !0)
|
|
10654
10656
|
], 2),
|
|
10655
10657
|
i("span", {
|
|
10656
10658
|
class: f(N(x)(
|
|
10657
10659
|
"flex-1 truncate font-semibold",
|
|
10658
|
-
|
|
10660
|
+
D(M) ? "text-blue-700" : "text-gray-700"
|
|
10659
10661
|
))
|
|
10660
|
-
}, p(
|
|
10661
|
-
|
|
10662
|
+
}, p(M.label), 3),
|
|
10663
|
+
M.badge ? (l(), u("span", $m, p(M.badge), 1)) : g("", !0)
|
|
10662
10664
|
]),
|
|
10663
10665
|
_: 2
|
|
10664
10666
|
}, 1032, ["to", "onClick", "class"]))), 128))
|
|
@@ -10713,39 +10715,39 @@ const td = {
|
|
|
10713
10715
|
]),
|
|
10714
10716
|
i("nav", zm, [
|
|
10715
10717
|
i("div", Am, [
|
|
10716
|
-
(l(!0), u(X, null, J(e.managementSettings, (
|
|
10717
|
-
key:
|
|
10718
|
-
to:
|
|
10719
|
-
onClick: (ee) => re(
|
|
10718
|
+
(l(!0), u(X, null, J(e.managementSettings, (M) => (l(), R(ae, {
|
|
10719
|
+
key: M.name,
|
|
10720
|
+
to: M.route,
|
|
10721
|
+
onClick: (ee) => re(M),
|
|
10720
10722
|
class: f(
|
|
10721
10723
|
N(x)(
|
|
10722
10724
|
"flex items-center px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group relative",
|
|
10723
|
-
|
|
10725
|
+
D(M) ? "bg-gradient-to-br from-blue-50 to-blue-100 text-blue-700 shadow-sm border border-blue-200" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900 border border-transparent"
|
|
10724
10726
|
)
|
|
10725
10727
|
)
|
|
10726
10728
|
}, {
|
|
10727
10729
|
default: E(() => [
|
|
10728
|
-
|
|
10730
|
+
D(M) ? (l(), u("div", Im)) : g("", !0),
|
|
10729
10731
|
i("div", {
|
|
10730
10732
|
class: f(
|
|
10731
10733
|
N(x)(
|
|
10732
10734
|
"flex items-center justify-center w-8 h-8 rounded-lg mr-3 flex-shrink-0 transition-colors ml-2",
|
|
10733
|
-
|
|
10735
|
+
D(M) ? "bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md" : "bg-gray-100 text-gray-600 group-hover:bg-gray-200"
|
|
10734
10736
|
)
|
|
10735
10737
|
)
|
|
10736
10738
|
}, [
|
|
10737
|
-
|
|
10739
|
+
M.icon ? (l(), R(Z, {
|
|
10738
10740
|
key: 0,
|
|
10739
|
-
icon:
|
|
10741
|
+
icon: M.icon,
|
|
10740
10742
|
class: "w-4 h-4"
|
|
10741
10743
|
}, null, 8, ["icon"])) : g("", !0)
|
|
10742
10744
|
], 2),
|
|
10743
10745
|
i("span", {
|
|
10744
10746
|
class: f(N(x)(
|
|
10745
10747
|
"flex-1 truncate font-semibold",
|
|
10746
|
-
|
|
10748
|
+
D(M) ? "text-blue-700" : "text-gray-700"
|
|
10747
10749
|
))
|
|
10748
|
-
}, p(
|
|
10750
|
+
}, p(M.label), 3)
|
|
10749
10751
|
]),
|
|
10750
10752
|
_: 2
|
|
10751
10753
|
}, 1032, ["to", "onClick", "class"]))), 128))
|
|
@@ -11346,7 +11348,7 @@ const fg = /* @__PURE__ */ yt(Nm, [["render", cg]]), mg = { class: "min-h-screen
|
|
|
11346
11348
|
"w-full max-w-2xl mx-auto text-center"
|
|
11347
11349
|
]), re = m(() => [
|
|
11348
11350
|
"mb-8"
|
|
11349
|
-
]),
|
|
11351
|
+
]), D = m(() => [
|
|
11350
11352
|
"space-y-8"
|
|
11351
11353
|
]), q = m(() => [
|
|
11352
11354
|
"flex justify-center mb-6"
|
|
@@ -11358,7 +11360,7 @@ const fg = /* @__PURE__ */ yt(Nm, [["render", cg]]), mg = { class: "min-h-screen
|
|
|
11358
11360
|
"text-6xl font-bold text-slate-300 mb-4"
|
|
11359
11361
|
]), ae = m(() => [
|
|
11360
11362
|
"text-3xl font-bold text-slate-900"
|
|
11361
|
-
]),
|
|
11363
|
+
]), M = m(() => [
|
|
11362
11364
|
"text-lg text-slate-600 max-w-lg mx-auto"
|
|
11363
11365
|
]), ee = m(() => [
|
|
11364
11366
|
"mt-8"
|
|
@@ -11389,13 +11391,13 @@ const fg = /* @__PURE__ */ yt(Nm, [["render", cg]]), mg = { class: "min-h-screen
|
|
|
11389
11391
|
backgroundClasses: V,
|
|
11390
11392
|
contentClasses: F,
|
|
11391
11393
|
headerClasses: re,
|
|
11392
|
-
errorContentClasses:
|
|
11394
|
+
errorContentClasses: D,
|
|
11393
11395
|
illustrationClasses: q,
|
|
11394
11396
|
iconContainerClasses: se,
|
|
11395
11397
|
detailsClasses: O,
|
|
11396
11398
|
codeClasses: U,
|
|
11397
11399
|
titleClasses: ae,
|
|
11398
|
-
messageClasses:
|
|
11400
|
+
messageClasses: M,
|
|
11399
11401
|
actionsClasses: ee,
|
|
11400
11402
|
additionalInfoClasses: le,
|
|
11401
11403
|
helpClasses: ye
|