vuesp-components 2.4.3 → 2.5.1
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/{CardMain.vue_vue_type_style_index_0_lang-jUPno8E0.js → CardMain.vue_vue_type_style_index_0_lang-CCrFdlnW.js} +270 -270
- package/dist/components/app/AppNotification.vue.d.ts.map +1 -1
- package/dist/components/block/presets/energy-flow/EnergyFlowCard.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
- package/dist/components/index.es.js +557 -557
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
- package/dist/components/ui/vision/VisionSearch.vue.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.css +106 -47
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as i, createStaticVNode as
|
|
2
|
-
import { u as
|
|
3
|
-
const
|
|
1
|
+
import { openBlock as o, createElementBlock as i, createStaticVNode as _, createElementVNode as s, defineComponent as V, computed as b, normalizeClass as x, resolveComponent as ee, createBlock as B, resolveDynamicComponent as W, mergeProps as A, withCtx as z, renderSlot as y, createCommentVNode as p, markRaw as F, shallowRef as N, Teleport as q, createVNode as S, Transition as I, unref as d, withModifiers as L, normalizeStyle as H, ref as K, withDirectives as te, Fragment as T, renderList as P, createTextVNode as R, toDisplayString as O, withKeys as ae, createPropsRestProxy as le, normalizeProps as oe, guardReactiveProps as ne } from "vue";
|
|
2
|
+
import { u as U, a as re, b as G, c as J } from "./useDialog-BdpYSys6.js";
|
|
3
|
+
const Q = (e, a) => {
|
|
4
4
|
const l = e.__vccOpts || e;
|
|
5
|
-
for (const [
|
|
6
|
-
l[
|
|
5
|
+
for (const [f, r] of a)
|
|
6
|
+
l[f] = r;
|
|
7
7
|
return l;
|
|
8
|
-
},
|
|
8
|
+
}, se = {}, ie = {
|
|
9
9
|
viewBox: "0 0 179 40",
|
|
10
10
|
fill: "currentColor"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function de(e, a) {
|
|
13
13
|
return o(), i("svg", ie, [...a[0] || (a[0] = [
|
|
14
|
-
|
|
14
|
+
_('<g transform="matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)"><path d="m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z"></path><path d="m 104.76548,-63.374174 0.008,91.15236 -26.35225,25.003926 26.35676,25.415735 4.8e-4,91.161403 4.03033,0.0237 c 0,0 0.0729,-90.913243 -0.0476,-91.163063 l 26.24012,-24.776315 -26.23835,-25.66073 0.007,-91.147024 z"></path><path d="m 803.85444,82.816565 c -5.5092,-1.69169 -15.7197,-2.12913 -19.9329,1.03114 -5.56,4.548 -0.63,22.670005 -0.76,28.973005 0.3943,19.76599 20.7146,30.35978 36.02,33 0,0 45.06,4.77 68,-5.439 35.89996,-15.975 40.75996,-63.180005 13.91,-89.457 -15.2385,-18.333755 -72.7584,-32.66908 -78.91,-50.10399958 -6.54,-7.52040002 -2.52,-22.38120042 5.1,-27.89120042 10.47,-7.5605 25.91,-7.3647 37.9,-5.017 13.11,2.5659 14.15,13.6285 18,24.9082004 1.48,4.3522 2.88,12.3564 8.1,13.6674 2.25,0.5623 4.67,-0.1094 6.9,-0.3827 16.42996,-2.011 11.28456,-11.418391 12.09456,-24.2037914 0.38,-6.0219 2.2254,-16.238609 -1.1246,-21.752209 -5.98996,-9.87979 -17.48276,-9.960049 -30.96996,-15.3287 -11.9944,-2.919504 -32.57,-5.50288 -50,-1.25772 -13.92,3.39017 -28.5,10.49772 -37.24,22.25772 -16.31,21.9622 -9.6,57.1861 10.26,74.6998 22.17,19.5582 58.4,21.7732 76.41,46.304195 16.9,23.013005 -18.71,37.732005 -37.1,36.158005 -39.9169,-0.34531 -23.6297,-30.723925 -36.6571,-40.166145 z"></path><path d="m 321.18154,-32.17929 21,9 -46,120.999995 c -13.02939,-49.349215 -25.65589,-93.5184936 -37,-121.999995 5.741,-1.2008 17.946,-4.1139 20.397,-10.1049 2.328,-5.6934 -1.142,-13.0456 -1.397,-18.8951 -9.12189,0.745226 -79.43846,-2.275099 -82.411,2.3179 -1.02172,5.2378 -3.84926,12.95938 -1.985,17.2878 4.036,8.5605 18.82154,3.517306 23.75154,13.866906 25.90475,54.255645 38.51776,106.713979 60.87446,156.527394 37.33703,54.02331 63.06896,-92.52485 72.275,-119 4.089,-11.8192996 7.212,-30.0265 15.194,-39.7724 15.1599,-17.433642 28.97616,-5.381825 21.868,-28.07945 -5.23694,-5.944366 -63.1086,-2.739072 -64.389,-1.54476 -3.452,4.31661 -7.5289,7.804293 -2.178,19.39661 z"></path><path d="m 401.18154,-53.17929 c -0.998,4.83681 -4.908,16.1206 -1.357,20.3511 4.914,5.8555 20.341,3.7676 21.463,12.689 3.596,28.5694004 -0.4,58.2962 0.855,86.9599 0.882,20.149995 3.491,41.865 17.134,57.961 36.351,42.885 114.137,25.661 128.322,-27.961005 9.142,-34.561995 3.01191,-80.803507 3.08491,-116.292007 0.033,-15.7886 15.53509,-3.553988 22.46909,-13.356888 3.337,-4.7169 -1.212,-15.187 -1.971,-20.3511 -20.45735,-0.261837 -40.85188,-0.262234 -61.258,1.02779 l -3.742,11.97221 c 0.84877,13.898543 11.37685,10.038234 23.90801,11.758642 0.32053,9.189207 0.091,48.923358 0.092,71.241358 10e-4,19.4 0.471,40.338995 -8.89,58 -15.56,29.358 -61.659,29.409 -74.878,-2.000005 -10.636,-25.273 -6.147,-56.234995 -6.233,-82.999995 -0.035,-10.9870996 -2.501,-25.3419996 0.319,-35.9568 2.549,-9.5978 16.626,-6.4297 22.064,-12.6921 3.287,-3.7858 -0.52,-15.71299 -1.382,-20.3511 z"></path><path d="m 760.05964,143.05268 c -5.1123,-31.58627 4.9497,-52.437285 -1.4781,-59.628975 -3.17,-3.163 -17.48,-3.877 -20.39,-0.285 -7.636,9.412 -6.012,27.571005 -14.737,36.079005 -3.136,3.058 -10.272,1.461 -14.273,1.689 -13.102,0.746 -25.895,-0.086 -39,-0.086 l -1,-68 c 7.223,0.913 21.685,-1.996 27.722,1.269 6.665,3.604 3.577,17.035995 10.556,20.532995 5.15472,-0.0642 13.05488,0.47604 17.494,-1.405 5.21328,-7.758815 3.74312,-60.612259 -0.015,-62.640795 -5.5141,-0.237113 -13.29293,-2.8563906 -17.543,-1.1527996 -6.595,2.8734996 -5.002,15.2292996 -10.608,19.7931996 -5.233,4.2609 -21.417,2.0768 -27.606,0.6034 l 0.018,-19.9999996 0.982,-42.0000004 h 36 c 4.195,0 11.017,-1.271 14.725,1.0278 9.479,5.8759 5.235,25.2669004 13.705,30.94060042 4.66,3.12049998 14.21,-2.03520002 19.57,-1.96840002 -1.7258,-10.0332024 5.1749,-44.7657364 -0.6,-49.9722104 -8.573,-0.17431 -123.95249,0.09746 -142.26,0.5756 -2.813,3.26479 -4.226,15.59871 -1.533,19.00621 4.834,6.1168 16.163,4.3646 20.481,9.9544 4.51586,28.5714044 7.89004,96.377815 0.594,132.328 -2.185,7.787 -16.181,5.969 -20.654,11.832 -1.59611,5.22999 -0.7409,13.33851 1.536,18.048 5.16025,7.51372 110.02916,3.17366 148.3141,3.45997 z"></path><path d="m 964.1815,-23.17929 c 0,43.4127 3.83,88.767 -0.06,131.985 -0.8,8.923 -14.88,7.544 -20.62,12.09 -4.2,3.326 -1.95,14.442 -0.17,18.777 15.7137,4.67091 86.3037,9.27518 89.39,-4.852 0.57,-3.057 2.36,-9.582 0.42,-12.297 -5.77,-8.041 -28.93,-2.391 -30.81,-13.747 -0.063,-55.41713 -0.3488,-55.25935 -0.15,-140.956 16.19,0 34.24,-2.9842 46.98,9.0934 18.26,17.2977004 11.94,53.4098 -8.98,65.6236 -7.67,4.477 -18.44,3.283 -27,3.283 v 23 c 23.19,0 50.85,-0.216 69,-17.093 28.42,-26.4403 19.73,-83.9314 -16,-99.7334 -4.6952,-8.320027 -96.8662,-17.196078 -120.68,-4.43208 -2.7,1.3721 -3.6701,5.98455 -3.17,8.34798 -3.3313,17.201533 8.54,18.6194 21.85,20.9105 z"></path></g>', 1)
|
|
15
15
|
])]);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const Xe = /* @__PURE__ */ Q(se, [["render", de]]), ce = {}, ue = {
|
|
18
18
|
width: "40",
|
|
19
19
|
height: "40",
|
|
20
20
|
viewBox: "0 0 40 40",
|
|
@@ -22,12 +22,12 @@ const Qe = /* @__PURE__ */ J(re, [["render", ce]]), de = {}, ue = {
|
|
|
22
22
|
};
|
|
23
23
|
function he(e, a) {
|
|
24
24
|
return o(), i("svg", ue, [...a[0] || (a[0] = [
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
s("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
|
|
26
|
+
s("path", { d: "m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z" })
|
|
27
27
|
], -1)
|
|
28
28
|
])]);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Ye = /* @__PURE__ */ Q(ce, [["render", he]]), me = /* @__PURE__ */ V({
|
|
31
31
|
__name: "VLoader",
|
|
32
32
|
props: {
|
|
33
33
|
size: { default: "md" }
|
|
@@ -37,13 +37,13 @@ const Xe = /* @__PURE__ */ J(de, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
37
37
|
sm: "h-4 w-4",
|
|
38
38
|
md: "h-6 w-6",
|
|
39
39
|
lg: "h-9 w-9"
|
|
40
|
-
}, l =
|
|
41
|
-
return (
|
|
40
|
+
}, l = b(() => a[e.size]);
|
|
41
|
+
return (f, r) => (o(), i("svg", {
|
|
42
42
|
class: x(["animate-spin", l.value]),
|
|
43
43
|
fill: "none",
|
|
44
44
|
viewBox: "0 0 24 24"
|
|
45
|
-
}, [...
|
|
46
|
-
|
|
45
|
+
}, [...r[0] || (r[0] = [
|
|
46
|
+
s("circle", {
|
|
47
47
|
class: "opacity-25",
|
|
48
48
|
cx: "12",
|
|
49
49
|
cy: "12",
|
|
@@ -51,14 +51,14 @@ const Xe = /* @__PURE__ */ J(de, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
51
51
|
stroke: "currentColor",
|
|
52
52
|
"stroke-width": "2"
|
|
53
53
|
}, null, -1),
|
|
54
|
-
|
|
54
|
+
s("path", {
|
|
55
55
|
class: "opacity-75",
|
|
56
56
|
fill: "currentColor",
|
|
57
57
|
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"
|
|
58
58
|
}, null, -1)
|
|
59
59
|
])], 2));
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), ve = "relative inline-flex justify-center items-center gap-2 transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:pointer-events-none disabled:opacity-40 rounded-md font-medium", X = /* @__PURE__ */ V({
|
|
62
62
|
__name: "VButton",
|
|
63
63
|
props: {
|
|
64
64
|
outline: { type: Boolean, default: !1 },
|
|
@@ -75,41 +75,41 @@ const Xe = /* @__PURE__ */ J(de, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
75
75
|
},
|
|
76
76
|
emits: ["click"],
|
|
77
77
|
setup(e, { emit: a }) {
|
|
78
|
-
const l = a,
|
|
78
|
+
const l = a, f = (h) => {
|
|
79
79
|
e.disabled || l("click", h);
|
|
80
|
-
},
|
|
80
|
+
}, r = ee("RouterLink"), t = b(() => e.to ? r : e.href ? "a" : "button"), n = b(() => e.type === "submit" || e.type === "reset" ? e.type : "button"), k = b(() => e.type === "icon"), w = {
|
|
81
81
|
green: "border border-green-500/20 bg-green-500/10 text-green-600 dark:text-green-400",
|
|
82
82
|
red: "border border-red-500/20 bg-red-500/10 text-red-600 dark:text-red-400",
|
|
83
|
-
gray: "border border-gray-
|
|
84
|
-
blue: "bg-[var(--
|
|
85
|
-
indigo: "bg-[var(--
|
|
86
|
-
violet: "bg-[var(--
|
|
87
|
-
emerald: "bg-[var(--
|
|
88
|
-
amber: "bg-[var(--
|
|
89
|
-
rose: "bg-[var(--
|
|
90
|
-
slate: "bg-[var(--
|
|
83
|
+
gray: "border border-gray-light-10/70 bg-white/50 text-gray-dark-30 dark:border-white/10 dark:bg-white/[0.05] dark:text-white/70",
|
|
84
|
+
blue: "bg-[var(--color-blue-main)] text-white shadow-[var(--shadow-blue-glow)] hover:brightness-110",
|
|
85
|
+
indigo: "bg-[var(--color-indigo-main)] text-white shadow-[var(--shadow-indigo-glow)] hover:brightness-110",
|
|
86
|
+
violet: "bg-[var(--color-violet-main)] text-white shadow-[var(--shadow-violet-glow)] hover:brightness-110",
|
|
87
|
+
emerald: "bg-[var(--color-green-main)] text-white shadow-[var(--shadow-green-glow)] hover:brightness-110",
|
|
88
|
+
amber: "bg-[var(--color-amber-main)] text-night-dark-5 shadow-[var(--shadow-amber-glow)] hover:brightness-110",
|
|
89
|
+
rose: "bg-[var(--color-red-main)] text-white shadow-[var(--shadow-red-glow)] hover:brightness-110",
|
|
90
|
+
slate: "bg-[var(--color-night-light-10)] text-white shadow-[var(--shadow-slate-glow)] hover:brightness-110",
|
|
91
91
|
transparent: ""
|
|
92
|
-
},
|
|
92
|
+
}, m = {
|
|
93
93
|
green: "border border-green-500/30 text-green-600 dark:text-green-400",
|
|
94
94
|
red: "border border-red-500/30 text-red-600 dark:text-red-400",
|
|
95
|
-
gray: "border border-gray-
|
|
96
|
-
blue: "border border-[var(--
|
|
97
|
-
indigo: "border border-[var(--
|
|
98
|
-
violet: "border border-[var(--
|
|
99
|
-
emerald: "border border-[var(--
|
|
100
|
-
amber: "border border-[var(--
|
|
101
|
-
rose: "border border-[var(--
|
|
102
|
-
slate: "border border-[var(--
|
|
95
|
+
gray: "border border-gray-light-10/70 text-gray-dark-30 dark:border-white/15 dark:text-white/70",
|
|
96
|
+
blue: "border border-[var(--color-blue-main)] text-[var(--color-blue-main)]",
|
|
97
|
+
indigo: "border border-[var(--color-indigo-main)] text-[var(--color-indigo-main)]",
|
|
98
|
+
violet: "border border-[var(--color-violet-main)] text-[var(--color-violet-main)]",
|
|
99
|
+
emerald: "border border-[var(--color-green-main)] text-[var(--color-green-main)]",
|
|
100
|
+
amber: "border border-[var(--color-amber-main)] text-[var(--color-amber-main)]",
|
|
101
|
+
rose: "border border-[var(--color-red-main)] text-[var(--color-red-main)]",
|
|
102
|
+
slate: "border border-[var(--color-night-light-10)] text-[var(--color-night-light-10)]",
|
|
103
103
|
transparent: ""
|
|
104
|
-
},
|
|
105
|
-
primary: "bg-
|
|
106
|
-
cyan: "bg-
|
|
104
|
+
}, g = {
|
|
105
|
+
primary: "bg-blue-main text-white shadow-[0_12px_32px_-14px_var(--app-accent-shadow,var(--shadow-blue-glow))] hover:brightness-110",
|
|
106
|
+
cyan: "bg-cyan-main text-night-dark-5 shadow-[var(--shadow-cyan-glow-md)] hover:brightness-110",
|
|
107
107
|
outline: "border border-white/15 bg-transparent text-white hover:border-white/25 hover:bg-white/5",
|
|
108
|
-
ghost: "bg-transparent text-
|
|
109
|
-
dark: "border border-white/10 bg-
|
|
110
|
-
danger: "border border-
|
|
111
|
-
success: "border border-
|
|
112
|
-
white: "bg-white text-
|
|
108
|
+
ghost: "bg-transparent text-slate-main hover:bg-white/5 hover:text-white",
|
|
109
|
+
dark: "border border-white/10 bg-night-light-10 text-white hover:bg-white/5",
|
|
110
|
+
danger: "border border-red-main/25 bg-red-main/10 text-red-main hover:bg-red-main/15",
|
|
111
|
+
success: "border border-green-main/25 bg-green-main/10 text-green-main hover:bg-green-main/15",
|
|
112
|
+
white: "bg-white text-night-main hover:bg-white/90"
|
|
113
113
|
}, E = {
|
|
114
114
|
sm: "h-8 px-3 text-xs",
|
|
115
115
|
md: "h-10 px-3 text-sm",
|
|
@@ -120,52 +120,52 @@ const Xe = /* @__PURE__ */ J(de, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
120
120
|
md: "h-11 px-4 text-sm",
|
|
121
121
|
lg: "h-12 px-6 text-sm",
|
|
122
122
|
xl: "h-14 px-6 text-sm"
|
|
123
|
-
},
|
|
123
|
+
}, c = {
|
|
124
124
|
sm: "size-8",
|
|
125
125
|
md: "size-10",
|
|
126
126
|
lg: "size-12",
|
|
127
127
|
xl: "size-14"
|
|
128
|
-
}, u =
|
|
129
|
-
const h = [
|
|
130
|
-
return
|
|
128
|
+
}, u = b(() => {
|
|
129
|
+
const h = [ve];
|
|
130
|
+
return k.value ? h.push("border border-gray-light-10/70 dark:border-white/10", c[e.size]) : e.variant ? h.push(g[e.variant], C[e.size]) : h.push(e.outline ? m[e.color] : w[e.color], E[e.size]), e.block && h.push("w-full"), e.disabled && h.push("pointer-events-none opacity-40"), h;
|
|
131
131
|
});
|
|
132
132
|
return (h, $) => (o(), B(W(t.value), A(h.$attrs, {
|
|
133
133
|
href: e.href || void 0,
|
|
134
134
|
to: e.to || void 0,
|
|
135
|
-
type:
|
|
135
|
+
type: n.value,
|
|
136
136
|
disabled: t.value === "button" ? e.disabled : void 0,
|
|
137
137
|
"aria-disabled": e.disabled || void 0,
|
|
138
138
|
class: u.value,
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: f
|
|
140
140
|
}), {
|
|
141
141
|
default: z(() => [
|
|
142
|
-
|
|
142
|
+
s("span", {
|
|
143
143
|
class: x(e.loading ? "opacity-0" : "")
|
|
144
144
|
}, [
|
|
145
|
-
|
|
145
|
+
y(h.$slots, "default")
|
|
146
146
|
], 2),
|
|
147
|
-
e.loading ? (o(), B(
|
|
147
|
+
e.loading ? (o(), B(me, {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
150
|
-
})) :
|
|
150
|
+
})) : p("", !0)
|
|
151
151
|
]),
|
|
152
152
|
_: 3
|
|
153
153
|
}, 16, ["href", "to", "type", "disabled", "aria-disabled", "class"]));
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), fe = {
|
|
156
156
|
viewBox: "0 0 24 24",
|
|
157
157
|
width: "1.2em",
|
|
158
158
|
height: "1.2em"
|
|
159
159
|
};
|
|
160
|
-
function
|
|
161
|
-
return o(), i("svg",
|
|
162
|
-
|
|
160
|
+
function ge(e, a) {
|
|
161
|
+
return o(), i("svg", fe, [...a[0] || (a[0] = [
|
|
162
|
+
s("path", {
|
|
163
163
|
fill: "currentColor",
|
|
164
164
|
d: "m12 10.587l4.95-4.95l1.414 1.414l-4.95 4.95l4.95 4.95l-1.415 1.414l-4.95-4.95l-4.949 4.95l-1.414-1.415l4.95-4.95l-4.95-4.95L7.05 5.638z"
|
|
165
165
|
}, null, -1)
|
|
166
166
|
])]);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const Y = F({ name: "ri-close-line", render: ge }), be = { class: "flex items-center absolute right-3 top-5 z-10" }, Z = /* @__PURE__ */ V({
|
|
169
169
|
__name: "VPopup",
|
|
170
170
|
props: {
|
|
171
171
|
hiddenCloser: { type: Boolean },
|
|
@@ -173,22 +173,22 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
173
173
|
},
|
|
174
174
|
emits: ["close", "click", "open"],
|
|
175
175
|
setup(e, { emit: a }) {
|
|
176
|
-
const l = a, { show:
|
|
176
|
+
const l = a, { show: f, overlay: r, onClose: t, onOpen: n } = U(l), k = N(null), w = N(null), { opacity: m, transform: g } = re(k, w, t), c = { click: ($) => {
|
|
177
177
|
l("click", $);
|
|
178
|
-
}, open:
|
|
179
|
-
$ ?
|
|
180
|
-
} }, u =
|
|
178
|
+
}, open: n, set: ($) => {
|
|
179
|
+
$ ? n() : t(new Event("hide"));
|
|
180
|
+
} }, u = b(() => ({
|
|
181
181
|
auto: "max-h-[calc(100dvh-50px)]",
|
|
182
182
|
full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
|
|
183
183
|
screen: "h-dvh"
|
|
184
|
-
})), h =
|
|
184
|
+
})), h = b(() => ({
|
|
185
185
|
auto: "max-h-[calc(100dvh-50px-16px)]",
|
|
186
186
|
full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
|
|
187
187
|
screen: "h-[calc(100dvh-16px)]"
|
|
188
188
|
}));
|
|
189
|
-
return ($,
|
|
190
|
-
const D =
|
|
191
|
-
return o(), B(
|
|
189
|
+
return ($, M) => {
|
|
190
|
+
const D = Y, v = X;
|
|
191
|
+
return o(), B(q, { to: "body" }, [
|
|
192
192
|
S(I, {
|
|
193
193
|
"enter-active-class": "duration-300 ease-out",
|
|
194
194
|
"enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
|
|
@@ -198,47 +198,47 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
198
198
|
"leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
|
|
199
199
|
}, {
|
|
200
200
|
default: z(() => [
|
|
201
|
-
|
|
201
|
+
d(f) ? (o(), i("div", {
|
|
202
202
|
key: 0,
|
|
203
203
|
ref_key: "container",
|
|
204
|
-
ref:
|
|
204
|
+
ref: w,
|
|
205
205
|
class: "fixed bottom-0 left-0 w-full z-15"
|
|
206
206
|
}, [
|
|
207
|
-
|
|
207
|
+
d(r) ? (o(), i("div", {
|
|
208
208
|
key: 0,
|
|
209
209
|
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
210
|
-
style: H({ opacity:
|
|
211
|
-
onClick:
|
|
212
|
-
(...j) =>
|
|
213
|
-
onWheel:
|
|
210
|
+
style: H({ opacity: d(m) }),
|
|
211
|
+
onClick: M[0] || (M[0] = //@ts-ignore
|
|
212
|
+
(...j) => d(t) && d(t)(...j)),
|
|
213
|
+
onWheel: M[1] || (M[1] = L(() => {
|
|
214
214
|
}, ["prevent"])),
|
|
215
|
-
onTouchmove:
|
|
215
|
+
onTouchmove: M[2] || (M[2] = L(() => {
|
|
216
216
|
}, ["prevent"]))
|
|
217
|
-
}, null, 36)) :
|
|
218
|
-
|
|
217
|
+
}, null, 36)) : p("", !0),
|
|
218
|
+
s("div", {
|
|
219
219
|
class: x(["glass-popover relative w-full rounded-t-lg border-t shadow-nav", u.value[e.size]]),
|
|
220
|
-
style: H({ transform:
|
|
220
|
+
style: H({ transform: d(g) })
|
|
221
221
|
}, [
|
|
222
|
-
|
|
222
|
+
s("div", {
|
|
223
223
|
ref_key: "target",
|
|
224
|
-
ref:
|
|
224
|
+
ref: k,
|
|
225
225
|
class: "flex justify-center py-3 md:pb-6",
|
|
226
|
-
onWheel:
|
|
226
|
+
onWheel: M[3] || (M[3] = L(() => {
|
|
227
227
|
}, ["prevent"])),
|
|
228
|
-
onTouchmove:
|
|
228
|
+
onTouchmove: M[4] || (M[4] = L(() => {
|
|
229
229
|
}, ["prevent"]))
|
|
230
|
-
}, [...
|
|
231
|
-
|
|
230
|
+
}, [...M[5] || (M[5] = [
|
|
231
|
+
s("div", { class: "self-end h-1 w-12 bg-gray-main" }, null, -1)
|
|
232
232
|
])], 544),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
S(
|
|
233
|
+
s("div", be, [
|
|
234
|
+
y($.$slots, "button", { close: d(t) }),
|
|
235
|
+
S(v, {
|
|
236
236
|
class: "size-5 md:size-6",
|
|
237
237
|
color: "transparent",
|
|
238
238
|
size: "none",
|
|
239
239
|
icon: "",
|
|
240
240
|
"aria-label": "Close",
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: d(t)
|
|
242
242
|
}, {
|
|
243
243
|
default: z(() => [
|
|
244
244
|
S(D, { class: "size-5" })
|
|
@@ -246,16 +246,16 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
246
246
|
_: 1
|
|
247
247
|
}, 8, ["onClick"])
|
|
248
248
|
]),
|
|
249
|
-
|
|
249
|
+
s("div", {
|
|
250
250
|
class: x(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain no-scrollbar", h.value[e.size]])
|
|
251
251
|
}, [
|
|
252
|
-
|
|
253
|
-
close:
|
|
254
|
-
on:
|
|
252
|
+
y($.$slots, "default", {
|
|
253
|
+
close: d(t),
|
|
254
|
+
on: c
|
|
255
255
|
})
|
|
256
256
|
], 2)
|
|
257
257
|
], 6)
|
|
258
|
-
], 512)) :
|
|
258
|
+
], 512)) : p("", !0)
|
|
259
259
|
]),
|
|
260
260
|
_: 3
|
|
261
261
|
})
|
|
@@ -271,7 +271,7 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
271
271
|
unmounted(e) {
|
|
272
272
|
document.removeEventListener("click", e.clickOutsideEvent), delete e.clickOutsideEvent;
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, ye = { class: "relative" }, we = { class: "flex items-center cursor-pointer" }, pe = /* @__PURE__ */ V({
|
|
275
275
|
__name: "VDropdown",
|
|
276
276
|
props: {
|
|
277
277
|
title: { default: "" },
|
|
@@ -286,27 +286,27 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
286
286
|
},
|
|
287
287
|
emits: ["click", "show", "close"],
|
|
288
288
|
setup(e, { emit: a }) {
|
|
289
|
-
const l = a,
|
|
290
|
-
|
|
291
|
-
},
|
|
292
|
-
l("click", t.value), !e.disabled && (t.value ? e.hideOnClick &&
|
|
293
|
-
}, v = (u) => {
|
|
294
|
-
t.value = !0, l("show", u);
|
|
289
|
+
const l = a, r = G(J).greaterOrEqual("lg"), t = K(!1), n = b(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), k = (u) => {
|
|
290
|
+
r.value && t.value && g(u);
|
|
291
|
+
}, w = (u) => {
|
|
292
|
+
l("click", t.value), !e.disabled && (t.value ? e.hideOnClick && g(u) : m(u));
|
|
295
293
|
}, m = (u) => {
|
|
294
|
+
t.value = !0, l("show", u);
|
|
295
|
+
}, g = (u) => {
|
|
296
296
|
t.value = !1, l("close", u);
|
|
297
297
|
}, E = (u) => {
|
|
298
|
-
u ?
|
|
298
|
+
u ? m(new Event("show")) : g(new Event("hide"));
|
|
299
299
|
}, C = () => {
|
|
300
|
-
|
|
301
|
-
},
|
|
302
|
-
return (u, h) => te((o(), i("div",
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
on:
|
|
300
|
+
g(new Event("hide"));
|
|
301
|
+
}, c = { click: w, open: m, set: E };
|
|
302
|
+
return (u, h) => te((o(), i("div", ye, [
|
|
303
|
+
s("div", we, [
|
|
304
|
+
y(u.$slots, "activator", {
|
|
305
|
+
on: c,
|
|
306
306
|
isShow: t.value
|
|
307
307
|
})
|
|
308
308
|
]),
|
|
309
|
-
|
|
309
|
+
d(r) ? (o(), B(I, {
|
|
310
310
|
key: 0,
|
|
311
311
|
"enter-active-class": "duration-300 ease-out",
|
|
312
312
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
@@ -319,40 +319,40 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
319
319
|
t.value ? (o(), i("div", {
|
|
320
320
|
key: 0,
|
|
321
321
|
class: "z-30 min-w-full absolute",
|
|
322
|
-
style: H(
|
|
322
|
+
style: H(n.value)
|
|
323
323
|
}, [
|
|
324
|
-
|
|
325
|
-
on:
|
|
326
|
-
show:
|
|
327
|
-
hide:
|
|
324
|
+
y(u.$slots, "default", {
|
|
325
|
+
on: c,
|
|
326
|
+
show: m,
|
|
327
|
+
hide: g,
|
|
328
328
|
isShow: t.value,
|
|
329
|
-
isLgOrLarger:
|
|
329
|
+
isLgOrLarger: d(r)
|
|
330
330
|
})
|
|
331
|
-
], 4)) :
|
|
331
|
+
], 4)) : p("", !0)
|
|
332
332
|
]),
|
|
333
333
|
_: 3
|
|
334
|
-
})) :
|
|
335
|
-
!
|
|
334
|
+
})) : p("", !0),
|
|
335
|
+
!d(r) && t.value ? (o(), B(Z, {
|
|
336
336
|
key: 1,
|
|
337
337
|
title: e.title,
|
|
338
338
|
onClose: C
|
|
339
339
|
}, {
|
|
340
340
|
default: z(({ on: $ }) => [
|
|
341
|
-
|
|
341
|
+
y(u.$slots, "default", {
|
|
342
342
|
on: $,
|
|
343
|
-
show:
|
|
344
|
-
hide:
|
|
343
|
+
show: m,
|
|
344
|
+
hide: g,
|
|
345
345
|
isShow: t.value,
|
|
346
|
-
isLgOrLarger:
|
|
346
|
+
isLgOrLarger: d(r)
|
|
347
347
|
})
|
|
348
348
|
]),
|
|
349
349
|
_: 3
|
|
350
|
-
}, 8, ["title"])) :
|
|
350
|
+
}, 8, ["title"])) : p("", !0)
|
|
351
351
|
])), [
|
|
352
|
-
[
|
|
352
|
+
[d(xe), k]
|
|
353
353
|
]);
|
|
354
354
|
}
|
|
355
|
-
}),
|
|
355
|
+
}), ke = ["onClick"], Me = /* @__PURE__ */ V({
|
|
356
356
|
__name: "VList",
|
|
357
357
|
props: {
|
|
358
358
|
items: {},
|
|
@@ -360,37 +360,37 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
360
360
|
},
|
|
361
361
|
emits: ["click"],
|
|
362
362
|
setup(e, { emit: a }) {
|
|
363
|
-
const l = a,
|
|
364
|
-
return (
|
|
363
|
+
const l = a, f = (r, t) => l("click", r, t);
|
|
364
|
+
return (r, t) => (o(), i("ul", {
|
|
365
365
|
class: x(e.plain ? "" : "glass-popover rounded-md")
|
|
366
366
|
}, [
|
|
367
|
-
(o(!0), i(T, null, P(e.items, (
|
|
368
|
-
key:
|
|
369
|
-
class: "flex min-h-[40px] w-full cursor-pointer items-center whitespace-nowrap border-b border-gray-
|
|
370
|
-
onClick: (
|
|
367
|
+
(o(!0), i(T, null, P(e.items, (n) => (o(), i("li", {
|
|
368
|
+
key: n.name,
|
|
369
|
+
class: "flex min-h-[40px] w-full cursor-pointer items-center whitespace-nowrap border-b border-gray-light-30 px-4 last:border-b-0 hover:bg-cyan-main/10 dark:border-white/5 dark:hover:bg-white/[0.06]",
|
|
370
|
+
onClick: (k) => f(n, k)
|
|
371
371
|
}, [
|
|
372
|
-
|
|
373
|
-
R(O(
|
|
372
|
+
y(r.$slots, "default", { item: n }, () => [
|
|
373
|
+
R(O(n.name), 1)
|
|
374
374
|
])
|
|
375
|
-
], 8,
|
|
375
|
+
], 8, ke))), 128))
|
|
376
376
|
], 2));
|
|
377
377
|
}
|
|
378
|
-
}), ze = { class: "relative flex items-end gap-0.5 w-10" }, Ce = ["title"], $e = { class: "absolute -top-1 -left-1 text-xs text-gray-
|
|
378
|
+
}), ze = { class: "relative flex items-end gap-0.5 w-10" }, Ce = ["title"], $e = { class: "absolute -top-1 -left-1 text-xs text-gray-dark-25 dark:text-gray-light-10" }, Ze = /* @__PURE__ */ V({
|
|
379
379
|
__name: "VWifiIcon",
|
|
380
380
|
props: {
|
|
381
381
|
rssi: { default: 0 },
|
|
382
382
|
channel: { default: 0 }
|
|
383
383
|
},
|
|
384
384
|
setup(e) {
|
|
385
|
-
const a = 2 * (e.rssi + 100), l = (
|
|
386
|
-
return (
|
|
387
|
-
(o(), i(T, null, P([10, 15, 25, 40, 70], (t,
|
|
385
|
+
const a = 2 * (e.rssi + 100), l = (f) => f < a;
|
|
386
|
+
return (f, r) => (o(), i("div", ze, [
|
|
387
|
+
(o(), i(T, null, P([10, 15, 25, 40, 70], (t, n) => s("div", {
|
|
388
388
|
key: t,
|
|
389
|
-
class: x(["w-1 h-5 rounded-lg", [l(t) ? "bg-gray-
|
|
390
|
-
style: H(`height: ${(
|
|
389
|
+
class: x(["w-1 h-5 rounded-lg", [l(t) ? "bg-gray-dark-40 dark:bg-gray-light-30" : "bg-gray-light-10 dark:bg-gray-dark-30"]]),
|
|
390
|
+
style: H(`height: ${(n + 1) * 5}px`),
|
|
391
391
|
title: `rssi: ${e.rssi} channel: ${e.channel}`
|
|
392
392
|
}, null, 14, Ce)), 64)),
|
|
393
|
-
|
|
393
|
+
s("div", $e, O(e.channel), 1)
|
|
394
394
|
]));
|
|
395
395
|
}
|
|
396
396
|
}), Ve = {
|
|
@@ -400,7 +400,7 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
400
400
|
};
|
|
401
401
|
function Be(e, a) {
|
|
402
402
|
return o(), i("svg", Ve, [...a[0] || (a[0] = [
|
|
403
|
-
|
|
403
|
+
s("path", {
|
|
404
404
|
fill: "currentColor",
|
|
405
405
|
d: "m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"
|
|
406
406
|
}, null, -1)
|
|
@@ -460,8 +460,8 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
460
460
|
box: ["M21 8l-9-5-9 5 9 5 9-5", "M3 8v8l9 5 9-5V8", "M12 13v8"],
|
|
461
461
|
external: ["M14 3h7v7", "M10 14 21 3", "M21 14v7H3V3h7"],
|
|
462
462
|
github: ["M15 22v-4a4.8 4.8 0 0 0-1-3.5c3.3-.4 6.8-1.6 6.8-7A5.4 5.4 0 0 0 19.5 4 5 5 0 0 0 19.4.5S18.2.1 15 1.8a13.4 13.4 0 0 0-7 0C4.8.1 3.6.5 3.6.5A5 5 0 0 0 3.5 4 5.4 5.4 0 0 0 2 7.5c0 5.4 3.5 6.6 6.8 7A4.8 4.8 0 0 0 8 18v4", "M8 19c-3 .9-3-1.5-4-2"]
|
|
463
|
-
}, l =
|
|
464
|
-
return (
|
|
463
|
+
}, l = b(() => a[e.name] ?? a.help);
|
|
464
|
+
return (f, r) => (o(), i("svg", {
|
|
465
465
|
width: e.size,
|
|
466
466
|
height: e.size,
|
|
467
467
|
viewBox: "0 0 24 24",
|
|
@@ -472,13 +472,13 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
472
472
|
"stroke-linejoin": "round",
|
|
473
473
|
"aria-hidden": "true"
|
|
474
474
|
}, [
|
|
475
|
-
(o(!0), i(T, null, P(l.value, (t,
|
|
476
|
-
key:
|
|
475
|
+
(o(!0), i(T, null, P(l.value, (t, n) => (o(), i("path", {
|
|
476
|
+
key: n,
|
|
477
477
|
d: t
|
|
478
478
|
}, null, 8, Oe))), 128))
|
|
479
479
|
], 8, Se));
|
|
480
480
|
}
|
|
481
|
-
}), He = { class: "w-full relative" }, De = ["disabled"], Ae = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 after:bg-white dark:after:bg-
|
|
481
|
+
}), He = { class: "w-full relative" }, De = ["disabled"], Ae = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 after:bg-white dark:after:bg-night-light-10 after:transition-all", Ie = /* @__PURE__ */ V({
|
|
482
482
|
__name: "VTextField",
|
|
483
483
|
props: {
|
|
484
484
|
modelValue: { default: null },
|
|
@@ -496,67 +496,67 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
496
496
|
},
|
|
497
497
|
emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
|
|
498
498
|
setup(e, { emit: a }) {
|
|
499
|
-
const l = a,
|
|
500
|
-
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent placeholder:text-gray-
|
|
499
|
+
const l = a, f = {
|
|
500
|
+
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent placeholder:text-gray-main dark:placeholder:text-gray-dark-25",
|
|
501
501
|
textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
|
|
502
|
-
},
|
|
502
|
+
}, r = K(!1), t = b(() => e.error || e.message), n = b(() => [
|
|
503
503
|
e.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
504
504
|
e.error ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "",
|
|
505
|
-
e.disabled ? "border-gray-
|
|
506
|
-
]),
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
]), C =
|
|
511
|
-
|
|
512
|
-
}, u = (
|
|
513
|
-
|
|
514
|
-
}, h = ({ target:
|
|
515
|
-
e.disabled || l("on-icon",
|
|
505
|
+
e.disabled ? "border-gray-light-10 opacity-40 dark:border-gray-dark-30" : "border-gray-light-10/80 hover:border-gray-main/80 dark:border-white/10 dark:hover:border-white/20"
|
|
506
|
+
]), k = b(() => f[e.component]), w = (v) => v || v === 0, m = b(() => r.value || w(e.modelValue) || e.active), g = b(() => e.icon ? "left-11" : "left-3.5"), E = b(() => [
|
|
507
|
+
g.value,
|
|
508
|
+
m.value ? Ae : "",
|
|
509
|
+
m.value ? "top-0 bg-white/80 px-1 text-xs text-gray-dark-25 dark:bg-night-light-10/80 dark:text-gray-main" : "top-1/2 bg-transparent px-0 text-gray-main dark:text-gray-dark-25"
|
|
510
|
+
]), C = b(() => e.component === "input"), c = (v) => {
|
|
511
|
+
r.value = !1, l("blur", v);
|
|
512
|
+
}, u = (v) => {
|
|
513
|
+
r.value = !0, l("focus", v);
|
|
514
|
+
}, h = ({ target: v }) => l("update:modelValue", v.value), $ = (v) => l("enter", v), M = (v) => l("click", v), D = (v) => {
|
|
515
|
+
e.disabled || l("on-icon", v);
|
|
516
516
|
};
|
|
517
|
-
return (
|
|
518
|
-
|
|
519
|
-
class: x(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-
|
|
517
|
+
return (v, j) => (o(), i("div", He, [
|
|
518
|
+
s("label", {
|
|
519
|
+
class: x(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-cyan-main/60 focus-within:ring-1 focus-within:ring-cyan-main/20", n.value])
|
|
520
520
|
}, [
|
|
521
521
|
e.icon ? (o(), B(Ee, {
|
|
522
522
|
key: 0,
|
|
523
523
|
name: e.icon,
|
|
524
524
|
size: 18,
|
|
525
|
-
class: "ml-3.5 shrink-0 text-gray-
|
|
526
|
-
}, null, 8, ["name"])) :
|
|
527
|
-
|
|
525
|
+
class: "ml-3.5 shrink-0 text-gray-main dark:text-gray-dark-25"
|
|
526
|
+
}, null, 8, ["name"])) : p("", !0),
|
|
527
|
+
s("span", {
|
|
528
528
|
class: x(["absolute -translate-y-1/2 rounded transition-all", E.value])
|
|
529
529
|
}, O(e.label), 3),
|
|
530
|
-
(o(), B(W(e.component), A(
|
|
530
|
+
(o(), B(W(e.component), A(v.$attrs, {
|
|
531
531
|
value: e.modelValue,
|
|
532
|
-
placeholder:
|
|
532
|
+
placeholder: m.value ? e.placeholder : "",
|
|
533
533
|
disabled: !!e.disabled,
|
|
534
534
|
type: e.type,
|
|
535
535
|
readonly: e.readonly,
|
|
536
536
|
rows: C.value ? null : "2",
|
|
537
537
|
wrap: C.value ? null : "soft",
|
|
538
|
-
class:
|
|
538
|
+
class: k.value,
|
|
539
539
|
"aria-invalid": t.value ? !0 : void 0,
|
|
540
540
|
onFocus: u,
|
|
541
|
-
onBlur:
|
|
541
|
+
onBlur: c,
|
|
542
542
|
onInput: h,
|
|
543
|
-
onClick:
|
|
543
|
+
onClick: M,
|
|
544
544
|
onKeypress: ae($, ["enter"])
|
|
545
545
|
}), null, 16, ["value", "placeholder", "disabled", "type", "readonly", "rows", "wrap", "class", "aria-invalid"])),
|
|
546
|
-
|
|
546
|
+
v.$slots.icon ? (o(), i("button", {
|
|
547
547
|
key: 1,
|
|
548
548
|
disabled: !!e.disabled,
|
|
549
|
-
class: x([{ "cursor-pointer": !e.disabled }, "flex h-full flex-[0_0_50px] items-center justify-center border-l border-gray-
|
|
549
|
+
class: x([{ "cursor-pointer": !e.disabled }, "flex h-full flex-[0_0_50px] items-center justify-center border-l border-gray-light-10/70 text-gray-main dark:border-white/10"]),
|
|
550
550
|
onClick: D
|
|
551
551
|
}, [
|
|
552
|
-
|
|
553
|
-
], 10, De)) :
|
|
552
|
+
y(v.$slots, "icon")
|
|
553
|
+
], 10, De)) : p("", !0)
|
|
554
554
|
], 2),
|
|
555
|
-
e.hideMessage ?
|
|
555
|
+
e.hideMessage ? p("", !0) : (o(), i("div", {
|
|
556
556
|
key: 0,
|
|
557
|
-
class: x(["h-[24px] px-2 text-xs", e.error ? "text-red-400" : "text-gray-
|
|
557
|
+
class: x(["h-[24px] px-2 text-xs", e.error ? "text-red-400" : "text-gray-dark-25 dark:text-gray-main"])
|
|
558
558
|
}, [
|
|
559
|
-
|
|
559
|
+
y(v.$slots, "message", {}, () => [
|
|
560
560
|
R(O(t.value), 1)
|
|
561
561
|
])
|
|
562
562
|
], 2))
|
|
@@ -565,7 +565,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
565
565
|
}), Te = { class: "min-w-50 w-full rounded-md pb-6 transition-all duration-300 lg:pb-0" }, Pe = {
|
|
566
566
|
key: 0,
|
|
567
567
|
class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
|
|
568
|
-
},
|
|
568
|
+
}, _e = /* @__PURE__ */ V({
|
|
569
569
|
inheritAttrs: !1,
|
|
570
570
|
__name: "VSelect",
|
|
571
571
|
props: {
|
|
@@ -584,18 +584,18 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
584
584
|
},
|
|
585
585
|
emits: ["change"],
|
|
586
586
|
setup(e, { emit: a }) {
|
|
587
|
-
const l = le(e, ["modelValue", "label", "items", "disabled"]),
|
|
588
|
-
function
|
|
589
|
-
|
|
587
|
+
const l = le(e, ["modelValue", "label", "items", "disabled"]), f = a;
|
|
588
|
+
function r(t, n) {
|
|
589
|
+
f("change", t), n == null || n.set(!1);
|
|
590
590
|
}
|
|
591
|
-
return (t,
|
|
592
|
-
const
|
|
593
|
-
return o(), B(
|
|
591
|
+
return (t, n) => {
|
|
592
|
+
const k = Le;
|
|
593
|
+
return o(), B(pe, A(l, {
|
|
594
594
|
"hide-on-click": !1,
|
|
595
595
|
class: "relative"
|
|
596
596
|
}), {
|
|
597
|
-
activator: z(({ on:
|
|
598
|
-
|
|
597
|
+
activator: z(({ on: w, isShow: m }) => [
|
|
598
|
+
y(t.$slots, "activator", oe(ne({ on: w, isShow: m })), () => [
|
|
599
599
|
S(Ie, {
|
|
600
600
|
"model-value": e.modelValue,
|
|
601
601
|
disabled: e.disabled,
|
|
@@ -603,30 +603,30 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
603
603
|
readonly: "",
|
|
604
604
|
hideMessage: "",
|
|
605
605
|
active: "",
|
|
606
|
-
onClick:
|
|
607
|
-
onOnIcon:
|
|
606
|
+
onClick: w.click,
|
|
607
|
+
onOnIcon: w.click
|
|
608
608
|
}, {
|
|
609
609
|
icon: z(() => [
|
|
610
|
-
S(
|
|
611
|
-
class: x(["transition duration-300",
|
|
610
|
+
S(k, {
|
|
611
|
+
class: x(["transition duration-300", m ? "rotate-180" : ""])
|
|
612
612
|
}, null, 8, ["class"])
|
|
613
613
|
]),
|
|
614
614
|
_: 2
|
|
615
615
|
}, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
|
|
616
616
|
])
|
|
617
617
|
]),
|
|
618
|
-
default: z(({ on:
|
|
619
|
-
|
|
620
|
-
e.label ? (o(), i("h4", Pe, O(e.label), 1)) :
|
|
621
|
-
S(
|
|
618
|
+
default: z(({ on: w, isLgOrLarger: m }) => [
|
|
619
|
+
s("div", Te, [
|
|
620
|
+
e.label ? (o(), i("h4", Pe, O(e.label), 1)) : p("", !0),
|
|
621
|
+
S(Me, {
|
|
622
622
|
items: e.items,
|
|
623
|
-
plain: !
|
|
624
|
-
class: x(["lg:max-h-50 lg:overflow-y-auto lg:overscroll-contain", { scrollbar:
|
|
625
|
-
onClick: (
|
|
623
|
+
plain: !m,
|
|
624
|
+
class: x(["lg:max-h-50 lg:overflow-y-auto lg:overscroll-contain", { scrollbar: m }]),
|
|
625
|
+
onClick: (g) => r(g, w)
|
|
626
626
|
}, {
|
|
627
|
-
default: z(({ item:
|
|
628
|
-
|
|
629
|
-
R(O(
|
|
627
|
+
default: z(({ item: g }) => [
|
|
628
|
+
y(t.$slots, "item", { item: g }, () => [
|
|
629
|
+
R(O(g.name), 1)
|
|
630
630
|
])
|
|
631
631
|
]),
|
|
632
632
|
_: 3
|
|
@@ -654,22 +654,22 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
654
654
|
},
|
|
655
655
|
emits: ["close", "click", "open"],
|
|
656
656
|
setup(e, { expose: a, emit: l }) {
|
|
657
|
-
const
|
|
657
|
+
const f = l, r = G(J), { show: t, onClose: n, onOpen: k } = U(f, e.timeout), w = {
|
|
658
658
|
sm: "max-w-full md:max-w-[330px] max-md:h-full",
|
|
659
659
|
md: "max-w-full md:max-w-[672px] max-md:h-full",
|
|
660
660
|
lg: "max-w-full md:max-w-[960px] max-md:h-full",
|
|
661
661
|
full: "relative max-w-full w-full h-3/4 "
|
|
662
|
-
},
|
|
662
|
+
}, m = {
|
|
663
663
|
none: "",
|
|
664
664
|
white: "glass-panel",
|
|
665
665
|
gray: ""
|
|
666
|
-
},
|
|
666
|
+
}, g = b(() => [w[e.size], m[e.color]]), E = r.greaterOrEqual("lg");
|
|
667
667
|
return a({
|
|
668
668
|
show: t,
|
|
669
|
-
onClose:
|
|
670
|
-
}), (C,
|
|
671
|
-
const u =
|
|
672
|
-
return e.isOnlyDialog ||
|
|
669
|
+
onClose: n
|
|
670
|
+
}), (C, c) => {
|
|
671
|
+
const u = Y;
|
|
672
|
+
return e.isOnlyDialog || d(E) ? (o(), B(q, {
|
|
673
673
|
key: 0,
|
|
674
674
|
to: "body"
|
|
675
675
|
}, [
|
|
@@ -680,40 +680,40 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
680
680
|
"leave-active-class": "duration-200 ease-in",
|
|
681
681
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
682
682
|
"leave-to-class": "transform opacity-0 -translate-y-2",
|
|
683
|
-
onAfterEnter:
|
|
683
|
+
onAfterEnter: d(k)
|
|
684
684
|
}, {
|
|
685
685
|
default: z(() => [
|
|
686
|
-
|
|
686
|
+
d(t) ? (o(), i("div", {
|
|
687
687
|
key: 0,
|
|
688
688
|
class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
|
|
689
|
-
onWheel:
|
|
689
|
+
onWheel: c[4] || (c[4] = L(() => {
|
|
690
690
|
}, ["stop"]))
|
|
691
691
|
}, [
|
|
692
|
-
|
|
692
|
+
s("div", {
|
|
693
693
|
class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
|
|
694
|
-
onClick:
|
|
695
|
-
(...h) =>
|
|
694
|
+
onClick: c[0] || (c[0] = //@ts-ignore
|
|
695
|
+
(...h) => d(n) && d(n)(...h))
|
|
696
696
|
}),
|
|
697
|
-
|
|
697
|
+
s("div", {
|
|
698
698
|
class: x(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
|
|
699
699
|
}, [
|
|
700
|
-
|
|
701
|
-
class: x(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg",
|
|
700
|
+
s("div", {
|
|
701
|
+
class: x(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg", g.value])
|
|
702
702
|
}, [
|
|
703
|
-
|
|
704
|
-
class: x(["flex items-center min-h-14 border-b border-gray-
|
|
705
|
-
onWheel:
|
|
703
|
+
s("div", {
|
|
704
|
+
class: x(["flex items-center min-h-14 border-b border-gray-light-10/70 bg-white/35 px-6 dark:border-white/10 dark:bg-white/[0.03]", e.size === "full" ? "absolute top-0 right-4 border-0 bg-transparent px-0" : ""]),
|
|
705
|
+
onWheel: c[1] || (c[1] = L(() => {
|
|
706
706
|
}, ["prevent"])),
|
|
707
|
-
onTouchmove:
|
|
707
|
+
onTouchmove: c[2] || (c[2] = L(() => {
|
|
708
708
|
}, ["prevent"]))
|
|
709
709
|
}, [
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
S(
|
|
710
|
+
s("h4", Re, O(e.title), 1),
|
|
711
|
+
y(C.$slots, "header-btn", { close: d(n) }),
|
|
712
|
+
S(X, {
|
|
713
713
|
color: "transparent",
|
|
714
714
|
type: "icon",
|
|
715
715
|
size: "sm",
|
|
716
|
-
onClick:
|
|
716
|
+
onClick: d(n)
|
|
717
717
|
}, {
|
|
718
718
|
default: z(() => [
|
|
719
719
|
S(u)
|
|
@@ -721,39 +721,39 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
721
721
|
_: 1
|
|
722
722
|
}, 8, ["onClick"])
|
|
723
723
|
], 34),
|
|
724
|
-
|
|
724
|
+
s("div", {
|
|
725
725
|
class: x(["relative overflow-auto max-h-dvh scrollbar overflow-y-auto overscroll-contain min-h-0 max-md:flex-auto", e.size === "full" ? "flex-auto" : "md:max-h-147.5 px-6 pb-6 pt-5"]),
|
|
726
|
-
onClose:
|
|
727
|
-
(...h) =>
|
|
726
|
+
onClose: c[3] || (c[3] = //@ts-ignore
|
|
727
|
+
(...h) => d(n) && d(n)(...h))
|
|
728
728
|
}, [
|
|
729
|
-
|
|
729
|
+
y(C.$slots, "default", { close: d(n) })
|
|
730
730
|
], 34)
|
|
731
731
|
], 2)
|
|
732
732
|
], 2)
|
|
733
|
-
], 32)) :
|
|
733
|
+
], 32)) : p("", !0)
|
|
734
734
|
]),
|
|
735
735
|
_: 3
|
|
736
736
|
}, 8, ["onAfterEnter"])
|
|
737
|
-
])) : (o(), B(
|
|
737
|
+
])) : (o(), B(Z, {
|
|
738
738
|
key: 1,
|
|
739
739
|
size: e.popupSize,
|
|
740
|
-
onClose:
|
|
740
|
+
onClose: d(n)
|
|
741
741
|
}, {
|
|
742
742
|
button: z(() => [
|
|
743
|
-
|
|
743
|
+
y(C.$slots, "header-btn", { close: d(n) })
|
|
744
744
|
]),
|
|
745
745
|
default: z(({ close: h }) => [
|
|
746
|
-
|
|
747
|
-
|
|
746
|
+
s("div", je, [
|
|
747
|
+
s("div", {
|
|
748
748
|
class: x(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
749
|
-
onWheel:
|
|
749
|
+
onWheel: c[5] || (c[5] = L(() => {
|
|
750
750
|
}, ["prevent"])),
|
|
751
|
-
onTouchmove:
|
|
751
|
+
onTouchmove: c[6] || (c[6] = L(() => {
|
|
752
752
|
}, ["prevent"]))
|
|
753
753
|
}, [
|
|
754
|
-
e.title ? (o(), i("h4", Ne, O(e.title), 1)) :
|
|
754
|
+
e.title ? (o(), i("h4", Ne, O(e.title), 1)) : p("", !0)
|
|
755
755
|
], 34),
|
|
756
|
-
|
|
756
|
+
y(C.$slots, "default", { close: h })
|
|
757
757
|
])
|
|
758
758
|
]),
|
|
759
759
|
_: 3
|
|
@@ -762,17 +762,17 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
762
762
|
}
|
|
763
763
|
}), We = {
|
|
764
764
|
key: 0,
|
|
765
|
-
class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-
|
|
765
|
+
class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-light-30 dark:bg-white/5 before:bg-cyan-main before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"
|
|
766
766
|
}, Fe = {
|
|
767
767
|
key: 1,
|
|
768
|
-
class: "absolute top-0 left-0 w-full h-full bg-gray-
|
|
769
|
-
},
|
|
768
|
+
class: "absolute top-0 left-0 w-full h-full bg-gray-light-30 dark:bg-night-main/75 z-10 opacity-50"
|
|
769
|
+
}, qe = {
|
|
770
770
|
key: 2,
|
|
771
771
|
class: "mb-4 flex items-center justify-between gap-3"
|
|
772
|
-
},
|
|
772
|
+
}, Ke = {
|
|
773
773
|
key: 0,
|
|
774
|
-
class: "text-lg font-semibold text-gray-
|
|
775
|
-
},
|
|
774
|
+
class: "text-lg font-semibold text-gray-dark-30 dark:text-white"
|
|
775
|
+
}, Ue = { class: "ml-auto" }, Ge = ["inert", "aria-disabled"], tt = /* @__PURE__ */ V({
|
|
776
776
|
__name: "CardMain",
|
|
777
777
|
props: {
|
|
778
778
|
title: { default: "" },
|
|
@@ -781,43 +781,43 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
781
781
|
padded: { type: Boolean, default: !0 }
|
|
782
782
|
},
|
|
783
783
|
setup(e) {
|
|
784
|
-
const a =
|
|
785
|
-
return (l,
|
|
786
|
-
class: x(["glass-panel relative transition-all duration-300 hover:border-
|
|
784
|
+
const a = b(() => e.padded ? "p-5 sm:p-6" : "");
|
|
785
|
+
return (l, f) => (o(), i("div", {
|
|
786
|
+
class: x(["glass-panel relative transition-all duration-300 hover:border-cyan-main/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_60px_-18px_rgba(40,183,240,0.25)]", [a.value, { "overflow-hidden": e.loading }]])
|
|
787
787
|
}, [
|
|
788
|
-
e.loading ? (o(), i("div", We)) :
|
|
789
|
-
e.loading ? (o(), i("div", Fe)) :
|
|
790
|
-
e.title || l.$slots.header ? (o(), i("div",
|
|
791
|
-
e.title ? (o(), i("h3",
|
|
792
|
-
|
|
793
|
-
|
|
788
|
+
e.loading ? (o(), i("div", We)) : p("", !0),
|
|
789
|
+
e.loading ? (o(), i("div", Fe)) : p("", !0),
|
|
790
|
+
e.title || l.$slots.header ? (o(), i("div", qe, [
|
|
791
|
+
e.title ? (o(), i("h3", Ke, O(e.title), 1)) : p("", !0),
|
|
792
|
+
s("div", Ue, [
|
|
793
|
+
y(l.$slots, "header")
|
|
794
794
|
])
|
|
795
|
-
])) :
|
|
796
|
-
|
|
795
|
+
])) : p("", !0),
|
|
796
|
+
s("div", {
|
|
797
797
|
class: "max-w-full",
|
|
798
798
|
inert: e.disabled,
|
|
799
799
|
"aria-disabled": e.disabled || void 0
|
|
800
800
|
}, [
|
|
801
|
-
|
|
802
|
-
], 8,
|
|
801
|
+
y(l.$slots, "default")
|
|
802
|
+
], 8, Ge)
|
|
803
803
|
], 2));
|
|
804
804
|
}
|
|
805
805
|
});
|
|
806
806
|
export {
|
|
807
|
-
|
|
807
|
+
Xe as V,
|
|
808
808
|
et as _,
|
|
809
|
-
|
|
809
|
+
Ye as a,
|
|
810
810
|
tt as b,
|
|
811
811
|
xe as c,
|
|
812
|
-
|
|
813
|
-
|
|
812
|
+
Ze as d,
|
|
813
|
+
_e as e,
|
|
814
814
|
Ie as f,
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
815
|
+
Me as g,
|
|
816
|
+
pe as h,
|
|
817
|
+
me as i,
|
|
818
|
+
X as j,
|
|
819
|
+
Y as k,
|
|
820
|
+
Q as l,
|
|
821
821
|
Ee as m,
|
|
822
|
-
|
|
822
|
+
Z as n
|
|
823
823
|
};
|