vuesp-components 2.5.2 → 3.0.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/App.vue.d.ts.map +1 -1
- package/dist/VDialog.vue_vue_type_script_setup_true_lang-C_akEjfi.js +900 -0
- package/dist/components/app/AppHeader.vue.d.ts.map +1 -1
- package/dist/components/app/AppNav.vue.d.ts.map +1 -1
- package/dist/components/app/AppProgress.vue.d.ts.map +1 -1
- package/dist/components/block/breadcrumb/BlockBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/block/data/BlockDataSettings.vue.d.ts.map +1 -1
- package/dist/components/block/data/BlockFieldCard.vue.d.ts.map +1 -1
- package/dist/components/block/data/BlockMetricCard.vue.d.ts.map +1 -1
- package/dist/components/block/data/BlockPicker.vue.d.ts.map +1 -1
- package/dist/components/block/data/useBlock.d.ts +3 -3
- package/dist/components/block/info/types.d.ts +1 -1
- package/dist/components/block/info/types.d.ts.map +1 -1
- package/dist/components/block/presets/energy-flow/EnergyFlowCard.vue.d.ts +1 -1
- package/dist/components/block/presets/energy-flow/EnergyFlowCard.vue.d.ts.map +1 -1
- package/dist/components/block/status/types.d.ts +1 -1
- package/dist/components/block/status/types.d.ts.map +1 -1
- package/dist/components/card/index.d.ts +1 -2
- package/dist/components/card/index.d.ts.map +1 -1
- package/dist/components/card/notification/CardNotification.vue.d.ts.map +1 -1
- package/dist/components/card/notification/types.d.ts +1 -1
- package/dist/components/card/notification/types.d.ts.map +1 -1
- package/dist/components/card/types.d.ts +0 -1
- package/dist/components/card/types.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardBase.vue.d.ts +2 -2
- package/dist/components/dashboard/cards/CardBase.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardButton.vue.d.ts +2 -2
- package/dist/components/dashboard/cards/CardButton.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardDate.vue.d.ts +6 -2
- package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardDimmer.vue.d.ts +2 -2
- package/dist/components/dashboard/cards/CardInfo.vue.d.ts +2 -2
- package/dist/components/dashboard/cards/CardInput.vue.d.ts +2 -2
- package/dist/components/dashboard/cards/CardInput.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardList.vue.d.ts +2 -2
- package/dist/components/dashboard/cards/CardList.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/ItemEdit.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/ItemOptions.vue.d.ts.map +1 -1
- package/dist/components/index.es.js +2995 -3129
- package/dist/components/script/editor/ScriptEditor.vue.d.ts.map +1 -1
- package/dist/components/ui/accordion/VAccordion.vue.d.ts +26 -0
- package/dist/components/ui/accordion/VAccordion.vue.d.ts.map +1 -0
- package/dist/components/ui/accordion/VAccordionItem.vue.d.ts +24 -0
- package/dist/components/ui/accordion/VAccordionItem.vue.d.ts.map +1 -0
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/{card/main/CardMain.vue.d.ts → ui/card/VCard.vue.d.ts} +5 -4
- package/dist/components/ui/card/VCard.vue.d.ts.map +1 -0
- package/dist/components/ui/card/types.d.ts +14 -0
- package/dist/components/ui/card/types.d.ts.map +1 -0
- package/dist/components/ui/dialog/VDialog.vue.d.ts.map +1 -1
- package/dist/components/ui/dialog/VPopup.vue.d.ts.map +1 -1
- package/dist/components/ui/expansion/VExpansion.vue.d.ts.map +1 -1
- package/dist/components/ui/func/VFunc.vue.d.ts.map +1 -1
- package/dist/components/ui/{vision/VisionIcon.vue.d.ts → icon/VIcon.vue.d.ts} +3 -1
- package/dist/components/ui/icon/VIcon.vue.d.ts.map +1 -0
- package/dist/components/ui/icon/icons.d.ts +4 -0
- package/dist/components/ui/icon/icons.d.ts.map +1 -0
- package/dist/components/ui/icon/types.d.ts +8 -3
- package/dist/components/ui/icon/types.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +5 -2
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/list/VListObject.vue.d.ts.map +1 -1
- package/dist/components/ui/select/VSelect.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextField.vue.d.ts +6 -2
- package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextWrapper.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/useTextField.d.ts +4 -3
- package/dist/components/ui/text-field/useTextField.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +14 -15
- package/dist/main.d.ts.map +1 -1
- package/dist/pages/kit/KitRow.vue.d.ts +21 -0
- package/dist/pages/kit/KitRow.vue.d.ts.map +1 -0
- package/dist/pages/kit/KitSection.vue.d.ts +22 -0
- package/dist/pages/kit/KitSection.vue.d.ts.map +1 -0
- package/dist/pages/kit/KitShowcase.vue.d.ts +3 -0
- package/dist/pages/kit/KitShowcase.vue.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/theme.css +59 -34
- package/package.json +3 -4
- package/dist/CardMain.vue_vue_type_style_index_0_lang-D7HC4Nza.js +0 -795
- package/dist/components/card/main/CardMain.vue.d.ts.map +0 -1
- package/dist/components/card/main/types.d.ts +0 -7
- package/dist/components/card/main/types.d.ts.map +0 -1
- package/dist/components/ui/vision/VisionIcon.vue.d.ts.map +0 -1
|
@@ -1,795 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as u, createStaticVNode as te, createElementVNode as d, defineComponent as C, computed as c, normalizeClass as p, resolveComponent as le, createBlock as V, resolveDynamicComponent as U, mergeProps as A, withCtx as k, renderSlot as M, createCommentVNode as w, Fragment as I, renderList as R, shallowRef as q, Teleport as G, createVNode as S, Transition as P, unref as s, withModifiers as L, normalizeStyle as D, ref as j, withDirectives as ae, createTextVNode as N, toDisplayString as O, markRaw as oe, useSlots as ne, withKeys as se, createPropsRestProxy as re, normalizeProps as ie, guardReactiveProps as ce } from "vue";
|
|
2
|
-
import { u as J, a as de, b as Q, c as X, d as Y } from "./useDialog-Buvn63AR.js";
|
|
3
|
-
const Z = (e, a) => {
|
|
4
|
-
const t = e.__vccOpts || e;
|
|
5
|
-
for (const [i, r] of a)
|
|
6
|
-
t[i] = r;
|
|
7
|
-
return t;
|
|
8
|
-
}, ue = {}, he = {
|
|
9
|
-
viewBox: "0 0 179 40",
|
|
10
|
-
fill: "currentColor"
|
|
11
|
-
};
|
|
12
|
-
function ve(e, a) {
|
|
13
|
-
return o(), u("svg", he, [...a[0] || (a[0] = [
|
|
14
|
-
te('<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
|
-
])]);
|
|
16
|
-
}
|
|
17
|
-
const et = /* @__PURE__ */ Z(ue, [["render", ve]]), fe = {}, me = {
|
|
18
|
-
width: "40",
|
|
19
|
-
height: "40",
|
|
20
|
-
viewBox: "0 0 40 40",
|
|
21
|
-
fill: "currentColor"
|
|
22
|
-
};
|
|
23
|
-
function be(e, a) {
|
|
24
|
-
return o(), u("svg", me, [...a[0] || (a[0] = [
|
|
25
|
-
d("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
|
|
26
|
-
d("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
|
-
], -1)
|
|
28
|
-
])]);
|
|
29
|
-
}
|
|
30
|
-
const tt = /* @__PURE__ */ Z(fe, [["render", be]]), ge = /* @__PURE__ */ C({
|
|
31
|
-
__name: "VLoader",
|
|
32
|
-
props: {
|
|
33
|
-
size: { default: "md" }
|
|
34
|
-
},
|
|
35
|
-
setup(e) {
|
|
36
|
-
const a = {
|
|
37
|
-
sm: "h-4 w-4",
|
|
38
|
-
md: "h-6 w-6",
|
|
39
|
-
lg: "h-9 w-9"
|
|
40
|
-
}, t = c(() => a[e.size]);
|
|
41
|
-
return (i, r) => (o(), u("svg", {
|
|
42
|
-
class: p(["animate-spin", t.value]),
|
|
43
|
-
fill: "none",
|
|
44
|
-
viewBox: "0 0 24 24"
|
|
45
|
-
}, [...r[0] || (r[0] = [
|
|
46
|
-
d("circle", {
|
|
47
|
-
class: "opacity-25",
|
|
48
|
-
cx: "12",
|
|
49
|
-
cy: "12",
|
|
50
|
-
r: "10",
|
|
51
|
-
stroke: "currentColor",
|
|
52
|
-
"stroke-width": "2"
|
|
53
|
-
}, null, -1),
|
|
54
|
-
d("path", {
|
|
55
|
-
class: "opacity-75",
|
|
56
|
-
fill: "currentColor",
|
|
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
|
-
}, null, -1)
|
|
59
|
-
])], 2));
|
|
60
|
-
}
|
|
61
|
-
}), ye = "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", K = "bg-transparent text-gray-main hover:bg-[var(--btn-color)]/10 hover:text-[var(--btn-color)]", pe = "border border-gray-main text-gray-main hover:border-[var(--btn-color)] hover:bg-[var(--btn-color)]/10 hover:text-[var(--btn-color)]", _ = /* @__PURE__ */ C({
|
|
62
|
-
__name: "VButton",
|
|
63
|
-
props: {
|
|
64
|
-
color: { default: "transparent" },
|
|
65
|
-
variant: { default: "default" },
|
|
66
|
-
invert: { type: Boolean, default: !1 },
|
|
67
|
-
size: { default: "md" },
|
|
68
|
-
type: { default: "button" },
|
|
69
|
-
block: { type: Boolean, default: !1 },
|
|
70
|
-
disabled: { type: Boolean, default: !1 },
|
|
71
|
-
href: { default: "" },
|
|
72
|
-
to: { default: "" },
|
|
73
|
-
loading: { type: Boolean, default: !1 }
|
|
74
|
-
},
|
|
75
|
-
emits: ["click"],
|
|
76
|
-
setup(e, { emit: a }) {
|
|
77
|
-
const t = a, i = (v) => {
|
|
78
|
-
e.disabled || t("click", v);
|
|
79
|
-
}, r = le("RouterLink"), l = c(() => e.to ? r : e.href ? "a" : "button"), n = c(() => e.type === "submit" || e.type === "reset" ? e.type : "button"), x = c(() => e.type === "icon"), f = c(() => e.color === "transparent"), m = c(
|
|
80
|
-
() => f.value ? "var(--color-violet-main)" : `var(--color-${e.color}-main)`
|
|
81
|
-
), g = c(
|
|
82
|
-
() => ["cyan", "amber", "green", "slate", "gray"].includes(e.color) ? "var(--color-night-dark-5)" : "#fff"
|
|
83
|
-
), E = c(() => e.color === "purple" ? "var(--shadow-violet-glow)" : e.color === "gray" || f.value ? "0 0 #0000" : `var(--shadow-${e.color}-glow)`), B = c(() => f.value && e.variant === "default" || e.variant === "soft" && e.invert ? K : e.variant === "outline" && e.invert ? pe : $[e.variant]), $ = {
|
|
84
|
-
default: "bg-[var(--btn-color)] text-[var(--btn-on)] shadow-[var(--btn-glow)] hover:brightness-110",
|
|
85
|
-
soft: "border border-[var(--btn-color)]/25 bg-[var(--btn-color)]/10 text-[var(--btn-color)] hover:bg-[var(--btn-color)]/20",
|
|
86
|
-
outline: "border border-[var(--btn-color)] text-[var(--btn-color)] hover:border-gray-main hover:bg-gray-main/10 hover:text-gray-dark-30 dark:hover:text-gray-light-10",
|
|
87
|
-
white: "bg-white text-night-main hover:bg-white/90"
|
|
88
|
-
}, h = {
|
|
89
|
-
sm: "h-8 px-3 text-xs",
|
|
90
|
-
md: "h-10 px-3 text-sm",
|
|
91
|
-
lg: "h-12 px-4 text-sm",
|
|
92
|
-
xl: "h-14 px-5 text-sm"
|
|
93
|
-
}, b = {
|
|
94
|
-
sm: "size-8",
|
|
95
|
-
md: "size-10",
|
|
96
|
-
lg: "size-12",
|
|
97
|
-
xl: "size-14"
|
|
98
|
-
}, y = c(() => {
|
|
99
|
-
const v = [ye];
|
|
100
|
-
return x.value ? v.push("border border-gray-light-10/70 dark:border-white/10", b[e.size]) : v.push(B.value, h[e.size]), e.block && v.push("w-full"), e.disabled && v.push("pointer-events-none opacity-40"), v;
|
|
101
|
-
});
|
|
102
|
-
return (v, H) => (o(), V(U(l.value), A(v.$attrs, {
|
|
103
|
-
href: e.href || void 0,
|
|
104
|
-
to: e.to || void 0,
|
|
105
|
-
type: n.value,
|
|
106
|
-
disabled: l.value === "button" ? e.disabled : void 0,
|
|
107
|
-
"aria-disabled": e.disabled || void 0,
|
|
108
|
-
class: y.value,
|
|
109
|
-
style: { "--btn-color": m.value, "--btn-on": g.value, "--btn-glow": E.value },
|
|
110
|
-
onClick: i
|
|
111
|
-
}), {
|
|
112
|
-
default: k(() => [
|
|
113
|
-
d("span", {
|
|
114
|
-
class: p(e.loading ? "opacity-0" : "")
|
|
115
|
-
}, [
|
|
116
|
-
M(v.$slots, "default")
|
|
117
|
-
], 2),
|
|
118
|
-
e.loading ? (o(), V(ge, {
|
|
119
|
-
key: 0,
|
|
120
|
-
class: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
121
|
-
})) : w("", !0)
|
|
122
|
-
]),
|
|
123
|
-
_: 3
|
|
124
|
-
}, 16, ["href", "to", "type", "disabled", "aria-disabled", "class", "style"]));
|
|
125
|
-
}
|
|
126
|
-
}), xe = ["width", "height"], Me = ["d"], W = /* @__PURE__ */ C({
|
|
127
|
-
__name: "VisionIcon",
|
|
128
|
-
props: {
|
|
129
|
-
name: {},
|
|
130
|
-
size: { default: 20 }
|
|
131
|
-
},
|
|
132
|
-
setup(e) {
|
|
133
|
-
const a = {
|
|
134
|
-
home: ["M3 10.5 12 3l9 7.5", "M5 9.5V21h14V9.5"],
|
|
135
|
-
chart: ["M4 19V5", "M4 19h16", "M8 16v-5", "M12 16V8", "M16 16v-3", "M20 16V6"],
|
|
136
|
-
card: ["M3 6h18v12H3z", "M3 10h18"],
|
|
137
|
-
user: ["M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M4 21a8 8 0 0 1 16 0"],
|
|
138
|
-
users: ["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", "M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M22 21v-2a4 4 0 0 0-3-3.9", "M16 3.1a4 4 0 0 1 0 7.8"],
|
|
139
|
-
document: ["M6 3h8l4 4v14H6z", "M14 3v4h4", "M9 12h6", "M9 16h6"],
|
|
140
|
-
rocket: ["M5 15c-1 3-1 4-1 5 1 0 2 0 5-1", "M9 15l-3-3c4-8 8-9 12-9 0 4-1 8-9 12z", "M14 10a1 1 0 1 0 2 0 1 1 0 0 0-2 0"],
|
|
141
|
-
search: ["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16", "M21 21l-4.3-4.3"],
|
|
142
|
-
settings: ["M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7", "M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 2-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6V21h-2.8v-.2a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1-2-2 .1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.6-1H3v-2.8h.2a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-2 .1.1a1.7 1.7 0 0 0 1.9.3 1.7 1.7 0 0 0 1-1.6V3h2.8v.2a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1 2 2-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2V12h-.2a1.7 1.7 0 0 0-1.6 1z"],
|
|
143
|
-
bell: ["M18 8a6 6 0 1 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9", "M13.7 21a2 2 0 0 1-3.4 0"],
|
|
144
|
-
arrowRight: ["M5 12h14", "M13 6l6 6-6 6"],
|
|
145
|
-
arrowUpRight: ["M7 17 17 7", "M8 7h9v9"],
|
|
146
|
-
check: ["M20 6 9 17l-5-5"],
|
|
147
|
-
plus: ["M12 5v14", "M5 12h14"],
|
|
148
|
-
dots: ["M5 12h.01", "M12 12h.01", "M19 12h.01"],
|
|
149
|
-
grip: ["M9 6h.01", "M15 6h.01", "M9 12h.01", "M15 12h.01", "M9 18h.01", "M15 18h.01"],
|
|
150
|
-
palette: ["M12 21a9 9 0 1 1 0-18c4 0 7 2.3 7 5.5 0 2.2-1.8 3.5-4 3.5h-2a2 2 0 0 0-1 3.7", "M7.5 10.5h.01", "M10 7.5h.01", "M14 7.5h.01", "M16.5 10.5h.01"],
|
|
151
|
-
logout: ["M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", "M16 17l5-5-5-5", "M21 12H9"],
|
|
152
|
-
sun: ["M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10", "M12 1v2", "M12 21v2", "M4.2 4.2l1.4 1.4", "M18.4 18.4l1.4 1.4", "M1 12h2", "M21 12h2", "M4.2 19.8l1.4-1.4", "M18.4 5.6l1.4-1.4"],
|
|
153
|
-
moon: ["M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8"],
|
|
154
|
-
help: ["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20", "M9.1 9a3 3 0 1 1 5.8 1c0 2-3 2-3 4", "M12 17h.01"],
|
|
155
|
-
wallet: ["M3 7h18v12H3z", "M3 7l2-3h14l2 3", "M16 13h2"],
|
|
156
|
-
trendUp: ["M3 17l6-6 4 4 8-8", "M15 7h6v6"],
|
|
157
|
-
trendDown: ["M3 7l6 6 4-4 8 8", "M15 17h6v-6"],
|
|
158
|
-
menu: ["M4 6h16", "M4 12h16", "M4 18h16"],
|
|
159
|
-
close: ["M6 6l12 12", "M18 6 6 18"],
|
|
160
|
-
chevronDown: ["M6 9l6 6 6-6"],
|
|
161
|
-
refresh: ["M21 12a9 9 0 1 1-3-6.7", "M21 3v6h-6"],
|
|
162
|
-
download: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"],
|
|
163
|
-
upload: ["M12 21V9", "M7 14l5-5 5 5", "M5 3h14"],
|
|
164
|
-
edit: ["M12 20h9", "M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"],
|
|
165
|
-
trash: ["M3 6h18", "M8 6V4h8v2", "M19 6l-1 15H6L5 6", "M10 11v6", "M14 11v6"],
|
|
166
|
-
calendar: ["M4 5h16v16H4z", "M16 3v4", "M8 3v4", "M4 10h16"],
|
|
167
|
-
filter: ["M3 5h18", "M6 12h12", "M10 19h4"],
|
|
168
|
-
star: ["M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z"],
|
|
169
|
-
bolt: ["M13 2 3 14h8l-1 8 11-13h-8z"],
|
|
170
|
-
battery: ["M4 8h14v8H4z", "M18 11h2v2h-2", "M7 11v2", "M10.5 11v2", "M14 11v2"],
|
|
171
|
-
plug: ["M9 3v5", "M15 3v5", "M6 8h12v3a6 6 0 0 1-12 0z", "M12 17v4"],
|
|
172
|
-
inverter: ["M4 6h16v12H4z", "M7 12h2l2-4 2 8 2-4h2"],
|
|
173
|
-
temperature: ["M10 14V5a2 2 0 1 1 4 0v9a4 4 0 1 1-4 0", "M12 9v6"],
|
|
174
|
-
wifi: ["M5 12.5a10 10 0 0 1 14 0", "M8.5 16a5 5 0 0 1 7 0", "M12 20h.01"],
|
|
175
|
-
click: ["M9 9l10 4-4 2-2 4z", "M4 4l3 3"],
|
|
176
|
-
shopping: ["M6 6h15l-1.5 9h-12z", "M6 6 5 3H2", "M9 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2", "M18 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2"],
|
|
177
|
-
box: ["M21 8l-9-5-9 5 9 5 9-5", "M3 8v8l9 5 9-5V8", "M12 13v8"],
|
|
178
|
-
external: ["M14 3h7v7", "M10 14 21 3", "M21 14v7H3V3h7"],
|
|
179
|
-
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"]
|
|
180
|
-
}, t = c(() => a[e.name] ?? a.help);
|
|
181
|
-
return (i, r) => (o(), u("svg", {
|
|
182
|
-
width: e.size,
|
|
183
|
-
height: e.size,
|
|
184
|
-
viewBox: "0 0 24 24",
|
|
185
|
-
fill: "none",
|
|
186
|
-
stroke: "currentColor",
|
|
187
|
-
"stroke-width": "1.8",
|
|
188
|
-
"stroke-linecap": "round",
|
|
189
|
-
"stroke-linejoin": "round",
|
|
190
|
-
"aria-hidden": "true"
|
|
191
|
-
}, [
|
|
192
|
-
(o(!0), u(I, null, R(t.value, (l, n) => (o(), u("path", {
|
|
193
|
-
key: n,
|
|
194
|
-
d: l
|
|
195
|
-
}, null, 8, Me))), 128))
|
|
196
|
-
], 8, xe));
|
|
197
|
-
}
|
|
198
|
-
}), we = ["role", "aria-modal", "aria-label"], ke = { class: "flex items-center absolute right-3 top-5 z-10" }, ee = /* @__PURE__ */ C({
|
|
199
|
-
__name: "VPopup",
|
|
200
|
-
props: {
|
|
201
|
-
hiddenCloser: { type: Boolean },
|
|
202
|
-
size: { default: "auto" },
|
|
203
|
-
trapFocus: { type: Boolean, default: !1 },
|
|
204
|
-
ariaLabel: { default: "" }
|
|
205
|
-
},
|
|
206
|
-
emits: ["close", "click", "open"],
|
|
207
|
-
setup(e, { emit: a }) {
|
|
208
|
-
const t = a, { show: i, overlay: r, onClose: l, onOpen: n } = J(t), x = q(null), f = q(null), { opacity: m, transform: g } = de(x, f, l);
|
|
209
|
-
Q(f, () => i.value && e.trapFocus);
|
|
210
|
-
const $ = { click: (y) => {
|
|
211
|
-
t("click", y);
|
|
212
|
-
}, open: n, set: (y) => {
|
|
213
|
-
y ? n() : l(new Event("hide"));
|
|
214
|
-
} }, h = c(() => ({
|
|
215
|
-
auto: "max-h-[calc(100dvh-50px)]",
|
|
216
|
-
full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
|
|
217
|
-
screen: "h-dvh"
|
|
218
|
-
})), b = c(() => ({
|
|
219
|
-
auto: "max-h-[calc(100dvh-50px-16px)]",
|
|
220
|
-
full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
|
|
221
|
-
screen: "h-[calc(100dvh-16px)]"
|
|
222
|
-
}));
|
|
223
|
-
return (y, v) => (o(), V(G, { to: "body" }, [
|
|
224
|
-
S(P, {
|
|
225
|
-
"enter-active-class": "duration-300 ease-out",
|
|
226
|
-
"enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
|
|
227
|
-
"enter-to-class": "opacity-100 translate-y-0",
|
|
228
|
-
"leave-active-class": "duration-200 ease-in",
|
|
229
|
-
"leave-from-class": "opacity-100 translate-y-0",
|
|
230
|
-
"leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
|
|
231
|
-
}, {
|
|
232
|
-
default: k(() => [
|
|
233
|
-
s(i) ? (o(), u("div", {
|
|
234
|
-
key: 0,
|
|
235
|
-
ref_key: "container",
|
|
236
|
-
ref: f,
|
|
237
|
-
class: "fixed bottom-0 left-0 w-full z-15",
|
|
238
|
-
tabindex: "-1",
|
|
239
|
-
role: e.trapFocus ? "dialog" : void 0,
|
|
240
|
-
"aria-modal": e.trapFocus ? "true" : void 0,
|
|
241
|
-
"aria-label": e.trapFocus && e.ariaLabel || void 0
|
|
242
|
-
}, [
|
|
243
|
-
s(r) ? (o(), u("div", {
|
|
244
|
-
key: 0,
|
|
245
|
-
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
246
|
-
style: D({ opacity: s(m) }),
|
|
247
|
-
onClick: v[0] || (v[0] = //@ts-ignore
|
|
248
|
-
(...H) => s(l) && s(l)(...H)),
|
|
249
|
-
onWheel: v[1] || (v[1] = L(() => {
|
|
250
|
-
}, ["prevent"])),
|
|
251
|
-
onTouchmove: v[2] || (v[2] = L(() => {
|
|
252
|
-
}, ["prevent"]))
|
|
253
|
-
}, null, 36)) : w("", !0),
|
|
254
|
-
d("div", {
|
|
255
|
-
class: p(["glass-popover relative w-full rounded-t-lg border-t shadow-nav", h.value[e.size]]),
|
|
256
|
-
style: D({ transform: s(g) })
|
|
257
|
-
}, [
|
|
258
|
-
d("div", {
|
|
259
|
-
ref_key: "target",
|
|
260
|
-
ref: x,
|
|
261
|
-
class: "flex justify-center py-3 md:pb-6",
|
|
262
|
-
onWheel: v[3] || (v[3] = L(() => {
|
|
263
|
-
}, ["prevent"])),
|
|
264
|
-
onTouchmove: v[4] || (v[4] = L(() => {
|
|
265
|
-
}, ["prevent"]))
|
|
266
|
-
}, [...v[5] || (v[5] = [
|
|
267
|
-
d("div", { class: "self-end h-1 w-12 bg-gray-main" }, null, -1)
|
|
268
|
-
])], 544),
|
|
269
|
-
d("div", ke, [
|
|
270
|
-
M(y.$slots, "button", { close: s(l) }),
|
|
271
|
-
S(_, {
|
|
272
|
-
type: "icon",
|
|
273
|
-
size: "sm",
|
|
274
|
-
color: "gray",
|
|
275
|
-
"aria-label": "Close",
|
|
276
|
-
title: "Close",
|
|
277
|
-
onClick: s(l)
|
|
278
|
-
}, {
|
|
279
|
-
default: k(() => [
|
|
280
|
-
S(W, {
|
|
281
|
-
name: "close",
|
|
282
|
-
size: 16
|
|
283
|
-
})
|
|
284
|
-
]),
|
|
285
|
-
_: 1
|
|
286
|
-
}, 8, ["onClick"])
|
|
287
|
-
]),
|
|
288
|
-
d("div", {
|
|
289
|
-
class: p(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain no-scrollbar", b.value[e.size]])
|
|
290
|
-
}, [
|
|
291
|
-
M(y.$slots, "default", {
|
|
292
|
-
close: s(l),
|
|
293
|
-
on: $
|
|
294
|
-
})
|
|
295
|
-
], 2)
|
|
296
|
-
], 6)
|
|
297
|
-
], 8, we)) : w("", !0)
|
|
298
|
-
]),
|
|
299
|
-
_: 3
|
|
300
|
-
})
|
|
301
|
-
]));
|
|
302
|
-
}
|
|
303
|
-
}), ze = {
|
|
304
|
-
mounted(e, a) {
|
|
305
|
-
e.clickOutsideEvent = function(t) {
|
|
306
|
-
e === t.target || e.contains(t.target) || a.value(t, e);
|
|
307
|
-
}, document.addEventListener("click", e.clickOutsideEvent);
|
|
308
|
-
},
|
|
309
|
-
unmounted(e) {
|
|
310
|
-
document.removeEventListener("click", e.clickOutsideEvent), delete e.clickOutsideEvent;
|
|
311
|
-
}
|
|
312
|
-
}, Ce = { class: "relative" }, $e = { class: "flex items-center cursor-pointer" }, Ve = /* @__PURE__ */ C({
|
|
313
|
-
__name: "VDropdown",
|
|
314
|
-
props: {
|
|
315
|
-
title: { default: "" },
|
|
316
|
-
top: { default: "calc(100% + 8px)" },
|
|
317
|
-
left: { default: "" },
|
|
318
|
-
right: { default: "0" },
|
|
319
|
-
bottom: { default: "" },
|
|
320
|
-
height: { default: "200px" },
|
|
321
|
-
hideOnClick: { type: Boolean, default: !0 },
|
|
322
|
-
disabled: { type: Boolean, default: !1 },
|
|
323
|
-
isPopup: { type: Boolean }
|
|
324
|
-
},
|
|
325
|
-
emits: ["click", "show", "close"],
|
|
326
|
-
setup(e, { emit: a }) {
|
|
327
|
-
const t = a, r = X(Y).greaterOrEqual("lg"), l = j(!1), n = c(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), x = (h) => {
|
|
328
|
-
r.value && l.value && g(h);
|
|
329
|
-
}, f = (h) => {
|
|
330
|
-
t("click", l.value), !e.disabled && (l.value ? e.hideOnClick && g(h) : m(h));
|
|
331
|
-
}, m = (h) => {
|
|
332
|
-
l.value = !0, t("show", h);
|
|
333
|
-
}, g = (h) => {
|
|
334
|
-
l.value = !1, t("close", h);
|
|
335
|
-
}, E = (h) => {
|
|
336
|
-
h ? m(new Event("show")) : g(new Event("hide"));
|
|
337
|
-
}, B = () => {
|
|
338
|
-
g(new Event("hide"));
|
|
339
|
-
}, $ = { click: f, open: m, set: E };
|
|
340
|
-
return (h, b) => ae((o(), u("div", Ce, [
|
|
341
|
-
d("div", $e, [
|
|
342
|
-
M(h.$slots, "activator", {
|
|
343
|
-
on: $,
|
|
344
|
-
isShow: l.value
|
|
345
|
-
})
|
|
346
|
-
]),
|
|
347
|
-
s(r) ? (o(), V(P, {
|
|
348
|
-
key: 0,
|
|
349
|
-
"enter-active-class": "duration-300 ease-out",
|
|
350
|
-
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
351
|
-
"enter-to-class": "opacity-100 translate-y-0",
|
|
352
|
-
"leave-active-class": "duration-200 ease-in",
|
|
353
|
-
"leave-from-class": "opacity-100 translate-y-0",
|
|
354
|
-
"leave-to-class": "transform opacity-0 -translate-y-2"
|
|
355
|
-
}, {
|
|
356
|
-
default: k(() => [
|
|
357
|
-
l.value ? (o(), u("div", {
|
|
358
|
-
key: 0,
|
|
359
|
-
class: "z-30 min-w-full absolute",
|
|
360
|
-
style: D(n.value)
|
|
361
|
-
}, [
|
|
362
|
-
M(h.$slots, "default", {
|
|
363
|
-
on: $,
|
|
364
|
-
show: m,
|
|
365
|
-
hide: g,
|
|
366
|
-
isShow: l.value,
|
|
367
|
-
isLgOrLarger: s(r)
|
|
368
|
-
})
|
|
369
|
-
], 4)) : w("", !0)
|
|
370
|
-
]),
|
|
371
|
-
_: 3
|
|
372
|
-
})) : w("", !0),
|
|
373
|
-
!s(r) && l.value ? (o(), V(ee, {
|
|
374
|
-
key: 1,
|
|
375
|
-
title: e.title,
|
|
376
|
-
onClose: B
|
|
377
|
-
}, {
|
|
378
|
-
default: k(({ on: y }) => [
|
|
379
|
-
M(h.$slots, "default", {
|
|
380
|
-
on: y,
|
|
381
|
-
show: m,
|
|
382
|
-
hide: g,
|
|
383
|
-
isShow: l.value,
|
|
384
|
-
isLgOrLarger: s(r)
|
|
385
|
-
})
|
|
386
|
-
]),
|
|
387
|
-
_: 3
|
|
388
|
-
}, 8, ["title"])) : w("", !0)
|
|
389
|
-
])), [
|
|
390
|
-
[s(ze), x]
|
|
391
|
-
]);
|
|
392
|
-
}
|
|
393
|
-
}), Be = ["onClick"], Le = /* @__PURE__ */ C({
|
|
394
|
-
__name: "VList",
|
|
395
|
-
props: {
|
|
396
|
-
items: {},
|
|
397
|
-
plain: { type: Boolean, default: !1 }
|
|
398
|
-
},
|
|
399
|
-
emits: ["click"],
|
|
400
|
-
setup(e, { emit: a }) {
|
|
401
|
-
const t = a, i = (r, l) => t("click", r, l);
|
|
402
|
-
return (r, l) => (o(), u("ul", {
|
|
403
|
-
class: p(e.plain ? "" : "glass-popover rounded-md")
|
|
404
|
-
}, [
|
|
405
|
-
(o(!0), u(I, null, R(e.items, (n) => (o(), u("li", {
|
|
406
|
-
key: n.name,
|
|
407
|
-
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]",
|
|
408
|
-
onClick: (x) => i(n, x)
|
|
409
|
-
}, [
|
|
410
|
-
M(r.$slots, "default", { item: n }, () => [
|
|
411
|
-
N(O(n.name), 1)
|
|
412
|
-
])
|
|
413
|
-
], 8, Be))), 128))
|
|
414
|
-
], 2));
|
|
415
|
-
}
|
|
416
|
-
}), Se = { class: "relative flex items-end gap-0.5 w-10" }, Oe = ["title"], Ee = { class: "absolute -top-1 -left-1 text-xs text-gray-dark-25 dark:text-gray-light-10" }, lt = /* @__PURE__ */ C({
|
|
417
|
-
__name: "VWifiIcon",
|
|
418
|
-
props: {
|
|
419
|
-
rssi: { default: 0 },
|
|
420
|
-
channel: { default: 0 }
|
|
421
|
-
},
|
|
422
|
-
setup(e) {
|
|
423
|
-
const a = 2 * (e.rssi + 100), t = (i) => i < a;
|
|
424
|
-
return (i, r) => (o(), u("div", Se, [
|
|
425
|
-
(o(), u(I, null, R([10, 15, 25, 40, 70], (l, n) => d("div", {
|
|
426
|
-
key: l,
|
|
427
|
-
class: p(["w-1 h-5 rounded-lg", [t(l) ? "bg-gray-dark-40 dark:bg-gray-light-30" : "bg-gray-light-10 dark:bg-gray-dark-30"]]),
|
|
428
|
-
style: D(`height: ${(n + 1) * 5}px`),
|
|
429
|
-
title: `rssi: ${e.rssi} channel: ${e.channel}`
|
|
430
|
-
}, null, 14, Oe)), 64)),
|
|
431
|
-
d("div", Ee, O(e.channel), 1)
|
|
432
|
-
]));
|
|
433
|
-
}
|
|
434
|
-
}), He = {
|
|
435
|
-
viewBox: "0 0 24 24",
|
|
436
|
-
width: "1.2em",
|
|
437
|
-
height: "1.2em"
|
|
438
|
-
};
|
|
439
|
-
function Fe(e, a) {
|
|
440
|
-
return o(), u("svg", He, [...a[0] || (a[0] = [
|
|
441
|
-
d("path", {
|
|
442
|
-
fill: "currentColor",
|
|
443
|
-
d: "m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"
|
|
444
|
-
}, null, -1)
|
|
445
|
-
])]);
|
|
446
|
-
}
|
|
447
|
-
const De = oe({ name: "ri-arrow-down-s-line", render: Fe }), Te = (e, a = "field") => {
|
|
448
|
-
const t = j(!1), i = c(() => e.modelValue !== null && e.modelValue !== void 0 && e.modelValue !== ""), r = c(() => a === "wrapper" ? !!e.active : t.value || i.value || !!e.active), l = c(() => {
|
|
449
|
-
const m = e.icon && a === "field" ? "left-11" : "left-3.5";
|
|
450
|
-
return r.value ? `${m} top-0 bg-white/80 px-1 text-xs text-gray-dark-25 dark:bg-night-light-10/80 dark:text-gray-main` : `${m} top-1/2 bg-transparent px-0 text-gray-main`;
|
|
451
|
-
}), n = c(() => e.disabled ? "border-gray-light-10 opacity-40 dark:border-gray-dark-30" : e.error ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "border-gray-light-10/80 hover:border-gray-main/80 dark:border-white/10 dark:hover:border-white/20"), x = c(() => a === "wrapper" ? "flex flex-auto flex-wrap gap-2 px-2 py-1" : e.component === "textarea" ? "h-full w-full flex-auto px-4 py-2 outline-none bg-transparent" : "w-full h-full flex-auto overflow-ellipsis overflow-hidden px-4 outline-none bg-transparent placeholder:text-gray-main"), f = c(() => a === "wrapper" || e.component === "textarea" ? "min-h-[40px]" : "h-[40px]");
|
|
452
|
-
return { isFocus: t, isFloating: r, labelClass: l, borderClass: n, contentClass: x, slotClass: f };
|
|
453
|
-
}, Ae = { class: "w-full relative" }, Ie = ["disabled"], Re = /* @__PURE__ */ C({
|
|
454
|
-
__name: "VTextField",
|
|
455
|
-
props: {
|
|
456
|
-
modelValue: {},
|
|
457
|
-
label: {},
|
|
458
|
-
placeholder: {},
|
|
459
|
-
component: {},
|
|
460
|
-
type: {},
|
|
461
|
-
message: {},
|
|
462
|
-
error: {},
|
|
463
|
-
icon: {},
|
|
464
|
-
readonly: { type: Boolean },
|
|
465
|
-
disabled: { type: [Boolean, Number] },
|
|
466
|
-
active: { type: Boolean },
|
|
467
|
-
hideMessage: { type: Boolean }
|
|
468
|
-
},
|
|
469
|
-
emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
|
|
470
|
-
setup(e, { emit: a }) {
|
|
471
|
-
const t = e, i = a, r = ne(), l = c(() => (t.component ?? "input") === "input"), n = c(() => t.error || t.message || ""), { isFocus: x, isFloating: f, labelClass: m, borderClass: g, contentClass: E, slotClass: B } = Te(t, "field"), $ = c(() => !!r.icon), h = c(() => !t.hideMessage), b = (z) => {
|
|
472
|
-
x.value = !1, i("blur", z);
|
|
473
|
-
}, y = (z) => {
|
|
474
|
-
x.value = !0, i("focus", z);
|
|
475
|
-
}, v = ({ target: z }) => i("update:modelValue", z.value), H = (z) => {
|
|
476
|
-
t.disabled || i("on-icon", z);
|
|
477
|
-
};
|
|
478
|
-
return (z, F) => (o(), u("div", Ae, [
|
|
479
|
-
d("label", {
|
|
480
|
-
class: p(["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", [s(B), s(g)]])
|
|
481
|
-
}, [
|
|
482
|
-
t.icon ? (o(), V(W, {
|
|
483
|
-
key: 0,
|
|
484
|
-
name: t.icon,
|
|
485
|
-
size: 18,
|
|
486
|
-
class: "ml-3.5 shrink-0 text-gray-main"
|
|
487
|
-
}, null, 8, ["name"])) : w("", !0),
|
|
488
|
-
d("span", {
|
|
489
|
-
class: p(["absolute -translate-y-1/2 rounded transition-all", s(m)])
|
|
490
|
-
}, O(t.label), 3),
|
|
491
|
-
(o(), V(U(t.component ?? "input"), A(z.$attrs, {
|
|
492
|
-
value: t.modelValue,
|
|
493
|
-
placeholder: s(f) ? t.placeholder : "",
|
|
494
|
-
disabled: !!t.disabled,
|
|
495
|
-
type: t.type ?? "text",
|
|
496
|
-
readonly: t.readonly,
|
|
497
|
-
rows: l.value ? null : "2",
|
|
498
|
-
wrap: l.value ? null : "soft",
|
|
499
|
-
class: s(E),
|
|
500
|
-
"aria-invalid": n.value ? !0 : void 0,
|
|
501
|
-
onFocus: y,
|
|
502
|
-
onBlur: b,
|
|
503
|
-
onInput: v,
|
|
504
|
-
onClick: F[0] || (F[0] = (T) => i("click", T)),
|
|
505
|
-
onKeypress: F[1] || (F[1] = se((T) => i("enter", T), ["enter"]))
|
|
506
|
-
}), null, 16, ["value", "placeholder", "disabled", "type", "readonly", "rows", "wrap", "class", "aria-invalid"])),
|
|
507
|
-
$.value ? (o(), u("button", {
|
|
508
|
-
key: 1,
|
|
509
|
-
type: "button",
|
|
510
|
-
disabled: !!t.disabled,
|
|
511
|
-
class: p(["flex h-full flex-[0_0_50px] items-center justify-center rounded-r-md border-l border-gray-light-10/70 text-gray-main transition hover:text-cyan-main disabled:pointer-events-none disabled:opacity-40 dark:border-white/10", { "cursor-pointer": !t.disabled }]),
|
|
512
|
-
onClick: H
|
|
513
|
-
}, [
|
|
514
|
-
M(z.$slots, "icon")
|
|
515
|
-
], 10, Ie)) : w("", !0)
|
|
516
|
-
], 2),
|
|
517
|
-
h.value ? (o(), u("div", {
|
|
518
|
-
key: 0,
|
|
519
|
-
class: p(["h-[24px] px-2 text-xs", t.error ? "text-red-400" : "text-gray-dark-25 dark:text-gray-main"])
|
|
520
|
-
}, [
|
|
521
|
-
M(z.$slots, "message", {}, () => [
|
|
522
|
-
N(O(n.value), 1)
|
|
523
|
-
])
|
|
524
|
-
], 2)) : w("", !0)
|
|
525
|
-
]));
|
|
526
|
-
}
|
|
527
|
-
}), Pe = { class: "min-w-50 w-full rounded-md pb-6 transition-all duration-300 lg:pb-0" }, je = {
|
|
528
|
-
key: 0,
|
|
529
|
-
class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
|
|
530
|
-
}, at = /* @__PURE__ */ C({
|
|
531
|
-
inheritAttrs: !1,
|
|
532
|
-
__name: "VSelect",
|
|
533
|
-
props: {
|
|
534
|
-
modelValue: {},
|
|
535
|
-
label: {},
|
|
536
|
-
disabled: { type: Boolean },
|
|
537
|
-
items: {},
|
|
538
|
-
title: {},
|
|
539
|
-
top: {},
|
|
540
|
-
left: {},
|
|
541
|
-
right: {},
|
|
542
|
-
bottom: {},
|
|
543
|
-
height: {},
|
|
544
|
-
hideOnClick: { type: Boolean },
|
|
545
|
-
isPopup: { type: Boolean }
|
|
546
|
-
},
|
|
547
|
-
emits: ["change"],
|
|
548
|
-
setup(e, { emit: a }) {
|
|
549
|
-
const t = re(e, ["modelValue", "label", "items", "disabled"]), i = a;
|
|
550
|
-
function r(l, n) {
|
|
551
|
-
i("change", l), n == null || n.set(!1);
|
|
552
|
-
}
|
|
553
|
-
return (l, n) => {
|
|
554
|
-
const x = De;
|
|
555
|
-
return o(), V(Ve, A(t, {
|
|
556
|
-
"hide-on-click": !1,
|
|
557
|
-
class: "relative"
|
|
558
|
-
}), {
|
|
559
|
-
activator: k(({ on: f, isShow: m }) => [
|
|
560
|
-
M(l.$slots, "activator", ie(ce({ on: f, isShow: m })), () => [
|
|
561
|
-
S(Re, {
|
|
562
|
-
"model-value": e.modelValue,
|
|
563
|
-
disabled: e.disabled,
|
|
564
|
-
label: e.label,
|
|
565
|
-
readonly: "",
|
|
566
|
-
hideMessage: "",
|
|
567
|
-
active: "",
|
|
568
|
-
onClick: f.click,
|
|
569
|
-
onOnIcon: f.click
|
|
570
|
-
}, {
|
|
571
|
-
icon: k(() => [
|
|
572
|
-
S(x, {
|
|
573
|
-
class: p(["transition duration-300", m ? "rotate-180" : ""])
|
|
574
|
-
}, null, 8, ["class"])
|
|
575
|
-
]),
|
|
576
|
-
_: 2
|
|
577
|
-
}, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
|
|
578
|
-
])
|
|
579
|
-
]),
|
|
580
|
-
default: k(({ on: f, isLgOrLarger: m }) => [
|
|
581
|
-
d("div", Pe, [
|
|
582
|
-
e.label ? (o(), u("h4", je, O(e.label), 1)) : w("", !0),
|
|
583
|
-
S(Le, {
|
|
584
|
-
items: e.items,
|
|
585
|
-
plain: !m,
|
|
586
|
-
class: p(["lg:max-h-50 lg:overflow-y-auto lg:overscroll-contain", { scrollbar: m }]),
|
|
587
|
-
onClick: (g) => r(g, f)
|
|
588
|
-
}, {
|
|
589
|
-
default: k(({ item: g }) => [
|
|
590
|
-
M(l.$slots, "item", { item: g }, () => [
|
|
591
|
-
N(O(g.name), 1)
|
|
592
|
-
])
|
|
593
|
-
]),
|
|
594
|
-
_: 3
|
|
595
|
-
}, 8, ["items", "plain", "class", "onClick"])
|
|
596
|
-
])
|
|
597
|
-
]),
|
|
598
|
-
_: 3
|
|
599
|
-
}, 16);
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
}), Ne = ["aria-label"], We = { class: "text-title-md uppercase font-bold flex-auto" }, qe = { class: "px-4 pb-4 md:px-6" }, Ke = {
|
|
603
|
-
key: 0,
|
|
604
|
-
class: "text-title-md uppercase font-bold"
|
|
605
|
-
}, ot = /* @__PURE__ */ C({
|
|
606
|
-
__name: "VDialog",
|
|
607
|
-
props: {
|
|
608
|
-
title: {},
|
|
609
|
-
size: { default: "md" },
|
|
610
|
-
popupSize: { default: "auto" },
|
|
611
|
-
color: { default: "white" },
|
|
612
|
-
type: {},
|
|
613
|
-
hiddenCloser: { type: Boolean },
|
|
614
|
-
isOnlyDialog: { type: Boolean },
|
|
615
|
-
timeout: {}
|
|
616
|
-
},
|
|
617
|
-
emits: ["close", "click", "open"],
|
|
618
|
-
setup(e, { expose: a, emit: t }) {
|
|
619
|
-
const i = t, r = X(Y), { show: l, onClose: n, onOpen: x } = J(i, e.timeout), f = j(null), m = {
|
|
620
|
-
sm: "max-w-full md:max-w-[330px] max-md:h-full",
|
|
621
|
-
md: "max-w-full md:max-w-[672px] max-md:h-full",
|
|
622
|
-
lg: "max-w-full md:max-w-[960px] max-md:h-full",
|
|
623
|
-
full: "relative max-w-full w-full h-3/4 "
|
|
624
|
-
}, g = {
|
|
625
|
-
none: "",
|
|
626
|
-
white: "glass-inset rounded-[10px]",
|
|
627
|
-
gray: ""
|
|
628
|
-
}, E = c(() => [m[e.size], g[e.color]]), B = r.greaterOrEqual("lg"), $ = c(() => l.value && (!!e.isOnlyDialog || B.value));
|
|
629
|
-
return Q(f, $), a({
|
|
630
|
-
show: l,
|
|
631
|
-
onClose: n
|
|
632
|
-
}), (h, b) => e.isOnlyDialog || s(B) ? (o(), V(G, {
|
|
633
|
-
key: 0,
|
|
634
|
-
to: "body"
|
|
635
|
-
}, [
|
|
636
|
-
S(P, {
|
|
637
|
-
"enter-active-class": "duration-300 ease-out",
|
|
638
|
-
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
639
|
-
"enter-to-class": "opacity-100 translate-y-0",
|
|
640
|
-
"leave-active-class": "duration-200 ease-in",
|
|
641
|
-
"leave-from-class": "opacity-100 translate-y-0",
|
|
642
|
-
"leave-to-class": "transform opacity-0 -translate-y-2",
|
|
643
|
-
onAfterEnter: s(x)
|
|
644
|
-
}, {
|
|
645
|
-
default: k(() => [
|
|
646
|
-
s(l) ? (o(), u("div", {
|
|
647
|
-
key: 0,
|
|
648
|
-
ref_key: "dialogRef",
|
|
649
|
-
ref: f,
|
|
650
|
-
class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
|
|
651
|
-
tabindex: "-1",
|
|
652
|
-
role: "dialog",
|
|
653
|
-
"aria-modal": "true",
|
|
654
|
-
"aria-label": e.title || void 0,
|
|
655
|
-
onWheel: b[4] || (b[4] = L(() => {
|
|
656
|
-
}, ["stop"]))
|
|
657
|
-
}, [
|
|
658
|
-
d("div", {
|
|
659
|
-
class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
|
|
660
|
-
onClick: b[0] || (b[0] = //@ts-ignore
|
|
661
|
-
(...y) => s(n) && s(n)(...y))
|
|
662
|
-
}),
|
|
663
|
-
d("div", {
|
|
664
|
-
class: p(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
|
|
665
|
-
}, [
|
|
666
|
-
d("div", {
|
|
667
|
-
class: p(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg", E.value])
|
|
668
|
-
}, [
|
|
669
|
-
d("div", {
|
|
670
|
-
class: p(["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" : ""]),
|
|
671
|
-
onWheel: b[1] || (b[1] = L(() => {
|
|
672
|
-
}, ["prevent"])),
|
|
673
|
-
onTouchmove: b[2] || (b[2] = L(() => {
|
|
674
|
-
}, ["prevent"]))
|
|
675
|
-
}, [
|
|
676
|
-
d("h4", We, O(e.title), 1),
|
|
677
|
-
M(h.$slots, "header-btn", { close: s(n) }),
|
|
678
|
-
S(_, {
|
|
679
|
-
color: "transparent",
|
|
680
|
-
type: "icon",
|
|
681
|
-
size: "sm",
|
|
682
|
-
"aria-label": "Close",
|
|
683
|
-
title: "Close",
|
|
684
|
-
onClick: s(n)
|
|
685
|
-
}, {
|
|
686
|
-
default: k(() => [
|
|
687
|
-
S(W, {
|
|
688
|
-
name: "close",
|
|
689
|
-
size: 18
|
|
690
|
-
})
|
|
691
|
-
]),
|
|
692
|
-
_: 1
|
|
693
|
-
}, 8, ["onClick"])
|
|
694
|
-
], 34),
|
|
695
|
-
d("div", {
|
|
696
|
-
class: p(["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"]),
|
|
697
|
-
onClose: b[3] || (b[3] = //@ts-ignore
|
|
698
|
-
(...y) => s(n) && s(n)(...y))
|
|
699
|
-
}, [
|
|
700
|
-
M(h.$slots, "default", { close: s(n) })
|
|
701
|
-
], 34)
|
|
702
|
-
], 2)
|
|
703
|
-
], 2)
|
|
704
|
-
], 40, Ne)) : w("", !0)
|
|
705
|
-
]),
|
|
706
|
-
_: 3
|
|
707
|
-
}, 8, ["onAfterEnter"])
|
|
708
|
-
])) : (o(), V(ee, {
|
|
709
|
-
key: 1,
|
|
710
|
-
size: e.popupSize,
|
|
711
|
-
"trap-focus": "",
|
|
712
|
-
"aria-label": e.title || "Dialog",
|
|
713
|
-
onClose: s(n)
|
|
714
|
-
}, {
|
|
715
|
-
button: k(() => [
|
|
716
|
-
M(h.$slots, "header-btn", { close: s(n) })
|
|
717
|
-
]),
|
|
718
|
-
default: k(({ close: y }) => [
|
|
719
|
-
d("div", qe, [
|
|
720
|
-
d("div", {
|
|
721
|
-
class: p(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
722
|
-
onWheel: b[5] || (b[5] = L(() => {
|
|
723
|
-
}, ["prevent"])),
|
|
724
|
-
onTouchmove: b[6] || (b[6] = L(() => {
|
|
725
|
-
}, ["prevent"]))
|
|
726
|
-
}, [
|
|
727
|
-
e.title ? (o(), u("h4", Ke, O(e.title), 1)) : w("", !0)
|
|
728
|
-
], 34),
|
|
729
|
-
M(h.$slots, "default", { close: y })
|
|
730
|
-
])
|
|
731
|
-
]),
|
|
732
|
-
_: 3
|
|
733
|
-
}, 8, ["size", "aria-label", "onClose"]));
|
|
734
|
-
}
|
|
735
|
-
}), Ue = {
|
|
736
|
-
key: 0,
|
|
737
|
-
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]"
|
|
738
|
-
}, Ge = {
|
|
739
|
-
key: 1,
|
|
740
|
-
class: "absolute top-0 left-0 w-full h-full bg-gray-light-30 dark:bg-night-main/75 z-10 opacity-50"
|
|
741
|
-
}, Je = {
|
|
742
|
-
key: 2,
|
|
743
|
-
class: "mb-4 flex items-center justify-between gap-3"
|
|
744
|
-
}, Qe = {
|
|
745
|
-
key: 0,
|
|
746
|
-
class: "text-lg font-semibold text-gray-dark-30 dark:text-white"
|
|
747
|
-
}, Xe = { class: "ml-auto" }, Ye = ["inert", "aria-disabled"], nt = /* @__PURE__ */ C({
|
|
748
|
-
__name: "CardMain",
|
|
749
|
-
props: {
|
|
750
|
-
title: { default: "" },
|
|
751
|
-
loading: { type: Boolean, default: !1 },
|
|
752
|
-
disabled: { type: Boolean, default: !1 },
|
|
753
|
-
padded: { type: Boolean, default: !0 }
|
|
754
|
-
},
|
|
755
|
-
setup(e) {
|
|
756
|
-
const a = c(() => e.padded ? "p-5 sm:p-6" : "");
|
|
757
|
-
return (t, i) => (o(), u("div", {
|
|
758
|
-
class: p(["glass-inset relative rounded-[10px] 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 }]])
|
|
759
|
-
}, [
|
|
760
|
-
e.loading ? (o(), u("div", Ue)) : w("", !0),
|
|
761
|
-
e.loading ? (o(), u("div", Ge)) : w("", !0),
|
|
762
|
-
e.title || t.$slots.header ? (o(), u("div", Je, [
|
|
763
|
-
e.title ? (o(), u("h3", Qe, O(e.title), 1)) : w("", !0),
|
|
764
|
-
d("div", Xe, [
|
|
765
|
-
M(t.$slots, "header")
|
|
766
|
-
])
|
|
767
|
-
])) : w("", !0),
|
|
768
|
-
d("div", {
|
|
769
|
-
class: "max-w-full",
|
|
770
|
-
inert: e.disabled,
|
|
771
|
-
"aria-disabled": e.disabled || void 0
|
|
772
|
-
}, [
|
|
773
|
-
M(t.$slots, "default")
|
|
774
|
-
], 8, Ye)
|
|
775
|
-
], 2));
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
export {
|
|
779
|
-
et as V,
|
|
780
|
-
ot as _,
|
|
781
|
-
tt as a,
|
|
782
|
-
nt as b,
|
|
783
|
-
ze as c,
|
|
784
|
-
lt as d,
|
|
785
|
-
at as e,
|
|
786
|
-
Re as f,
|
|
787
|
-
Le as g,
|
|
788
|
-
Ve as h,
|
|
789
|
-
ge as i,
|
|
790
|
-
_ as j,
|
|
791
|
-
Z as k,
|
|
792
|
-
W as l,
|
|
793
|
-
ee as m,
|
|
794
|
-
Te as u
|
|
795
|
-
};
|