vuesp-components 2.1.0 → 2.1.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 +1 -1
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/components/app/AppHeader.vue.d.ts.map +1 -1
- package/dist/components/card/notification/CardNotification.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardBase.vue.d.ts +9 -9
- package/dist/components/dashboard/cards/CardBase.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardButton.vue.d.ts +1 -1
- package/dist/components/dashboard/cards/CardDate.vue.d.ts +163 -3
- package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardDimmer.vue.d.ts +1 -1
- package/dist/components/dashboard/cards/CardDimmer.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardInfo.vue.d.ts +1 -1
- package/dist/components/dashboard/cards/CardInput.vue.d.ts +1 -1
- package/dist/components/dashboard/cards/CardInput.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardList.vue.d.ts +1 -1
- package/dist/components/dashboard/cards/CardList.vue.d.ts.map +1 -1
- package/dist/components/dashboard/cards/types.d.ts +1 -1
- package/dist/components/dashboard/cards/types.d.ts.map +1 -1
- package/dist/components/dashboard/edit/ItemOptions.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/types.d.ts +1 -1
- package/dist/components/dashboard/edit/types.d.ts.map +1 -1
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/ui/button/types.d.ts +0 -2
- package/dist/components/ui/button/types.d.ts.map +1 -1
- package/dist/components/ui/dialog/VDialog.vue.d.ts +9 -9
- package/dist/components/ui/dialog/VPopup.vue.d.ts +6 -6
- package/dist/components/ui/dialog/types.d.ts +1 -1
- package/dist/components/ui/dialog/types.d.ts.map +1 -1
- package/dist/components/ui/dropdown/types.d.ts +1 -0
- package/dist/components/ui/dropdown/types.d.ts.map +1 -1
- package/dist/components/ui/func/VFunc.vue.d.ts +1 -3
- package/dist/components/ui/func/VFunc.vue.d.ts.map +1 -1
- package/dist/components/ui/list/VList.vue.d.ts.map +1 -1
- package/dist/components/ui/list/VListObject.vue.d.ts.map +1 -1
- package/dist/components/ui/list/types.d.ts +0 -1
- package/dist/components/ui/list/types.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextField.vue.d.ts +2 -0
- package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/types.d.ts +1 -1
- package/dist/components/ui/text-field/types.d.ts.map +1 -1
- package/dist/composables/index.es.js +1 -1
- package/dist/composables/useDialog.d.ts +1 -1
- package/dist/composables/useDialog.d.ts.map +1 -1
- package/dist/index.es.js +1115 -1030
- package/dist/style.css +1 -1
- package/dist/useSwipeDown-BLxS7593.js +375 -0
- package/package.json +1 -1
- package/dist/useSwipeDown-E8KeNvRa.js +0 -436
package/dist/index.es.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { u as ye, a as Ee, b as xe, c as
|
|
3
|
-
import { getDataValue as
|
|
4
|
-
import { dashboardCards as
|
|
5
|
-
import { dateUtcToString as
|
|
6
|
-
const
|
|
7
|
-
mounted(e,
|
|
8
|
-
e.clickOutsideEvent = function(
|
|
9
|
-
e ===
|
|
1
|
+
import { openBlock as i, createElementBlock as m, createStaticVNode as Te, createElementVNode as l, defineComponent as B, resolveComponent as ge, Fragment as N, createCommentVNode as V, normalizeClass as z, createVNode as v, withCtx as h, createBlock as I, renderSlot as _, markRaw as R, computed as T, resolveDynamicComponent as Y, mergeProps as L, shallowRef as me, Teleport as pe, Transition as Z, unref as A, withModifiers as j, normalizeStyle as K, ref as P, resolveDirective as Ie, withDirectives as ae, renderList as U, createTextVNode as E, toDisplayString as $, TransitionGroup as he, watch as ee, normalizeProps as H, guardReactiveProps as F, withKeys as De, useTemplateRef as Me, createPropsRestProxy as je, vShow as Le, vModelText as Oe, onMounted as be } from "vue";
|
|
2
|
+
import { u as ye, a as Ee, b as xe, c as _e, d as ie } from "./useSwipeDown-BLxS7593.js";
|
|
3
|
+
import { getDataValue as Ne } from "./dashboard/index.es.js";
|
|
4
|
+
import { dashboardCards as nn, getFunction as an, getParamsData as rn, getStateItem as dn, setStateItem as cn } from "./dashboard/index.es.js";
|
|
5
|
+
import { dateUtcToString as Pe, timeUtcToString as He, findMenuItem as Fe, clone as Ue } from "./helpers/index.es.js";
|
|
6
|
+
const Re = {
|
|
7
|
+
mounted(e, s) {
|
|
8
|
+
e.clickOutsideEvent = function(r) {
|
|
9
|
+
e === r.target || e.contains(r.target) || s.value(r, e);
|
|
10
10
|
}, document.addEventListener("click", e.clickOutsideEvent);
|
|
11
11
|
},
|
|
12
12
|
unmounted(e) {
|
|
13
13
|
document.removeEventListener("click", e.clickOutsideEvent), delete e.clickOutsideEvent;
|
|
14
14
|
}
|
|
15
|
-
},
|
|
16
|
-
const
|
|
17
|
-
for (const [
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
},
|
|
15
|
+
}, We = [{ name: "outside", directive: Re }], te = (e, s) => {
|
|
16
|
+
const r = e.__vccOpts || e;
|
|
17
|
+
for (const [c, t] of s)
|
|
18
|
+
r[c] = t;
|
|
19
|
+
return r;
|
|
20
|
+
}, qe = {}, Ke = {
|
|
21
21
|
viewBox: "0 0 179 40",
|
|
22
22
|
fill: "currentColor"
|
|
23
23
|
};
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
function Ge(e, s) {
|
|
25
|
+
return i(), m("svg", Ke, [...s[0] || (s[0] = [
|
|
26
26
|
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)
|
|
27
27
|
])]);
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const re = /* @__PURE__ */ te(qe, [["render", Ge]]), Je = {}, Qe = {
|
|
30
30
|
width: "40",
|
|
31
31
|
height: "40",
|
|
32
32
|
viewBox: "0 0 40 40",
|
|
33
33
|
fill: "currentColor"
|
|
34
34
|
};
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Xe(e, s) {
|
|
36
|
+
return i(), m("svg", Qe, [...s[0] || (s[0] = [
|
|
37
37
|
l("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
|
|
38
38
|
l("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" })
|
|
39
39
|
], -1)
|
|
40
40
|
])]);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const ke = /* @__PURE__ */ te(Je, [["render", Xe]]), Ye = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Ze = /* @__PURE__ */ B({
|
|
43
43
|
__name: "AppAside",
|
|
44
44
|
props: {
|
|
45
45
|
isSidebar: { type: Boolean, default: !1 }
|
|
46
46
|
},
|
|
47
47
|
emits: ["sidebar"],
|
|
48
|
-
setup(e, { emit:
|
|
49
|
-
const
|
|
50
|
-
e.isSidebar &&
|
|
48
|
+
setup(e, { emit: s }) {
|
|
49
|
+
const r = s, c = () => {
|
|
50
|
+
e.isSidebar && r("sidebar", !e.isSidebar);
|
|
51
51
|
};
|
|
52
|
-
return (t,
|
|
52
|
+
return (t, d) => {
|
|
53
53
|
const a = ge("router-link");
|
|
54
|
-
return
|
|
55
|
-
e.isSidebar ? (
|
|
54
|
+
return i(), m(N, null, [
|
|
55
|
+
e.isSidebar ? (i(), m("div", {
|
|
56
56
|
key: 0,
|
|
57
57
|
class: "lg:hidden overlay fixed left-0 top-0 h-full w-full bg-black/40 z-10 bg-blur",
|
|
58
|
-
onClick:
|
|
58
|
+
onClick: c
|
|
59
59
|
})) : V("", !0),
|
|
60
60
|
l("aside", {
|
|
61
61
|
class: z([e.isSidebar ? "translate-x-0 lg:w-[90px]" : "-translate-x-full", "overflow-x-hidden fixed top-0 left-0 z-10 flex lg:static h-full w-[290px] flex-col overflow-y-auto border-r border-gray-200 px-5 transition-all duration-350 lg:translate-x-0 dark:border-gray-800 bg-white dark:bg-gray-900"])
|
|
@@ -63,12 +63,12 @@ const _e = /* @__PURE__ */ ee(Qe, [["render", Ye]]), Ze = { class: "no-scrollbar
|
|
|
63
63
|
l("div", {
|
|
64
64
|
class: z([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 pt-6 pb-6 justify-between"])
|
|
65
65
|
}, [
|
|
66
|
-
|
|
66
|
+
v(a, { to: "/" }, {
|
|
67
67
|
default: h(() => [
|
|
68
|
-
e.isSidebar ? (
|
|
68
|
+
e.isSidebar ? (i(), I(ke, {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "h-[30px] text-primary"
|
|
71
|
-
})) : (
|
|
71
|
+
})) : (i(), I(re, {
|
|
72
72
|
key: 1,
|
|
73
73
|
class: "h-[30px] text-primary"
|
|
74
74
|
}))
|
|
@@ -76,98 +76,98 @@ const _e = /* @__PURE__ */ ee(Qe, [["render", Ye]]), Ze = { class: "no-scrollbar
|
|
|
76
76
|
_: 1
|
|
77
77
|
})
|
|
78
78
|
], 2),
|
|
79
|
-
l("div",
|
|
80
|
-
|
|
79
|
+
l("div", Ye, [
|
|
80
|
+
_(t.$slots, "default")
|
|
81
81
|
])
|
|
82
82
|
], 2)
|
|
83
83
|
], 64);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), et = {
|
|
87
87
|
viewBox: "0 0 24 24",
|
|
88
88
|
width: "1.2em",
|
|
89
89
|
height: "1.2em"
|
|
90
90
|
};
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function tt(e, s) {
|
|
92
|
+
return i(), m("svg", et, [...s[0] || (s[0] = [
|
|
93
93
|
l("path", {
|
|
94
94
|
fill: "currentColor",
|
|
95
95
|
d: "M4.5 10.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S6 12.825 6 12s-.675-1.5-1.5-1.5m15 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S21 12.825 21 12s-.675-1.5-1.5-1.5m-7.5 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5s1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5"
|
|
96
96
|
}, null, -1)
|
|
97
97
|
])]);
|
|
98
98
|
}
|
|
99
|
-
const $e =
|
|
99
|
+
const $e = R({ name: "ri-more-line", render: tt }), lt = {
|
|
100
100
|
viewBox: "0 0 24 24",
|
|
101
101
|
width: "1.2em",
|
|
102
102
|
height: "1.2em"
|
|
103
103
|
};
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function st(e, s) {
|
|
105
|
+
return i(), m("svg", lt, [...s[0] || (s[0] = [
|
|
106
106
|
l("path", {
|
|
107
107
|
fill: "currentColor",
|
|
108
108
|
d: "M4 18h2v2h12V4H6v2H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2-7h7v2H6v3l-5-4l5-4z"
|
|
109
109
|
}, null, -1)
|
|
110
110
|
])]);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const ot = R({ name: "ri-logout-box-line", render: st }), nt = {
|
|
113
113
|
viewBox: "0 0 24 24",
|
|
114
114
|
width: "1.2em",
|
|
115
115
|
height: "1.2em"
|
|
116
116
|
};
|
|
117
|
-
function
|
|
118
|
-
return
|
|
117
|
+
function at(e, s) {
|
|
118
|
+
return i(), m("svg", nt, [...s[0] || (s[0] = [
|
|
119
119
|
l("path", {
|
|
120
120
|
fill: "currentColor",
|
|
121
121
|
d: "M5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm7-16c4.97 0 9 4.043 9 9.031V20H3v-8.969C3 6.043 7.03 2 12 2M9.5 21h5a2.5 2.5 0 0 1-5 0"
|
|
122
122
|
}, null, -1)
|
|
123
123
|
])]);
|
|
124
124
|
}
|
|
125
|
-
const we =
|
|
125
|
+
const we = R({ name: "ri-notification-line", render: at }), it = {
|
|
126
126
|
viewBox: "0 0 24 24",
|
|
127
127
|
width: "1.2em",
|
|
128
128
|
height: "1.2em"
|
|
129
129
|
};
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function rt(e, s) {
|
|
131
|
+
return i(), m("svg", it, [...s[0] || (s[0] = [
|
|
132
132
|
l("path", {
|
|
133
133
|
fill: "currentColor",
|
|
134
134
|
d: "M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12"
|
|
135
135
|
}, null, -1)
|
|
136
136
|
])]);
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const dt = R({ name: "ri-moon-line", render: rt }), ct = {
|
|
139
139
|
viewBox: "0 0 24 24",
|
|
140
140
|
width: "1.2em",
|
|
141
141
|
height: "1.2em"
|
|
142
142
|
};
|
|
143
|
-
function
|
|
144
|
-
return
|
|
143
|
+
function ut(e, s) {
|
|
144
|
+
return i(), m("svg", ct, [...s[0] || (s[0] = [
|
|
145
145
|
l("path", {
|
|
146
146
|
fill: "currentColor",
|
|
147
147
|
d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
|
|
148
148
|
}, null, -1)
|
|
149
149
|
])]);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const ft = R({ name: "ri-sun-line", render: ut }), mt = {
|
|
152
152
|
viewBox: "0 0 24 24",
|
|
153
153
|
width: "1.2em",
|
|
154
154
|
height: "1.2em"
|
|
155
155
|
};
|
|
156
|
-
function
|
|
157
|
-
return
|
|
156
|
+
function vt(e, s) {
|
|
157
|
+
return i(), m("svg", mt, [...s[0] || (s[0] = [
|
|
158
158
|
l("path", {
|
|
159
159
|
fill: "currentColor",
|
|
160
160
|
d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
|
|
161
161
|
}, null, -1)
|
|
162
162
|
])]);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const gt = R({ name: "ri-menu-line", render: vt }), pt = {}, ht = {
|
|
165
165
|
class: "animate-spin h-6 w-6",
|
|
166
166
|
fill: "none",
|
|
167
167
|
viewBox: "0 0 24 24"
|
|
168
168
|
};
|
|
169
|
-
function
|
|
170
|
-
return
|
|
169
|
+
function bt(e, s) {
|
|
170
|
+
return i(), m("svg", ht, [...s[0] || (s[0] = [
|
|
171
171
|
l("circle", {
|
|
172
172
|
class: "opacity-25",
|
|
173
173
|
cx: "12",
|
|
@@ -183,90 +183,87 @@ function yt(e, o) {
|
|
|
183
183
|
}, null, -1)
|
|
184
184
|
])]);
|
|
185
185
|
}
|
|
186
|
-
const Ce = /* @__PURE__ */
|
|
186
|
+
const Ce = /* @__PURE__ */ te(pt, [["render", bt]]), yt = "relative flex justify-center items-center transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:opacity-40 rounded", O = /* @__PURE__ */ B({
|
|
187
187
|
__name: "VButton",
|
|
188
188
|
props: {
|
|
189
|
-
block: { type: Boolean },
|
|
190
189
|
outline: { type: Boolean, default: !1 },
|
|
191
|
-
color: { default: "
|
|
190
|
+
color: { default: "transparent" },
|
|
192
191
|
size: { default: "md" },
|
|
193
192
|
type: { default: "button" },
|
|
194
193
|
href: { default: "" },
|
|
195
194
|
to: { default: "" },
|
|
196
|
-
loading: { type: Boolean, default: !1 }
|
|
197
|
-
disabled: { type: [Number, Boolean], default: !1 }
|
|
195
|
+
loading: { type: Boolean, default: !1 }
|
|
198
196
|
},
|
|
199
197
|
emits: ["click"],
|
|
200
|
-
setup(e, { emit:
|
|
201
|
-
const
|
|
198
|
+
setup(e, { emit: s }) {
|
|
199
|
+
const r = s, c = (S) => r("click", S), t = e.outline ? "dark:text-white border border-green-600 text-green-600" : "text-white bg-green-600 dark:bg-green-800", d = e.outline ? "dark:text-white border border-red-600 text-red-600" : "text-white bg-red-600 dark:bg-red-800", a = e.outline ? "dark:text-white border border-gray-600 text-gray-600" : "bg-gray-100 dark:bg-gray-800", f = e.outline ? "dark:text-white border border-blue-600 text-blue-600" : "text-white bg-blue-700 dark:bg-blue-800", u = (e.outline, ""), n = { green: t, red: d, gray: a, blue: f, transparent: u }, o = {
|
|
202
200
|
button: "px-3",
|
|
203
201
|
icon: "rounded-full border border-gray-200 dark:border-gray-800"
|
|
204
|
-
},
|
|
202
|
+
}, g = {
|
|
205
203
|
button: { sm: "h-8", md: "h-10", lg: "h-12", xl: "h-14" },
|
|
206
204
|
icon: { sm: "size-8", md: "size-10", lg: "size-12", xl: "size-14" }
|
|
207
|
-
},
|
|
205
|
+
}, b = T(() => [yt, w(e.color), x(e.type), p(e.type, e.size)]), y = T(() => e.href || e.to ? "router-link" : "button"), p = (S, M) => {
|
|
208
206
|
var W;
|
|
209
|
-
return ((W =
|
|
210
|
-
},
|
|
211
|
-
return (S, M) => (
|
|
207
|
+
return ((W = g[S]) == null ? void 0 : W[M]) || "";
|
|
208
|
+
}, x = (S) => (o == null ? void 0 : o[S]) || "", w = (S) => n == null ? void 0 : n[S];
|
|
209
|
+
return (S, M) => (i(), I(Y(y.value), L(S.$attrs, {
|
|
212
210
|
href: e.href,
|
|
213
211
|
to: e.to,
|
|
214
|
-
class:
|
|
215
|
-
|
|
216
|
-
onClick: u
|
|
212
|
+
class: b.value,
|
|
213
|
+
onClick: c
|
|
217
214
|
}), {
|
|
218
215
|
default: h(() => [
|
|
219
216
|
l("span", {
|
|
220
217
|
class: z(e.loading ? "opacity-0" : "")
|
|
221
218
|
}, [
|
|
222
|
-
|
|
219
|
+
_(S.$slots, "default")
|
|
223
220
|
], 2),
|
|
224
|
-
e.loading ? (
|
|
221
|
+
e.loading ? (i(), I(Ce, {
|
|
225
222
|
key: 0,
|
|
226
223
|
class: "absolute left-1/2 -translate-x-1/2"
|
|
227
224
|
})) : V("", !0)
|
|
228
225
|
]),
|
|
229
226
|
_: 3
|
|
230
|
-
}, 16, ["href", "to", "class"
|
|
227
|
+
}, 16, ["href", "to", "class"]));
|
|
231
228
|
}
|
|
232
|
-
}),
|
|
229
|
+
}), xt = {
|
|
233
230
|
viewBox: "0 0 24 24",
|
|
234
231
|
width: "1.2em",
|
|
235
232
|
height: "1.2em"
|
|
236
233
|
};
|
|
237
|
-
function _t(e,
|
|
238
|
-
return
|
|
234
|
+
function _t(e, s) {
|
|
235
|
+
return i(), m("svg", xt, [...s[0] || (s[0] = [
|
|
239
236
|
l("path", {
|
|
240
237
|
fill: "currentColor",
|
|
241
238
|
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"
|
|
242
239
|
}, null, -1)
|
|
243
240
|
])]);
|
|
244
241
|
}
|
|
245
|
-
const G =
|
|
242
|
+
const G = R({ name: "ri-close-line", render: _t }), kt = { class: "flex items-center absolute right-3 top-5 z-10" }, de = /* @__PURE__ */ B({
|
|
246
243
|
__name: "VPopup",
|
|
247
244
|
props: {
|
|
248
245
|
hiddenCloser: { type: Boolean },
|
|
249
246
|
size: { default: "auto" }
|
|
250
247
|
},
|
|
251
248
|
emits: ["close", "click", "open"],
|
|
252
|
-
setup(e, { emit:
|
|
253
|
-
const
|
|
254
|
-
|
|
249
|
+
setup(e, { emit: s }) {
|
|
250
|
+
const r = s, { show: c, overlay: t, onClose: d, onOpen: a } = ye(r), f = me(null), u = me(null), { opacity: n, transform: o } = Ee(f, u, d), y = { click: (w) => {
|
|
251
|
+
r("click", w);
|
|
255
252
|
}, open: a, set: (w) => {
|
|
256
|
-
w ? a() :
|
|
257
|
-
} },
|
|
253
|
+
w ? a() : d(new Event("hide"));
|
|
254
|
+
} }, p = T(() => ({
|
|
258
255
|
auto: "max-h-[calc(100dvh-50px)]",
|
|
259
256
|
full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
|
|
260
257
|
screen: "h-dvh"
|
|
261
|
-
})),
|
|
258
|
+
})), x = T(() => ({
|
|
262
259
|
auto: "max-h-[calc(100dvh-50px-16px)]",
|
|
263
260
|
full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
|
|
264
261
|
screen: "h-[calc(100dvh-16px)]"
|
|
265
262
|
}));
|
|
266
263
|
return (w, S) => {
|
|
267
|
-
const M = G, W =
|
|
268
|
-
return
|
|
269
|
-
|
|
264
|
+
const M = G, W = O;
|
|
265
|
+
return i(), I(pe, { to: "body" }, [
|
|
266
|
+
v(Z, {
|
|
270
267
|
"enter-active-class": "duration-300 ease-out",
|
|
271
268
|
"enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
|
|
272
269
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -275,60 +272,60 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
275
272
|
"leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
|
|
276
273
|
}, {
|
|
277
274
|
default: h(() => [
|
|
278
|
-
A(
|
|
275
|
+
A(c) ? (i(), m("div", {
|
|
279
276
|
key: 0,
|
|
280
277
|
ref_key: "container",
|
|
281
|
-
ref:
|
|
278
|
+
ref: u,
|
|
282
279
|
class: "fixed bottom-0 left-0 w-full z-15"
|
|
283
280
|
}, [
|
|
284
|
-
A(t) ? (
|
|
281
|
+
A(t) ? (i(), m("div", {
|
|
285
282
|
key: 0,
|
|
286
283
|
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
287
|
-
style: K({ opacity: A(
|
|
284
|
+
style: K({ opacity: A(n) }),
|
|
288
285
|
onClick: S[0] || (S[0] = //@ts-ignore
|
|
289
|
-
(...
|
|
290
|
-
onWheel: S[1] || (S[1] =
|
|
286
|
+
(...X) => A(d) && A(d)(...X)),
|
|
287
|
+
onWheel: S[1] || (S[1] = j(() => {
|
|
291
288
|
}, ["prevent"])),
|
|
292
|
-
onTouchmove: S[2] || (S[2] =
|
|
289
|
+
onTouchmove: S[2] || (S[2] = j(() => {
|
|
293
290
|
}, ["prevent"]))
|
|
294
291
|
}, null, 36)) : V("", !0),
|
|
295
292
|
l("div", {
|
|
296
|
-
class: z(["bg-white dark:bg-gray-900 w-full shadow-nav relative",
|
|
297
|
-
style: K({ transform: A(
|
|
293
|
+
class: z(["bg-white dark:bg-gray-900 w-full shadow-nav relative", p.value[e.size]]),
|
|
294
|
+
style: K({ transform: A(o) })
|
|
298
295
|
}, [
|
|
299
296
|
l("div", {
|
|
300
297
|
ref_key: "target",
|
|
301
298
|
ref: f,
|
|
302
299
|
class: "flex justify-center py-3 md:pb-6",
|
|
303
|
-
onWheel: S[3] || (S[3] =
|
|
300
|
+
onWheel: S[3] || (S[3] = j(() => {
|
|
304
301
|
}, ["prevent"])),
|
|
305
|
-
onTouchmove: S[4] || (S[4] =
|
|
302
|
+
onTouchmove: S[4] || (S[4] = j(() => {
|
|
306
303
|
}, ["prevent"]))
|
|
307
304
|
}, [...S[5] || (S[5] = [
|
|
308
305
|
l("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
|
|
309
306
|
])], 544),
|
|
310
|
-
l("div",
|
|
311
|
-
|
|
312
|
-
|
|
307
|
+
l("div", kt, [
|
|
308
|
+
_(w.$slots, "button", { close: A(d) }),
|
|
309
|
+
v(W, {
|
|
313
310
|
class: "size-5 md:size-6",
|
|
314
311
|
color: "transparent",
|
|
315
312
|
size: "none",
|
|
316
313
|
icon: "",
|
|
317
314
|
"aria-label": "Close",
|
|
318
|
-
onClick: A(
|
|
315
|
+
onClick: A(d)
|
|
319
316
|
}, {
|
|
320
317
|
default: h(() => [
|
|
321
|
-
|
|
318
|
+
v(M, { class: "size-5" })
|
|
322
319
|
]),
|
|
323
320
|
_: 1
|
|
324
321
|
}, 8, ["onClick"])
|
|
325
322
|
]),
|
|
326
323
|
l("div", {
|
|
327
|
-
class: z(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar",
|
|
324
|
+
class: z(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", x.value[e.size]])
|
|
328
325
|
}, [
|
|
329
|
-
|
|
330
|
-
close: A(
|
|
331
|
-
on:
|
|
326
|
+
_(w.$slots, "default", {
|
|
327
|
+
close: A(d),
|
|
328
|
+
on: y
|
|
332
329
|
})
|
|
333
330
|
], 2)
|
|
334
331
|
], 6)
|
|
@@ -339,7 +336,7 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
339
336
|
]);
|
|
340
337
|
};
|
|
341
338
|
}
|
|
342
|
-
}),
|
|
339
|
+
}), $t = { class: "relative" }, wt = { class: "flex items-center cursor-pointer" }, le = /* @__PURE__ */ B({
|
|
343
340
|
__name: "VDropdown",
|
|
344
341
|
props: {
|
|
345
342
|
title: { default: "" },
|
|
@@ -349,33 +346,34 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
349
346
|
bottom: { default: "" },
|
|
350
347
|
height: { default: "200px" },
|
|
351
348
|
hideOnClick: { type: Boolean, default: !0 },
|
|
352
|
-
disabled: { type: Boolean, default: !1 }
|
|
349
|
+
disabled: { type: Boolean, default: !1 },
|
|
350
|
+
isPopup: { type: Boolean }
|
|
353
351
|
},
|
|
354
352
|
emits: ["click", "show", "close"],
|
|
355
|
-
setup(e, { emit:
|
|
356
|
-
const
|
|
357
|
-
t.value &&
|
|
358
|
-
},
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
return (
|
|
370
|
-
const w =
|
|
371
|
-
return
|
|
372
|
-
l("div",
|
|
373
|
-
|
|
374
|
-
on:
|
|
375
|
-
isShow:
|
|
353
|
+
setup(e, { emit: s }) {
|
|
354
|
+
const r = s, t = xe(_e).greaterOrEqual("lg"), d = P(!1), a = T(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), f = (p) => {
|
|
355
|
+
t.value && d.value && o(p);
|
|
356
|
+
}, u = (p) => {
|
|
357
|
+
r("click", d.value), !e.disabled && (d.value ? e.hideOnClick && o(p) : n(p));
|
|
358
|
+
}, n = (p) => {
|
|
359
|
+
d.value = !0, r("show", p);
|
|
360
|
+
}, o = (p) => {
|
|
361
|
+
d.value = !1, r("close", p);
|
|
362
|
+
}, g = (p) => {
|
|
363
|
+
p ? n(new Event("show")) : o(new Event("hide"));
|
|
364
|
+
}, b = () => {
|
|
365
|
+
o(new Event("hide"));
|
|
366
|
+
}, y = { click: u, open: n, set: g };
|
|
367
|
+
return (p, x) => {
|
|
368
|
+
const w = Ie("outside");
|
|
369
|
+
return ae((i(), m("div", $t, [
|
|
370
|
+
l("div", wt, [
|
|
371
|
+
_(p.$slots, "activator", {
|
|
372
|
+
on: y,
|
|
373
|
+
isShow: d.value
|
|
376
374
|
})
|
|
377
375
|
]),
|
|
378
|
-
A(t) ? (
|
|
376
|
+
A(t) ? (i(), I(Z, {
|
|
379
377
|
key: 0,
|
|
380
378
|
"enter-active-class": "duration-300 ease-out",
|
|
381
379
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
@@ -385,32 +383,32 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
385
383
|
"leave-to-class": "transform opacity-0 -translate-y-2"
|
|
386
384
|
}, {
|
|
387
385
|
default: h(() => [
|
|
388
|
-
|
|
386
|
+
d.value ? (i(), m("div", {
|
|
389
387
|
key: 0,
|
|
390
388
|
class: "z-30 min-w-full absolute",
|
|
391
389
|
style: K(a.value)
|
|
392
390
|
}, [
|
|
393
|
-
|
|
394
|
-
on:
|
|
395
|
-
show:
|
|
396
|
-
hide:
|
|
397
|
-
isShow:
|
|
391
|
+
_(p.$slots, "default", {
|
|
392
|
+
on: y,
|
|
393
|
+
show: n,
|
|
394
|
+
hide: o,
|
|
395
|
+
isShow: d.value
|
|
398
396
|
})
|
|
399
397
|
], 4)) : V("", !0)
|
|
400
398
|
]),
|
|
401
399
|
_: 3
|
|
402
400
|
})) : V("", !0),
|
|
403
|
-
!A(t) &&
|
|
401
|
+
!A(t) && d.value ? (i(), I(de, {
|
|
404
402
|
key: 1,
|
|
405
403
|
title: e.title,
|
|
406
|
-
onClose:
|
|
404
|
+
onClose: b
|
|
407
405
|
}, {
|
|
408
406
|
default: h(({ on: S }) => [
|
|
409
|
-
|
|
407
|
+
_(p.$slots, "default", {
|
|
410
408
|
on: S,
|
|
411
|
-
show:
|
|
412
|
-
hide:
|
|
413
|
-
isShow:
|
|
409
|
+
show: n,
|
|
410
|
+
hide: o,
|
|
411
|
+
isShow: d.value
|
|
414
412
|
})
|
|
415
413
|
]),
|
|
416
414
|
_: 3
|
|
@@ -420,135 +418,127 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
420
418
|
]);
|
|
421
419
|
};
|
|
422
420
|
}
|
|
423
|
-
}), zt = ["onClick"],
|
|
421
|
+
}), Ct = { class: "bg-white dark:bg-gray-900 ring-1 ring-gray-200 dark:ring-gray-800" }, zt = ["onClick"], se = /* @__PURE__ */ B({
|
|
424
422
|
__name: "VList",
|
|
425
423
|
props: {
|
|
426
|
-
items: {}
|
|
427
|
-
className: {}
|
|
424
|
+
items: {}
|
|
428
425
|
},
|
|
429
426
|
emits: ["click"],
|
|
430
|
-
setup(e, { emit:
|
|
431
|
-
const
|
|
432
|
-
return (t,
|
|
433
|
-
|
|
434
|
-
}, [
|
|
435
|
-
(n(!0), m(L, null, R(e.items, (a) => (n(), m("li", {
|
|
427
|
+
setup(e, { emit: s }) {
|
|
428
|
+
const r = s, c = (t, d) => r("click", t, d);
|
|
429
|
+
return (t, d) => (i(), m("ul", Ct, [
|
|
430
|
+
(i(!0), m(N, null, U(e.items, (a) => (i(), m("li", {
|
|
436
431
|
key: a.name,
|
|
437
432
|
class: "whitespace-nowrap cursor-pointer flex items-center min-h-[40px] border-b last:border-b-0 dark:border-gray-700 border-gray-200 hover:bg-gray-50 dark:hover:bg-gray-700/30 w-full px-4",
|
|
438
|
-
onClick: (f) =>
|
|
433
|
+
onClick: (f) => c(a, f)
|
|
439
434
|
}, [
|
|
440
|
-
|
|
441
|
-
|
|
435
|
+
_(t.$slots, "default", { item: a }, () => [
|
|
436
|
+
E($(a.name), 1)
|
|
442
437
|
])
|
|
443
438
|
], 8, zt))), 128))
|
|
444
|
-
]
|
|
439
|
+
]));
|
|
445
440
|
}
|
|
446
|
-
}), Vt = { class: "bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 left-0 w-full z-10 sticky top-0" }, Bt = { class: "px-4 py-4 sm:px-6 lg:px-8" }, St = { class: "container mx-auto flex flex-auto items-center" }, At = { class: "lg:hidden h-[30px]" }, Tt = { class: "gap-4 hidden lg:flex" },
|
|
441
|
+
}), Vt = { class: "bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 left-0 w-full z-10 sticky top-0" }, Bt = { class: "px-4 py-4 sm:px-6 lg:px-8" }, St = { class: "container mx-auto flex flex-auto items-center" }, At = { class: "lg:hidden h-[30px]" }, Tt = { class: "gap-4 hidden lg:flex" }, It = { class: "lg:hidden flex gap-4" }, Dt = { class: "ms-2" }, Mt = /* @__PURE__ */ B({
|
|
447
442
|
__name: "AppHeader",
|
|
448
443
|
props: {
|
|
449
444
|
changeTheme: { type: Function },
|
|
450
445
|
notifications: {}
|
|
451
446
|
},
|
|
452
447
|
emits: ["sidebar", "notif"],
|
|
453
|
-
setup(e, { emit:
|
|
454
|
-
const
|
|
448
|
+
setup(e, { emit: s }) {
|
|
449
|
+
const r = s, c = [
|
|
455
450
|
{ name: "Theme", value: 1 },
|
|
456
451
|
{ name: "Notification", value: 2 },
|
|
457
452
|
{ name: "Logout", value: 3 }
|
|
458
|
-
], t = T(() => !!e.notifications.find((
|
|
453
|
+
], t = T(() => !!e.notifications.find((o) => o.isNew)), d = (o) => r("sidebar", o), a = (o) => r("notif", o), f = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), u = () => {
|
|
459
454
|
e.changeTheme && e.changeTheme();
|
|
460
|
-
},
|
|
461
|
-
|
|
455
|
+
}, n = ({ value: o }, g) => {
|
|
456
|
+
o == 1 && u(), o == 2 && a(g), o == 3 && f();
|
|
462
457
|
};
|
|
463
|
-
return (
|
|
464
|
-
const
|
|
465
|
-
return
|
|
458
|
+
return (o, g) => {
|
|
459
|
+
const b = gt, y = ge("router-link"), p = ft, x = dt, w = we, S = ot, M = $e;
|
|
460
|
+
return i(), m("header", Vt, [
|
|
466
461
|
l("div", Bt, [
|
|
467
462
|
l("div", St, [
|
|
468
|
-
|
|
463
|
+
v(O, {
|
|
469
464
|
type: "icon",
|
|
470
|
-
|
|
471
|
-
onClick: r
|
|
465
|
+
onClick: d
|
|
472
466
|
}, {
|
|
473
467
|
default: h(() => [
|
|
474
|
-
|
|
468
|
+
v(b, { class: "size-5" })
|
|
475
469
|
]),
|
|
476
470
|
_: 1
|
|
477
471
|
}),
|
|
478
|
-
|
|
472
|
+
g[1] || (g[1] = l("div", { class: "lg:hidden flex-auto" }, null, -1)),
|
|
479
473
|
l("div", At, [
|
|
480
|
-
|
|
474
|
+
v(y, { to: "/" }, {
|
|
481
475
|
default: h(() => [
|
|
482
|
-
|
|
476
|
+
v(re, { class: "h-[30px] text-primary" })
|
|
483
477
|
]),
|
|
484
478
|
_: 1
|
|
485
479
|
})
|
|
486
480
|
]),
|
|
487
|
-
|
|
481
|
+
g[2] || (g[2] = l("div", { class: "flex-auto" }, null, -1)),
|
|
488
482
|
l("div", Tt, [
|
|
489
|
-
|
|
483
|
+
v(O, {
|
|
490
484
|
type: "icon",
|
|
491
|
-
|
|
492
|
-
onClick: c
|
|
485
|
+
onClick: u
|
|
493
486
|
}, {
|
|
494
487
|
default: h(() => [
|
|
495
|
-
|
|
496
|
-
|
|
488
|
+
v(p, { class: "dark:hidden" }),
|
|
489
|
+
v(x, { class: "hidden dark:flex" })
|
|
497
490
|
]),
|
|
498
491
|
_: 1
|
|
499
492
|
}),
|
|
500
|
-
|
|
493
|
+
v(O, {
|
|
501
494
|
type: "icon",
|
|
502
|
-
color: "gray",
|
|
503
495
|
onClick: a
|
|
504
496
|
}, {
|
|
505
497
|
default: h(() => [
|
|
506
498
|
l("span", {
|
|
507
499
|
class: z([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
508
|
-
}, [...
|
|
500
|
+
}, [...g[0] || (g[0] = [
|
|
509
501
|
l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
510
502
|
])], 2),
|
|
511
|
-
|
|
503
|
+
v(w, { class: "size-5" })
|
|
512
504
|
]),
|
|
513
505
|
_: 1
|
|
514
506
|
}),
|
|
515
|
-
|
|
507
|
+
v(O, {
|
|
516
508
|
type: "icon",
|
|
517
|
-
|
|
518
|
-
onClick: O(f, ["prevent"])
|
|
509
|
+
onClick: j(f, ["prevent"])
|
|
519
510
|
}, {
|
|
520
511
|
default: h(() => [
|
|
521
|
-
|
|
512
|
+
v(S, { class: "size-5" })
|
|
522
513
|
]),
|
|
523
514
|
_: 1
|
|
524
515
|
})
|
|
525
516
|
]),
|
|
526
|
-
l("div",
|
|
527
|
-
|
|
517
|
+
l("div", It, [
|
|
518
|
+
v(le, {
|
|
528
519
|
left: "unset",
|
|
529
520
|
right: "0",
|
|
530
521
|
top: "0"
|
|
531
522
|
}, {
|
|
532
523
|
activator: h(({ on: W }) => [
|
|
533
|
-
|
|
524
|
+
v(O, {
|
|
534
525
|
type: "icon",
|
|
535
|
-
color: "gray",
|
|
536
526
|
class: "flex",
|
|
537
527
|
onClick: W.click
|
|
538
528
|
}, {
|
|
539
529
|
default: h(() => [
|
|
540
|
-
|
|
530
|
+
v(M)
|
|
541
531
|
]),
|
|
542
532
|
_: 1
|
|
543
533
|
}, 8, ["onClick"])
|
|
544
534
|
]),
|
|
545
535
|
default: h(() => [
|
|
546
|
-
|
|
547
|
-
items:
|
|
548
|
-
onClick:
|
|
536
|
+
v(se, {
|
|
537
|
+
items: c,
|
|
538
|
+
onClick: n
|
|
549
539
|
}, {
|
|
550
540
|
default: h(({ item: W }) => [
|
|
551
|
-
l("span",
|
|
541
|
+
l("span", Dt, $(W.name), 1)
|
|
552
542
|
]),
|
|
553
543
|
_: 1
|
|
554
544
|
})
|
|
@@ -573,42 +563,41 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
573
563
|
text: {}
|
|
574
564
|
},
|
|
575
565
|
emits: ["remove", "read"],
|
|
576
|
-
setup(e, { emit:
|
|
577
|
-
const
|
|
578
|
-
return (
|
|
579
|
-
const
|
|
580
|
-
return
|
|
566
|
+
setup(e, { emit: s }) {
|
|
567
|
+
const r = e, c = s, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], d = (u) => t[u], a = (u) => c("remove", u), f = (u) => c("read", u);
|
|
568
|
+
return (u, n) => {
|
|
569
|
+
const o = we, g = G;
|
|
570
|
+
return i(), m("div", jt, [
|
|
581
571
|
l("div", {
|
|
582
|
-
class: z(["absolute left-0 top-0 w-[3px] h-full", r
|
|
572
|
+
class: z(["absolute left-0 top-0 w-[3px] h-full", d(r.color)])
|
|
583
573
|
}, null, 2),
|
|
584
|
-
|
|
574
|
+
v(O, {
|
|
585
575
|
class: "shrink-0",
|
|
586
576
|
type: "icon",
|
|
587
|
-
color: "gray",
|
|
588
577
|
onClick: f
|
|
589
578
|
}, {
|
|
590
579
|
default: h(() => [
|
|
591
580
|
l("span", {
|
|
592
|
-
class: z([
|
|
593
|
-
}, [...
|
|
581
|
+
class: z([r.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
582
|
+
}, [...n[0] || (n[0] = [
|
|
594
583
|
l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
595
584
|
])], 2),
|
|
596
|
-
|
|
585
|
+
v(o, { class: "size-5" })
|
|
597
586
|
]),
|
|
598
587
|
_: 1
|
|
599
588
|
}),
|
|
600
589
|
l("div", Lt, [
|
|
601
|
-
l("div", null,
|
|
602
|
-
l("div", Ot,
|
|
590
|
+
l("div", null, $(r.text), 1),
|
|
591
|
+
l("div", Ot, $(A(Pe)(r.date)) + " (" + $(A(He)(r.date)) + ")", 1)
|
|
603
592
|
]),
|
|
604
|
-
|
|
593
|
+
v(O, {
|
|
605
594
|
class: "shrink-0",
|
|
606
595
|
type: "icon",
|
|
607
596
|
size: "sm",
|
|
608
597
|
onClick: a
|
|
609
598
|
}, {
|
|
610
599
|
default: h(() => [
|
|
611
|
-
g
|
|
600
|
+
v(g, { class: "size-4" })
|
|
612
601
|
]),
|
|
613
602
|
_: 1
|
|
614
603
|
})
|
|
@@ -625,21 +614,21 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
625
614
|
notifications: {}
|
|
626
615
|
},
|
|
627
616
|
emits: ["close", "remove", "read"],
|
|
628
|
-
setup(e, { emit:
|
|
629
|
-
const
|
|
630
|
-
return (
|
|
631
|
-
|
|
617
|
+
setup(e, { emit: s }) {
|
|
618
|
+
const r = e, c = s, t = T(() => !!r.notifications.find((n) => n.isNew)), d = T(() => !!r.notifications.length), a = (n) => c("close", n), f = (n) => c("remove", n), u = (n) => c("read", n);
|
|
619
|
+
return (n, o) => (i(), m(N, null, [
|
|
620
|
+
r.value ? (i(), m("div", {
|
|
632
621
|
key: 0,
|
|
633
622
|
class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
|
|
634
623
|
onClick: a
|
|
635
624
|
})) : V("", !0),
|
|
636
625
|
l("aside", {
|
|
637
|
-
class: z([
|
|
626
|
+
class: z([r.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] md:w-80 border-l border-gray-200 flex-col overflow-y-auto transition-all duration-350 dark:border-gray-800 bg-white dark:bg-gray-900"])
|
|
638
627
|
}, [
|
|
639
628
|
l("div", Nt, [
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
629
|
+
_(n.$slots, "header", { isNew: t.value }),
|
|
630
|
+
d.value ? (i(), m("div", Pt, [
|
|
631
|
+
v(he, {
|
|
643
632
|
"enter-active-class": "transition-all duration-300 ",
|
|
644
633
|
"enter-from-class": "opacity-0 translate-x-1/2",
|
|
645
634
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -648,49 +637,49 @@ const G = U({ name: "ri-close-line", render: _t }), $t = { class: "flex items-ce
|
|
|
648
637
|
"leave-to-class": "opacity-0 translate-x-1/2"
|
|
649
638
|
}, {
|
|
650
639
|
default: h(() => [
|
|
651
|
-
(
|
|
652
|
-
key:
|
|
640
|
+
(i(!0), m(N, null, U(r.notifications, (g) => (i(), m("div", {
|
|
641
|
+
key: g.date,
|
|
653
642
|
class: "relative"
|
|
654
643
|
}, [
|
|
655
|
-
|
|
656
|
-
|
|
644
|
+
_(n.$slots, "card", { item: g }, () => [
|
|
645
|
+
v(Et, L({ ref_for: !0 }, g, {
|
|
657
646
|
class: "bg-gray-200/50 dark:bg-gray-800/50 rounded-md",
|
|
658
|
-
onRemove: (
|
|
659
|
-
onRead: (
|
|
647
|
+
onRemove: (b) => f(g),
|
|
648
|
+
onRead: (b) => u(g)
|
|
660
649
|
}), null, 16, ["onRemove", "onRead"])
|
|
661
650
|
])
|
|
662
651
|
]))), 128))
|
|
663
652
|
]),
|
|
664
653
|
_: 3
|
|
665
654
|
})
|
|
666
|
-
])) :
|
|
655
|
+
])) : _(n.$slots, "empty", { key: 1 })
|
|
667
656
|
])
|
|
668
657
|
], 2)
|
|
669
658
|
], 64));
|
|
670
659
|
}
|
|
671
|
-
}), Ft = {},
|
|
672
|
-
function Wt(e,
|
|
673
|
-
return
|
|
674
|
-
|
|
675
|
-
l("div",
|
|
676
|
-
|
|
660
|
+
}), Ft = {}, Ut = { class: "fixed h-full w-full top-0 left-0 z-20" }, Rt = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
|
|
661
|
+
function Wt(e, s) {
|
|
662
|
+
return i(), m("div", Ut, [
|
|
663
|
+
s[0] || (s[0] = l("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
|
|
664
|
+
l("div", Rt, [
|
|
665
|
+
_(e.$slots, "default")
|
|
677
666
|
])
|
|
678
667
|
]);
|
|
679
668
|
}
|
|
680
|
-
const qt = /* @__PURE__ */
|
|
669
|
+
const qt = /* @__PURE__ */ te(Ft, [["render", Wt]]), Kt = {
|
|
681
670
|
viewBox: "0 0 24 24",
|
|
682
671
|
width: "1.2em",
|
|
683
672
|
height: "1.2em"
|
|
684
673
|
};
|
|
685
|
-
function Gt(e,
|
|
686
|
-
return
|
|
674
|
+
function Gt(e, s) {
|
|
675
|
+
return i(), m("svg", Kt, [...s[0] || (s[0] = [
|
|
687
676
|
l("path", {
|
|
688
677
|
fill: "currentColor",
|
|
689
678
|
d: "m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"
|
|
690
679
|
}, null, -1)
|
|
691
680
|
])]);
|
|
692
681
|
}
|
|
693
|
-
const Jt =
|
|
682
|
+
const Jt = R({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4 flex flex-col gap-2" }, Xt = { class: "size-6 flex-[0_0_24px] opacity-60" }, Yt = ["onClick"], Zt = { class: "flex flex-col gap-2" }, el = { class: "flex gap-2 ms-8" }, tl = { class: "size-5 flex-[0_0_24px]" }, ll = { class: "flex-1 first-letter:uppercase text-sm" }, sl = /* @__PURE__ */ B({
|
|
694
683
|
__name: "AppNav",
|
|
695
684
|
props: {
|
|
696
685
|
menu: { default: () => [] },
|
|
@@ -698,62 +687,62 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
|
|
|
698
687
|
isSidebar: { type: Boolean, default: !1 }
|
|
699
688
|
},
|
|
700
689
|
emits: ["sidebar"],
|
|
701
|
-
setup(e, { emit:
|
|
702
|
-
const
|
|
703
|
-
e.isSidebar &&
|
|
704
|
-
},
|
|
705
|
-
return
|
|
690
|
+
setup(e, { emit: s }) {
|
|
691
|
+
const r = s, c = P(""), t = ({ name: a }) => {
|
|
692
|
+
e.isSidebar && r("sidebar", !e.isSidebar), c.value !== a && (c.value = c.value === a ? "" : a);
|
|
693
|
+
}, d = (a) => e.fullPath === a;
|
|
694
|
+
return ee(
|
|
706
695
|
() => e.menu,
|
|
707
696
|
() => {
|
|
708
697
|
var a;
|
|
709
|
-
return
|
|
698
|
+
return c.value = ((a = Fe(e.menu, e.fullPath)) == null ? void 0 : a.name) || "";
|
|
710
699
|
}
|
|
711
700
|
), (a, f) => {
|
|
712
|
-
const
|
|
713
|
-
return
|
|
701
|
+
const u = Jt;
|
|
702
|
+
return i(), m("nav", null, [
|
|
714
703
|
l("ul", Qt, [
|
|
715
|
-
(
|
|
716
|
-
key:
|
|
704
|
+
(i(!0), m(N, null, U(e.menu, (n) => (i(), m("li", {
|
|
705
|
+
key: n.name
|
|
717
706
|
}, [
|
|
718
|
-
(
|
|
719
|
-
to:
|
|
720
|
-
class: z(["flex gap-2 items-center px-3 py-2 rounded
|
|
721
|
-
onClick:
|
|
707
|
+
(i(), I(Y(n.path ? "router-link" : "span"), {
|
|
708
|
+
to: n.path,
|
|
709
|
+
class: z(["flex gap-2 items-center px-3 py-2 rounded", d(n.path) ? "bg-blue-500/10" : "hover:bg-gray-500/10"]),
|
|
710
|
+
onClick: j((o) => t(n), ["prevent", "stop"])
|
|
722
711
|
}, {
|
|
723
712
|
default: h(() => [
|
|
724
713
|
l("div", Xt, [
|
|
725
|
-
|
|
714
|
+
_(a.$slots, "icon", { item: n })
|
|
726
715
|
]),
|
|
727
716
|
l("span", {
|
|
728
717
|
class: z(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
|
|
729
|
-
},
|
|
718
|
+
}, $(n.name), 3),
|
|
730
719
|
l("button", {
|
|
731
720
|
class: z(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
|
|
732
|
-
onClick:
|
|
721
|
+
onClick: j((o) => t(n), ["prevent", "stop"])
|
|
733
722
|
}, [
|
|
734
|
-
|
|
723
|
+
n.children ? (i(), I(u, { key: 0 })) : V("", !0)
|
|
735
724
|
], 10, Yt)
|
|
736
725
|
]),
|
|
737
726
|
_: 2
|
|
738
727
|
}, 1032, ["to", "class", "onClick"])),
|
|
739
|
-
|
|
728
|
+
n.children ? (i(), m("div", {
|
|
740
729
|
key: 0,
|
|
741
|
-
class: z(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "",
|
|
730
|
+
class: z(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", c.value === n.name ? "block" : "hidden"]])
|
|
742
731
|
}, [
|
|
743
732
|
l("ul", Zt, [
|
|
744
|
-
(
|
|
745
|
-
(
|
|
746
|
-
to:
|
|
747
|
-
class: z(["flex gap-2 items-center px-3 py-2 rounded
|
|
733
|
+
(i(!0), m(N, null, U(n.children, ({ name: o, path: g, icon: b }) => (i(), m("li", { key: o }, [
|
|
734
|
+
(i(), I(Y(g ? "router-link" : "span"), {
|
|
735
|
+
to: g,
|
|
736
|
+
class: z(["flex gap-2 items-center px-3 py-2 rounded", d(g) ? "bg-blue-500/10" : "hover:bg-gray-500/10"])
|
|
748
737
|
}, {
|
|
749
738
|
default: h(() => [
|
|
750
739
|
l("div", el, [
|
|
751
740
|
l("div", tl, [
|
|
752
|
-
|
|
753
|
-
item: { name:
|
|
741
|
+
_(a.$slots, "icon-children", {
|
|
742
|
+
item: { name: o, path: g, icon: b }
|
|
754
743
|
})
|
|
755
744
|
]),
|
|
756
|
-
l("span", ll,
|
|
745
|
+
l("span", ll, $(o), 1)
|
|
757
746
|
])
|
|
758
747
|
]),
|
|
759
748
|
_: 2
|
|
@@ -768,14 +757,14 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
|
|
|
768
757
|
}
|
|
769
758
|
}), ol = {
|
|
770
759
|
key: 0,
|
|
771
|
-
class: "w-full min-w-[260px] max-w-xs p-4 bg-white rounded
|
|
760
|
+
class: "w-full min-w-[260px] max-w-xs p-4 bg-white rounded shadow-lg dark:bg-gray-800",
|
|
772
761
|
role: "alert"
|
|
773
|
-
},
|
|
762
|
+
}, nl = { class: "flex items-center gap-4 text-sm" }, al = {
|
|
774
763
|
key: 0,
|
|
775
764
|
class: "text-green-600"
|
|
776
765
|
}, il = {
|
|
777
766
|
key: 1,
|
|
778
|
-
class: "relative block h-4 w-full rounded
|
|
767
|
+
class: "relative block h-4 w-full rounded overflow-hidden bg-gray-200 dark:bg-gray-900/50 select-none mt-2"
|
|
779
768
|
}, rl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, dl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, cl = /* @__PURE__ */ B({
|
|
780
769
|
__name: "AppProgress",
|
|
781
770
|
props: {
|
|
@@ -787,17 +776,17 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
|
|
|
787
776
|
length: { default: 0 }
|
|
788
777
|
},
|
|
789
778
|
setup(e) {
|
|
790
|
-
const
|
|
791
|
-
|
|
779
|
+
const s = P(!1), r = T(() => !!e.length), c = T(() => !!(r.value && t.value === 100 && !e.status)), t = T(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), d = ie(() => {
|
|
780
|
+
s.value = !1;
|
|
792
781
|
}, e.timeout);
|
|
793
|
-
return
|
|
782
|
+
return ee(
|
|
794
783
|
() => [e.size, e.status],
|
|
795
784
|
() => {
|
|
796
|
-
|
|
785
|
+
s.value = !0, d();
|
|
797
786
|
}
|
|
798
787
|
), (a, f) => {
|
|
799
|
-
const
|
|
800
|
-
return
|
|
788
|
+
const u = G;
|
|
789
|
+
return i(), I(Z, {
|
|
801
790
|
"enter-active-class": "duration-300 ease-out",
|
|
802
791
|
"enter-from-class": "transform opacity-0 translate-x-full",
|
|
803
792
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -806,31 +795,31 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
|
|
|
806
795
|
"leave-to-class": "transform opacity-0 -translate-y-8"
|
|
807
796
|
}, {
|
|
808
797
|
default: h(() => [
|
|
809
|
-
|
|
810
|
-
l("div",
|
|
811
|
-
|
|
798
|
+
s.value ? (i(), m("div", ol, [
|
|
799
|
+
l("div", nl, [
|
|
800
|
+
_(a.$slots, "default", { isDone: c.value }, () => [
|
|
812
801
|
f[1] || (f[1] = l("div", { class: "flex-auto" }, "Progress...", -1)),
|
|
813
|
-
|
|
802
|
+
c.value ? (i(), m("span", al, "Done")) : V("", !0)
|
|
814
803
|
]),
|
|
815
804
|
l("button", {
|
|
816
805
|
class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
|
|
817
|
-
onClick: f[0] || (f[0] = (
|
|
806
|
+
onClick: f[0] || (f[0] = (n) => s.value = !1)
|
|
818
807
|
}, [
|
|
819
|
-
|
|
808
|
+
v(u, { class: "size-4" })
|
|
820
809
|
])
|
|
821
810
|
]),
|
|
822
|
-
|
|
811
|
+
r.value ? (i(), m("div", {
|
|
823
812
|
key: 0,
|
|
824
813
|
class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
|
|
825
814
|
style: K(`width: ${t.value}%`)
|
|
826
815
|
}, null, 4)) : V("", !0),
|
|
827
|
-
|
|
828
|
-
l("div", rl,
|
|
816
|
+
r.value ? (i(), m("div", il, [
|
|
817
|
+
l("div", rl, $(t.value) + "%", 1),
|
|
829
818
|
l("div", {
|
|
830
|
-
class: "bg-blue-600 rounded
|
|
819
|
+
class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
|
|
831
820
|
style: K(`width: ${t.value}%`)
|
|
832
821
|
}, [
|
|
833
|
-
l("div", dl,
|
|
822
|
+
l("div", dl, $(t.value) + "%", 1)
|
|
834
823
|
], 4)
|
|
835
824
|
])) : V("", !0)
|
|
836
825
|
])) : V("", !0)
|
|
@@ -841,13 +830,13 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
|
|
|
841
830
|
}
|
|
842
831
|
}), ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
843
832
|
__proto__: null,
|
|
844
|
-
AppAside:
|
|
833
|
+
AppAside: Ze,
|
|
845
834
|
AppHeader: Mt,
|
|
846
835
|
AppNav: sl,
|
|
847
836
|
AppNotification: Ht,
|
|
848
837
|
AppOverlay: qt,
|
|
849
838
|
AppProgress: cl
|
|
850
|
-
}, Symbol.toStringTag, { value: "Module" })), fl = { class: "my-4 text-gray-700 dark:text-gray-400" }, ml = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, vl = { class: "flex gap-2" }, gl = { class: "text-gray-700 dark:text-gray-400" }, pl = { class: "flex gap-2" }, hl = { class: "flex gap-2" }, bl = { class: "text-gray-700 dark:text-gray-400" }, yl = { class: "flex gap-2" }, xl = { class: "text-gray-700 dark:text-gray-400" },
|
|
839
|
+
}, Symbol.toStringTag, { value: "Module" })), fl = { class: "my-4 text-gray-700 dark:text-gray-400" }, ml = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, vl = { class: "flex gap-2" }, gl = { class: "text-gray-700 dark:text-gray-400" }, pl = { class: "flex gap-2" }, hl = { class: "flex gap-2" }, bl = { class: "text-gray-700 dark:text-gray-400" }, yl = { class: "flex gap-2" }, xl = { class: "text-gray-700 dark:text-gray-400" }, _l = { class: "flex flex-col gap-4 text-sm" }, kl = { class: "flex gap-4" }, Jo = /* @__PURE__ */ B({
|
|
851
840
|
__name: "BlockInfo",
|
|
852
841
|
props: {
|
|
853
842
|
empty: {},
|
|
@@ -862,36 +851,36 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
|
|
|
862
851
|
name: {}
|
|
863
852
|
},
|
|
864
853
|
setup(e) {
|
|
865
|
-
const
|
|
866
|
-
var t,
|
|
867
|
-
const
|
|
868
|
-
return (t = e.pkg) != null && t.homepage &&
|
|
854
|
+
const s = T(() => e.firmware.join(".")), r = T(() => {
|
|
855
|
+
var t, d, a, f, u, n, o;
|
|
856
|
+
const c = [];
|
|
857
|
+
return (t = e.pkg) != null && t.homepage && c.push({ name: "homepage", href: e.pkg.homepage }), (a = (d = e.pkg) == null ? void 0 : d.repository) != null && a.url && c.push({ name: "repository", href: e.pkg.repository.url }), (u = (f = e.pkg) == null ? void 0 : f.bugs) != null && u.url && c.push({ name: "bugs", href: e.pkg.bugs.url }), (n = e.pkg) != null && n.author && c.push({ name: "author", href: `mailto:${(o = e.pkg) == null ? void 0 : o.author}` }), c;
|
|
869
858
|
});
|
|
870
|
-
return (
|
|
871
|
-
var
|
|
872
|
-
return
|
|
873
|
-
l("p", fl,
|
|
859
|
+
return (c, t) => {
|
|
860
|
+
var d, a;
|
|
861
|
+
return i(), m("div", null, [
|
|
862
|
+
l("p", fl, $((d = e.pkg) == null ? void 0 : d.description), 1),
|
|
874
863
|
l("div", ml, [
|
|
875
864
|
l("div", vl, [
|
|
876
|
-
t[0] || (t[0] =
|
|
877
|
-
l("span", gl,
|
|
865
|
+
t[0] || (t[0] = E(" Firmware (hw): ", -1)),
|
|
866
|
+
l("span", gl, $(s.value), 1)
|
|
878
867
|
]),
|
|
879
868
|
l("div", pl, [
|
|
880
869
|
l("div", hl, [
|
|
881
|
-
t[1] || (t[1] =
|
|
882
|
-
l("span", bl,
|
|
870
|
+
t[1] || (t[1] = E(" Version (web): ", -1)),
|
|
871
|
+
l("span", bl, $((a = e.pkg) == null ? void 0 : a.version), 1)
|
|
883
872
|
])
|
|
884
873
|
]),
|
|
885
874
|
t[3] || (t[3] = l("div", { class: "flex-auto" }, null, -1)),
|
|
886
875
|
l("div", yl, [
|
|
887
|
-
t[2] || (t[2] =
|
|
888
|
-
l("span", xl,
|
|
876
|
+
t[2] || (t[2] = E(" ID: ", -1)),
|
|
877
|
+
l("span", xl, $(e.id.toString(16)), 1)
|
|
889
878
|
])
|
|
890
879
|
]),
|
|
891
880
|
t[4] || (t[4] = l("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
|
|
892
|
-
l("div",
|
|
893
|
-
l("div",
|
|
894
|
-
|
|
881
|
+
l("div", _l, [
|
|
882
|
+
l("div", kl, [
|
|
883
|
+
_(c.$slots, "links", { links: r.value })
|
|
895
884
|
])
|
|
896
885
|
])
|
|
897
886
|
]);
|
|
@@ -902,42 +891,42 @@ const Jt = U({ name: "ri-arrow-right-s-line", render: Gt }), Qt = { class: "mb-4
|
|
|
902
891
|
width: "1.2em",
|
|
903
892
|
height: "1.2em"
|
|
904
893
|
};
|
|
905
|
-
function wl(e,
|
|
906
|
-
return
|
|
894
|
+
function wl(e, s) {
|
|
895
|
+
return i(), m("svg", $l, [...s[0] || (s[0] = [
|
|
907
896
|
l("path", {
|
|
908
897
|
fill: "currentColor",
|
|
909
898
|
d: "M12.172 12L9.343 9.173l1.415-1.414L15 12l-4.242 4.242l-1.415-1.414z"
|
|
910
899
|
}, null, -1)
|
|
911
900
|
])]);
|
|
912
901
|
}
|
|
913
|
-
const
|
|
902
|
+
const ce = R({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "flex items-center gap-1.5" }, Qo = /* @__PURE__ */ B({
|
|
914
903
|
__name: "BlockBreadcrumb",
|
|
915
904
|
props: {
|
|
916
905
|
items: { default: () => [] }
|
|
917
906
|
},
|
|
918
907
|
emits: ["click"],
|
|
919
|
-
setup(e, { emit:
|
|
920
|
-
const
|
|
921
|
-
return (t,
|
|
922
|
-
const a =
|
|
923
|
-
return
|
|
908
|
+
setup(e, { emit: s }) {
|
|
909
|
+
const r = s, c = (t) => r("click", t);
|
|
910
|
+
return (t, d) => {
|
|
911
|
+
const a = ce;
|
|
912
|
+
return i(), m("nav", null, [
|
|
924
913
|
l("ol", Cl, [
|
|
925
|
-
(
|
|
926
|
-
key:
|
|
914
|
+
(i(!0), m(N, null, U(e.items, (f, u) => (i(), m("li", {
|
|
915
|
+
key: u,
|
|
927
916
|
class: z(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", f.path ? "" : "text-gray-800 dark:text-white/90"])
|
|
928
917
|
}, [
|
|
929
|
-
|
|
930
|
-
(
|
|
918
|
+
_(t.$slots, "default", { item: f }, () => [
|
|
919
|
+
(i(), I(Y(f.path ? "a" : "span"), {
|
|
931
920
|
href: f.path,
|
|
932
|
-
onClick: (
|
|
921
|
+
onClick: (n) => c(f)
|
|
933
922
|
}, {
|
|
934
923
|
default: h(() => [
|
|
935
|
-
|
|
924
|
+
E($(f.name), 1)
|
|
936
925
|
]),
|
|
937
926
|
_: 2
|
|
938
927
|
}, 1032, ["href", "onClick"]))
|
|
939
928
|
]),
|
|
940
|
-
f.path ? (
|
|
929
|
+
f.path ? (i(), I(a, {
|
|
941
930
|
key: 0,
|
|
942
931
|
class: "rotate-270"
|
|
943
932
|
})) : V("", !0)
|
|
@@ -962,29 +951,29 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
|
|
|
962
951
|
loading: { type: Boolean }
|
|
963
952
|
},
|
|
964
953
|
setup(e) {
|
|
965
|
-
return (
|
|
954
|
+
return (s, r) => (i(), m("div", {
|
|
966
955
|
class: z(["relative rounded-md border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] sm:p-6", { "overflow-hidden": e.loading }])
|
|
967
956
|
}, [
|
|
968
|
-
e.loading ? (
|
|
969
|
-
e.loading ? (
|
|
970
|
-
e.title ? (
|
|
971
|
-
l("h3", Sl,
|
|
957
|
+
e.loading ? (i(), m("div", zl)) : V("", !0),
|
|
958
|
+
e.loading ? (i(), m("div", Vl)) : V("", !0),
|
|
959
|
+
e.title ? (i(), m("div", Bl, [
|
|
960
|
+
l("h3", Sl, $(e.title), 1),
|
|
972
961
|
l("div", null, [
|
|
973
|
-
|
|
962
|
+
_(s.$slots, "header")
|
|
974
963
|
])
|
|
975
964
|
])) : V("", !0),
|
|
976
965
|
l("div", Al, [
|
|
977
|
-
|
|
966
|
+
_(s.$slots, "default")
|
|
978
967
|
])
|
|
979
968
|
], 2));
|
|
980
969
|
}
|
|
981
|
-
}),
|
|
970
|
+
}), Il = {
|
|
982
971
|
key: 0,
|
|
983
972
|
class: "text-title-md uppercase font-bold flex-auto"
|
|
984
|
-
},
|
|
973
|
+
}, Dl = { class: "px-4 pb-4 md:px-6" }, Ml = {
|
|
985
974
|
key: 0,
|
|
986
975
|
class: "text-title-md uppercase font-bold"
|
|
987
|
-
},
|
|
976
|
+
}, ue = /* @__PURE__ */ B({
|
|
988
977
|
__name: "VDialog",
|
|
989
978
|
props: {
|
|
990
979
|
title: {},
|
|
@@ -997,27 +986,27 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
|
|
|
997
986
|
timeout: {}
|
|
998
987
|
},
|
|
999
988
|
emits: ["close", "click", "open"],
|
|
1000
|
-
setup(e, { expose:
|
|
1001
|
-
const
|
|
989
|
+
setup(e, { expose: s, emit: r }) {
|
|
990
|
+
const c = r, t = xe(_e), { show: d, onClose: a, onOpen: f } = ye(c, e.timeout), u = {
|
|
1002
991
|
sm: "max-w-full md:max-w-[330px] h-full md:h-[unset]",
|
|
1003
992
|
md: "max-w-full md:max-w-[672px] h-full md:h-[unset]",
|
|
1004
993
|
lg: "max-w-full md:max-w-[960px] h-full md:h-[unset]",
|
|
1005
994
|
full: "relative max-w-full w-full h-3/4 "
|
|
1006
|
-
},
|
|
995
|
+
}, n = {
|
|
1007
996
|
none: "",
|
|
1008
997
|
white: "bg-white dark:bg-gray-900",
|
|
1009
998
|
gray: ""
|
|
1010
|
-
},
|
|
1011
|
-
return
|
|
1012
|
-
show:
|
|
999
|
+
}, o = T(() => [u[e.size], n[e.color]]), g = t.greaterOrEqual("lg");
|
|
1000
|
+
return s({
|
|
1001
|
+
show: d,
|
|
1013
1002
|
onClose: a
|
|
1014
|
-
}), (
|
|
1015
|
-
const
|
|
1016
|
-
return e.isOnlyDialog || A(
|
|
1003
|
+
}), (b, y) => {
|
|
1004
|
+
const p = G;
|
|
1005
|
+
return e.isOnlyDialog || A(g) ? (i(), I(pe, {
|
|
1017
1006
|
key: 0,
|
|
1018
1007
|
to: "body"
|
|
1019
1008
|
}, [
|
|
1020
|
-
|
|
1009
|
+
v(Z, {
|
|
1021
1010
|
"enter-active-class": "duration-300 ease-out",
|
|
1022
1011
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
1023
1012
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -1027,49 +1016,49 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
|
|
|
1027
1016
|
onAfterEnter: A(f)
|
|
1028
1017
|
}, {
|
|
1029
1018
|
default: h(() => [
|
|
1030
|
-
A(
|
|
1019
|
+
A(d) ? (i(), m("div", {
|
|
1031
1020
|
key: 0,
|
|
1032
1021
|
class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
|
|
1033
|
-
onWheel:
|
|
1022
|
+
onWheel: y[4] || (y[4] = j(() => {
|
|
1034
1023
|
}, ["stop"]))
|
|
1035
1024
|
}, [
|
|
1036
1025
|
l("div", {
|
|
1037
1026
|
class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
|
|
1038
|
-
onClick:
|
|
1039
|
-
(...
|
|
1027
|
+
onClick: y[0] || (y[0] = //@ts-ignore
|
|
1028
|
+
(...x) => A(a) && A(a)(...x))
|
|
1040
1029
|
}),
|
|
1041
1030
|
l("div", {
|
|
1042
1031
|
class: z(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
|
|
1043
1032
|
}, [
|
|
1044
1033
|
l("div", {
|
|
1045
|
-
class: z(["m-auto w-full flex flex-col z-20 overflow-auto h-full scrollbar overscroll-contain bg-gray-50 dark:bg-gray-900 shadow-lg rounded-sm",
|
|
1034
|
+
class: z(["m-auto w-full flex flex-col z-20 overflow-auto h-full scrollbar overscroll-contain bg-gray-50 dark:bg-gray-900 shadow-lg rounded-sm", o.value])
|
|
1046
1035
|
}, [
|
|
1047
1036
|
l("div", {
|
|
1048
1037
|
class: z(["flex items-center min-h-14 ps-6 pe-3", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
1049
|
-
onWheel:
|
|
1038
|
+
onWheel: y[1] || (y[1] = j(() => {
|
|
1050
1039
|
}, ["prevent"])),
|
|
1051
|
-
onTouchmove:
|
|
1040
|
+
onTouchmove: y[2] || (y[2] = j(() => {
|
|
1052
1041
|
}, ["prevent"]))
|
|
1053
1042
|
}, [
|
|
1054
|
-
e.title ? (
|
|
1055
|
-
|
|
1056
|
-
|
|
1043
|
+
e.title ? (i(), m("h4", Il, $(e.title), 1)) : V("", !0),
|
|
1044
|
+
_(b.$slots, "header-btn", { close: A(a) }),
|
|
1045
|
+
v(O, {
|
|
1057
1046
|
color: "transparent",
|
|
1058
1047
|
size: "md",
|
|
1059
1048
|
onClick: A(a)
|
|
1060
1049
|
}, {
|
|
1061
1050
|
default: h(() => [
|
|
1062
|
-
|
|
1051
|
+
v(p)
|
|
1063
1052
|
]),
|
|
1064
1053
|
_: 1
|
|
1065
1054
|
}, 8, ["onClick"])
|
|
1066
1055
|
], 34),
|
|
1067
1056
|
l("div", {
|
|
1068
1057
|
class: z(["relative overflow-auto h-full md:h-auto max-h-dvh scrollbar overflow-y-auto overscroll-contain", e.size === "full" ? "flex-auto" : "md:max-h-147.5 px-6 pb-6"]),
|
|
1069
|
-
onClose:
|
|
1070
|
-
(...
|
|
1058
|
+
onClose: y[3] || (y[3] = //@ts-ignore
|
|
1059
|
+
(...x) => A(a) && A(a)(...x))
|
|
1071
1060
|
}, [
|
|
1072
|
-
|
|
1061
|
+
_(b.$slots, "default", { close: A(a) })
|
|
1073
1062
|
], 34)
|
|
1074
1063
|
], 2)
|
|
1075
1064
|
], 2)
|
|
@@ -1077,26 +1066,26 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
|
|
|
1077
1066
|
]),
|
|
1078
1067
|
_: 3
|
|
1079
1068
|
}, 8, ["onAfterEnter"])
|
|
1080
|
-
])) : (
|
|
1069
|
+
])) : (i(), I(de, {
|
|
1081
1070
|
key: 1,
|
|
1082
1071
|
size: e.popupSize,
|
|
1083
1072
|
onClose: A(a)
|
|
1084
1073
|
}, {
|
|
1085
1074
|
button: h(() => [
|
|
1086
|
-
|
|
1075
|
+
_(b.$slots, "header-btn", { close: A(a) })
|
|
1087
1076
|
]),
|
|
1088
|
-
default: h(({ close:
|
|
1089
|
-
l("div",
|
|
1077
|
+
default: h(({ close: x }) => [
|
|
1078
|
+
l("div", Dl, [
|
|
1090
1079
|
l("div", {
|
|
1091
1080
|
class: z(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
1092
|
-
onWheel:
|
|
1081
|
+
onWheel: y[5] || (y[5] = j(() => {
|
|
1093
1082
|
}, ["prevent"])),
|
|
1094
|
-
onTouchmove:
|
|
1083
|
+
onTouchmove: y[6] || (y[6] = j(() => {
|
|
1095
1084
|
}, ["prevent"]))
|
|
1096
1085
|
}, [
|
|
1097
|
-
e.title ? (
|
|
1086
|
+
e.title ? (i(), m("h4", Ml, $(e.title), 1)) : V("", !0)
|
|
1098
1087
|
], 34),
|
|
1099
|
-
|
|
1088
|
+
_(b.$slots, "default", { close: x })
|
|
1100
1089
|
])
|
|
1101
1090
|
]),
|
|
1102
1091
|
_: 3
|
|
@@ -1123,55 +1112,55 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
|
|
|
1123
1112
|
getTo: {}
|
|
1124
1113
|
},
|
|
1125
1114
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1126
|
-
setup(e, { emit:
|
|
1127
|
-
const
|
|
1128
|
-
t.value = !1,
|
|
1115
|
+
setup(e, { emit: s }) {
|
|
1116
|
+
const r = e, c = s, t = P(!1), d = T(() => ["button", "dimmer"].includes(r.type || "") && r.value ? "text-amber-500" : "text-gray-400"), a = (o) => c("edit", o), f = () => t.value = !0, u = (o) => c("open", o), n = (o) => {
|
|
1117
|
+
t.value = !1, c("close", o);
|
|
1129
1118
|
};
|
|
1130
|
-
return (
|
|
1131
|
-
const
|
|
1132
|
-
return
|
|
1119
|
+
return (o, g) => {
|
|
1120
|
+
const b = $e;
|
|
1121
|
+
return i(), m("div", {
|
|
1133
1122
|
class: "flex flex-col border relative aspect-square rounded-md bg-white dark:bg-gray-900 border-b border-gray-300 dark:border-gray-700 p-2 hover:border-blue-400 dark:hover:border-blue-700 transition-all cursor-pointer",
|
|
1134
1123
|
onClick: f
|
|
1135
1124
|
}, [
|
|
1136
1125
|
l("div", jl, [
|
|
1137
1126
|
l("div", {
|
|
1138
|
-
class: z([
|
|
1127
|
+
class: z([d.value, "size-8"])
|
|
1139
1128
|
}, [
|
|
1140
|
-
|
|
1129
|
+
_(o.$slots, "icon", H(F(r)))
|
|
1141
1130
|
], 2),
|
|
1142
|
-
|
|
1131
|
+
_(o.$slots, "header", H(F(r)))
|
|
1143
1132
|
]),
|
|
1144
1133
|
l("div", null, [
|
|
1145
|
-
|
|
1134
|
+
_(o.$slots, "body", H(F(r)), () => [
|
|
1146
1135
|
l("h6", Ll, [
|
|
1147
|
-
|
|
1148
|
-
|
|
1136
|
+
_(o.$slots, "name", H(F(r)), () => [
|
|
1137
|
+
E($(r.name), 1)
|
|
1149
1138
|
])
|
|
1150
1139
|
]),
|
|
1151
1140
|
l("div", Ol, [
|
|
1152
|
-
|
|
1153
|
-
|
|
1141
|
+
_(o.$slots, "value", H(F(r)), () => [
|
|
1142
|
+
E($(r.valueTo || r.value), 1)
|
|
1154
1143
|
])
|
|
1155
1144
|
])
|
|
1156
1145
|
])
|
|
1157
1146
|
]),
|
|
1158
|
-
|
|
1159
|
-
|
|
1147
|
+
r.icon ? (i(), m("div", El, [
|
|
1148
|
+
_(o.$slots, "icon", H(F(r)))
|
|
1160
1149
|
])) : V("", !0),
|
|
1161
|
-
t.value ? (
|
|
1150
|
+
t.value ? (i(), I(ue, {
|
|
1162
1151
|
key: 1,
|
|
1163
|
-
size:
|
|
1152
|
+
size: r.size || "sm",
|
|
1164
1153
|
title: e.name,
|
|
1165
|
-
onClose:
|
|
1166
|
-
onOpen:
|
|
1154
|
+
onClose: n,
|
|
1155
|
+
onOpen: u
|
|
1167
1156
|
}, {
|
|
1168
1157
|
"header-btn": h(() => [
|
|
1169
|
-
|
|
1158
|
+
v(O, {
|
|
1170
1159
|
color: "transparent",
|
|
1171
1160
|
onClick: a
|
|
1172
1161
|
}, {
|
|
1173
1162
|
default: h(() => [
|
|
1174
|
-
|
|
1163
|
+
v(b)
|
|
1175
1164
|
]),
|
|
1176
1165
|
_: 1
|
|
1177
1166
|
})
|
|
@@ -1180,14 +1169,14 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
|
|
|
1180
1169
|
l("div", Nl, [
|
|
1181
1170
|
l("div", Pl, [
|
|
1182
1171
|
l("h3", Hl, [
|
|
1183
|
-
|
|
1184
|
-
|
|
1172
|
+
_(o.$slots, "dialog-name", H(F(r)), () => [
|
|
1173
|
+
E($(r.name), 1)
|
|
1185
1174
|
])
|
|
1186
1175
|
]),
|
|
1187
|
-
|
|
1176
|
+
_(o.$slots, "dialog", H(F(r))),
|
|
1188
1177
|
l("p", Fl, [
|
|
1189
|
-
|
|
1190
|
-
|
|
1178
|
+
_(o.$slots, "dialog-value", H(F(r)), () => [
|
|
1179
|
+
E($(r.valueTo || r.value), 1)
|
|
1191
1180
|
])
|
|
1192
1181
|
])
|
|
1193
1182
|
])
|
|
@@ -1198,20 +1187,20 @@ const de = U({ name: "ri-arrow-drop-right-line", render: wl }), Cl = { class: "f
|
|
|
1198
1187
|
]);
|
|
1199
1188
|
};
|
|
1200
1189
|
}
|
|
1201
|
-
}),
|
|
1190
|
+
}), Ul = {
|
|
1202
1191
|
viewBox: "0 0 24 24",
|
|
1203
1192
|
width: "1.2em",
|
|
1204
1193
|
height: "1.2em"
|
|
1205
1194
|
};
|
|
1206
|
-
function
|
|
1207
|
-
return
|
|
1195
|
+
function Rl(e, s) {
|
|
1196
|
+
return i(), m("svg", Ul, [...s[0] || (s[0] = [
|
|
1208
1197
|
l("path", {
|
|
1209
1198
|
fill: "currentColor",
|
|
1210
1199
|
d: "m6.265 3.807l1.147 1.639a8 8 0 1 0 9.176 0l1.147-1.639A9.99 9.99 0 0 1 22 12c0 5.523-4.477 10-10 10S2 17.523 2 12a9.99 9.99 0 0 1 4.265-8.193M11 12V2h2v10z"
|
|
1211
1200
|
}, null, -1)
|
|
1212
1201
|
])]);
|
|
1213
1202
|
}
|
|
1214
|
-
const Wl =
|
|
1203
|
+
const Wl = R({ name: "ri-shut-down-line", render: Rl }), ql = { class: "flex justify-end" }, Kl = { class: "flex justify-center py-4" }, Gl = /* @__PURE__ */ B({
|
|
1215
1204
|
__name: "CardButton",
|
|
1216
1205
|
props: {
|
|
1217
1206
|
size: {},
|
|
@@ -1228,43 +1217,43 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
|
|
|
1228
1217
|
getTo: {}
|
|
1229
1218
|
},
|
|
1230
1219
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1231
|
-
setup(e, { emit:
|
|
1232
|
-
const
|
|
1220
|
+
setup(e, { emit: s }) {
|
|
1221
|
+
const r = e, c = s, t = ({ opts: a = {} }) => {
|
|
1233
1222
|
const { disabled: f } = a;
|
|
1234
1223
|
return { disabled: f };
|
|
1235
|
-
},
|
|
1224
|
+
}, d = () => c("setState", !r.value);
|
|
1236
1225
|
return (a, f) => {
|
|
1237
|
-
const
|
|
1238
|
-
return
|
|
1239
|
-
onClick: f[0] || (f[0] = (
|
|
1240
|
-
onEdit: f[1] || (f[1] = (
|
|
1226
|
+
const u = Wl;
|
|
1227
|
+
return i(), I(J, L(r, {
|
|
1228
|
+
onClick: f[0] || (f[0] = (n) => c("click", n)),
|
|
1229
|
+
onEdit: f[1] || (f[1] = (n) => c("edit", n))
|
|
1241
1230
|
}), {
|
|
1242
|
-
icon: h((
|
|
1243
|
-
|
|
1231
|
+
icon: h((n) => [
|
|
1232
|
+
_(a.$slots, "icon", H(F(n)))
|
|
1244
1233
|
]),
|
|
1245
|
-
header: h((
|
|
1234
|
+
header: h((n) => [
|
|
1246
1235
|
l("div", ql, [
|
|
1247
|
-
|
|
1236
|
+
v(O, L(t(n), {
|
|
1248
1237
|
type: "icon",
|
|
1249
|
-
class:
|
|
1250
|
-
onClick:
|
|
1238
|
+
class: r.value ? "text-amber-500" : "text-gray-500",
|
|
1239
|
+
onClick: j(d, ["stop"])
|
|
1251
1240
|
}), {
|
|
1252
1241
|
default: h(() => [
|
|
1253
|
-
|
|
1242
|
+
v(u, { class: "size-8" })
|
|
1254
1243
|
]),
|
|
1255
1244
|
_: 1
|
|
1256
1245
|
}, 16, ["class"])
|
|
1257
1246
|
])
|
|
1258
1247
|
]),
|
|
1259
|
-
dialog: h((
|
|
1248
|
+
dialog: h((n) => [
|
|
1260
1249
|
l("div", Kl, [
|
|
1261
|
-
|
|
1250
|
+
v(O, L(t(n), {
|
|
1262
1251
|
type: "icon",
|
|
1263
|
-
class: ["size-18",
|
|
1264
|
-
onClick:
|
|
1252
|
+
class: ["size-18", r.value ? "text-amber-500" : "text-gray-500"],
|
|
1253
|
+
onClick: j(d, ["stop"])
|
|
1265
1254
|
}), {
|
|
1266
1255
|
default: h(() => [
|
|
1267
|
-
|
|
1256
|
+
v(u, { class: "size-16" })
|
|
1268
1257
|
]),
|
|
1269
1258
|
_: 1
|
|
1270
1259
|
}, 16, ["class"])
|
|
@@ -1274,10 +1263,23 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
|
|
|
1274
1263
|
}, 16);
|
|
1275
1264
|
};
|
|
1276
1265
|
}
|
|
1277
|
-
}), Jl = {
|
|
1266
|
+
}), Jl = {
|
|
1267
|
+
viewBox: "0 0 24 24",
|
|
1268
|
+
width: "1.2em",
|
|
1269
|
+
height: "1.2em"
|
|
1270
|
+
};
|
|
1271
|
+
function Ql(e, s) {
|
|
1272
|
+
return i(), m("svg", Jl, [...s[0] || (s[0] = [
|
|
1273
|
+
l("path", {
|
|
1274
|
+
fill: "currentColor",
|
|
1275
|
+
d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-8h4v2h-6V7h2z"
|
|
1276
|
+
}, null, -1)
|
|
1277
|
+
])]);
|
|
1278
|
+
}
|
|
1279
|
+
const Xl = R({ name: "ri-time-line", render: Ql }), Yl = { class: "w-full relative" }, Zl = ["disabled"], es = {
|
|
1278
1280
|
key: 0,
|
|
1279
1281
|
class: "text-red-400 h-[24px] px-2 text-xs"
|
|
1280
|
-
},
|
|
1282
|
+
}, ts = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 dark:after:bg-gray-800 after:bg-white after:transition-all", q = /* @__PURE__ */ B({
|
|
1281
1283
|
__name: "VTextField",
|
|
1282
1284
|
props: {
|
|
1283
1285
|
modelValue: { default: null },
|
|
@@ -1290,60 +1292,60 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
|
|
|
1290
1292
|
active: { type: Boolean, default: !1 },
|
|
1291
1293
|
hideMessage: { type: Boolean, default: !1 }
|
|
1292
1294
|
},
|
|
1293
|
-
emits: ["update:modelValue", "click", "on-icon", "enter", "blur"],
|
|
1294
|
-
setup(e, { emit:
|
|
1295
|
-
const
|
|
1295
|
+
emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
|
|
1296
|
+
setup(e, { emit: s }) {
|
|
1297
|
+
const r = s, c = {
|
|
1296
1298
|
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent",
|
|
1297
1299
|
textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
|
|
1298
|
-
}, t =
|
|
1300
|
+
}, t = P(!1), d = T(() => [
|
|
1299
1301
|
e.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
1300
1302
|
e.message ? "border-red-500 hover:border-red-400" : "",
|
|
1301
1303
|
e.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"
|
|
1302
|
-
]), a = T(() =>
|
|
1303
|
-
t.value = !1,
|
|
1304
|
-
},
|
|
1305
|
-
t.value = !0,
|
|
1306
|
-
},
|
|
1307
|
-
e.disabled ||
|
|
1304
|
+
]), a = T(() => c[e.component]), f = (w) => w || w === 0, u = T(() => [ts, t.value || f(e.modelValue) || e.active ? "top-0 left-3 text-xs" : "top-1/2"]), n = T(() => e.component === "input"), o = (w) => {
|
|
1305
|
+
t.value = !1, r("blur", w);
|
|
1306
|
+
}, g = (w) => {
|
|
1307
|
+
t.value = !0, r("focus", w);
|
|
1308
|
+
}, b = ({ target: w }) => r("update:modelValue", w.value), y = (w) => r("enter", w), p = (w) => r("click", w), x = (w) => {
|
|
1309
|
+
e.disabled || r("on-icon", w);
|
|
1308
1310
|
};
|
|
1309
|
-
return (w, S) => (
|
|
1311
|
+
return (w, S) => (i(), m("div", Yl, [
|
|
1310
1312
|
l("label", {
|
|
1311
|
-
class: z(["relative w-full border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800",
|
|
1313
|
+
class: z(["relative w-full border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", d.value])
|
|
1312
1314
|
}, [
|
|
1313
1315
|
l("span", {
|
|
1314
|
-
class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400",
|
|
1315
|
-
},
|
|
1316
|
-
(
|
|
1316
|
+
class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", u.value])
|
|
1317
|
+
}, $(e.label), 3),
|
|
1318
|
+
(i(), I(Y(e.component), L(w.$attrs, {
|
|
1317
1319
|
value: e.modelValue,
|
|
1318
1320
|
disabled: !!e.disabled,
|
|
1319
1321
|
type: e.type,
|
|
1320
1322
|
readonly: e.readonly,
|
|
1321
|
-
rows:
|
|
1322
|
-
wrap:
|
|
1323
|
+
rows: n.value ? null : "2",
|
|
1324
|
+
wrap: n.value ? null : "soft",
|
|
1323
1325
|
class: a.value,
|
|
1324
|
-
onFocus:
|
|
1325
|
-
onBlur:
|
|
1326
|
-
onInput:
|
|
1327
|
-
onClick:
|
|
1328
|
-
onKeypress:
|
|
1326
|
+
onFocus: g,
|
|
1327
|
+
onBlur: o,
|
|
1328
|
+
onInput: b,
|
|
1329
|
+
onClick: p,
|
|
1330
|
+
onKeypress: De(y, ["enter"])
|
|
1329
1331
|
}), null, 16, ["value", "disabled", "type", "readonly", "rows", "wrap", "class"])),
|
|
1330
|
-
w.$slots.icon ? (
|
|
1332
|
+
w.$slots.icon ? (i(), m("button", {
|
|
1331
1333
|
key: 0,
|
|
1332
1334
|
disabled: !!e.disabled,
|
|
1333
1335
|
class: z([{ "cursor-pointer": !e.disabled }, "flex-[0_0_50px] h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50"]),
|
|
1334
|
-
onClick:
|
|
1336
|
+
onClick: x
|
|
1335
1337
|
}, [
|
|
1336
|
-
|
|
1337
|
-
], 10,
|
|
1338
|
+
_(w.$slots, "icon")
|
|
1339
|
+
], 10, Zl)) : V("", !0)
|
|
1338
1340
|
], 2),
|
|
1339
|
-
e.hideMessage ? V("", !0) : (
|
|
1340
|
-
|
|
1341
|
-
|
|
1341
|
+
e.hideMessage ? V("", !0) : (i(), m("div", es, [
|
|
1342
|
+
_(w.$slots, "message", {}, () => [
|
|
1343
|
+
E($(e.message), 1)
|
|
1342
1344
|
])
|
|
1343
1345
|
]))
|
|
1344
1346
|
]));
|
|
1345
1347
|
}
|
|
1346
|
-
}),
|
|
1348
|
+
}), ls = { class: "flex justify-center relative mx-2 my-6" }, ss = /* @__PURE__ */ B({
|
|
1347
1349
|
__name: "CardDate",
|
|
1348
1350
|
props: {
|
|
1349
1351
|
size: {},
|
|
@@ -1360,42 +1362,71 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
|
|
|
1360
1362
|
getTo: {}
|
|
1361
1363
|
},
|
|
1362
1364
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1363
|
-
setup(e, { emit:
|
|
1364
|
-
const
|
|
1365
|
-
var
|
|
1366
|
-
const
|
|
1367
|
-
|
|
1368
|
-
},
|
|
1369
|
-
const { disabled:
|
|
1370
|
-
return { label:
|
|
1365
|
+
setup(e, { emit: s }) {
|
|
1366
|
+
const r = e, c = s, t = Me("time"), d = (n) => new Date(+n * 1e3).toISOString().slice(0, 16), a = (n) => {
|
|
1367
|
+
var g;
|
|
1368
|
+
const o = (g = n == null ? void 0 : n.target) == null ? void 0 : g.valueAsNumber;
|
|
1369
|
+
o && c("setState", o / 1e3);
|
|
1370
|
+
}, f = ({ name: n, value: o, opts: g = {} }) => {
|
|
1371
|
+
const { disabled: b } = g;
|
|
1372
|
+
return { label: n, modelValue: d(o), disabled: b };
|
|
1373
|
+
}, u = () => {
|
|
1374
|
+
var o, g;
|
|
1375
|
+
const n = (g = (o = t.value) == null ? void 0 : o.$el) == null ? void 0 : g.querySelector("input");
|
|
1376
|
+
n != null && n.showPicker && n.showPicker();
|
|
1377
|
+
};
|
|
1378
|
+
return (n, o) => {
|
|
1379
|
+
const g = Xl;
|
|
1380
|
+
return i(), I(J, L(r, {
|
|
1381
|
+
onClick: o[0] || (o[0] = (b) => c("click", b)),
|
|
1382
|
+
onEdit: o[1] || (o[1] = (b) => c("edit", b))
|
|
1383
|
+
}), {
|
|
1384
|
+
icon: h((b) => [
|
|
1385
|
+
_(n.$slots, "icon", H(F(b)))
|
|
1386
|
+
]),
|
|
1387
|
+
header: h((b) => [
|
|
1388
|
+
l("div", null, [
|
|
1389
|
+
v(O, {
|
|
1390
|
+
type: "icon",
|
|
1391
|
+
onClick: j(u, ["stop"])
|
|
1392
|
+
}, {
|
|
1393
|
+
default: h(() => [
|
|
1394
|
+
v(g, { class: "size-7" })
|
|
1395
|
+
]),
|
|
1396
|
+
_: 1
|
|
1397
|
+
}),
|
|
1398
|
+
v(q, L({
|
|
1399
|
+
ref_key: "time",
|
|
1400
|
+
ref: t
|
|
1401
|
+
}, f(b), {
|
|
1402
|
+
type: "datetime-local",
|
|
1403
|
+
class: "size-0",
|
|
1404
|
+
hidden: "",
|
|
1405
|
+
onChange: a
|
|
1406
|
+
}), null, 16)
|
|
1407
|
+
])
|
|
1408
|
+
]),
|
|
1409
|
+
dialog: h((b) => [
|
|
1410
|
+
l("div", ls, [
|
|
1411
|
+
v(q, L(f(b), {
|
|
1412
|
+
type: "datetime-local",
|
|
1413
|
+
onChange: a
|
|
1414
|
+
}), null, 16)
|
|
1415
|
+
])
|
|
1416
|
+
]),
|
|
1417
|
+
_: 3
|
|
1418
|
+
}, 16);
|
|
1371
1419
|
};
|
|
1372
|
-
return (f, c) => (n(), D(J, E(i, {
|
|
1373
|
-
onClick: c[0] || (c[0] = (s) => u("click", s)),
|
|
1374
|
-
onEdit: c[1] || (c[1] = (s) => u("edit", s))
|
|
1375
|
-
}), {
|
|
1376
|
-
icon: h((s) => [
|
|
1377
|
-
x(f.$slots, "icon", N(P(s)))
|
|
1378
|
-
]),
|
|
1379
|
-
dialog: h((s) => [
|
|
1380
|
-
l("div", Zl, [
|
|
1381
|
-
g(q, E(a(s), {
|
|
1382
|
-
type: "datetime-local",
|
|
1383
|
-
onChange: r
|
|
1384
|
-
}), null, 16)
|
|
1385
|
-
])
|
|
1386
|
-
]),
|
|
1387
|
-
_: 3
|
|
1388
|
-
}, 16));
|
|
1389
1420
|
}
|
|
1390
|
-
}),
|
|
1421
|
+
}), os = { class: "flex justify-end" }, ns = { class: "flex justify-end" }, as = {
|
|
1391
1422
|
class: /* @__PURE__ */ z("text-blue-600 dark:text-blue-400")
|
|
1392
|
-
},
|
|
1423
|
+
}, is = {
|
|
1393
1424
|
width: "32",
|
|
1394
1425
|
height: "32",
|
|
1395
1426
|
viewBox: "-7.5 -7.5 75 75",
|
|
1396
1427
|
version: "1.1",
|
|
1397
1428
|
style: { transform: "rotate(-90deg)" }
|
|
1398
|
-
},
|
|
1429
|
+
}, rs = ["stroke-dashoffset"], ds = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, cs = /* @__PURE__ */ B({
|
|
1399
1430
|
__name: "CardDimmer",
|
|
1400
1431
|
props: {
|
|
1401
1432
|
size: {},
|
|
@@ -1412,65 +1443,77 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
|
|
|
1412
1443
|
getTo: {}
|
|
1413
1444
|
},
|
|
1414
1445
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1415
|
-
setup(e, { emit:
|
|
1416
|
-
const
|
|
1417
|
-
const { min:
|
|
1418
|
-
return { min:
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1446
|
+
setup(e, { emit: s }) {
|
|
1447
|
+
const r = e, c = s, t = P(0), d = ({ opts: o, value: g }) => Math.round(100 * +g / ((o == null ? void 0 : o.max) || 255)), a = ({ opts: o, value: g }) => Math.round(187 - +g / ((o == null ? void 0 : o.max) || 255) * 187), f = ({ value: o, opts: g }) => {
|
|
1448
|
+
const { min: b = 0, max: y = 255, step: p = 1, disabled: x } = g || {};
|
|
1449
|
+
return { min: b, max: y, step: p, value: o, disabled: !!x, class: x ? "" : "cursor-pointer" };
|
|
1450
|
+
}, u = (o) => c("setState", +o.target.value || 0), n = ({ value: o }) => {
|
|
1451
|
+
+o != 0 ? (t.value = +o, c("setState", 0)) : c("setState", o ? 0 : t.value || 255);
|
|
1452
|
+
};
|
|
1453
|
+
return (o, g) => (i(), I(J, L(r, {
|
|
1454
|
+
onClick: g[0] || (g[0] = (b) => c("click", b)),
|
|
1455
|
+
onEdit: g[1] || (g[1] = (b) => c("edit", b))
|
|
1423
1456
|
}), {
|
|
1424
|
-
icon: h((
|
|
1425
|
-
|
|
1457
|
+
icon: h((b) => [
|
|
1458
|
+
_(o.$slots, "icon", H(F(b)))
|
|
1426
1459
|
]),
|
|
1427
|
-
header: h((
|
|
1428
|
-
l("div",
|
|
1429
|
-
l("div",
|
|
1430
|
-
(
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1460
|
+
header: h((b) => [
|
|
1461
|
+
l("div", os, [
|
|
1462
|
+
l("div", ns, [
|
|
1463
|
+
v(O, L(f(b), {
|
|
1464
|
+
type: "icon",
|
|
1465
|
+
onClick: j((y) => n(b), ["stop"])
|
|
1466
|
+
}), {
|
|
1467
|
+
default: h(() => [
|
|
1468
|
+
l("div", as, [
|
|
1469
|
+
(i(), m("svg", is, [
|
|
1470
|
+
g[2] || (g[2] = l("circle", {
|
|
1471
|
+
class: "stroke-gray-300 dark:stroke-gray-700",
|
|
1472
|
+
r: "30",
|
|
1473
|
+
cx: "30",
|
|
1474
|
+
cy: "30",
|
|
1475
|
+
fill: "transparent",
|
|
1476
|
+
"stroke-width": "10"
|
|
1477
|
+
}, null, -1)),
|
|
1478
|
+
l("circle", {
|
|
1479
|
+
r: "30",
|
|
1480
|
+
cx: "30",
|
|
1481
|
+
cy: "30",
|
|
1482
|
+
stroke: "currentColor",
|
|
1483
|
+
"stroke-width": "8",
|
|
1484
|
+
"stroke-linecap": "butt",
|
|
1485
|
+
"stroke-dashoffset": a(b),
|
|
1486
|
+
fill: "transparent",
|
|
1487
|
+
"stroke-dasharray": "187"
|
|
1488
|
+
}, null, 8, rs)
|
|
1489
|
+
]))
|
|
1490
|
+
])
|
|
1491
|
+
]),
|
|
1492
|
+
_: 2
|
|
1493
|
+
}, 1040, ["onClick"])
|
|
1451
1494
|
])
|
|
1452
1495
|
])
|
|
1453
1496
|
]),
|
|
1454
|
-
dialog: h((
|
|
1497
|
+
dialog: h((b) => [
|
|
1455
1498
|
l("div", {
|
|
1456
|
-
class: z(["flex justify-center relative mx-2 my-6",
|
|
1499
|
+
class: z(["flex justify-center relative mx-2 my-6", f(b).disabled ? "opacity-40" : ""])
|
|
1457
1500
|
}, [
|
|
1458
|
-
|
|
1501
|
+
g[3] || (g[3] = l("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
|
|
1459
1502
|
l("div", {
|
|
1460
1503
|
class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
|
|
1461
|
-
style: K(`width: ${
|
|
1504
|
+
style: K(`width: ${d(b)}%`)
|
|
1462
1505
|
}, null, 4),
|
|
1463
|
-
l("div",
|
|
1464
|
-
l("input",
|
|
1506
|
+
l("div", ds, $(d(b)) + " %", 1),
|
|
1507
|
+
l("input", L({ type: "range" }, f(b), {
|
|
1465
1508
|
class: "w-full h-10 z-10 appearance-none opacity-0",
|
|
1466
|
-
onChange:
|
|
1509
|
+
onChange: u
|
|
1467
1510
|
}), null, 16)
|
|
1468
1511
|
], 2)
|
|
1469
1512
|
]),
|
|
1470
1513
|
_: 3
|
|
1471
1514
|
}, 16));
|
|
1472
1515
|
}
|
|
1473
|
-
}),
|
|
1516
|
+
}), us = /* @__PURE__ */ B({
|
|
1474
1517
|
__name: "CardInfo",
|
|
1475
1518
|
props: {
|
|
1476
1519
|
size: {},
|
|
@@ -1487,22 +1530,22 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
|
|
|
1487
1530
|
getTo: {}
|
|
1488
1531
|
},
|
|
1489
1532
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1490
|
-
setup(e, { emit:
|
|
1491
|
-
const
|
|
1492
|
-
return (t,
|
|
1493
|
-
onClick:
|
|
1494
|
-
onEdit:
|
|
1533
|
+
setup(e, { emit: s }) {
|
|
1534
|
+
const r = e, c = s;
|
|
1535
|
+
return (t, d) => (i(), I(J, L(r, {
|
|
1536
|
+
onClick: d[0] || (d[0] = (a) => c("click", a)),
|
|
1537
|
+
onEdit: d[1] || (d[1] = (a) => c("edit", a))
|
|
1495
1538
|
}), {
|
|
1496
1539
|
icon: h((a) => [
|
|
1497
|
-
|
|
1540
|
+
_(t.$slots, "icon", H(F(a)))
|
|
1498
1541
|
]),
|
|
1499
1542
|
default: h(() => [
|
|
1500
|
-
|
|
1543
|
+
_(t.$slots, "dialog")
|
|
1501
1544
|
]),
|
|
1502
1545
|
_: 3
|
|
1503
1546
|
}, 16));
|
|
1504
1547
|
}
|
|
1505
|
-
}),
|
|
1548
|
+
}), fs = { class: "flex justify-center relative mx-2 my-6" }, ms = /* @__PURE__ */ B({
|
|
1506
1549
|
__name: "CardInput",
|
|
1507
1550
|
props: {
|
|
1508
1551
|
size: {},
|
|
@@ -1519,55 +1562,75 @@ const Wl = U({ name: "ri-shut-down-line", render: Ul }), ql = { class: "flex jus
|
|
|
1519
1562
|
getTo: {}
|
|
1520
1563
|
},
|
|
1521
1564
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1522
|
-
setup(e, { emit:
|
|
1523
|
-
const
|
|
1524
|
-
const { disabled:
|
|
1525
|
-
return { label:
|
|
1526
|
-
},
|
|
1527
|
-
return (
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1565
|
+
setup(e, { emit: s }) {
|
|
1566
|
+
const r = e, c = s, t = P(r.value || ""), d = ({ name: f, opts: u = {} }) => {
|
|
1567
|
+
const { disabled: n } = u;
|
|
1568
|
+
return { label: f, disabled: n };
|
|
1569
|
+
}, a = (f) => c("setState", f.target.value);
|
|
1570
|
+
return ee(
|
|
1571
|
+
() => r.value,
|
|
1572
|
+
(f) => {
|
|
1573
|
+
t.value = f;
|
|
1574
|
+
}
|
|
1575
|
+
), (f, u) => {
|
|
1576
|
+
const n = ce;
|
|
1577
|
+
return i(), I(J, L(r, {
|
|
1578
|
+
onClick: u[1] || (u[1] = (o) => c("click", o)),
|
|
1579
|
+
onEdit: u[2] || (u[2] = (o) => c("edit", o))
|
|
1532
1580
|
}), {
|
|
1533
|
-
icon: h((
|
|
1534
|
-
|
|
1581
|
+
icon: h((o) => [
|
|
1582
|
+
_(f.$slots, "icon", H(F(o)))
|
|
1535
1583
|
]),
|
|
1536
|
-
dialog: h((
|
|
1537
|
-
l("div",
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1584
|
+
dialog: h((o) => [
|
|
1585
|
+
l("div", fs, [
|
|
1586
|
+
v(q, L({
|
|
1587
|
+
modelValue: t.value,
|
|
1588
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => t.value = g)
|
|
1589
|
+
}, d(o), {
|
|
1590
|
+
onEnter: a,
|
|
1591
|
+
onBlur: a
|
|
1542
1592
|
}), {
|
|
1543
1593
|
icon: h(() => [
|
|
1544
|
-
|
|
1594
|
+
v(n, { class: "size-8" })
|
|
1545
1595
|
]),
|
|
1546
1596
|
_: 1
|
|
1547
|
-
}, 16)
|
|
1597
|
+
}, 16, ["modelValue"])
|
|
1548
1598
|
])
|
|
1549
1599
|
]),
|
|
1550
1600
|
_: 3
|
|
1551
1601
|
}, 16);
|
|
1552
1602
|
};
|
|
1553
1603
|
}
|
|
1554
|
-
}),
|
|
1604
|
+
}), vs = {
|
|
1555
1605
|
viewBox: "0 0 24 24",
|
|
1556
1606
|
width: "1.2em",
|
|
1557
1607
|
height: "1.2em"
|
|
1558
1608
|
};
|
|
1559
|
-
function
|
|
1560
|
-
return
|
|
1609
|
+
function gs(e, s) {
|
|
1610
|
+
return i(), m("svg", vs, [...s[0] || (s[0] = [
|
|
1611
|
+
l("path", {
|
|
1612
|
+
fill: "currentColor",
|
|
1613
|
+
d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
|
|
1614
|
+
}, null, -1)
|
|
1615
|
+
])]);
|
|
1616
|
+
}
|
|
1617
|
+
const ps = R({ name: "ri-list-check", render: gs }), hs = {
|
|
1618
|
+
viewBox: "0 0 24 24",
|
|
1619
|
+
width: "1.2em",
|
|
1620
|
+
height: "1.2em"
|
|
1621
|
+
};
|
|
1622
|
+
function bs(e, s) {
|
|
1623
|
+
return i(), m("svg", hs, [...s[0] || (s[0] = [
|
|
1561
1624
|
l("path", {
|
|
1562
1625
|
fill: "currentColor",
|
|
1563
1626
|
d: "m12 10.828l-4.95 4.95l-1.414-1.414L12 8l6.364 6.364l-1.414 1.414z"
|
|
1564
1627
|
}, null, -1)
|
|
1565
1628
|
])]);
|
|
1566
1629
|
}
|
|
1567
|
-
const
|
|
1630
|
+
const ys = R({ name: "ri-arrow-up-s-line", render: bs }), xs = { class: "bg-white dark:bg-gray-900 rounded min-w-50 shadow-nav pb-6 lg:pb-0" }, _s = {
|
|
1568
1631
|
key: 0,
|
|
1569
|
-
class: "
|
|
1570
|
-
},
|
|
1632
|
+
class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
|
|
1633
|
+
}, ks = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, Q = /* @__PURE__ */ B({
|
|
1571
1634
|
inheritAttrs: !1,
|
|
1572
1635
|
__name: "VSelect",
|
|
1573
1636
|
props: {
|
|
@@ -1581,52 +1644,53 @@ const fs = U({ name: "ri-arrow-up-s-line", render: us }), ms = { class: "bg-whit
|
|
|
1581
1644
|
right: {},
|
|
1582
1645
|
bottom: {},
|
|
1583
1646
|
height: {},
|
|
1584
|
-
hideOnClick: { type: Boolean }
|
|
1647
|
+
hideOnClick: { type: Boolean },
|
|
1648
|
+
isPopup: { type: Boolean }
|
|
1585
1649
|
},
|
|
1586
1650
|
emits: ["change"],
|
|
1587
|
-
setup(e, { emit:
|
|
1588
|
-
const
|
|
1589
|
-
function t(
|
|
1590
|
-
|
|
1651
|
+
setup(e, { emit: s }) {
|
|
1652
|
+
const r = je(e, ["modelValue", "label", "items", "disabled"]), c = s;
|
|
1653
|
+
function t(d, a) {
|
|
1654
|
+
c("change", d), a == null || a.set(!1);
|
|
1591
1655
|
}
|
|
1592
|
-
return (
|
|
1593
|
-
const f =
|
|
1594
|
-
return
|
|
1656
|
+
return (d, a) => {
|
|
1657
|
+
const f = ys;
|
|
1658
|
+
return i(), I(le, L(r, {
|
|
1595
1659
|
"hide-on-click": !1,
|
|
1596
1660
|
class: "relative"
|
|
1597
1661
|
}), {
|
|
1598
|
-
activator: h(({ on:
|
|
1599
|
-
|
|
1600
|
-
|
|
1662
|
+
activator: h(({ on: u, isShow: n }) => [
|
|
1663
|
+
_(d.$slots, "activator", H(F({ on: u, isShow: n })), () => [
|
|
1664
|
+
v(q, {
|
|
1601
1665
|
"model-value": e.modelValue,
|
|
1602
1666
|
disabled: e.disabled,
|
|
1603
1667
|
label: e.label,
|
|
1604
1668
|
readonly: "",
|
|
1605
1669
|
hideMessage: "",
|
|
1606
1670
|
active: "",
|
|
1607
|
-
onClick:
|
|
1608
|
-
onOnIcon:
|
|
1671
|
+
onClick: u.click,
|
|
1672
|
+
onOnIcon: u.click
|
|
1609
1673
|
}, {
|
|
1610
1674
|
icon: h(() => [
|
|
1611
|
-
|
|
1612
|
-
class: z(["transition duration-300",
|
|
1675
|
+
v(f, {
|
|
1676
|
+
class: z(["transition duration-300", n ? "rotate-x-180" : ""])
|
|
1613
1677
|
}, null, 8, ["class"])
|
|
1614
1678
|
]),
|
|
1615
1679
|
_: 2
|
|
1616
1680
|
}, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
|
|
1617
1681
|
])
|
|
1618
1682
|
]),
|
|
1619
|
-
default: h(({ on:
|
|
1620
|
-
l("div",
|
|
1621
|
-
e.label ? (
|
|
1622
|
-
l("div",
|
|
1623
|
-
|
|
1683
|
+
default: h(({ on: u }) => [
|
|
1684
|
+
l("div", xs, [
|
|
1685
|
+
e.label ? (i(), m("h4", _s, $(e.label), 1)) : V("", !0),
|
|
1686
|
+
l("div", ks, [
|
|
1687
|
+
v(se, {
|
|
1624
1688
|
items: e.items,
|
|
1625
|
-
onClick: (
|
|
1689
|
+
onClick: (n) => t(n, u)
|
|
1626
1690
|
}, {
|
|
1627
|
-
default: h(({ item:
|
|
1628
|
-
|
|
1629
|
-
|
|
1691
|
+
default: h(({ item: n }) => [
|
|
1692
|
+
_(d.$slots, "item", { item: n }, () => [
|
|
1693
|
+
E($(n.name), 1)
|
|
1630
1694
|
])
|
|
1631
1695
|
]),
|
|
1632
1696
|
_: 3
|
|
@@ -1638,7 +1702,7 @@ const fs = U({ name: "ri-arrow-up-s-line", render: us }), ms = { class: "bg-whit
|
|
|
1638
1702
|
}, 16);
|
|
1639
1703
|
};
|
|
1640
1704
|
}
|
|
1641
|
-
}),
|
|
1705
|
+
}), $s = { class: "flex justify-center py-4" }, ws = /* @__PURE__ */ B({
|
|
1642
1706
|
__name: "CardList",
|
|
1643
1707
|
props: {
|
|
1644
1708
|
size: {},
|
|
@@ -1655,50 +1719,83 @@ const fs = U({ name: "ri-arrow-up-s-line", render: us }), ms = { class: "bg-whit
|
|
|
1655
1719
|
getTo: {}
|
|
1656
1720
|
},
|
|
1657
1721
|
emits: ["edit", "close", "click", "open", "setState"],
|
|
1658
|
-
setup(e, { emit:
|
|
1659
|
-
const
|
|
1660
|
-
var
|
|
1661
|
-
return Array.isArray(f == null ? void 0 : f.items) && ((
|
|
1662
|
-
}, a = ({ name: f, value:
|
|
1663
|
-
var
|
|
1664
|
-
const { items:
|
|
1665
|
-
return { label: f, modelValue:
|
|
1722
|
+
setup(e, { emit: s }) {
|
|
1723
|
+
const r = e, c = s, t = ({ value: f }) => c("setState", f), d = ({ opts: f, value: u }) => {
|
|
1724
|
+
var n;
|
|
1725
|
+
return Array.isArray(f == null ? void 0 : f.items) && ((n = f == null ? void 0 : f.items.find((o) => o.value == u)) == null ? void 0 : n.name) || u;
|
|
1726
|
+
}, a = ({ name: f, value: u, opts: n = {} }) => {
|
|
1727
|
+
var y;
|
|
1728
|
+
const { items: o = [], disabled: g } = n, b = ((y = o.find((p) => p.value == u)) == null ? void 0 : y.name) || u;
|
|
1729
|
+
return { label: f, modelValue: b, items: o, disabled: !!g };
|
|
1730
|
+
};
|
|
1731
|
+
return (f, u) => {
|
|
1732
|
+
const n = ps;
|
|
1733
|
+
return i(), I(J, L(r, {
|
|
1734
|
+
onClick: u[1] || (u[1] = (o) => c("click", o)),
|
|
1735
|
+
onEdit: u[2] || (u[2] = (o) => c("edit", o))
|
|
1736
|
+
}), {
|
|
1737
|
+
icon: h((o) => [
|
|
1738
|
+
_(f.$slots, "icon", H(F(o)))
|
|
1739
|
+
]),
|
|
1740
|
+
value: h((o) => [
|
|
1741
|
+
E($(d(o)), 1)
|
|
1742
|
+
]),
|
|
1743
|
+
"dialog-value": h((o) => [
|
|
1744
|
+
E($(d(o)), 1)
|
|
1745
|
+
]),
|
|
1746
|
+
header: h((o) => [
|
|
1747
|
+
l("div", {
|
|
1748
|
+
onClick: u[0] || (u[0] = j(() => {
|
|
1749
|
+
}, ["prevent", "stop"]))
|
|
1750
|
+
}, [
|
|
1751
|
+
v(Q, L(a(o), {
|
|
1752
|
+
"is-popup": "",
|
|
1753
|
+
top: "0",
|
|
1754
|
+
left: "-115px",
|
|
1755
|
+
onChange: t
|
|
1756
|
+
}), {
|
|
1757
|
+
activator: h(({ on: g }) => [
|
|
1758
|
+
v(O, {
|
|
1759
|
+
type: "icon",
|
|
1760
|
+
onClick: j(g.click, ["stop"])
|
|
1761
|
+
}, {
|
|
1762
|
+
default: h(() => [
|
|
1763
|
+
v(n, { class: "size-6" })
|
|
1764
|
+
]),
|
|
1765
|
+
_: 1
|
|
1766
|
+
}, 8, ["onClick"])
|
|
1767
|
+
]),
|
|
1768
|
+
_: 1
|
|
1769
|
+
}, 16)
|
|
1770
|
+
])
|
|
1771
|
+
]),
|
|
1772
|
+
dialog: h((o) => [
|
|
1773
|
+
l("div", $s, [
|
|
1774
|
+
v(Q, L(a(o), {
|
|
1775
|
+
top: "-50%",
|
|
1776
|
+
left: "50%",
|
|
1777
|
+
onChange: t
|
|
1778
|
+
}), null, 16)
|
|
1779
|
+
])
|
|
1780
|
+
]),
|
|
1781
|
+
_: 3
|
|
1782
|
+
}, 16);
|
|
1666
1783
|
};
|
|
1667
|
-
return (f, c) => (n(), D(J, E(i, {
|
|
1668
|
-
onClick: c[0] || (c[0] = (s) => u("click", s)),
|
|
1669
|
-
onEdit: c[1] || (c[1] = (s) => u("edit", s))
|
|
1670
|
-
}), {
|
|
1671
|
-
icon: h((s) => [
|
|
1672
|
-
x(f.$slots, "icon", N(P(s)))
|
|
1673
|
-
]),
|
|
1674
|
-
value: h((s) => [
|
|
1675
|
-
j(_(r(s)), 1)
|
|
1676
|
-
]),
|
|
1677
|
-
"dialog-value": h((s) => [
|
|
1678
|
-
j(_(r(s)), 1)
|
|
1679
|
-
]),
|
|
1680
|
-
dialog: h((s) => [
|
|
1681
|
-
l("div", ps, [
|
|
1682
|
-
g(Y, E(a(s), { onChange: t }), null, 16)
|
|
1683
|
-
])
|
|
1684
|
-
]),
|
|
1685
|
-
_: 3
|
|
1686
|
-
}, 16));
|
|
1687
1784
|
}
|
|
1688
|
-
}),
|
|
1785
|
+
}), Cs = {
|
|
1689
1786
|
viewBox: "0 0 24 24",
|
|
1690
1787
|
width: "1.2em",
|
|
1691
1788
|
height: "1.2em"
|
|
1692
1789
|
};
|
|
1693
|
-
function
|
|
1694
|
-
return
|
|
1790
|
+
function zs(e, s) {
|
|
1791
|
+
return i(), m("svg", Cs, [...s[0] || (s[0] = [
|
|
1695
1792
|
l("path", {
|
|
1696
1793
|
fill: "currentColor",
|
|
1697
1794
|
d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
|
|
1698
1795
|
}, null, -1)
|
|
1699
1796
|
])]);
|
|
1700
1797
|
}
|
|
1701
|
-
const
|
|
1798
|
+
const oe = R({ name: "ri-add-line", render: zs }), Vs = { class: "flex w-full relative" }, Bs = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Ss = ["disabled"], ze = /* @__PURE__ */ B({
|
|
1702
1799
|
__name: "VTextWrapper",
|
|
1703
1800
|
props: {
|
|
1704
1801
|
active: { type: Boolean },
|
|
@@ -1707,67 +1804,54 @@ const ue = U({ name: "ri-add-line", render: ys }), xs = { class: "flex w-full re
|
|
|
1707
1804
|
hideIcon: { type: Boolean, default: !1 }
|
|
1708
1805
|
},
|
|
1709
1806
|
emits: ["icon"],
|
|
1710
|
-
setup(e, { emit:
|
|
1711
|
-
const
|
|
1712
|
-
return (
|
|
1713
|
-
const f =
|
|
1714
|
-
return
|
|
1807
|
+
setup(e, { emit: s }) {
|
|
1808
|
+
const r = s, c = T(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), t = T(() => [e.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
|
|
1809
|
+
return (d, a) => {
|
|
1810
|
+
const f = oe;
|
|
1811
|
+
return i(), m("div", Vs, [
|
|
1715
1812
|
l("div", {
|
|
1716
1813
|
class: z(["relative w-full min-h-[40px] border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", t.value])
|
|
1717
1814
|
}, [
|
|
1718
1815
|
l("span", {
|
|
1719
|
-
class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400",
|
|
1720
|
-
},
|
|
1721
|
-
l("div",
|
|
1722
|
-
|
|
1816
|
+
class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", c.value])
|
|
1817
|
+
}, $(e.label), 3),
|
|
1818
|
+
l("div", Bs, [
|
|
1819
|
+
_(d.$slots, "default")
|
|
1723
1820
|
]),
|
|
1724
|
-
e.hideIcon ? V("", !0) : (
|
|
1821
|
+
e.hideIcon ? V("", !0) : (i(), m("button", {
|
|
1725
1822
|
key: 0,
|
|
1726
1823
|
disabled: e.disabled,
|
|
1727
1824
|
class: z([{ "cursor-pointer": !e.disabled }, "h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50 flex-[0_0_50px]"]),
|
|
1728
|
-
onClick: a[0] || (a[0] = (
|
|
1825
|
+
onClick: a[0] || (a[0] = (u) => r("icon", u))
|
|
1729
1826
|
}, [
|
|
1730
|
-
|
|
1731
|
-
|
|
1827
|
+
_(d.$slots, "icon", {}, () => [
|
|
1828
|
+
v(f, { class: "size-4" })
|
|
1732
1829
|
])
|
|
1733
|
-
], 10,
|
|
1830
|
+
], 10, Ss))
|
|
1734
1831
|
], 2)
|
|
1735
1832
|
]);
|
|
1736
1833
|
};
|
|
1737
1834
|
}
|
|
1738
|
-
}),
|
|
1739
|
-
viewBox: "0 0 24 24",
|
|
1740
|
-
width: "1.2em",
|
|
1741
|
-
height: "1.2em"
|
|
1742
|
-
};
|
|
1743
|
-
function ws(e, o) {
|
|
1744
|
-
return n(), m("svg", $s, [...o[0] || (o[0] = [
|
|
1745
|
-
l("path", {
|
|
1746
|
-
fill: "currentColor",
|
|
1747
|
-
d: "M7 19v-6h10v6h2V7.828L16.172 5H5v14zM4 3h13l4 4v13a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m5 12v4h6v-4z"
|
|
1748
|
-
}, null, -1)
|
|
1749
|
-
])]);
|
|
1750
|
-
}
|
|
1751
|
-
const Cs = U({ name: "ri-save-line", render: ws }), zs = {
|
|
1835
|
+
}), As = {
|
|
1752
1836
|
viewBox: "0 0 24 24",
|
|
1753
1837
|
width: "1.2em",
|
|
1754
1838
|
height: "1.2em"
|
|
1755
1839
|
};
|
|
1756
|
-
function
|
|
1757
|
-
return
|
|
1840
|
+
function Ts(e, s) {
|
|
1841
|
+
return i(), m("svg", As, [...s[0] || (s[0] = [
|
|
1758
1842
|
l("path", {
|
|
1759
1843
|
fill: "currentColor",
|
|
1760
1844
|
d: "M2 4a1 1 0 0 1 1-1h7.414l2 2H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3c-.55 0-1-.45-1-1zm8.586 2l-1-1H4v2h5.586zM4 9v10h16V7h-7.586l-2 2z"
|
|
1761
1845
|
}, null, -1)
|
|
1762
1846
|
])]);
|
|
1763
1847
|
}
|
|
1764
|
-
const
|
|
1848
|
+
const Is = R({ name: "ri-folder6-line", render: Ts }), Ds = ["onClick"], Ms = {
|
|
1765
1849
|
key: 0,
|
|
1766
1850
|
class: "me-1"
|
|
1767
|
-
},
|
|
1851
|
+
}, js = { class: "dark:text-gray-300" }, Ls = { class: "flex items-center z-10" }, Os = {
|
|
1768
1852
|
key: 0,
|
|
1769
1853
|
class: "flex ps-5"
|
|
1770
|
-
},
|
|
1854
|
+
}, Es = { class: "font-medium me-6 dark:text-gray-300" }, Ve = /* @__PURE__ */ B({
|
|
1771
1855
|
__name: "VListObject",
|
|
1772
1856
|
props: {
|
|
1773
1857
|
items: { default: () => ({}) },
|
|
@@ -1775,95 +1859,103 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
1775
1859
|
onlyValue: { type: Boolean, default: !1 }
|
|
1776
1860
|
},
|
|
1777
1861
|
emits: ["click"],
|
|
1778
|
-
setup(e, { emit:
|
|
1779
|
-
const
|
|
1780
|
-
t.value[
|
|
1781
|
-
}, a = (
|
|
1782
|
-
|
|
1862
|
+
setup(e, { emit: s }) {
|
|
1863
|
+
const r = s, c = () => "before:absolute before:w-full before:h-8 before:t-0 before:left-0 before:border-b before:border-gray-200 dark:before:border-gray-800/50 hover:before:bg-gray-400/10", t = P({}), d = (n) => {
|
|
1864
|
+
t.value[n] = !t.value[n];
|
|
1865
|
+
}, a = (n) => typeof n == "object", f = (n) => `${e.path ? e.path + "." : ""}${n}`, u = (n, o) => {
|
|
1866
|
+
r("click", { key: n, path: f(n), isObject: o });
|
|
1783
1867
|
};
|
|
1784
|
-
return (
|
|
1785
|
-
const
|
|
1786
|
-
return
|
|
1787
|
-
(
|
|
1788
|
-
key:
|
|
1789
|
-
class: z(a(
|
|
1868
|
+
return (n, o) => {
|
|
1869
|
+
const g = Is, b = oe;
|
|
1870
|
+
return i(), m("ul", null, [
|
|
1871
|
+
(i(!0), m(N, null, U(e.items, (y, p) => (i(), m("li", {
|
|
1872
|
+
key: p,
|
|
1873
|
+
class: z(a(y) ? "" : `flex items-center ${c()}`)
|
|
1790
1874
|
}, [
|
|
1791
1875
|
l("div", {
|
|
1792
|
-
class: z(["flex items-center cursor-pointer ps-2 h-8", a(
|
|
1793
|
-
onClick: (
|
|
1876
|
+
class: z(["flex items-center cursor-pointer ps-2 h-8", a(y) ? `${c()}` : ""]),
|
|
1877
|
+
onClick: (x) => d(p)
|
|
1794
1878
|
}, [
|
|
1795
|
-
a(
|
|
1796
|
-
g
|
|
1879
|
+
a(y) ? (i(), m("div", Ms, [
|
|
1880
|
+
v(g, { class: "size-5" })
|
|
1797
1881
|
])) : V("", !0),
|
|
1798
|
-
l("div",
|
|
1799
|
-
!e.onlyValue && a(
|
|
1800
|
-
|
|
1801
|
-
l("div",
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1882
|
+
l("div", js, $(p), 1),
|
|
1883
|
+
!e.onlyValue && a(y) ? (i(), m(N, { key: 1 }, [
|
|
1884
|
+
o[1] || (o[1] = l("div", { class: "flex-auto" }, null, -1)),
|
|
1885
|
+
l("div", Ls, [
|
|
1886
|
+
v(O, {
|
|
1887
|
+
color: "transparent",
|
|
1888
|
+
size: "sm",
|
|
1889
|
+
onClick: j((x) => u(p, a(y)), ["stop"])
|
|
1890
|
+
}, {
|
|
1891
|
+
default: h(() => [
|
|
1892
|
+
v(b, { class: "size-5" })
|
|
1893
|
+
]),
|
|
1894
|
+
_: 1
|
|
1895
|
+
}, 8, ["onClick"])
|
|
1808
1896
|
])
|
|
1809
1897
|
], 64)) : V("", !0)
|
|
1810
|
-
], 10,
|
|
1811
|
-
a(
|
|
1812
|
-
|
|
1898
|
+
], 10, Ds),
|
|
1899
|
+
a(y) ? (i(), m("div", Os, [
|
|
1900
|
+
ae(v(Ve, {
|
|
1813
1901
|
class: "flex-auto",
|
|
1814
|
-
path: f(
|
|
1815
|
-
items:
|
|
1902
|
+
path: f(p),
|
|
1903
|
+
items: y,
|
|
1816
1904
|
onlyValue: e.onlyValue,
|
|
1817
|
-
onClick:
|
|
1905
|
+
onClick: o[0] || (o[0] = (x) => r("click", x))
|
|
1818
1906
|
}, null, 8, ["path", "items", "onlyValue"]), [
|
|
1819
|
-
[
|
|
1907
|
+
[Le, t.value[p]]
|
|
1820
1908
|
])
|
|
1821
|
-
])) : (
|
|
1822
|
-
|
|
1823
|
-
l("div",
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1909
|
+
])) : (i(), m(N, { key: 1 }, [
|
|
1910
|
+
o[2] || (o[2] = l("div", { class: "flex-auto" }, null, -1)),
|
|
1911
|
+
l("div", Es, $(y), 1),
|
|
1912
|
+
v(O, {
|
|
1913
|
+
color: "transparent",
|
|
1914
|
+
size: "sm",
|
|
1915
|
+
onClick: j((x) => u(p, a(y)), ["stop"])
|
|
1916
|
+
}, {
|
|
1917
|
+
default: h(() => [
|
|
1918
|
+
v(b, { class: "size-5" })
|
|
1919
|
+
]),
|
|
1920
|
+
_: 1
|
|
1921
|
+
}, 8, ["onClick"])
|
|
1830
1922
|
], 64))
|
|
1831
1923
|
], 2))), 128))
|
|
1832
1924
|
]);
|
|
1833
1925
|
};
|
|
1834
1926
|
}
|
|
1835
|
-
}),
|
|
1927
|
+
}), Ns = { class: "" }, Ps = { class: "flex border-b border-gray-200 dark:border-gray-700" }, Hs = ["onClick"], Fs = { class: "relative my-4" }, Us = { key: 0 }, Rs = /* @__PURE__ */ B({
|
|
1836
1928
|
__name: "VTabs",
|
|
1837
1929
|
props: {
|
|
1838
1930
|
value: {},
|
|
1839
1931
|
items: {}
|
|
1840
1932
|
},
|
|
1841
1933
|
emits: ["click"],
|
|
1842
|
-
setup(e, { expose:
|
|
1843
|
-
const
|
|
1844
|
-
t.value = f,
|
|
1934
|
+
setup(e, { expose: s, emit: r }) {
|
|
1935
|
+
const c = r, t = P(e.value || 0), d = (f) => [t.value === f ? "" : "before:hidden"], a = (f) => {
|
|
1936
|
+
t.value = f, c("click", f);
|
|
1845
1937
|
};
|
|
1846
|
-
return
|
|
1938
|
+
return s({
|
|
1847
1939
|
setActiveTab: a,
|
|
1848
1940
|
activeTab: t
|
|
1849
|
-
}), (f,
|
|
1850
|
-
l("div",
|
|
1851
|
-
(
|
|
1852
|
-
key:
|
|
1941
|
+
}), (f, u) => (i(), m("div", Ns, [
|
|
1942
|
+
l("div", Ps, [
|
|
1943
|
+
(i(!0), m(N, null, U(e.items, (n, o) => (i(), m("div", {
|
|
1944
|
+
key: o,
|
|
1853
1945
|
class: "relative"
|
|
1854
1946
|
}, [
|
|
1855
1947
|
l("button", {
|
|
1856
|
-
class: z(["font-medium text-lg transition cursor-pointer before:h-[2px] before:absolute before:w-full before:bg-blue-700 before:left-0 before:bottom-0 px-4 py-2",
|
|
1857
|
-
onClick: (
|
|
1858
|
-
},
|
|
1948
|
+
class: z(["font-medium text-lg transition cursor-pointer before:h-[2px] before:absolute before:w-full before:bg-blue-700 before:left-0 before:bottom-0 px-4 py-2", d(o)]),
|
|
1949
|
+
onClick: (g) => a(o)
|
|
1950
|
+
}, $(n.title), 11, Hs)
|
|
1859
1951
|
]))), 128))
|
|
1860
1952
|
]),
|
|
1861
|
-
l("div",
|
|
1862
|
-
(
|
|
1863
|
-
key:
|
|
1953
|
+
l("div", Fs, [
|
|
1954
|
+
(i(!0), m(N, null, U(e.items, (n, o) => (i(), m("div", {
|
|
1955
|
+
key: o,
|
|
1864
1956
|
class: "tab-panel"
|
|
1865
1957
|
}, [
|
|
1866
|
-
|
|
1958
|
+
v(Z, {
|
|
1867
1959
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
1868
1960
|
"enter-from-class": "transform opacity-0 translate-x-2",
|
|
1869
1961
|
"enter-to-class": "transform opacity-100 translate-x-0",
|
|
@@ -1872,8 +1964,8 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
1872
1964
|
"leave-to-class": "transform opacity-0 -translate-x-2"
|
|
1873
1965
|
}, {
|
|
1874
1966
|
default: h(() => [
|
|
1875
|
-
t.value ===
|
|
1876
|
-
|
|
1967
|
+
t.value === o ? (i(), m("div", Us, [
|
|
1968
|
+
_(f.$slots, `tab-${o}`)
|
|
1877
1969
|
])) : V("", !0)
|
|
1878
1970
|
]),
|
|
1879
1971
|
_: 2
|
|
@@ -1882,7 +1974,7 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
1882
1974
|
])
|
|
1883
1975
|
]));
|
|
1884
1976
|
}
|
|
1885
|
-
}),
|
|
1977
|
+
}), Ws = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, qs = ["title", "onMouseenter", "onMouseleave"], Ks = { class: "flex flex-auto" }, Gs = ["disabled"], ne = /* @__PURE__ */ B({
|
|
1886
1978
|
__name: "VFunc",
|
|
1887
1979
|
props: {
|
|
1888
1980
|
label: {},
|
|
@@ -1892,69 +1984,65 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
1892
1984
|
hideIcon: { type: Boolean, default: !1 }
|
|
1893
1985
|
},
|
|
1894
1986
|
emits: ["change", "icon", "hover"],
|
|
1895
|
-
setup(e, { emit:
|
|
1896
|
-
const
|
|
1897
|
-
u.value = e.value || "";
|
|
1898
|
-
const a = (s) => {
|
|
1987
|
+
setup(e, { emit: s }) {
|
|
1988
|
+
const r = s, c = ["v", "a", "b", "c"], t = P(e.value || ""), d = (u) => {
|
|
1899
1989
|
try {
|
|
1900
|
-
return new Function(
|
|
1901
|
-
} catch (
|
|
1902
|
-
return console.warn(
|
|
1990
|
+
return new Function(u), !0;
|
|
1991
|
+
} catch (n) {
|
|
1992
|
+
return console.warn(n), !1;
|
|
1903
1993
|
}
|
|
1904
|
-
},
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1907
|
-
}, 500),
|
|
1908
|
-
return
|
|
1994
|
+
}, a = ie((u) => {
|
|
1995
|
+
const n = u.target;
|
|
1996
|
+
d(n.value) && r("change", n.value);
|
|
1997
|
+
}, 500), f = (u) => r("icon", u);
|
|
1998
|
+
return ee(
|
|
1909
1999
|
() => e.value,
|
|
1910
2000
|
() => {
|
|
1911
|
-
e.value && (
|
|
2001
|
+
e.value && (t.value = e.value);
|
|
1912
2002
|
}
|
|
1913
|
-
), (
|
|
1914
|
-
const
|
|
1915
|
-
return
|
|
2003
|
+
), (u, n) => {
|
|
2004
|
+
const o = G, g = oe;
|
|
2005
|
+
return i(), I(ze, {
|
|
1916
2006
|
active: !!e.value,
|
|
1917
2007
|
disabled: e.disabled,
|
|
1918
2008
|
label: e.label,
|
|
1919
2009
|
hideIcon: e.hideIcon,
|
|
1920
|
-
onIcon:
|
|
2010
|
+
onIcon: f
|
|
1921
2011
|
}, {
|
|
1922
2012
|
icon: h(() => [
|
|
1923
|
-
e.value ? (
|
|
2013
|
+
e.value ? (i(), I(o, {
|
|
1924
2014
|
key: 0,
|
|
1925
2015
|
class: "size-4"
|
|
1926
|
-
})) : (
|
|
2016
|
+
})) : (i(), I(g, {
|
|
1927
2017
|
key: 1,
|
|
1928
2018
|
class: "size-4"
|
|
1929
2019
|
}))
|
|
1930
2020
|
]),
|
|
1931
2021
|
default: h(() => [
|
|
1932
|
-
e.value ? (
|
|
1933
|
-
l("div",
|
|
1934
|
-
|
|
1935
|
-
(
|
|
2022
|
+
e.value ? (i(), m(N, { key: 0 }, [
|
|
2023
|
+
l("div", Ws, [
|
|
2024
|
+
n[3] || (n[3] = E(" ( ", -1)),
|
|
2025
|
+
(i(!0), m(N, null, U(e.args, (b, y) => (i(), m(N, { key: b }, [
|
|
1936
2026
|
l("span", {
|
|
1937
2027
|
class: "text-blue-400/80",
|
|
1938
|
-
title:
|
|
1939
|
-
onMouseenter: (
|
|
1940
|
-
onMouseleave: (
|
|
1941
|
-
},
|
|
1942
|
-
|
|
2028
|
+
title: b,
|
|
2029
|
+
onMouseenter: (p) => r("hover", "enter", y),
|
|
2030
|
+
onMouseleave: (p) => r("hover", "leave", y)
|
|
2031
|
+
}, $(c[y]), 41, qs),
|
|
2032
|
+
n[2] || (n[2] = l("span", { class: "last:hidden" }, ",", -1))
|
|
1943
2033
|
], 64))), 128)),
|
|
1944
|
-
|
|
2034
|
+
n[4] || (n[4] = E(" ) => ", -1))
|
|
1945
2035
|
]),
|
|
1946
|
-
l("div",
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
"onUpdate:modelValue": d[0] || (d[0] = (p) => Le(u) ? u.value = p : null),
|
|
1951
|
-
class: "outline-0 w-full resize-none",
|
|
2036
|
+
l("div", Ks, [
|
|
2037
|
+
ae(l("textarea", {
|
|
2038
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => t.value = b),
|
|
2039
|
+
class: "outline-0 w-full resize-none field-sizing-content",
|
|
1952
2040
|
type: "text",
|
|
1953
2041
|
disabled: e.disabled,
|
|
1954
|
-
onInput:
|
|
1955
|
-
(...
|
|
1956
|
-
}, null, 40,
|
|
1957
|
-
[Oe,
|
|
2042
|
+
onInput: n[1] || (n[1] = //@ts-ignore
|
|
2043
|
+
(...b) => A(a) && A(a)(...b))
|
|
2044
|
+
}, null, 40, Gs), [
|
|
2045
|
+
[Oe, t.value]
|
|
1958
2046
|
])
|
|
1959
2047
|
])
|
|
1960
2048
|
], 64)) : V("", !0)
|
|
@@ -1963,19 +2051,19 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
1963
2051
|
}, 8, ["active", "disabled", "label", "hideIcon"]);
|
|
1964
2052
|
};
|
|
1965
2053
|
}
|
|
1966
|
-
}),
|
|
2054
|
+
}), Js = ["checked", "disabled"], Qs = { class: "text-sm ms-2 peer-disabled:opacity-40" }, Xs = /* @__PURE__ */ B({
|
|
1967
2055
|
__name: "VCheckbox",
|
|
1968
2056
|
props: {
|
|
1969
2057
|
modelValue: { type: [Number, Boolean], default: !1 },
|
|
1970
2058
|
disabled: { type: Boolean, default: !1 }
|
|
1971
2059
|
},
|
|
1972
2060
|
emits: ["update:modelValue", "click"],
|
|
1973
|
-
setup(e, { emit:
|
|
1974
|
-
const
|
|
1975
|
-
const a =
|
|
1976
|
-
|
|
1977
|
-
}, t = (
|
|
1978
|
-
return (
|
|
2061
|
+
setup(e, { emit: s }) {
|
|
2062
|
+
const r = s, c = (d) => {
|
|
2063
|
+
const a = d.target;
|
|
2064
|
+
r("update:modelValue", a.checked);
|
|
2065
|
+
}, t = (d) => r("click", d);
|
|
2066
|
+
return (d, a) => (i(), m("label", {
|
|
1979
2067
|
class: z(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
|
|
1980
2068
|
onClick: t
|
|
1981
2069
|
}, [
|
|
@@ -1984,8 +2072,8 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
1984
2072
|
checked: !!e.modelValue,
|
|
1985
2073
|
disabled: e.disabled,
|
|
1986
2074
|
class: "peer size-5 transition-all appearance-none rounded border border-gray-300 dark:border-gray-700 disabled:opacity-40 not-disabled:cursor-pointer",
|
|
1987
|
-
onChange:
|
|
1988
|
-
}, null, 40,
|
|
2075
|
+
onChange: c
|
|
2076
|
+
}, null, 40, Js),
|
|
1989
2077
|
a[0] || (a[0] = l("button", { class: "absolute opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 top-1/2 left-[10px] transform -translate-x-1/2 -translate-y-1/2 pointer-events-none" }, [
|
|
1990
2078
|
l("svg", {
|
|
1991
2079
|
class: "h-3.5 w-3.5",
|
|
@@ -2001,128 +2089,125 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2001
2089
|
})
|
|
2002
2090
|
])
|
|
2003
2091
|
], -1)),
|
|
2004
|
-
l("span",
|
|
2005
|
-
|
|
2092
|
+
l("span", Qs, [
|
|
2093
|
+
_(d.$slots, "default")
|
|
2006
2094
|
])
|
|
2007
2095
|
], 2));
|
|
2008
2096
|
}
|
|
2009
|
-
}),
|
|
2097
|
+
}), Ys = { class: "flex flex-col" }, Zs = { class: "flex gap-4 mb-6" }, eo = {
|
|
2010
2098
|
key: 0,
|
|
2011
2099
|
class: "flex gap-4"
|
|
2012
|
-
},
|
|
2100
|
+
}, to = {
|
|
2013
2101
|
key: 1,
|
|
2014
2102
|
class: ""
|
|
2015
|
-
},
|
|
2103
|
+
}, lo = { class: "flex flex-col md:flex-row gap-4" }, so = { class: "flex gap-4" }, oo = { class: "flex justify-between flex-auto" }, no = ["onClick"], ao = /* @__PURE__ */ B({
|
|
2016
2104
|
__name: "ItemOptions",
|
|
2017
2105
|
props: {
|
|
2018
2106
|
min: { default: 0 },
|
|
2019
2107
|
max: { default: 255 },
|
|
2020
2108
|
step: { default: 1 },
|
|
2021
2109
|
disabled: {},
|
|
2022
|
-
|
|
2110
|
+
items: { default: () => [] },
|
|
2023
2111
|
value: {},
|
|
2024
2112
|
type: {}
|
|
2025
2113
|
},
|
|
2026
2114
|
emits: ["update"],
|
|
2027
|
-
setup(e, { emit:
|
|
2028
|
-
const
|
|
2029
|
-
var
|
|
2030
|
-
return !((
|
|
2031
|
-
}), f = (
|
|
2032
|
-
const
|
|
2033
|
-
t.value = { name: `New_${
|
|
2034
|
-
},
|
|
2035
|
-
t.value.name ===
|
|
2036
|
-
},
|
|
2037
|
-
const
|
|
2038
|
-
if (!
|
|
2039
|
-
const
|
|
2040
|
-
|
|
2115
|
+
setup(e, { emit: s }) {
|
|
2116
|
+
const r = s, c = T(() => e.items.map((p, x) => ({ ...p, id: ++x }))), t = P({ name: "", value: "" }), d = T(() => e.items.length + 1), a = T(() => {
|
|
2117
|
+
var p;
|
|
2118
|
+
return !((p = t.value) != null && p.id);
|
|
2119
|
+
}), f = (p) => e.type === p, u = (p, x) => r("update", p, x), n = (p) => p.map(({ name: x, value: w }) => ({ name: x, value: w })), o = ({ id: p, name: x, value: w }) => t.value = { id: p, name: x, value: w }, g = () => {
|
|
2120
|
+
const p = d.value;
|
|
2121
|
+
t.value = { name: `New_${p}`, value: p, id: p }, u("items", n([...c.value, t.value]));
|
|
2122
|
+
}, b = (p) => {
|
|
2123
|
+
t.value.name === p.name && (t.value = { name: "", value: "" }), u("items", n(c.value.filter((x) => x.value !== p.value)));
|
|
2124
|
+
}, y = ie(() => {
|
|
2125
|
+
const p = t.value;
|
|
2126
|
+
if (!p.name || !p.value) return;
|
|
2127
|
+
const x = c.value.map((w) => w.id === p.id ? p : w);
|
|
2128
|
+
u("items", n(x));
|
|
2041
2129
|
}, 300);
|
|
2042
|
-
return (
|
|
2043
|
-
const w = G, S =
|
|
2044
|
-
return
|
|
2045
|
-
l("div",
|
|
2046
|
-
|
|
2130
|
+
return (p, x) => {
|
|
2131
|
+
const w = G, S = oe;
|
|
2132
|
+
return i(), m("div", Ys, [
|
|
2133
|
+
l("div", Zs, [
|
|
2134
|
+
v(Xs, {
|
|
2047
2135
|
modelValue: e.disabled,
|
|
2048
|
-
"onUpdate:modelValue":
|
|
2136
|
+
"onUpdate:modelValue": x[0] || (x[0] = (M) => u("disabled", M ? 1 : 0))
|
|
2049
2137
|
}, {
|
|
2050
|
-
default: h(() => [...
|
|
2051
|
-
|
|
2138
|
+
default: h(() => [...x[6] || (x[6] = [
|
|
2139
|
+
E("Disabled", -1)
|
|
2052
2140
|
])]),
|
|
2053
2141
|
_: 1
|
|
2054
2142
|
}, 8, ["modelValue"])
|
|
2055
2143
|
]),
|
|
2056
|
-
f("dimmer") ? (
|
|
2057
|
-
|
|
2144
|
+
f("dimmer") ? (i(), m("div", eo, [
|
|
2145
|
+
v(q, {
|
|
2058
2146
|
modelValue: e.min,
|
|
2059
2147
|
label: "Min",
|
|
2060
|
-
"onUpdate:modelValue":
|
|
2148
|
+
"onUpdate:modelValue": x[1] || (x[1] = (M) => u("min", +M))
|
|
2061
2149
|
}, null, 8, ["modelValue"]),
|
|
2062
|
-
|
|
2150
|
+
v(q, {
|
|
2063
2151
|
modelValue: e.max,
|
|
2064
2152
|
label: "Max",
|
|
2065
|
-
"onUpdate:modelValue":
|
|
2153
|
+
"onUpdate:modelValue": x[2] || (x[2] = (M) => u("max", +M))
|
|
2066
2154
|
}, null, 8, ["modelValue"]),
|
|
2067
|
-
|
|
2155
|
+
v(q, {
|
|
2068
2156
|
modelValue: e.step,
|
|
2069
2157
|
label: "Step",
|
|
2070
|
-
"onUpdate:modelValue":
|
|
2158
|
+
"onUpdate:modelValue": x[3] || (x[3] = (M) => u("step", +M))
|
|
2071
2159
|
}, null, 8, ["modelValue"])
|
|
2072
2160
|
])) : V("", !0),
|
|
2073
|
-
f("list") ? (
|
|
2074
|
-
l("div",
|
|
2075
|
-
|
|
2161
|
+
f("list") ? (i(), m("div", to, [
|
|
2162
|
+
l("div", lo, [
|
|
2163
|
+
v(q, {
|
|
2076
2164
|
modelValue: t.value.name,
|
|
2077
2165
|
"onUpdate:modelValue": [
|
|
2078
|
-
|
|
2079
|
-
A(
|
|
2166
|
+
x[4] || (x[4] = (M) => t.value.name = M),
|
|
2167
|
+
A(y)
|
|
2080
2168
|
],
|
|
2081
2169
|
disabled: a.value,
|
|
2082
2170
|
label: "Name"
|
|
2083
2171
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
|
|
2084
|
-
|
|
2172
|
+
v(q, {
|
|
2085
2173
|
modelValue: t.value.value,
|
|
2086
2174
|
"onUpdate:modelValue": [
|
|
2087
|
-
|
|
2088
|
-
A(
|
|
2175
|
+
x[5] || (x[5] = (M) => t.value.value = M),
|
|
2176
|
+
A(y)
|
|
2089
2177
|
],
|
|
2090
2178
|
disabled: a.value,
|
|
2091
2179
|
label: "Value"
|
|
2092
|
-
},
|
|
2093
|
-
default: h(() => [...b[7] || (b[7] = [
|
|
2094
|
-
j(">", -1)
|
|
2095
|
-
])]),
|
|
2096
|
-
_: 1
|
|
2097
|
-
}, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
2180
|
+
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
2098
2181
|
]),
|
|
2099
|
-
l("div",
|
|
2100
|
-
|
|
2182
|
+
l("div", so, [
|
|
2183
|
+
v(Q, {
|
|
2101
2184
|
"model-value": t.value.value,
|
|
2102
2185
|
label: "List",
|
|
2103
|
-
items:
|
|
2104
|
-
|
|
2186
|
+
items: c.value,
|
|
2187
|
+
top: "unset",
|
|
2188
|
+
bottom: "0",
|
|
2189
|
+
onChange: o
|
|
2105
2190
|
}, {
|
|
2106
2191
|
item: h(({ item: M }) => [
|
|
2107
|
-
l("div",
|
|
2108
|
-
l("span", null,
|
|
2192
|
+
l("div", oo, [
|
|
2193
|
+
l("span", null, $(M.name), 1),
|
|
2109
2194
|
l("button", {
|
|
2110
2195
|
class: "cursor-pointer size-4",
|
|
2111
|
-
onClick:
|
|
2196
|
+
onClick: j((W) => b(M), ["prevent", "stop"])
|
|
2112
2197
|
}, [
|
|
2113
|
-
|
|
2114
|
-
], 8,
|
|
2198
|
+
v(w)
|
|
2199
|
+
], 8, no)
|
|
2115
2200
|
])
|
|
2116
2201
|
]),
|
|
2117
2202
|
_: 1
|
|
2118
2203
|
}, 8, ["model-value", "items"]),
|
|
2119
|
-
|
|
2204
|
+
v(O, {
|
|
2120
2205
|
class: "px-4",
|
|
2121
2206
|
color: "blue",
|
|
2122
|
-
onClick:
|
|
2207
|
+
onClick: g
|
|
2123
2208
|
}, {
|
|
2124
2209
|
default: h(() => [
|
|
2125
|
-
|
|
2210
|
+
v(S)
|
|
2126
2211
|
]),
|
|
2127
2212
|
_: 1
|
|
2128
2213
|
})
|
|
@@ -2131,7 +2216,7 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2131
2216
|
]);
|
|
2132
2217
|
};
|
|
2133
2218
|
}
|
|
2134
|
-
}),
|
|
2219
|
+
}), io = { class: "flex flex-col" }, ro = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, co = { class: "flex-auto order-1" }, uo = { class: "flex-auto gap-x-2 order-1" }, fo = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, mo = { class: "flex gap-2 items-center" }, vo = { class: "flex flex-col gap-4" }, go = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, po = { class: "relative group" }, ho = { class: "select-none" }, bo = ["onClick"], yo = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, xo = { class: "flex-[0_0_130px] size-[130px]" }, _o = { class: "flex gap-4 justify-end" }, ko = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, $o = /* @__PURE__ */ B({
|
|
2135
2220
|
__name: "ItemEdit",
|
|
2136
2221
|
props: {
|
|
2137
2222
|
item: {},
|
|
@@ -2140,8 +2225,8 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2140
2225
|
listIcons: {}
|
|
2141
2226
|
},
|
|
2142
2227
|
emits: ["button"],
|
|
2143
|
-
setup(e, { emit:
|
|
2144
|
-
const
|
|
2228
|
+
setup(e, { emit: s }) {
|
|
2229
|
+
const r = s, c = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = P({
|
|
2145
2230
|
id: "",
|
|
2146
2231
|
name: "",
|
|
2147
2232
|
type: "button",
|
|
@@ -2151,29 +2236,29 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2151
2236
|
set: "",
|
|
2152
2237
|
get: "",
|
|
2153
2238
|
getTo: ""
|
|
2154
|
-
}),
|
|
2239
|
+
}), d = P(!1), a = T(() => {
|
|
2155
2240
|
var k;
|
|
2156
2241
|
return !((k = e.item) != null && k.id);
|
|
2157
|
-
}), f = T(() => t.value.type === "info"),
|
|
2242
|
+
}), f = T(() => t.value.type === "info"), u = T(() => {
|
|
2158
2243
|
var k;
|
|
2159
2244
|
return (k = t.value.args) == null ? void 0 : k.length;
|
|
2160
|
-
}),
|
|
2245
|
+
}), n = T(() => t.value.args.length > 3), o = T(() => {
|
|
2161
2246
|
const { id: k, args: C } = t.value;
|
|
2162
2247
|
return !k || !C.length;
|
|
2163
|
-
}),
|
|
2248
|
+
}), g = ({ value: k }) => t.value.icon = k, b = ({ value: k }) => {
|
|
2164
2249
|
const C = k;
|
|
2165
2250
|
t.value.type = C, delete t.value.opts, ["button", "list", "dimmer"].includes(C) && (k === "button" && (t.value.opts = {}), k === "list" && (t.value.opts = { items: [] }), k === "dimmer" && (t.value.opts = { min: 0, max: 255, step: 1 }));
|
|
2166
|
-
},
|
|
2251
|
+
}, y = (k) => {
|
|
2167
2252
|
k === "get" && (t.value.get ? delete t.value.get : t.value.get = "v"), k === "set" && (t.value.set ? delete t.value.set : t.value.set = "v"), k === "getTo" && (t.value.getTo ? delete t.value.getTo : t.value.getTo = "v");
|
|
2168
|
-
},
|
|
2169
|
-
t.value.args.length || (t.value.id = k), t.value.args.push(k),
|
|
2170
|
-
}, S =
|
|
2253
|
+
}, p = (k) => r("button", k, t.value), x = (k) => t.value.args = t.value.args.filter((C) => C !== k), w = ({ path: k }) => {
|
|
2254
|
+
t.value.args.length || (t.value.id = k), t.value.args.push(k), d.value = !1;
|
|
2255
|
+
}, S = P(-1), M = (k) => S.value === k, W = (k, C) => {
|
|
2171
2256
|
k === "enter" && (S.value = C), k === "leave" && (S.value = -1);
|
|
2172
|
-
},
|
|
2257
|
+
}, X = (k, C) => {
|
|
2173
2258
|
k === "set" && (t.value.set = C), k === "get" && (t.value.get = C), k === "getTo" && (t.value.getTo = C), C || delete t.value[k];
|
|
2174
2259
|
}, Be = () => {
|
|
2175
2260
|
var k;
|
|
2176
|
-
!t.value.args.length && !((k = e.item) != null && k.id) && (
|
|
2261
|
+
!t.value.args.length && !((k = e.item) != null && k.id) && (d.value = !0);
|
|
2177
2262
|
}, Se = (k, C) => {
|
|
2178
2263
|
t.value.opts || (t.value.opts = {}), t.value.opts[k] = C, k === "disabled" && !C && delete t.value.opts[k];
|
|
2179
2264
|
};
|
|
@@ -2182,124 +2267,124 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2182
2267
|
(k = e.item) != null && k.id && (t.value = Ue(e.item));
|
|
2183
2268
|
}), (k, C) => {
|
|
2184
2269
|
const Ae = G;
|
|
2185
|
-
return
|
|
2186
|
-
l("div",
|
|
2187
|
-
l("div",
|
|
2188
|
-
|
|
2270
|
+
return i(), m("div", io, [
|
|
2271
|
+
l("div", ro, [
|
|
2272
|
+
l("div", co, [
|
|
2273
|
+
v(Rs, {
|
|
2189
2274
|
class: "flex-auto min-h-75",
|
|
2190
2275
|
value: 0,
|
|
2191
|
-
items:
|
|
2276
|
+
items: c
|
|
2192
2277
|
}, {
|
|
2193
2278
|
"tab-0": h(() => [
|
|
2194
|
-
l("div",
|
|
2195
|
-
|
|
2279
|
+
l("div", uo, [
|
|
2280
|
+
v(q, {
|
|
2196
2281
|
modelValue: t.value.id,
|
|
2197
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
2282
|
+
"onUpdate:modelValue": C[0] || (C[0] = (D) => t.value.id = D),
|
|
2198
2283
|
label: "ID",
|
|
2199
2284
|
disabled: !a.value,
|
|
2200
2285
|
onClick: Be
|
|
2201
2286
|
}, null, 8, ["modelValue", "disabled"]),
|
|
2202
|
-
|
|
2287
|
+
v(q, {
|
|
2203
2288
|
modelValue: t.value.name,
|
|
2204
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
2289
|
+
"onUpdate:modelValue": C[1] || (C[1] = (D) => t.value.name = D),
|
|
2205
2290
|
label: "Name"
|
|
2206
2291
|
}, null, 8, ["modelValue"]),
|
|
2207
|
-
l("div",
|
|
2208
|
-
|
|
2292
|
+
l("div", fo, [
|
|
2293
|
+
v(Q, {
|
|
2209
2294
|
"model-value": t.value.icon,
|
|
2210
2295
|
bottom: "0",
|
|
2211
2296
|
top: "unset",
|
|
2212
2297
|
label: "Icon",
|
|
2213
2298
|
class: "mb-6",
|
|
2214
2299
|
items: e.listIcons,
|
|
2215
|
-
onChange:
|
|
2300
|
+
onChange: g
|
|
2216
2301
|
}, {
|
|
2217
|
-
item: h(({ item:
|
|
2218
|
-
l("div",
|
|
2219
|
-
|
|
2220
|
-
icon:
|
|
2302
|
+
item: h(({ item: D }) => [
|
|
2303
|
+
l("div", mo, [
|
|
2304
|
+
_(k.$slots, "icon", {
|
|
2305
|
+
icon: D.value
|
|
2221
2306
|
}),
|
|
2222
|
-
l("div", null,
|
|
2307
|
+
l("div", null, $(D.name), 1)
|
|
2223
2308
|
])
|
|
2224
2309
|
]),
|
|
2225
2310
|
_: 3
|
|
2226
2311
|
}, 8, ["model-value", "items"]),
|
|
2227
|
-
|
|
2312
|
+
v(Q, {
|
|
2228
2313
|
"model-value": t.value.type,
|
|
2229
2314
|
bottom: "0",
|
|
2230
2315
|
top: "unset",
|
|
2231
2316
|
label: "Type",
|
|
2232
2317
|
items: e.listDashboard,
|
|
2233
|
-
onChange:
|
|
2318
|
+
onChange: b
|
|
2234
2319
|
}, null, 8, ["model-value", "items"])
|
|
2235
2320
|
])
|
|
2236
2321
|
])
|
|
2237
2322
|
]),
|
|
2238
2323
|
"tab-1": h(() => [
|
|
2239
|
-
l("div",
|
|
2240
|
-
|
|
2324
|
+
l("div", vo, [
|
|
2325
|
+
v(ze, {
|
|
2241
2326
|
active: !!t.value.args.length,
|
|
2242
|
-
disabled:
|
|
2327
|
+
disabled: n.value,
|
|
2243
2328
|
label: "Arguments",
|
|
2244
|
-
onIcon: C[2] || (C[2] = (
|
|
2329
|
+
onIcon: C[2] || (C[2] = (D) => d.value = !0)
|
|
2245
2330
|
}, {
|
|
2246
2331
|
default: h(() => [
|
|
2247
|
-
l("div",
|
|
2248
|
-
(
|
|
2249
|
-
key:
|
|
2332
|
+
l("div", go, [
|
|
2333
|
+
(i(!0), m(N, null, U(t.value.args, (D, fe) => (i(), m("div", {
|
|
2334
|
+
key: D,
|
|
2250
2335
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
2251
2336
|
}, [
|
|
2252
|
-
l("div",
|
|
2253
|
-
l("span",
|
|
2337
|
+
l("div", po, [
|
|
2338
|
+
l("span", ho, $(D), 1),
|
|
2254
2339
|
l("div", {
|
|
2255
2340
|
class: z(["fixed left-1/2 top-1/2 p-4 text-white bg-gray-900 rounded-md group-hover:visible invisible opacity-0 group-hover:opacity-100 z-50 transition-all -translate-1/2", M(fe) ? "visible opacity-100" : ""])
|
|
2256
2341
|
}, [
|
|
2257
|
-
l("pre", null,
|
|
2342
|
+
l("pre", null, $(A(Ne)(D, e.object)), 1)
|
|
2258
2343
|
], 2)
|
|
2259
2344
|
]),
|
|
2260
|
-
fe ? (
|
|
2345
|
+
fe ? (i(), m("button", {
|
|
2261
2346
|
key: 0,
|
|
2262
2347
|
class: "cursor-pointer ms-1",
|
|
2263
|
-
onClick: (
|
|
2348
|
+
onClick: (Ro) => x(D)
|
|
2264
2349
|
}, [
|
|
2265
|
-
|
|
2266
|
-
], 8,
|
|
2350
|
+
v(Ae, { class: "size-5" })
|
|
2351
|
+
], 8, bo)) : V("", !0)
|
|
2267
2352
|
]))), 128))
|
|
2268
2353
|
])
|
|
2269
2354
|
]),
|
|
2270
2355
|
_: 1
|
|
2271
2356
|
}, 8, ["active", "disabled"]),
|
|
2272
|
-
|
|
2357
|
+
v(ne, {
|
|
2273
2358
|
value: t.value.set,
|
|
2274
2359
|
args: t.value.args,
|
|
2275
|
-
disabled: !
|
|
2360
|
+
disabled: !u.value || f.value,
|
|
2276
2361
|
label: "Set",
|
|
2277
|
-
onIcon: C[3] || (C[3] = (
|
|
2362
|
+
onIcon: C[3] || (C[3] = (D) => y("set")),
|
|
2278
2363
|
onHover: W,
|
|
2279
|
-
onChange: C[4] || (C[4] = (
|
|
2364
|
+
onChange: C[4] || (C[4] = (D) => X("set", D))
|
|
2280
2365
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2281
|
-
|
|
2366
|
+
v(ne, {
|
|
2282
2367
|
value: t.value.get,
|
|
2283
2368
|
args: t.value.args,
|
|
2284
|
-
disabled: !
|
|
2369
|
+
disabled: !u.value,
|
|
2285
2370
|
label: "Get",
|
|
2286
|
-
onIcon: C[5] || (C[5] = (
|
|
2371
|
+
onIcon: C[5] || (C[5] = (D) => y("get")),
|
|
2287
2372
|
onHover: W,
|
|
2288
|
-
onChange: C[6] || (C[6] = (
|
|
2373
|
+
onChange: C[6] || (C[6] = (D) => X("get", D))
|
|
2289
2374
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2290
|
-
|
|
2375
|
+
v(ne, {
|
|
2291
2376
|
value: t.value.getTo,
|
|
2292
2377
|
args: t.value.args,
|
|
2293
|
-
disabled: !
|
|
2378
|
+
disabled: !u.value,
|
|
2294
2379
|
label: "GetTo",
|
|
2295
|
-
onIcon: C[7] || (C[7] = (
|
|
2380
|
+
onIcon: C[7] || (C[7] = (D) => y("getTo")),
|
|
2296
2381
|
onHover: W,
|
|
2297
|
-
onChange: C[8] || (C[8] = (
|
|
2382
|
+
onChange: C[8] || (C[8] = (D) => X("getTo", D))
|
|
2298
2383
|
}, null, 8, ["value", "args", "disabled"])
|
|
2299
2384
|
])
|
|
2300
2385
|
]),
|
|
2301
2386
|
"tab-2": h(() => [
|
|
2302
|
-
|
|
2387
|
+
v(ao, L(t.value.opts, {
|
|
2303
2388
|
value: t.value.value,
|
|
2304
2389
|
type: t.value.type,
|
|
2305
2390
|
onUpdate: Se
|
|
@@ -2308,47 +2393,47 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2308
2393
|
_: 3
|
|
2309
2394
|
})
|
|
2310
2395
|
]),
|
|
2311
|
-
l("div",
|
|
2312
|
-
l("div",
|
|
2313
|
-
|
|
2396
|
+
l("div", yo, [
|
|
2397
|
+
l("div", xo, [
|
|
2398
|
+
_(k.$slots, "default", { item: t.value })
|
|
2314
2399
|
])
|
|
2315
2400
|
])
|
|
2316
2401
|
]),
|
|
2317
|
-
l("div",
|
|
2318
|
-
|
|
2402
|
+
l("div", _o, [
|
|
2403
|
+
v(O, {
|
|
2319
2404
|
class: "px-4",
|
|
2320
2405
|
color: "blue",
|
|
2321
|
-
disabled:
|
|
2322
|
-
onClick: C[9] || (C[9] = (
|
|
2406
|
+
disabled: o.value,
|
|
2407
|
+
onClick: C[9] || (C[9] = (D) => p(a.value ? "add" : "save"))
|
|
2323
2408
|
}, {
|
|
2324
2409
|
default: h(() => [
|
|
2325
|
-
|
|
2410
|
+
E($(a.value ? k.$t("add") : k.$t("save")), 1)
|
|
2326
2411
|
]),
|
|
2327
2412
|
_: 1
|
|
2328
2413
|
}, 8, ["disabled"]),
|
|
2329
|
-
|
|
2414
|
+
v(O, {
|
|
2330
2415
|
class: "px-4",
|
|
2331
2416
|
color: "red",
|
|
2332
2417
|
outline: "",
|
|
2333
|
-
onClick: C[10] || (C[10] = (
|
|
2418
|
+
onClick: C[10] || (C[10] = (D) => p("remove"))
|
|
2334
2419
|
}, {
|
|
2335
2420
|
default: h(() => [
|
|
2336
|
-
|
|
2421
|
+
E($(k.$t("remove")), 1)
|
|
2337
2422
|
]),
|
|
2338
2423
|
_: 1
|
|
2339
2424
|
})
|
|
2340
2425
|
]),
|
|
2341
|
-
|
|
2426
|
+
d.value ? (i(), I(ue, {
|
|
2342
2427
|
key: 0,
|
|
2343
2428
|
size: "md",
|
|
2344
2429
|
title: k.$t("select"),
|
|
2345
|
-
onClose: C[11] || (C[11] = (
|
|
2430
|
+
onClose: C[11] || (C[11] = (D) => d.value = !1)
|
|
2346
2431
|
}, {
|
|
2347
2432
|
default: h(() => [
|
|
2348
|
-
l("div",
|
|
2349
|
-
|
|
2433
|
+
l("div", ko, [
|
|
2434
|
+
v(Ve, {
|
|
2350
2435
|
items: e.object,
|
|
2351
|
-
onlyValue: !
|
|
2436
|
+
onlyValue: !u.value,
|
|
2352
2437
|
onClick: w
|
|
2353
2438
|
}, null, 8, ["items", "onlyValue"])
|
|
2354
2439
|
])
|
|
@@ -2358,17 +2443,17 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2358
2443
|
]);
|
|
2359
2444
|
};
|
|
2360
2445
|
}
|
|
2361
|
-
}),
|
|
2446
|
+
}), wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2362
2447
|
__proto__: null,
|
|
2363
2448
|
CardBase: J,
|
|
2364
2449
|
CardButton: Gl,
|
|
2365
|
-
CardDate:
|
|
2366
|
-
CardDimmer:
|
|
2367
|
-
CardInfo:
|
|
2368
|
-
CardInput:
|
|
2369
|
-
CardList:
|
|
2370
|
-
ItemEdit:
|
|
2371
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2450
|
+
CardDate: ss,
|
|
2451
|
+
CardDimmer: cs,
|
|
2452
|
+
CardInfo: us,
|
|
2453
|
+
CardInput: ms,
|
|
2454
|
+
CardList: ws,
|
|
2455
|
+
ItemEdit: $o
|
|
2456
|
+
}, Symbol.toStringTag, { value: "Module" })), Xo = /* @__PURE__ */ B({
|
|
2372
2457
|
__name: "VAutocomplete",
|
|
2373
2458
|
props: {
|
|
2374
2459
|
modelValue: { default: "" },
|
|
@@ -2378,32 +2463,32 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2378
2463
|
list: {}
|
|
2379
2464
|
},
|
|
2380
2465
|
emits: ["update:modelValue", "select"],
|
|
2381
|
-
setup(e, { emit:
|
|
2382
|
-
const
|
|
2383
|
-
|
|
2466
|
+
setup(e, { emit: s }) {
|
|
2467
|
+
const r = s, c = (d) => r("update:modelValue", d), t = (d, a) => {
|
|
2468
|
+
d.click(new Event("click")), r("select", a);
|
|
2384
2469
|
};
|
|
2385
|
-
return (
|
|
2470
|
+
return (d, a) => (i(), I(le, L(d.$attrs, {
|
|
2386
2471
|
top: "50px",
|
|
2387
2472
|
"hide-on-click": ""
|
|
2388
2473
|
}), {
|
|
2389
2474
|
activator: h(({ on: f }) => [
|
|
2390
|
-
|
|
2475
|
+
v(q, {
|
|
2391
2476
|
"model-value": e.modelValue,
|
|
2392
2477
|
name: e.name,
|
|
2393
2478
|
message: e.message,
|
|
2394
2479
|
label: e.label,
|
|
2395
|
-
"onUpdate:modelValue":
|
|
2480
|
+
"onUpdate:modelValue": c,
|
|
2396
2481
|
onClick: f.open
|
|
2397
2482
|
}, null, 8, ["model-value", "name", "message", "label", "onClick"])
|
|
2398
2483
|
]),
|
|
2399
2484
|
default: h(({ on: f }) => [
|
|
2400
|
-
|
|
2485
|
+
v(se, {
|
|
2401
2486
|
items: e.list,
|
|
2402
|
-
onClick: (
|
|
2487
|
+
onClick: (u) => t(f, u)
|
|
2403
2488
|
}, {
|
|
2404
|
-
default: h(({ item:
|
|
2405
|
-
|
|
2406
|
-
|
|
2489
|
+
default: h(({ item: u }) => [
|
|
2490
|
+
_(d.$slots, "default", { item: u }, () => [
|
|
2491
|
+
E($(u.name), 1)
|
|
2407
2492
|
])
|
|
2408
2493
|
]),
|
|
2409
2494
|
_: 3
|
|
@@ -2412,118 +2497,118 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2412
2497
|
_: 3
|
|
2413
2498
|
}, 16));
|
|
2414
2499
|
}
|
|
2415
|
-
}),
|
|
2500
|
+
}), Co = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, zo = { class: "p-4" }, Yo = /* @__PURE__ */ B({
|
|
2416
2501
|
__name: "VExpansion",
|
|
2417
2502
|
props: {
|
|
2418
2503
|
label: { default: "" },
|
|
2419
2504
|
value: { type: Boolean, default: !1 }
|
|
2420
2505
|
},
|
|
2421
2506
|
setup(e) {
|
|
2422
|
-
const
|
|
2423
|
-
if (!
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2507
|
+
const s = P(null), r = P(e.value), c = () => {
|
|
2508
|
+
if (!s.value) return;
|
|
2509
|
+
const d = s.value.querySelector(".v-expansion__content");
|
|
2510
|
+
d && (d.style.maxHeight = r.value ? `${d.scrollHeight}px` : "0");
|
|
2426
2511
|
}, t = () => {
|
|
2427
|
-
|
|
2512
|
+
r.value = !r.value, c();
|
|
2428
2513
|
};
|
|
2429
2514
|
return be(() => {
|
|
2430
|
-
|
|
2431
|
-
}), (
|
|
2432
|
-
const f =
|
|
2433
|
-
return
|
|
2515
|
+
c();
|
|
2516
|
+
}), (d, a) => {
|
|
2517
|
+
const f = ce;
|
|
2518
|
+
return i(), m("div", {
|
|
2434
2519
|
ref_key: "root",
|
|
2435
|
-
ref:
|
|
2520
|
+
ref: s,
|
|
2436
2521
|
class: "border-b dark:border-gray-700 border-gray-200"
|
|
2437
2522
|
}, [
|
|
2438
2523
|
l("div", {
|
|
2439
2524
|
class: "cursor-pointer min-h-[60px] px-4 flex items-center justify-between",
|
|
2440
2525
|
onClick: t
|
|
2441
2526
|
}, [
|
|
2442
|
-
l("h4", null,
|
|
2527
|
+
l("h4", null, $(e.label), 1),
|
|
2443
2528
|
l("div", {
|
|
2444
|
-
class: z(["transition text-gray-400", { "rotate-180":
|
|
2529
|
+
class: z(["transition text-gray-400", { "rotate-180": r.value }])
|
|
2445
2530
|
}, [
|
|
2446
|
-
|
|
2531
|
+
v(f)
|
|
2447
2532
|
], 2)
|
|
2448
2533
|
]),
|
|
2449
|
-
l("div",
|
|
2450
|
-
l("div",
|
|
2451
|
-
|
|
2534
|
+
l("div", Co, [
|
|
2535
|
+
l("div", zo, [
|
|
2536
|
+
_(d.$slots, "default")
|
|
2452
2537
|
])
|
|
2453
2538
|
])
|
|
2454
2539
|
], 512);
|
|
2455
2540
|
};
|
|
2456
2541
|
}
|
|
2457
|
-
}),
|
|
2542
|
+
}), Vo = { class: "flex items-center cursor-pointer" }, Zo = /* @__PURE__ */ B({
|
|
2458
2543
|
__name: "VFile",
|
|
2459
2544
|
emits: ["change"],
|
|
2460
|
-
setup(e, { emit:
|
|
2461
|
-
const
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2545
|
+
setup(e, { emit: s }) {
|
|
2546
|
+
const r = s, c = async (t) => {
|
|
2547
|
+
const d = t.target;
|
|
2548
|
+
d.files && r("change", d.files);
|
|
2464
2549
|
};
|
|
2465
|
-
return (t,
|
|
2466
|
-
l("input",
|
|
2550
|
+
return (t, d) => (i(), m("label", Vo, [
|
|
2551
|
+
l("input", L({
|
|
2467
2552
|
type: "file",
|
|
2468
2553
|
class: "hidden"
|
|
2469
|
-
}, t.$attrs, { onChange:
|
|
2470
|
-
|
|
2554
|
+
}, t.$attrs, { onChange: c }), null, 16),
|
|
2555
|
+
_(t.$slots, "default")
|
|
2471
2556
|
]));
|
|
2472
2557
|
}
|
|
2473
|
-
}),
|
|
2558
|
+
}), Bo = { class: "relative flex items-end gap-0.5 w-10" }, So = ["title"], Ao = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, To = /* @__PURE__ */ B({
|
|
2474
2559
|
__name: "VWifiIcon",
|
|
2475
2560
|
props: {
|
|
2476
2561
|
rssi: { default: 0 },
|
|
2477
2562
|
channel: { default: 0 }
|
|
2478
2563
|
},
|
|
2479
2564
|
setup(e) {
|
|
2480
|
-
const
|
|
2481
|
-
return (
|
|
2482
|
-
(
|
|
2483
|
-
key:
|
|
2484
|
-
class: z(["w-1 h-5 rounded-lg", [
|
|
2565
|
+
const s = 2 * (e.rssi + 100), r = (c) => c < s;
|
|
2566
|
+
return (c, t) => (i(), m("div", Bo, [
|
|
2567
|
+
(i(), m(N, null, U([10, 15, 25, 40, 70], (d, a) => l("div", {
|
|
2568
|
+
key: d,
|
|
2569
|
+
class: z(["w-1 h-5 rounded-lg", [r(d) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
|
|
2485
2570
|
style: K(`height: ${(a + 1) * 5}px`),
|
|
2486
2571
|
title: `rssi: ${e.rssi} channel: ${e.channel}`
|
|
2487
|
-
}, null, 14,
|
|
2488
|
-
l("div",
|
|
2572
|
+
}, null, 14, So)), 64)),
|
|
2573
|
+
l("div", Ao, $(e.channel), 1)
|
|
2489
2574
|
]));
|
|
2490
2575
|
}
|
|
2491
|
-
}),
|
|
2576
|
+
}), Io = ["onDragstart", "onDragenter"], Do = {
|
|
2492
2577
|
key: 0,
|
|
2493
|
-
class: "absolute inset-0 border border-dashed border-blue-600 rounded
|
|
2494
|
-
},
|
|
2578
|
+
class: "absolute inset-0 border border-dashed border-blue-600 rounded"
|
|
2579
|
+
}, en = /* @__PURE__ */ B({
|
|
2495
2580
|
__name: "VDragDrop",
|
|
2496
2581
|
props: {
|
|
2497
2582
|
items: {},
|
|
2498
2583
|
itemKey: { default: "id" }
|
|
2499
2584
|
},
|
|
2500
2585
|
emits: ["update:items", "order-change"],
|
|
2501
|
-
setup(e, { emit:
|
|
2502
|
-
const
|
|
2503
|
-
"opacity-30 scale-105 z-10":
|
|
2504
|
-
"transition-transform duration-200":
|
|
2505
|
-
}), f = (
|
|
2506
|
-
|
|
2507
|
-
},
|
|
2508
|
-
|
|
2509
|
-
},
|
|
2510
|
-
|
|
2511
|
-
},
|
|
2512
|
-
if (
|
|
2513
|
-
const
|
|
2514
|
-
if (
|
|
2515
|
-
const
|
|
2516
|
-
|
|
2586
|
+
setup(e, { emit: s }) {
|
|
2587
|
+
const r = s, c = P(null), t = P(0), d = P(-1), a = ({ id: g }) => ({
|
|
2588
|
+
"opacity-30 scale-105 z-10": c.value === g,
|
|
2589
|
+
"transition-transform duration-200": c.value !== g
|
|
2590
|
+
}), f = (g, b, y) => {
|
|
2591
|
+
c.value = b, t.value = y, g.dataTransfer.effectAllowed = "move";
|
|
2592
|
+
}, u = (g) => {
|
|
2593
|
+
c.value !== null && (d.value = g);
|
|
2594
|
+
}, n = () => {
|
|
2595
|
+
c.value = null, d.value = -1;
|
|
2596
|
+
}, o = (g) => {
|
|
2597
|
+
if (g.preventDefault(), c.value && d.value !== -1) {
|
|
2598
|
+
const b = e.items.findIndex((p) => p[e.itemKey] === c.value), y = d.value;
|
|
2599
|
+
if (b !== y && y !== -1) {
|
|
2600
|
+
const p = [...e.items], [x] = p.splice(b, 1);
|
|
2601
|
+
p.splice(y, 0, x), r("update:items", p), r("order-change", { fromIndex: b, toIndex: y, movedItem: x, newOrder: p });
|
|
2517
2602
|
}
|
|
2518
2603
|
}
|
|
2519
|
-
|
|
2604
|
+
d.value = -1;
|
|
2520
2605
|
};
|
|
2521
|
-
return (
|
|
2522
|
-
onDragover:
|
|
2606
|
+
return (g, b) => (i(), m("div", {
|
|
2607
|
+
onDragover: b[1] || (b[1] = j(() => {
|
|
2523
2608
|
}, ["prevent"])),
|
|
2524
|
-
onDrop:
|
|
2609
|
+
onDrop: o
|
|
2525
2610
|
}, [
|
|
2526
|
-
|
|
2611
|
+
v(he, {
|
|
2527
2612
|
"enter-active-class": "transition-all duration-300 ease",
|
|
2528
2613
|
"enter-from-class": "opacity-0 translate-x-8",
|
|
2529
2614
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -2533,75 +2618,75 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2533
2618
|
"move-class": "transition-all duration-300 ease"
|
|
2534
2619
|
}, {
|
|
2535
2620
|
default: h(() => [
|
|
2536
|
-
(
|
|
2537
|
-
key: `${
|
|
2538
|
-
class: z(["relative group", a(
|
|
2621
|
+
(i(!0), m(N, null, U(e.items, (y, p) => (i(), m("div", {
|
|
2622
|
+
key: `${y.id}_drug`,
|
|
2623
|
+
class: z(["relative group", a(y)]),
|
|
2539
2624
|
draggable: "true",
|
|
2540
|
-
onDragstart: (
|
|
2541
|
-
onDragenter: (
|
|
2542
|
-
onDragend:
|
|
2543
|
-
onDragover:
|
|
2625
|
+
onDragstart: (x) => f(x, y.id, p),
|
|
2626
|
+
onDragenter: (x) => u(p),
|
|
2627
|
+
onDragend: n,
|
|
2628
|
+
onDragover: b[0] || (b[0] = j(() => {
|
|
2544
2629
|
}, ["prevent"]))
|
|
2545
2630
|
}, [
|
|
2546
|
-
|
|
2547
|
-
item:
|
|
2548
|
-
key:
|
|
2549
|
-
index:
|
|
2550
|
-
isDragging:
|
|
2631
|
+
_(g.$slots, "default", {
|
|
2632
|
+
item: y,
|
|
2633
|
+
key: y.id,
|
|
2634
|
+
index: p,
|
|
2635
|
+
isDragging: c.value === y.id
|
|
2551
2636
|
}),
|
|
2552
|
-
|
|
2553
|
-
], 42,
|
|
2637
|
+
d.value === p && c.value !== y.id ? (i(), m("div", Do)) : V("", !0)
|
|
2638
|
+
], 42, Io))), 128))
|
|
2554
2639
|
]),
|
|
2555
2640
|
_: 3
|
|
2556
2641
|
})
|
|
2557
2642
|
], 32));
|
|
2558
2643
|
}
|
|
2559
|
-
}),
|
|
2644
|
+
}), Mo = { class: "min-w-full" }, jo = { class: "border-y border-gray-100 py-3 dark:border-gray-800" }, Lo = { class: "bg-gray-50 dark:bg-gray-800" }, Oo = { class: "flex items-center" }, Eo = { class: "divide-y divide-gray-100 dark:divide-gray-800" }, No = ["onClick"], Po = { class: "flex items-center text-gray-700 dark:text-gray-400" }, Ho = { key: 1 }, Fo = {
|
|
2560
2645
|
class: "py-3 whitespace-nowrap",
|
|
2561
2646
|
colspan: "9"
|
|
2562
|
-
},
|
|
2647
|
+
}, Uo = { class: "flex items-center justify-center text-theme-sm text-gray-700 dark:text-gray-400 px-2" }, tn = /* @__PURE__ */ B({
|
|
2563
2648
|
__name: "VTable",
|
|
2564
2649
|
props: {
|
|
2565
2650
|
headers: { default: () => [] },
|
|
2566
2651
|
items: { default: () => [] }
|
|
2567
2652
|
},
|
|
2568
2653
|
emits: ["click"],
|
|
2569
|
-
setup(e, { emit:
|
|
2570
|
-
const
|
|
2571
|
-
return (a, f) => (
|
|
2572
|
-
l("thead",
|
|
2573
|
-
l("tr",
|
|
2574
|
-
(
|
|
2575
|
-
key:
|
|
2576
|
-
class: z(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4", t(
|
|
2654
|
+
setup(e, { emit: s }) {
|
|
2655
|
+
const r = s, c = (a, f) => r("click", { item: a, event: f }), t = (a) => (a == null ? void 0 : a.className) || "", d = (a, { key: f }) => a == null ? void 0 : a[f];
|
|
2656
|
+
return (a, f) => (i(), m("table", Mo, [
|
|
2657
|
+
l("thead", jo, [
|
|
2658
|
+
l("tr", Lo, [
|
|
2659
|
+
(i(!0), m(N, null, U(e.headers, (u, n) => (i(), m("th", {
|
|
2660
|
+
key: n,
|
|
2661
|
+
class: z(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4", t(u)])
|
|
2577
2662
|
}, [
|
|
2578
|
-
|
|
2579
|
-
l("div",
|
|
2663
|
+
_(a.$slots, "header", { item: u }, () => [
|
|
2664
|
+
l("div", Oo, $(u.name), 1)
|
|
2580
2665
|
])
|
|
2581
2666
|
], 2))), 128))
|
|
2582
2667
|
])
|
|
2583
2668
|
]),
|
|
2584
|
-
l("tbody",
|
|
2585
|
-
e.items.length ? (
|
|
2586
|
-
key:
|
|
2669
|
+
l("tbody", Eo, [
|
|
2670
|
+
e.items.length ? (i(!0), m(N, { key: 0 }, U(e.items, (u, n) => (i(), m("tr", {
|
|
2671
|
+
key: n,
|
|
2587
2672
|
class: "hover:bg-gray-50/50 dark:hover:bg-gray-800/50",
|
|
2588
|
-
onClick: (
|
|
2673
|
+
onClick: (o) => c(u, o)
|
|
2589
2674
|
}, [
|
|
2590
|
-
(
|
|
2591
|
-
key:
|
|
2675
|
+
(i(!0), m(N, null, U(e.headers, (o, g) => (i(), m("td", {
|
|
2676
|
+
key: g,
|
|
2592
2677
|
class: "py-2 whitespace-nowrap px-4"
|
|
2593
2678
|
}, [
|
|
2594
|
-
l("div",
|
|
2595
|
-
|
|
2596
|
-
|
|
2679
|
+
l("div", Po, [
|
|
2680
|
+
_(a.$slots, o.key, { item: u }, () => [
|
|
2681
|
+
E($(d(u, o)), 1)
|
|
2597
2682
|
])
|
|
2598
2683
|
])
|
|
2599
2684
|
]))), 128))
|
|
2600
|
-
], 8,
|
|
2601
|
-
l("td",
|
|
2602
|
-
l("div",
|
|
2603
|
-
|
|
2604
|
-
f[0] || (f[0] =
|
|
2685
|
+
], 8, No))), 128)) : (i(), m("tr", Ho, [
|
|
2686
|
+
l("td", Fo, [
|
|
2687
|
+
l("div", Uo, [
|
|
2688
|
+
_(a.$slots, "empty", {}, () => [
|
|
2689
|
+
f[0] || (f[0] = E("The list is empty", -1))
|
|
2605
2690
|
])
|
|
2606
2691
|
])
|
|
2607
2692
|
])
|
|
@@ -2609,57 +2694,57 @@ const Bs = U({ name: "ri-folder6-line", render: Vs }), Ss = ["onClick"], As = {
|
|
|
2609
2694
|
])
|
|
2610
2695
|
]));
|
|
2611
2696
|
}
|
|
2612
|
-
}), ve = { ...ul, ...
|
|
2697
|
+
}), ve = { ...ul, ...wo, VButton: O, VLoader: Ce, VDropdown: le, VList: se, VTextField: q, VSelect: Q, VWifiIcon: To, CardMain: Tl, VIconLogoMini: ke, VIconLogo: re, VDialog: ue, VPopup: de }, ln = {
|
|
2613
2698
|
install: (e) => {
|
|
2614
|
-
Object.keys(ve).forEach((
|
|
2615
|
-
e.component(
|
|
2616
|
-
}),
|
|
2699
|
+
Object.keys(ve).forEach((s) => {
|
|
2700
|
+
e.component(s, ve[s]);
|
|
2701
|
+
}), We.forEach(({ name: s, directive: r }) => e.directive(s, r));
|
|
2617
2702
|
}
|
|
2618
2703
|
};
|
|
2619
2704
|
export {
|
|
2620
|
-
|
|
2705
|
+
Ze as AppAside,
|
|
2621
2706
|
Mt as AppHeader,
|
|
2622
2707
|
sl as AppNav,
|
|
2623
2708
|
Ht as AppNotification,
|
|
2624
2709
|
qt as AppOverlay,
|
|
2625
2710
|
cl as AppProgress,
|
|
2626
|
-
|
|
2627
|
-
|
|
2711
|
+
Qo as BlockBreadcrumb,
|
|
2712
|
+
Jo as BlockInfo,
|
|
2628
2713
|
J as CardBase,
|
|
2629
2714
|
Gl as CardButton,
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2715
|
+
ss as CardDate,
|
|
2716
|
+
cs as CardDimmer,
|
|
2717
|
+
us as CardInfo,
|
|
2718
|
+
ms as CardInput,
|
|
2719
|
+
ws as CardList,
|
|
2635
2720
|
Tl as CardMain,
|
|
2636
2721
|
Et as CardNotification,
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2722
|
+
$o as ItemEdit,
|
|
2723
|
+
Xo as VAutocomplete,
|
|
2724
|
+
O as VButton,
|
|
2725
|
+
Xs as VCheckbox,
|
|
2726
|
+
ue as VDialog,
|
|
2727
|
+
en as VDragDrop,
|
|
2728
|
+
le as VDropdown,
|
|
2729
|
+
Yo as VExpansion,
|
|
2730
|
+
Zo as VFile,
|
|
2731
|
+
ne as VFunc,
|
|
2732
|
+
re as VIconLogo,
|
|
2733
|
+
ke as VIconLogoMini,
|
|
2734
|
+
se as VList,
|
|
2650
2735
|
Ve as VListObject,
|
|
2651
2736
|
Ce as VLoader,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2737
|
+
de as VPopup,
|
|
2738
|
+
Q as VSelect,
|
|
2739
|
+
tn as VTable,
|
|
2655
2740
|
q as VTextField,
|
|
2656
2741
|
ze as VTextWrapper,
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2742
|
+
To as VWifiIcon,
|
|
2743
|
+
nn as dashboardCards,
|
|
2744
|
+
ln as default,
|
|
2745
|
+
Ne as getDataValue,
|
|
2746
|
+
an as getFunction,
|
|
2747
|
+
rn as getParamsData,
|
|
2748
|
+
dn as getStateItem,
|
|
2749
|
+
cn as setStateItem
|
|
2665
2750
|
};
|