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