@stlhorizon/vue-ui 1.5.8 → 1.5.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 +300 -300
- package/dist/index.js +11 -11
- package/dist/src/components/Header.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Dt, computed as f, watch as ge, h as Ma, createBlock as N, openBlock as o, unref as F, normalizeClass as m, ref as M, createElementBlock as d, toDisplayString as x, createCommentVNode as p, renderSlot as $, resolveDynamicComponent as ie, createVNode as
|
|
1
|
+
import { defineComponent as Dt, computed as f, watch as ge, h as Ma, createBlock as N, openBlock as o, unref as F, normalizeClass as m, ref as M, createElementBlock as d, toDisplayString as x, createCommentVNode as p, renderSlot as $, resolveDynamicComponent as ie, createVNode as A, mergeProps as Re, createElementVNode as u, useId as lt, createTextVNode as D, withCtx as O, normalizeStyle as ke, nextTick as ta, Transition as he, Fragment as Y, renderList as X, onMounted as Ee, onUnmounted as ot, resolveComponent as ee, Teleport as La, markRaw as Ra, TransitionGroup as ar, withDirectives as it, vModelText as Wa, provide as nr, inject as Ha, vShow as Ua, createSlots as rr, withModifiers as aa } from "vue";
|
|
2
2
|
import { cva as T } from "class-variance-authority";
|
|
3
3
|
import { clsx as sr } from "clsx";
|
|
4
4
|
function k(...e) {
|
|
@@ -1704,19 +1704,19 @@ function ft(e) {
|
|
|
1704
1704
|
return !ba.includes(j);
|
|
1705
1705
|
})), i = s.filter(function(j) {
|
|
1706
1706
|
return r = j, !Qa.includes(j);
|
|
1707
|
-
}), c = ut(i, 1), v = c[0], h = v === void 0 ? null : v, S = ul(s),
|
|
1707
|
+
}), c = ut(i, 1), v = c[0], h = v === void 0 ? null : v, S = ul(s), P = C(C({}, cl(l)), {}, {
|
|
1708
1708
|
prefix: dt(h, {
|
|
1709
1709
|
family: S
|
|
1710
1710
|
})
|
|
1711
1711
|
});
|
|
1712
|
-
return C(C(C({},
|
|
1712
|
+
return C(C(C({}, P), vl({
|
|
1713
1713
|
values: e,
|
|
1714
1714
|
family: S,
|
|
1715
1715
|
styles: We,
|
|
1716
1716
|
config: E,
|
|
1717
|
-
canonical:
|
|
1717
|
+
canonical: P,
|
|
1718
1718
|
givenPrefix: r
|
|
1719
|
-
})), dl(n, r,
|
|
1719
|
+
})), dl(n, r, P));
|
|
1720
1720
|
}
|
|
1721
1721
|
function dl(e, a, t) {
|
|
1722
1722
|
var n = t.prefix, r = t.iconName;
|
|
@@ -1739,12 +1739,12 @@ var fl = mn.filter(function(e) {
|
|
|
1739
1739
|
return Object.keys(kt[e]);
|
|
1740
1740
|
}).flat();
|
|
1741
1741
|
function vl(e) {
|
|
1742
|
-
var a = e.values, t = e.family, n = e.canonical, r = e.givenPrefix, s = r === void 0 ? "" : r, l = e.styles, i = l === void 0 ? {} : l, c = e.config, v = c === void 0 ? {} : c, h = t === Ue, S = a.includes("fa-duotone") || a.includes("fad"),
|
|
1743
|
-
if (!h && (S ||
|
|
1744
|
-
var
|
|
1742
|
+
var a = e.values, t = e.family, n = e.canonical, r = e.givenPrefix, s = r === void 0 ? "" : r, l = e.styles, i = l === void 0 ? {} : l, c = e.config, v = c === void 0 ? {} : c, h = t === Ue, S = a.includes("fa-duotone") || a.includes("fad"), P = v.familyDefault === "duotone", j = n.prefix === "fad" || n.prefix === "fa-duotone";
|
|
1743
|
+
if (!h && (S || P || j) && (n.prefix = "fad"), (a.includes("fa-brands") || a.includes("fab")) && (n.prefix = "fab"), !n.prefix && fl.includes(t)) {
|
|
1744
|
+
var I = Object.keys(i).find(function(g) {
|
|
1745
1745
|
return ml.includes(g);
|
|
1746
1746
|
});
|
|
1747
|
-
if (
|
|
1747
|
+
if (I || v.autoFetchSvg) {
|
|
1748
1748
|
var w = Fr.get(t).defaultShortPrefixId;
|
|
1749
1749
|
n.prefix = w, n.iconName = Ae(n.prefix, n.iconName) || n.iconName;
|
|
1750
1750
|
}
|
|
@@ -1952,7 +1952,7 @@ function Cl(e) {
|
|
|
1952
1952
|
});
|
|
1953
1953
|
}
|
|
1954
1954
|
function Kt(e) {
|
|
1955
|
-
var a = e.icons, t = a.main, n = a.mask, r = e.prefix, s = e.iconName, l = e.transform, i = e.symbol, c = e.maskId, v = e.extra, h = e.watchable, S = h === void 0 ? !1 : h,
|
|
1955
|
+
var a = e.icons, t = a.main, n = a.mask, r = e.prefix, s = e.iconName, l = e.transform, i = e.symbol, c = e.maskId, v = e.extra, h = e.watchable, S = h === void 0 ? !1 : h, P = n.found ? n : t, j = P.width, I = P.height, w = [E.replacementClass, s ? "".concat(E.cssPrefix, "-").concat(s) : ""].filter(function(L) {
|
|
1956
1956
|
return v.classes.indexOf(L) === -1;
|
|
1957
1957
|
}).filter(function(L) {
|
|
1958
1958
|
return L !== "" || !!L;
|
|
@@ -1963,7 +1963,7 @@ function Kt(e) {
|
|
|
1963
1963
|
"data-icon": s,
|
|
1964
1964
|
class: w,
|
|
1965
1965
|
role: v.attributes.role || "img",
|
|
1966
|
-
viewBox: "0 0 ".concat(j, " ").concat(
|
|
1966
|
+
viewBox: "0 0 ".concat(j, " ").concat(I)
|
|
1967
1967
|
})
|
|
1968
1968
|
};
|
|
1969
1969
|
!Cl(v.attributes) && !v.attributes["aria-hidden"] && (g.attributes["aria-hidden"] = "true"), S && (g.attributes[Ie] = "");
|
|
@@ -1982,8 +1982,8 @@ function Kt(e) {
|
|
|
1982
1982
|
} : $e("generateAbstractIcon", b) || {
|
|
1983
1983
|
children: [],
|
|
1984
1984
|
attributes: {}
|
|
1985
|
-
},
|
|
1986
|
-
return b.children =
|
|
1985
|
+
}, z = y.children, _ = y.attributes;
|
|
1986
|
+
return b.children = z, b.attributes = _, i ? Sl(b) : kl(b);
|
|
1987
1987
|
}
|
|
1988
1988
|
function ya(e) {
|
|
1989
1989
|
var a = e.content, t = e.width, n = e.height, r = e.transform, s = e.extra, l = e.watchable, i = l === void 0 ? !1 : l, c = C(C({}, s.attributes), {}, {
|
|
@@ -2199,8 +2199,8 @@ function Sa(e) {
|
|
|
2199
2199
|
Ne(v).forEach(function(S) {
|
|
2200
2200
|
if (S.type === "childList" && S.addedNodes.length > 0 && !wa(S.addedNodes[0]) && (E.searchPseudoElements && l(S.target), t(S.target)), S.type === "attributes" && S.target.parentNode && E.searchPseudoElements && l([S.target], !0), S.type === "attributes" && wa(S.target) && ~Ws.indexOf(S.attributeName))
|
|
2201
2201
|
if (S.attributeName === "class" && Pl(S.target)) {
|
|
2202
|
-
var
|
|
2203
|
-
S.target.setAttribute(Rt, j || h),
|
|
2202
|
+
var P = ft(Ut(S.target)), j = P.prefix, I = P.iconName;
|
|
2203
|
+
S.target.setAttribute(Rt, j || h), I && S.target.setAttribute(Wt, I);
|
|
2204
2204
|
} else Tl(S.target) && r(S.target);
|
|
2205
2205
|
});
|
|
2206
2206
|
}
|
|
@@ -2308,20 +2308,20 @@ function $a(e) {
|
|
|
2308
2308
|
return Promise.resolve();
|
|
2309
2309
|
var c = Xt.begin("onTree"), v = i.reduce(function(h, S) {
|
|
2310
2310
|
try {
|
|
2311
|
-
var
|
|
2312
|
-
|
|
2311
|
+
var P = Wn(S);
|
|
2312
|
+
P && h.push(P);
|
|
2313
2313
|
} catch (j) {
|
|
2314
2314
|
xn || j.name === "MissingIcon" && console.error(j);
|
|
2315
2315
|
}
|
|
2316
2316
|
return h;
|
|
2317
2317
|
}, []);
|
|
2318
2318
|
return new Promise(function(h, S) {
|
|
2319
|
-
Promise.all(v).then(function(
|
|
2320
|
-
Ln(
|
|
2319
|
+
Promise.all(v).then(function(P) {
|
|
2320
|
+
Ln(P, function() {
|
|
2321
2321
|
n("active"), n("complete"), r("pending"), typeof a == "function" && a(), c(), h();
|
|
2322
2322
|
});
|
|
2323
|
-
}).catch(function(
|
|
2324
|
-
c(), S(
|
|
2323
|
+
}).catch(function(P) {
|
|
2324
|
+
c(), S(P);
|
|
2325
2325
|
});
|
|
2326
2326
|
});
|
|
2327
2327
|
}
|
|
@@ -2340,9 +2340,9 @@ function Wl(e) {
|
|
|
2340
2340
|
};
|
|
2341
2341
|
}
|
|
2342
2342
|
var Hl = function(a) {
|
|
2343
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transform, r = n === void 0 ? ve : n, s = t.symbol, l = s === void 0 ? !1 : s, i = t.mask, c = i === void 0 ? null : i, v = t.maskId, h = v === void 0 ? null : v, S = t.classes,
|
|
2343
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transform, r = n === void 0 ? ve : n, s = t.symbol, l = s === void 0 ? !1 : s, i = t.mask, c = i === void 0 ? null : i, v = t.maskId, h = v === void 0 ? null : v, S = t.classes, P = S === void 0 ? [] : S, j = t.attributes, I = j === void 0 ? {} : j, w = t.styles, g = w === void 0 ? {} : w;
|
|
2344
2344
|
if (a) {
|
|
2345
|
-
var b = a.prefix, y = a.iconName,
|
|
2345
|
+
var b = a.prefix, y = a.iconName, z = a.icon;
|
|
2346
2346
|
return mt(C({
|
|
2347
2347
|
type: "icon"
|
|
2348
2348
|
}, a), function() {
|
|
@@ -2351,7 +2351,7 @@ var Hl = function(a) {
|
|
|
2351
2351
|
params: t
|
|
2352
2352
|
}), Kt({
|
|
2353
2353
|
icons: {
|
|
2354
|
-
main: jt(
|
|
2354
|
+
main: jt(z),
|
|
2355
2355
|
mask: c ? jt(c.icon) : {
|
|
2356
2356
|
found: !1,
|
|
2357
2357
|
width: null,
|
|
@@ -2365,9 +2365,9 @@ var Hl = function(a) {
|
|
|
2365
2365
|
symbol: l,
|
|
2366
2366
|
maskId: h,
|
|
2367
2367
|
extra: {
|
|
2368
|
-
attributes:
|
|
2368
|
+
attributes: I,
|
|
2369
2369
|
styles: g,
|
|
2370
|
-
classes:
|
|
2370
|
+
classes: P
|
|
2371
2371
|
}
|
|
2372
2372
|
});
|
|
2373
2373
|
});
|
|
@@ -2392,14 +2392,14 @@ var Hl = function(a) {
|
|
|
2392
2392
|
return $a(r, l);
|
|
2393
2393
|
}, a.generateSvgReplacementMutation = function(t, n) {
|
|
2394
2394
|
var r = n.iconName, s = n.prefix, l = n.transform, i = n.symbol, c = n.mask, v = n.maskId, h = n.extra;
|
|
2395
|
-
return new Promise(function(S,
|
|
2395
|
+
return new Promise(function(S, P) {
|
|
2396
2396
|
Promise.all([Bt(r, s), c.iconName ? Bt(c.iconName, c.prefix) : Promise.resolve({
|
|
2397
2397
|
found: !1,
|
|
2398
2398
|
width: 512,
|
|
2399
2399
|
height: 512,
|
|
2400
2400
|
icon: {}
|
|
2401
2401
|
})]).then(function(j) {
|
|
2402
|
-
var
|
|
2402
|
+
var I = ut(j, 2), w = I[0], g = I[1];
|
|
2403
2403
|
S([t, Kt({
|
|
2404
2404
|
icons: {
|
|
2405
2405
|
main: w,
|
|
@@ -2413,7 +2413,7 @@ var Hl = function(a) {
|
|
|
2413
2413
|
extra: h,
|
|
2414
2414
|
watchable: !0
|
|
2415
2415
|
})]);
|
|
2416
|
-
}).catch(
|
|
2416
|
+
}).catch(P);
|
|
2417
2417
|
});
|
|
2418
2418
|
}, a.generateAbstractIcon = function(t) {
|
|
2419
2419
|
var n = t.children, r = t.attributes, s = t.main, l = t.transform, i = t.styles, c = ct(i);
|
|
@@ -2560,10 +2560,10 @@ function Ia(e, a) {
|
|
|
2560
2560
|
if (l && !v)
|
|
2561
2561
|
return e.removeChild(l), n();
|
|
2562
2562
|
if (v && S !== "none" && S !== "") {
|
|
2563
|
-
var
|
|
2563
|
+
var P = i.getPropertyValue("content"), j = Ql(c, h), I = Xl(P), w = v[0].startsWith("FontAwesome"), g = Jl(i), b = Gt(j, I), y = b;
|
|
2564
2564
|
if (w) {
|
|
2565
|
-
var
|
|
2566
|
-
|
|
2565
|
+
var z = il(I);
|
|
2566
|
+
z.iconName && z.prefix && (b = z.iconName, j = z.prefix);
|
|
2567
2567
|
}
|
|
2568
2568
|
if (b && !g && (!l || l.getAttribute(Rt) !== j || l.getAttribute(Wt) !== y)) {
|
|
2569
2569
|
e.setAttribute(t, y), l && e.removeChild(l);
|
|
@@ -2645,10 +2645,10 @@ function Pa(e) {
|
|
|
2645
2645
|
var i = Je(l.cssRules), c;
|
|
2646
2646
|
try {
|
|
2647
2647
|
for (i.s(); !(c = i.n()).done; ) {
|
|
2648
|
-
var v = c.value, h = ao(v.selectorText), S = Je(h),
|
|
2648
|
+
var v = c.value, h = ao(v.selectorText), S = Je(h), P;
|
|
2649
2649
|
try {
|
|
2650
|
-
for (S.s(); !(
|
|
2651
|
-
var j =
|
|
2650
|
+
for (S.s(); !(P = S.n()).done; ) {
|
|
2651
|
+
var j = P.value;
|
|
2652
2652
|
n.add(j);
|
|
2653
2653
|
}
|
|
2654
2654
|
} catch (w) {
|
|
@@ -2673,9 +2673,9 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
2673
2673
|
r.f();
|
|
2674
2674
|
}
|
|
2675
2675
|
if (!n.size) return;
|
|
2676
|
-
var
|
|
2676
|
+
var I = Array.from(n).join(", ");
|
|
2677
2677
|
try {
|
|
2678
|
-
t = e.querySelectorAll(
|
|
2678
|
+
t = e.querySelectorAll(I);
|
|
2679
2679
|
} catch {
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
@@ -2795,12 +2795,12 @@ var no = {
|
|
|
2795
2795
|
transform: "translate(".concat(s / 2, " 256)")
|
|
2796
2796
|
}, c = "translate(".concat(r.x * 32, ", ").concat(r.y * 32, ") "), v = "scale(".concat(r.size / 16 * (r.flipX ? -1 : 1), ", ").concat(r.size / 16 * (r.flipY ? -1 : 1), ") "), h = "rotate(".concat(r.rotate, " 0 0)"), S = {
|
|
2797
2797
|
transform: "".concat(c, " ").concat(v, " ").concat(h)
|
|
2798
|
-
},
|
|
2798
|
+
}, P = {
|
|
2799
2799
|
transform: "translate(".concat(l / 2 * -1, " -256)")
|
|
2800
2800
|
}, j = {
|
|
2801
2801
|
outer: i,
|
|
2802
2802
|
inner: S,
|
|
2803
|
-
path:
|
|
2803
|
+
path: P
|
|
2804
2804
|
};
|
|
2805
2805
|
return {
|
|
2806
2806
|
tag: "g",
|
|
@@ -2843,11 +2843,11 @@ var oo = {
|
|
|
2843
2843
|
},
|
|
2844
2844
|
provides: function(a) {
|
|
2845
2845
|
a.generateAbstractMask = function(t) {
|
|
2846
|
-
var n = t.children, r = t.attributes, s = t.main, l = t.mask, i = t.maskId, c = t.transform, v = s.width, h = s.icon, S = l.width,
|
|
2846
|
+
var n = t.children, r = t.attributes, s = t.main, l = t.mask, i = t.maskId, c = t.transform, v = s.width, h = s.icon, S = l.width, P = l.icon, j = Qs({
|
|
2847
2847
|
transform: c,
|
|
2848
2848
|
containerWidth: S,
|
|
2849
2849
|
iconWidth: v
|
|
2850
|
-
}),
|
|
2850
|
+
}), I = {
|
|
2851
2851
|
tag: "rect",
|
|
2852
2852
|
attributes: C(C({}, xt), {}, {
|
|
2853
2853
|
fill: "white"
|
|
@@ -2865,29 +2865,29 @@ var oo = {
|
|
|
2865
2865
|
tag: "g",
|
|
2866
2866
|
attributes: C({}, j.outer),
|
|
2867
2867
|
children: [g]
|
|
2868
|
-
}, y = "mask-".concat(i || fa()),
|
|
2868
|
+
}, y = "mask-".concat(i || fa()), z = "clip-".concat(i || fa()), _ = {
|
|
2869
2869
|
tag: "mask",
|
|
2870
2870
|
attributes: C(C({}, xt), {}, {
|
|
2871
2871
|
id: y,
|
|
2872
2872
|
maskUnits: "userSpaceOnUse",
|
|
2873
2873
|
maskContentUnits: "userSpaceOnUse"
|
|
2874
2874
|
}),
|
|
2875
|
-
children: [
|
|
2875
|
+
children: [I, b]
|
|
2876
2876
|
}, L = {
|
|
2877
2877
|
tag: "defs",
|
|
2878
2878
|
children: [{
|
|
2879
2879
|
tag: "clipPath",
|
|
2880
2880
|
attributes: {
|
|
2881
|
-
id:
|
|
2881
|
+
id: z
|
|
2882
2882
|
},
|
|
2883
|
-
children: lo(
|
|
2883
|
+
children: lo(P)
|
|
2884
2884
|
}, _]
|
|
2885
2885
|
};
|
|
2886
2886
|
return n.push(L, {
|
|
2887
2887
|
tag: "rect",
|
|
2888
2888
|
attributes: C({
|
|
2889
2889
|
fill: "currentColor",
|
|
2890
|
-
"clip-path": "url(#".concat(
|
|
2890
|
+
"clip-path": "url(#".concat(z, ")"),
|
|
2891
2891
|
mask: "url(#".concat(y, ")")
|
|
2892
2892
|
}, xt)
|
|
2893
2893
|
}), {
|
|
@@ -3111,26 +3111,26 @@ function ko(e) {
|
|
|
3111
3111
|
var So = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, qn = { exports: {} };
|
|
3112
3112
|
(function(e) {
|
|
3113
3113
|
(function(a) {
|
|
3114
|
-
var t = function(b, y,
|
|
3115
|
-
if (!v(y) || S(y) ||
|
|
3114
|
+
var t = function(b, y, z) {
|
|
3115
|
+
if (!v(y) || S(y) || P(y) || j(y) || c(y))
|
|
3116
3116
|
return y;
|
|
3117
3117
|
var _, L = 0, ae = 0;
|
|
3118
3118
|
if (h(y))
|
|
3119
3119
|
for (_ = [], ae = y.length; L < ae; L++)
|
|
3120
|
-
_.push(t(b, y[L],
|
|
3120
|
+
_.push(t(b, y[L], z));
|
|
3121
3121
|
else {
|
|
3122
3122
|
_ = {};
|
|
3123
3123
|
for (var ne in y)
|
|
3124
|
-
Object.prototype.hasOwnProperty.call(y, ne) && (_[b(ne,
|
|
3124
|
+
Object.prototype.hasOwnProperty.call(y, ne) && (_[b(ne, z)] = t(b, y[ne], z));
|
|
3125
3125
|
}
|
|
3126
3126
|
return _;
|
|
3127
3127
|
}, n = function(b, y) {
|
|
3128
3128
|
y = y || {};
|
|
3129
|
-
var
|
|
3130
|
-
return b.split(_).join(
|
|
3129
|
+
var z = y.separator || "_", _ = y.split || /(?=[A-Z])/;
|
|
3130
|
+
return b.split(_).join(z);
|
|
3131
3131
|
}, r = function(b) {
|
|
3132
|
-
return
|
|
3133
|
-
return
|
|
3132
|
+
return I(b) ? b : (b = b.replace(/[\-_\s]+(.)?/g, function(y, z) {
|
|
3133
|
+
return z ? z.toUpperCase() : "";
|
|
3134
3134
|
}), b.substr(0, 1).toLowerCase() + b.substr(1));
|
|
3135
3135
|
}, s = function(b) {
|
|
3136
3136
|
var y = r(b);
|
|
@@ -3145,16 +3145,16 @@ var So = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3145
3145
|
return i.call(b) == "[object Array]";
|
|
3146
3146
|
}, S = function(b) {
|
|
3147
3147
|
return i.call(b) == "[object Date]";
|
|
3148
|
-
},
|
|
3148
|
+
}, P = function(b) {
|
|
3149
3149
|
return i.call(b) == "[object RegExp]";
|
|
3150
3150
|
}, j = function(b) {
|
|
3151
3151
|
return i.call(b) == "[object Boolean]";
|
|
3152
|
-
},
|
|
3152
|
+
}, I = function(b) {
|
|
3153
3153
|
return b = b - 0, b === b;
|
|
3154
3154
|
}, w = function(b, y) {
|
|
3155
|
-
var
|
|
3156
|
-
return typeof
|
|
3157
|
-
return
|
|
3155
|
+
var z = y && "process" in y ? y.process : y;
|
|
3156
|
+
return typeof z != "function" ? b : function(_, L) {
|
|
3157
|
+
return z(_, b, L);
|
|
3158
3158
|
};
|
|
3159
3159
|
}, g = {
|
|
3160
3160
|
camelize: r,
|
|
@@ -3681,7 +3681,7 @@ const G = {
|
|
|
3681
3681
|
class: "ml-1 hover:bg-black/10 rounded-full p-0.5 transition-colors",
|
|
3682
3682
|
"aria-label": e.dismissLabel
|
|
3683
3683
|
}, [
|
|
3684
|
-
|
|
3684
|
+
A(t, { class: "w-3 h-3" })
|
|
3685
3685
|
], 8, Bo)) : p("", !0)
|
|
3686
3686
|
], 2));
|
|
3687
3687
|
}
|
|
@@ -3868,14 +3868,14 @@ const G = {
|
|
|
3868
3868
|
}, r = e, s = a, l = M(null), i = f(() => r.id || lt()), c = f(() => Array.isArray(r.modelValue) ? r.modelValue.includes(r.value) : r.modelValue), v = (b) => {
|
|
3869
3869
|
const y = b.target.checked;
|
|
3870
3870
|
if (Array.isArray(r.modelValue)) {
|
|
3871
|
-
const
|
|
3871
|
+
const z = [...r.modelValue];
|
|
3872
3872
|
if (y)
|
|
3873
|
-
|
|
3873
|
+
z.push(r.value);
|
|
3874
3874
|
else {
|
|
3875
|
-
const _ =
|
|
3876
|
-
_ > -1 &&
|
|
3875
|
+
const _ = z.indexOf(r.value);
|
|
3876
|
+
_ > -1 && z.splice(_, 1);
|
|
3877
3877
|
}
|
|
3878
|
-
s("update:modelValue",
|
|
3878
|
+
s("update:modelValue", z);
|
|
3879
3879
|
} else
|
|
3880
3880
|
s("update:modelValue", y);
|
|
3881
3881
|
s("change", y);
|
|
@@ -3883,7 +3883,7 @@ const G = {
|
|
|
3883
3883
|
!r.disabled && l.value && l.value.click();
|
|
3884
3884
|
}, S = f(() => {
|
|
3885
3885
|
if (r.error) return `${i.value}-error`;
|
|
3886
|
-
}),
|
|
3886
|
+
}), P = f(() => ({
|
|
3887
3887
|
sm: "w-4 h-4",
|
|
3888
3888
|
md: "w-5 h-5",
|
|
3889
3889
|
lg: "w-6 h-6"
|
|
@@ -3897,10 +3897,10 @@ const G = {
|
|
|
3897
3897
|
{
|
|
3898
3898
|
"cursor-not-allowed": r.disabled
|
|
3899
3899
|
}
|
|
3900
|
-
]),
|
|
3900
|
+
]), I = f(() => [
|
|
3901
3901
|
"flex items-center justify-center rounded border-2 transition-all duration-200",
|
|
3902
3902
|
"cursor-pointer select-none",
|
|
3903
|
-
|
|
3903
|
+
P.value,
|
|
3904
3904
|
{
|
|
3905
3905
|
"bg-blue-600 border-blue-600 text-white": c.value && !r.disabled && r.variant === "default",
|
|
3906
3906
|
"bg-red-600 border-red-600 text-white": c.value && !r.disabled && r.variant === "error",
|
|
@@ -3940,7 +3940,7 @@ const G = {
|
|
|
3940
3940
|
onChange: v
|
|
3941
3941
|
}, null, 42, Do),
|
|
3942
3942
|
u("div", {
|
|
3943
|
-
class: m(
|
|
3943
|
+
class: m(I.value),
|
|
3944
3944
|
onClick: h
|
|
3945
3945
|
}, [
|
|
3946
3946
|
c.value && !e.indeterminate ? (o(), N(t, {
|
|
@@ -4212,10 +4212,10 @@ const G = {
|
|
|
4212
4212
|
() => "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted"
|
|
4213
4213
|
), S = (j) => {
|
|
4214
4214
|
r.value = !1, s.value = !1, n("load", j);
|
|
4215
|
-
},
|
|
4215
|
+
}, P = (j) => {
|
|
4216
4216
|
r.value = !1, s.value = !0, n("error", j);
|
|
4217
4217
|
};
|
|
4218
|
-
return (j,
|
|
4218
|
+
return (j, I) => (o(), d("div", {
|
|
4219
4219
|
class: m(i.value)
|
|
4220
4220
|
}, [
|
|
4221
4221
|
u("img", {
|
|
@@ -4224,7 +4224,7 @@ const G = {
|
|
|
4224
4224
|
class: m(c.value),
|
|
4225
4225
|
loading: e.loading,
|
|
4226
4226
|
onLoad: S,
|
|
4227
|
-
onError:
|
|
4227
|
+
onError: P
|
|
4228
4228
|
}, null, 42, qo),
|
|
4229
4229
|
r.value ? (o(), d("div", {
|
|
4230
4230
|
key: 0,
|
|
@@ -4239,11 +4239,11 @@ const G = {
|
|
|
4239
4239
|
key: 1,
|
|
4240
4240
|
class: m(h.value)
|
|
4241
4241
|
}, [
|
|
4242
|
-
|
|
4242
|
+
A(G, {
|
|
4243
4243
|
name: "ImageOff",
|
|
4244
4244
|
class: "h-8 w-8 text-muted-foreground"
|
|
4245
4245
|
}),
|
|
4246
|
-
|
|
4246
|
+
I[0] || (I[0] = u("span", { class: "text-sm text-muted-foreground" }, "Failed to load image", -1))
|
|
4247
4247
|
], 2)) : p("", !0)
|
|
4248
4248
|
], 2));
|
|
4249
4249
|
}
|
|
@@ -4332,9 +4332,9 @@ const G = {
|
|
|
4332
4332
|
r("keydown", y);
|
|
4333
4333
|
}, S = () => {
|
|
4334
4334
|
r("update:modelValue", ""), r("clear"), s.value?.focus();
|
|
4335
|
-
},
|
|
4335
|
+
}, P = f(() => !!n.error || n.variant === "error"), j = f(() => {
|
|
4336
4336
|
if (n.error) return `${l.value}-error`;
|
|
4337
|
-
}),
|
|
4337
|
+
}), I = f(() => ({
|
|
4338
4338
|
sm: "px-3 py-1.5 text-sm",
|
|
4339
4339
|
md: "px-3 py-2 text-sm",
|
|
4340
4340
|
lg: "px-4 py-3 text-base"
|
|
@@ -4351,7 +4351,7 @@ const G = {
|
|
|
4351
4351
|
"focus:outline-none focus:ring-2 focus:ring-offset-0",
|
|
4352
4352
|
"disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
|
|
4353
4353
|
"placeholder:text-slate-400",
|
|
4354
|
-
|
|
4354
|
+
I.value,
|
|
4355
4355
|
w.value,
|
|
4356
4356
|
{
|
|
4357
4357
|
"pl-10": n.iconLeft,
|
|
@@ -4362,7 +4362,7 @@ const G = {
|
|
|
4362
4362
|
focus: () => s.value?.focus(),
|
|
4363
4363
|
blur: () => s.value?.blur(),
|
|
4364
4364
|
select: () => s.value?.select()
|
|
4365
|
-
}), (y,
|
|
4365
|
+
}), (y, z) => (o(), d("div", Go, [
|
|
4366
4366
|
e.iconLeft ? (o(), d("div", Ko, [
|
|
4367
4367
|
(o(), N(ie(e.iconLeft), {
|
|
4368
4368
|
class: m(g.value)
|
|
@@ -4381,7 +4381,7 @@ const G = {
|
|
|
4381
4381
|
autocomplete: e.autocomplete,
|
|
4382
4382
|
class: m(b.value),
|
|
4383
4383
|
"aria-describedby": j.value,
|
|
4384
|
-
"aria-invalid":
|
|
4384
|
+
"aria-invalid": P.value,
|
|
4385
4385
|
onInput: i,
|
|
4386
4386
|
onBlur: c,
|
|
4387
4387
|
onFocus: v,
|
|
@@ -4395,7 +4395,7 @@ const G = {
|
|
|
4395
4395
|
type: "button",
|
|
4396
4396
|
"aria-label": e.clearLabel
|
|
4397
4397
|
}, [
|
|
4398
|
-
|
|
4398
|
+
A(G, {
|
|
4399
4399
|
name: "x-mark",
|
|
4400
4400
|
class: "w-5 h-5"
|
|
4401
4401
|
})
|
|
@@ -5051,7 +5051,7 @@ const G = {
|
|
|
5051
5051
|
setup(e, { expose: a, emit: t }) {
|
|
5052
5052
|
const n = e, r = t, s = M(null), l = f(() => n.id || lt()), i = (g) => {
|
|
5053
5053
|
r("update:modelValue", g.target.value), n.autoResize && ta(() => w());
|
|
5054
|
-
}, c = (g) => r("blur", g), v = (g) => r("focus", g), h = (g) => r("keydown", g), S = f(() => !!n.error || n.variant === "error"),
|
|
5054
|
+
}, c = (g) => r("blur", g), v = (g) => r("focus", g), h = (g) => r("keydown", g), S = f(() => !!n.error || n.variant === "error"), P = f(
|
|
5055
5055
|
() => n.error ? `${l.value}-error` : void 0
|
|
5056
5056
|
), j = T(
|
|
5057
5057
|
"block w-full rounded-lg border transition-colors duration-200 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:bg-slate-50 disabled:text-slate-500 disabled:cursor-not-allowed",
|
|
@@ -5080,7 +5080,7 @@ const G = {
|
|
|
5080
5080
|
resize: "vertical"
|
|
5081
5081
|
}
|
|
5082
5082
|
}
|
|
5083
|
-
),
|
|
5083
|
+
), I = f(
|
|
5084
5084
|
() => k(j({ size: n.size, variant: n.variant, resize: n.resize }))
|
|
5085
5085
|
), w = () => {
|
|
5086
5086
|
if (!s.value || !n.autoResize) return;
|
|
@@ -5104,8 +5104,8 @@ const G = {
|
|
|
5104
5104
|
required: e.required,
|
|
5105
5105
|
rows: e.rows,
|
|
5106
5106
|
maxlength: e.maxlength,
|
|
5107
|
-
class: m(
|
|
5108
|
-
"aria-describedby":
|
|
5107
|
+
class: m(I.value),
|
|
5108
|
+
"aria-describedby": P.value,
|
|
5109
5109
|
"aria-invalid": S.value,
|
|
5110
5110
|
onInput: i,
|
|
5111
5111
|
onBlur: c,
|
|
@@ -5175,7 +5175,7 @@ const G = {
|
|
|
5175
5175
|
onMouseleave: v
|
|
5176
5176
|
}, [
|
|
5177
5177
|
$(h.$slots, "default"),
|
|
5178
|
-
|
|
5178
|
+
A(he, {
|
|
5179
5179
|
"enter-active-class": "transition-opacity duration-200",
|
|
5180
5180
|
"enter-from-class": "opacity-0",
|
|
5181
5181
|
"enter-to-class": "opacity-100",
|
|
@@ -5386,7 +5386,7 @@ const G = {
|
|
|
5386
5386
|
d="M6 18L18 6M6 6l12 12" />
|
|
5387
5387
|
</svg>
|
|
5388
5388
|
`
|
|
5389
|
-
},
|
|
5389
|
+
}, P = f(() => ({
|
|
5390
5390
|
info: i,
|
|
5391
5391
|
success: c,
|
|
5392
5392
|
warning: v,
|
|
@@ -5408,7 +5408,7 @@ const G = {
|
|
|
5408
5408
|
},
|
|
5409
5409
|
defaultVariants: { variant: "default" }
|
|
5410
5410
|
}
|
|
5411
|
-
),
|
|
5411
|
+
), I = f(() => ["w-5 h-5", {
|
|
5412
5412
|
info: "text-blue-500",
|
|
5413
5413
|
success: "text-green-500",
|
|
5414
5414
|
warning: "text-yellow-500",
|
|
@@ -5439,8 +5439,8 @@ const G = {
|
|
|
5439
5439
|
}, [
|
|
5440
5440
|
u("div", hi, [
|
|
5441
5441
|
e.showIcon ? (o(), d("div", bi, [
|
|
5442
|
-
(o(), N(ie(
|
|
5443
|
-
class: m(
|
|
5442
|
+
(o(), N(ie(P.value), {
|
|
5443
|
+
class: m(I.value)
|
|
5444
5444
|
}, null, 8, ["class"]))
|
|
5445
5445
|
])) : p("", !0),
|
|
5446
5446
|
u("div", pi, [
|
|
@@ -5458,7 +5458,7 @@ const G = {
|
|
|
5458
5458
|
key: y.label,
|
|
5459
5459
|
variant: y.variant || "outline",
|
|
5460
5460
|
size: y.size || "sm",
|
|
5461
|
-
onClick: (
|
|
5461
|
+
onClick: (z) => l(y)
|
|
5462
5462
|
}, {
|
|
5463
5463
|
default: O(() => [
|
|
5464
5464
|
D(x(y.label), 1)
|
|
@@ -5474,7 +5474,7 @@ const G = {
|
|
|
5474
5474
|
class: m(w.value),
|
|
5475
5475
|
"aria-label": e.dismissLabel
|
|
5476
5476
|
}, [
|
|
5477
|
-
|
|
5477
|
+
A(S, { class: "w-4 h-4" })
|
|
5478
5478
|
], 10, wi)) : p("", !0)
|
|
5479
5479
|
])
|
|
5480
5480
|
], 2)) : p("", !0)
|
|
@@ -5888,7 +5888,7 @@ const G = {
|
|
|
5888
5888
|
max: e.max,
|
|
5889
5889
|
onInput: s[0] || (s[0] = (l) => r.$emit("update:modelValue", l.target.value))
|
|
5890
5890
|
}, null, 42, Ri),
|
|
5891
|
-
|
|
5891
|
+
A(G, {
|
|
5892
5892
|
name: "calendar",
|
|
5893
5893
|
class: "absolute right-3 top-1/2 transform -translate-y-1/2 w-4 h-4 pointer-events-none text-gray-400"
|
|
5894
5894
|
})
|
|
@@ -5962,13 +5962,13 @@ const G = {
|
|
|
5962
5962
|
}, [
|
|
5963
5963
|
$(h.$slots, "trigger", {}, () => [
|
|
5964
5964
|
u("span", null, x(e.triggerText), 1),
|
|
5965
|
-
|
|
5965
|
+
A(G, {
|
|
5966
5966
|
name: "chevron-down",
|
|
5967
5967
|
class: "ml-2 h-4 w-4"
|
|
5968
5968
|
})
|
|
5969
5969
|
])
|
|
5970
5970
|
], 10, Hi),
|
|
5971
|
-
|
|
5971
|
+
A(he, {
|
|
5972
5972
|
"enter-active-class": "transition ease-out duration-100",
|
|
5973
5973
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
5974
5974
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -6080,36 +6080,36 @@ const G = {
|
|
|
6080
6080
|
)
|
|
6081
6081
|
), v = (y) => {
|
|
6082
6082
|
y.preventDefault(), s.value = !1;
|
|
6083
|
-
const
|
|
6084
|
-
w(
|
|
6083
|
+
const z = Array.from(y.dataTransfer.files);
|
|
6084
|
+
w(z);
|
|
6085
6085
|
}, h = (y) => {
|
|
6086
6086
|
y.preventDefault();
|
|
6087
6087
|
}, S = (y) => {
|
|
6088
6088
|
y.preventDefault(), s.value = !0;
|
|
6089
|
-
},
|
|
6089
|
+
}, P = (y) => {
|
|
6090
6090
|
y.preventDefault(), s.value = !1;
|
|
6091
6091
|
}, j = () => {
|
|
6092
6092
|
l.value?.click();
|
|
6093
|
-
},
|
|
6094
|
-
const
|
|
6095
|
-
w(
|
|
6093
|
+
}, I = (y) => {
|
|
6094
|
+
const z = Array.from(y.target.files);
|
|
6095
|
+
w(z);
|
|
6096
6096
|
}, w = (y) => {
|
|
6097
|
-
const
|
|
6098
|
-
t.multiple ? r.value.push(...
|
|
6097
|
+
const z = y.filter((_) => !(t.maxSize && _.size > t.maxSize));
|
|
6098
|
+
t.multiple ? r.value.push(...z) : r.value = z.slice(0, 1), n("files-selected", r.value);
|
|
6099
6099
|
}, g = (y) => {
|
|
6100
6100
|
r.value.splice(y, 1), n("file-removed", r.value);
|
|
6101
6101
|
}, b = (y) => {
|
|
6102
6102
|
if (y === 0) return "0 Bytes";
|
|
6103
|
-
const
|
|
6104
|
-
return parseFloat((y / Math.pow(
|
|
6103
|
+
const z = 1024, _ = ["Bytes", "KB", "MB", "GB"], L = Math.floor(Math.log(y) / Math.log(z));
|
|
6104
|
+
return parseFloat((y / Math.pow(z, L)).toFixed(2)) + " " + _[L];
|
|
6105
6105
|
};
|
|
6106
|
-
return (y,
|
|
6106
|
+
return (y, z) => (o(), d("div", Gi, [
|
|
6107
6107
|
u("div", {
|
|
6108
6108
|
class: m(c.value),
|
|
6109
6109
|
onDrop: v,
|
|
6110
6110
|
onDragover: h,
|
|
6111
6111
|
onDragenter: S,
|
|
6112
|
-
onDragleave:
|
|
6112
|
+
onDragleave: P,
|
|
6113
6113
|
onClick: j
|
|
6114
6114
|
}, [
|
|
6115
6115
|
u("input", {
|
|
@@ -6119,14 +6119,14 @@ const G = {
|
|
|
6119
6119
|
multiple: e.multiple,
|
|
6120
6120
|
accept: e.accept,
|
|
6121
6121
|
class: "hidden",
|
|
6122
|
-
onChange:
|
|
6122
|
+
onChange: I
|
|
6123
6123
|
}, null, 40, Ki),
|
|
6124
6124
|
u("div", Xi, [
|
|
6125
|
-
|
|
6125
|
+
A(G, {
|
|
6126
6126
|
name: "upload",
|
|
6127
6127
|
class: "h-8 w-8 text-muted-foreground mb-2"
|
|
6128
6128
|
}),
|
|
6129
|
-
|
|
6129
|
+
z[0] || (z[0] = u("p", { class: "text-sm text-muted-foreground text-center" }, [
|
|
6130
6130
|
u("span", { class: "font-semibold" }, "Click to upload"),
|
|
6131
6131
|
D(" or drag and drop ")
|
|
6132
6132
|
], -1)),
|
|
@@ -6139,7 +6139,7 @@ const G = {
|
|
|
6139
6139
|
class: "flex items-center justify-between p-2 bg-muted rounded-md"
|
|
6140
6140
|
}, [
|
|
6141
6141
|
u("div", Zi, [
|
|
6142
|
-
|
|
6142
|
+
A(G, {
|
|
6143
6143
|
name: "file",
|
|
6144
6144
|
class: "h-4 w-4 text-muted-foreground"
|
|
6145
6145
|
}),
|
|
@@ -6150,7 +6150,7 @@ const G = {
|
|
|
6150
6150
|
onClick: (ae) => g(L),
|
|
6151
6151
|
class: "text-muted-foreground hover:text-foreground"
|
|
6152
6152
|
}, [
|
|
6153
|
-
|
|
6153
|
+
A(G, {
|
|
6154
6154
|
name: "x",
|
|
6155
6155
|
class: "h-4 w-4"
|
|
6156
6156
|
})
|
|
@@ -6185,8 +6185,8 @@ const G = {
|
|
|
6185
6185
|
const a = e, t = lt(), n = f(() => !!a.error), r = M(!1), s = () => {
|
|
6186
6186
|
r.value = !r.value;
|
|
6187
6187
|
}, l = f(() => {
|
|
6188
|
-
const
|
|
6189
|
-
return a.error ?
|
|
6188
|
+
const P = [];
|
|
6189
|
+
return a.error ? P.push(`${t}-error`) : a.helpText && P.push(`${t}-help`), P.length > 0 ? P.join(" ") : void 0;
|
|
6190
6190
|
}), i = T("", {
|
|
6191
6191
|
variants: {
|
|
6192
6192
|
size: {
|
|
@@ -6237,10 +6237,10 @@ const G = {
|
|
|
6237
6237
|
},
|
|
6238
6238
|
defaultVariants: { size: "md" }
|
|
6239
6239
|
});
|
|
6240
|
-
return (
|
|
6241
|
-
const
|
|
6240
|
+
return (P, j) => {
|
|
6241
|
+
const I = ee("font-awesome-icon");
|
|
6242
6242
|
return o(), d("div", {
|
|
6243
|
-
class: m(F(k)(F(i)({ size: e.size }),
|
|
6243
|
+
class: m(F(k)(F(i)({ size: e.size }), P.$attrs.class))
|
|
6244
6244
|
}, [
|
|
6245
6245
|
e.label ? (o(), d("label", {
|
|
6246
6246
|
key: 0,
|
|
@@ -6255,7 +6255,7 @@ const G = {
|
|
|
6255
6255
|
class: m(F(k)(F(v)({ size: e.size })))
|
|
6256
6256
|
}, x(e.description), 3)) : p("", !0),
|
|
6257
6257
|
u("div", lu, [
|
|
6258
|
-
$(
|
|
6258
|
+
$(P.$slots, "default", {
|
|
6259
6259
|
fieldId: F(t),
|
|
6260
6260
|
hasError: n.value,
|
|
6261
6261
|
ariaDescribedBy: l.value,
|
|
@@ -6269,13 +6269,13 @@ const G = {
|
|
|
6269
6269
|
class: "absolute inset-y-0 right-0 pr-3 flex items-center text-slate-400 hover:text-slate-600 transition-colors",
|
|
6270
6270
|
"aria-label": r.value ? "Hide password" : "Show password"
|
|
6271
6271
|
}, [
|
|
6272
|
-
|
|
6272
|
+
A(I, {
|
|
6273
6273
|
icon: r.value ? "eye-slash" : "eye",
|
|
6274
6274
|
class: "w-4 h-4"
|
|
6275
6275
|
}, null, 8, ["icon"])
|
|
6276
6276
|
], 8, ou)) : p("", !0)
|
|
6277
6277
|
]),
|
|
6278
|
-
|
|
6278
|
+
A(he, {
|
|
6279
6279
|
"enter-active-class": "transition-all duration-200",
|
|
6280
6280
|
"enter-from-class": "opacity-0 -translate-y-1",
|
|
6281
6281
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -6291,7 +6291,7 @@ const G = {
|
|
|
6291
6291
|
role: "alert",
|
|
6292
6292
|
"aria-live": "polite"
|
|
6293
6293
|
}, [
|
|
6294
|
-
|
|
6294
|
+
A(I, {
|
|
6295
6295
|
icon: "exclamation-triangle",
|
|
6296
6296
|
class: "w-4 h-4 flex-shrink-0 mt-0.5"
|
|
6297
6297
|
}),
|
|
@@ -6305,7 +6305,7 @@ const G = {
|
|
|
6305
6305
|
id: `${F(t)}-help`,
|
|
6306
6306
|
class: m(F(k)(F(S)({ size: e.size })))
|
|
6307
6307
|
}, x(e.helpText), 11, uu)) : p("", !0),
|
|
6308
|
-
|
|
6308
|
+
A(he, {
|
|
6309
6309
|
"enter-active-class": "transition-all duration-200",
|
|
6310
6310
|
"enter-from-class": "opacity-0 -translate-y-1",
|
|
6311
6311
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -6318,7 +6318,7 @@ const G = {
|
|
|
6318
6318
|
key: 0,
|
|
6319
6319
|
class: m(F(k)(F(h)({ size: e.size, intent: "success" })))
|
|
6320
6320
|
}, [
|
|
6321
|
-
|
|
6321
|
+
A(I, {
|
|
6322
6322
|
icon: "check",
|
|
6323
6323
|
class: "w-4 h-4 flex-shrink-0 mt-0.5"
|
|
6324
6324
|
}),
|
|
@@ -6537,7 +6537,7 @@ const G = {
|
|
|
6537
6537
|
};
|
|
6538
6538
|
}
|
|
6539
6539
|
}), (l, i) => (o(), N(La, { to: "body" }, [
|
|
6540
|
-
|
|
6540
|
+
A(he, {
|
|
6541
6541
|
"enter-active-class": "transition-opacity duration-300",
|
|
6542
6542
|
"enter-from-class": "opacity-0",
|
|
6543
6543
|
"enter-to-class": "opacity-100",
|
|
@@ -6557,7 +6557,7 @@ const G = {
|
|
|
6557
6557
|
onClick: r,
|
|
6558
6558
|
class: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
|
|
6559
6559
|
}, [
|
|
6560
|
-
|
|
6560
|
+
A(G, {
|
|
6561
6561
|
icon: "x",
|
|
6562
6562
|
class: "h-4 w-4"
|
|
6563
6563
|
}),
|
|
@@ -6709,7 +6709,7 @@ const G = {
|
|
|
6709
6709
|
t.autoClose > 0 && setTimeout(() => {
|
|
6710
6710
|
S();
|
|
6711
6711
|
}, t.autoClose);
|
|
6712
|
-
}), (
|
|
6712
|
+
}), (P, j) => (o(), N(he, {
|
|
6713
6713
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
6714
6714
|
"enter-from-class": "transform translate-x-full opacity-0",
|
|
6715
6715
|
"enter-to-class": "transform translate-x-0 opacity-100",
|
|
@@ -6726,7 +6726,7 @@ const G = {
|
|
|
6726
6726
|
}, [
|
|
6727
6727
|
u("div", Bu, [
|
|
6728
6728
|
e.showIcon ? (o(), d("div", Ou, [
|
|
6729
|
-
|
|
6729
|
+
A(G, {
|
|
6730
6730
|
name: v.value,
|
|
6731
6731
|
class: m(h.value)
|
|
6732
6732
|
}, null, 8, ["name", "class"])
|
|
@@ -6737,14 +6737,14 @@ const G = {
|
|
|
6737
6737
|
key: 1,
|
|
6738
6738
|
class: m(["text-sm", { "mt-1": e.title }])
|
|
6739
6739
|
}, x(e.message), 3)) : p("", !0),
|
|
6740
|
-
$(
|
|
6740
|
+
$(P.$slots, "default")
|
|
6741
6741
|
]),
|
|
6742
6742
|
e.dismissible ? (o(), d("button", {
|
|
6743
6743
|
key: 1,
|
|
6744
6744
|
onClick: S,
|
|
6745
6745
|
class: "flex-shrink-0 rounded-md p-1.5 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
6746
6746
|
}, [
|
|
6747
|
-
|
|
6747
|
+
A(G, {
|
|
6748
6748
|
name: "x",
|
|
6749
6749
|
class: "h-4 w-4"
|
|
6750
6750
|
})
|
|
@@ -6900,7 +6900,7 @@ const _u = {
|
|
|
6900
6900
|
},
|
|
6901
6901
|
defaultVariants: { variant: "default" }
|
|
6902
6902
|
}
|
|
6903
|
-
), i = (
|
|
6903
|
+
), i = (I) => k(l({ variant: I.variant })), c = {
|
|
6904
6904
|
default: "bell",
|
|
6905
6905
|
info: "info",
|
|
6906
6906
|
success: "check-circle",
|
|
@@ -6914,18 +6914,18 @@ const _u = {
|
|
|
6914
6914
|
warning: "text-yellow-600 dark:text-yellow-400",
|
|
6915
6915
|
error: "text-red-600 dark:text-red-400",
|
|
6916
6916
|
loading: "text-muted-foreground animate-spin"
|
|
6917
|
-
}, h = (
|
|
6918
|
-
const w = v[
|
|
6919
|
-
return
|
|
6920
|
-
},
|
|
6921
|
-
return (
|
|
6917
|
+
}, h = (I) => I.icon || c[I.variant] || c.default, S = (I) => {
|
|
6918
|
+
const w = v[I.variant] || v.default;
|
|
6919
|
+
return I.variant === "loading" ? `${w} animate-spin` : w;
|
|
6920
|
+
}, P = (I) => I.icon !== !1, j = (I) => I.dismissible !== !1 && (I.closeButton || a.closeButton || I.dismissible);
|
|
6921
|
+
return (I, w) => (o(), N(La, { to: "body" }, [
|
|
6922
6922
|
u("div", {
|
|
6923
6923
|
class: m(F(k)(
|
|
6924
6924
|
s.value,
|
|
6925
6925
|
"fixed z-[100] flex max-h-screen w-full p-4 md:max-w-[420px]"
|
|
6926
6926
|
))
|
|
6927
6927
|
}, [
|
|
6928
|
-
|
|
6928
|
+
A(ar, {
|
|
6929
6929
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
6930
6930
|
"enter-from-class": "transform translate-x-full opacity-0 scale-95",
|
|
6931
6931
|
"enter-to-class": "transform translate-x-0 opacity-100 scale-100",
|
|
@@ -6943,7 +6943,7 @@ const _u = {
|
|
|
6943
6943
|
role: "alert",
|
|
6944
6944
|
"aria-live": g.variant === "error" ? "assertive" : "polite"
|
|
6945
6945
|
}, [
|
|
6946
|
-
|
|
6946
|
+
P(g) ? (o(), N(G, {
|
|
6947
6947
|
key: 0,
|
|
6948
6948
|
icon: h(g),
|
|
6949
6949
|
class: m([S(g), "h-4 w-4 shrink-0"])
|
|
@@ -6967,7 +6967,7 @@ const _u = {
|
|
|
6967
6967
|
onClick: (b) => F(n)(g.id),
|
|
6968
6968
|
class: "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100"
|
|
6969
6969
|
}, [
|
|
6970
|
-
|
|
6970
|
+
A(G, {
|
|
6971
6971
|
icon: "x",
|
|
6972
6972
|
class: "h-4 w-4"
|
|
6973
6973
|
})
|
|
@@ -7040,14 +7040,14 @@ const _u = {
|
|
|
7040
7040
|
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
|
|
7041
7041
|
<path class="opacity-75" fill="currentColor" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"/>
|
|
7042
7042
|
</svg>`
|
|
7043
|
-
}, s = e, l = a, i = M(null), c = M(null), v = M(!1), h = M(-1), S = M(null),
|
|
7043
|
+
}, s = e, l = a, i = M(null), c = M(null), v = M(!1), h = M(-1), S = M(null), P = (B) => {
|
|
7044
7044
|
const q = B.target.value;
|
|
7045
7045
|
l("update:modelValue", q), S.value && clearTimeout(S.value), S.value = setTimeout(() => {
|
|
7046
7046
|
q.length >= s.minLength ? (l("search", q), v.value = !0) : v.value = !1;
|
|
7047
7047
|
}, s.debounce);
|
|
7048
7048
|
}, j = (B) => {
|
|
7049
7049
|
l("focus", B), s.modelValue.length >= s.minLength && (v.value = !0);
|
|
7050
|
-
},
|
|
7050
|
+
}, I = (B) => {
|
|
7051
7051
|
l("blur", B), setTimeout(() => {
|
|
7052
7052
|
v.value = !1, h.value = -1;
|
|
7053
7053
|
}, 150);
|
|
@@ -7075,7 +7075,7 @@ const _u = {
|
|
|
7075
7075
|
if (!s.highlightMatches || !s.modelValue || !B) return B;
|
|
7076
7076
|
const q = new RegExp(`(${s.modelValue})`, "gi");
|
|
7077
7077
|
return B.replace(q, '<mark class="bg-yellow-200">$1</mark>');
|
|
7078
|
-
},
|
|
7078
|
+
}, z = T(
|
|
7079
7079
|
"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",
|
|
7080
7080
|
{
|
|
7081
7081
|
variants: {
|
|
@@ -7096,7 +7096,7 @@ const _u = {
|
|
|
7096
7096
|
}
|
|
7097
7097
|
},
|
|
7098
7098
|
defaultVariants: { size: "md" }
|
|
7099
|
-
}), L = f(() => k(
|
|
7099
|
+
}), L = f(() => k(z({ size: s.size }))), ae = f(() => k(_({ size: s.size }))), ne = f(
|
|
7100
7100
|
() => k("absolute z-50 w-full mt-1 bg-white rounded-lg shadow-lg border border-slate-200 max-h-96 overflow-hidden")
|
|
7101
7101
|
), R = (B) => k(
|
|
7102
7102
|
"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",
|
|
@@ -7113,7 +7113,7 @@ const _u = {
|
|
|
7113
7113
|
}, [
|
|
7114
7114
|
u("div", Ku, [
|
|
7115
7115
|
u("div", Xu, [
|
|
7116
|
-
|
|
7116
|
+
A(t, {
|
|
7117
7117
|
class: m(ae.value)
|
|
7118
7118
|
}, null, 8, ["class"])
|
|
7119
7119
|
]),
|
|
@@ -7124,9 +7124,9 @@ const _u = {
|
|
|
7124
7124
|
placeholder: e.placeholder,
|
|
7125
7125
|
disabled: e.disabled,
|
|
7126
7126
|
class: m(L.value),
|
|
7127
|
-
onInput:
|
|
7127
|
+
onInput: P,
|
|
7128
7128
|
onFocus: j,
|
|
7129
|
-
onBlur:
|
|
7129
|
+
onBlur: I,
|
|
7130
7130
|
onKeydown: b
|
|
7131
7131
|
}, null, 42, Ju),
|
|
7132
7132
|
e.modelValue || e.loading ? (o(), d("div", Qu, [
|
|
@@ -7136,13 +7136,13 @@ const _u = {
|
|
|
7136
7136
|
class: "text-slate-400 hover:text-slate-600 transition-colors p-1 rounded-full hover:bg-slate-100",
|
|
7137
7137
|
"aria-label": e.clearLabel
|
|
7138
7138
|
}, [
|
|
7139
|
-
|
|
7139
|
+
A(n, { class: "w-4 h-4" })
|
|
7140
7140
|
], 8, Zu)) : e.loading ? (o(), d("div", ec, [
|
|
7141
|
-
|
|
7141
|
+
A(r, { class: "w-4 h-4 text-slate-400" })
|
|
7142
7142
|
])) : p("", !0)
|
|
7143
7143
|
])) : p("", !0)
|
|
7144
7144
|
]),
|
|
7145
|
-
|
|
7145
|
+
A(he, {
|
|
7146
7146
|
"enter-active-class": "transition-all duration-200",
|
|
7147
7147
|
"enter-from-class": "opacity-0 scale-95 translate-y-1",
|
|
7148
7148
|
"enter-to-class": "opacity-100 scale-100 translate-y-0",
|
|
@@ -7394,7 +7394,7 @@ const _u = {
|
|
|
7394
7394
|
lg: "text-lg font-medium"
|
|
7395
7395
|
}
|
|
7396
7396
|
}
|
|
7397
|
-
}),
|
|
7397
|
+
}), P = T("text-slate-500 mt-1", {
|
|
7398
7398
|
variants: {
|
|
7399
7399
|
size: {
|
|
7400
7400
|
sm: "text-xs",
|
|
@@ -7410,7 +7410,7 @@ const _u = {
|
|
|
7410
7410
|
lg: "w-6 h-6"
|
|
7411
7411
|
}
|
|
7412
7412
|
}
|
|
7413
|
-
}),
|
|
7413
|
+
}), I = T("ml-4 text-slate-400 transition-transform duration-200", {
|
|
7414
7414
|
variants: {
|
|
7415
7415
|
expanded: {
|
|
7416
7416
|
true: "rotate-180",
|
|
@@ -7434,13 +7434,13 @@ const _u = {
|
|
|
7434
7434
|
n.variant === "bordered" && i(R) && "bg-slate-50",
|
|
7435
7435
|
n.variant === "filled" && i(R) && "bg-white",
|
|
7436
7436
|
(n.disabled || n.items[R]?.disabled) && "cursor-not-allowed opacity-50"
|
|
7437
|
-
),
|
|
7437
|
+
), z = f(
|
|
7438
7438
|
() => k(S({ size: n.size }))
|
|
7439
7439
|
), _ = f(
|
|
7440
|
-
() => k(
|
|
7440
|
+
() => k(P({ size: n.size }))
|
|
7441
7441
|
), L = f(
|
|
7442
7442
|
() => k(j({ size: n.size }))
|
|
7443
|
-
), ae = (R) => k(
|
|
7443
|
+
), ae = (R) => k(I({ expanded: i(R) })), ne = f(
|
|
7444
7444
|
() => k(w({ size: n.size }))
|
|
7445
7445
|
);
|
|
7446
7446
|
return ge(
|
|
@@ -7469,7 +7469,7 @@ const _u = {
|
|
|
7469
7469
|
}, null, 8, ["class"])) : p("", !0),
|
|
7470
7470
|
u("div", Ic, [
|
|
7471
7471
|
u("h3", {
|
|
7472
|
-
class: m(
|
|
7472
|
+
class: m(z.value)
|
|
7473
7473
|
}, x(B.title), 3),
|
|
7474
7474
|
B.subtitle ? (o(), d("p", {
|
|
7475
7475
|
key: 0,
|
|
@@ -7480,10 +7480,10 @@ const _u = {
|
|
|
7480
7480
|
u("div", {
|
|
7481
7481
|
class: m(ae(q))
|
|
7482
7482
|
}, [
|
|
7483
|
-
|
|
7483
|
+
A(t, { class: "w-5 h-5 transition-transform duration-200" })
|
|
7484
7484
|
], 2)
|
|
7485
7485
|
], 10, zc),
|
|
7486
|
-
|
|
7486
|
+
A(he, {
|
|
7487
7487
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
7488
7488
|
"enter-from-class": "opacity-0 max-h-0",
|
|
7489
7489
|
"enter-to-class": "opacity-100 max-h-96",
|
|
@@ -7571,23 +7571,23 @@ const _u = {
|
|
|
7571
7571
|
), h = f(
|
|
7572
7572
|
() => k(i({ size: t.size }))
|
|
7573
7573
|
);
|
|
7574
|
-
return (S,
|
|
7574
|
+
return (S, P) => (o(), d("div", {
|
|
7575
7575
|
class: m(c.value)
|
|
7576
7576
|
}, [
|
|
7577
|
-
|
|
7577
|
+
A(ue, {
|
|
7578
7578
|
class: m(v.value),
|
|
7579
7579
|
"aria-expanded": n.value,
|
|
7580
7580
|
onClick: r
|
|
7581
7581
|
}, {
|
|
7582
7582
|
default: O(() => [
|
|
7583
7583
|
$(S.$slots, "header", { isOpen: n.value }),
|
|
7584
|
-
|
|
7584
|
+
A(a, {
|
|
7585
7585
|
class: m(F(k)("w-5 h-5 transition-transform ml-2", { "rotate-180": n.value }))
|
|
7586
7586
|
}, null, 8, ["class"])
|
|
7587
7587
|
]),
|
|
7588
7588
|
_: 3
|
|
7589
7589
|
}, 8, ["class", "aria-expanded"]),
|
|
7590
|
-
|
|
7590
|
+
A(he, {
|
|
7591
7591
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
7592
7592
|
"enter-from-class": "opacity-0 max-h-0",
|
|
7593
7593
|
"enter-to-class": "opacity-100 max-h-96",
|
|
@@ -7620,18 +7620,18 @@ const _u = {
|
|
|
7620
7620
|
(g, b) => new Date(n.value, t.value, -b).getDate()
|
|
7621
7621
|
).reverse()), h = f(() => {
|
|
7622
7622
|
const g = v.value.length + i.value, b = g % 7 === 0 ? 0 : 7 - g % 7;
|
|
7623
|
-
return Array.from({ length: b }, (y,
|
|
7623
|
+
return Array.from({ length: b }, (y, z) => z + 1);
|
|
7624
7624
|
});
|
|
7625
7625
|
function S() {
|
|
7626
7626
|
t.value === 0 ? (t.value = 11, n.value--) : t.value--;
|
|
7627
7627
|
}
|
|
7628
|
-
function
|
|
7628
|
+
function P() {
|
|
7629
7629
|
t.value === 11 ? (t.value = 0, n.value++) : t.value++;
|
|
7630
7630
|
}
|
|
7631
7631
|
function j(g) {
|
|
7632
7632
|
return a.getDate() === g && a.getMonth() === t.value && a.getFullYear() === n.value;
|
|
7633
7633
|
}
|
|
7634
|
-
function
|
|
7634
|
+
function I(g) {
|
|
7635
7635
|
return r.value && r.value.getDate() === g && r.value.getMonth() === t.value && r.value.getFullYear() === n.value;
|
|
7636
7636
|
}
|
|
7637
7637
|
function w(g) {
|
|
@@ -7639,13 +7639,13 @@ const _u = {
|
|
|
7639
7639
|
}
|
|
7640
7640
|
return (g, b) => (o(), d("div", Oc, [
|
|
7641
7641
|
u("div", Vc, [
|
|
7642
|
-
|
|
7642
|
+
A(ue, {
|
|
7643
7643
|
class: "p-2 rounded-lg hover:bg-slate-100",
|
|
7644
7644
|
onClick: S,
|
|
7645
7645
|
"aria-label": "Previous Month"
|
|
7646
7646
|
}, {
|
|
7647
7647
|
default: O(() => [
|
|
7648
|
-
|
|
7648
|
+
A(G, {
|
|
7649
7649
|
icon: g.chevron - g.left,
|
|
7650
7650
|
class: "w-5 h-5"
|
|
7651
7651
|
}, null, 8, ["icon"])
|
|
@@ -7653,13 +7653,13 @@ const _u = {
|
|
|
7653
7653
|
_: 1
|
|
7654
7654
|
}),
|
|
7655
7655
|
u("div", Ec, x(l.value) + " " + x(n.value), 1),
|
|
7656
|
-
|
|
7656
|
+
A(ue, {
|
|
7657
7657
|
class: "p-2 rounded-lg hover:bg-slate-100",
|
|
7658
|
-
onClick:
|
|
7658
|
+
onClick: P,
|
|
7659
7659
|
"aria-label": "Next Month"
|
|
7660
7660
|
}, {
|
|
7661
7661
|
default: O(() => [
|
|
7662
|
-
|
|
7662
|
+
A(G, {
|
|
7663
7663
|
icon: g.chevron - g.right,
|
|
7664
7664
|
class: "w-5 h-5"
|
|
7665
7665
|
}, null, 8, ["icon"])
|
|
@@ -7677,11 +7677,11 @@ const _u = {
|
|
|
7677
7677
|
}, x(y), 1))), 128)),
|
|
7678
7678
|
(o(!0), d(Y, null, X(i.value, (y) => (o(), N(ue, {
|
|
7679
7679
|
key: y,
|
|
7680
|
-
onClick: (
|
|
7680
|
+
onClick: (z) => w(y),
|
|
7681
7681
|
class: m([
|
|
7682
7682
|
"w-10 h-10 rounded-full flex items-center justify-center mx-auto",
|
|
7683
7683
|
j(y) ? "bg-blue-500 text-white font-semibold" : "",
|
|
7684
|
-
|
|
7684
|
+
I(y) ? "bg-blue-100 text-blue-600 font-semibold" : "hover:bg-slate-100"
|
|
7685
7685
|
])
|
|
7686
7686
|
}, {
|
|
7687
7687
|
default: O(() => [
|
|
@@ -7909,7 +7909,7 @@ const _u = {
|
|
|
7909
7909
|
}
|
|
7910
7910
|
}), l = (w) => typeof w == "string" ? w : w?.key || w?.field || "unknown", i = (w, g) => {
|
|
7911
7911
|
const b = l(g);
|
|
7912
|
-
return typeof g == "object" && g.accessor ? g.accessor(w) : b && b.includes(".") ? b.split(".").reduce((y,
|
|
7912
|
+
return typeof g == "object" && g.accessor ? g.accessor(w) : b && b.includes(".") ? b.split(".").reduce((y, z) => y?.[z], w) : w?.[b];
|
|
7913
7913
|
}, c = (w, g) => {
|
|
7914
7914
|
const b = i(w, g);
|
|
7915
7915
|
return typeof g == "object" && g.formatter ? g.formatter(b, w) : b == null ? "" : b instanceof Date ? b.toLocaleDateString() : Array.isArray(b) ? b.join(", ") : b;
|
|
@@ -7923,7 +7923,7 @@ const _u = {
|
|
|
7923
7923
|
selected: t.isSelected,
|
|
7924
7924
|
variant: t.variant
|
|
7925
7925
|
}))
|
|
7926
|
-
),
|
|
7926
|
+
), P = (w) => {
|
|
7927
7927
|
const g = h(w);
|
|
7928
7928
|
return k(
|
|
7929
7929
|
s({
|
|
@@ -7937,7 +7937,7 @@ const _u = {
|
|
|
7937
7937
|
s({ density: t.density }),
|
|
7938
7938
|
"w-12"
|
|
7939
7939
|
)
|
|
7940
|
-
),
|
|
7940
|
+
), I = f(
|
|
7941
7941
|
() => k(
|
|
7942
7942
|
s({
|
|
7943
7943
|
density: t.density,
|
|
@@ -7954,14 +7954,14 @@ const _u = {
|
|
|
7954
7954
|
key: 0,
|
|
7955
7955
|
class: m(j.value)
|
|
7956
7956
|
}, [
|
|
7957
|
-
|
|
7957
|
+
A(Zt, {
|
|
7958
7958
|
modelValue: e.isSelected,
|
|
7959
7959
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => w.$emit("toggle-selection", e.item))
|
|
7960
7960
|
}, null, 8, ["modelValue"])
|
|
7961
7961
|
], 2)) : p("", !0),
|
|
7962
7962
|
(o(!0), d(Y, null, X(e.columns, (b) => (o(), d("td", {
|
|
7963
7963
|
key: l(b),
|
|
7964
|
-
class: m(
|
|
7964
|
+
class: m(P(b))
|
|
7965
7965
|
}, [
|
|
7966
7966
|
$(w.$slots, `cell-${l(b)}`, {
|
|
7967
7967
|
item: e.item,
|
|
@@ -7974,7 +7974,7 @@ const _u = {
|
|
|
7974
7974
|
], 2))), 128)),
|
|
7975
7975
|
w.$slots.actions ? (o(), d("td", {
|
|
7976
7976
|
key: 1,
|
|
7977
|
-
class: m(
|
|
7977
|
+
class: m(I.value)
|
|
7978
7978
|
}, [
|
|
7979
7979
|
$(w.$slots, "actions", {
|
|
7980
7980
|
item: e.item,
|
|
@@ -8104,18 +8104,18 @@ const _u = {
|
|
|
8104
8104
|
size: "sm"
|
|
8105
8105
|
}
|
|
8106
8106
|
}), i = f(() => (t.currentPage - 1) * t.pageSize + 1), c = f(() => Math.min(t.currentPage * t.pageSize, t.total)), v = f(() => {
|
|
8107
|
-
const
|
|
8107
|
+
const I = [], w = t.totalPages, g = t.currentPage, b = t.maxVisiblePages;
|
|
8108
8108
|
if (w <= b)
|
|
8109
8109
|
for (let y = 1; y <= w; y++)
|
|
8110
|
-
|
|
8110
|
+
I.push(y);
|
|
8111
8111
|
else {
|
|
8112
8112
|
const y = Math.floor(b / 2);
|
|
8113
|
-
let
|
|
8114
|
-
_ -
|
|
8115
|
-
for (let L =
|
|
8116
|
-
|
|
8113
|
+
let z = Math.max(1, g - y), _ = Math.min(w, z + b - 1);
|
|
8114
|
+
_ - z + 1 < b && (z = Math.max(1, _ - b + 1));
|
|
8115
|
+
for (let L = z; L <= _; L++)
|
|
8116
|
+
I.push(L);
|
|
8117
8117
|
}
|
|
8118
|
-
return
|
|
8118
|
+
return I;
|
|
8119
8119
|
}), h = f(
|
|
8120
8120
|
() => k(n({
|
|
8121
8121
|
variant: t.variant,
|
|
@@ -8123,27 +8123,27 @@ const _u = {
|
|
|
8123
8123
|
}))
|
|
8124
8124
|
), S = f(
|
|
8125
8125
|
() => k(s({ size: "md" }))
|
|
8126
|
-
),
|
|
8126
|
+
), P = f(
|
|
8127
8127
|
() => k(l({ size: "sm" }))
|
|
8128
|
-
), j = (
|
|
8128
|
+
), j = (I, w) => {
|
|
8129
8129
|
let g = "inactive";
|
|
8130
|
-
return w ? g = "disabled" :
|
|
8130
|
+
return w ? g = "disabled" : I && (g = "active"), k(r({
|
|
8131
8131
|
state: g,
|
|
8132
8132
|
size: "md"
|
|
8133
8133
|
}));
|
|
8134
8134
|
};
|
|
8135
|
-
return (
|
|
8135
|
+
return (I, w) => e.showPagination || I.$slots.footer ? (o(), d("div", {
|
|
8136
8136
|
key: 0,
|
|
8137
8137
|
class: m(h.value)
|
|
8138
8138
|
}, [
|
|
8139
8139
|
u("div", Lc, [
|
|
8140
8140
|
e.selectable && e.selectedCount > 0 ? (o(), d("div", Rc, x(e.selectedCount) + " of " + x(e.total) + " selected ", 1)) : (o(), d("div", Wc, " Showing " + x(i.value) + " to " + x(c.value) + " of " + x(e.total) + " entries ", 1)),
|
|
8141
|
-
|
|
8142
|
-
$(
|
|
8141
|
+
I.$slots.footer ? (o(), d("div", Hc, [
|
|
8142
|
+
$(I.$slots, "footer")
|
|
8143
8143
|
])) : p("", !0),
|
|
8144
8144
|
e.showPagination ? (o(), d("div", Uc, [
|
|
8145
8145
|
u("div", qc, [
|
|
8146
|
-
|
|
8146
|
+
A(Kn, {
|
|
8147
8147
|
for: "pageSize",
|
|
8148
8148
|
class: m(S.value),
|
|
8149
8149
|
inline: !0
|
|
@@ -8153,11 +8153,11 @@ const _u = {
|
|
|
8153
8153
|
])]),
|
|
8154
8154
|
_: 1
|
|
8155
8155
|
}, 8, ["class"]),
|
|
8156
|
-
|
|
8156
|
+
A(ea, {
|
|
8157
8157
|
id: "pageSize",
|
|
8158
8158
|
"model-value": e.pageSize.toString(),
|
|
8159
|
-
"onUpdate:modelValue": w[0] || (w[0] = (g) =>
|
|
8160
|
-
class: m(
|
|
8159
|
+
"onUpdate:modelValue": w[0] || (w[0] = (g) => I.$emit("update:pageSize", parseInt(g))),
|
|
8160
|
+
class: m(P.value)
|
|
8161
8161
|
}, {
|
|
8162
8162
|
default: O(() => [
|
|
8163
8163
|
(o(!0), d(Y, null, X(e.pageSizeOptions, (g) => (o(), N(Xn, {
|
|
@@ -8172,7 +8172,7 @@ const _u = {
|
|
|
8172
8172
|
u("div", Yc, [
|
|
8173
8173
|
u("button", {
|
|
8174
8174
|
disabled: e.currentPage === 1,
|
|
8175
|
-
onClick: w[1] || (w[1] = (g) =>
|
|
8175
|
+
onClick: w[1] || (w[1] = (g) => I.$emit("update:currentPage", 1)),
|
|
8176
8176
|
class: m(j(!1, e.currentPage === 1)),
|
|
8177
8177
|
title: "First page"
|
|
8178
8178
|
}, [...w[6] || (w[6] = [
|
|
@@ -8192,7 +8192,7 @@ const _u = {
|
|
|
8192
8192
|
])], 10, Gc),
|
|
8193
8193
|
u("button", {
|
|
8194
8194
|
disabled: e.currentPage === 1,
|
|
8195
|
-
onClick: w[2] || (w[2] = (g) =>
|
|
8195
|
+
onClick: w[2] || (w[2] = (g) => I.$emit("update:currentPage", e.currentPage - 1)),
|
|
8196
8196
|
class: m(j(!1, e.currentPage === 1)),
|
|
8197
8197
|
title: "Previous page"
|
|
8198
8198
|
}, [...w[7] || (w[7] = [
|
|
@@ -8213,13 +8213,13 @@ const _u = {
|
|
|
8213
8213
|
u("div", Xc, [
|
|
8214
8214
|
(o(!0), d(Y, null, X(v.value, (g) => (o(), d("button", {
|
|
8215
8215
|
key: g,
|
|
8216
|
-
onClick: (b) =>
|
|
8216
|
+
onClick: (b) => I.$emit("update:currentPage", g),
|
|
8217
8217
|
class: m(j(g === e.currentPage, !1))
|
|
8218
8218
|
}, x(g), 11, Jc))), 128))
|
|
8219
8219
|
]),
|
|
8220
8220
|
u("button", {
|
|
8221
8221
|
disabled: e.currentPage === e.totalPages,
|
|
8222
|
-
onClick: w[3] || (w[3] = (g) =>
|
|
8222
|
+
onClick: w[3] || (w[3] = (g) => I.$emit("update:currentPage", e.currentPage + 1)),
|
|
8223
8223
|
class: m(j(!1, e.currentPage === e.totalPages)),
|
|
8224
8224
|
title: "Next page"
|
|
8225
8225
|
}, [...w[8] || (w[8] = [
|
|
@@ -8239,7 +8239,7 @@ const _u = {
|
|
|
8239
8239
|
])], 10, Qc),
|
|
8240
8240
|
u("button", {
|
|
8241
8241
|
disabled: e.currentPage === e.totalPages,
|
|
8242
|
-
onClick: w[4] || (w[4] = (g) =>
|
|
8242
|
+
onClick: w[4] || (w[4] = (g) => I.$emit("update:currentPage", e.totalPages)),
|
|
8243
8243
|
class: m(j(!1, e.currentPage === e.totalPages)),
|
|
8244
8244
|
title: "Last page"
|
|
8245
8245
|
}, [...w[9] || (w[9] = [
|
|
@@ -8403,7 +8403,7 @@ const _u = {
|
|
|
8403
8403
|
defaultVariants: {
|
|
8404
8404
|
variant: "default"
|
|
8405
8405
|
}
|
|
8406
|
-
}),
|
|
8406
|
+
}), P = f(() => {
|
|
8407
8407
|
let V = [...t.data];
|
|
8408
8408
|
if (l.value) {
|
|
8409
8409
|
const H = t.columns.find((Q) => Q.key === l.value);
|
|
@@ -8413,25 +8413,25 @@ const _u = {
|
|
|
8413
8413
|
});
|
|
8414
8414
|
}
|
|
8415
8415
|
return V;
|
|
8416
|
-
}), j = f(() => Math.ceil(
|
|
8417
|
-
if (!t.showPagination) return
|
|
8416
|
+
}), j = f(() => Math.ceil(P.value.length / s.value)), I = f(() => {
|
|
8417
|
+
if (!t.showPagination) return P.value;
|
|
8418
8418
|
const V = (r.value - 1) * s.value, H = V + s.value;
|
|
8419
|
-
return
|
|
8419
|
+
return P.value.slice(V, H);
|
|
8420
8420
|
}), w = f(() => {
|
|
8421
8421
|
let V = t.columns.length;
|
|
8422
8422
|
return t.selectable && V++, t.$slots?.actions && V++, V;
|
|
8423
|
-
}), g = f(() =>
|
|
8424
|
-
const V =
|
|
8425
|
-
return V > 0 && V <
|
|
8426
|
-
}), y = (V, H) => H.accessor ? H.accessor(V) : H.key.split(".").reduce((Q, be) => Q?.[be], V),
|
|
8427
|
-
(H) =>
|
|
8423
|
+
}), g = f(() => P.value.length > 0 && P.value.every((V) => _(V))), b = f(() => {
|
|
8424
|
+
const V = P.value.filter((H) => _(H)).length;
|
|
8425
|
+
return V > 0 && V < P.value.length;
|
|
8426
|
+
}), y = (V, H) => H.accessor ? H.accessor(V) : H.key.split(".").reduce((Q, be) => Q?.[be], V), z = (V, H) => V[t.rowKey] || H, _ = (V) => t.selectedItems.some(
|
|
8427
|
+
(H) => z(H) === z(V)
|
|
8428
8428
|
), L = (V) => {
|
|
8429
8429
|
const H = [...t.selectedItems], Q = H.findIndex(
|
|
8430
|
-
(be) =>
|
|
8430
|
+
(be) => z(be) === z(V)
|
|
8431
8431
|
);
|
|
8432
8432
|
Q > -1 ? H.splice(Q, 1) : H.push(V), n("selection-change", H);
|
|
8433
8433
|
}, ae = () => {
|
|
8434
|
-
const V = g.value ? [] : [...
|
|
8434
|
+
const V = g.value ? [] : [...P.value];
|
|
8435
8435
|
n("selection-change", V);
|
|
8436
8436
|
}, ne = (V) => {
|
|
8437
8437
|
V.sortable && (l.value === V.key ? i.value = i.value === "asc" ? "desc" : "asc" : (l.value = V.key, i.value = "asc"), n("sort-change", { column: V.key, direction: i.value }));
|
|
@@ -8515,7 +8515,7 @@ const _u = {
|
|
|
8515
8515
|
key: 0,
|
|
8516
8516
|
class: m(Z.value)
|
|
8517
8517
|
}, [
|
|
8518
|
-
|
|
8518
|
+
A(Zt, {
|
|
8519
8519
|
modelValue: g.value,
|
|
8520
8520
|
indeterminate: b.value,
|
|
8521
8521
|
"onUpdate:modelValue": ae
|
|
@@ -8567,8 +8567,8 @@ const _u = {
|
|
|
8567
8567
|
u("tbody", {
|
|
8568
8568
|
class: m(se.value)
|
|
8569
8569
|
}, [
|
|
8570
|
-
(o(!0), d(Y, null, X(
|
|
8571
|
-
key:
|
|
8570
|
+
(o(!0), d(Y, null, X(I.value, (Q, be) => (o(), N(Zn, {
|
|
8571
|
+
key: z(Q, be),
|
|
8572
8572
|
item: Q,
|
|
8573
8573
|
columns: e.columns,
|
|
8574
8574
|
index: be,
|
|
@@ -8593,7 +8593,7 @@ const _u = {
|
|
|
8593
8593
|
])
|
|
8594
8594
|
}))
|
|
8595
8595
|
]), 1032, ["item", "columns", "index", "selectable", "is-selected", "striped", "hoverable", "clickable-rows", "density"]))), 128)),
|
|
8596
|
-
|
|
8596
|
+
I.value.length === 0 ? (o(), d("tr", sd, [
|
|
8597
8597
|
u("td", {
|
|
8598
8598
|
colspan: w.value,
|
|
8599
8599
|
class: m(Te.value)
|
|
@@ -8627,7 +8627,7 @@ const _u = {
|
|
|
8627
8627
|
key: 1,
|
|
8628
8628
|
"current-page": r.value,
|
|
8629
8629
|
"total-pages": j.value,
|
|
8630
|
-
total:
|
|
8630
|
+
total: P.value.length,
|
|
8631
8631
|
"page-size": s.value,
|
|
8632
8632
|
"show-pagination": e.showPagination,
|
|
8633
8633
|
selectable: e.selectable,
|
|
@@ -8888,14 +8888,14 @@ const _u = {
|
|
|
8888
8888
|
}))
|
|
8889
8889
|
), S = f(
|
|
8890
8890
|
() => "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-slate-400"
|
|
8891
|
-
),
|
|
8891
|
+
), P = f(
|
|
8892
8892
|
() => k(
|
|
8893
8893
|
s({ size: "md" }),
|
|
8894
8894
|
"w-full pl-10 focus:border-transparent"
|
|
8895
8895
|
)
|
|
8896
8896
|
), j = f(
|
|
8897
8897
|
() => "absolute right-2 top-1/2 transform -translate-y-1/2 text-slate-400 hover:text-slate-300 p-1"
|
|
8898
|
-
),
|
|
8898
|
+
), I = f(
|
|
8899
8899
|
() => k(
|
|
8900
8900
|
s({ size: "md" }),
|
|
8901
8901
|
"w-full focus:border-transparent"
|
|
@@ -8912,7 +8912,7 @@ const _u = {
|
|
|
8912
8912
|
f(
|
|
8913
8913
|
() => k(l({ variant: "success", size: "md" }))
|
|
8914
8914
|
);
|
|
8915
|
-
const
|
|
8915
|
+
const z = f(
|
|
8916
8916
|
() => k(i({ variant: t.variant }))
|
|
8917
8917
|
), _ = f(
|
|
8918
8918
|
() => "text-sm text-blue-700 font-medium"
|
|
@@ -8943,15 +8943,15 @@ const _u = {
|
|
|
8943
8943
|
}, [
|
|
8944
8944
|
u("div", dd, [
|
|
8945
8945
|
u("div", fd, [
|
|
8946
|
-
|
|
8946
|
+
A(q, {
|
|
8947
8947
|
icon: "magnifying-glass",
|
|
8948
8948
|
class: m(S.value)
|
|
8949
8949
|
}, null, 8, ["class"]),
|
|
8950
|
-
|
|
8950
|
+
A(et, {
|
|
8951
8951
|
"model-value": e.searchQuery,
|
|
8952
8952
|
onInput: B[0] || (B[0] = (K) => W.$emit("update:searchQuery", K.target.value)),
|
|
8953
8953
|
placeholder: e.searchPlaceholder,
|
|
8954
|
-
class: m(
|
|
8954
|
+
class: m(P.value)
|
|
8955
8955
|
}, null, 8, ["model-value", "placeholder", "class"]),
|
|
8956
8956
|
e.searchQuery ? (o(), N(ue, {
|
|
8957
8957
|
key: 0,
|
|
@@ -8959,7 +8959,7 @@ const _u = {
|
|
|
8959
8959
|
class: m(j.value)
|
|
8960
8960
|
}, {
|
|
8961
8961
|
default: O(() => [
|
|
8962
|
-
|
|
8962
|
+
A(q, {
|
|
8963
8963
|
icon: "xmark",
|
|
8964
8964
|
class: "w-4 h-4"
|
|
8965
8965
|
})
|
|
@@ -8969,10 +8969,10 @@ const _u = {
|
|
|
8969
8969
|
])
|
|
8970
8970
|
]),
|
|
8971
8971
|
e.statusOptions.length > 0 ? (o(), d("div", md, [
|
|
8972
|
-
|
|
8972
|
+
A(ea, {
|
|
8973
8973
|
"model-value": e.selectedStatus,
|
|
8974
8974
|
onChange: B[2] || (B[2] = (K) => W.$emit("update:selectedStatus", K.target.value)),
|
|
8975
|
-
class: m(
|
|
8975
|
+
class: m(I.value)
|
|
8976
8976
|
}, {
|
|
8977
8977
|
default: O(() => [
|
|
8978
8978
|
B[7] || (B[7] = u("option", { value: "" }, "All Status", -1)),
|
|
@@ -8985,7 +8985,7 @@ const _u = {
|
|
|
8985
8985
|
}, 8, ["model-value", "class"])
|
|
8986
8986
|
])) : p("", !0),
|
|
8987
8987
|
e.showDateFilter ? (o(), d("div", gd, [
|
|
8988
|
-
|
|
8988
|
+
A(et, {
|
|
8989
8989
|
type: "date",
|
|
8990
8990
|
"model-value": e.dateFrom,
|
|
8991
8991
|
onInput: B[3] || (B[3] = (K) => W.$emit("update:dateFrom", K.target.value)),
|
|
@@ -8994,7 +8994,7 @@ const _u = {
|
|
|
8994
8994
|
u("span", {
|
|
8995
8995
|
class: m(g.value)
|
|
8996
8996
|
}, "to", 2),
|
|
8997
|
-
|
|
8997
|
+
A(et, {
|
|
8998
8998
|
type: "date",
|
|
8999
8999
|
"model-value": e.dateTo,
|
|
9000
9000
|
onInput: B[4] || (B[4] = (K) => W.$emit("update:dateTo", K.target.value)),
|
|
@@ -9021,7 +9021,7 @@ const _u = {
|
|
|
9021
9021
|
class: m(y.value)
|
|
9022
9022
|
}, {
|
|
9023
9023
|
default: O(() => [
|
|
9024
|
-
|
|
9024
|
+
A(q, { icon: "download" }),
|
|
9025
9025
|
B[9] || (B[9] = D(" Export ", -1))
|
|
9026
9026
|
]),
|
|
9027
9027
|
_: 1
|
|
@@ -9034,7 +9034,7 @@ const _u = {
|
|
|
9034
9034
|
onClick: B[6] || (B[6] = (K) => W.$emit("add"))
|
|
9035
9035
|
}, {
|
|
9036
9036
|
default: O(() => [
|
|
9037
|
-
|
|
9037
|
+
A(se, {
|
|
9038
9038
|
icon: "plus",
|
|
9039
9039
|
class: "mr-1"
|
|
9040
9040
|
}),
|
|
@@ -9047,7 +9047,7 @@ const _u = {
|
|
|
9047
9047
|
], 2),
|
|
9048
9048
|
v.value.length > 0 ? (o(), d("div", {
|
|
9049
9049
|
key: 0,
|
|
9050
|
-
class: m(
|
|
9050
|
+
class: m(z.value)
|
|
9051
9051
|
}, [
|
|
9052
9052
|
u("div", pd, [
|
|
9053
9053
|
u("span", {
|
|
@@ -9058,12 +9058,12 @@ const _u = {
|
|
|
9058
9058
|
class: m(L.value)
|
|
9059
9059
|
}, [
|
|
9060
9060
|
u("span", null, x(K.label) + ": " + x(K.value), 1),
|
|
9061
|
-
|
|
9061
|
+
A(ue, {
|
|
9062
9062
|
onClick: (Z) => R(K.key),
|
|
9063
9063
|
class: m(ae.value)
|
|
9064
9064
|
}, {
|
|
9065
9065
|
default: O(() => [
|
|
9066
|
-
|
|
9066
|
+
A(q, {
|
|
9067
9067
|
icon: "xmark",
|
|
9068
9068
|
class: "w-3 h-3"
|
|
9069
9069
|
})
|
|
@@ -9181,7 +9181,7 @@ const _u = {
|
|
|
9181
9181
|
active: !1,
|
|
9182
9182
|
position: "middle"
|
|
9183
9183
|
}
|
|
9184
|
-
}),
|
|
9184
|
+
}), P = T("px-3 py-2 text-sm border border-slate-300 rounded-md flex items-center gap-2 transition-colors", {
|
|
9185
9185
|
variants: {
|
|
9186
9186
|
state: {
|
|
9187
9187
|
normal: "text-slate-600 hover:text-slate-800 hover:bg-slate-50",
|
|
@@ -9196,13 +9196,13 @@ const _u = {
|
|
|
9196
9196
|
variant: t.variant,
|
|
9197
9197
|
padding: t.padding
|
|
9198
9198
|
}))
|
|
9199
|
-
),
|
|
9199
|
+
), I = f(() => "text-sm text-slate-600"), w = f(() => "flex items-center"), g = f(
|
|
9200
9200
|
() => "flex items-center gap-2 px-3 py-2 text-sm text-slate-600 hover:text-slate-800 border border-slate-300 rounded-md hover:bg-slate-50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1"
|
|
9201
9201
|
), b = f(
|
|
9202
9202
|
() => "absolute right-0 top-full mt-1 w-56 bg-white border border-slate-200 rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
|
|
9203
9203
|
), y = f(
|
|
9204
9204
|
() => "text-xs font-medium text-slate-500 uppercase tracking-wider mb-2 border-b border-slate-100 pb-2"
|
|
9205
|
-
),
|
|
9205
|
+
), z = f(
|
|
9206
9206
|
() => "py-1 hover:bg-slate-50 rounded transition-colors"
|
|
9207
9207
|
), _ = f(
|
|
9208
9208
|
() => "w-4 h-4 rounded border-slate-300 text-blue-600 focus:ring-blue-500 focus:ring-2 focus:ring-offset-1"
|
|
@@ -9218,7 +9218,7 @@ const _u = {
|
|
|
9218
9218
|
active: t.density === Z,
|
|
9219
9219
|
position: le
|
|
9220
9220
|
}));
|
|
9221
|
-
}, B = () => k(
|
|
9221
|
+
}, B = () => k(P({
|
|
9222
9222
|
state: t.isRefreshing ? "refreshing" : "normal"
|
|
9223
9223
|
})), q = () => k("w-4 h-4", {
|
|
9224
9224
|
"animate-spin": t.isRefreshing
|
|
@@ -9256,7 +9256,7 @@ const _u = {
|
|
|
9256
9256
|
])
|
|
9257
9257
|
])) : e.totalItems > 0 ? (o(), d("div", {
|
|
9258
9258
|
key: 1,
|
|
9259
|
-
class: m(
|
|
9259
|
+
class: m(I.value)
|
|
9260
9260
|
}, x(e.totalItems) + " " + x(e.totalItems === 1 ? "item" : "items"), 3)) : p("", !0)
|
|
9261
9261
|
]),
|
|
9262
9262
|
u("div", Cd, [
|
|
@@ -9271,7 +9271,7 @@ const _u = {
|
|
|
9271
9271
|
title: te.label,
|
|
9272
9272
|
type: "button"
|
|
9273
9273
|
}, [
|
|
9274
|
-
|
|
9274
|
+
A(Te, {
|
|
9275
9275
|
icon: te.icon,
|
|
9276
9276
|
class: "w-4 h-4"
|
|
9277
9277
|
}, null, 8, ["icon"])
|
|
@@ -9285,7 +9285,7 @@ const _u = {
|
|
|
9285
9285
|
ref_key: "columnToggleButton",
|
|
9286
9286
|
ref: s
|
|
9287
9287
|
}, [
|
|
9288
|
-
|
|
9288
|
+
A(Te, {
|
|
9289
9289
|
icon: "columns",
|
|
9290
9290
|
class: "w-4 h-4"
|
|
9291
9291
|
}),
|
|
@@ -9305,7 +9305,7 @@ const _u = {
|
|
|
9305
9305
|
u("div", Id, [
|
|
9306
9306
|
(o(!0), d(Y, null, X(e.toggleableColumns, (te) => (o(), d("div", {
|
|
9307
9307
|
key: te.key,
|
|
9308
|
-
class: m(
|
|
9308
|
+
class: m(z.value)
|
|
9309
9309
|
}, [
|
|
9310
9310
|
u("label", Pd, [
|
|
9311
9311
|
u("input", {
|
|
@@ -9332,7 +9332,7 @@ const _u = {
|
|
|
9332
9332
|
class: m(B()),
|
|
9333
9333
|
type: "button"
|
|
9334
9334
|
}, [
|
|
9335
|
-
|
|
9335
|
+
A(Te, {
|
|
9336
9336
|
icon: "sync",
|
|
9337
9337
|
class: m(q())
|
|
9338
9338
|
}, null, 8, ["class"]),
|
|
@@ -9363,8 +9363,8 @@ const _u = {
|
|
|
9363
9363
|
u("div", Fd, [
|
|
9364
9364
|
u("div", _d, [
|
|
9365
9365
|
$(a.$slots, "brand", {}, () => [
|
|
9366
|
-
|
|
9367
|
-
|
|
9366
|
+
A(n, { class: "mb-4" }),
|
|
9367
|
+
A(r, { class: "text-gray-600 max-w-md" }, {
|
|
9368
9368
|
default: O(() => [...t[0] || (t[0] = [
|
|
9369
9369
|
D(" Building beautiful applications with modern Vue.js components. ", -1)
|
|
9370
9370
|
])]),
|
|
@@ -9374,7 +9374,7 @@ const _u = {
|
|
|
9374
9374
|
]),
|
|
9375
9375
|
u("div", null, [
|
|
9376
9376
|
$(a.$slots, "links", {}, () => [
|
|
9377
|
-
|
|
9377
|
+
A(s, {
|
|
9378
9378
|
variant: "h6",
|
|
9379
9379
|
class: "mb-4"
|
|
9380
9380
|
}, {
|
|
@@ -9384,7 +9384,7 @@ const _u = {
|
|
|
9384
9384
|
_: 1
|
|
9385
9385
|
}),
|
|
9386
9386
|
u("div", Dd, [
|
|
9387
|
-
|
|
9387
|
+
A(l, {
|
|
9388
9388
|
href: "#",
|
|
9389
9389
|
class: "block text-gray-600 hover:text-gray-900"
|
|
9390
9390
|
}, {
|
|
@@ -9393,7 +9393,7 @@ const _u = {
|
|
|
9393
9393
|
])]),
|
|
9394
9394
|
_: 1
|
|
9395
9395
|
}),
|
|
9396
|
-
|
|
9396
|
+
A(l, {
|
|
9397
9397
|
href: "#",
|
|
9398
9398
|
class: "block text-gray-600 hover:text-gray-900"
|
|
9399
9399
|
}, {
|
|
@@ -9402,7 +9402,7 @@ const _u = {
|
|
|
9402
9402
|
])]),
|
|
9403
9403
|
_: 1
|
|
9404
9404
|
}),
|
|
9405
|
-
|
|
9405
|
+
A(l, {
|
|
9406
9406
|
href: "#",
|
|
9407
9407
|
class: "block text-gray-600 hover:text-gray-900"
|
|
9408
9408
|
}, {
|
|
@@ -9416,7 +9416,7 @@ const _u = {
|
|
|
9416
9416
|
]),
|
|
9417
9417
|
u("div", null, [
|
|
9418
9418
|
$(a.$slots, "social", {}, () => [
|
|
9419
|
-
|
|
9419
|
+
A(s, {
|
|
9420
9420
|
variant: "h6",
|
|
9421
9421
|
class: "mb-4"
|
|
9422
9422
|
}, {
|
|
@@ -9426,24 +9426,24 @@ const _u = {
|
|
|
9426
9426
|
_: 1
|
|
9427
9427
|
}),
|
|
9428
9428
|
u("div", Md, [
|
|
9429
|
-
|
|
9429
|
+
A(l, {
|
|
9430
9430
|
href: "#",
|
|
9431
9431
|
class: "text-gray-600 hover:text-gray-900"
|
|
9432
9432
|
}, {
|
|
9433
9433
|
default: O(() => [
|
|
9434
|
-
|
|
9434
|
+
A(i, {
|
|
9435
9435
|
name: "twitter",
|
|
9436
9436
|
class: "h-5 w-5"
|
|
9437
9437
|
})
|
|
9438
9438
|
]),
|
|
9439
9439
|
_: 1
|
|
9440
9440
|
}),
|
|
9441
|
-
|
|
9441
|
+
A(l, {
|
|
9442
9442
|
href: "#",
|
|
9443
9443
|
class: "text-gray-600 hover:text-gray-900"
|
|
9444
9444
|
}, {
|
|
9445
9445
|
default: O(() => [
|
|
9446
|
-
|
|
9446
|
+
A(i, {
|
|
9447
9447
|
name: "github",
|
|
9448
9448
|
class: "h-5 w-5"
|
|
9449
9449
|
})
|
|
@@ -9454,10 +9454,10 @@ const _u = {
|
|
|
9454
9454
|
])
|
|
9455
9455
|
])
|
|
9456
9456
|
]),
|
|
9457
|
-
|
|
9457
|
+
A(c, { class: "my-8" }),
|
|
9458
9458
|
u("div", Ld, [
|
|
9459
9459
|
$(a.$slots, "copyright", {}, () => [
|
|
9460
|
-
|
|
9460
|
+
A(r, { class: "text-gray-600" }, {
|
|
9461
9461
|
default: O(() => [
|
|
9462
9462
|
D(" © " + x((/* @__PURE__ */ new Date()).getFullYear()) + " Your Company. All rights reserved. ", 1)
|
|
9463
9463
|
]),
|
|
@@ -9466,7 +9466,7 @@ const _u = {
|
|
|
9466
9466
|
]),
|
|
9467
9467
|
$(a.$slots, "legal", {}, () => [
|
|
9468
9468
|
u("div", Rd, [
|
|
9469
|
-
|
|
9469
|
+
A(l, {
|
|
9470
9470
|
href: "#",
|
|
9471
9471
|
class: "text-gray-600 hover:text-gray-900"
|
|
9472
9472
|
}, {
|
|
@@ -9475,7 +9475,7 @@ const _u = {
|
|
|
9475
9475
|
])]),
|
|
9476
9476
|
_: 1
|
|
9477
9477
|
}),
|
|
9478
|
-
|
|
9478
|
+
A(l, {
|
|
9479
9479
|
href: "#",
|
|
9480
9480
|
class: "text-gray-600 hover:text-gray-900"
|
|
9481
9481
|
}, {
|
|
@@ -9533,9 +9533,9 @@ const _u = {
|
|
|
9533
9533
|
l.value = !l.value, s.value = !1;
|
|
9534
9534
|
}, S = (g) => {
|
|
9535
9535
|
n("navigate", g), l.value = !1;
|
|
9536
|
-
},
|
|
9536
|
+
}, P = (g) => g.route ? !!(t.currentRoute === g.route || t.currentRoute.startsWith(g.route + "/")) : !1, j = (g) => {
|
|
9537
9537
|
n("profile-action", g), l.value = !1;
|
|
9538
|
-
},
|
|
9538
|
+
}, I = () => {
|
|
9539
9539
|
n("logout"), l.value = !1;
|
|
9540
9540
|
}, w = (g) => {
|
|
9541
9541
|
!g.target.closest(".absolute") && !g.target.closest("button") && (s.value = !1, l.value = !1);
|
|
@@ -9596,7 +9596,7 @@ const _u = {
|
|
|
9596
9596
|
type: "text",
|
|
9597
9597
|
placeholder: "Search...",
|
|
9598
9598
|
class: "pl-10 pr-4 py-2 w-64 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none",
|
|
9599
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
9599
|
+
"onUpdate:modelValue": b[0] || (b[0] = (z) => r.value = z)
|
|
9600
9600
|
}, null, 512), [
|
|
9601
9601
|
[Wa, r.value]
|
|
9602
9602
|
])
|
|
@@ -9631,15 +9631,15 @@ const _u = {
|
|
|
9631
9631
|
u("h3", { class: "text-lg font-semibold text-gray-900" }, "Notifications")
|
|
9632
9632
|
], -1)),
|
|
9633
9633
|
u("div", ef, [
|
|
9634
|
-
(o(!0), d(Y, null, X(e.notifications, (
|
|
9635
|
-
key:
|
|
9634
|
+
(o(!0), d(Y, null, X(e.notifications, (z) => (o(), d("div", {
|
|
9635
|
+
key: z.id,
|
|
9636
9636
|
class: "p-4 border-b border-gray-100 hover:bg-gray-50 cursor-pointer"
|
|
9637
9637
|
}, [
|
|
9638
9638
|
u("div", tf, [
|
|
9639
9639
|
b[5] || (b[5] = u("div", { class: "flex-shrink-0 w-2 h-2 mt-2 bg-blue-500 rounded-full" }, null, -1)),
|
|
9640
9640
|
u("div", af, [
|
|
9641
|
-
u("p", nf, x(
|
|
9642
|
-
u("p", rf, x(
|
|
9641
|
+
u("p", nf, x(z.title), 1),
|
|
9642
|
+
u("p", rf, x(z.time), 1)
|
|
9643
9643
|
])
|
|
9644
9644
|
])
|
|
9645
9645
|
]))), 128))
|
|
@@ -9658,7 +9658,7 @@ const _u = {
|
|
|
9658
9658
|
]),
|
|
9659
9659
|
u("div", uf, [
|
|
9660
9660
|
u("p", cf, x(e.user.name), 1),
|
|
9661
|
-
u("p", df, x(e.user.roles.name), 1)
|
|
9661
|
+
u("p", df, x(e.user.roles.map((z) => z.name).join(", ")), 1)
|
|
9662
9662
|
]),
|
|
9663
9663
|
b[8] || (b[8] = u("svg", {
|
|
9664
9664
|
class: "w-4 h-4 text-gray-400",
|
|
@@ -9680,42 +9680,42 @@ const _u = {
|
|
|
9680
9680
|
u("p", gf, x(e.user.email), 1)
|
|
9681
9681
|
]),
|
|
9682
9682
|
u("div", hf, [
|
|
9683
|
-
(o(!0), d(Y, null, X(e.profileMenuItems, (
|
|
9684
|
-
key:
|
|
9683
|
+
(o(!0), d(Y, null, X(e.profileMenuItems, (z) => (o(), d(Y, {
|
|
9684
|
+
key: z.name
|
|
9685
9685
|
}, [
|
|
9686
|
-
|
|
9686
|
+
z.route ? (o(), N(y, {
|
|
9687
9687
|
key: 0,
|
|
9688
|
-
to:
|
|
9688
|
+
to: z.route,
|
|
9689
9689
|
class: m(F(k)(
|
|
9690
9690
|
"flex items-center px-4 py-2 text-sm transition-colors",
|
|
9691
|
-
|
|
9691
|
+
P(z) ? "bg-blue-50 text-blue-700" : "text-gray-700 hover:bg-gray-50"
|
|
9692
9692
|
)),
|
|
9693
|
-
onClick: (_) => S(
|
|
9693
|
+
onClick: (_) => S(z)
|
|
9694
9694
|
}, {
|
|
9695
9695
|
default: O(() => [
|
|
9696
|
-
|
|
9697
|
-
icon:
|
|
9696
|
+
A(G, {
|
|
9697
|
+
icon: z.icon,
|
|
9698
9698
|
class: "w-4 h-4 mr-3 text-gray-400"
|
|
9699
9699
|
}, null, 8, ["icon"]),
|
|
9700
|
-
D(" " + x(
|
|
9700
|
+
D(" " + x(z.label), 1)
|
|
9701
9701
|
]),
|
|
9702
9702
|
_: 2
|
|
9703
9703
|
}, 1032, ["to", "class", "onClick"])) : (o(), d("button", {
|
|
9704
9704
|
key: 1,
|
|
9705
|
-
onClick: (_) => j(
|
|
9705
|
+
onClick: (_) => j(z),
|
|
9706
9706
|
class: "flex items-center w-full px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 transition-colors"
|
|
9707
9707
|
}, [
|
|
9708
|
-
|
|
9709
|
-
icon:
|
|
9708
|
+
A(G, {
|
|
9709
|
+
icon: z.icon,
|
|
9710
9710
|
class: "w-4 h-4 mr-3 text-gray-400"
|
|
9711
9711
|
}, null, 8, ["icon"]),
|
|
9712
|
-
D(" " + x(
|
|
9712
|
+
D(" " + x(z.label), 1)
|
|
9713
9713
|
], 8, bf))
|
|
9714
9714
|
], 64))), 128))
|
|
9715
9715
|
]),
|
|
9716
9716
|
u("div", { class: "border-t border-gray-200 py-2" }, [
|
|
9717
9717
|
u("button", {
|
|
9718
|
-
onClick:
|
|
9718
|
+
onClick: I,
|
|
9719
9719
|
class: "flex items-center w-full px-4 py-2 text-sm text-red-600 hover:bg-red-50"
|
|
9720
9720
|
}, [...b[9] || (b[9] = [
|
|
9721
9721
|
u("svg", {
|
|
@@ -9803,7 +9803,7 @@ const _u = {
|
|
|
9803
9803
|
))
|
|
9804
9804
|
}, {
|
|
9805
9805
|
default: O(() => [
|
|
9806
|
-
|
|
9806
|
+
A(G, {
|
|
9807
9807
|
icon: v.icon,
|
|
9808
9808
|
size: "md",
|
|
9809
9809
|
class: "mr-3 text-5xl flex-shrink-0"
|
|
@@ -10052,7 +10052,7 @@ function im(e, a, t, n, r, s) {
|
|
|
10052
10052
|
])
|
|
10053
10053
|
])) : p("", !0),
|
|
10054
10054
|
u("div", Kf, [
|
|
10055
|
-
|
|
10055
|
+
A(l)
|
|
10056
10056
|
]),
|
|
10057
10057
|
e.$slots["card-footer"] ? (o(), d("div", Xf, [
|
|
10058
10058
|
$(e.$slots, "card-footer")
|
|
@@ -10087,7 +10087,7 @@ function im(e, a, t, n, r, s) {
|
|
|
10087
10087
|
c.variant === "primary" ? "bg-blue-600 hover:bg-blue-700 text-white" : c.variant === "info" ? "bg-cyan-500 hover:bg-cyan-600 text-white" : "bg-gray-600 hover:bg-gray-700 text-white"
|
|
10088
10088
|
])
|
|
10089
10089
|
}, [
|
|
10090
|
-
|
|
10090
|
+
A(i, {
|
|
10091
10091
|
icon: ["fab", c.icon]
|
|
10092
10092
|
}, null, 8, ["icon"])
|
|
10093
10093
|
], 10, om))), 128))
|
|
@@ -10122,20 +10122,20 @@ const um = /* @__PURE__ */ tr(Vf, [["render", im]]), cm = { class: "min-h-screen
|
|
|
10122
10122
|
return (a, t) => {
|
|
10123
10123
|
const n = ee("Logo"), r = ee("MainNavigation"), s = ee("Button"), l = ee("Header"), i = ee("Breadcrumb"), c = ee("Text"), v = ee("Footer");
|
|
10124
10124
|
return o(), d("div", cm, [
|
|
10125
|
-
|
|
10125
|
+
A(l, null, {
|
|
10126
10126
|
logo: O(() => [
|
|
10127
10127
|
$(a.$slots, "logo", {}, () => [
|
|
10128
|
-
|
|
10128
|
+
A(n)
|
|
10129
10129
|
])
|
|
10130
10130
|
]),
|
|
10131
10131
|
navigation: O(() => [
|
|
10132
10132
|
$(a.$slots, "navigation", {}, () => [
|
|
10133
|
-
|
|
10133
|
+
A(r, { items: e.navigationItems }, null, 8, ["items"])
|
|
10134
10134
|
])
|
|
10135
10135
|
]),
|
|
10136
10136
|
actions: O(() => [
|
|
10137
10137
|
$(a.$slots, "header-actions", {}, () => [
|
|
10138
|
-
|
|
10138
|
+
A(s, {
|
|
10139
10139
|
variant: "ghost",
|
|
10140
10140
|
size: "sm"
|
|
10141
10141
|
}, {
|
|
@@ -10144,7 +10144,7 @@ const um = /* @__PURE__ */ tr(Vf, [["render", im]]), cm = { class: "min-h-screen
|
|
|
10144
10144
|
])]),
|
|
10145
10145
|
_: 1
|
|
10146
10146
|
}),
|
|
10147
|
-
|
|
10147
|
+
A(s, { size: "sm" }, {
|
|
10148
10148
|
default: O(() => [...t[1] || (t[1] = [
|
|
10149
10149
|
D("Get Started", -1)
|
|
10150
10150
|
])]),
|
|
@@ -10158,7 +10158,7 @@ const um = /* @__PURE__ */ tr(Vf, [["render", im]]), cm = { class: "min-h-screen
|
|
|
10158
10158
|
e.showBreadcrumb ? (o(), d("div", fm, [
|
|
10159
10159
|
u("div", mm, [
|
|
10160
10160
|
$(a.$slots, "breadcrumb", {}, () => [
|
|
10161
|
-
|
|
10161
|
+
A(i, { items: e.breadcrumbItems }, null, 8, ["items"])
|
|
10162
10162
|
])
|
|
10163
10163
|
])
|
|
10164
10164
|
])) : p("", !0),
|
|
@@ -10166,11 +10166,11 @@ const um = /* @__PURE__ */ tr(Vf, [["render", im]]), cm = { class: "min-h-screen
|
|
|
10166
10166
|
$(a.$slots, "default")
|
|
10167
10167
|
])
|
|
10168
10168
|
]),
|
|
10169
|
-
|
|
10169
|
+
A(v, null, {
|
|
10170
10170
|
brand: O(() => [
|
|
10171
10171
|
$(a.$slots, "footer-brand", {}, () => [
|
|
10172
|
-
|
|
10173
|
-
|
|
10172
|
+
A(n, { class: "mb-4" }),
|
|
10173
|
+
A(c, { class: "text-gray-600 max-w-md" }, {
|
|
10174
10174
|
default: O(() => [...t[2] || (t[2] = [
|
|
10175
10175
|
D(" Your application description goes here. ", -1)
|
|
10176
10176
|
])]),
|
|
@@ -10400,12 +10400,12 @@ const pm = {
|
|
|
10400
10400
|
window.history.length > 1 ? t.back() : t.push(e.homeUrl), a("back");
|
|
10401
10401
|
}, S = () => {
|
|
10402
10402
|
window.location.reload(), a("retry");
|
|
10403
|
-
},
|
|
10403
|
+
}, P = f(() => [
|
|
10404
10404
|
"min-h-screen relative flex items-center justify-center",
|
|
10405
10405
|
"px-4 sm:px-6 lg:px-8"
|
|
10406
10406
|
]), j = f(() => [
|
|
10407
10407
|
"absolute inset-0 -z-10"
|
|
10408
|
-
]),
|
|
10408
|
+
]), I = f(() => [
|
|
10409
10409
|
"w-full max-w-2xl mx-auto text-center"
|
|
10410
10410
|
]), w = f(() => [
|
|
10411
10411
|
"mb-8"
|
|
@@ -10415,7 +10415,7 @@ const pm = {
|
|
|
10415
10415
|
"flex justify-center mb-6"
|
|
10416
10416
|
]), y = f(() => [
|
|
10417
10417
|
"w-32 h-32 flex items-center justify-center"
|
|
10418
|
-
]),
|
|
10418
|
+
]), z = f(() => [
|
|
10419
10419
|
"space-y-4"
|
|
10420
10420
|
]), _ = f(() => [
|
|
10421
10421
|
"text-6xl font-bold text-slate-300 mb-4"
|
|
@@ -10439,14 +10439,14 @@ const pm = {
|
|
|
10439
10439
|
goHome: v,
|
|
10440
10440
|
goBack: h,
|
|
10441
10441
|
retry: S,
|
|
10442
|
-
layoutClasses:
|
|
10442
|
+
layoutClasses: P,
|
|
10443
10443
|
backgroundClasses: j,
|
|
10444
|
-
contentClasses:
|
|
10444
|
+
contentClasses: I,
|
|
10445
10445
|
headerClasses: w,
|
|
10446
10446
|
errorContentClasses: g,
|
|
10447
10447
|
illustrationClasses: b,
|
|
10448
10448
|
iconContainerClasses: y,
|
|
10449
|
-
detailsClasses:
|
|
10449
|
+
detailsClasses: z,
|
|
10450
10450
|
codeClasses: _,
|
|
10451
10451
|
titleClasses: L,
|
|
10452
10452
|
messageClasses: ae,
|
|
@@ -10503,7 +10503,7 @@ function Pm(e, a, t, n, r, s) {
|
|
|
10503
10503
|
u("div", {
|
|
10504
10504
|
class: m(n.iconContainerClasses)
|
|
10505
10505
|
}, [
|
|
10506
|
-
|
|
10506
|
+
A(l, {
|
|
10507
10507
|
icon: n.errorConfig.icon,
|
|
10508
10508
|
size: "xxl",
|
|
10509
10509
|
color: n.errorConfig.color,
|
|
@@ -10547,7 +10547,7 @@ function Pm(e, a, t, n, r, s) {
|
|
|
10547
10547
|
size: "lg"
|
|
10548
10548
|
}, {
|
|
10549
10549
|
default: O(() => [
|
|
10550
|
-
|
|
10550
|
+
A(l, {
|
|
10551
10551
|
icon: n.homeButtonIcon,
|
|
10552
10552
|
class: "w-4 h-4 mr-2"
|
|
10553
10553
|
}, null, 8, ["icon"]),
|
|
@@ -10562,7 +10562,7 @@ function Pm(e, a, t, n, r, s) {
|
|
|
10562
10562
|
onClick: n.goBack
|
|
10563
10563
|
}, {
|
|
10564
10564
|
default: O(() => [
|
|
10565
|
-
|
|
10565
|
+
A(l, {
|
|
10566
10566
|
icon: "arrow-left",
|
|
10567
10567
|
class: "w-4 h-4 mr-2"
|
|
10568
10568
|
}),
|
|
@@ -10577,7 +10577,7 @@ function Pm(e, a, t, n, r, s) {
|
|
|
10577
10577
|
onClick: n.retry
|
|
10578
10578
|
}, {
|
|
10579
10579
|
default: O(() => [
|
|
10580
|
-
|
|
10580
|
+
A(l, {
|
|
10581
10581
|
icon: "redo",
|
|
10582
10582
|
class: "w-4 h-4 mr-2"
|
|
10583
10583
|
}),
|
|
@@ -10592,7 +10592,7 @@ function Pm(e, a, t, n, r, s) {
|
|
|
10592
10592
|
onClick: a[0] || (a[0] = (c) => e.$emit("contact-support"))
|
|
10593
10593
|
}, {
|
|
10594
10594
|
default: O(() => [
|
|
10595
|
-
|
|
10595
|
+
A(l, {
|
|
10596
10596
|
icon: "user",
|
|
10597
10597
|
class: "w-4 h-4 mr-2"
|
|
10598
10598
|
}),
|
|
@@ -10616,7 +10616,7 @@ function Pm(e, a, t, n, r, s) {
|
|
|
10616
10616
|
key: v,
|
|
10617
10617
|
class: "flex items-start gap-3 text-sm text-slate-600"
|
|
10618
10618
|
}, [
|
|
10619
|
-
|
|
10619
|
+
A(l, {
|
|
10620
10620
|
icon: c.icon,
|
|
10621
10621
|
color: c.iconColor || "slate-400",
|
|
10622
10622
|
class: "w-4 h-4 mt-0.5 flex-shrink-0"
|
|
@@ -10640,7 +10640,7 @@ function Pm(e, a, t, n, r, s) {
|
|
|
10640
10640
|
href: t.supportUrl,
|
|
10641
10641
|
class: "text-blue-600 hover:text-blue-700 underline ml-1"
|
|
10642
10642
|
}, [
|
|
10643
|
-
|
|
10643
|
+
A(l, {
|
|
10644
10644
|
icon: "question-circle",
|
|
10645
10645
|
class: "w-4 h-4 inline mr-1"
|
|
10646
10646
|
}),
|